Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: components.js
}
[33000] Fix | Delete
update();
[33001] Fix | Delete
}
[33002] Fix | Delete
}, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
[33003] Fix | Delete
const refs = external_React_.useMemo(() => ({
[33004] Fix | Delete
reference: referenceRef,
[33005] Fix | Delete
floating: floatingRef,
[33006] Fix | Delete
setReference,
[33007] Fix | Delete
setFloating
[33008] Fix | Delete
}), [setReference, setFloating]);
[33009] Fix | Delete
const elements = external_React_.useMemo(() => ({
[33010] Fix | Delete
reference: referenceEl,
[33011] Fix | Delete
floating: floatingEl
[33012] Fix | Delete
}), [referenceEl, floatingEl]);
[33013] Fix | Delete
const floatingStyles = external_React_.useMemo(() => {
[33014] Fix | Delete
const initialStyles = {
[33015] Fix | Delete
position: strategy,
[33016] Fix | Delete
left: 0,
[33017] Fix | Delete
top: 0
[33018] Fix | Delete
};
[33019] Fix | Delete
if (!elements.floating) {
[33020] Fix | Delete
return initialStyles;
[33021] Fix | Delete
}
[33022] Fix | Delete
const x = floating_ui_react_dom_roundByDPR(elements.floating, data.x);
[33023] Fix | Delete
const y = floating_ui_react_dom_roundByDPR(elements.floating, data.y);
[33024] Fix | Delete
if (transform) {
[33025] Fix | Delete
return {
[33026] Fix | Delete
...initialStyles,
[33027] Fix | Delete
transform: "translate(" + x + "px, " + y + "px)",
[33028] Fix | Delete
...(getDPR(elements.floating) >= 1.5 && {
[33029] Fix | Delete
willChange: 'transform'
[33030] Fix | Delete
})
[33031] Fix | Delete
};
[33032] Fix | Delete
}
[33033] Fix | Delete
return {
[33034] Fix | Delete
position: strategy,
[33035] Fix | Delete
left: x,
[33036] Fix | Delete
top: y
[33037] Fix | Delete
};
[33038] Fix | Delete
}, [strategy, transform, elements.floating, data.x, data.y]);
[33039] Fix | Delete
return external_React_.useMemo(() => ({
[33040] Fix | Delete
...data,
[33041] Fix | Delete
update,
[33042] Fix | Delete
refs,
[33043] Fix | Delete
elements,
[33044] Fix | Delete
floatingStyles
[33045] Fix | Delete
}), [data, update, refs, elements, floatingStyles]);
[33046] Fix | Delete
}
[33047] Fix | Delete
[33048] Fix | Delete
[33049] Fix | Delete
[33050] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/close.js
[33051] Fix | Delete
/**
[33052] Fix | Delete
* WordPress dependencies
[33053] Fix | Delete
*/
[33054] Fix | Delete
[33055] Fix | Delete
[33056] Fix | Delete
const close_close = /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.SVG, {
[33057] Fix | Delete
xmlns: "http://www.w3.org/2000/svg",
[33058] Fix | Delete
viewBox: "0 0 24 24",
[33059] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_primitives_namespaceObject.Path, {
[33060] Fix | Delete
d: "M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"
[33061] Fix | Delete
})
[33062] Fix | Delete
});
[33063] Fix | Delete
/* harmony default export */ const library_close = (close_close);
[33064] Fix | Delete
[33065] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/scroll-lock/index.js
[33066] Fix | Delete
/**
[33067] Fix | Delete
* WordPress dependencies
[33068] Fix | Delete
*/
[33069] Fix | Delete
[33070] Fix | Delete
[33071] Fix | Delete
/*
[33072] Fix | Delete
* Setting `overflow: hidden` on html and body elements resets body scroll in iOS.
[33073] Fix | Delete
* Save scroll top so we can restore it after locking scroll.
[33074] Fix | Delete
*
[33075] Fix | Delete
* NOTE: It would be cleaner and possibly safer to find a localized solution such
[33076] Fix | Delete
* as preventing default on certain touchmove events.
[33077] Fix | Delete
*/
[33078] Fix | Delete
let previousScrollTop = 0;
[33079] Fix | Delete
function setLocked(locked) {
[33080] Fix | Delete
const scrollingElement = document.scrollingElement || document.body;
[33081] Fix | Delete
if (locked) {
[33082] Fix | Delete
previousScrollTop = scrollingElement.scrollTop;
[33083] Fix | Delete
}
[33084] Fix | Delete
const methodName = locked ? 'add' : 'remove';
[33085] Fix | Delete
scrollingElement.classList[methodName]('lockscroll');
[33086] Fix | Delete
[33087] Fix | Delete
// Adding the class to the document element seems to be necessary in iOS.
[33088] Fix | Delete
document.documentElement.classList[methodName]('lockscroll');
[33089] Fix | Delete
if (!locked) {
[33090] Fix | Delete
scrollingElement.scrollTop = previousScrollTop;
[33091] Fix | Delete
}
[33092] Fix | Delete
}
[33093] Fix | Delete
let lockCounter = 0;
[33094] Fix | Delete
[33095] Fix | Delete
/**
[33096] Fix | Delete
* ScrollLock is a content-free React component for declaratively preventing
[33097] Fix | Delete
* scroll bleed from modal UI to the page body. This component applies a
[33098] Fix | Delete
* `lockscroll` class to the `document.documentElement` and
[33099] Fix | Delete
* `document.scrollingElement` elements to stop the body from scrolling. When it
[33100] Fix | Delete
* is present, the lock is applied.
[33101] Fix | Delete
*
[33102] Fix | Delete
* ```jsx
[33103] Fix | Delete
* import { ScrollLock, Button } from '@wordpress/components';
[33104] Fix | Delete
* import { useState } from '@wordpress/element';
[33105] Fix | Delete
*
[33106] Fix | Delete
* const MyScrollLock = () => {
[33107] Fix | Delete
* const [ isScrollLocked, setIsScrollLocked ] = useState( false );
[33108] Fix | Delete
*
[33109] Fix | Delete
* const toggleLock = () => {
[33110] Fix | Delete
* setIsScrollLocked( ( locked ) => ! locked ) );
[33111] Fix | Delete
* };
[33112] Fix | Delete
*
[33113] Fix | Delete
* return (
[33114] Fix | Delete
* <div>
[33115] Fix | Delete
* <Button variant="secondary" onClick={ toggleLock }>
[33116] Fix | Delete
* Toggle scroll lock
[33117] Fix | Delete
* </Button>
[33118] Fix | Delete
* { isScrollLocked && <ScrollLock /> }
[33119] Fix | Delete
* <p>
[33120] Fix | Delete
* Scroll locked:
[33121] Fix | Delete
* <strong>{ isScrollLocked ? 'Yes' : 'No' }</strong>
[33122] Fix | Delete
* </p>
[33123] Fix | Delete
* </div>
[33124] Fix | Delete
* );
[33125] Fix | Delete
* };
[33126] Fix | Delete
* ```
[33127] Fix | Delete
*/
[33128] Fix | Delete
function ScrollLock() {
[33129] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[33130] Fix | Delete
if (lockCounter === 0) {
[33131] Fix | Delete
setLocked(true);
[33132] Fix | Delete
}
[33133] Fix | Delete
++lockCounter;
[33134] Fix | Delete
return () => {
[33135] Fix | Delete
if (lockCounter === 1) {
[33136] Fix | Delete
setLocked(false);
[33137] Fix | Delete
}
[33138] Fix | Delete
--lockCounter;
[33139] Fix | Delete
};
[33140] Fix | Delete
}, []);
[33141] Fix | Delete
return null;
[33142] Fix | Delete
}
[33143] Fix | Delete
/* harmony default export */ const scroll_lock = (ScrollLock);
[33144] Fix | Delete
[33145] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/slot-fill-context.js
[33146] Fix | Delete
/**
[33147] Fix | Delete
* WordPress dependencies
[33148] Fix | Delete
*/
[33149] Fix | Delete
[33150] Fix | Delete
[33151] Fix | Delete
[33152] Fix | Delete
[33153] Fix | Delete
/**
[33154] Fix | Delete
* Internal dependencies
[33155] Fix | Delete
*/
[33156] Fix | Delete
[33157] Fix | Delete
const initialContextValue = {
[33158] Fix | Delete
slots: (0,external_wp_compose_namespaceObject.observableMap)(),
[33159] Fix | Delete
fills: (0,external_wp_compose_namespaceObject.observableMap)(),
[33160] Fix | Delete
registerSlot: () => {
[33161] Fix | Delete
true ? external_wp_warning_default()('Components must be wrapped within `SlotFillProvider`. ' + 'See https://developer.wordpress.org/block-editor/components/slot-fill/') : 0;
[33162] Fix | Delete
},
[33163] Fix | Delete
updateSlot: () => {},
[33164] Fix | Delete
unregisterSlot: () => {},
[33165] Fix | Delete
registerFill: () => {},
[33166] Fix | Delete
unregisterFill: () => {},
[33167] Fix | Delete
// This helps the provider know if it's using the default context value or not.
[33168] Fix | Delete
isDefault: true
[33169] Fix | Delete
};
[33170] Fix | Delete
const SlotFillContext = (0,external_wp_element_namespaceObject.createContext)(initialContextValue);
[33171] Fix | Delete
/* harmony default export */ const slot_fill_context = (SlotFillContext);
[33172] Fix | Delete
[33173] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/bubbles-virtually/use-slot.js
[33174] Fix | Delete
/**
[33175] Fix | Delete
* WordPress dependencies
[33176] Fix | Delete
*/
[33177] Fix | Delete
[33178] Fix | Delete
[33179] Fix | Delete
[33180] Fix | Delete
/**
[33181] Fix | Delete
* Internal dependencies
[33182] Fix | Delete
*/
[33183] Fix | Delete
[33184] Fix | Delete
function useSlot(name) {
[33185] Fix | Delete
const registry = (0,external_wp_element_namespaceObject.useContext)(slot_fill_context);
[33186] Fix | Delete
const slot = (0,external_wp_compose_namespaceObject.useObservableValue)(registry.slots, name);
[33187] Fix | Delete
const api = (0,external_wp_element_namespaceObject.useMemo)(() => ({
[33188] Fix | Delete
updateSlot: fillProps => registry.updateSlot(name, fillProps),
[33189] Fix | Delete
unregisterSlot: ref => registry.unregisterSlot(name, ref),
[33190] Fix | Delete
registerFill: ref => registry.registerFill(name, ref),
[33191] Fix | Delete
unregisterFill: ref => registry.unregisterFill(name, ref)
[33192] Fix | Delete
}), [name, registry]);
[33193] Fix | Delete
return {
[33194] Fix | Delete
...slot,
[33195] Fix | Delete
...api
[33196] Fix | Delete
};
[33197] Fix | Delete
}
[33198] Fix | Delete
[33199] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/context.js
[33200] Fix | Delete
/**
[33201] Fix | Delete
* WordPress dependencies
[33202] Fix | Delete
*/
[33203] Fix | Delete
[33204] Fix | Delete
/**
[33205] Fix | Delete
* Internal dependencies
[33206] Fix | Delete
*/
[33207] Fix | Delete
[33208] Fix | Delete
const initialValue = {
[33209] Fix | Delete
registerSlot: () => {},
[33210] Fix | Delete
unregisterSlot: () => {},
[33211] Fix | Delete
registerFill: () => {},
[33212] Fix | Delete
unregisterFill: () => {},
[33213] Fix | Delete
getSlot: () => undefined,
[33214] Fix | Delete
getFills: () => [],
[33215] Fix | Delete
subscribe: () => () => {}
[33216] Fix | Delete
};
[33217] Fix | Delete
const context_SlotFillContext = (0,external_wp_element_namespaceObject.createContext)(initialValue);
[33218] Fix | Delete
/* harmony default export */ const context = (context_SlotFillContext);
[33219] Fix | Delete
[33220] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/use-slot.js
[33221] Fix | Delete
/**
[33222] Fix | Delete
* WordPress dependencies
[33223] Fix | Delete
*/
[33224] Fix | Delete
[33225] Fix | Delete
[33226] Fix | Delete
/**
[33227] Fix | Delete
* Internal dependencies
[33228] Fix | Delete
*/
[33229] Fix | Delete
[33230] Fix | Delete
/**
[33231] Fix | Delete
* React hook returning the active slot given a name.
[33232] Fix | Delete
*
[33233] Fix | Delete
* @param name Slot name.
[33234] Fix | Delete
* @return Slot object.
[33235] Fix | Delete
*/
[33236] Fix | Delete
const use_slot_useSlot = name => {
[33237] Fix | Delete
const {
[33238] Fix | Delete
getSlot,
[33239] Fix | Delete
subscribe
[33240] Fix | Delete
} = (0,external_wp_element_namespaceObject.useContext)(context);
[33241] Fix | Delete
return (0,external_wp_element_namespaceObject.useSyncExternalStore)(subscribe, () => getSlot(name), () => getSlot(name));
[33242] Fix | Delete
};
[33243] Fix | Delete
/* harmony default export */ const use_slot = (use_slot_useSlot);
[33244] Fix | Delete
[33245] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/fill.js
[33246] Fix | Delete
/**
[33247] Fix | Delete
* WordPress dependencies
[33248] Fix | Delete
*/
[33249] Fix | Delete
[33250] Fix | Delete
[33251] Fix | Delete
/**
[33252] Fix | Delete
* Internal dependencies
[33253] Fix | Delete
*/
[33254] Fix | Delete
[33255] Fix | Delete
[33256] Fix | Delete
function Fill({
[33257] Fix | Delete
name,
[33258] Fix | Delete
children
[33259] Fix | Delete
}) {
[33260] Fix | Delete
const {
[33261] Fix | Delete
registerFill,
[33262] Fix | Delete
unregisterFill
[33263] Fix | Delete
} = (0,external_wp_element_namespaceObject.useContext)(context);
[33264] Fix | Delete
const slot = use_slot(name);
[33265] Fix | Delete
const ref = (0,external_wp_element_namespaceObject.useRef)({
[33266] Fix | Delete
name,
[33267] Fix | Delete
children
[33268] Fix | Delete
});
[33269] Fix | Delete
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
[33270] Fix | Delete
const refValue = ref.current;
[33271] Fix | Delete
registerFill(name, refValue);
[33272] Fix | Delete
return () => unregisterFill(name, refValue);
[33273] Fix | Delete
// Ignore reason: the useLayoutEffects here are written to fire at specific times, and introducing new dependencies could cause unexpected changes in behavior.
[33274] Fix | Delete
// We'll leave them as-is until a more detailed investigation/refactor can be performed.
[33275] Fix | Delete
// eslint-disable-next-line react-hooks/exhaustive-deps
[33276] Fix | Delete
}, []);
[33277] Fix | Delete
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
[33278] Fix | Delete
ref.current.children = children;
[33279] Fix | Delete
if (slot) {
[33280] Fix | Delete
slot.forceUpdate();
[33281] Fix | Delete
}
[33282] Fix | Delete
// Ignore reason: the useLayoutEffects here are written to fire at specific times, and introducing new dependencies could cause unexpected changes in behavior.
[33283] Fix | Delete
// We'll leave them as-is until a more detailed investigation/refactor can be performed.
[33284] Fix | Delete
// eslint-disable-next-line react-hooks/exhaustive-deps
[33285] Fix | Delete
}, [children]);
[33286] Fix | Delete
(0,external_wp_element_namespaceObject.useLayoutEffect)(() => {
[33287] Fix | Delete
if (name === ref.current.name) {
[33288] Fix | Delete
// Ignore initial effect.
[33289] Fix | Delete
return;
[33290] Fix | Delete
}
[33291] Fix | Delete
unregisterFill(ref.current.name, ref.current);
[33292] Fix | Delete
ref.current.name = name;
[33293] Fix | Delete
registerFill(name, ref.current);
[33294] Fix | Delete
// Ignore reason: the useLayoutEffects here are written to fire at specific times, and introducing new dependencies could cause unexpected changes in behavior.
[33295] Fix | Delete
// We'll leave them as-is until a more detailed investigation/refactor can be performed.
[33296] Fix | Delete
// eslint-disable-next-line react-hooks/exhaustive-deps
[33297] Fix | Delete
}, [name]);
[33298] Fix | Delete
return null;
[33299] Fix | Delete
}
[33300] Fix | Delete
[33301] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/slot-fill/slot.js
[33302] Fix | Delete
/**
[33303] Fix | Delete
* External dependencies
[33304] Fix | Delete
*/
[33305] Fix | Delete
[33306] Fix | Delete
/**
[33307] Fix | Delete
* WordPress dependencies
[33308] Fix | Delete
*/
[33309] Fix | Delete
[33310] Fix | Delete
[33311] Fix | Delete
/**
[33312] Fix | Delete
* Internal dependencies
[33313] Fix | Delete
*/
[33314] Fix | Delete
[33315] Fix | Delete
[33316] Fix | Delete
[33317] Fix | Delete
/**
[33318] Fix | Delete
* Whether the argument is a function.
[33319] Fix | Delete
*
[33320] Fix | Delete
* @param maybeFunc The argument to check.
[33321] Fix | Delete
* @return True if the argument is a function, false otherwise.
[33322] Fix | Delete
*/
[33323] Fix | Delete
function isFunction(maybeFunc) {
[33324] Fix | Delete
return typeof maybeFunc === 'function';
[33325] Fix | Delete
}
[33326] Fix | Delete
class SlotComponent extends external_wp_element_namespaceObject.Component {
[33327] Fix | Delete
constructor(props) {
[33328] Fix | Delete
super(props);
[33329] Fix | Delete
this.isUnmounted = false;
[33330] Fix | Delete
}
[33331] Fix | Delete
componentDidMount() {
[33332] Fix | Delete
const {
[33333] Fix | Delete
registerSlot
[33334] Fix | Delete
} = this.props;
[33335] Fix | Delete
this.isUnmounted = false;
[33336] Fix | Delete
registerSlot(this.props.name, this);
[33337] Fix | Delete
}
[33338] Fix | Delete
componentWillUnmount() {
[33339] Fix | Delete
const {
[33340] Fix | Delete
unregisterSlot
[33341] Fix | Delete
} = this.props;
[33342] Fix | Delete
this.isUnmounted = true;
[33343] Fix | Delete
unregisterSlot(this.props.name, this);
[33344] Fix | Delete
}
[33345] Fix | Delete
componentDidUpdate(prevProps) {
[33346] Fix | Delete
const {
[33347] Fix | Delete
name,
[33348] Fix | Delete
unregisterSlot,
[33349] Fix | Delete
registerSlot
[33350] Fix | Delete
} = this.props;
[33351] Fix | Delete
if (prevProps.name !== name) {
[33352] Fix | Delete
unregisterSlot(prevProps.name, this);
[33353] Fix | Delete
registerSlot(name, this);
[33354] Fix | Delete
}
[33355] Fix | Delete
}
[33356] Fix | Delete
forceUpdate() {
[33357] Fix | Delete
if (this.isUnmounted) {
[33358] Fix | Delete
return;
[33359] Fix | Delete
}
[33360] Fix | Delete
super.forceUpdate();
[33361] Fix | Delete
}
[33362] Fix | Delete
render() {
[33363] Fix | Delete
var _getFills;
[33364] Fix | Delete
const {
[33365] Fix | Delete
children,
[33366] Fix | Delete
name,
[33367] Fix | Delete
fillProps = {},
[33368] Fix | Delete
getFills
[33369] Fix | Delete
} = this.props;
[33370] Fix | Delete
const fills = ((_getFills = getFills(name, this)) !== null && _getFills !== void 0 ? _getFills : []).map(fill => {
[33371] Fix | Delete
const fillChildren = isFunction(fill.children) ? fill.children(fillProps) : fill.children;
[33372] Fix | Delete
return external_wp_element_namespaceObject.Children.map(fillChildren, (child, childIndex) => {
[33373] Fix | Delete
if (!child || typeof child === 'string') {
[33374] Fix | Delete
return child;
[33375] Fix | Delete
}
[33376] Fix | Delete
let childKey = childIndex;
[33377] Fix | Delete
if (typeof child === 'object' && 'key' in child && child?.key) {
[33378] Fix | Delete
childKey = child.key;
[33379] Fix | Delete
}
[33380] Fix | Delete
return (0,external_wp_element_namespaceObject.cloneElement)(child, {
[33381] Fix | Delete
key: childKey
[33382] Fix | Delete
});
[33383] Fix | Delete
});
[33384] Fix | Delete
}).filter(
[33385] Fix | Delete
// In some cases fills are rendered only when some conditions apply.
[33386] Fix | Delete
// This ensures that we only use non-empty fills when rendering, i.e.,
[33387] Fix | Delete
// it allows us to render wrappers only when the fills are actually present.
[33388] Fix | Delete
element => !(0,external_wp_element_namespaceObject.isEmptyElement)(element));
[33389] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_ReactJSXRuntime_namespaceObject.Fragment, {
[33390] Fix | Delete
children: isFunction(children) ? children(fills) : fills
[33391] Fix | Delete
});
[33392] Fix | Delete
}
[33393] Fix | Delete
}
[33394] Fix | Delete
const Slot = props => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(context.Consumer, {
[33395] Fix | Delete
children: ({
[33396] Fix | Delete
registerSlot,
[33397] Fix | Delete
unregisterSlot,
[33398] Fix | Delete
getFills
[33399] Fix | Delete
}) => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(SlotComponent, {
[33400] Fix | Delete
...props,
[33401] Fix | Delete
registerSlot: registerSlot,
[33402] Fix | Delete
unregisterSlot: unregisterSlot,
[33403] Fix | Delete
getFills: getFills
[33404] Fix | Delete
})
[33405] Fix | Delete
});
[33406] Fix | Delete
/* harmony default export */ const slot = (Slot);
[33407] Fix | Delete
[33408] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
[33409] Fix | Delete
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
[33410] Fix | Delete
/* harmony default export */ const esm_browser_native = ({
[33411] Fix | Delete
randomUUID
[33412] Fix | Delete
});
[33413] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
[33414] Fix | Delete
// Unique ID creation requires a high quality random # generator. In the browser we therefore
[33415] Fix | Delete
// require the crypto API and do not support built-in fallback to lower quality random number
[33416] Fix | Delete
// generators (like Math.random()).
[33417] Fix | Delete
let getRandomValues;
[33418] Fix | Delete
const rnds8 = new Uint8Array(16);
[33419] Fix | Delete
function rng() {
[33420] Fix | Delete
// lazy load so that environments that need to polyfill have a chance to do so
[33421] Fix | Delete
if (!getRandomValues) {
[33422] Fix | Delete
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
[33423] Fix | Delete
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
[33424] Fix | Delete
[33425] Fix | Delete
if (!getRandomValues) {
[33426] Fix | Delete
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
[33427] Fix | Delete
}
[33428] Fix | Delete
}
[33429] Fix | Delete
[33430] Fix | Delete
return getRandomValues(rnds8);
[33431] Fix | Delete
}
[33432] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
[33433] Fix | Delete
[33434] Fix | Delete
/**
[33435] Fix | Delete
* Convert array of 16 byte values to UUID string format of the form:
[33436] Fix | Delete
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
[33437] Fix | Delete
*/
[33438] Fix | Delete
[33439] Fix | Delete
const byteToHex = [];
[33440] Fix | Delete
[33441] Fix | Delete
for (let i = 0; i < 256; ++i) {
[33442] Fix | Delete
byteToHex.push((i + 0x100).toString(16).slice(1));
[33443] Fix | Delete
}
[33444] Fix | Delete
[33445] Fix | Delete
function unsafeStringify(arr, offset = 0) {
[33446] Fix | Delete
// Note: Be careful editing this code! It's been tuned for performance
[33447] Fix | Delete
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
[33448] Fix | Delete
return byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + '-' + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + '-' + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + '-' + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + '-' + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]];
[33449] Fix | Delete
}
[33450] Fix | Delete
[33451] Fix | Delete
function stringify_stringify(arr, offset = 0) {
[33452] Fix | Delete
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
[33453] Fix | Delete
// of the following:
[33454] Fix | Delete
// - One or more input array values don't map to a hex octet (leading to
[33455] Fix | Delete
// "undefined" in the uuid)
[33456] Fix | Delete
// - Invalid input values for the RFC `version` or `variant` fields
[33457] Fix | Delete
[33458] Fix | Delete
if (!validate(uuid)) {
[33459] Fix | Delete
throw TypeError('Stringified UUID is invalid');
[33460] Fix | Delete
}
[33461] Fix | Delete
[33462] Fix | Delete
return uuid;
[33463] Fix | Delete
}
[33464] Fix | Delete
[33465] Fix | Delete
/* harmony default export */ const esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify_stringify)));
[33466] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
[33467] Fix | Delete
[33468] Fix | Delete
[33469] Fix | Delete
[33470] Fix | Delete
[33471] Fix | Delete
function v4(options, buf, offset) {
[33472] Fix | Delete
if (esm_browser_native.randomUUID && !buf && !options) {
[33473] Fix | Delete
return esm_browser_native.randomUUID();
[33474] Fix | Delete
}
[33475] Fix | Delete
[33476] Fix | Delete
options = options || {};
[33477] Fix | Delete
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
[33478] Fix | Delete
[33479] Fix | Delete
rnds[6] = rnds[6] & 0x0f | 0x40;
[33480] Fix | Delete
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
[33481] Fix | Delete
[33482] Fix | Delete
if (buf) {
[33483] Fix | Delete
offset = offset || 0;
[33484] Fix | Delete
[33485] Fix | Delete
for (let i = 0; i < 16; ++i) {
[33486] Fix | Delete
buf[offset + i] = rnds[i];
[33487] Fix | Delete
}
[33488] Fix | Delete
[33489] Fix | Delete
return buf;
[33490] Fix | Delete
}
[33491] Fix | Delete
[33492] Fix | Delete
return unsafeStringify(rnds);
[33493] Fix | Delete
}
[33494] Fix | Delete
[33495] Fix | Delete
/* harmony default export */ const esm_browser_v4 = (v4);
[33496] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/build-module/style-provider/index.js
[33497] Fix | Delete
/**
[33498] Fix | Delete
* External dependencies
[33499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function