@hpcc-js/preact-shim
Advanced tools
Comparing version 2.14.2 to 2.14.3
var PKG_NAME = "@hpcc-js/preact-shim"; | ||
var PKG_VERSION = "2.14.2"; | ||
var BUILD_VERSION = "2.102.8"; | ||
var PKG_VERSION = "2.14.3"; | ||
var BUILD_VERSION = "2.102.11"; | ||
@@ -5,0 +5,0 @@ var n,l$1,u$1,t$1,o$1,r$1,e$1={},c$1=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a$1(n,l){for(var u in l)n[u]=l[u];return n}function h(n){var l=n.parentNode;l&&l.removeChild(n);}function v$1(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return y$1(l,f,t,o,null)}function y$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function d$1(n){return n.children}function _(n,l){this.props=n,this.context=l;}function k$1(n,l){if(null==l)return n.__?k$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?k$1(n):null}function b$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return b$1(n)}}function m$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$1.__r++||r$1!==l$1.debounceRendering)&&((r$1=l$1.debounceRendering)||o$1)(g$1);}function g$1(){for(var n;g$1.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=a$1({},t)).__v=t.__v+1,j$1(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?k$1(t):o,t.__h),z(u,t),t.__e!=o&&b$1(t)));});}function w$1(n,l,u,i,t,o,r,f,s,a){var h,v,p,_,b,m,g,w=i&&i.__k||c$1,A=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?y$1(null,_,null,null,_):Array.isArray(_)?y$1(d$1,{children:_},null,null,null):_.__b>0?y$1(_.type,_.props,_.key,null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(p=w[h])||p&&_.key==p.key&&_.type===p.type)w[h]=void 0;else for(v=0;v<A;v++){if((p=w[v])&&_.key==p.key&&_.type===p.type){w[v]=void 0;break}p=null;}j$1(n,_,p=p||e$1,t,o,r,f,s,a),b=_.__e,(v=_.ref)&&p.ref!=v&&(g||(g=[]),p.ref&&g.push(p.ref,null,_),g.push(v,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===p.__k?_.__d=s=x$1(_,s,n):s=P(n,_,p,w,b,s),"function"==typeof u.type&&(u.__d=s)):s&&p.__e==s&&s.parentNode!=n&&(s=k$1(p));}for(u.__e=m,h=A;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=k$1(i,h+1)),N(w[h],w[h]));if(g)for(h=0;h<g.length;h++)M(g[h],g[++h],g[++h]);}function x$1(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?x$1(i,l,u):P(u,i,i,t,i.__e,l));return l}function P(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||s.test(l)?u:u+"px";}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T:I,o):n.removeEventListener(l,o?T:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$1(n,u,i,t,o,r,f,e,c){var s,h,v,y,p,k,b,m,g,x,A,P=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(s=l$1.__b)&&s(u);try{n:if("function"==typeof P){if(m=u.props,g=(s=P.contextType)&&t[s.__c],x=s?g?g.props.value:s.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(m,x):(u.__c=h=new _(m,x),h.constructor=P,h.render=O),g&&g.sub(h),h.props=m,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a$1({},h.__s)),a$1(h.__s,P.getDerivedStateFromProps(m,h.__s))),y=h.props,p=h.state,v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==P.getDerivedStateFromProps&&m!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,x)||u.__v===i.__v){h.props=m,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,p,k);});}h.context=x,h.props=m,h.state=h.__s,(s=l$1.__r)&&s(u),h.__d=!1,h.__v=u,h.__P=n,s=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(t=a$1(a$1({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,p)),A=null!=s&&s.type===d$1&&null==s.key?s.props.children:s,w$1(n,Array.isArray(A)?A:[A],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(s=l$1.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,i);}}function z(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function L(l,u,i,t,o,r,f,c){var s,a,v,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(o=!0),null!=r)for(;_<r.length;_++)if((s=r[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),a=(y=i.props||e$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(v||a)&&(v&&(a&&v.__html==a.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C(l,p,y,o,c),v)u.__k=[];else if(_=u.props.children,w$1(l,Array.isArray(_)?_:[_],u,i,t,o&&"foreignObject"!==d,r,f,r?r[0]:i.__k&&k$1(i,0),c),null!=r)for(_=r.length;_--;)null!=r[_]&&h(r[_]);c||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&H(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&H(l,"checked",_,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||h(n.__e),n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function S(u,i,t){var o,r,f;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,f=[],j$1(i,u=(!o&&t||i).__k=v$1(d$1,null,[u]),r||e$1,e$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,f,!o&&t?t:r?r.__e:i.firstChild,o),z(f,u);}n=c$1.slice,l$1={__e:function(n,l){for(var u,i,t;l=l.__;)if((u=l.__c)&&!u.__)try{if((i=u.constructor)&&null!=i.getDerivedStateFromError&&(u.setState(i.getDerivedStateFromError(n)),t=u.__d),null!=u.componentDidCatch&&(u.componentDidCatch(n),t=u.__d),t)return u.__E=u}catch(l){n=l;}throw n}},u$1=0,_.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a$1({},this.state),"function"==typeof n&&(n=n(a$1({},u),this.props)),n&&a$1(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),m$1(this));},_.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),m$1(this));},_.prototype.render=d$1,t$1=[],o$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g$1.__r=0; |
@@ -8,4 +8,4 @@ (function (global, factory) { | ||
var PKG_NAME = "@hpcc-js/preact-shim"; | ||
var PKG_VERSION = "2.14.2"; | ||
var BUILD_VERSION = "2.102.8"; | ||
var PKG_VERSION = "2.14.3"; | ||
var BUILD_VERSION = "2.102.11"; | ||
@@ -12,0 +12,0 @@ var n,l$1,u$1,t$1,o$1,r$1,e$1={},c$1=[],s=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a$1(n,l){for(var u in l)n[u]=l[u];return n}function h(n){var l=n.parentNode;l&&l.removeChild(n);}function v$1(l,u,i){var t,o,r,f={};for(r in u)"key"==r?t=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):i),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return y$1(l,f,t,o,null)}function y$1(n,i,t,o,r){var f={type:n,props:i,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++u$1:r};return null==r&&null!=l$1.vnode&&l$1.vnode(f),f}function d$1(n){return n.children}function _(n,l){this.props=n,this.context=l;}function k$1(n,l){if(null==l)return n.__?k$1(n.__,n.__.__k.indexOf(n)+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return "function"==typeof n.type?k$1(n):null}function b$1(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return b$1(n)}}function m$1(n){(!n.__d&&(n.__d=!0)&&t$1.push(n)&&!g$1.__r++||r$1!==l$1.debounceRendering)&&((r$1=l$1.debounceRendering)||o$1)(g$1);}function g$1(){for(var n;g$1.__r=t$1.length;)n=t$1.sort(function(n,l){return n.__v.__b-l.__v.__b}),t$1=[],n.some(function(n){var l,u,i,t,o,r;n.__d&&(o=(t=(l=n).__v).__e,(r=l.__P)&&(u=[],(i=a$1({},t)).__v=t.__v+1,j$1(r,t,i,l.__n,void 0!==r.ownerSVGElement,null!=t.__h?[o]:null,u,null==o?k$1(t):o,t.__h),z(u,t),t.__e!=o&&b$1(t)));});}function w$1(n,l,u,i,t,o,r,f,s,a){var h,v,p,_,b,m,g,w=i&&i.__k||c$1,A=w.length;for(u.__k=[],h=0;h<l.length;h++)if(null!=(_=u.__k[h]=null==(_=l[h])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?y$1(null,_,null,null,_):Array.isArray(_)?y$1(d$1,{children:_},null,null,null):_.__b>0?y$1(_.type,_.props,_.key,null,_.__v):_)){if(_.__=u,_.__b=u.__b+1,null===(p=w[h])||p&&_.key==p.key&&_.type===p.type)w[h]=void 0;else for(v=0;v<A;v++){if((p=w[v])&&_.key==p.key&&_.type===p.type){w[v]=void 0;break}p=null;}j$1(n,_,p=p||e$1,t,o,r,f,s,a),b=_.__e,(v=_.ref)&&p.ref!=v&&(g||(g=[]),p.ref&&g.push(p.ref,null,_),g.push(v,_.__c||b,_)),null!=b?(null==m&&(m=b),"function"==typeof _.type&&_.__k===p.__k?_.__d=s=x$1(_,s,n):s=P(n,_,p,w,b,s),"function"==typeof u.type&&(u.__d=s)):s&&p.__e==s&&s.parentNode!=n&&(s=k$1(p));}for(u.__e=m,h=A;h--;)null!=w[h]&&("function"==typeof u.type&&null!=w[h].__e&&w[h].__e==u.__d&&(u.__d=k$1(i,h+1)),N(w[h],w[h]));if(g)for(h=0;h<g.length;h++)M(g[h],g[++h],g[++h]);}function x$1(n,l,u){for(var i,t=n.__k,o=0;t&&o<t.length;o++)(i=t[o])&&(i.__=n,l="function"==typeof i.type?x$1(i,l,u):P(u,i,i,t,i.__e,l));return l}function P(n,l,u,i,t,o){var r,f,e;if(void 0!==l.__d)r=l.__d,l.__d=void 0;else if(null==u||t!=o||null==t.parentNode)n:if(null==o||o.parentNode!==n)n.appendChild(t),r=null;else {for(f=o,e=0;(f=f.nextSibling)&&e<i.length;e+=2)if(f==t)break n;n.insertBefore(t,o),r=o;}return void 0!==r?r:t.nextSibling}function C(n,l,u,i,t){var o;for(o in u)"children"===o||"key"===o||o in l||H(n,o,null,u[o],i);for(o in l)t&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||H(n,o,l[o],u[o],i);}function $(n,l,u){"-"===l[0]?n.setProperty(l,u):n[l]=null==u?"":"number"!=typeof u||s.test(l)?u:u+"px";}function H(n,l,u,i,t){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else {if("string"==typeof i&&(n.style.cssText=i=""),i)for(l in i)u&&l in u||$(n.style,l,"");if(u)for(l in u)i&&u[l]===i[l]||$(n.style,l,u[l]);}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/Capture$/,"")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?i||n.addEventListener(l,o?T:I,o):n.removeEventListener(l,o?T:I,o);else if("dangerouslySetInnerHTML"!==l){if(t)l=l.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null!=u&&(!1!==u||"a"===l[0]&&"r"===l[1])?n.setAttribute(l,u):n.removeAttribute(l));}}function I(n){this.l[n.type+!1](l$1.event?l$1.event(n):n);}function T(n){this.l[n.type+!0](l$1.event?l$1.event(n):n);}function j$1(n,u,i,t,o,r,f,e,c){var s,h,v,y,p,k,b,m,g,x,A,P=u.type;if(void 0!==u.constructor)return null;null!=i.__h&&(c=i.__h,e=u.__e=i.__e,u.__h=null,r=[e]),(s=l$1.__b)&&s(u);try{n:if("function"==typeof P){if(m=u.props,g=(s=P.contextType)&&t[s.__c],x=s?g?g.props.value:s.__:t,i.__c?b=(h=u.__c=i.__c).__=h.__E:("prototype"in P&&P.prototype.render?u.__c=h=new P(m,x):(u.__c=h=new _(m,x),h.constructor=P,h.render=O),g&&g.sub(h),h.props=m,h.state||(h.state={}),h.context=x,h.__n=t,v=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a$1({},h.__s)),a$1(h.__s,P.getDerivedStateFromProps(m,h.__s))),y=h.props,p=h.state,v)null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else {if(null==P.getDerivedStateFromProps&&m!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,x),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,x)||u.__v===i.__v){h.props=m,h.state=h.__s,u.__v!==i.__v&&(h.__d=!1),h.__v=u,u.__e=i.__e,u.__k=i.__k,u.__k.forEach(function(n){n&&(n.__=u);}),h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,x),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,p,k);});}h.context=x,h.props=m,h.state=h.__s,(s=l$1.__r)&&s(u),h.__d=!1,h.__v=u,h.__P=n,s=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(t=a$1(a$1({},t),h.getChildContext())),v||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,p)),A=null!=s&&s.type===d$1&&null==s.key?s.props.children:s,w$1(n,Array.isArray(A)?A:[A],u,i,t,o,r,f,e,c),h.base=u.__e,u.__h=null,h.__h.length&&f.push(h),b&&(h.__E=h.__=null),h.__e=!1;}else null==r&&u.__v===i.__v?(u.__k=i.__k,u.__e=i.__e):u.__e=L(i.__e,u,i,t,o,r,f,c);(s=l$1.diffed)&&s(u);}catch(n){u.__v=null,(c||null!=r)&&(u.__e=e,u.__h=!!c,r[r.indexOf(e)]=null),l$1.__e(n,u,i);}}function z(n,u){l$1.__c&&l$1.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u);});}catch(n){l$1.__e(n,u.__v);}});}function L(l,u,i,t,o,r,f,c){var s,a,v,y=i.props,p=u.props,d=u.type,_=0;if("svg"===d&&(o=!0),null!=r)for(;_<r.length;_++)if((s=r[_])&&"setAttribute"in s==!!d&&(d?s.localName===d:3===s.nodeType)){l=s,r[_]=null;break}if(null==l){if(null===d)return document.createTextNode(p);l=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,p.is&&p),r=null,c=!1;}if(null===d)y===p||c&&l.data===p||(l.data=p);else {if(r=r&&n.call(l.childNodes),a=(y=i.props||e$1).dangerouslySetInnerHTML,v=p.dangerouslySetInnerHTML,!c){if(null!=r)for(y={},_=0;_<l.attributes.length;_++)y[l.attributes[_].name]=l.attributes[_].value;(v||a)&&(v&&(a&&v.__html==a.__html||v.__html===l.innerHTML)||(l.innerHTML=v&&v.__html||""));}if(C(l,p,y,o,c),v)u.__k=[];else if(_=u.props.children,w$1(l,Array.isArray(_)?_:[_],u,i,t,o&&"foreignObject"!==d,r,f,r?r[0]:i.__k&&k$1(i,0),c),null!=r)for(_=r.length;_--;)null!=r[_]&&h(r[_]);c||("value"in p&&void 0!==(_=p.value)&&(_!==l.value||"progress"===d&&!_||"option"===d&&_!==y.value)&&H(l,"value",_,y.value,!1),"checked"in p&&void 0!==(_=p.checked)&&_!==l.checked&&H(l,"checked",_,y.checked,!1));}return l}function M(n,u,i){try{"function"==typeof n?n(u):n.current=u;}catch(n){l$1.__e(n,i);}}function N(n,u,i){var t,o;if(l$1.unmount&&l$1.unmount(n),(t=n.ref)&&(t.current&&t.current!==n.__e||M(t,null,u)),null!=(t=n.__c)){if(t.componentWillUnmount)try{t.componentWillUnmount();}catch(n){l$1.__e(n,u);}t.base=t.__P=null;}if(t=n.__k)for(o=0;o<t.length;o++)t[o]&&N(t[o],u,"function"!=typeof n.type);i||null==n.__e||h(n.__e),n.__e=n.__d=void 0;}function O(n,l,u){return this.constructor(n,u)}function S(u,i,t){var o,r,f;l$1.__&&l$1.__(u,i),r=(o="function"==typeof t)?null:t&&t.__k||i.__k,f=[],j$1(i,u=(!o&&t||i).__k=v$1(d$1,null,[u]),r||e$1,e$1,void 0!==i.ownerSVGElement,!o&&t?[t]:r?null:i.firstChild?n.call(i.childNodes):null,f,!o&&t?t:r?r.__e:i.firstChild,o),z(f,u);}n=c$1.slice,l$1={__e:function(n,l){for(var u,i,t;l=l.__;)if((u=l.__c)&&!u.__)try{if((i=u.constructor)&&null!=i.getDerivedStateFromError&&(u.setState(i.getDerivedStateFromError(n)),t=u.__d),null!=u.componentDidCatch&&(u.componentDidCatch(n),t=u.__d),t)return u.__E=u}catch(l){n=l;}throw n}},u$1=0,_.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a$1({},this.state),"function"==typeof n&&(n=n(a$1({},u),this.props)),n&&a$1(u,n),null!=n&&this.__v&&(l&&this.__h.push(l),m$1(this));},_.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),m$1(this));},_.prototype.render=d$1,t$1=[],o$1="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g$1.__r=0; |
@@ -1,2 +0,2 @@ | ||
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module?_(exports):"function"==typeof define&&define.amd?define(["exports"],_):_((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/preact-shim"]={})}(this,(function(e){"use strict";var _,n,t,o,r,l,i={},u=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,_){for(var n in _)e[n]=_[n];return e}function s(e){var _=e.parentNode;_&&_.removeChild(e)}function a(e,n,t){var o,r,l,i={};for(l in n)"key"==l?o=n[l]:"ref"==l?r=n[l]:i[l]=n[l];if(arguments.length>2&&(i.children=arguments.length>3?_.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===i[l]&&(i[l]=e.defaultProps[l]);return p(e,i,o,r,null)}function p(e,_,o,r,l){var i={type:e,props:_,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++t:l};return null==l&&null!=n.vnode&&n.vnode(i),i}function h(e){return e.children}function d(e,_){this.props=e,this.context=_}function v(e,_){if(null==_)return e.__?v(e.__,e.__.__k.indexOf(e)+1):null;for(var n;_<e.__k.length;_++)if(null!=(n=e.__k[_])&&null!=n.__e)return n.__e;return"function"==typeof e.type?v(e):null}function y(e){var _,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,_=0;_<e.__k.length;_++)if(null!=(n=e.__k[_])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return y(e)}}function m(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!g.__r++||l!==n.debounceRendering)&&((l=n.debounceRendering)||r)(g)}function g(){for(var e;g.__r=o.length;)e=o.sort((function(e,_){return e.__v.__b-_.__v.__b})),o=[],e.some((function(e){var _,n,t,o,r,l;e.__d&&(r=(o=(_=e).__v).__e,(l=_.__P)&&(n=[],(t=f({},o)).__v=o.__v+1,C(l,o,t,_.__n,void 0!==l.ownerSVGElement,null!=o.__h?[r]:null,n,null==r?v(o):r,o.__h),T(n,o),o.__e!=r&&y(o)))}))}function k(e,_,n,t,o,r,l,c,f,s){var a,d,y,m,g,k,H,S=t&&t.__k||u,x=S.length;for(n.__k=[],a=0;a<_.length;a++)if(null!=(m=n.__k[a]=null==(m=_[a])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?p(null,m,null,null,m):Array.isArray(m)?p(h,{children:m},null,null,null):m.__b>0?p(m.type,m.props,m.key,null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(y=S[a])||y&&m.key==y.key&&m.type===y.type)S[a]=void 0;else for(d=0;d<x;d++){if((y=S[d])&&m.key==y.key&&m.type===y.type){S[d]=void 0;break}y=null}C(e,m,y=y||i,o,r,l,c,f,s),g=m.__e,(d=m.ref)&&y.ref!=d&&(H||(H=[]),y.ref&&H.push(y.ref,null,m),H.push(d,m.__c||g,m)),null!=g?(null==k&&(k=g),"function"==typeof m.type&&m.__k===y.__k?m.__d=f=b(m,f,e):f=E(e,m,y,S,g,f),"function"==typeof n.type&&(n.__d=f)):f&&y.__e==f&&f.parentNode!=e&&(f=v(y))}for(n.__e=k,a=x;a--;)null!=S[a]&&("function"==typeof n.type&&null!=S[a].__e&&S[a].__e==n.__d&&(n.__d=v(t,a+1)),D(S[a],S[a]));if(H)for(a=0;a<H.length;a++)w(H[a],H[++a],H[++a])}function b(e,_,n){for(var t,o=e.__k,r=0;o&&r<o.length;r++)(t=o[r])&&(t.__=e,_="function"==typeof t.type?b(t,_,n):E(n,t,t,o,t.__e,_));return _}function E(e,_,n,t,o,r){var l,i,u;if(void 0!==_.__d)l=_.__d,_.__d=void 0;else if(null==n||o!=r||null==o.parentNode)e:if(null==r||r.parentNode!==e)e.appendChild(o),l=null;else{for(i=r,u=0;(i=i.nextSibling)&&u<t.length;u+=2)if(i==o)break e;e.insertBefore(o,r),l=r}return void 0!==l?l:o.nextSibling}function H(e,_,n){"-"===_[0]?e.setProperty(_,n):e[_]=null==n?"":"number"!=typeof n||c.test(_)?n:n+"px"}function S(e,_,n,t,o){var r;e:if("style"===_)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof t&&(e.style.cssText=t=""),t)for(_ in t)n&&_ in n||H(e.style,_,"");if(n)for(_ in n)t&&n[_]===t[_]||H(e.style,_,n[_])}else if("o"===_[0]&&"n"===_[1])r=_!==(_=_.replace(/Capture$/,"")),_=_.toLowerCase()in e?_.toLowerCase().slice(2):_.slice(2),e.l||(e.l={}),e.l[_+r]=n,n?t||e.addEventListener(_,r?P:x,r):e.removeEventListener(_,r?P:x,r);else if("dangerouslySetInnerHTML"!==_){if(o)_=_.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==_&&"list"!==_&&"form"!==_&&"tabIndex"!==_&&"download"!==_&&_ in e)try{e[_]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===_[0]&&"r"===_[1])?e.setAttribute(_,n):e.removeAttribute(_))}}function x(e){this.l[e.type+!1](n.event?n.event(e):e)}function P(e){this.l[e.type+!0](n.event?n.event(e):e)}function C(e,_,t,o,r,l,i,u,c){var s,a,p,v,y,m,g,b,E,H,S,x=_.type;if(void 0!==_.constructor)return null;null!=t.__h&&(c=t.__h,u=_.__e=t.__e,_.__h=null,l=[u]),(s=n.__b)&&s(_);try{e:if("function"==typeof x){if(b=_.props,E=(s=x.contextType)&&o[s.__c],H=s?E?E.props.value:s.__:o,t.__c?g=(a=_.__c=t.__c).__=a.__E:("prototype"in x&&x.prototype.render?_.__c=a=new x(b,H):(_.__c=a=new d(b,H),a.constructor=x,a.render=N),E&&E.sub(a),a.props=b,a.state||(a.state={}),a.context=H,a.__n=o,p=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=x.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=f({},a.__s)),f(a.__s,x.getDerivedStateFromProps(b,a.__s))),v=a.props,y=a.state,p)null==x.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==x.getDerivedStateFromProps&&b!==v&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(b,H),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(b,a.__s,H)||_.__v===t.__v){a.props=b,a.state=a.__s,_.__v!==t.__v&&(a.__d=!1),a.__v=_,_.__e=t.__e,_.__k=t.__k,_.__k.forEach((function(e){e&&(e.__=_)})),a.__h.length&&i.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(b,a.__s,H),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(v,y,m)}))}a.context=H,a.props=b,a.state=a.__s,(s=n.__r)&&s(_),a.__d=!1,a.__v=_,a.__P=e,s=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(o=f(f({},o),a.getChildContext())),p||null==a.getSnapshotBeforeUpdate||(m=a.getSnapshotBeforeUpdate(v,y)),S=null!=s&&s.type===h&&null==s.key?s.props.children:s,k(e,Array.isArray(S)?S:[S],_,t,o,r,l,i,u,c),a.base=_.__e,_.__h=null,a.__h.length&&i.push(a),g&&(a.__E=a.__=null),a.__e=!1}else null==l&&_.__v===t.__v?(_.__k=t.__k,_.__e=t.__e):_.__e=A(t.__e,_,t,o,r,l,i,c);(s=n.diffed)&&s(_)}catch(e){_.__v=null,(c||null!=l)&&(_.__e=u,_.__h=!!c,l[l.indexOf(u)]=null),n.__e(e,_,t)}}function T(e,_){n.__c&&n.__c(_,e),e.some((function(_){try{e=_.__h,_.__h=[],e.some((function(e){e.call(_)}))}catch(e){n.__e(e,_.__v)}}))}function A(e,n,t,o,r,l,u,c){var f,a,p,h=t.props,d=n.props,y=n.type,m=0;if("svg"===y&&(r=!0),null!=l)for(;m<l.length;m++)if((f=l[m])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,l[m]=null;break}if(null==e){if(null===y)return document.createTextNode(d);e=r?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,d.is&&d),l=null,c=!1}if(null===y)h===d||c&&e.data===d||(e.data=d);else{if(l=l&&_.call(e.childNodes),a=(h=t.props||i).dangerouslySetInnerHTML,p=d.dangerouslySetInnerHTML,!c){if(null!=l)for(h={},m=0;m<e.attributes.length;m++)h[e.attributes[m].name]=e.attributes[m].value;(p||a)&&(p&&(a&&p.__html==a.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,_,n,t,o){var r;for(r in n)"children"===r||"key"===r||r in _||S(e,r,null,n[r],t);for(r in _)o&&"function"!=typeof _[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===_[r]||S(e,r,_[r],n[r],t)}(e,d,h,r,c),p)n.__k=[];else if(m=n.props.children,k(e,Array.isArray(m)?m:[m],n,t,o,r&&"foreignObject"!==y,l,u,l?l[0]:t.__k&&v(t,0),c),null!=l)for(m=l.length;m--;)null!=l[m]&&s(l[m]);c||("value"in d&&void 0!==(m=d.value)&&(m!==e.value||"progress"===y&&!m||"option"===y&&m!==h.value)&&S(e,"value",m,h.value,!1),"checked"in d&&void 0!==(m=d.checked)&&m!==e.checked&&S(e,"checked",m,h.checked,!1))}return e}function w(e,_,t){try{"function"==typeof e?e(_):e.current=_}catch(e){n.__e(e,t)}}function D(e,_,t){var o,r;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||w(o,null,_)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__e(e,_)}o.base=o.__P=null}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&D(o[r],_,"function"!=typeof e.type);t||null==e.__e||s(e.__e),e.__e=e.__d=void 0}function N(e,_,n){return this.constructor(e,n)}_=u.slice,n={__e:function(e,_){for(var n,t,o;_=_.__;)if((n=_.__c)&&!n.__)try{if((t=n.constructor)&&null!=t.getDerivedStateFromError&&(n.setState(t.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(_){e=_}throw e}},t=0,d.prototype.setState=function(e,_){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(_&&this.__h.push(_),m(this))},d.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),m(this))},d.prototype.render=h,o=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g.__r=0;var F,M,U,L=0,W=[],I=n.__b,R=n.__r,O=n.diffed,j=n.__c,q=n.unmount;function B(e,_){n.__h&&n.__h(M,e,L||_),L=0;var t=M.__H||(M.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function G(e,_,n){var t=B(F++,2);return t.t=e,t.__c||(t.__=[n?n(_):Q(void 0,_),function(e){var _=t.t(t.__[0],e);t.__[0]!==_&&(t.__=[_,t.__[1]],t.__c.setState({}))}],t.__c=M),t.__}function V(){for(var e;e=W.shift();)if(e.__P)try{e.__H.__h.forEach(K),e.__H.__h.forEach(z),e.__H.__h=[]}catch(_){e.__H.__h=[],n.__e(_,e.__v)}}n.__b=function(e){M=null,I&&I(e)},n.__r=function(e){R&&R(e),F=0;var _=(M=e.__c).__H;_&&(_.__h.forEach(K),_.__h.forEach(z),_.__h=[])},n.diffed=function(e){O&&O(e);var _=e.__c;_&&_.__H&&_.__H.__h.length&&(1!==W.push(_)&&U===n.requestAnimationFrame||((U=n.requestAnimationFrame)||function(e){var _,n=function(){clearTimeout(t),$&&cancelAnimationFrame(_),setTimeout(e)},t=setTimeout(n,100);$&&(_=requestAnimationFrame(n))})(V)),M=null},n.__c=function(e,_){_.some((function(e){try{e.__h.forEach(K),e.__h=e.__h.filter((function(e){return!e.__||z(e)}))}catch(t){_.some((function(e){e.__h&&(e.__h=[])})),_=[],n.__e(t,e.__v)}})),j&&j(e,_)},n.unmount=function(e){q&&q(e);var _,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{K(e)}catch(e){_=e}})),_&&n.__e(_,t.__v))};var $="function"==typeof requestAnimationFrame;function K(e){var _=M,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),M=_}function z(e){var _=M;e.__c=e.__(),M=_}function J(e,_){return!e||e.length!==_.length||_.some((function(_,n){return _!==e[n]}))}function Q(e,_){return"function"==typeof _?_(e):_}e.BUILD_VERSION="2.102.8",e.Component=d,e.Fragment=h,e.PKG_NAME="@hpcc-js/preact-shim",e.PKG_VERSION="2.14.2",e.createElement=a,e.h=a,e.render=function(e,t,o){var r,l,u;n.__&&n.__(e,t),l=(r="function"==typeof o)?null:o&&o.__k||t.__k,u=[],C(t,e=(!r&&o||t).__k=a(h,null,[e]),l||i,i,void 0!==t.ownerSVGElement,!r&&o?[o]:l?null:t.firstChild?_.call(t.childNodes):null,u,!r&&o?o:l?l.__e:t.firstChild,r),T(u,e)},e.useEffect=function(e,_){var t=B(F++,3);!n.__s&&J(t.__H,_)&&(t.__=e,t.__H=_,M.__H.__h.push(t))},e.useMemo=function(e,_){var n=B(F++,7);return J(n.__H,_)&&(n.__=e(),n.__H=_,n.__h=e),n.__},e.useReducer=G,e.useState=function(e){return L=1,G(Q,e)},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,_){"object"==typeof exports&&"undefined"!=typeof module?_(exports):"function"==typeof define&&define.amd?define(["exports"],_):_((e="undefined"!=typeof globalThis?globalThis:e||self)["@hpcc-js/preact-shim"]={})}(this,(function(e){"use strict";var _,n,t,o,r,l,i={},u=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,_){for(var n in _)e[n]=_[n];return e}function s(e){var _=e.parentNode;_&&_.removeChild(e)}function a(e,n,t){var o,r,l,i={};for(l in n)"key"==l?o=n[l]:"ref"==l?r=n[l]:i[l]=n[l];if(arguments.length>2&&(i.children=arguments.length>3?_.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===i[l]&&(i[l]=e.defaultProps[l]);return p(e,i,o,r,null)}function p(e,_,o,r,l){var i={type:e,props:_,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==l?++t:l};return null==l&&null!=n.vnode&&n.vnode(i),i}function h(e){return e.children}function d(e,_){this.props=e,this.context=_}function v(e,_){if(null==_)return e.__?v(e.__,e.__.__k.indexOf(e)+1):null;for(var n;_<e.__k.length;_++)if(null!=(n=e.__k[_])&&null!=n.__e)return n.__e;return"function"==typeof e.type?v(e):null}function y(e){var _,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,_=0;_<e.__k.length;_++)if(null!=(n=e.__k[_])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return y(e)}}function m(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!g.__r++||l!==n.debounceRendering)&&((l=n.debounceRendering)||r)(g)}function g(){for(var e;g.__r=o.length;)e=o.sort((function(e,_){return e.__v.__b-_.__v.__b})),o=[],e.some((function(e){var _,n,t,o,r,l;e.__d&&(r=(o=(_=e).__v).__e,(l=_.__P)&&(n=[],(t=f({},o)).__v=o.__v+1,C(l,o,t,_.__n,void 0!==l.ownerSVGElement,null!=o.__h?[r]:null,n,null==r?v(o):r,o.__h),T(n,o),o.__e!=r&&y(o)))}))}function k(e,_,n,t,o,r,l,c,f,s){var a,d,y,m,g,k,H,S=t&&t.__k||u,x=S.length;for(n.__k=[],a=0;a<_.length;a++)if(null!=(m=n.__k[a]=null==(m=_[a])||"boolean"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?p(null,m,null,null,m):Array.isArray(m)?p(h,{children:m},null,null,null):m.__b>0?p(m.type,m.props,m.key,null,m.__v):m)){if(m.__=n,m.__b=n.__b+1,null===(y=S[a])||y&&m.key==y.key&&m.type===y.type)S[a]=void 0;else for(d=0;d<x;d++){if((y=S[d])&&m.key==y.key&&m.type===y.type){S[d]=void 0;break}y=null}C(e,m,y=y||i,o,r,l,c,f,s),g=m.__e,(d=m.ref)&&y.ref!=d&&(H||(H=[]),y.ref&&H.push(y.ref,null,m),H.push(d,m.__c||g,m)),null!=g?(null==k&&(k=g),"function"==typeof m.type&&m.__k===y.__k?m.__d=f=b(m,f,e):f=E(e,m,y,S,g,f),"function"==typeof n.type&&(n.__d=f)):f&&y.__e==f&&f.parentNode!=e&&(f=v(y))}for(n.__e=k,a=x;a--;)null!=S[a]&&("function"==typeof n.type&&null!=S[a].__e&&S[a].__e==n.__d&&(n.__d=v(t,a+1)),D(S[a],S[a]));if(H)for(a=0;a<H.length;a++)w(H[a],H[++a],H[++a])}function b(e,_,n){for(var t,o=e.__k,r=0;o&&r<o.length;r++)(t=o[r])&&(t.__=e,_="function"==typeof t.type?b(t,_,n):E(n,t,t,o,t.__e,_));return _}function E(e,_,n,t,o,r){var l,i,u;if(void 0!==_.__d)l=_.__d,_.__d=void 0;else if(null==n||o!=r||null==o.parentNode)e:if(null==r||r.parentNode!==e)e.appendChild(o),l=null;else{for(i=r,u=0;(i=i.nextSibling)&&u<t.length;u+=2)if(i==o)break e;e.insertBefore(o,r),l=r}return void 0!==l?l:o.nextSibling}function H(e,_,n){"-"===_[0]?e.setProperty(_,n):e[_]=null==n?"":"number"!=typeof n||c.test(_)?n:n+"px"}function S(e,_,n,t,o){var r;e:if("style"===_)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof t&&(e.style.cssText=t=""),t)for(_ in t)n&&_ in n||H(e.style,_,"");if(n)for(_ in n)t&&n[_]===t[_]||H(e.style,_,n[_])}else if("o"===_[0]&&"n"===_[1])r=_!==(_=_.replace(/Capture$/,"")),_=_.toLowerCase()in e?_.toLowerCase().slice(2):_.slice(2),e.l||(e.l={}),e.l[_+r]=n,n?t||e.addEventListener(_,r?P:x,r):e.removeEventListener(_,r?P:x,r);else if("dangerouslySetInnerHTML"!==_){if(o)_=_.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==_&&"list"!==_&&"form"!==_&&"tabIndex"!==_&&"download"!==_&&_ in e)try{e[_]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===_[0]&&"r"===_[1])?e.setAttribute(_,n):e.removeAttribute(_))}}function x(e){this.l[e.type+!1](n.event?n.event(e):e)}function P(e){this.l[e.type+!0](n.event?n.event(e):e)}function C(e,_,t,o,r,l,i,u,c){var s,a,p,v,y,m,g,b,E,H,S,x=_.type;if(void 0!==_.constructor)return null;null!=t.__h&&(c=t.__h,u=_.__e=t.__e,_.__h=null,l=[u]),(s=n.__b)&&s(_);try{e:if("function"==typeof x){if(b=_.props,E=(s=x.contextType)&&o[s.__c],H=s?E?E.props.value:s.__:o,t.__c?g=(a=_.__c=t.__c).__=a.__E:("prototype"in x&&x.prototype.render?_.__c=a=new x(b,H):(_.__c=a=new d(b,H),a.constructor=x,a.render=N),E&&E.sub(a),a.props=b,a.state||(a.state={}),a.context=H,a.__n=o,p=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=x.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=f({},a.__s)),f(a.__s,x.getDerivedStateFromProps(b,a.__s))),v=a.props,y=a.state,p)null==x.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==x.getDerivedStateFromProps&&b!==v&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(b,H),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(b,a.__s,H)||_.__v===t.__v){a.props=b,a.state=a.__s,_.__v!==t.__v&&(a.__d=!1),a.__v=_,_.__e=t.__e,_.__k=t.__k,_.__k.forEach((function(e){e&&(e.__=_)})),a.__h.length&&i.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(b,a.__s,H),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(v,y,m)}))}a.context=H,a.props=b,a.state=a.__s,(s=n.__r)&&s(_),a.__d=!1,a.__v=_,a.__P=e,s=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(o=f(f({},o),a.getChildContext())),p||null==a.getSnapshotBeforeUpdate||(m=a.getSnapshotBeforeUpdate(v,y)),S=null!=s&&s.type===h&&null==s.key?s.props.children:s,k(e,Array.isArray(S)?S:[S],_,t,o,r,l,i,u,c),a.base=_.__e,_.__h=null,a.__h.length&&i.push(a),g&&(a.__E=a.__=null),a.__e=!1}else null==l&&_.__v===t.__v?(_.__k=t.__k,_.__e=t.__e):_.__e=A(t.__e,_,t,o,r,l,i,c);(s=n.diffed)&&s(_)}catch(e){_.__v=null,(c||null!=l)&&(_.__e=u,_.__h=!!c,l[l.indexOf(u)]=null),n.__e(e,_,t)}}function T(e,_){n.__c&&n.__c(_,e),e.some((function(_){try{e=_.__h,_.__h=[],e.some((function(e){e.call(_)}))}catch(e){n.__e(e,_.__v)}}))}function A(e,n,t,o,r,l,u,c){var f,a,p,h=t.props,d=n.props,y=n.type,m=0;if("svg"===y&&(r=!0),null!=l)for(;m<l.length;m++)if((f=l[m])&&"setAttribute"in f==!!y&&(y?f.localName===y:3===f.nodeType)){e=f,l[m]=null;break}if(null==e){if(null===y)return document.createTextNode(d);e=r?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,d.is&&d),l=null,c=!1}if(null===y)h===d||c&&e.data===d||(e.data=d);else{if(l=l&&_.call(e.childNodes),a=(h=t.props||i).dangerouslySetInnerHTML,p=d.dangerouslySetInnerHTML,!c){if(null!=l)for(h={},m=0;m<e.attributes.length;m++)h[e.attributes[m].name]=e.attributes[m].value;(p||a)&&(p&&(a&&p.__html==a.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,_,n,t,o){var r;for(r in n)"children"===r||"key"===r||r in _||S(e,r,null,n[r],t);for(r in _)o&&"function"!=typeof _[r]||"children"===r||"key"===r||"value"===r||"checked"===r||n[r]===_[r]||S(e,r,_[r],n[r],t)}(e,d,h,r,c),p)n.__k=[];else if(m=n.props.children,k(e,Array.isArray(m)?m:[m],n,t,o,r&&"foreignObject"!==y,l,u,l?l[0]:t.__k&&v(t,0),c),null!=l)for(m=l.length;m--;)null!=l[m]&&s(l[m]);c||("value"in d&&void 0!==(m=d.value)&&(m!==e.value||"progress"===y&&!m||"option"===y&&m!==h.value)&&S(e,"value",m,h.value,!1),"checked"in d&&void 0!==(m=d.checked)&&m!==e.checked&&S(e,"checked",m,h.checked,!1))}return e}function w(e,_,t){try{"function"==typeof e?e(_):e.current=_}catch(e){n.__e(e,t)}}function D(e,_,t){var o,r;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||w(o,null,_)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__e(e,_)}o.base=o.__P=null}if(o=e.__k)for(r=0;r<o.length;r++)o[r]&&D(o[r],_,"function"!=typeof e.type);t||null==e.__e||s(e.__e),e.__e=e.__d=void 0}function N(e,_,n){return this.constructor(e,n)}_=u.slice,n={__e:function(e,_){for(var n,t,o;_=_.__;)if((n=_.__c)&&!n.__)try{if((t=n.constructor)&&null!=t.getDerivedStateFromError&&(n.setState(t.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(_){e=_}throw e}},t=0,d.prototype.setState=function(e,_){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(n,e),null!=e&&this.__v&&(_&&this.__h.push(_),m(this))},d.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),m(this))},d.prototype.render=h,o=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,g.__r=0;var F,M,U,L=0,W=[],I=n.__b,R=n.__r,O=n.diffed,j=n.__c,q=n.unmount;function B(e,_){n.__h&&n.__h(M,e,L||_),L=0;var t=M.__H||(M.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function G(e,_,n){var t=B(F++,2);return t.t=e,t.__c||(t.__=[n?n(_):Q(void 0,_),function(e){var _=t.t(t.__[0],e);t.__[0]!==_&&(t.__=[_,t.__[1]],t.__c.setState({}))}],t.__c=M),t.__}function V(){for(var e;e=W.shift();)if(e.__P)try{e.__H.__h.forEach(K),e.__H.__h.forEach(z),e.__H.__h=[]}catch(_){e.__H.__h=[],n.__e(_,e.__v)}}n.__b=function(e){M=null,I&&I(e)},n.__r=function(e){R&&R(e),F=0;var _=(M=e.__c).__H;_&&(_.__h.forEach(K),_.__h.forEach(z),_.__h=[])},n.diffed=function(e){O&&O(e);var _=e.__c;_&&_.__H&&_.__H.__h.length&&(1!==W.push(_)&&U===n.requestAnimationFrame||((U=n.requestAnimationFrame)||function(e){var _,n=function(){clearTimeout(t),$&&cancelAnimationFrame(_),setTimeout(e)},t=setTimeout(n,100);$&&(_=requestAnimationFrame(n))})(V)),M=null},n.__c=function(e,_){_.some((function(e){try{e.__h.forEach(K),e.__h=e.__h.filter((function(e){return!e.__||z(e)}))}catch(t){_.some((function(e){e.__h&&(e.__h=[])})),_=[],n.__e(t,e.__v)}})),j&&j(e,_)},n.unmount=function(e){q&&q(e);var _,t=e.__c;t&&t.__H&&(t.__H.__.forEach((function(e){try{K(e)}catch(e){_=e}})),_&&n.__e(_,t.__v))};var $="function"==typeof requestAnimationFrame;function K(e){var _=M,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),M=_}function z(e){var _=M;e.__c=e.__(),M=_}function J(e,_){return!e||e.length!==_.length||_.some((function(_,n){return _!==e[n]}))}function Q(e,_){return"function"==typeof _?_(e):_}e.BUILD_VERSION="2.102.11",e.Component=d,e.Fragment=h,e.PKG_NAME="@hpcc-js/preact-shim",e.PKG_VERSION="2.14.3",e.createElement=a,e.h=a,e.render=function(e,t,o){var r,l,u;n.__&&n.__(e,t),l=(r="function"==typeof o)?null:o&&o.__k||t.__k,u=[],C(t,e=(!r&&o||t).__k=a(h,null,[e]),l||i,i,void 0!==t.ownerSVGElement,!r&&o?[o]:l?null:t.firstChild?_.call(t.childNodes):null,u,!r&&o?o:l?l.__e:t.firstChild,r),T(u,e)},e.useEffect=function(e,_){var t=B(F++,3);!n.__s&&J(t.__H,_)&&(t.__=e,t.__H=_,M.__H.__h.push(t))},e.useMemo=function(e,_){var n=B(F++,7);return J(n.__H,_)&&(n.__=e(),n.__H=_,n.__h=e),n.__},e.useReducer=G,e.useState=function(e){return L=1,G(Q,e)},Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.min.js.map |
{ | ||
"name": "@hpcc-js/preact-shim", | ||
"version": "2.14.2", | ||
"version": "2.14.3", | ||
"description": "hpcc-js - preact shim", | ||
@@ -36,3 +36,3 @@ "main": "dist/index.js", | ||
"stamp": "node ../../node_modules/@hpcc-js/bundle/src/stamp.js", | ||
"lint": "eslint src/**/*.ts", | ||
"lint": "eslint ./src", | ||
"docs": "typedoc --options tdoptions.json .", | ||
@@ -59,3 +59,3 @@ "update": "npx npm-check-updates -u -t minor" | ||
"homepage": "https://github.com/hpcc-systems/Visualization", | ||
"gitHead": "1a0ca31a7d2d50f83116d780353a8c894e1d4797" | ||
"gitHead": "bd452a4559c9e5790881521a332964eef36153b7" | ||
} |
export const PKG_NAME = "@hpcc-js/preact-shim"; | ||
export const PKG_VERSION = "2.14.2"; | ||
export const BUILD_VERSION = "2.102.8"; | ||
export const PKG_VERSION = "2.14.3"; | ||
export const BUILD_VERSION = "2.102.11"; |
export declare const PKG_NAME = "@hpcc-js/preact-shim"; | ||
export declare const PKG_VERSION = "2.14.2"; | ||
export declare const BUILD_VERSION = "2.102.8"; | ||
export declare const PKG_VERSION = "2.14.3"; | ||
export declare const BUILD_VERSION = "2.102.11"; | ||
//# sourceMappingURL=__package__.d.ts.map |
export declare const PKG_NAME = "@hpcc-js/preact-shim"; | ||
export declare const PKG_VERSION = "2.14.2"; | ||
export declare const BUILD_VERSION = "2.102.8"; | ||
export declare const PKG_VERSION = "2.14.3"; | ||
export declare const BUILD_VERSION = "2.102.11"; | ||
//# sourceMappingURL=__package__.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
318028