WordPress/wp-includes/js/dist/vendor/react.min.js

9 lines
11 KiB
JavaScript
Raw Normal View History

/** @license React v17.0.1
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
!function(){"use strict";var e,t;e=this,t=function(e){function t(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||$}function r(){}function o(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||$}function u(e,t,n){var r,o={},u=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(u=""+t.key),t)M.call(t,r)&&!A.hasOwnProperty(r)&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return{$$typeof:m,type:e,key:u,ref:i,props:o,_owner:I.current}}function i(e){return"object"==typeof e&&null!==e&&e.$$typeof===m}function a(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function l(e,n,r,o,u){var c=typeof e;"undefined"!==c&&"boolean"!==c||(e=null);var f=!1;if(null===e)f=!0;else switch(c){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case m:case w:f=!0}}if(f)return u=u(f=e),e=""===o?"."+a(f,0):o,Array.isArray(u)?(r="",null!=e&&(r=e.replace(F,"$&/")+"/"),l(u,n,r,"",(function(e){return e}))):null!=u&&(i(u)&&(u=function(e,t){return{$$typeof:m,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(u,r+(!u.key||f&&f.key===u.key?"":(""+u.key).replace(F,"$&/")+"/")+e)),n.push(u)),1;if(f=0,o=""===o?".":o+":",Array.isArray(e))for(var s=0;s<e.length;s++){var p=o+a(c=e[s],s);f+=l(c,n,r,p,u)}else if(p=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=j&&e[j]||e["@@iterator"])?e:null}(e),"function"==typeof p)for(e=p.call(e),s=0;!(c=e.next()).done;)f+=l(c=c.value,n,r,p=o+a(c,s++),u);else if("object"===c)throw n=""+e,Error(t(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n));return f}function c(e,t,n){if(null==e)return e;var r=[],o=0;return l(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function f(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}function s(){var e=L.current;if(null===e)throw Error(t(321));return e}function p(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<b(o,t)))break e;e[r]=t,e[n]=o,n=r}}function y(e){return void 0===(e=e[0])?null:e}function d(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var u=2*(r+1)-1,i=e[u],a=u+1,l=e[a];if(void 0!==i&&0>b(i,n))void 0!==l&&0>b(l,i)?(e[r]=l,e[a]=n,r=a):(e[r]=i,e[u]=n,r=u);else{if(!(void 0!==l&&0>b(l,n)))break e;e[r]=l,e[a]=n,r=a}}}return t}return null}function b(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}function v(e){for(var t=y(ue);null!==t;){if(null===t.callback)d(ue);else{if(!(t.startTime<=e))break;d(ue),t.sortIndex=t.expirationTime,p(oe,t)}t=y(ue)}}function _(e){if(se=!1,v(e),!fe)if(null!==y(oe))fe=!0,H(h);else{var t=y(ue);null!==t&&W(_,t.startTime-e)}}function h(e,t){fe=!1,se&&(se=!1,Y()),ce=!0;var n=le;try{for(v(t),ae=y(oe);null!==ae&&(!(ae.expirationTime>t)||e&&!G());){var r=ae.callback;if("function"==typeof r){ae.callback=null,le=ae.priorityLevel;var o=r(ae.expirationTime<=t);t=U(),"function"==typeof o?ae.callback=o:ae===y(oe)&&d(oe),v(t)}else d(oe);ae=y(oe)}if(null!==ae)var u=!0;else{var i=y(ue);null!==i&&W(_,i.startTime-t),u=!1}return u}finally{ae=null,le=n,ce=!1}}var m=60103,w=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var g=60109,k=60110,C=60112;e.Suspense=60113;var S=60115,x=60116;if("function"==typeof Symbol&&Symbol.for){var R=Symbol.for;m=R("react.eleme