mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 09:03:37 +03:00
4 lines
8.4 KiB
TypeScript
4 lines
8.4 KiB
TypeScript
|
// Loaded from https://cdn.esm.sh/v15/react@17.0.1/esnext/react.js
|
||
|
|
||
|
|
||
|
var G=Object.create,_=Object.defineProperty,J=Object.getPrototypeOf,K=Object.prototype.hasOwnProperty,Q=Object.getOwnPropertyNames,X=Object.getOwnPropertyDescriptor;var Z=e=>_(e,"__esModule",{value:!0});var g=(e,r)=>()=>(r||(r={exports:{}},e(r.exports,r)),r.exports);var ee=(e,r,t)=>{if(Z(e),r&&typeof r=="object"||typeof r=="function")for(let n of Q(r))!K.call(e,n)&&n!=="default"&&_(e,n,{get:()=>r[n],enumerable:!(t=X(r,n))||t.enumerable});return e},re=e=>e&&e.__esModule?e:ee(_(e!=null?G(J(e)):{},"default",{value:e,enumerable:!0}),e);var P=g((Te,k)=>{"use strict";var $=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable;function oe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ue(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var n=Object.getOwnPropertyNames(r).map(function(i){return r[i]});if(n.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch(i){return!1}}k.exports=ue()?Object.assign:function(e,r){for(var t,n=oe(e),o,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var s in t)te.call(t,s)&&(n[s]=t[s]);if($){o=$(t);for(var c=0;c<o.length;c++)ne.call(t,o[c])&&(n[o[c]]=t[o[c]])}}return n}});var z=g(u=>{"use strict";var E=P(),y=60103,b=60106;u.Fragment=60107;u.StrictMode=60108;u.Profiler=60114;var w=60109,x=60110,I=60112;u.Suspense=60113;var N=60115,q=60116;typeof Symbol=="function"&&Symbol.for&&(l=Symbol.for,y=l("react.element"),b=l("react.portal"),u.Fragment=l("react.fragment"),u.StrictMode=l("react.strict_mode"),u.Profiler=l("react.profiler"),w=l("react.provider"),x=l("react.context"),I=l("react.forward_ref"),u.Suspense=l("react.suspense"),N=l("react.memo"),q=l("react.lazy"));var l,A=typeof Symbol=="function"&&Symbol.iterator;function ie(e){return e===null||typeof e!="object"?null:(e=A&&e[A]||e["@@iterator"],typeof e=="function"?e:null)}function v(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)r+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var F={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L={};function d(e,r,t){this.props=e,this.context=r,this.refs=L,this.updater=t||F}d.prototype.isReactComponent={};d.prototype.setState=function(e,r){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(v(85));this.updater.enqueueSetState(this,e,r,"setState")};d.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function U(){}U.prototype=d.prototype;function O(e,r,t){this.props=e,this.context=r,this.refs=L,this.updater=t||F}var j=O.prototype=new U;j.constructor=O;E(j,d.prototype);j.isPureReactComponent=!0;var S={current:null},D=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0};function T(e,r,t){var n,o={},i=null,s=null;if(r!=null)for(n in r.ref!==void 0&&(s=r.ref),r.key!==void 0&&(i=""+r.key),r)D.call(r,n)&&!M.hasOwnProperty(n)&&(o[n]=r[n]);var c=arguments.length-2;if(c===1)o.children=t;else if(1<c){for(var f=Array(c),a=0;a<c;a++)f[a]=arguments[a+2];o.children=f}if(e&&e.defaultProps)for(n in c=e.defaultProps,c)o[n]===void 0&&(o[n]=c[n]);return{$$typeof:y,type:e,key:i,ref:s,props:o,_owner:S.current}}function ce(e,r){return{$$typeof:y,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}function C(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}function se(e){var r={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return r[t]})}var V=/\/+/g;function R(e,r){return typeof e=="object"&&e!==null&&e.key!=null?se(""+e.key):r.toString(36)}function m(e,r,t,n,o){var i=typeof e;(i==="
|