Build/Test Tools: Bump the required versions of Node.js and npm.
This changes the minimum required version of Node.js to 16.19.1, and npm to 8.19.3. Node.js 14.x reached end of life on April 30, 2023. While 18.x is the currently active LTS version, it can’t yet be used due to a systems level constraint on the build server. Updating further will be considered once this blocker is resolved. Gutenberg has also been updated to follow the same version requirements for consistency. Props youknowriad, gziolo, swissspidy, kevin940726, desrosj. Fixes #56658. Built from https://develop.svn.wordpress.org/trunk@56378 git-svn-id: http://core.svn.wordpress.org/trunk@55890 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ba52c45385
commit
c7133f4fae
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -811,18 +811,22 @@ function __experimentalGetAnnotations(state) {
|
||||||
return Object.values(state).flat();
|
return Object.values(state).flat();
|
||||||
}
|
}
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/rng.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
|
||||||
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
||||||
|
/* harmony default export */ var esm_browser_native = ({
|
||||||
|
randomUUID
|
||||||
|
});
|
||||||
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
|
||||||
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
||||||
// require the crypto API and do not support built-in fallback to lower quality random number
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
||||||
// generators (like Math.random()).
|
// generators (like Math.random()).
|
||||||
var getRandomValues;
|
let getRandomValues;
|
||||||
var rnds8 = new Uint8Array(16);
|
const rnds8 = new Uint8Array(16);
|
||||||
function rng() {
|
function rng() {
|
||||||
// lazy load so that environments that need to polyfill have a chance to do so
|
// lazy load so that environments that need to polyfill have a chance to do so
|
||||||
if (!getRandomValues) {
|
if (!getRandomValues) {
|
||||||
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
||||||
// find the complete implementation of crypto (msCrypto) on IE11.
|
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
||||||
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
||||||
|
|
||||||
if (!getRandomValues) {
|
if (!getRandomValues) {
|
||||||
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
||||||
|
@ -831,54 +835,52 @@ function rng() {
|
||||||
|
|
||||||
return getRandomValues(rnds8);
|
return getRandomValues(rnds8);
|
||||||
}
|
}
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/regex.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
|
||||||
/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/validate.js
|
|
||||||
|
|
||||||
|
|
||||||
function validate(uuid) {
|
|
||||||
return typeof uuid === 'string' && regex.test(uuid);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_validate = (validate);
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/stringify.js
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert array of 16 byte values to UUID string format of the form:
|
* Convert array of 16 byte values to UUID string format of the form:
|
||||||
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var byteToHex = [];
|
const byteToHex = [];
|
||||||
|
|
||||||
for (var i = 0; i < 256; ++i) {
|
for (let i = 0; i < 256; ++i) {
|
||||||
byteToHex.push((i + 0x100).toString(16).substr(1));
|
byteToHex.push((i + 0x100).toString(16).slice(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
function stringify(arr) {
|
function unsafeStringify(arr, offset = 0) {
|
||||||
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
||||||
// Note: Be careful editing this code! It's been tuned for performance
|
// Note: Be careful editing this code! It's been tuned for performance
|
||||||
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
||||||
var uuid = (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]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
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]]).toLowerCase();
|
||||||
|
}
|
||||||
|
|
||||||
|
function stringify(arr, offset = 0) {
|
||||||
|
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
||||||
// of the following:
|
// of the following:
|
||||||
// - One or more input array values don't map to a hex octet (leading to
|
// - One or more input array values don't map to a hex octet (leading to
|
||||||
// "undefined" in the uuid)
|
// "undefined" in the uuid)
|
||||||
// - Invalid input values for the RFC `version` or `variant` fields
|
// - Invalid input values for the RFC `version` or `variant` fields
|
||||||
|
|
||||||
if (!esm_browser_validate(uuid)) {
|
if (!validate(uuid)) {
|
||||||
throw TypeError('Stringified UUID is invalid');
|
throw TypeError('Stringified UUID is invalid');
|
||||||
}
|
}
|
||||||
|
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_stringify = (stringify);
|
/* harmony default export */ var esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/annotations/node_modules/uuid/dist/esm-browser/v4.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function v4(options, buf, offset) {
|
function v4(options, buf, offset) {
|
||||||
|
if (esm_browser_native.randomUUID && !buf && !options) {
|
||||||
|
return esm_browser_native.randomUUID();
|
||||||
|
}
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
||||||
|
|
||||||
rnds[6] = rnds[6] & 0x0f | 0x40;
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
||||||
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
||||||
|
@ -886,14 +888,14 @@ function v4(options, buf, offset) {
|
||||||
if (buf) {
|
if (buf) {
|
||||||
offset = offset || 0;
|
offset = offset || 0;
|
||||||
|
|
||||||
for (var i = 0; i < 16; ++i) {
|
for (let i = 0; i < 16; ++i) {
|
||||||
buf[offset + i] = rnds[i];
|
buf[offset + i] = rnds[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
return esm_browser_stringify(rnds);
|
return unsafeStringify(rnds);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_v4 = (v4);
|
/* harmony default export */ var esm_browser_v4 = (v4);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -58542,18 +58542,22 @@ function FootnotesEdit({
|
||||||
}, "\u21A9\uFE0E"))));
|
}, "\u21A9\uFE0E"))));
|
||||||
}
|
}
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/rng.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
|
||||||
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
||||||
|
/* harmony default export */ var esm_browser_native = ({
|
||||||
|
randomUUID
|
||||||
|
});
|
||||||
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
|
||||||
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
||||||
// require the crypto API and do not support built-in fallback to lower quality random number
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
||||||
// generators (like Math.random()).
|
// generators (like Math.random()).
|
||||||
var getRandomValues;
|
let getRandomValues;
|
||||||
var rnds8 = new Uint8Array(16);
|
const rnds8 = new Uint8Array(16);
|
||||||
function rng() {
|
function rng() {
|
||||||
// lazy load so that environments that need to polyfill have a chance to do so
|
// lazy load so that environments that need to polyfill have a chance to do so
|
||||||
if (!getRandomValues) {
|
if (!getRandomValues) {
|
||||||
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
||||||
// find the complete implementation of crypto (msCrypto) on IE11.
|
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
||||||
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
||||||
|
|
||||||
if (!getRandomValues) {
|
if (!getRandomValues) {
|
||||||
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
||||||
|
@ -58562,54 +58566,52 @@ function rng() {
|
||||||
|
|
||||||
return getRandomValues(rnds8);
|
return getRandomValues(rnds8);
|
||||||
}
|
}
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/regex.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
|
||||||
/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/validate.js
|
|
||||||
|
|
||||||
|
|
||||||
function validate(uuid) {
|
|
||||||
return typeof uuid === 'string' && regex.test(uuid);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_validate = (validate);
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/stringify.js
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert array of 16 byte values to UUID string format of the form:
|
* Convert array of 16 byte values to UUID string format of the form:
|
||||||
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var byteToHex = [];
|
const byteToHex = [];
|
||||||
|
|
||||||
for (var stringify_i = 0; stringify_i < 256; ++stringify_i) {
|
for (let i = 0; i < 256; ++i) {
|
||||||
byteToHex.push((stringify_i + 0x100).toString(16).substr(1));
|
byteToHex.push((i + 0x100).toString(16).slice(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
function stringify(arr) {
|
function unsafeStringify(arr, offset = 0) {
|
||||||
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
||||||
// Note: Be careful editing this code! It's been tuned for performance
|
// Note: Be careful editing this code! It's been tuned for performance
|
||||||
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
||||||
var uuid = (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]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
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]]).toLowerCase();
|
||||||
|
}
|
||||||
|
|
||||||
|
function stringify(arr, offset = 0) {
|
||||||
|
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
||||||
// of the following:
|
// of the following:
|
||||||
// - One or more input array values don't map to a hex octet (leading to
|
// - One or more input array values don't map to a hex octet (leading to
|
||||||
// "undefined" in the uuid)
|
// "undefined" in the uuid)
|
||||||
// - Invalid input values for the RFC `version` or `variant` fields
|
// - Invalid input values for the RFC `version` or `variant` fields
|
||||||
|
|
||||||
if (!esm_browser_validate(uuid)) {
|
if (!validate(uuid)) {
|
||||||
throw TypeError('Stringified UUID is invalid');
|
throw TypeError('Stringified UUID is invalid');
|
||||||
}
|
}
|
||||||
|
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_stringify = (stringify);
|
/* harmony default export */ var esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/node_modules/uuid/dist/esm-browser/v4.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function v4_v4(options, buf, offset) {
|
function v4_v4(options, buf, offset) {
|
||||||
|
if (esm_browser_native.randomUUID && !buf && !options) {
|
||||||
|
return esm_browser_native.randomUUID();
|
||||||
|
}
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
||||||
|
|
||||||
rnds[6] = rnds[6] & 0x0f | 0x40;
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
||||||
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
||||||
|
@ -58617,14 +58619,14 @@ function v4_v4(options, buf, offset) {
|
||||||
if (buf) {
|
if (buf) {
|
||||||
offset = offset || 0;
|
offset = offset || 0;
|
||||||
|
|
||||||
for (var i = 0; i < 16; ++i) {
|
for (let i = 0; i < 16; ++i) {
|
||||||
buf[offset + i] = rnds[i];
|
buf[offset + i] = rnds[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
return esm_browser_stringify(rnds);
|
return unsafeStringify(rnds);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_v4 = (v4_v4);
|
/* harmony default export */ var esm_browser_v4 = (v4_v4);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7529,18 +7529,22 @@ const unregisterBlockVariation = (blockName, variationName) => {
|
||||||
(0,external_wp_data_namespaceObject.dispatch)(store).removeBlockVariations(blockName, variationName);
|
(0,external_wp_data_namespaceObject.dispatch)(store).removeBlockVariations(blockName, variationName);
|
||||||
};
|
};
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/rng.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
|
||||||
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
||||||
|
/* harmony default export */ var esm_browser_native = ({
|
||||||
|
randomUUID
|
||||||
|
});
|
||||||
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
|
||||||
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
||||||
// require the crypto API and do not support built-in fallback to lower quality random number
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
||||||
// generators (like Math.random()).
|
// generators (like Math.random()).
|
||||||
var getRandomValues;
|
let getRandomValues;
|
||||||
var rnds8 = new Uint8Array(16);
|
const rnds8 = new Uint8Array(16);
|
||||||
function rng() {
|
function rng() {
|
||||||
// lazy load so that environments that need to polyfill have a chance to do so
|
// lazy load so that environments that need to polyfill have a chance to do so
|
||||||
if (!getRandomValues) {
|
if (!getRandomValues) {
|
||||||
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
||||||
// find the complete implementation of crypto (msCrypto) on IE11.
|
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
||||||
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
||||||
|
|
||||||
if (!getRandomValues) {
|
if (!getRandomValues) {
|
||||||
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
||||||
|
@ -7549,54 +7553,52 @@ function rng() {
|
||||||
|
|
||||||
return getRandomValues(rnds8);
|
return getRandomValues(rnds8);
|
||||||
}
|
}
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/regex.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
|
||||||
/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/validate.js
|
|
||||||
|
|
||||||
|
|
||||||
function validate(uuid) {
|
|
||||||
return typeof uuid === 'string' && regex.test(uuid);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_validate = (validate);
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/stringify.js
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert array of 16 byte values to UUID string format of the form:
|
* Convert array of 16 byte values to UUID string format of the form:
|
||||||
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var byteToHex = [];
|
const byteToHex = [];
|
||||||
|
|
||||||
for (var stringify_i = 0; stringify_i < 256; ++stringify_i) {
|
for (let i = 0; i < 256; ++i) {
|
||||||
byteToHex.push((stringify_i + 0x100).toString(16).substr(1));
|
byteToHex.push((i + 0x100).toString(16).slice(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
function stringify(arr) {
|
function unsafeStringify(arr, offset = 0) {
|
||||||
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
||||||
// Note: Be careful editing this code! It's been tuned for performance
|
// Note: Be careful editing this code! It's been tuned for performance
|
||||||
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
||||||
var uuid = (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]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
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]]).toLowerCase();
|
||||||
|
}
|
||||||
|
|
||||||
|
function stringify(arr, offset = 0) {
|
||||||
|
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
||||||
// of the following:
|
// of the following:
|
||||||
// - One or more input array values don't map to a hex octet (leading to
|
// - One or more input array values don't map to a hex octet (leading to
|
||||||
// "undefined" in the uuid)
|
// "undefined" in the uuid)
|
||||||
// - Invalid input values for the RFC `version` or `variant` fields
|
// - Invalid input values for the RFC `version` or `variant` fields
|
||||||
|
|
||||||
if (!esm_browser_validate(uuid)) {
|
if (!validate(uuid)) {
|
||||||
throw TypeError('Stringified UUID is invalid');
|
throw TypeError('Stringified UUID is invalid');
|
||||||
}
|
}
|
||||||
|
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_stringify = (stringify);
|
/* harmony default export */ var esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/blocks/node_modules/uuid/dist/esm-browser/v4.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function v4(options, buf, offset) {
|
function v4(options, buf, offset) {
|
||||||
|
if (esm_browser_native.randomUUID && !buf && !options) {
|
||||||
|
return esm_browser_native.randomUUID();
|
||||||
|
}
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
||||||
|
|
||||||
rnds[6] = rnds[6] & 0x0f | 0x40;
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
||||||
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
||||||
|
@ -7604,14 +7606,14 @@ function v4(options, buf, offset) {
|
||||||
if (buf) {
|
if (buf) {
|
||||||
offset = offset || 0;
|
offset = offset || 0;
|
||||||
|
|
||||||
for (var i = 0; i < 16; ++i) {
|
for (let i = 0; i < 16; ++i) {
|
||||||
buf[offset + i] = rnds[i];
|
buf[offset + i] = rnds[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
return esm_browser_stringify(rnds);
|
return unsafeStringify(rnds);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_v4 = (v4);
|
/* harmony default export */ var esm_browser_v4 = (v4);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -20786,18 +20786,22 @@ const Slot = props => (0,external_wp_element_namespaceObject.createElement)(cont
|
||||||
|
|
||||||
/* harmony default export */ var slot = (Slot);
|
/* harmony default export */ var slot = (Slot);
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/rng.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
|
||||||
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
||||||
|
/* harmony default export */ var esm_browser_native = ({
|
||||||
|
randomUUID
|
||||||
|
});
|
||||||
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
|
||||||
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
||||||
// require the crypto API and do not support built-in fallback to lower quality random number
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
||||||
// generators (like Math.random()).
|
// generators (like Math.random()).
|
||||||
var getRandomValues;
|
let getRandomValues;
|
||||||
var rnds8 = new Uint8Array(16);
|
const rnds8 = new Uint8Array(16);
|
||||||
function rng() {
|
function rng() {
|
||||||
// lazy load so that environments that need to polyfill have a chance to do so
|
// lazy load so that environments that need to polyfill have a chance to do so
|
||||||
if (!getRandomValues) {
|
if (!getRandomValues) {
|
||||||
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
||||||
// find the complete implementation of crypto (msCrypto) on IE11.
|
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
||||||
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
||||||
|
|
||||||
if (!getRandomValues) {
|
if (!getRandomValues) {
|
||||||
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
||||||
|
@ -20806,54 +20810,52 @@ function rng() {
|
||||||
|
|
||||||
return getRandomValues(rnds8);
|
return getRandomValues(rnds8);
|
||||||
}
|
}
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/regex.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
|
||||||
/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/validate.js
|
|
||||||
|
|
||||||
|
|
||||||
function validate(uuid) {
|
|
||||||
return typeof uuid === 'string' && regex.test(uuid);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_validate = (validate);
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/stringify.js
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert array of 16 byte values to UUID string format of the form:
|
* Convert array of 16 byte values to UUID string format of the form:
|
||||||
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var byteToHex = [];
|
const byteToHex = [];
|
||||||
|
|
||||||
for (var stringify_i = 0; stringify_i < 256; ++stringify_i) {
|
for (let i = 0; i < 256; ++i) {
|
||||||
byteToHex.push((stringify_i + 0x100).toString(16).substr(1));
|
byteToHex.push((i + 0x100).toString(16).slice(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
function stringify_stringify(arr) {
|
function unsafeStringify(arr, offset = 0) {
|
||||||
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
||||||
// Note: Be careful editing this code! It's been tuned for performance
|
// Note: Be careful editing this code! It's been tuned for performance
|
||||||
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
||||||
var uuid = (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]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
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]]).toLowerCase();
|
||||||
|
}
|
||||||
|
|
||||||
|
function stringify_stringify(arr, offset = 0) {
|
||||||
|
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
||||||
// of the following:
|
// of the following:
|
||||||
// - One or more input array values don't map to a hex octet (leading to
|
// - One or more input array values don't map to a hex octet (leading to
|
||||||
// "undefined" in the uuid)
|
// "undefined" in the uuid)
|
||||||
// - Invalid input values for the RFC `version` or `variant` fields
|
// - Invalid input values for the RFC `version` or `variant` fields
|
||||||
|
|
||||||
if (!esm_browser_validate(uuid)) {
|
if (!validate(uuid)) {
|
||||||
throw TypeError('Stringified UUID is invalid');
|
throw TypeError('Stringified UUID is invalid');
|
||||||
}
|
}
|
||||||
|
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_stringify = (stringify_stringify);
|
/* harmony default export */ var esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify_stringify)));
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/components/node_modules/uuid/dist/esm-browser/v4.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function v4(options, buf, offset) {
|
function v4(options, buf, offset) {
|
||||||
|
if (esm_browser_native.randomUUID && !buf && !options) {
|
||||||
|
return esm_browser_native.randomUUID();
|
||||||
|
}
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
||||||
|
|
||||||
rnds[6] = rnds[6] & 0x0f | 0x40;
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
||||||
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
||||||
|
@ -20861,14 +20863,14 @@ function v4(options, buf, offset) {
|
||||||
if (buf) {
|
if (buf) {
|
||||||
offset = offset || 0;
|
offset = offset || 0;
|
||||||
|
|
||||||
for (var i = 0; i < 16; ++i) {
|
for (let i = 0; i < 16; ++i) {
|
||||||
buf[offset + i] = rnds[i];
|
buf[offset + i] = rnds[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
return esm_browser_stringify(rnds);
|
return unsafeStringify(rnds);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_v4 = (v4);
|
/* harmony default export */ var esm_browser_v4 = (v4);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1224,18 +1224,22 @@ var external_wp_apiFetch_namespaceObject = window["wp"]["apiFetch"];
|
||||||
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
|
var external_wp_apiFetch_default = /*#__PURE__*/__webpack_require__.n(external_wp_apiFetch_namespaceObject);
|
||||||
;// CONCATENATED MODULE: external ["wp","i18n"]
|
;// CONCATENATED MODULE: external ["wp","i18n"]
|
||||||
var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
|
var external_wp_i18n_namespaceObject = window["wp"]["i18n"];
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/rng.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/native.js
|
||||||
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
||||||
|
/* harmony default export */ var esm_browser_native = ({
|
||||||
|
randomUUID
|
||||||
|
});
|
||||||
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/rng.js
|
||||||
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
||||||
// require the crypto API and do not support built-in fallback to lower quality random number
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
||||||
// generators (like Math.random()).
|
// generators (like Math.random()).
|
||||||
var getRandomValues;
|
let getRandomValues;
|
||||||
var rnds8 = new Uint8Array(16);
|
const rnds8 = new Uint8Array(16);
|
||||||
function rng() {
|
function rng() {
|
||||||
// lazy load so that environments that need to polyfill have a chance to do so
|
// lazy load so that environments that need to polyfill have a chance to do so
|
||||||
if (!getRandomValues) {
|
if (!getRandomValues) {
|
||||||
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation. Also,
|
// getRandomValues needs to be invoked in a context where "this" is a Crypto implementation.
|
||||||
// find the complete implementation of crypto (msCrypto) on IE11.
|
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto);
|
||||||
getRandomValues = typeof crypto !== 'undefined' && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== 'undefined' && typeof msCrypto.getRandomValues === 'function' && msCrypto.getRandomValues.bind(msCrypto);
|
|
||||||
|
|
||||||
if (!getRandomValues) {
|
if (!getRandomValues) {
|
||||||
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
throw new Error('crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported');
|
||||||
|
@ -1244,54 +1248,52 @@ function rng() {
|
||||||
|
|
||||||
return getRandomValues(rnds8);
|
return getRandomValues(rnds8);
|
||||||
}
|
}
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/regex.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/stringify.js
|
||||||
/* harmony default export */ var regex = (/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i);
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/validate.js
|
|
||||||
|
|
||||||
|
|
||||||
function validate(uuid) {
|
|
||||||
return typeof uuid === 'string' && regex.test(uuid);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_validate = (validate);
|
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/stringify.js
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert array of 16 byte values to UUID string format of the form:
|
* Convert array of 16 byte values to UUID string format of the form:
|
||||||
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var byteToHex = [];
|
const byteToHex = [];
|
||||||
|
|
||||||
for (var i = 0; i < 256; ++i) {
|
for (let i = 0; i < 256; ++i) {
|
||||||
byteToHex.push((i + 0x100).toString(16).substr(1));
|
byteToHex.push((i + 0x100).toString(16).slice(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
function stringify(arr) {
|
function unsafeStringify(arr, offset = 0) {
|
||||||
var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
||||||
// Note: Be careful editing this code! It's been tuned for performance
|
// Note: Be careful editing this code! It's been tuned for performance
|
||||||
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
// and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434
|
||||||
var uuid = (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]]).toLowerCase(); // Consistency check for valid UUID. If this throws, it's likely due to one
|
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]]).toLowerCase();
|
||||||
|
}
|
||||||
|
|
||||||
|
function stringify(arr, offset = 0) {
|
||||||
|
const uuid = unsafeStringify(arr, offset); // Consistency check for valid UUID. If this throws, it's likely due to one
|
||||||
// of the following:
|
// of the following:
|
||||||
// - One or more input array values don't map to a hex octet (leading to
|
// - One or more input array values don't map to a hex octet (leading to
|
||||||
// "undefined" in the uuid)
|
// "undefined" in the uuid)
|
||||||
// - Invalid input values for the RFC `version` or `variant` fields
|
// - Invalid input values for the RFC `version` or `variant` fields
|
||||||
|
|
||||||
if (!esm_browser_validate(uuid)) {
|
if (!validate(uuid)) {
|
||||||
throw TypeError('Stringified UUID is invalid');
|
throw TypeError('Stringified UUID is invalid');
|
||||||
}
|
}
|
||||||
|
|
||||||
return uuid;
|
return uuid;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_stringify = (stringify);
|
/* harmony default export */ var esm_browser_stringify = ((/* unused pure expression or super */ null && (stringify)));
|
||||||
;// CONCATENATED MODULE: ./node_modules/@wordpress/core-data/node_modules/uuid/dist/esm-browser/v4.js
|
;// CONCATENATED MODULE: ./node_modules/uuid/dist/esm-browser/v4.js
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function v4(options, buf, offset) {
|
function v4(options, buf, offset) {
|
||||||
|
if (esm_browser_native.randomUUID && !buf && !options) {
|
||||||
|
return esm_browser_native.randomUUID();
|
||||||
|
}
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
var rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
const rnds = options.random || (options.rng || rng)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
||||||
|
|
||||||
rnds[6] = rnds[6] & 0x0f | 0x40;
|
rnds[6] = rnds[6] & 0x0f | 0x40;
|
||||||
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided
|
||||||
|
@ -1299,14 +1301,14 @@ function v4(options, buf, offset) {
|
||||||
if (buf) {
|
if (buf) {
|
||||||
offset = offset || 0;
|
offset = offset || 0;
|
||||||
|
|
||||||
for (var i = 0; i < 16; ++i) {
|
for (let i = 0; i < 16; ++i) {
|
||||||
buf[offset + i] = rnds[i];
|
buf[offset + i] = rnds[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
return buf;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
return esm_browser_stringify(rnds);
|
return unsafeStringify(rnds);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* harmony default export */ var esm_browser_v4 = (v4);
|
/* harmony default export */ var esm_browser_v4 = (v4);
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.4-alpha-56377';
|
$wp_version = '6.4-alpha-56378';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue