New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

inferno

Package Overview
Dependencies
Maintainers
4
Versions
342
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inferno - npm Package Compare versions

Comparing version 8.2.3 to 9.0.0-alpha.1

dist/index.cjs

17

dist/core/component.d.ts

@@ -1,6 +0,5 @@

import type { Inferno, InfernoNode } from './types';
import { IComponent, VNode } from './types';
import type { Inferno, InfernoNode, IComponent, VNode } from './types';
export declare function rerender(): void;
export type ComponentType<P = {}> = typeof Component<P> | Inferno.StatelessComponent<P>;
export declare abstract class Component<P = {}, S = {}> implements IComponent<P, S> {
export type ComponentType<P = Record<string, unknown>> = typeof Component<P> | Inferno.StatelessComponent<P>;
export declare abstract class Component<P = {}, S = Record<string, unknown>> implements IComponent<P, S> {
state: Readonly<S | null>;

@@ -18,10 +17,10 @@ props: Readonly<{

$CX: any;
$QU: Function[] | null;
$QU: Array<() => void> | null;
$N: boolean;
$SSR?: boolean;
$L: Function[] | null;
$L: Array<() => void> | null;
$SVG: boolean;
$F: boolean;
constructor(props?: P, context?: any);
forceUpdate(callback?: Function): void;
forceUpdate(callback?: (() => void) | undefined): void;
setState<K extends keyof S>(newState: ((prevState: Readonly<S>, props: Readonly<{

@@ -46,3 +45,3 @@ children?: InfernoNode;

componentDidAppear?(domNode: Element): void;
componentWillDisappear?(domNode: Element, callback: Function): void;
componentWillDisappear?(domNode: Element, callback: () => void): void;
componentWillMove?(parentVNode: VNode, parentDOM: Element, dom: Element): void;

@@ -53,3 +52,3 @@ getChildContext?(): void;

} & P>, prevState: Readonly<S>): any;
static defaultProps?: {} | null;
static defaultProps?: Record<string, unknown> | null;
static getDerivedStateFromProps?(nextProps: any, state: any): any;

@@ -56,0 +55,0 @@ render(props: Readonly<{

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

import type { ForwardRef, InfernoNode, Ref, Refs, VNode } from './types';
import type { ForwardRef, InfernoNode, ParentDOM, Ref, Refs, VNode } from './types';
import { ChildFlags, VNodeFlags } from 'inferno-vnode-flags';
import { ComponentType } from './component';
import { type Component, type ComponentType } from './component';
export declare function createVNode<P>(flags: VNodeFlags, type: string, className?: string | null, children?: InfernoNode, childFlags?: ChildFlags, props?: Readonly<P> | null, key?: string | number | null, ref?: Ref | Refs<P> | null): VNode;
export declare function createComponentVNode<P>(flags: VNodeFlags, type: Function | ComponentType<P> | ForwardRef<P, any>, props?: Readonly<P> | null, key?: null | string | number, ref?: Ref | Refs<P> | null): VNode;
export declare function createComponentVNode<P>(flags: VNodeFlags, type: Function | ComponentType<P> | Component<P, any> | ForwardRef<P, any>, props?: Readonly<P> | null, key?: null | string | number, ref?: Ref | Refs<P> | null): VNode;
export declare function createTextVNode(text?: string | boolean | null | number, key?: string | number | null): VNode;
export declare function createFragment(children: any, childFlags: ChildFlags, key?: string | number | null): VNode;
export declare function normalizeProps(vNode: any): any;
export declare function normalizeProps(vNode: VNode): VNode;
export declare function directClone(vNodeToClone: VNode): VNode;
export declare function createVoidVNode(): VNode;
export declare function createPortal(children: any, container: any): VNode;
export declare function createPortal(children: any, container: ParentDOM): VNode;
export declare function _normalizeVNodes(nodes: any[], result: VNode[], index: number, currentKey: string): void;

@@ -13,0 +13,0 @@ export declare function getFlagsForElementVnode(type: string): VNodeFlags;

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

import type { InfernoNode, RefObject } from './types';
import type { InfernoNode, Props, RefObject } from './types';
export declare function createRef<T = Element>(): RefObject<T>;
export declare function forwardRef<T = any, P = {}>(render: (props: Readonly<{
export declare function forwardRef<T = any, P = Props<any>>(render: (props: Readonly<{
children?: InfernoNode;
}> & Readonly<P>, ref: RefObject<T>) => InfernoNode): any;
export declare function unmountRef(ref: any): void;
export declare function mountRef(ref: any, value: any, lifecycle: Function[]): void;
export declare function mountRef(ref: any, value: any, lifecycle: Array<() => void>): void;
import type { LinkedEvent } from './../../core/types';
export declare const syntheticEvents: {
onClick: any;
onDblClick: any;
onFocusIn: any;
onFocusOut: any;
onKeyDown: any;
onKeyPress: any;
onKeyUp: any;
onMouseDown: any;
onMouseMove: any;
onMouseUp: any;
onTouchEnd: any;
onTouchMove: any;
onTouchStart: any;
};
export interface DelegateEventTypes {
onClick: unknown;
onDblClick: unknown;
onFocusIn: unknown;
onFocusOut: unknown;
onKeyDown: unknown;
onKeyPress: unknown;
onKeyUp: unknown;
onMouseDown: unknown;
onMouseMove: unknown;
onMouseUp: unknown;
onTouchEnd: unknown;
onTouchMove: unknown;
onTouchStart: unknown;
}
export declare const syntheticEvents: DelegateEventTypes;
export declare function unmountSyntheticEvent(name: string, dom: any): void;
export declare function handleSyntheticEvent(name: string, lastEvent: Function | LinkedEvent<any, any> | null | false | true, nextEvent: Function | LinkedEvent<any, any> | null | false | true, dom: any): void;
export declare function handleSyntheticEvent(name: string, lastEvent: (() => void) | LinkedEvent<any, any> | null | false | true, nextEvent: (() => void) | LinkedEvent<any, any> | null | false | true, dom: any): void;

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

import type { VNode } from '../core/types';
import type { VNode, ContextObject } from '../core/types';
import { AnimationQueues } from './utils/common';
export declare function mount(vNode: VNode, parentDOM: Element | null, context: Object, isSVG: boolean, nextNode: Element | null, lifecycle: Function[], animations: AnimationQueues): void;
export declare function mount(vNode: VNode, parentDOM: Element | null, context: ContextObject, isSVG: boolean, nextNode: Element | null, lifecycle: Array<() => void>, animations: AnimationQueues): void;
export declare function mountText(vNode: VNode, parentDOM: Element | null, nextNode: Element | null): void;
export declare function mountElement(vNode: VNode, parentDOM: Element | null, context: Object, isSVG: boolean, nextNode: Element | null, lifecycle: Function[], animations: AnimationQueues): void;
export declare function mountArrayChildren(children: any, dom: Element | null, context: Object, isSVG: boolean, nextNode: Element | null, lifecycle: Function[], animations: AnimationQueues): void;
export declare function mountClassComponent(vNode: VNode, parentDOM: Element | null, context: Object, isSVG: boolean, nextNode: Element | null, lifecycle: Function[], animations: AnimationQueues): void;
export declare function mountFunctionalComponent(vNode: VNode, parentDOM: Element | null, context: Object, isSVG: boolean, nextNode: Element | null, lifecycle: any, animations: AnimationQueues): void;
export declare function mountClassComponentCallbacks(ref: any, instance: any, lifecycle: Function[], animations: AnimationQueues): void;
export declare function mountFunctionalComponentCallbacks(vNode: VNode, lifecycle: Function[], animations: AnimationQueues): void;
export declare function mountElement(vNode: VNode, parentDOM: Element | null, context: ContextObject, isSVG: boolean, nextNode: Element | null, lifecycle: Array<() => void>, animations: AnimationQueues): void;
export declare function mountArrayChildren(children: any, dom: Element | null, context: ContextObject, isSVG: boolean, nextNode: Element | null, lifecycle: Array<() => void>, animations: AnimationQueues): void;
export declare function mountClassComponent(vNode: VNode, parentDOM: Element | null, context: ContextObject, isSVG: boolean, nextNode: Element | null, lifecycle: Array<() => void>, animations: AnimationQueues): void;
export declare function mountFunctionalComponent(vNode: VNode, parentDOM: Element | null, context: ContextObject, isSVG: boolean, nextNode: Element | null, lifecycle: Array<() => void>, animations: AnimationQueues): void;
export declare function mountClassComponentCallbacks(ref: any, instance: any, lifecycle: Array<() => void>, animations: AnimationQueues): void;
export declare function mountFunctionalComponentCallbacks(vNode: VNode, lifecycle: Array<() => void>, animations: AnimationQueues): void;

@@ -1,7 +0,6 @@

import type { VNode } from '../core/types';
import { VNodeFlags } from 'inferno-vnode-flags';
import { AnimationQueues } from './utils/common';
export declare function patch(lastVNode: VNode, nextVNode: VNode, parentDOM: Element, context: Object, isSVG: boolean, nextNode: Element | null, lifecycle: Function[], animations: AnimationQueues): void;
import type { ContextObject, VNode } from '../core/types';
import { type AnimationQueues } from './utils/common';
export declare function patch(lastVNode: VNode, nextVNode: VNode, parentDOM: Element, context: ContextObject, isSVG: boolean, nextNode: Element | null, lifecycle: Array<() => void>, animations: AnimationQueues): void;
export declare function patchSingleTextChild(lastChildren: any, nextChildren: any, parentDOM: Element): void;
export declare function patchElement(lastVNode: VNode, nextVNode: VNode, context: Object, isSVG: boolean, nextFlags: VNodeFlags, lifecycle: Function[], animations: AnimationQueues): void;
export declare function updateClassComponent(instance: any, nextState: any, nextProps: any, parentDOM: Element, context: any, isSVG: boolean, force: boolean, nextNode: Element | null, lifecycle: Function[], animations: AnimationQueues): void;
export declare function patchElement(lastVNode: VNode, nextVNode: VNode, context: ContextObject, isSVG: boolean, lifecycle: Array<() => void>, animations: AnimationQueues): void;
export declare function updateClassComponent(instance: any, nextState: any, nextProps: any, parentDOM: Element, context: any, isSVG: boolean, force: boolean, nextNode: Element | null, lifecycle: Array<() => void>, animations: AnimationQueues): void;
import type { VNode } from '../core/types';
import { AnimationQueues } from './utils/common';
import { type AnimationQueues } from './utils/common';
export declare function patchEvent(name: string, lastValue: any, nextValue: any, dom: any): void;
export declare function patchProp(prop: any, lastValue: any, nextValue: any, dom: Element, isSVG: boolean, hasControlledValue: boolean, lastVNode: VNode | null, animations: AnimationQueues): void;
export declare function patchProp(prop: string, lastValue: any, nextValue: any, dom: Element, isSVG: boolean, hasControlledValue: boolean, lastVNode: VNode | null, animations: AnimationQueues): void;
export declare function mountProps(vNode: any, flags: any, props: any, dom: any, isSVG: any, animations: AnimationQueues): void;

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

import type { InfernoNode, VNode } from '../core/types';
export declare function __render(input: VNode | InfernoNode, parentDOM: Element | SVGAElement | ShadowRoot | DocumentFragment | HTMLElement | Node | null, callback: Function | null, context: any): void;
export declare function render(input: VNode | InfernoNode, parentDOM: Element | SVGAElement | ShadowRoot | DocumentFragment | HTMLElement | Node | null, callback?: Function | null, context?: any): void;
export declare function createRenderer(parentDOM?: any): (lastInput: any, nextInput: any, callback: any, context: any) => void;
import type { InfernoNode, VNode, ContextObject, ParentDOM } from '../core/types';
export declare function renderInternal(input: VNode | InfernoNode, parentDOM: ParentDOM, callback: (() => void) | null, context: ContextObject): void;
export declare function render(input: VNode | InfernoNode, parentDOM: ParentDOM, callback?: (() => void) | null, context?: ContextObject): void;
export declare function createRenderer(parentDOM?: ParentDOM): (lastInput: any, nextInput: any, callback: any, context: any) => void;

@@ -6,14 +6,14 @@ import type { Inferno, InfernoNode, VNode } from './../../core/types';

}>;
export type MoveQueueItem = {
export interface MoveQueueItem {
parent: Element;
dom: Element;
next: Element;
fn: Function;
};
fn: () => void;
}
export declare class AnimationQueues {
componentDidAppear: Function[];
componentWillDisappear: Function[];
componentDidAppear: Array<() => void>;
componentWillDisappear: Array<() => void>;
componentWillMove: MoveQueueItem[];
}
export declare function normalizeEventName(name: any): any;
export declare function normalizeEventName(name: any): keyof DocumentEventMap;
export declare function appendChild(parentDOM: any, dom: any): void;

@@ -24,11 +24,11 @@ export declare function insertOrAppend(parentDOM: Element, newNode: any, nextNode: any): void;

export declare function removeChild(parentDOM: Element, childNode: Element): void;
export declare function callAll(arrayFn: Function[]): void;
export declare function callAll(arrayFn: Array<() => void>): void;
export declare function findDOMFromVNode(vNode: VNode, startEdge: boolean): Element | null;
export declare function callAllAnimationHooks(animationQueue: Function[], callback?: Function): void;
export declare function callAllAnimationHooks(animationQueue: Array<() => void>, callback?: () => void): void;
export declare function callAllMoveAnimationHooks(animationQueue: MoveQueueItem[]): void;
export declare function clearVNodeDOM(vNode: VNode, parentDOM: Element, deferredRemoval: boolean): void;
export declare function clearVNodeDOM(vNode: VNode | null, parentDOM: Element, deferredRemoval: boolean): void;
export declare function removeVNodeDOM(vNode: VNode, parentDOM: Element, animations: AnimationQueues): void;
export declare function moveVNodeDOM(parentVNode: any, vNode: any, parentDOM: any, nextNode: any, animations: AnimationQueues): void;
export declare function getComponentName(instance: any): string;
export declare function createDerivedState(instance: any, nextProps: any, state: any): any;
export declare function createDerivedState<TState>(instance: any, nextProps: any, state: TState): TState;
export declare const renderCheck: {

@@ -38,5 +38,3 @@ v: boolean;

export declare const options: {
componentComparator: ((lastVNode: VNode, nextVNode: VNode) => boolean) | null;
createVNode: ((vNode: VNode) => void) | null;
renderComplete: ((rootInput: VNode | InfernoNode, parentDOM: Element | SVGAElement | ShadowRoot | DocumentFragment | HTMLElement | Node) => void) | null;
reactStyles?: boolean;

@@ -46,3 +44,3 @@ };

export declare function isLastValueSameLinkEvent(lastValue: any, nextValue: any): boolean;
export declare function mergeUnsetProperties(to: any, from: any): any;
export declare function mergeUnsetProperties<TTo, TFrom>(to: TTo, from: TFrom): TTo & TFrom;
export declare function safeCall1(method: Function | null | undefined, arg1: any): boolean;

@@ -1,4 +0,5 @@

import type { VNode } from './../../core/types';
import type { ContextObject, InfernoNode, VNode } from './../../core/types';
import type { Component } from './../../core/component';
export declare function renderNewInput(instance: any, props: any, context: any): VNode;
export declare function createClassComponentInstance(vNode: VNode, Component: any, props: any, context: Object, isSVG: boolean, lifecycle: Function[]): any;
export declare function renderFunctionalComponent(vNode: VNode, context: any): any;
export declare function createClassComponentInstance(vNode: VNode, ComponentCtr: any, props: any, context: ContextObject, isSVG: boolean, lifecycle: Array<() => void>): Component<any, any>;
export declare function renderFunctionalComponent(vNode: VNode, context: ContextObject): InfernoNode;

@@ -0,2 +1,3 @@

import { type NonEmptyProps } from '../../core/types';
export declare function textAreaEvents(dom: any, nextPropsOrEmpty: any): void;
export declare function applyValueTextArea(nextPropsOrEmpty: any, dom: any, mounting: boolean): void;
export declare function applyValueTextArea(nextPropsOrEmpty: NonEmptyProps, dom: any, mounting: boolean): void;

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

export declare function createWrappedFunction(methodName: string | string[], applyValue?: Function): Function;
import { type NonEmptyProps, type VNode } from '../../core/types';
export declare function createWrappedFunction(methodName: string | string[], applyValue?: (newProps: NonEmptyProps, dom: any, isMounting: boolean, newVNode: VNode) => void): (e: Event) => void;

@@ -1,7 +0,6 @@

export * from './core/types';
import { createComponentVNode, createFragment, createPortal, createTextVNode, createVNode, directClone, getFlagsForElementVnode, normalizeProps, normalizeRoot } from './core/implementation';
import { linkEvent } from './DOM/events/linkEvent';
import { __render, createRenderer, render } from './DOM/rendering';
import { renderInternal, createRenderer, render } from './DOM/rendering';
import { AnimationQueues, EMPTY_OBJ, findDOMFromVNode, Fragment, options } from './DOM/utils/common';
import { Component, ComponentType, rerender } from './core/component';
import { Component, type ComponentType, rerender } from './core/component';
import { mountProps } from './DOM/props';

@@ -11,4 +10,5 @@ import { createClassComponentInstance, renderFunctionalComponent } from './DOM/utils/componentUtil';

import { createRef, forwardRef, mountRef } from './core/refs';
export * from './core/types';
declare const version: string | undefined;
export { AnimationQueues, Component, ComponentType, Fragment, EMPTY_OBJ, createComponentVNode, createFragment, createPortal, createRef, createRenderer, createTextVNode, createVNode, forwardRef, directClone, findDOMFromVNode, getFlagsForElementVnode, linkEvent, normalizeProps, options, render, rerender, version, createClassComponentInstance as _CI, normalizeRoot as _HI, // used by inferno-mobx
mount as _M, mountClassComponentCallbacks as _MCCC, mountElement as _ME, mountFunctionalComponentCallbacks as _MFCC, mountRef as _MR, mountProps as _MP, __render, renderFunctionalComponent as _RFC };
export { AnimationQueues, Component, type ComponentType, Fragment, EMPTY_OBJ, createComponentVNode, createFragment, createPortal, createRef, createRenderer, createTextVNode, createVNode, forwardRef, directClone, findDOMFromVNode, getFlagsForElementVnode, linkEvent, normalizeProps, options, render, rerender, version, createClassComponentInstance as _CI, normalizeRoot as _HI, // used by inferno-mobx
mount as _M, mountClassComponentCallbacks as _MCCC, mountElement as _ME, mountFunctionalComponentCallbacks as _MFCC, mountRef as _MR, mountProps as _MP, renderInternal, renderFunctionalComponent as _RFC, };

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

!function(e,n){"object"===typeof exports&&"undefined"!==typeof module?n(exports):"function"===typeof define&&define.amd?define(["exports"],n):n((e="undefined"!==typeof globalThis?globalThis:e||self).Inferno=e.Inferno||{})}(this,(function(e){"use strict";var n=Array.isArray;function t(e){var n=typeof e;return"string"===n||"number"===n}function r(e){return void 0===e||null===e}function o(e){return null===e||!1===e||!0===e||void 0===e}function i(e){return"function"===typeof e}function l(e){return"string"===typeof e}function a(e){return null===e}function u(e,n){var t={};if(e)for(var r in e)t[r]=e[r];if(n)for(var o in n)t[o]=n[o];return t}function c(e){return!a(e)&&"object"===typeof e}var f={},s=function(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]};function d(e){return e.substring(2).toLowerCase()}function p(e,n){e.appendChild(n)}function v(e,n,t){a(t)?p(e,n):e.insertBefore(n,t)}function h(e,n){if(n)return document.createElementNS("http://www.w3.org/2000/svg",e);return document.createElement(e)}function m(e,n,t){e.replaceChild(n,t)}function g(e,n){e.removeChild(n)}function $(e){for(var n=0;n<e.length;n++)e[n]()}function y(e,n,t){var r=e.children;if(4&t)return r.$LI;if(8192&t)return 2===e.childFlags?r:r[n?0:r.length-1];return r}function k(e,n){for(var t;e;){if(1521&(t=e.flags))return e.dom;e=y(e,n,t)}return null}function b(e,n){for(var t,r=e.length;void 0!==(t=e.pop());)t((function(){--r<=0&&i(n)&&n()}))}function C(e){for(var n=0;n<e.length;n++)e[n].fn();for(var t=0;t<e.length;t++){var r=e[t];v(r.parent,r.dom,r.next)}e.splice(0,e.length)}function w(e,n,t){do{var r=e.flags;if(1521&r)return void(t&&e.dom.parentNode!==n||g(n,e.dom));var o=e.children;if(4&r&&(e=o.$LI),8&r&&(e=o),8192&r){if(2!==e.childFlags){for(var i=0,l=o.length;i<l;++i)w(o[i],n,!1);return}e=o}}while(e)}function F(e,n){return function(){w(e,n,!0)}}function N(e,n,t){t.componentWillDisappear.length>0?b(t.componentWillDisappear,F(e,n)):w(e,n,!1)}function P(e,n,t,r,o,i,l,a){e.componentWillMove.push({dom:r,fn:function(){4&l?t.componentWillMove(n,o,r):8&l&&t.onComponentWillMove(n,o,r,a)},next:i,parent:o})}function x(e,n,t,o,l){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(r(a)||!i(a.componentWillMove)&&!i(a.onComponentWillMove)?v(t,n.dom,o):P(l,e,a,n.dom,t,o,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d<p;++d)x(e,s[d],t,o,l);return}n=s}}while(n)}function D(e,n,t){if(e.constructor.getDerivedStateFromProps)return u(t,e.constructor.getDerivedStateFromProps(n,t));return t}var S={v:!1},V={componentComparator:null,createVNode:null,renderComplete:null};function M(e,n){e.textContent=n}function U(e,n){return c(e)&&e.event===n.event&&e.data===n.data}function W(e,n){for(var t in n)void 0===e[t]&&(e[t]=n[t]);return e}function I(e,n){return!!i(e)&&(e(n),!0)}var L="$";function A(e,n,t,r,o,i,l,a){this.childFlags=e,this.children=n,this.className=t,this.dom=null,this.flags=r,this.key=void 0===o?null:o,this.props=void 0===i?null:i,this.ref=void 0===l?null:l,this.type=a}function B(e,n,t,r,o,i,l,a){var u=void 0===o?1:o,c=new A(u,r,t,e,l,i,a,n);return V.createVNode&&V.createVNode(c),0===u&&G(c,c.children),c}function E(e,n,t){if(4&e)return t;var o=(32768&e?n.render:n).defaultHooks;if(r(o))return t;if(r(t))return o;return W(t,o)}function T(e,n,t){var o=(32768&e?n.render:n).defaultProps;if(r(o))return t;if(r(t))return u(o,null);return W(t,o)}function _(e,n){if(12&e)return e;if(n.prototype&&n.prototype.render)return 4;if(n.render)return 32776;return 8}function R(e,n){return new A(1,r(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function O(e,n,t){var r=B(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=Q(),r.childFlags=2;break;case 16:r.children=[R(e)],r.childFlags=4}return r}function j(e){var n=e.children,t=e.childFlags;return O(2===t?H(n):n.map(H),t,e.key)}function H(e){var n=-16385&e.flags,t=e.props;if(14&n&&!a(t)){var r=t;for(var o in t={},r)t[o]=r[o]}if(0===(8192&n))return new A(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return j(e)}function Q(){return R("",null)}function X(e,r,i,u){for(var c=e.length;i<c;i++){var f=e[i];if(!o(f)){var s=u+L+i;if(n(f))X(f,r,0,s);else{if(t(f))f=R(f,s);else{var d=f.key,p=l(d)&&d[0]===L;(81920&f.flags||p)&&(f=H(f)),f.flags|=65536,p?d.substring(0,u.length)!==u&&(f.key=u+d):a(d)?f.key=s:f.key=u+d}r.push(f)}}}}function G(e,r){var i,u=1;if(o(r))i=r;else if(t(r))u=16,i=r;else if(n(r)){for(var c=r.length,f=0;f<c;++f){var s=r[f];if(o(s)||n(s)){i=i||r.slice(0,f),X(r,i,f,"");break}if(t(s))(i=i||r.slice(0,f)).push(R(s,L+f));else{var d=s.key,p=(81920&s.flags)>0,v=a(d),h=l(d)&&d[0]===L;p||v||h?(i=i||r.slice(0,f),(p||h)&&(s=H(s)),(v||h)&&(s.key=L+f),i.push(s)):i&&i.push(s),s.flags|=65536}}u=0===(i=i||r).length?1:8}else(i=r).flags|=65536,81920&r.flags&&(i=H(r)),u=2;return e.children=i,e.childFlags=u,e}function K(e){if(o(e)||t(e))return R(e,null);if(n(e))return O(e,0,null);return 16384&e.flags?H(e):e}var q="http://www.w3.org/1999/xlink",z="http://www.w3.org/XML/1998/namespace",J={"xlink:actuate":q,"xlink:arcrole":q,"xlink:href":q,"xlink:role":q,"xlink:show":q,"xlink:title":q,"xlink:type":q,"xml:base":z,"xml:lang":z,"xml:space":z};function Y(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var Z=Y(0),ee=Y(null),ne=Y(!0);function te(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++Z[e]&&(ee[e]=pe(e)),t}function re(e,n){var t=n.$EV;t&&t[e]&&(0===--Z[e]&&(document.removeEventListener(d(e),ee[e]),ee[e]=null),t[e]=null)}function oe(e,n,t,r){if(i(t))te(e,r)[e]=t;else if(c(t)){if(U(n,t))return;te(e,r)[e]=t}else re(e,r)}function ie(e){return i(e.composedPath)?e.composedPath()[0]:e.target}function le(e,n,t,r){var o=ie(e);do{if(n&&o.disabled)return;var i=o.$EV;if(i){var l=i[t];if(l&&(r.dom=o,l.event?l.event(l.data,e):l(e),e.cancelBubble))return}o=o.parentNode}while(!a(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ue(){return this.defaultPrevented}function ce(){return this.cancelBubble}function fe(e){var n={dom:document};return e.isDefaultPrevented=ue,e.isPropagationStopped=ce,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function se(e){return function(n){if(0!==n.button)return void n.stopPropagation();le(n,!0,e,fe(n))}}function de(e){return function(n){le(n,!1,e,fe(n))}}function pe(e){var n="onClick"===e||"onDblClick"===e?se(e):de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function me(e,n){var t=function(t){var r=this.$V;if(!r)return;var o=r.props||f,a=r.dom;if(l(e))he(o,e,t);else for(var u=0;u<e.length;++u)he(o,e[u],t);if(i(n)){var c=this.$V,s=c.props||f;n(s,a,!1,c)}};return Object.defineProperty(t,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),t}function ge(e,n,t){var r="$"+n,o=e[r];if(o){if(o[1].wrapped)return;e.removeEventListener(o[0],o[1]),e[r]=null}i(t)&&(e.addEventListener(n,t),e[r]=[n,t])}function $e(e){return"checkbox"===e||"radio"===e}var ye=me("onInput",we),ke=me(["onClick","onChange"],we);function be(e){e.stopPropagation()}function Ce(e,n){$e(n.type)?(ge(e,"change",ke),ge(e,"click",be)):ge(e,"input",ye)}function we(e,n){var t=e.type,o=e.value,i=e.checked,l=e.multiple,a=e.defaultValue,u=!r(o);t&&t!==n.type&&n.setAttribute("type",t),r(l)||l===n.multiple||(n.multiple=l),r(a)||u||(n.defaultValue=a+""),$e(t)?(u&&(n.value=o),r(i)||(n.checked=i)):u&&n.value!==o?(n.defaultValue=o,n.value=o):r(i)||(n.checked=i)}function Fe(e,n){if("option"===e.type)Ne(e,n);else{var t=e.children,r=e.flags;if(4&r)Fe(t.$LI,n);else if(8&r)Fe(t,n);else if(2===e.childFlags)Fe(t,n);else if(12&e.childFlags)for(var o=0,i=t.length;o<i;++o)Fe(t[o],n)}}function Ne(e,t){var o=e.props||f,i=e.dom;i.value=o.value,o.value===t||n(t)&&-1!==t.indexOf(o.value)?i.selected=!0:r(t)&&r(o.selected)||(i.selected=o.selected||!1)}be.wrapped=!0;var Pe=me("onChange",De);function xe(e){ge(e,"change",Pe)}function De(e,n,t,o){var i=Boolean(e.multiple);r(e.multiple)||i===n.multiple||(n.multiple=i);var l=e.selectedIndex;if(-1===l&&(n.selectedIndex=-1),1!==o.childFlags){var a=e.value;"number"===typeof l&&l>-1&&n.options[l]&&(a=n.options[l].value),t&&r(a)&&(a=e.defaultValue),Fe(o,a)}}var Se,Ve,Me=me("onInput",Ie),Ue=me("onChange");function We(e,n){ge(e,"input",Me),n.onChange&&ge(e,"change",Ue)}function Ie(e,n,t){var o=e.value,i=n.value;if(r(o)){if(t){var l=e.defaultValue;r(l)||l===i||(n.defaultValue=l,n.value=l)}}else i!==o&&(n.defaultValue=o,n.value=o)}function Le(e,n,t,r,o,i){64&e?we(r,t):256&e?De(r,t,o,n):128&e&&Ie(r,t,o),i&&(t.$V=n)}function Ae(e,n,t){64&e?Ce(n,t):256&e?xe(n):128&e&&We(n,t)}function Be(e){return e.type&&$e(e.type)?!r(e.checked):!r(e.value)}function Ee(e){e&&!I(e,null)&&e.current&&(e.current=null)}function Te(e,n,t){e&&(i(e)||void 0!==e.current)&&t.push((function(){I(e,n)||void 0===e.current||(e.current=n)}))}function _e(e,n,t){Re(e,t),N(e,n,t)}function Re(e,n){var t,o=e.flags,l=e.children;if(481&o){t=e.ref;var u=e.props;Ee(t);var c=e.childFlags;if(!a(u))for(var d=Object.keys(u),p=0,v=d.length;p<v;p++){var h=d[p];ne[h]&&re(h,e.dom)}12&c?Oe(l,n):2===c&&Re(l,n)}else if(l)if(4&o){i(l.componentWillUnmount)&&l.componentWillUnmount();var m=n;i(l.componentWillDisappear)&&(m=new s,Xe(n,l,l.$LI.dom,o,void 0)),Ee(e.ref),l.$UN=!0,Re(l.$LI,m)}else if(8&o){var g=n;if(!r(t=e.ref)){var $=null;i(t.onComponentWillUnmount)&&($=k(e,!0),t.onComponentWillUnmount($,e.props||f)),i(t.onComponentWillDisappear)&&(g=new s,Xe(n,t,$=$||k(e,!0),o,e.props))}Re(l,g)}else 1024&o?_e(l,e.ref,n):8192&o&&12&e.childFlags&&Oe(l,n)}function Oe(e,n){for(var t=0,r=e.length;t<r;++t)Re(e[t],n)}function je(e,n){return function(){if(n)for(var t=0;t<e.length;t++)w(e[t],n,!1)}}function He(e,n,t){t.componentWillDisappear.length>0?b(t.componentWillDisappear,je(n,e)):e.textContent=""}function Qe(e,n,t,r){Oe(t,r),8192&n.flags?N(n,e,r):He(e,t,r)}function Xe(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function Ge(e){var n=e.event;return function(t){n(e.data,t)}}function Ke(e,n,t,r){if(c(t)){if(U(n,t))return;t=Ge(t)}ge(r,d(e),t)}function qe(e,n,t){if(r(n))return void t.removeAttribute("style");var o,i,a=t.style;if(l(n))return void(a.cssText=n);if(r(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)r(n[o])&&a.removeProperty(o)}}function ze(e,n,t,o,i){var l=e&&e.__html||"",u=n&&n.__html||"";l!==u&&(r(u)||ve(o,u)||(a(t)||(12&t.childFlags?Oe(t.children,i):2===t.childFlags&&Re(t.children,i),t.children=null,t.childFlags=1),o.innerHTML=u))}function Je(e,n,t,o,i,l,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!t;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!t;break;case"defaultChecked":case"value":case"volume":if(l&&"value"===e)break;var c=r(t)?"":t;o[e]!==c&&(o[e]=c);break;case"style":qe(n,t,o);break;case"dangerouslySetInnerHTML":ze(n,t,a,o,u);break;default:ne[e]?oe(e,n,t,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Ke(e,n,t,o):r(t)?o.removeAttribute(e):i&&J[e]?o.setAttributeNS(J[e],e,t):o.setAttribute(e,t)}}function Ye(e,n,t,r,o,i){var l=!1,a=(448&n)>0;for(var u in a&&(l=Be(t))&&Ae(n,r,t),t)Je(u,null,t[u],r,o,l,null,i);a&&Le(n,e,r,t,!0,l)}function Ze(e,n,t){var r=K(e.render(n,e.state,t)),o=t;return i(e.getChildContext)&&(o=u(t,e.getChildContext())),e.$CX=o,r}function en(e,n,t,r,o,l){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=l,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=D(u,t,u.state);else if(i(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!a(s)){var d=u.state;if(a(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=Ze(u,t,r),u}function nn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,o,i,l){var a=e.flags|=16384;481&a?an(e,n,t,r,o,i,l):4&a?cn(e,n,t,r,o,i,l):8&a?fn(e,n,t,r,o,i,l):16&a?ln(e,n,o):8192&a?on(e,t,n,r,o,i,l):1024&a&&rn(e,t,n,o,i,l)}function rn(e,n,t,r,o,i){tn(e.children,e.ref,n,!1,null,o,i);var l=Q();ln(l,t,r),e.dom=l.dom}function on(e,n,t,r,o,i,l){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=Q()),2===u?tn(a,t,n,r,o,i,l):un(a,t,n,r,o,i,l)}function ln(e,n,t){var r=e.dom=document.createTextNode(e.children);a(n)||v(n,r,t)}function an(e,n,t,o,i,l,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(r(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)M(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=H(m)),tn(m,p,t,g,null,l,u)):8!==d&&4!==d||un(m,p,t,g,null,l,u)}a(n)||v(n,p,i),a(f)||Ye(e,c,f,p,o,u),Te(e.ref,p,l)}function un(e,n,t,r,o,i,l){for(var a=0;a<e.length;++a){var u=e[a];16384&u.flags&&(e[a]=u=H(u)),tn(u,n,t,r,o,i,l)}}function cn(e,n,t,r,o,l,a){var u=en(e,e.type,e.props||f,t,r,l),c=a;i(u.componentDidAppear)&&(c=new s),tn(u.$LI,n,u.$CX,r,o,l,c),pn(e.ref,u,l,a)}function fn(e,n,t,o,l,a,u){var c=e.ref,f=u;!r(c)&&i(c.onComponentDidAppear)&&(f=new s),tn(e.children=K(nn(e,t)),n,t,o,l,a,f),hn(e,a,u)}function sn(e){return function(){e.componentDidMount()}}function dn(e,n,t,r,o){e.componentDidAppear.push((function(){4&r?n.componentDidAppear(t):8&r&&n.onComponentDidAppear(t,o)}))}function pn(e,n,t,r){Te(e,n,t),i(n.componentDidMount)&&t.push(sn(n)),i(n.componentDidAppear)&&dn(r,n,n.$LI.dom,4,void 0)}function vn(e,n){return function(){e.onComponentDidMount(k(n,!0),n.props||f)}}function hn(e,n,t){var o=e.ref;r(o)||(I(o.onComponentWillMount,e.props||f),i(o.onComponentDidMount)&&n.push(vn(o,e)),i(o.onComponentDidAppear)&&dn(t,o,k(e,!0),8,e.props))}function mn(e,n,t,r,o,i,l){Re(e,l),0!==(n.flags&e.flags&1521)?(tn(n,null,r,o,null,i,l),m(t,n.dom,e.dom)):(tn(n,t,r,o,k(e,!0),i,l),N(e,t,l))}function gn(e,n,t,r,o,i,l,a){var u=n.flags|=16384;e.flags!==u||e.type!==n.type||e.key!==n.key||2048&u?16384&e.flags?mn(e,n,t,r,o,l,a):tn(n,t,r,o,i,l,a):481&u?Cn(e,n,r,o,u,l,a):4&u?xn(e,n,t,r,o,i,l,a):8&u?Dn(e,n,t,r,o,i,l,a):16&u?Sn(e,n):8192&u?kn(e,n,t,r,o,l,a):bn(e,n,r,l,a)}function $n(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:M(t,n))}function yn(e,n){e.textContent!==n&&(e.textContent=n)}function kn(e,n,t,r,o,i,l){var a=e.children,u=n.children,c=e.childFlags,f=n.childFlags,s=null;12&f&&0===u.length&&(f=n.childFlags=2,u=n.children=Q());var d=0!==(2&f);if(12&c){var p=a.length;(8&c&&8&f||d||!d&&u.length>p)&&(s=k(a[p-1],!1).nextSibling)}Fn(c,f,a,u,t,r,o,s,e,i,l)}function bn(e,n,t,r,i){var l=e.ref,a=n.ref,u=n.children;if(Fn(e.childFlags,n.childFlags,e.children,u,l,t,!1,null,e,r,i),n.dom=e.dom,l!==a&&!o(u)){var c=u.dom;g(l,c),p(a,c)}}function Cn(e,n,t,o,i,l,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&i)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&i)>0)&&(v=Be(u)),u){var g=h[m],$=u[m];g!==$&&Je(m,g,$,c,o,v,e,a)}if(h!==f)for(var y in h)r(u[y])&&!r(h[y])&&Je(y,h[y],null,c,o,v,e,a)}var k=n.children,b=n.className;e.className!==b&&(r(b)?c.removeAttribute("class"):o?c.setAttribute("class",b):c.className=b),4096&i?yn(c,k):Fn(e.childFlags,n.childFlags,e.children,k,c,t,o&&"foreignObject"!==n.type,null,e,l,a),p&&Le(i,n,c,u,!1,v);var C=n.ref,w=e.ref;w!==C&&(Ee(w),Te(C,c,l))}function wn(e,n,t,r,o,i,l){Re(e,l),un(n,t,r,o,k(e,!0),i,l),N(e,t,l)}function Fn(e,n,t,r,o,i,l,a,u,c,f){switch(e){case 2:switch(n){case 2:gn(t,r,o,i,l,a,c,f);break;case 1:_e(t,o,f);break;case 16:Re(t,f),M(o,r);break;default:wn(t,r,o,i,l,c,f)}break;case 1:switch(n){case 2:tn(r,o,i,l,a,c,f);break;case 1:break;case 16:M(o,r);break;default:un(r,o,i,l,a,c,f)}break;case 16:switch(n){case 16:$n(t,r,o);break;case 2:He(o,t,f),tn(r,o,i,l,a,c,f);break;case 1:He(o,t,f);break;default:He(o,t,f),un(r,o,i,l,a,c,f)}break;default:switch(n){case 16:Oe(t,f),M(o,r);break;case 2:Qe(o,u,t,f),tn(r,o,i,l,a,c,f);break;case 1:Qe(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&un(r,o,i,l,a,c,f):0===d?Qe(o,u,t,f):8===n&&8===e?Mn(t,r,o,i,l,s,d,a,u,c,f):Vn(t,r,o,i,l,s,d,a,c,f)}}}function Nn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function Pn(e,n,t,r,o,l,a,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=i(e.shouldComponentUpdate);if(v&&(n=D(e,t,n!==d?u(d,n):n)),a||!h||h&&e.shouldComponentUpdate(t,n,o)){!v&&i(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var m=null,g=Ze(e,t,o);v&&i(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),gn(e.$LI,g,r,e.$CX,l,c,f,s),e.$LI=g,i(e.componentDidUpdate)&&Nn(e,p,d,m,f)}else e.props=t,e.state=n,e.context=o}function xn(e,n,t,r,o,l,c,s){var d=n.children=e.children;if(a(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(i(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}a(d.$PS)||(m=u(m,d.$PS),d.$PS=null)}Pn(d,m,p,t,r,o,!1,l,c,s),h!==v&&(Ee(h),Te(v,d,c))}function Dn(e,n,t,o,l,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!r(p),m=e.children;if(h&&i(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&i(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=K(nn(n,o));gn(m,g,t,o,l,a,u,c),n.children=g,h&&i(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function Sn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Vn(e,n,t,r,o,i,l,a,u,c){for(var f,s,d=i>l?l:i,p=0;p<d;++p)f=n[p],s=e[p],16384&f.flags&&(f=n[p]=H(f)),gn(s,f,t,r,o,a,u,c),e[p]=f;if(i<l)for(p=d;p<l;++p)16384&(f=n[p]).flags&&(f=n[p]=H(f)),tn(f,t,r,o,a,u,c);else if(i>l)for(p=d;p<i;++p)_e(e[p],t,c)}function Mn(e,n,t,r,o,i,l,a,u,c,f){var s,d,p=i-1,v=l-1,h=0,m=e[h],g=n[h];e:{for(;m.key===g.key;){if(16384&g.flags&&(n[h]=g=H(g)),gn(m,g,t,r,o,a,c,f),e[h]=g,++h>p||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=H(g)),gn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)<l?k(n[s],!0):a;h<=v;)16384&(g=n[h]).flags&&(n[h]=g=H(g)),++h,tn(g,t,r,o,d,c,f)}else if(h>v)for(;h<=p;)_e(e[h++],t,f);else Un(e,n,r,i,l,p,v,h,t,o,a,u,c,f)}function Un(e,n,t,r,o,i,l,a,u,c,f,s,d,p){var v,h,m=0,g=0,$=a,y=a,b=i-a+1,w=l-a+1,F=new Int32Array(w+1),N=b===r,P=!1,D=0,S=0;if(o<4||(b|w)<32)for(g=$;g<=i;++g)if(v=e[g],S<w){for(a=y;a<=l;a++)if(h=n[a],v.key===h.key){if(F[a-y]=g+1,N)for(N=!1;$<g;)_e(e[$++],u,p);D>a?P=!0:D=a,16384&h.flags&&(n[a]=h=H(h)),gn(v,h,u,t,c,f,d,p),++S;break}!N&&a>l&&_e(v,u,p)}else N||_e(v,u,p);else{var V={};for(g=y;g<=l;++g)V[n[g].key]=g;for(g=$;g<=i;++g)if(v=e[g],S<w)if(void 0!==(a=V[v.key])){if(N)for(N=!1;g>$;)_e(e[$++],u,p);F[a-y]=g+1,D>a?P=!0:D=a,16384&(h=n[a]).flags&&(n[a]=h=H(h)),gn(v,h,u,t,c,f,d,p),++S}else N||_e(v,u,p);else N||_e(v,u,p)}if(N)Qe(u,s,e,p),un(n,u,t,c,f,d,p);else if(P){var M=In(F);for(a=M.length-1,g=w-1;g>=0;g--)0===F[g]?(16384&(h=n[D=g+y]).flags&&(n[D]=h=H(h)),tn(h,u,t,c,(m=D+1)<o?k(n[m],!0):f,d,p)):a<0||g!==M[a]?x(s,h=n[D=g+y],u,(m=D+1)<o?k(n[m],!0):f,p):a--;p.componentWillMove.length>0&&C(p.componentWillMove)}else if(S!==w)for(g=w-1;g>=0;g--)0===F[g]&&(16384&(h=n[D=g+y]).flags&&(n[D]=h=H(h)),tn(h,u,t,c,(m=D+1)<o?k(n[m],!0):f,d,p))}var Wn=0;function In(e){var n=0,t=0,r=0,o=0,i=0,l=0,a=0,u=e.length;for(u>Wn&&(Wn=u,Se=new Int32Array(u),Ve=new Int32Array(u));t<u;++t)if(0!==(n=e[t])){if(e[r=Se[o]]<n){Ve[t]=r,Se[++o]=t;continue}for(i=0,l=o;i<l;)e[Se[a=i+l>>1]]<n?i=a+1:l=a;n<e[Se[i]]&&(i>0&&(Ve[t]=Se[i-1]),Se[i]=t)}i=o+1;var c=new Int32Array(i);for(l=Se[i-1];i-- >0;)c[i]=l,l=Ve[l],Se[i]=0;return c}function Ln(e,n,t,o){var l=[],a=new s,u=n.$V;S.v=!0,r(u)?r(e)||(16384&e.flags&&(e=H(e)),tn(e,n,o,!1,null,l,a),n.$V=e,u=e):r(e)?(_e(u,n,a),n.$V=null):(16384&e.flags&&(e=H(e)),gn(u,e,n,o,!1,null,l,a),u=n.$V=e),$(l),b(a.componentDidAppear),S.v=!1,i(t)&&t(),i(V.renderComplete)&&V.renderComplete(u,n)}function An(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Ln(e,n,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Bn=[],En="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},Tn=!1;function _n(e,n,t,o){var l=e.$PS;if(i(n)&&(n=n(l?u(e.state,l):e.state,e.props,e.context)),r(l))e.$PS=n;else for(var a in n)l[a]=n[a];if(e.$BR)i(t)&&e.$L.push(t.bind(e));else{if(!S.v&&0===Bn.length)return jn(e,o),void(i(t)&&t.call(e));if(-1===Bn.indexOf(e)&&Bn.push(e),o&&(e.$F=!0),Tn||(Tn=!0,En(On)),i(t)){var c=e.$QU;c||(c=e.$QU=[]),c.push(t)}}}function Rn(e){for(var n=e.$QU,t=0;t<n.length;++t)n[t].call(e);e.$QU=null}function On(){var e;for(Tn=!1;e=Bn.shift();)if(!e.$UN){var n=e.$F;e.$F=!1,jn(e,n),e.$QU&&Rn(e)}}function jn(e,n){if(n||!e.$BR){var t=e.$PS;e.$PS=null;var r=[],o=new s;S.v=!0,Pn(e,u(e.state,t),e.props,k(e.$LI,!0).parentNode,e.context,e.$SVG,n,null,r,o),$(r),b(o.componentDidAppear),S.v=!1}else e.state=e.$PS,e.$PS=null}var Hn=function(){function e(e,n){this.state=null,this.props=void 0,this.context=void 0,this.displayName=void 0,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$SSR=void 0,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=e||f,this.context=n||f}var n=e.prototype;return n.forceUpdate=function(e){if(this.$UN)return;_n(this,{},e,!0)},n.setState=function(e,n){if(this.$UN)return;this.$BS||_n(this,e,n,!1)},n.render=function(e,n,t){return null},e}();Hn.defaultProps=null,e.AnimationQueues=s,e.Component=Hn,e.EMPTY_OBJ=f,e.Fragment="$F",e._CI=en,e._HI=K,e._M=tn,e._MCCC=pn,e._ME=an,e._MFCC=hn,e._MP=Ye,e._MR=Te,e._RFC=nn,e.__render=Ln,e.createComponentVNode=function(e,n,t,r,o){var i=new A(1,null,null,e=_(e,n),r,T(e,n,t),E(e,n,o),n);return V.createVNode&&V.createVNode(i),i},e.createFragment=O,e.createPortal=function(e,n){var t=K(e);return B(1024,1024,null,t,0,null,t.key,n)},e.createRef=function(){return{current:null}},e.createRenderer=function(e){return function(n,t,r,o){e||(e=n),An(t,e,r,o)}},e.createTextVNode=R,e.createVNode=B,e.directClone=H,e.findDOMFromVNode=k,e.forwardRef=function(e){return{render:e}},e.getFlagsForElementVnode=function(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}},e.linkEvent=function(e,n){if(i(n))return{data:e,event:n};return null},e.normalizeProps=function(e){var n=e.props;if(n){var t=e.flags;481&t&&(void 0!==n.children&&r(e.children)&&G(e,n.children),void 0!==n.className&&(r(e.className)&&(e.className=n.className||null),n.className=void 0)),void 0!==n.key&&(e.key=n.key,n.key=void 0),void 0!==n.ref&&(e.ref=8&t?u(e.ref,n.ref):n.ref,n.ref=void 0)}return e},e.options=V,e.render=An,e.rerender=On,e.version="8.2.3"}));
!function(e,n){"object"===typeof exports&&"undefined"!==typeof module?n(exports):"function"===typeof define&&define.amd?define(["exports"],n):n((e="undefined"!==typeof globalThis?globalThis:e||self).Inferno=e.Inferno||{})}(this,(function(e){"use strict";var n=Array.isArray;function t(e){var n=typeof e;return"string"===n||"number"===n}function r(e){return void 0===e||null===e}function o(e){return null===e||!1===e||!0===e||void 0===e}function i(e){return"function"===typeof e}function l(e){return"string"===typeof e}function a(e){return null===e}function u(e){return!a(e)&&"object"===typeof e}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},c.apply(null,arguments)}var f={},s=function(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]};function d(e){return e.substring(2).toLowerCase()}function p(e,n){e.appendChild(n)}function v(e,n,t){a(t)?p(e,n):e.insertBefore(n,t)}function h(e,n){if(n)return document.createElementNS("http://www.w3.org/2000/svg",e);return document.createElement(e)}function m(e,n,t){e.replaceChild(n,t)}function g(e,n){e.removeChild(n)}function y(e){for(var n=0;n<e.length;n++)e[n]()}function $(e,n,t){var r=e.children;if(0!==(4&t))return r.$LI;if(0!==(8192&t))return 2===e.childFlags?r:r[n?0:r.length-1];return r}function b(e,n){for(var t,o=e;!r(o);){if(0!==(1521&(t=o.flags)))return o.dom;o=$(o,n,t)}return null}function k(e,n){for(var t,r=e.length;void 0!==(t=e.pop());)t((function(){--r<=0&&i(n)&&n()}))}function C(e){for(var n=0;n<e.length;n++)e[n].fn();for(var t=0;t<e.length;t++){var r=e[t];v(r.parent,r.dom,r.next)}e.splice(0,e.length)}function w(e,n,t){for(;!r(e);){var o=e.flags;if(0!==(1521&o))return void(t&&e.dom.parentNode!==n||g(n,e.dom));var i=e.children;if(0!==(4&o)&&(e=i.$LI),0!==(8&o)&&(e=i),0!==(8192&o)){if(2!==e.childFlags){for(var l=0,a=i.length;l<a;++l)w(i[l],n,!1);return}e=i}}}function F(e,n){return function(){w(e,n,!0)}}function P(e,n,t){t.componentWillDisappear.length>0?k(t.componentWillDisappear,F(e,n)):w(e,n,!1)}function N(e,n,t,r,o,i,l,a){e.componentWillMove.push({dom:r,fn:function(){0!==(4&l)?t.componentWillMove(n,o,r):0!==(8&l)&&t.onComponentWillMove(n,o,r,a)},next:i,parent:o})}function x(e,n,t,o,l){for(var a,u,c=n.flags;!r(n);){var f=n.flags;if(0!==(1521&f))return void(r(a)||!i(a.componentWillMove)&&!i(a.onComponentWillMove)?v(t,n.dom,o):N(l,e,a,n.dom,t,o,c,u));var s=n.children;if(0!==(4&f))a=n.children,u=n.props,n=s.$LI;else if(0!==(8&f))a=n.ref,u=n.props,n=s;else if(0!==(8192&f)){if(2!==n.childFlags){for(var d=0,p=s.length;d<p;++d)x(e,s[d],t,o,l);return}n=s}}}function D(e,n,t){if(i(e.constructor.getDerivedStateFromProps))return c({},t,e.constructor.getDerivedStateFromProps(n,t));return t}var S={v:!1},V={createVNode:null};function M(e,n){e.textContent=n}function U(e,n){return u(e)&&e.event===n.event&&e.data===n.data}function W(e,n){for(var t in n)void 0===e[t]&&(e[t]=n[t]);return e}function I(e,n){return i(e)&&(e(n),!0)}function L(){return L=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},L.apply(null,arguments)}var A="$";function O(e,n,t,r,o,i,l,a){this.childFlags=e,this.children=n,this.className=t,this.dom=null,this.flags=r,this.key=void 0===o?null:o,this.props=void 0===i?null:i,this.ref=void 0===l?null:l,this.type=a}function B(e,n,t,r,o,i,l,a){var u=void 0===o?1:o,c=new O(u,r,t,e,l,i,a,n);return V.createVNode&&V.createVNode(c),0===u&&K(c,c.children),c}function j(e,n,t){if(4&e)return t;var o=(32768&e?n.render:n).defaultHooks;if(r(o))return t;if(r(t))return o;return W(t,o)}function E(e,n,t){var o=(32768&e?n.render:n).defaultProps;if(r(o))return t;if(r(t))return L({},o);return W(t,o)}function T(e,n){var t;if(12&e)return e;if(null!=(t=n.prototype)&&t.render)return 4;if(n.render)return 32776;return 8}function R(e,n){return new O(1,r(e)||!0===e||!1===e?"":e,null,16,n,null,null,null)}function _(e,n,t){var r=B(8192,8192,null,e,n,null,t,null);switch(r.childFlags){case 1:r.children=X(),r.childFlags=2;break;case 16:r.children=[R(e)],r.childFlags=4}return r}function H(e){var n=e.children,t=e.childFlags;return _(2===t?Q(n):n.map(Q),t,e.key)}function Q(e){var n=-16385&e.flags,t=e.props;if(14&n&&!a(t)){var r=t;for(var o in t={},r)t[o]=r[o]}if(0===(8192&n))return new O(e.childFlags,e.children,e.className,n,e.key,t,e.ref,e.type);return H(e)}function X(){return R("",null)}function G(e,r,i,u){for(var c=e.length;i<c;i++){var f=e[i];if(!o(f)){var s=u+A+i;if(n(f))G(f,r,0,s);else{if(t(f))f=R(f,s);else{var d=f.key,p=l(d)&&d[0]===A;(81920&f.flags||p)&&(f=Q(f)),f.flags|=65536,p?d.substring(0,u.length)!==u&&(f.key=u+d):a(d)?f.key=s:f.key=u+d}r.push(f)}}}}function K(e,r){var i,u=1;if(o(r))i=r;else if(t(r))u=16,i=r;else if(n(r)){for(var c=r.length,f=0;f<c;++f){var s=r[f];if(o(s)||n(s)){i=i||r.slice(0,f),G(r,i,f,"");break}if(t(s))(i=i||r.slice(0,f)).push(R(s,A+f));else{var d=s.key,p=(81920&s.flags)>0,v=a(d),h=l(d)&&d[0]===A;p||v||h?(i=i||r.slice(0,f),(p||h)&&(s=Q(s)),(v||h)&&(s.key=A+f),i.push(s)):i&&i.push(s),s.flags|=65536}}u=0===(i=i||r).length?1:8}else(i=r).flags|=65536,81920&r.flags&&(i=Q(r)),u=2;return e.children=i,e.childFlags=u,e}function q(e){if(o(e)||t(e))return R(e,null);if(n(e))return _(e,0,null);return 16384&e.flags?Q(e):e}var z="http://www.w3.org/1999/xlink",J="http://www.w3.org/XML/1998/namespace",Y={"xlink:actuate":z,"xlink:arcrole":z,"xlink:href":z,"xlink:role":z,"xlink:show":z,"xlink:title":z,"xlink:type":z,"xml:base":J,"xml:lang":J,"xml:space":J};function Z(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var ee=Z(0),ne=Z(null),te=Z(!0);function re(e,n){var t=n.$EV;return t||(t=n.$EV=Z(null)),t[e]||1===++ee[e]&&(ne[e]=pe(e)),t}function oe(e,n){var t=n.$EV;null!=t&&t[e]&&(0===--ee[e]&&(document.removeEventListener(d(e),ne[e]),ne[e]=null),t[e]=null)}function ie(e,n,t,r){if(i(t))re(e,r)[e]=t;else if(u(t)){if(U(n,t))return;re(e,r)[e]=t}else oe(e,r)}function le(e){return i(e.composedPath)?e.composedPath()[0]:e.target}function ae(e,n,t,o){var i=le(e);do{if(n&&i.disabled)return;var l=i.$EV;if(!r(l)){var u=l[t];if(u&&(o.dom=i,u.event?u.event(u.data,e):u(e),e.cancelBubble))return}i=i.parentNode}while(!a(i))}function ue(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ce(){return this.defaultPrevented}function fe(){return this.cancelBubble}function se(e){var n={dom:document};return e.isDefaultPrevented=ce,e.isPropagationStopped=fe,e.stopPropagation=ue,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function de(e){var n="onClick"===e||"onDblClick"===e;return function(t){ae(t,n,e,se(t))}}function pe(e){var n=de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(e,n,t){var r=e[n];if(r)r.event?r.event(r.data,t):r(t);else{var o=n.toLowerCase();i(e[o])&&e[o](t)}}function me(e,n){var t=function(t){var o,a=this.$V;if(r(a))return;var u=null!=(o=a.props)?o:f,c=a.dom;if(l(e))he(u,e,t);else for(var s=0;s<e.length;++s)he(u,e[s],t);if(i(n)){var d,p=this.$V,v=null!=(d=p.props)?d:f;n(v,c,!1,p)}};return Object.defineProperty(t,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),t}function ge(e,n,t){var r="$"+n,o=e[r];if(o){if(o[1].wrapped)return;e.removeEventListener(o[0],o[1]),e[r]=null}i(t)&&(e.addEventListener(n,t),e[r]=[n,t])}function ye(e){return"checkbox"===e||"radio"===e}var $e=me("onInput",we),be=me(["onClick","onChange"],we);function ke(e){e.stopPropagation()}function Ce(e,n){ye(n.type)?(ge(e,"change",be),ge(e,"click",ke)):ge(e,"input",$e)}function we(e,n){var t=e.type,o=e.value,i=e.checked,l=e.multiple,a=e.defaultValue,u=!r(o);null!=t&&t!==n.type&&n.setAttribute("type",t),r(l)||l===n.multiple||(n.multiple=l),r(a)||u||(n.defaultValue=a+""),ye(t)?(u&&(n.value=o),r(i)||(n.checked=i)):u&&n.value!==o?(n.defaultValue=o,n.value=o):r(i)||(n.checked=i)}function Fe(e,n){if("option"===e.type)Pe(e,n);else{var t=e.children,r=e.flags;if(0!==(4&r))Fe(t.$LI,n);else if(0!==(8&r))Fe(t,n);else if(2===e.childFlags)Fe(t,n);else if(0!==(12&e.childFlags))for(var o=0,i=t.length;o<i;++o)Fe(t[o],n)}}function Pe(e,t){var o,i=null!=(o=e.props)?o:f,l=i.value,a=e.dom;a.value=l,l===t||n(t)&&t.includes(l)?a.selected=!0:r(t)&&r(i.selected)||(a.selected=Boolean(i.selected))}ke.wrapped=!0;var Ne=me("onChange",De);function xe(e){ge(e,"change",Ne)}function De(e,n,t,o){var i=Boolean(e.multiple);r(e.multiple)||i===n.multiple||(n.multiple=i);var l=e.selectedIndex;if(-1===l&&(n.selectedIndex=-1),1!==o.childFlags){var a=e.value;"number"===typeof l&&l>-1&&!r(n.options[l])&&(a=n.options[l].value),t&&r(a)&&(a=e.defaultValue),Fe(o,a)}}var Se,Ve,Me=me("onInput",Ie),Ue=me("onChange");function We(e,n){ge(e,"input",Me),i(n.onChange)&&ge(e,"change",Ue)}function Ie(e,n,t){var o=e.value,i=n.value;if(r(o)){if(t){var l=e.defaultValue;r(l)||l===i||(n.defaultValue=l,n.value=l)}}else i!==o&&(n.defaultValue=o,n.value=o)}function Le(e,n,t,r,o,i){0!==(64&e)?we(r,t):0!==(256&e)?De(r,t,o,n):0!==(128&e)&&Ie(r,t,o),i&&(t.$V=n)}function Ae(e,n,t){0!==(64&e)?Ce(n,t):0!==(256&e)?xe(n):0!==(128&e)&&We(n,t)}function Oe(e){return ye(e.type)?!r(e.checked):!r(e.value)}function Be(e){r(e)||!I(e,null)&&e.current&&(e.current=null)}function je(e,n,t){r(e)||!i(e)&&void 0===e.current||t.push((function(){I(e,n)||void 0===e.current||(e.current=n)}))}function Ee(e,n,t){Te(e,t),P(e,n,t)}function Te(e,n){var t,o=e.flags,l=e.children;if(0!==(481&o)){t=e.ref;var u=e.props;Be(t);var c=e.childFlags;if(!a(u))for(var d=Object.keys(u),p=0,v=d.length;p<v;p++){var h=d[p];te[h]&&oe(h,e.dom)}12&c?Re(l,n):2===c&&Te(l,n)}else if(l)if(4&o){i(l.componentWillUnmount)&&l.componentWillUnmount();var m=n;i(l.componentWillDisappear)&&(m=new s,Xe(n,l,l.$LI.dom,o,void 0)),Be(e.ref),l.$UN=!0,Te(l.$LI,m)}else if(8&o){var g=n;if(!r(t=e.ref)){var y=null;i(t.onComponentWillUnmount)&&(y=b(e,!0),t.onComponentWillUnmount(y,e.props||f)),i(t.onComponentWillDisappear)&&(g=new s,Xe(n,t,y=y||b(e,!0),o,e.props))}Te(l,g)}else 1024&o?Ee(l,e.ref,n):8192&o&&12&e.childFlags&&Re(l,n)}function Re(e,n){for(var t=0,r=e.length;t<r;++t)Te(e[t],n)}function _e(e,n){return function(){if(n)for(var t=0;t<e.length;t++)w(e[t],n,!1)}}function He(e,n,t){t.componentWillDisappear.length>0?k(t.componentWillDisappear,_e(n,e)):e.textContent=""}function Qe(e,n,t,r){Re(t,r),8192&n.flags?P(n,e,r):He(e,t,r)}function Xe(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function Ge(e){var n=e.event;return function(t){n(e.data,t)}}function Ke(e,n,t,r){if(u(t)){if(U(n,t))return;t=Ge(t)}ge(r,d(e),t)}function qe(e,n,t){if(r(n))return void t.removeAttribute("style");var o,i,a=t.style;if(l(n))return void(a.cssText=n);if(r(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)r(n[o])&&a.removeProperty(o)}}function ze(e,n,t,o,i){var l=(null==e?void 0:e.__html)||"",u=(null==n?void 0:n.__html)||"";l!==u&&(r(u)||ve(o,u)||(a(t)||(12&t.childFlags?Re(t.children,i):2===t.childFlags&&Te(t.children,i),t.children=null,t.childFlags=1),o.innerHTML=u))}function Je(e,n,t){var o=r(e)?"":e;n[t]!==o&&(n[t]=o)}function Ye(e,n,t,o,i,l,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!t;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!t;break;case"defaultChecked":case"value":case"volume":if(l&&"value"===e)break;Je(t,o,e);break;case"style":qe(n,t,o);break;case"dangerouslySetInnerHTML":ze(n,t,a,o,u);break;default:te[e]?ie(e,n,t,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Ke(e,n,t,o):r(t)?o.removeAttribute(e):i&&Y[e]?o.setAttributeNS(Y[e],e,t):o.setAttribute(e,t)}}function Ze(e,n,t,r,o,i){var l=!1,a=(448&n)>0;for(var u in a&&(l=Oe(t))&&Ae(n,r,t),t)Ye(u,null,t[u],r,o,l,null,i);a&&Le(n,e,r,t,!0,l)}function en(){return en=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},en.apply(null,arguments)}function nn(e,n,t){var r=q(e.render(n,e.state,t)),o=t;return i(e.getChildContext)&&(o=en({},t,e.getChildContext())),e.$CX=o,r}function tn(e,n,t,r,o,l){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=o,u.$L=l,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=D(u,t,u.state);else if(i(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!a(s)){var d=u.state;if(a(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=nn(u,t,r),u}function rn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function on(e,n,t,r,o,i,l){var a=e.flags|=16384;0!==(481&a)?cn(e,n,t,r,o,i,l):0!==(4&a)?sn(e,n,t,r,o,i,l):8&a?dn(e,n,t,r,o,i,l):16&a?un(e,n,o):8192&a?an(e,t,n,r,o,i,l):1024&a&&ln(e,t,n,o,i,l)}function ln(e,n,t,r,o,i){on(e.children,e.ref,n,!1,null,o,i);var l=X();un(l,t,r),e.dom=l.dom}function an(e,n,t,r,o,i,l){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=X()),2===u?on(a,t,n,r,o,i,l):fn(a,t,n,r,o,i,l)}function un(e,n,t){var r=e.dom=document.createTextNode(e.children);a(n)||v(n,r,t)}function cn(e,n,t,o,i,l,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(r(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)M(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=Q(m)),on(m,p,t,g,null,l,u)):8!==d&&4!==d||fn(m,p,t,g,null,l,u)}a(n)||v(n,p,i),a(f)||Ze(e,c,f,p,o,u),je(e.ref,p,l)}function fn(e,n,t,r,o,i,l){for(var a=0;a<e.length;++a){var u=e[a];16384&u.flags&&(e[a]=u=Q(u)),on(u,n,t,r,o,i,l)}}function sn(e,n,t,r,o,l,a){var u=tn(e,e.type,e.props||f,t,r,l),c=a;i(u.componentDidAppear)&&(c=new s),on(u.$LI,n,u.$CX,r,o,l,c),mn(e.ref,u,l,a)}function dn(e,n,t,o,l,a,u){var c=e.ref,f=u;!r(c)&&i(c.onComponentDidAppear)&&(f=new s),on(e.children=q(rn(e,t)),n,t,o,l,a,f),yn(e,a,u)}function pn(e){return function(){e.componentDidMount()}}function vn(e,n,t){e.componentDidAppear.push((function(){n.componentDidAppear(t)}))}function hn(e,n,t,r){e.componentDidAppear.push((function(){n.onComponentDidAppear(t,r)}))}function mn(e,n,t,r){je(e,n,t),i(n.componentDidMount)&&t.push(pn(n)),i(n.componentDidAppear)&&vn(r,n,n.$LI.dom)}function gn(e,n){return function(){e.onComponentDidMount(b(n,!0),n.props||f)}}function yn(e,n,t){var o=e.ref;r(o)||(I(o.onComponentWillMount,e.props||f),i(o.onComponentDidMount)&&n.push(gn(o,e)),i(o.onComponentDidAppear)&&hn(t,o,b(e,!0),e.props))}function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},$n.apply(null,arguments)}function bn(e,n,t,r,o,i,l){Te(e,l),0!==(n.flags&e.flags&1521)?(on(n,null,r,o,null,i,l),m(t,n.dom,e.dom)):(on(n,t,r,o,b(e,!0),i,l),P(e,t,l))}function kn(e,n,t,r,o,i,l,a){var u=n.flags|=16384;e.flags!==u||e.type!==n.type||e.key!==n.key||2048&u?16384&e.flags?bn(e,n,t,r,o,l,a):on(n,t,r,o,i,l,a):481&u?Nn(e,n,r,o,l,a):4&u?Un(e,n,t,r,o,i,l,a):8&u?Wn(e,n,t,r,o,i,l,a):16&u?In(e,n):8192&u?Fn(e,n,t,r,o,l,a):Pn(e,n,r,l,a)}function Cn(e,n,t){e!==n&&(""!==e?t.firstChild.nodeValue=n:M(t,n))}function wn(e,n){e.textContent!==n&&(e.textContent=n)}function Fn(e,n,t,r,o,i,l){var a=e.children,u=n.children,c=e.childFlags,f=n.childFlags,s=null;12&f&&0===u.length&&(f=n.childFlags=2,u=n.children=X());var d=0!==(2&f);if(12&c){var p=a.length;(8&c&&8&f||d||!d&&u.length>p)&&(s=b(a[p-1],!1).nextSibling)}Sn(c,f,a,u,t,r,o,s,e,i,l)}function Pn(e,n,t,r,i){var l=e.ref,a=n.ref,u=n.children;if(Sn(e.childFlags,n.childFlags,e.children,u,l,t,!1,null,e,r,i),n.dom=e.dom,l!==a&&!o(u)){var c=u.dom;g(l,c),p(a,c)}}function Nn(e,n,t,o,i,l){var a,u=n.dom=e.dom,c=e.props,s=n.props,d=n.flags,p=!1,v=!1;if(o=o||(32&d)>0,c!==s){var h=c||f;if((a=s||f)!==f)for(var m in(p=(448&d)>0)&&(v=Oe(a)),a){var g=h[m],y=a[m];g!==y&&Ye(m,g,y,u,o,v,e,l)}if(h!==f)for(var $ in h)r(a[$])&&!r(h[$])&&Ye($,h[$],null,u,o,v,e,l)}var b=n.children,k=n.className;e.className!==k&&(r(k)?u.removeAttribute("class"):o?u.setAttribute("class",k):u.className=k),4096&d?wn(u,b):Sn(e.childFlags,n.childFlags,e.children,b,u,t,o&&"foreignObject"!==n.type,null,e,i,l),p&&Le(d,n,u,a,!1,v);var C=n.ref,w=e.ref;w!==C&&(Be(w),je(C,u,i))}function xn(e,n,t,r,o,i,l){Te(e,l),fn(n,t,r,o,b(e,!0),i,l),P(e,t,l)}function Dn(e,n,t,r,o,i,l,a,u,c,f){var s=0|e.length,d=0|n.length;0===s?d>0&&fn(n,t,r,o,i,l,a):0===d?Qe(t,u,e,a):8===c&&8===f?An(e,n,t,r,o,s,d,i,u,l,a):Ln(e,n,t,r,o,s,d,i,l,a)}function Sn(e,n,t,r,o,i,l,a,u,c,f){switch(e){case 2:switch(n){case 2:kn(t,r,o,i,l,a,c,f);break;case 1:Ee(t,o,f);break;case 16:Te(t,f),M(o,r);break;default:xn(t,r,o,i,l,c,f)}break;case 1:switch(n){case 2:on(r,o,i,l,a,c,f);break;case 1:break;case 16:M(o,r);break;default:fn(r,o,i,l,a,c,f)}break;case 16:switch(n){case 16:Cn(t,r,o);break;case 2:He(o,t,f),on(r,o,i,l,a,c,f);break;case 1:He(o,t,f);break;default:He(o,t,f),fn(r,o,i,l,a,c,f)}break;default:switch(n){case 16:Re(t,f),M(o,r);break;case 2:Qe(o,u,t,f),on(r,o,i,l,a,c,f);break;case 1:Qe(o,u,t,f);break;default:Dn(t,r,o,i,l,a,c,f,u,n,e)}}}function Vn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function Mn(e,n,t,r,o,l,a,u,c,f){var s=e.state,d=e.props,p=Boolean(e.$N),v=i(e.shouldComponentUpdate);if(p&&(n=D(e,t,n!==s?$n({},s,n):n)),a||!v||v&&e.shouldComponentUpdate(t,n,o)){!p&&i(e.componentWillUpdate)&&e.componentWillUpdate(t,n,o),e.props=t,e.state=n,e.context=o;var h=null,m=nn(e,t,o);p&&i(e.getSnapshotBeforeUpdate)&&(h=e.getSnapshotBeforeUpdate(d,s)),kn(e.$LI,m,r,e.$CX,l,u,c,f),e.$LI=m,i(e.componentDidUpdate)&&Vn(e,d,s,h,c)}else e.props=t,e.state=n,e.context=o}function Un(e,n,t,r,o,l,u,c){var s=n.children=e.children;if(a(s))return;s.$L=u;var d=n.props||f,p=n.ref,v=e.ref,h=s.state;if(!s.$N){if(i(s.componentWillReceiveProps)){if(s.$BR=!0,s.componentWillReceiveProps(d,r),s.$UN)return;s.$BR=!1}a(s.$PS)||(h=$n({},h,s.$PS),s.$PS=null)}Mn(s,h,d,t,r,o,!1,l,u,c),v!==p&&(Be(v),je(p,s,u))}function Wn(e,n,t,o,l,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!r(p),m=e.children;if(h&&i(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),s){h&&i(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=q(rn(n,o));kn(m,g,t,o,l,a,u,c),n.children=g,h&&i(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function In(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Ln(e,n,t,r,o,i,l,a,u,c){for(var f,s,d=i>l?l:i,p=0;p<d;++p)f=n[p],s=e[p],16384&f.flags&&(f=n[p]=Q(f)),kn(s,f,t,r,o,a,u,c),e[p]=f;if(i<l)for(p=d;p<l;++p)16384&(f=n[p]).flags&&(f=n[p]=Q(f)),on(f,t,r,o,a,u,c);else if(i>l)for(p=d;p<i;++p)Ee(e[p],t,c)}function An(e,n,t,r,o,i,l,a,u,c,f){var s,d,p=i-1,v=l-1,h=0,m=e[h],g=n[h];e:{for(;m.key===g.key;){if(16384&g.flags&&(n[h]=g=Q(g)),kn(m,g,t,r,o,a,c,f),e[h]=g,++h>p||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=Q(g)),kn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)<l?b(n[s],!0):a;h<=v;)16384&(g=n[h]).flags&&(n[h]=g=Q(g)),++h,on(g,t,r,o,d,c,f)}else if(h>v)for(;h<=p;)Ee(e[h++],t,f);else On(e,n,r,i,l,p,v,h,t,o,a,u,c,f)}function On(e,n,t,r,o,i,l,a,u,c,f,s,d,p){var v,h,m=0,g=0,y=a,$=a,k=i-a+1,w=l-a+1,F=new Int32Array(w+1),P=k===r,N=!1,D=0,S=0;if(o<4||(k|w)<32)for(g=y;g<=i;++g)if(v=e[g],S<w){for(a=$;a<=l;a++)if(h=n[a],v.key===h.key){if(F[a-$]=g+1,P)for(P=!1;y<g;)Ee(e[y++],u,p);D>a?N=!0:D=a,16384&h.flags&&(n[a]=h=Q(h)),kn(v,h,u,t,c,f,d,p),++S;break}!P&&a>l&&Ee(v,u,p)}else P||Ee(v,u,p);else{var V={};for(g=$;g<=l;++g)V[n[g].key]=g;for(g=y;g<=i;++g)if(v=e[g],S<w)if(void 0!==(a=V[v.key])){if(P)for(P=!1;g>y;)Ee(e[y++],u,p);F[a-$]=g+1,D>a?N=!0:D=a,16384&(h=n[a]).flags&&(n[a]=h=Q(h)),kn(v,h,u,t,c,f,d,p),++S}else P||Ee(v,u,p);else P||Ee(v,u,p)}if(P)Qe(u,s,e,p),fn(n,u,t,c,f,d,p);else if(N){var M=jn(F);for(a=M.length-1,g=w-1;g>=0;g--)0===F[g]?(16384&(h=n[D=g+$]).flags&&(n[D]=h=Q(h)),on(h,u,t,c,(m=D+1)<o?b(n[m],!0):f,d,p)):a<0||g!==M[a]?x(s,h=n[D=g+$],u,(m=D+1)<o?b(n[m],!0):f,p):a--;p.componentWillMove.length>0&&C(p.componentWillMove)}else if(S!==w)for(g=w-1;g>=0;g--)0===F[g]&&(16384&(h=n[D=g+$]).flags&&(n[D]=h=Q(h)),on(h,u,t,c,(m=D+1)<o?b(n[m],!0):f,d,p))}var Bn=0;function jn(e){var n=0,t=0,r=0,o=0,i=0,l=0,a=0,u=e.length;for(u>Bn&&(Bn=u,Se=new Int32Array(u),Ve=new Int32Array(u));t<u;++t)if(0!==(n=e[t])){if(e[r=Se[o]]<n){Ve[t]=r,Se[++o]=t;continue}for(i=0,l=o;i<l;)e[Se[a=i+l>>1]]<n?i=a+1:l=a;n<e[Se[i]]&&(i>0&&(Ve[t]=Se[i-1]),Se[i]=t)}i=o+1;var c=new Int32Array(i);for(l=Se[i-1];i-- >0;)c[i]=l,l=Ve[l],Se[i]=0;return c}function En(e,n,t,o){var l=[],a=new s,u=n.$V;S.v=!0,r(u)?r(e)||(0!==(16384&e.flags)&&(e=Q(e)),on(e,n,o,!1,null,l,a),n.$V=e,u=e):r(e)?(Ee(u,n,a),n.$V=null):(16384&e.flags&&(e=Q(e)),kn(u,e,n,o,!1,null,l,a),u=n.$V=e),y(l),k(a.componentDidAppear),S.v=!1,i(t)&&t()}function Tn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),En(e,n,t,r)}function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Rn.apply(null,arguments)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var _n=[],Hn=Promise.resolve().then.bind(Promise.resolve()),Qn=!1;function Xn(e,n,t,o){var l=e.$PS;if(i(n)&&(n=n(l?Rn({},e.state,l):e.state,e.props,e.context)),r(l))e.$PS=n;else for(var a in n)l[a]=n[a];if(e.$BR)i(t)&&e.$L.push(t.bind(e));else{if(!S.v&&0===_n.length)return qn(e,o),void(i(t)&&t.call(e));if(_n.includes(e)||_n.push(e),o&&(e.$F=!0),Qn||(Qn=!0,Hn(Kn)),i(t)){var u=e.$QU;u||(u=e.$QU=[]),u.push(t)}}}function Gn(e){for(var n=e.$QU,t=0;t<n.length;++t)n[t].call(e);e.$QU=null}function Kn(){var e;for(Qn=!1;e=_n.shift();)if(!e.$UN){var n=e.$F;e.$F=!1,qn(e,n),e.$QU&&Gn(e)}}function qn(e,n){if(n||!e.$BR){var t=e.$PS;e.$PS=null;var r=[],o=new s;S.v=!0,Mn(e,Rn({},e.state,t),e.props,b(e.$LI,!0).parentNode,e.context,e.$SVG,n,null,r,o),y(r),k(o.componentDidAppear),S.v=!1}else e.state=e.$PS,e.$PS=null}var zn=function(){function e(e,n){this.state=null,this.props=void 0,this.context=void 0,this.displayName=void 0,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$SSR=void 0,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=e||f,this.context=n||f}var n=e.prototype;return n.forceUpdate=function(e){if(this.$UN)return;Xn(this,{},e,!0)},n.setState=function(e,n){if(this.$UN)return;this.$BS||Xn(this,e,n,!1)},n.render=function(e,n,t){return null},e}();zn.defaultProps=null,e.AnimationQueues=s,e.Component=zn,e.EMPTY_OBJ=f,e.Fragment="$F",e._CI=tn,e._HI=q,e._M=on,e._MCCC=mn,e._ME=cn,e._MFCC=yn,e._MP=Ze,e._MR=je,e._RFC=rn,e.createComponentVNode=function(e,n,t,r,o){var l=new O(1,null,null,e=T(e,n),r,E(e,n,t),j(e,n,o),n);return i(V.createVNode)&&V.createVNode(l),l},e.createFragment=_,e.createPortal=function(e,n){var t=q(e);return B(1024,1024,null,t,0,null,t.key,n)},e.createRef=function(){return{current:null}},e.createRenderer=function(e){return function(n,t,r,o){e||(e=n),Tn(t,e,r,o)}},e.createTextVNode=R,e.createVNode=B,e.directClone=Q,e.findDOMFromVNode=b,e.forwardRef=function(e){return{render:e}},e.getFlagsForElementVnode=function(e){switch(e){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}},e.linkEvent=function(e,n){if(i(n))return{data:e,event:n};return null},e.normalizeProps=function(e){var n=e.props;if(n){var t=e.flags;481&t&&(void 0!==n.children&&r(e.children)&&K(e,n.children),void 0!==n.className&&(r(e.className)&&(e.className=n.className||null),n.className=void 0)),void 0!==n.key&&(e.key=n.key,n.key=void 0),void 0!==n.ref&&(e.ref=8&t?L({},e.ref,n.ref):n.ref,n.ref=void 0)}return e},e.options=V,e.render=Tn,e.renderInternal=En,e.rerender=Kn,e.version="9.0.0-alpha.1"}));
{
"name": "inferno",
"version": "8.2.3",
"version": "9.0.0-alpha.1",
"license": "MIT",
"type": "module",
"description": "An extremely fast, React-like JavaScript library for building modern user interfaces",

@@ -49,3 +50,3 @@ "author": {

"index.js",
"index.esm.js",
"index.mjs",
"dist/",

@@ -55,5 +56,10 @@ "README.md",

],
"main": "index.js",
"module": "index.esm.js",
"dev:module": "dist/index.dev.esm.js",
"exports": {
".": {
"import": "./index.mjs",
"require": "./index.cjs"
}
},
"module": "index.mjs",
"dev:module": "dist/index.dev.mjs",
"typings": "dist/index.d.ts",

@@ -66,11 +72,11 @@ "repository": {

"devDependencies": {
"inferno-shared": "8.2.3",
"inferno-utils": "8.2.3"
"inferno-shared": "9.0.0-alpha.1",
"inferno-utils": "9.0.0-alpha.1"
},
"dependencies": {
"csstype": "^3.1.2",
"inferno-vnode-flags": "8.2.3",
"csstype": "^3.1.3",
"inferno-vnode-flags": "9.0.0-alpha.1",
"opencollective-postinstall": "^2.0.3"
},
"gitHead": "6a482641d2405c46a1c9374d889312d98ca9a4a5"
"gitHead": "902106d6b6abf20cd7fd6353bb9bd30dd5a7af4a"
}

@@ -20,3 +20,7 @@ <p align="center"><a href="https://infernojs.org/" target="_blank"><img width="150" alt="Inferno" title="Inferno" src="https://user-images.githubusercontent.com/2021355/36063342-626d7ea8-0e84-11e8-84e1-f22bb3b8c4d5.png"/></a></p>

- Inferno's own [JSX plugin](https://github.com/infernojs/babel-plugin-inferno) creates monomorphic `createVNode` calls, instead of `createElement`
- Inferno's own JSX compilers creates monomorphic `createVNode` calls, instead of `createElement` calls.
Optimizing runtime performance of the application.
- [SWC plugin inferno](https://github.com/infernojs/swc-plugin-inferno) is a plugin for [SWC](https://swc.rs/). It can compile TSX and JSX
- [Babel plugin inferno](https://github.com/infernojs/babel-plugin-inferno) is a plugin for [BabelJs](https://babeljs.io/). It can compile JSX.
- [TS plugin inferno](https://github.com/infernojs/ts-plugin-inferno) is a plugin for [TSC](https://www.typescriptlang.org/). It can compile TSX.
- Inferno's diff process uses bitwise flags to memoize the shape of objects

@@ -44,2 +48,11 @@ - Child nodes are normalized only when needed

## Runtime requirements
Inferno v9 requires following features to be present in the executing runtime:
- `Promise`
- `String.prototype.includes()`
- `String.prototype.startsWith()`
- `Array.prototype.includes()`
- `Object.spread()`
## Browser support

@@ -792,18 +805,2 @@ Since version 4 we have started running our test suite **without** any polyfills.

### `options.componentComparator` ( package `inferno`) DEV only
This option can be used during **development** to create custom component comparator method.
This option will be called on every Component update.
It gets two parameters: lastVNode and nextVNode. When it returns `true` lastVNode will be replaced with nextVNode.
If anything else than `true` is returned it falls to normal behavior.
```javascript
import {options} from 'inferno';
options.componentComparator = function (lastVNode, nextVNode) {
/* custom logic */
return true; // Replaces lastVNode with nextVNode
}
```
### `findDOMNode` (package: `inferno-extras`)

@@ -943,5 +940,5 @@ This feature has been moved from inferno to inferno-compat in v6. No options are needed anymore.

When building for development, you may want to use `inferno.dev.esm.js`. That bundle file contains ES6 exports for better tree-shaking support, improved error messages and added validation to help fixing possible issues during development.
The file is found from `package.json` - `dev:module` entry point and the file is physically located in `node_modules/inferno/dist/index.dev.esm.js`.
Remember that it is not recommended to use that file in production due to slower performance. For production usage use `node_modules/inferno/dist/inferno.esm.js` file.
When building for development, you may want to use `inferno.dev.mjs` for v9 or newer and `inferno.dev.esm.js` for older than v9. That bundle file contains ES6 exports for better tree-shaking support, improved error messages and added validation to help fixing possible issues during development.
The file is found from `package.json` - `dev:module` entry point and the files are physically located in `node_modules/inferno/dist/` folder.
Remember that it is not recommended to use that file in production due to slower performance. For production usage use `node_modules/inferno/dist/inferno.mjs` -file for v9 or newer and `node_modules/inferno/dist/inferno.esm.js` -file for older than v9.

@@ -993,3 +990,3 @@ Example of **Webpack** configuration:

// This maps import "inferno" to es6 module entry based on workflow
inferno: path.resolve(__dirname, 'node_modules/inferno/dist', isProduction ? 'index.dev.esm.js' : 'index.esm.js')
inferno: path.resolve(__dirname, 'node_modules/inferno/dist', isProduction ? 'index.dev.mjs' : 'index.mjs')
}

@@ -1024,3 +1021,3 @@ },

// This maps import "inferno" to es6 module entry based on workflow
{find: 'inferno', replacement: path.resolve(__dirname, 'node_modules/inferno/dist', isProduction ? 'index.dev.esm.js' : 'index.esm.js')}
{find: 'inferno', replacement: path.resolve(__dirname, 'node_modules/inferno/dist', isProduction ? 'index.dev.mjs' : 'index.mjs')}
]

@@ -1027,0 +1024,0 @@ }),

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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