rebase on oct-10-2023
This commit is contained in:
2
wp/wp-includes/js/dist/vendor/lodash.min.js
vendored
2
wp/wp-includes/js/dist/vendor/lodash.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
204
wp/wp-includes/js/dist/vendor/wp-polyfill.js
vendored
204
wp/wp-includes/js/dist/vendor/wp-polyfill.js
vendored
@@ -97,8 +97,7 @@
|
||||
__webpack_require__(1);
|
||||
__webpack_require__(67);
|
||||
__webpack_require__(68);
|
||||
__webpack_require__(72);
|
||||
module.exports = __webpack_require__(79);
|
||||
module.exports = __webpack_require__(72);
|
||||
|
||||
|
||||
/***/ }),
|
||||
@@ -1892,206 +1891,5 @@ module.exports = function (argument) {
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 79 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var $ = __webpack_require__(2);
|
||||
var global = __webpack_require__(3);
|
||||
var task = __webpack_require__(80);
|
||||
|
||||
var FORCED = !global.setImmediate || !global.clearImmediate;
|
||||
|
||||
// http://w3c.github.io/setImmediate/
|
||||
$({ global: true, bind: true, enumerable: true, forced: FORCED }, {
|
||||
// `setImmediate` method
|
||||
// http://w3c.github.io/setImmediate/#si-setImmediate
|
||||
setImmediate: task.set,
|
||||
// `clearImmediate` method
|
||||
// http://w3c.github.io/setImmediate/#si-clearImmediate
|
||||
clearImmediate: task.clear
|
||||
});
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 80 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var global = __webpack_require__(3);
|
||||
var apply = __webpack_require__(81);
|
||||
var bind = __webpack_require__(82);
|
||||
var isCallable = __webpack_require__(18);
|
||||
var hasOwn = __webpack_require__(35);
|
||||
var fails = __webpack_require__(6);
|
||||
var html = __webpack_require__(66);
|
||||
var arraySlice = __webpack_require__(83);
|
||||
var createElement = __webpack_require__(39);
|
||||
var IS_IOS = __webpack_require__(84);
|
||||
var IS_NODE = __webpack_require__(85);
|
||||
|
||||
var set = global.setImmediate;
|
||||
var clear = global.clearImmediate;
|
||||
var process = global.process;
|
||||
var Dispatch = global.Dispatch;
|
||||
var Function = global.Function;
|
||||
var MessageChannel = global.MessageChannel;
|
||||
var String = global.String;
|
||||
var counter = 0;
|
||||
var queue = {};
|
||||
var ONREADYSTATECHANGE = 'onreadystatechange';
|
||||
var location, defer, channel, port;
|
||||
|
||||
try {
|
||||
// Deno throws a ReferenceError on `location` access without `--location` flag
|
||||
location = global.location;
|
||||
} catch (error) { /* empty */ }
|
||||
|
||||
var run = function (id) {
|
||||
if (hasOwn(queue, id)) {
|
||||
var fn = queue[id];
|
||||
delete queue[id];
|
||||
fn();
|
||||
}
|
||||
};
|
||||
|
||||
var runner = function (id) {
|
||||
return function () {
|
||||
run(id);
|
||||
};
|
||||
};
|
||||
|
||||
var listener = function (event) {
|
||||
run(event.data);
|
||||
};
|
||||
|
||||
var post = function (id) {
|
||||
// old engines have not location.origin
|
||||
global.postMessage(String(id), location.protocol + '//' + location.host);
|
||||
};
|
||||
|
||||
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
||||
if (!set || !clear) {
|
||||
set = function setImmediate(fn) {
|
||||
var args = arraySlice(arguments, 1);
|
||||
queue[++counter] = function () {
|
||||
apply(isCallable(fn) ? fn : Function(fn), undefined, args);
|
||||
};
|
||||
defer(counter);
|
||||
return counter;
|
||||
};
|
||||
clear = function clearImmediate(id) {
|
||||
delete queue[id];
|
||||
};
|
||||
// Node.js 0.8-
|
||||
if (IS_NODE) {
|
||||
defer = function (id) {
|
||||
process.nextTick(runner(id));
|
||||
};
|
||||
// Sphere (JS game engine) Dispatch API
|
||||
} else if (Dispatch && Dispatch.now) {
|
||||
defer = function (id) {
|
||||
Dispatch.now(runner(id));
|
||||
};
|
||||
// Browsers with MessageChannel, includes WebWorkers
|
||||
// except iOS - https://github.com/zloirock/core-js/issues/624
|
||||
} else if (MessageChannel && !IS_IOS) {
|
||||
channel = new MessageChannel();
|
||||
port = channel.port2;
|
||||
channel.port1.onmessage = listener;
|
||||
defer = bind(port.postMessage, port);
|
||||
// Browsers with postMessage, skip WebWorkers
|
||||
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
||||
} else if (
|
||||
global.addEventListener &&
|
||||
isCallable(global.postMessage) &&
|
||||
!global.importScripts &&
|
||||
location && location.protocol !== 'file:' &&
|
||||
!fails(post)
|
||||
) {
|
||||
defer = post;
|
||||
global.addEventListener('message', listener, false);
|
||||
// IE8-
|
||||
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
||||
defer = function (id) {
|
||||
html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
|
||||
html.removeChild(this);
|
||||
run(id);
|
||||
};
|
||||
};
|
||||
// Rest old browsers
|
||||
} else {
|
||||
defer = function (id) {
|
||||
setTimeout(runner(id), 0);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
set: set,
|
||||
clear: clear
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 81 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
var FunctionPrototype = Function.prototype;
|
||||
var apply = FunctionPrototype.apply;
|
||||
var bind = FunctionPrototype.bind;
|
||||
var call = FunctionPrototype.call;
|
||||
|
||||
// eslint-disable-next-line es/no-reflect -- safe
|
||||
module.exports = typeof Reflect == 'object' && Reflect.apply || (bind ? call.bind(apply) : function () {
|
||||
return call.apply(apply, arguments);
|
||||
});
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 82 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var uncurryThis = __webpack_require__(12);
|
||||
var aCallable = __webpack_require__(27);
|
||||
|
||||
var bind = uncurryThis(uncurryThis.bind);
|
||||
|
||||
// optional / simple context binding
|
||||
module.exports = function (fn, that) {
|
||||
aCallable(fn);
|
||||
return that === undefined ? fn : bind ? bind(fn, that) : function (/* ...args */) {
|
||||
return fn.apply(that, arguments);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 83 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var uncurryThis = __webpack_require__(12);
|
||||
|
||||
module.exports = uncurryThis([].slice);
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 84 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var userAgent = __webpack_require__(25);
|
||||
|
||||
module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);
|
||||
|
||||
|
||||
/***/ }),
|
||||
/* 85 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var classof = __webpack_require__(13);
|
||||
var global = __webpack_require__(3);
|
||||
|
||||
module.exports = classof(global.process) == 'process';
|
||||
|
||||
|
||||
/***/ })
|
||||
/******/ ]); }();
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user