!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n||self).preact={})}(this,function(n){var t,i,e,r,o,f,u,c,s,a,h,p,l,y,v,d,w="http://www.w3.org/2000/svg",_="http://www.w3.org/1999/xhtml",g=null,m=void 0,b={},k=[],x=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,M=Array.isArray;function S(n,t){for(var i in t)n[i]=t[i];return n}function T(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function $(n,i,e){var r,o,f,u={};for(f in i)"key"==f?r=i[f]:"ref"==f?o=i[f]:u[f]=i[f];if(arguments.length>2&&(u.children=arguments.length>3?t.call(arguments,2):e),"function"==typeof n&&n.defaultProps!=g)for(f in n.defaultProps)u[f]===m&&(u[f]=n.defaultProps[f]);return C(n,u,r,o,g)}function C(n,t,r,o,f){var u={type:n,props:t,key:r,ref:o,__k:g,__:g,__b:0,__e:g,__c:g,constructor:m,__v:f==g?++e:f,__i:-1,__u:0};return f==g&&i.vnode!=g&&i.vnode(u),u}function I(n){return n.children}function P(n,t){this.props=n,this.context=t}function j(n,t){if(t==g)return n.__?j(n.__,n.__i+1):g;for(var i;tt&&o.sort(c),n=o.shift(),t=o.length,A(n)}finally{o.length=F.__r=0}}function O(n,t,i,e,r,o,f,u,c,s,a){var h,p,l,y,v,d,w,_=e&&e.__k||k,x=t.length;for(c=z(i,t,_,c,x),h=0;h0?f=n.__k[o]=C(f.type,f.props,f.key,f.ref?f.ref:g,f.__v):n.__k[o]=f,c=o+p,f.__=n,f.__b=n.__b+1,s=f.__i=V(f,i,c,h),u=g,-1!=s&&(h--,(u=i[s])&&(u.__u|=2)),u==g||u.__v==g?(-1==s&&(r>a?p--:rc?p--:p++,f.__u|=4))):n.__k[o]=g;if(h)for(o=0;o(a?1:0))for(r=i-1,o=i+1;r>=0||o=0?r--:o++])!=g&&0==(2&s.__u)&&u==s.key&&c==s.type)return f;return-1}function q(n,t,i){"-"==t[0]?n.setProperty(t,i==g?"":i):n[t]=i==g?"":"number"!=typeof i||x.test(t)?i:i+"px"}function B(n,t,i,e,r){var o,f;n:if("style"==t)if("string"==typeof i)n.style.cssText=i;else{if("string"==typeof e&&(n.style.cssText=e=""),e)for(t in e)i&&t in i||q(n.style,t,"");if(i)for(t in i)e&&i[t]==e[t]||q(n.style,t,i[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(p,"$1")),f=t.toLowerCase(),t=f in n||"onFocusOut"==t||"onFocusIn"==t?f.slice(2):t.slice(2),n.l||(n.l={}),n.l[t+o]=i,i?e?i[h]=e[h]:(i[h]=l,n.addEventListener(t,o?v:y,o)):n.removeEventListener(t,o?v:y,o);else{if(r==w)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in n)try{n[t]=i==g?"":i;break n}catch(n){}"function"==typeof i||(i==g||!1===i&&"-"!=t[4]?n.removeAttribute(t):n.setAttribute(t,"popover"==t&&1==i?"":i))}}function D(n){return function(t){if(this.l){var e=this.l[t.type+n];if(t[a]==g)t[a]=l++;else if(t[a]0?n:M(n)?n.map(K):S({},n)}function Q(n,e,r,o,f,u,c,s,a){var h,p,l,y,v,d,k,x=r.props||b,S=e.props,$=e.type;if("svg"==$?f=w:"math"==$?f="http://www.w3.org/1998/Math/MathML":f||(f=_),u!=g)for(h=0;h2&&(c.children=arguments.length>3?t.call(arguments,2):e),C(n.type,c,r||n.key,o||n.ref,g)},n.createContext=function(n){function t(n){var i,e;return this.getChildContext||(i=new Set,(e={})[t.__c]=this,this.getChildContext=function(){return e},this.componentWillUnmount=function(){i=g},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&i.forEach(function(n){n.__e=!0,L(n)})},this.sub=function(n){i.add(n);var t=n.componentWillUnmount;n.componentWillUnmount=function(){i&&i.delete(n),t&&t.call(n)}}),n.children}return t.__c="__cC"+d++,t.__=n,t.Provider=t.__l=(t.Consumer=function(n,t){return n.children(t)}).contextType=t,t},n.createElement=$,n.createRef=function(){return{current:g}},n.h=$,n.hydrate=function n(t,i){X(t,i,n)},n.isValidElement=r,n.options=i,n.render=X,n.toChildArray=function n(t,i){return i=i||[],t==g||"boolean"==typeof t||(M(t)?t.some(function(t){n(t,i)}):i.push(t)),i}}); //# sourceMappingURL=preact.umd.js.map