数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

2 lines
11 KiB

!function(n){"function"==typeof define&&define.amd?define(n):n()}(function(){var n,l,u,t,i,o,e,r,f,c,a={},s=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,v=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function p(n){var l=n.parentNode;l&&l.removeChild(n)}function y(l,u,t){var i,o,e,r={};for(e in u)"key"==e?i=u[e]:"ref"==e?o=u[e]:r[e]=u[e];if(arguments.length>2&&(r.children=arguments.length>3?n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(e in l.defaultProps)void 0===r[e]&&(r[e]=l.defaultProps[e]);return _(l,r,i,o,null)}function _(n,t,i,o,e){var r={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==e?++u:e};return null==e&&null!=l.vnode&&l.vnode(r),r}function m(n){return n.children}function g(n,l){this.props=n,this.context=l}function k(n,l){if(null==l)return n.__?k(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.__d||u.__e;return"function"==typeof n.type?k(n):null}function b(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(n)}}function w(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!C.__r++||o!==l.debounceRendering)&&((o=l.debounceRendering)||e)(C)}function C(){var n,l,u,t,o,e,f,c,a;for(i.sort(r);n=i.shift();)n.__d&&(l=i.length,t=void 0,o=void 0,e=void 0,c=(f=(u=n).__v).__e,(a=u.__P)&&(t=[],o=[],(e=d({},f)).__v=f.__v+1,T(a,f,e,u.__n,void 0!==a.ownerSVGElement,null!=f.__h?[c]:null,t,null==c?k(f):c,f.__h,o),j(t,f,o),f.__e!=c&&b(f)),i.length>l&&i.sort(r));C.__r=0}function x(n,l,u,t,i,o,e,r,f,c,h){var d,p,y,g,b,w,C,x,E,S=0,D=t&&t.__k||s,H=D.length,I=H,j=l.length;for(u.__k=[],d=0;d<j;d++)null!=(g=u.__k[d]=null==(g=l[d])||"boolean"==typeof g||"function"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?_(null,g,null,null,g):v(g)?_(m,{children:g},null,null,null):g.__b>0?_(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)?(g.__=u,g.__b=u.__b+1,-1===(x=A(g,D,C=d+S,I))?y=a:(y=D[x]||a,D[x]=void 0,I--),T(n,g,y,i,o,e,r,f,c,h),b=g.__e,(p=g.ref)&&y.ref!=p&&(y.ref&&F(y.ref,null,g),h.push(p,g.__c||b,g)),null!=b&&(null==w&&(w=b),(E=y===a||null===y.__v)?-1==x&&S--:x!==C&&(x===C+1?S++:x>C?I>j-C?S+=x-C:S--:S=x<C&&x==C-1?x-C:0),C=d+S,"function"!=typeof g.type||x===C&&y.__k!==g.__k?"function"==typeof g.type||x===C&&!E?void 0!==g.__d?(f=g.__d,g.__d=void 0):f=b.nextSibling:f=$(n,b,f):f=P(g,f,n),"function"==typeof u.type&&(u.__d=f))):(y=D[d])&&null==y.key&&y.__e&&(y.__e==f&&(y.__=t,f=k(y)),L(y,y,!1),D[d]=null);for(u.__e=w,d=H;d--;)null!=D[d]&&("function"==typeof u.type&&null!=D[d].__e&&D[d].__e==u.__d&&(u.__d=D[d].__e.nextSibling),L(D[d],D[d]))}function P(n,l,u){for(var t,i=n.__k,o=0;i&&o<i.length;o++)(t=i[o])&&(t.__=n,l="function"==typeof t.type?P(t,l,u):$(u,t.__e,l));return l}function $(n,l,u){return null==u||u.parentNode!==n?n.insertBefore(l,null):l==u&&null!=l.parentNode||n.insertBefore(l,u),l.nextSibling}function A(n,l,u,t){var i=n.key,o=n.type,e=u-1,r=u+1,f=l[u];if(null===f||f&&i==f.key&&o===f.type)return u;if(t>(null!=f?1:0))for(;e>=0||r<l.length;){if(e>=0){if((f=l[e])&&i==f.key&&o===f.type)return e;e--}if(r<l.length){if((f=l[r])&&i==f.key&&o===f.type)return r;r++}}return-1}function E(n,l,u,t,i){var o;for(o in u)"children"===o||"key"===o||o in l||D(n,o,null,u[o],t);for(o in l)i&&"function"!=typeof l[o]||"children"===o||"key"===o||"value"===o||"checked"===o||u[o]===l[o]||D(n,o,l[o],u[o],t)}function S(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||h.test(l)?u:u+"px"}function D(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||S(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||S(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/,"$1")),l=l.toLowerCase()in n?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=Date.now(),n.addEventListener(l,o?I:H,o)):n.removeEventListener(l,o?I:H,o);else if("dangerouslySetInnerHTML"!==l){if(i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==l&&"height"!==l&&"href"!==l&&"list"!==l&&"form"!==l&&"tabIndex"!==l&&"download"!==l&&"rowSpan"!==l&&"colSpan"!==l&&"role"!==l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,u))}}function H(n){var u=this.l[n.type+!1];if(n.t){if(n.t<=u.u)return}else n.t=Date.now();return u(l.event?l.event(n):n)}function I(n){return this.l[n.type+!0](l.event?l.event(n):n)}function T(n,u,t,i,o,e,r,f,c,a){var s,h,p,y,_,k,b,w,C,P,$,A,E,S,D,H=u.type;if(void 0!==u.constructor)return null;null!=t.__h&&(c=t.__h,f=u.__e=t.__e,u.__h=null,e=[f]),(s=l.__b)&&s(u);n:if("function"==typeof H)try{if(w=u.props,C=(s=H.contextType)&&i[s.__c],P=s?C?C.props.value:s.__:i,t.__c?b=(h=u.__c=t.__c).__=h.__E:("prototype"in H&&H.prototype.render?u.__c=h=new H(w,P):(u.__c=h=new g(w,P),h.constructor=H,h.render=M),C&&C.sub(h),h.props=w,h.state||(h.state={}),h.context=P,h.__n=i,p=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=H.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,H.getDerivedStateFromProps(w,h.__s))),y=h.props,_=h.state,h.__v=u,p)null==H.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==H.getDerivedStateFromProps&&w!==y&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(w,P),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(w,h.__s,P)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=w,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.forEach(function(n){n&&(n.__=u)}),$=0;$<h._sb.length;$++)h.__h.push(h._sb[$]);h._sb=[],h.__h.length&&r.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(w,h.__s,P),null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(y,_,k)})}if(h.context=P,h.props=w,h.__P=n,h.__e=!1,A=l.__r,E=0,"prototype"in H&&H.prototype.render){for(h.state=h.__s,h.__d=!1,A&&A(u),s=h.render(h.props,h.state,h.context),S=0;S<h._sb.length;S++)h.__h.push(h._sb[S]);h._sb=[]}else do{h.__d=!1,A&&A(u),s=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++E<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),p||null==h.getSnapshotBeforeUpdate||(k=h.getSnapshotBeforeUpdate(y,_)),x(n,v(D=null!=s&&s.type===m&&null==s.key?s.props.children:s)?D:[D],u,t,i,o,e,r,f,c,a),h.base=u.__e,u.__h=null,h.__h.length&&r.push(h),b&&(h.__E=h.__=null)}catch(n){u.__v=null,(c||null!=e)&&(u.__e=f,u.__h=!!c,e[e.indexOf(f)]=null),l.__e(n,u,t)}else null==e&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z(t.__e,u,t,i,o,e,r,c,a);(s=l.diffed)&&s(u)}function j(n,u,t){for(var i=0;i<t.length;i++)F(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function z(l,u,t,i,o,e,r,f,c){var s,h,d,y=t.props,_=u.props,m=u.type,g=0;if("svg"===m&&(o=!0),null!=e)for(;g<e.length;g++)if((s=e[g])&&"setAttribute"in s==!!m&&(m?s.localName===m:3===s.nodeType)){l=s,e[g]=null;break}if(null==l){if(null===m)return document.createTextNode(_);l=o?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,_.is&&_),e=null,f=!1}if(null===m)y===_||f&&l.data===_||(l.data=_);else{if(e=e&&n.call(l.childNodes),h=(y=t.props||a).dangerouslySetInnerHTML,d=_.dangerouslySetInnerHTML,!f){if(null!=e)for(y={},g=0;g<l.attributes.length;g++)y[l.attributes[g].name]=l.attributes[g].value;(d||h)&&(d&&(h&&d.__html==h.__html||d.__html===l.innerHTML)||(l.innerHTML=d&&d.__html||""))}if(E(l,_,y,o,f),d)u.__k=[];else if(x(l,v(g=u.props.children)?g:[g],u,t,i,o&&"foreignObject"!==m,e,r,e?e[0]:t.__k&&k(t,0),f,c),null!=e)for(g=e.length;g--;)null!=e[g]&&p(e[g]);f||("value"in _&&void 0!==(g=_.value)&&(g!==l.value||"progress"===m&&!g||"option"===m&&g!==y.value)&&D(l,"value",g,y.value,!1),"checked"in _&&void 0!==(g=_.checked)&&g!==l.checked&&D(l,"checked",g,y.checked,!1))}return l}function F(n,u,t){try{"function"==typeof n?n(u):n.current=u}catch(n){l.__e(n,t)}}function L(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||F(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null,n.__c=void 0}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&L(i[o],u,t||"function"!=typeof n.type);t||null==n.__e||p(n.__e),n.__=n.__e=n.__d=void 0}function M(n,l,u){return this.constructor(n,u)}function N(u,t,i){var o,e,r,f;l.__&&l.__(u,t),e=(o="function"==typeof i)?null:i&&i.__k||t.__k,r=[],f=[],T(t,u=(!o&&i||t).__k=y(m,null,[u]),e||a,a,void 0!==t.ownerSVGElement,!o&&i?[i]:e?null:t.firstChild?n.call(t.childNodes):null,r,!o&&i?i:e?e.__e:t.firstChild,o,f),j(r,u,f)}n=s.slice,l={__e:function(n,l,u,t){for(var i,o,e;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),e=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),e=i.__d),e)return i.__E=i}catch(l){n=l}throw n}},u=0,t=function(n){return null!=n&&void 0===n.constructor},g.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),w(this))},g.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),w(this))},g.prototype.render=m,i=[],e="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,r=function(n,l){return n.__v.__b-l.__v.__b},C.__r=0,f=0,c={__proto__:null,render:N,hydrate:function n(l,u){N(l,u,n)},createElement:y,h:y,Fragment:m,createRef:function(){return{current:null}},isValidElement:t,Component:g,cloneElement:function(l,u,t){var i,o,e,r,f=d({},l.props);for(e in l.type&&l.type.defaultProps&&(r=l.type.defaultProps),u)"key"==e?i=u[e]:"ref"==e?o=u[e]:f[e]=void 0===u[e]&&void 0!==r?r[e]:u[e];return arguments.length>2&&(f.children=arguments.length>3?n.call(arguments,2):t),_(l.type,f,i||l.key,o||l.ref,null)},createContext:function(n,l){var u={__c:l="__cC"+f++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,w(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u},toChildArray:function n(l,u){return u=u||[],null==l||"boolean"==typeof l||(v(l)?l.some(function(l){n(l,u)}):u.push(l)),u},options:l},typeof module<"u"?module.exports=c:self.preact=c});
//# sourceMappingURL=preact.min.umd.js.map