nanobot-voice-interface/frontend/node_modules/preact/dist/preact.umd.js

3 lines
11 KiB
JavaScript
Raw Normal View History

2026-03-06 22:51:19 -05:00
!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,o,r,f,u,c,s,a,h,p,l,y="http://www.w3.org/2000/svg",v="http://www.w3.org/1999/xhtml",d=null,w=void 0,g={},_=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function k(n,t){for(var i in t)n[i]=t[i];return n}function x(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function S(n,i,e){var o,r,f,u={};for(f in i)"key"==f?o=i[f]:"ref"==f?r=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!=d)for(f in n.defaultProps)u[f]===w&&(u[f]=n.defaultProps[f]);return M(n,u,o,r,d)}function M(n,t,o,r,f){var u={type:n,props:t,key:o,ref:r,__k:d,__:d,__b:0,__e:d,__c:d,constructor:w,__v:f==d?++e:f,__i:-1,__u:0};return f==d&&i.vnode!=d&&i.vnode(u),u}function T(n){return n.children}function $(n,t){this.props=n,this.context=t}function C(n,t){if(t==d)return n.__?C(n.__,n.__i+1):d;for(var i;t<n.__k.length;t++)if((i=n.__k[t])!=d&&i.__e!=d)return i.__e;return"function"==typeof n.type?C(n):d}function I(n){if(n.__P&&n.__d){var t=n.__v,e=t.__e,o=[],r=[],f=k({},t);f.__v=t.__v+1,i.vnode&&i.vnode(f),q(n.__P,f,t,n.__n,n.__P.namespaceURI,32&t.__u?[e]:d,o,e==d?C(t):e,!!(32&t.__u),r),f.__v=t.__v,f.__.__k[f.__i]=f,D(o,f,r),t.__e=t.__=null,f.__e!=e&&P(f)}}function P(n){if((n=n.__)!=d&&n.__c!=d)return n.__e=n.__c.base=d,n.__k.some(function(t){if(t!=d&&t.__e!=d)return n.__e=n.__c.base=t.__e}),P(n)}function j(n){(!n.__d&&(n.__d=!0)&&r.push(n)&&!A.__r++||f!=i.debounceRendering)&&((f=i.debounceRendering)||u)(A)}function A(){for(var n,t=1;r.length;)r.length>t&&r.sort(c),n=r.shift(),t=r.length,I(n);A.__r=0}function H(n,t,i,e,o,r,f,u,c,s,a){var h,p,l,y,v,m,b,k=e&&e.__k||_,x=t.length;for(c=L(i,t,k,c,x),h=0;h<x;h++)(l=i.__k[h])!=d&&(p=-1!=l.__i&&k[l.__i]||g,l.__i=h,m=q(n,l,p,o,r,f,u,c,s,a),y=l.__e,l.ref&&p.ref!=l.ref&&(p.ref&&J(p.ref,d,l),a.push(l.ref,l.__c||y,l)),v==d&&y!=d&&(v=y),(b=!!(4&l.__u))||p.__k===l.__k?c=F(l,c,n,b):"function"==typeof l.type&&m!==w?c=m:y&&(c=y.nextSibling),l.__u&=-7);return i.__e=v,c}function L(n,t,i,e,o){var r,f,u,c,s,a=i.length,h=a,p=0;for(n.__k=new Array(o),r=0;r<o;r++)(f=t[r])!=d&&"boolean"!=typeof f&&"function"!=typeof f?("string"==typeof f||"number"==typeof f||"bigint"==typeof f||f.constructor==String?f=n.__k[r]=M(d,f,d,d,d):b(f)?f=n.__k[r]=M(T,{children:f},d,d,d):f.constructor===w&&f.__b>0?f=n.__k[r]=M(f.type,f.props,f.key,f.ref?f.ref:d,f.__v):n.__k[r]=f,c=r+p,f.__=n,f.__b=n.__b+1,s=f.__i=O(f,i,c,h),u=d,-1!=s&&(h--,(u=i[s])&&(u.__u|=2)),u==d||u.__v==d?(-1==s&&(o>a?p--:o<a&&p++),"function"!=typeof f.type&&(f.__u|=4)):s!=c&&(s==c-1?p--:s==c+1?p++:(s>c?p--:p++,f.__u|=4))):n.__k[r]=d;if(h)for(r=0;r<a;r++)(u=i[r])!=d&&0==(2&u.__u)&&(u.__e==e&&(e=C(u)),K(u,u));return e}function F(n,t,i,e){var o,r;if("function"==typeof n.type){for(o=n.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=n,t=F(o[r],t,i,e));return t}n.__e!=t&&(e&&(t&&n.type&&!t.parentNode&&(t=C(n)),i.insertBefore(n.__e,t||d)),t=n.__e);do{t=t&&t.nextSibling}while(t!=d&&8==t.nodeType);return t}function O(n,t,i,e){var o,r,f,u=n.key,c=n.type,s=t[i],a=s!=d&&0==(2&s.__u);if(s===d&&null==u||a&&u==s.key&&c==s.type)return i;if(e>(a?1:0))for(o=i-1,r=i+1;o>=0||r<t.length;)if((s=t[f=o>=0?o--:r++])!=d&&0==(2&s.__u)&&u==s.key&&c==s.type)return f;return-1}function z(n,t,i){"-"==t[0]?n.setProperty(t,i==d?"":i):n[t]=i==d?"":"number"!=typeof i||m.test(t)?i:i+"px"}function N(n,t,i,e,o){var r,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||z(n.style,t,"");if(i)for(t in i)e&&i[t]==e[t]||z(n.style,t,i[t])}else if("o"==t[0]&&"n"==t[1])r=t!=(t=t.replace(s,"$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+r]=i,i?e?i.t=e.t:(i.t=a,n.addEventListener(t,r?p:h,r)):n.removeEventListener(t,r?p:h,r);else{if(o==y)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!
//# sourceMappingURL=preact.umd.js.map