mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-06 03:57:49 +08:00
2 lines
17 KiB
JavaScript
2 lines
17 KiB
JavaScript
var W,s,$_,C,t_,P_,z,Y,Z,J,U={},x_=[],O_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,V=Array.isArray;function x(_,e){for(var t in e)_[t]=e[t];return _}function C_(_){var e=_.parentNode;e&&e.removeChild(_)}function K(_,e,t){var n,o,r,l={};for(r in e)r=="key"?n=e[r]:r=="ref"?o=e[r]:l[r]=e[r];if(arguments.length>2&&(l.children=arguments.length>3?W.call(arguments,2):t),typeof _=="function"&&_.defaultProps!=null)for(r in _.defaultProps)l[r]===void 0&&(l[r]=_.defaultProps[r]);return D(_,l,n,o,null)}function D(_,e,t,n,o){var r={type:_,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++$_,__i:-1,__u:0};return o==null&&s.vnode!=null&&s.vnode(r),r}function te(){return{current:null}}function E(_){return _.children}function $(_,e){this.props=_,this.context=e}function S(_,e){if(e==null)return _.__?S(_.__,_.__i+1):null;for(var t;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null)return t.__e;return typeof _.type=="function"?S(_):null}function S_(_){var e,t;if((_=_.__)!=null&&_.__c!=null){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null){_.__e=_.__c.base=t.__e;break}return S_(_)}}function n_(_){(!_.__d&&(_.__d=!0)&&C.push(_)&&!F.__r++||t_!==s.debounceRendering)&&((t_=s.debounceRendering)||P_)(F)}function F(){var _,e,t,n,o,r,l,u;for(C.sort(z);_=C.shift();)_.__d&&(e=C.length,n=void 0,r=(o=(t=_).__v).__e,l=[],u=[],t.__P&&((n=x({},o)).__v=o.__v+1,s.vnode&&s.vnode(n),G(t.__P,n,o,t.__n,t.__P.namespaceURI,32&o.__u?[r]:null,l,r??S(o),!!(32&o.__u),u),n.__v=o.__v,n.__.__k[n.__i]=n,U_(l,n,u),n.__e!=r&&S_(n)),C.length>e&&C.sort(z));F.__r=0}function E_(_,e,t,n,o,r,l,u,c,f,p){var i,g,a,d,k,v=n&&n.__k||x_,h=e.length;for(t.__d=c,D_(t,e,v),c=t.__d,i=0;i<h;i++)(a=t.__k[i])!=null&&typeof a!="boolean"&&typeof a!="function"&&(g=a.__i===-1?U:v[a.__i]||U,a.__i=i,G(_,a,g,o,r,l,u,c,f,p),d=a.__e,a.ref&&g.ref!=a.ref&&(g.ref&&__(g.ref,null,a),p.push(a.ref,a.__c||d,a)),k==null&&d!=null&&(k=d),65536&a.__u||g.__k===a.__k?(c&&!c.isConnected&&(c=S(g)),c=H_(a,c,_)):typeof a.type=="function"&&a.__d!==void 0?c=a.__d:d&&(c=d.nextSibling),a.__d=void 0,a.__u&=-196609);t.__d=c,t.__e=k}function D_(_,e,t){var n,o,r,l,u,c=e.length,f=t.length,p=f,i=0;for(_.__k=[],n=0;n<c;n++)l=n+i,(o=_.__k[n]=(o=e[n])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?D(null,o,null,null,null):V(o)?D(E,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?D(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=_,o.__b=_.__b+1,u=L_(o,t,l,p),o.__i=u,r=null,u!==-1&&(p--,(r=t[u])&&(r.__u|=131072)),r==null||r.__v===null?(u==-1&&i--,typeof o.type!="function"&&(o.__u|=65536)):u!==l&&(u===l+1?i++:u>l?p>c-l?i+=u-l:i--:u<l?u==l-1&&(i=u-l):i=0,u!==n+i&&(o.__u|=65536))):(r=t[l])&&r.key==null&&r.__e&&!(131072&r.__u)&&(r.__e==_.__d&&(_.__d=S(r)),Q(r,r,!1),t[l]=null,p--);if(p)for(n=0;n<f;n++)(r=t[n])!=null&&!(131072&r.__u)&&(r.__e==_.__d&&(_.__d=S(r)),Q(r,r))}function H_(_,e,t){var n,o;if(typeof _.type=="function"){for(n=_.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=_,e=H_(n[o],e,t));return e}_.__e!=e&&(t.insertBefore(_.__e,e||null),e=_.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function R(_,e){return e=e||[],_==null||typeof _=="boolean"||(V(_)?_.some(function(t){R(t,e)}):e.push(_)),e}function L_(_,e,t,n){var o=_.key,r=_.type,l=t-1,u=t+1,c=e[t];if(c===null||c&&o==c.key&&r===c.type&&!(131072&c.__u))return t;if(n>(c!=null&&!(131072&c.__u)?1:0))for(;l>=0||u<e.length;){if(l>=0){if((c=e[l])&&!(131072&c.__u)&&o==c.key&&r===c.type)return l;l--}if(u<e.length){if((c=e[u])&&!(131072&c.__u)&&o==c.key&&r===c.type)return u;u++}}return-1}function o_(_,e,t){e[0]==="-"?_.setProperty(e,t??""):_[e]=t==null?"":typeof t!="number"||O_.test(e)?t:t+"px"}function M(_,e,t,n,o){var r;_:if(e==="style")if(typeof t=="string")_.style.cssText=t;else{if(typeof n=="string"&&(_.style.cssText=n=""),n)for(e in n)t&&e in t||o_(_.style,e,"");if(t)for(e in t)n&&t[e]===n[e]||o_(_.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")r=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in _||e==="onFocusOut"||e==="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),_.l||(_.l={}),_.l[e+r]=t,t?n?t.u=n.u:(t.u=Y,_.addEventListener(e,r?J:Z,r)):_.removeEventListener(e,r?J:Z,r);else{if(o=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e in _)try{_[e]=t??"";break _}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!=="-"?_.removeAttribute(e):_.setAttribute(e,t))}}function r_(_){return function(e){if(this.l){var t=this.l[e.type+_];if(e.t==null)e.t=Y++;else if(e.t<t.u)return;return t(s.event?s.event(e):e)}}}function G(_,e,t,n,o,r,l,u,c,f){var p,i,g,a,d,k,v,h,y,P,N,H,e_,T,I,b=e.type;if(e.constructor!==void 0)return null;128&t.__u&&(c=!!(32&t.__u),r=[u=e.__e=t.__e]),(p=s.__b)&&p(e);_:if(typeof b=="function")try{if(h=e.props,y=(p=b.contextType)&&n[p.__c],P=p?y?y.props.value:p.__:n,t.__c?v=(i=e.__c=t.__c).__=i.__E:("prototype"in b&&b.prototype.render?e.__c=i=new b(h,P):(e.__c=i=new $(h,P),i.constructor=b,i.render=R_),y&&y.sub(i),i.props=h,i.state||(i.state={}),i.context=P,i.__n=n,g=i.__d=!0,i.__h=[],i._sb=[]),i.__s==null&&(i.__s=i.state),b.getDerivedStateFromProps!=null&&(i.__s==i.state&&(i.__s=x({},i.__s)),x(i.__s,b.getDerivedStateFromProps(h,i.__s))),a=i.props,d=i.state,i.__v=e,g)b.getDerivedStateFromProps==null&&i.componentWillMount!=null&&i.componentWillMount(),i.componentDidMount!=null&&i.__h.push(i.componentDidMount);else{if(b.getDerivedStateFromProps==null&&h!==a&&i.componentWillReceiveProps!=null&&i.componentWillReceiveProps(h,P),!i.__e&&(i.shouldComponentUpdate!=null&&i.shouldComponentUpdate(h,i.__s,P)===!1||e.__v===t.__v)){for(e.__v!==t.__v&&(i.props=h,i.state=i.__s,i.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(A){A&&(A.__=e)}),N=0;N<i._sb.length;N++)i.__h.push(i._sb[N]);i._sb=[],i.__h.length&&l.push(i);break _}i.componentWillUpdate!=null&&i.componentWillUpdate(h,i.__s,P),i.componentDidUpdate!=null&&i.__h.push(function(){i.componentDidUpdate(a,d,k)})}if(i.context=P,i.props=h,i.__P=_,i.__e=!1,H=s.__r,e_=0,"prototype"in b&&b.prototype.render){for(i.state=i.__s,i.__d=!1,H&&H(e),p=i.render(i.props,i.state,i.context),T=0;T<i._sb.length;T++)i.__h.push(i._sb[T]);i._sb=[]}else do i.__d=!1,H&&H(e),p=i.render(i.props,i.state,i.context),i.state=i.__s;while(i.__d&&++e_<25);i.state=i.__s,i.getChildContext!=null&&(n=x(x({},n),i.getChildContext())),g||i.getSnapshotBeforeUpdate==null||(k=i.getSnapshotBeforeUpdate(a,d)),E_(_,V(I=p!=null&&p.type===E&&p.key==null?p.props.children:p)?I:[I],e,t,n,o,r,l,u,c,f),i.base=e.__e,e.__u&=-161,i.__h.length&&l.push(i),v&&(i.__E=i.__=null)}catch(A){e.__v=null,c||r!=null?(e.__e=u,e.__u|=c?160:32,r[r.indexOf(u)]=null):(e.__e=t.__e,e.__k=t.__k),s.__e(A,e,t)}else r==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=F_(t.__e,e,t,n,o,r,l,c,f);(p=s.diffed)&&p(e)}function U_(_,e,t){e.__d=void 0;for(var n=0;n<t.length;n++)__(t[n],t[++n],t[++n]);s.__c&&s.__c(e,_),_.some(function(o){try{_=o.__h,o.__h=[],_.some(function(r){r.call(o)})}catch(r){s.__e(r,o.__v)}})}function F_(_,e,t,n,o,r,l,u,c){var f,p,i,g,a,d,k,v=t.props,h=e.props,y=e.type;if(y==="svg"?o="http://www.w3.org/2000/svg":y==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),r!=null){for(f=0;f<r.length;f++)if((a=r[f])&&"setAttribute"in a==!!y&&(y?a.localName===y:a.nodeType===3)){_=a,r[f]=null;break}}if(_==null){if(y===null)return document.createTextNode(h);_=document.createElementNS(o,y,h.is&&h),r=null,u=!1}if(y===null)v===h||u&&_.data===h||(_.data=h);else{if(r=r&&W.call(_.childNodes),v=t.props||U,!u&&r!=null)for(v={},f=0;f<_.attributes.length;f++)v[(a=_.attributes[f]).name]=a.value;for(f in v)if(a=v[f],f!="children"){if(f=="dangerouslySetInnerHTML")i=a;else if(f!=="key"&&!(f in h)){if(f=="value"&&"defaultValue"in h||f=="checked"&&"defaultChecked"in h)continue;M(_,f,null,a,o)}}for(f in h)a=h[f],f=="children"?g=a:f=="dangerouslySetInnerHTML"?p=a:f=="value"?d=a:f=="checked"?k=a:f==="key"||u&&typeof a!="function"||v[f]===a||M(_,f,a,v[f],o);if(p)u||i&&(p.__html===i.__html||p.__html===_.innerHTML)||(_.innerHTML=p.__html),e.__k=[];else if(i&&(_.innerHTML=""),E_(_,V(g)?g:[g],e,t,n,y==="foreignObject"?"http://www.w3.org/1999/xhtml":o,r,l,r?r[0]:t.__k&&S(t,0),u,c),r!=null)for(f=r.length;f--;)r[f]!=null&&C_(r[f]);u||(f="value",d!==void 0&&(d!==_[f]||y==="progress"&&!d||y==="option"&&d!==v[f])&&M(_,f,d,v[f],o),f="checked",k!==void 0&&k!==_[f]&&M(_,f,k,v[f],o))}return _}function __(_,e,t){try{typeof _=="function"?_(e):_.current=e}catch(n){s.__e(n,t)}}function Q(_,e,t){var n,o;if(s.unmount&&s.unmount(_),(n=_.ref)&&(n.current&&n.current!==_.__e||__(n,null,e)),(n=_.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(r){s.__e(r,e)}n.base=n.__P=null}if(n=_.__k)for(o=0;o<n.length;o++)n[o]&&Q(n[o],e,t||typeof _.type!="function");t||_.__e==null||C_(_.__e),_.__c=_.__=_.__e=_.__d=void 0}function R_(_,e,t){return this.constructor(_,t)}function W_(_,e,t){var n,o,r,l;s.__&&s.__(_,e),o=(n=typeof t=="function")?null:e.__k,r=[],l=[],G(e,_=(!n&&t||e).__k=K(E,null,[_]),o||U,U,e.namespaceURI,!n&&t?[t]:o?null:e.firstChild?W.call(e.childNodes):null,r,!n&&t?t:o?o.__e:e.firstChild,n,l),U_(r,_,l)}W=x_.slice,s={__e:function(_,e,t,n){for(var o,r,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&r.getDerivedStateFromError!=null&&(o.setState(r.getDerivedStateFromError(_)),l=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(_,n||{}),l=o.__d),l)return o.__E=o}catch(u){_=u}throw _}},$_=0,$.prototype.setState=function(_,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=x({},this.state),typeof _=="function"&&(_=_(x({},t),this.props)),_&&x(t,_),_!=null&&this.__v&&(e&&this._sb.push(e),n_(this))},$.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),n_(this))},$.prototype.render=E,C=[],P_=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,z=function(_,e){return _.__v.__b-e.__v.__b},F.__r=0,Y=0,Z=r_(!1),J=r_(!0);var w,B,i_,N_=[],j=[],m=s,l_=m.__b,u_=m.__r,c_=m.diffed,f_=m.__c,a_=m.unmount,s_=m.__;function V_(){for(var _;_=N_.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(L),_.__H.__h.forEach(X),_.__H.__h=[]}catch(e){_.__H.__h=[],m.__e(e,_.__v)}}m.__b=function(_){w=null,l_&&l_(_)},m.__=function(_,e){_&&e.__k&&e.__k.__m&&(_.__m=e.__k.__m),s_&&s_(_,e)},m.__r=function(_){u_&&u_(_);var e=(w=_.__c).__H;e&&(B===w?(e.__h=[],w.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=j,t.__N=t.i=void 0})):(e.__h.forEach(L),e.__h.forEach(X),e.__h=[])),B=w},m.diffed=function(_){c_&&c_(_);var e=_.__c;e&&e.__H&&(e.__H.__h.length&&(N_.push(e)!==1&&i_===m.requestAnimationFrame||((i_=m.requestAnimationFrame)||I_)(V_)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==j&&(t.__=t.__V),t.i=void 0,t.__V=j})),B=w=null},m.__c=function(_,e){e.some(function(t){try{t.__h.forEach(L),t.__h=t.__h.filter(function(n){return!n.__||X(n)})}catch(n){e.some(function(o){o.__h&&(o.__h=[])}),e=[],m.__e(n,t.__v)}}),f_&&f_(_,e)},m.unmount=function(_){a_&&a_(_);var e,t=_.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{L(n)}catch(o){e=o}}),t.__H=void 0,e&&m.__e(e,t.__v))};var p_=typeof requestAnimationFrame=="function";function I_(_){var e,t=function(){clearTimeout(n),p_&&cancelAnimationFrame(e),setTimeout(_)},n=setTimeout(t,100);p_&&(e=requestAnimationFrame(t))}function L(_){var e=w,t=_.__c;typeof t=="function"&&(_.__c=void 0,t()),w=e}function X(_){var e=w;_.__c=_.__(),w=e}function B_(_,e){for(var t in e)_[t]=e[t];return _}function h_(_,e){for(var t in _)if(t!=="__source"&&!(t in e))return!0;for(var n in e)if(n!=="__source"&&_[n]!==e[n])return!0;return!1}function d_(_,e){this.props=_,this.context=e}(d_.prototype=new $).isPureReactComponent=!0,d_.prototype.shouldComponentUpdate=function(_,e){return h_(this.props,_)||h_(this.state,e)};var v_=s.__b;s.__b=function(_){_.type&&_.type.__f&&_.ref&&(_.props.ref=_.ref,_.ref=null),v_&&v_(_)};var j_=s.__e;s.__e=function(_,e,t,n){if(_.then){for(var o,r=e;r=r.__;)if((o=r.__c)&&o.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),o.__c(_,e)}j_(_,e,t,n)};var y_=s.unmount;function T_(_,e,t){return _&&(_.__c&&_.__c.__H&&(_.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),_.__c.__H=null),(_=B_({},_)).__c!=null&&(_.__c.__P===t&&(_.__c.__P=e),_.__c=null),_.__k=_.__k&&_.__k.map(function(n){return T_(n,e,t)})),_}function A_(_,e,t){return _&&t&&(_.__v=null,_.__k=_.__k&&_.__k.map(function(n){return A_(n,e,t)}),_.__c&&_.__c.__P===e&&(_.__e&&t.appendChild(_.__e),_.__c.__e=!0,_.__c.__P=t)),_}function q(){this.__u=0,this.t=null,this.__b=null}function M_(_){var e=_.__.__c;return e&&e.__a&&e.__a(_)}function O(){this.u=null,this.o=null}s.unmount=function(_){var e=_.__c;e&&e.__R&&e.__R(),e&&32&_.__u&&(_.type=null),y_&&y_(_)},(q.prototype=new $).__c=function(_,e){var t=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(t);var o=M_(n.__v),r=!1,l=function(){r||(r=!0,t.__R=null,o?o(u):u())};t.__R=l;var u=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=A_(c,c.__c.__P,c.__c.__O)}var f;for(n.setState({__a:n.__b=null});f=n.t.pop();)f.forceUpdate()}};n.__u++||32&e.__u||n.setState({__a:n.__b=n.__v.__k[0]}),_.then(l,l)},q.prototype.componentWillUnmount=function(){this.t=[]},q.prototype.render=function(_,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=T_(this.__b,t,n.__O=n.__P)}this.__b=null}var o=e.__a&&K(E,null,_.fallback);return o&&(o.__u&=-33),[K(E,null,e.__a?null:_.children),o]};var m_=function(_,e,t){if(++t[1]===t[0]&&_.o.delete(e),_.props.revealOrder&&(_.props.revealOrder[0]!=="t"||!_.o.size))for(t=_.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;_.u=t=t[2]}};(O.prototype=new $).__a=function(_){var e=this,t=M_(e.__v),n=e.o.get(_);return n[0]++,function(o){var r=function(){e.props.revealOrder?(n.push(o),m_(e,_,n)):o()};t?t(r):r()}},O.prototype.render=function(_){this.u=null,this.o=new Map;var e=R(_.children);_.revealOrder&&_.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return _.children},O.prototype.componentDidUpdate=O.prototype.componentDidMount=function(){var _=this;this.o.forEach(function(e,t){m_(_,t,e)})};var q_=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,z_=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Z_=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,J_=/[A-Z0-9]/g,K_=typeof document<"u",Q_=function(_){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(_)};function ne(_,e,t){return e.__k==null&&(e.textContent=""),W_(_,e),typeof t=="function"&&t(),_?_.__c:null}$.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(_){Object.defineProperty($.prototype,_,{configurable:!0,get:function(){return this["UNSAFE_"+_]},set:function(e){Object.defineProperty(this,_,{configurable:!0,writable:!0,value:e})}})});var g_=s.event;function X_(){}function Y_(){return this.cancelBubble}function G_(){return this.defaultPrevented}s.event=function(_){return g_&&(_=g_(_)),_.persist=X_,_.isPropagationStopped=Y_,_.isDefaultPrevented=G_,_.nativeEvent=_};var _e={enumerable:!1,configurable:!0,get:function(){return this.class}},b_=s.vnode;s.vnode=function(_){typeof _.type=="string"&&function(e){var t=e.props,n=e.type,o={};for(var r in t){var l=t[r];if(!(r==="value"&&"defaultValue"in t&&l==null||K_&&r==="children"&&n==="noscript"||r==="class"||r==="className")){var u=r.toLowerCase();r==="defaultValue"&&"value"in t&&t.value==null?r="value":r==="download"&&l===!0?l="":u==="translate"&&l==="no"?l=!1:u==="ondoubleclick"?r="ondblclick":u!=="onchange"||n!=="input"&&n!=="textarea"||Q_(t.type)?u==="onfocus"?r="onfocusin":u==="onblur"?r="onfocusout":Z_.test(r)?r=u:n.indexOf("-")===-1&&z_.test(r)?r=r.replace(J_,"-$&").toLowerCase():l===null&&(l=void 0):u=r="oninput",u==="oninput"&&o[r=u]&&(r="oninputCapture"),o[r]=l}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=R(t.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=R(t.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),t.class&&!t.className?(o.class=t.class,Object.defineProperty(o,"className",_e)):(t.className&&!t.class||t.class&&t.className)&&(o.class=o.className=t.className),e.props=o}(_),_.$$typeof=q_,b_&&b_(_)};var k_=s.__r;s.__r=function(_){k_&&k_(_),_.__c};var w_=s.diffed;s.diffed=function(_){w_&&w_(_);var e=_.props,t=_.__e;t!=null&&_.type==="textarea"&&"value"in e&&e.value!==t.value&&(t.value=e.value==null?"":e.value)};var ee=0;function oe(_,e,t,n,o,r){e||(e={});var l,u,c=e;if("ref"in c)for(u in c={},e)u=="ref"?l=e[u]:c[u]=e[u];var f={type:_,props:c,key:t,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--ee,__i:-1,__u:0,__source:o,__self:r};if(typeof _=="function"&&(l=_.defaultProps))for(u in l)c[u]===void 0&&(c[u]=l[u]);return s.vnode&&s.vnode(f),f}export{K as _,$ as b,te as m,ne as q,oe as u};
|