| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 var ReactJSXRuntime = (() => { 2 var __getOwnPropNames = Object.getOwnPropertyNames; 3 var __commonJS = (cb, mod) => function __require() { 4 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; 5 }; 6 7 // react-external:react 8 var require_react = __commonJS({ 9 "react-external:react"(exports, module) { 10 module.exports = globalThis.React; 11 } 12 }); 13 14 // ../react-19/node_modules/react/cjs/react-jsx-runtime.development.js 15 var require_react_jsx_runtime_development = __commonJS({ 16 "../react-19/node_modules/react/cjs/react-jsx-runtime.development.js"(exports) { 17 "use strict"; 18 (function() { 19 function getComponentNameFromType(type) { 20 if (null == type) return null; 21 if ("function" === typeof type) 22 return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null; 23 if ("string" === typeof type) return type; 24 switch (type) { 25 case REACT_FRAGMENT_TYPE: 26 return "Fragment"; 27 case REACT_PROFILER_TYPE: 28 return "Profiler"; 29 case REACT_STRICT_MODE_TYPE: 30 return "StrictMode"; 31 case REACT_SUSPENSE_TYPE: 32 return "Suspense"; 33 case REACT_SUSPENSE_LIST_TYPE: 34 return "SuspenseList"; 35 case REACT_ACTIVITY_TYPE: 36 return "Activity"; 37 } 38 if ("object" === typeof type) 39 switch ("number" === typeof type.tag && console.error( 40 "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." 41 ), type.$$typeof) { 42 case REACT_PORTAL_TYPE: 43 return "Portal"; 44 case REACT_CONTEXT_TYPE: 45 return type.displayName || "Context"; 46 case REACT_CONSUMER_TYPE: 47 return (type._context.displayName || "Context") + ".Consumer"; 48 case REACT_FORWARD_REF_TYPE: 49 var innerType = type.render; 50 type = type.displayName; 51 type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"); 52 return type; 53 case REACT_MEMO_TYPE: 54 return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo"; 55 case REACT_LAZY_TYPE: 56 innerType = type._payload; 57 type = type._init; 58 try { 59 return getComponentNameFromType(type(innerType)); 60 } catch (x) { 61 } 62 } 63 return null; 64 } 65 function testStringCoercion(value) { 66 return "" + value; 67 } 68 function checkKeyStringCoercion(value) { 69 try { 70 testStringCoercion(value); 71 var JSCompiler_inline_result = false; 72 } catch (e) { 73 JSCompiler_inline_result = true; 74 } 75 if (JSCompiler_inline_result) { 76 JSCompiler_inline_result = console; 77 var JSCompiler_temp_const = JSCompiler_inline_result.error; 78 var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; 79 JSCompiler_temp_const.call( 80 JSCompiler_inline_result, 81 "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", 82 JSCompiler_inline_result$jscomp$0 83 ); 84 return testStringCoercion(value); 85 } 86 } 87 function getTaskName(type) { 88 if (type === REACT_FRAGMENT_TYPE) return "<>"; 89 if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) 90 return "<...>"; 91 try { 92 var name = getComponentNameFromType(type); 93 return name ? "<" + name + ">" : "<...>"; 94 } catch (x) { 95 return "<...>"; 96 } 97 } 98 function getOwner() { 99 var dispatcher = ReactSharedInternals.A; 100 return null === dispatcher ? null : dispatcher.getOwner(); 101 } 102 function UnknownOwner() { 103 return Error("react-stack-top-frame"); 104 } 105 function hasValidKey(config) { 106 if (hasOwnProperty.call(config, "key")) { 107 var getter = Object.getOwnPropertyDescriptor(config, "key").get; 108 if (getter && getter.isReactWarning) return false; 109 } 110 return void 0 !== config.key; 111 } 112 function defineKeyPropWarningGetter(props, displayName) { 113 function warnAboutAccessingKey() { 114 specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error( 115 "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", 116 displayName 117 )); 118 } 119 warnAboutAccessingKey.isReactWarning = true; 120 Object.defineProperty(props, "key", { 121 get: warnAboutAccessingKey, 122 configurable: true 123 }); 124 } 125 function elementRefGetterWithDeprecationWarning() { 126 var componentName = getComponentNameFromType(this.type); 127 didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error( 128 "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." 129 )); 130 componentName = this.props.ref; 131 return void 0 !== componentName ? componentName : null; 132 } 133 function ReactElement(type, key, props, owner, debugStack, debugTask) { 134 var refProp = props.ref; 135 type = { 136 $$typeof: REACT_ELEMENT_TYPE, 137 type, 138 key, 139 props, 140 _owner: owner 141 }; 142 null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", { 143 enumerable: false, 144 get: elementRefGetterWithDeprecationWarning 145 }) : Object.defineProperty(type, "ref", { enumerable: false, value: null }); 146 type._store = {}; 147 Object.defineProperty(type._store, "validated", { 148 configurable: false, 149 enumerable: false, 150 writable: true, 151 value: 0 152 }); 153 Object.defineProperty(type, "_debugInfo", { 154 configurable: false, 155 enumerable: false, 156 writable: true, 157 value: null 158 }); 159 Object.defineProperty(type, "_debugStack", { 160 configurable: false, 161 enumerable: false, 162 writable: true, 163 value: debugStack 164 }); 165 Object.defineProperty(type, "_debugTask", { 166 configurable: false, 167 enumerable: false, 168 writable: true, 169 value: debugTask 170 }); 171 Object.freeze && (Object.freeze(type.props), Object.freeze(type)); 172 return type; 173 } 174 function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) { 175 var children = config.children; 176 if (void 0 !== children) 177 if (isStaticChildren) 178 if (isArrayImpl(children)) { 179 for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) 180 validateChildKeys(children[isStaticChildren]); 181 Object.freeze && Object.freeze(children); 182 } else 183 console.error( 184 "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." 185 ); 186 else validateChildKeys(children); 187 if (hasOwnProperty.call(config, "key")) { 188 children = getComponentNameFromType(type); 189 var keys = Object.keys(config).filter(function(k) { 190 return "key" !== k; 191 }); 192 isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}"; 193 didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error( 194 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', 195 isStaticChildren, 196 children, 197 keys, 198 children 199 ), didWarnAboutKeySpread[children + isStaticChildren] = true); 200 } 201 children = null; 202 void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey); 203 hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key); 204 if ("key" in config) { 205 maybeKey = {}; 206 for (var propName in config) 207 "key" !== propName && (maybeKey[propName] = config[propName]); 208 } else maybeKey = config; 209 children && defineKeyPropWarningGetter( 210 maybeKey, 211 "function" === typeof type ? type.displayName || type.name || "Unknown" : type 212 ); 213 return ReactElement( 214 type, 215 children, 216 maybeKey, 217 getOwner(), 218 debugStack, 219 debugTask 220 ); 221 } 222 function validateChildKeys(node) { 223 isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1)); 224 } 225 function isValidElement(object) { 226 return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE; 227 } 228 var React = require_react(), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() { 229 return null; 230 }; 231 React = { 232 react_stack_bottom_frame: function(callStackForError) { 233 return callStackForError(); 234 } 235 }; 236 var specialPropKeyWarningShown; 237 var didWarnAboutElementRef = {}; 238 var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind( 239 React, 240 UnknownOwner 241 )(); 242 var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); 243 var didWarnAboutKeySpread = {}; 244 exports.Fragment = REACT_FRAGMENT_TYPE; 245 exports.jsx = function(type, config, maybeKey) { 246 var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; 247 return jsxDEVImpl( 248 type, 249 config, 250 maybeKey, 251 false, 252 trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, 253 trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask 254 ); 255 }; 256 exports.jsxs = function(type, config, maybeKey) { 257 var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; 258 return jsxDEVImpl( 259 type, 260 config, 261 maybeKey, 262 true, 263 trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, 264 trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask 265 ); 266 }; 267 })(); 268 } 269 }); 270 271 // ../react-19/node_modules/react/jsx-runtime.js 272 var require_jsx_runtime = __commonJS({ 273 "../react-19/node_modules/react/jsx-runtime.js"(exports, module) { 274 "use strict"; 275 if (false) { 276 module.exports = null; 277 } else { 278 module.exports = require_react_jsx_runtime_development(); 279 } 280 } 281 }); 282 283 // ../react-19/react-jsx-runtime.js 284 var require_react_jsx_runtime = __commonJS({ 285 "../react-19/react-jsx-runtime.js"(exports, module) { 286 var jsxRuntime = require_jsx_runtime(); 287 function applyDefaultProps(type, config) { 288 if (!type || !type.defaultProps) { 289 return config; 290 } 291 const defaultProps = type.defaultProps; 292 let props = config; 293 for (const propName in defaultProps) { 294 if (props[propName] === void 0) { 295 if (props === config) { 296 props = { ...config }; 297 } 298 props[propName] = defaultProps[propName]; 299 } 300 } 301 return props; 302 } 303 function jsx(type, config, maybeKey) { 304 return jsxRuntime.jsx(type, applyDefaultProps(type, config), maybeKey); 305 } 306 function jsxs(type, config, maybeKey) { 307 return jsxRuntime.jsxs(type, applyDefaultProps(type, config), maybeKey); 308 } 309 module.exports = { 310 ...jsxRuntime, 311 jsx, 312 jsxs 313 }; 314 } 315 }); 316 return require_react_jsx_runtime(); 317 })(); 318 /*! Bundled license information: 319 320 react/cjs/react-jsx-runtime.development.js: 321 (** 322 * @license React 323 * react-jsx-runtime.development.js 324 * 325 * Copyright (c) Meta Platforms, Inc. and affiliates. 326 * 327 * This source code is licensed under the MIT license found in the 328 * LICENSE file in the root directory of this source tree. 329 *) 330 */
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Tue Jun 30 08:20:12 2026 | Cross-referenced by PHPXref |