Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
return parseInt(val, 16);
[49000] Fix | Delete
}
[49001] Fix | Delete
[49002] Fix | Delete
// Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
[49003] Fix | Delete
// <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
[49004] Fix | Delete
function isOnePointZero(n) {
[49005] Fix | Delete
return typeof n == "string" && n.indexOf('.') != -1 && parseFloat(n) === 1;
[49006] Fix | Delete
}
[49007] Fix | Delete
[49008] Fix | Delete
// Check to see if string passed in is a percentage
[49009] Fix | Delete
function isPercentage(n) {
[49010] Fix | Delete
return typeof n === "string" && n.indexOf('%') != -1;
[49011] Fix | Delete
}
[49012] Fix | Delete
[49013] Fix | Delete
// Force a hex value to have 2 characters
[49014] Fix | Delete
function pad2(c) {
[49015] Fix | Delete
return c.length == 1 ? '0' + c : '' + c;
[49016] Fix | Delete
}
[49017] Fix | Delete
[49018] Fix | Delete
// Replace a decimal with it's percentage value
[49019] Fix | Delete
function convertToPercentage(n) {
[49020] Fix | Delete
if (n <= 1) {
[49021] Fix | Delete
n = (n * 100) + "%";
[49022] Fix | Delete
}
[49023] Fix | Delete
[49024] Fix | Delete
return n;
[49025] Fix | Delete
}
[49026] Fix | Delete
[49027] Fix | Delete
// Converts a decimal to a hex value
[49028] Fix | Delete
function convertDecimalToHex(d) {
[49029] Fix | Delete
return Math.round(parseFloat(d) * 255).toString(16);
[49030] Fix | Delete
}
[49031] Fix | Delete
// Converts a hex value to a decimal
[49032] Fix | Delete
function convertHexToDecimal(h) {
[49033] Fix | Delete
return (parseIntFromHex(h) / 255);
[49034] Fix | Delete
}
[49035] Fix | Delete
[49036] Fix | Delete
var matchers = (function() {
[49037] Fix | Delete
[49038] Fix | Delete
// <http://www.w3.org/TR/css3-values/#integers>
[49039] Fix | Delete
var CSS_INTEGER = "[-\\+]?\\d+%?";
[49040] Fix | Delete
[49041] Fix | Delete
// <http://www.w3.org/TR/css3-values/#number-value>
[49042] Fix | Delete
var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
[49043] Fix | Delete
[49044] Fix | Delete
// Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
[49045] Fix | Delete
var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
[49046] Fix | Delete
[49047] Fix | Delete
// Actual matching.
[49048] Fix | Delete
// Parentheses and commas are optional, but not required.
[49049] Fix | Delete
// Whitespace can take the place of commas or opening paren
[49050] Fix | Delete
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
[49051] Fix | Delete
var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
[49052] Fix | Delete
[49053] Fix | Delete
return {
[49054] Fix | Delete
CSS_UNIT: new RegExp(CSS_UNIT),
[49055] Fix | Delete
rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
[49056] Fix | Delete
rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
[49057] Fix | Delete
hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
[49058] Fix | Delete
hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
[49059] Fix | Delete
hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
[49060] Fix | Delete
hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
[49061] Fix | Delete
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
[49062] Fix | Delete
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
[49063] Fix | Delete
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
[49064] Fix | Delete
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
[49065] Fix | Delete
};
[49066] Fix | Delete
})();
[49067] Fix | Delete
[49068] Fix | Delete
// `isValidCSSUnit`
[49069] Fix | Delete
// Take in a single string / number and check to see if it looks like a CSS unit
[49070] Fix | Delete
// (see `matchers` above for definition).
[49071] Fix | Delete
function isValidCSSUnit(color) {
[49072] Fix | Delete
return !!matchers.CSS_UNIT.exec(color);
[49073] Fix | Delete
}
[49074] Fix | Delete
[49075] Fix | Delete
// `stringInputToObject`
[49076] Fix | Delete
// Permissive string parsing. Take in a number of formats, and output an object
[49077] Fix | Delete
// based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
[49078] Fix | Delete
function stringInputToObject(color) {
[49079] Fix | Delete
[49080] Fix | Delete
color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase();
[49081] Fix | Delete
var named = false;
[49082] Fix | Delete
if (names[color]) {
[49083] Fix | Delete
color = names[color];
[49084] Fix | Delete
named = true;
[49085] Fix | Delete
}
[49086] Fix | Delete
else if (color == 'transparent') {
[49087] Fix | Delete
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
[49088] Fix | Delete
}
[49089] Fix | Delete
[49090] Fix | Delete
// Try to match string input using regular expressions.
[49091] Fix | Delete
// Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
[49092] Fix | Delete
// Just return an object and let the conversion functions handle that.
[49093] Fix | Delete
// This way the result will be the same whether the tinycolor is initialized with string or object.
[49094] Fix | Delete
var match;
[49095] Fix | Delete
if ((match = matchers.rgb.exec(color))) {
[49096] Fix | Delete
return { r: match[1], g: match[2], b: match[3] };
[49097] Fix | Delete
}
[49098] Fix | Delete
if ((match = matchers.rgba.exec(color))) {
[49099] Fix | Delete
return { r: match[1], g: match[2], b: match[3], a: match[4] };
[49100] Fix | Delete
}
[49101] Fix | Delete
if ((match = matchers.hsl.exec(color))) {
[49102] Fix | Delete
return { h: match[1], s: match[2], l: match[3] };
[49103] Fix | Delete
}
[49104] Fix | Delete
if ((match = matchers.hsla.exec(color))) {
[49105] Fix | Delete
return { h: match[1], s: match[2], l: match[3], a: match[4] };
[49106] Fix | Delete
}
[49107] Fix | Delete
if ((match = matchers.hsv.exec(color))) {
[49108] Fix | Delete
return { h: match[1], s: match[2], v: match[3] };
[49109] Fix | Delete
}
[49110] Fix | Delete
if ((match = matchers.hsva.exec(color))) {
[49111] Fix | Delete
return { h: match[1], s: match[2], v: match[3], a: match[4] };
[49112] Fix | Delete
}
[49113] Fix | Delete
if ((match = matchers.hex8.exec(color))) {
[49114] Fix | Delete
return {
[49115] Fix | Delete
r: parseIntFromHex(match[1]),
[49116] Fix | Delete
g: parseIntFromHex(match[2]),
[49117] Fix | Delete
b: parseIntFromHex(match[3]),
[49118] Fix | Delete
a: convertHexToDecimal(match[4]),
[49119] Fix | Delete
format: named ? "name" : "hex8"
[49120] Fix | Delete
};
[49121] Fix | Delete
}
[49122] Fix | Delete
if ((match = matchers.hex6.exec(color))) {
[49123] Fix | Delete
return {
[49124] Fix | Delete
r: parseIntFromHex(match[1]),
[49125] Fix | Delete
g: parseIntFromHex(match[2]),
[49126] Fix | Delete
b: parseIntFromHex(match[3]),
[49127] Fix | Delete
format: named ? "name" : "hex"
[49128] Fix | Delete
};
[49129] Fix | Delete
}
[49130] Fix | Delete
if ((match = matchers.hex4.exec(color))) {
[49131] Fix | Delete
return {
[49132] Fix | Delete
r: parseIntFromHex(match[1] + '' + match[1]),
[49133] Fix | Delete
g: parseIntFromHex(match[2] + '' + match[2]),
[49134] Fix | Delete
b: parseIntFromHex(match[3] + '' + match[3]),
[49135] Fix | Delete
a: convertHexToDecimal(match[4] + '' + match[4]),
[49136] Fix | Delete
format: named ? "name" : "hex8"
[49137] Fix | Delete
};
[49138] Fix | Delete
}
[49139] Fix | Delete
if ((match = matchers.hex3.exec(color))) {
[49140] Fix | Delete
return {
[49141] Fix | Delete
r: parseIntFromHex(match[1] + '' + match[1]),
[49142] Fix | Delete
g: parseIntFromHex(match[2] + '' + match[2]),
[49143] Fix | Delete
b: parseIntFromHex(match[3] + '' + match[3]),
[49144] Fix | Delete
format: named ? "name" : "hex"
[49145] Fix | Delete
};
[49146] Fix | Delete
}
[49147] Fix | Delete
[49148] Fix | Delete
return false;
[49149] Fix | Delete
}
[49150] Fix | Delete
[49151] Fix | Delete
function validateWCAG2Parms(parms) {
[49152] Fix | Delete
// return valid WCAG2 parms for isReadable.
[49153] Fix | Delete
// If input parms are invalid, return {"level":"AA", "size":"small"}
[49154] Fix | Delete
var level, size;
[49155] Fix | Delete
parms = parms || {"level":"AA", "size":"small"};
[49156] Fix | Delete
level = (parms.level || "AA").toUpperCase();
[49157] Fix | Delete
size = (parms.size || "small").toLowerCase();
[49158] Fix | Delete
if (level !== "AA" && level !== "AAA") {
[49159] Fix | Delete
level = "AA";
[49160] Fix | Delete
}
[49161] Fix | Delete
if (size !== "small" && size !== "large") {
[49162] Fix | Delete
size = "small";
[49163] Fix | Delete
}
[49164] Fix | Delete
return {"level":level, "size":size};
[49165] Fix | Delete
}
[49166] Fix | Delete
[49167] Fix | Delete
// Node: Export function
[49168] Fix | Delete
if ( true && module.exports) {
[49169] Fix | Delete
module.exports = tinycolor;
[49170] Fix | Delete
}
[49171] Fix | Delete
// AMD/requirejs: Define the module
[49172] Fix | Delete
else if (true) {
[49173] Fix | Delete
!(__WEBPACK_AMD_DEFINE_RESULT__ = (function () {return tinycolor;}).call(exports, __webpack_require__, exports, module),
[49174] Fix | Delete
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
[49175] Fix | Delete
}
[49176] Fix | Delete
// Browser: Expose to window
[49177] Fix | Delete
else {}
[49178] Fix | Delete
[49179] Fix | Delete
})(Math);
[49180] Fix | Delete
[49181] Fix | Delete
[49182] Fix | Delete
/***/ }),
[49183] Fix | Delete
[49184] Fix | Delete
/***/ "a3WO":
[49185] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[49186] Fix | Delete
[49187] Fix | Delete
"use strict";
[49188] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _arrayLikeToArray; });
[49189] Fix | Delete
function _arrayLikeToArray(arr, len) {
[49190] Fix | Delete
if (len == null || len > arr.length) len = arr.length;
[49191] Fix | Delete
[49192] Fix | Delete
for (var i = 0, arr2 = new Array(len); i < len; i++) {
[49193] Fix | Delete
arr2[i] = arr[i];
[49194] Fix | Delete
}
[49195] Fix | Delete
[49196] Fix | Delete
return arr2;
[49197] Fix | Delete
}
[49198] Fix | Delete
[49199] Fix | Delete
/***/ }),
[49200] Fix | Delete
[49201] Fix | Delete
/***/ "aA0e":
[49202] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[49203] Fix | Delete
[49204] Fix | Delete
"use strict";
[49205] Fix | Delete
/* WEBPACK VAR INJECTION */(function(process) {/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("wx14");
[49206] Fix | Delete
/* harmony import */ var _babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("rePB");
[49207] Fix | Delete
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("Ff2n");
[49208] Fix | Delete
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("GRId");
[49209] Fix | Delete
/* harmony import */ var _wordpress_element__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__);
[49210] Fix | Delete
/* harmony import */ var reakit_Toolbar__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("zTEx");
[49211] Fix | Delete
/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("Z23Y");
[49212] Fix | Delete
/* harmony import */ var _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_wordpress_warning__WEBPACK_IMPORTED_MODULE_5__);
[49213] Fix | Delete
/* harmony import */ var _toolbar_context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("GK4x");
[49214] Fix | Delete
[49215] Fix | Delete
[49216] Fix | Delete
[49217] Fix | Delete
[49218] Fix | Delete
[49219] Fix | Delete
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
[49220] Fix | Delete
[49221] Fix | Delete
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { Object(_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
[49222] Fix | Delete
[49223] Fix | Delete
/**
[49224] Fix | Delete
* External dependencies
[49225] Fix | Delete
*/
[49226] Fix | Delete
[49227] Fix | Delete
/**
[49228] Fix | Delete
* WordPress dependencies
[49229] Fix | Delete
*/
[49230] Fix | Delete
[49231] Fix | Delete
[49232] Fix | Delete
[49233] Fix | Delete
/**
[49234] Fix | Delete
* Internal dependencies
[49235] Fix | Delete
*/
[49236] Fix | Delete
[49237] Fix | Delete
[49238] Fix | Delete
[49239] Fix | Delete
function ToolbarItem(_ref, ref) {
[49240] Fix | Delete
var children = _ref.children,
[49241] Fix | Delete
Component = _ref.as,
[49242] Fix | Delete
props = Object(_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(_ref, ["children", "as"]);
[49243] Fix | Delete
[49244] Fix | Delete
var accessibleToolbarState = Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["useContext"])(_toolbar_context__WEBPACK_IMPORTED_MODULE_6__[/* default */ "a"]);
[49245] Fix | Delete
[49246] Fix | Delete
if (typeof children !== 'function' && !Component) {
[49247] Fix | Delete
typeof process !== "undefined" && process.env && "production" !== "production" ? _wordpress_warning__WEBPACK_IMPORTED_MODULE_5___default()('`ToolbarItem` is a generic headless component. You must pass either a `children` prop as a function or an `as` prop as a component. ' + 'See https://developer.wordpress.org/block-editor/components/toolbar-item/') : void 0;
[49248] Fix | Delete
return null;
[49249] Fix | Delete
}
[49250] Fix | Delete
[49251] Fix | Delete
var allProps = _objectSpread(_objectSpread({}, props), {}, {
[49252] Fix | Delete
ref: ref,
[49253] Fix | Delete
'data-toolbar-item': true
[49254] Fix | Delete
});
[49255] Fix | Delete
[49256] Fix | Delete
if (!accessibleToolbarState) {
[49257] Fix | Delete
if (Component) {
[49258] Fix | Delete
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(Component, allProps, children);
[49259] Fix | Delete
}
[49260] Fix | Delete
[49261] Fix | Delete
return children(allProps);
[49262] Fix | Delete
}
[49263] Fix | Delete
[49264] Fix | Delete
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["createElement"])(reakit_Toolbar__WEBPACK_IMPORTED_MODULE_4__[/* ToolbarItem */ "a"], Object(_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({}, accessibleToolbarState, allProps, {
[49265] Fix | Delete
as: Component
[49266] Fix | Delete
}), children);
[49267] Fix | Delete
}
[49268] Fix | Delete
[49269] Fix | Delete
/* harmony default export */ __webpack_exports__["a"] = (Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_3__["forwardRef"])(ToolbarItem));
[49270] Fix | Delete
[49271] Fix | Delete
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("8oxB")))
[49272] Fix | Delete
[49273] Fix | Delete
/***/ }),
[49274] Fix | Delete
[49275] Fix | Delete
/***/ "aBWF":
[49276] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[49277] Fix | Delete
[49278] Fix | Delete
"use strict";
[49279] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isTextField; });
[49280] Fix | Delete
/**
[49281] Fix | Delete
* Check whether the given element is a text field, where text field is defined
[49282] Fix | Delete
* by the ability to select within the input, or that it is contenteditable.
[49283] Fix | Delete
*
[49284] Fix | Delete
* @example
[49285] Fix | Delete
* import { isTextField } from "reakit-utils";
[49286] Fix | Delete
*
[49287] Fix | Delete
* isTextField(document.querySelector("div")); // false
[49288] Fix | Delete
* isTextField(document.querySelector("input")); // true
[49289] Fix | Delete
* isTextField(document.querySelector("input[type='button']")); // false
[49290] Fix | Delete
* isTextField(document.querySelector("textarea")); // true
[49291] Fix | Delete
* isTextField(document.querySelector("div[contenteditable='true']")); // true
[49292] Fix | Delete
*/
[49293] Fix | Delete
function isTextField(element) {
[49294] Fix | Delete
try {
[49295] Fix | Delete
var isTextInput = element instanceof HTMLInputElement && element.selectionStart !== null;
[49296] Fix | Delete
var isTextArea = element.tagName === "TEXTAREA";
[49297] Fix | Delete
var isContentEditable = element.contentEditable === "true";
[49298] Fix | Delete
return isTextInput || isTextArea || isContentEditable || false;
[49299] Fix | Delete
} catch (error) {
[49300] Fix | Delete
// Safari throws an exception when trying to get `selectionStart`
[49301] Fix | Delete
// on non-text <input> elements (which, understandably, don't
[49302] Fix | Delete
// have the text selection API). We catch this via a try/catch
[49303] Fix | Delete
// block, as opposed to a more explicit check of the element's
[49304] Fix | Delete
// input types, because of Safari's non-standard behavior. This
[49305] Fix | Delete
// also means we don't have to worry about the list of input
[49306] Fix | Delete
// types that support `selectionStart` changing as the HTML spec
[49307] Fix | Delete
// evolves over time.
[49308] Fix | Delete
return false;
[49309] Fix | Delete
}
[49310] Fix | Delete
}
[49311] Fix | Delete
[49312] Fix | Delete
[49313] Fix | Delete
[49314] Fix | Delete
[49315] Fix | Delete
/***/ }),
[49316] Fix | Delete
[49317] Fix | Delete
/***/ "aE6U":
[49318] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[49319] Fix | Delete
[49320] Fix | Delete
"use strict";
[49321] Fix | Delete
[49322] Fix | Delete
[49323] Fix | Delete
Object.defineProperty(exports, "__esModule", {
[49324] Fix | Delete
value: true
[49325] Fix | Delete
});
[49326] Fix | Delete
[49327] Fix | Delete
var _propTypes = __webpack_require__("17x9");
[49328] Fix | Delete
[49329] Fix | Delete
var _propTypes2 = _interopRequireDefault(_propTypes);
[49330] Fix | Delete
[49331] Fix | Delete
var _constants = __webpack_require__("Fv1B");
[49332] Fix | Delete
[49333] Fix | Delete
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
[49334] Fix | Delete
[49335] Fix | Delete
exports['default'] = _propTypes2['default'].oneOf([_constants.HORIZONTAL_ORIENTATION, _constants.VERTICAL_ORIENTATION, _constants.VERTICAL_SCROLLABLE]);
[49336] Fix | Delete
[49337] Fix | Delete
/***/ }),
[49338] Fix | Delete
[49339] Fix | Delete
/***/ "aI7X":
[49340] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[49341] Fix | Delete
[49342] Fix | Delete
"use strict";
[49343] Fix | Delete
[49344] Fix | Delete
[49345] Fix | Delete
/* eslint no-invalid-this: 1 */
[49346] Fix | Delete
[49347] Fix | Delete
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
[49348] Fix | Delete
var slice = Array.prototype.slice;
[49349] Fix | Delete
var toStr = Object.prototype.toString;
[49350] Fix | Delete
var funcType = '[object Function]';
[49351] Fix | Delete
[49352] Fix | Delete
module.exports = function bind(that) {
[49353] Fix | Delete
var target = this;
[49354] Fix | Delete
if (typeof target !== 'function' || toStr.call(target) !== funcType) {
[49355] Fix | Delete
throw new TypeError(ERROR_MESSAGE + target);
[49356] Fix | Delete
}
[49357] Fix | Delete
var args = slice.call(arguments, 1);
[49358] Fix | Delete
[49359] Fix | Delete
var bound;
[49360] Fix | Delete
var binder = function () {
[49361] Fix | Delete
if (this instanceof bound) {
[49362] Fix | Delete
var result = target.apply(
[49363] Fix | Delete
this,
[49364] Fix | Delete
args.concat(slice.call(arguments))
[49365] Fix | Delete
);
[49366] Fix | Delete
if (Object(result) === result) {
[49367] Fix | Delete
return result;
[49368] Fix | Delete
}
[49369] Fix | Delete
return this;
[49370] Fix | Delete
} else {
[49371] Fix | Delete
return target.apply(
[49372] Fix | Delete
that,
[49373] Fix | Delete
args.concat(slice.call(arguments))
[49374] Fix | Delete
);
[49375] Fix | Delete
}
[49376] Fix | Delete
};
[49377] Fix | Delete
[49378] Fix | Delete
var boundLength = Math.max(0, target.length - args.length);
[49379] Fix | Delete
var boundArgs = [];
[49380] Fix | Delete
for (var i = 0; i < boundLength; i++) {
[49381] Fix | Delete
boundArgs.push('$' + i);
[49382] Fix | Delete
}
[49383] Fix | Delete
[49384] Fix | Delete
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
[49385] Fix | Delete
[49386] Fix | Delete
if (target.prototype) {
[49387] Fix | Delete
var Empty = function Empty() {};
[49388] Fix | Delete
Empty.prototype = target.prototype;
[49389] Fix | Delete
bound.prototype = new Empty();
[49390] Fix | Delete
Empty.prototype = null;
[49391] Fix | Delete
}
[49392] Fix | Delete
[49393] Fix | Delete
return bound;
[49394] Fix | Delete
};
[49395] Fix | Delete
[49396] Fix | Delete
[49397] Fix | Delete
/***/ }),
[49398] Fix | Delete
[49399] Fix | Delete
/***/ "aUaa":
[49400] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[49401] Fix | Delete
[49402] Fix | Delete
"use strict";
[49403] Fix | Delete
[49404] Fix | Delete
[49405] Fix | Delete
var GetIntrinsic = __webpack_require__("v7lB");
[49406] Fix | Delete
[49407] Fix | Delete
var $TypeError = GetIntrinsic('%TypeError%');
[49408] Fix | Delete
[49409] Fix | Delete
// http://www.ecma-international.org/ecma-262/5.1/#sec-9.10
[49410] Fix | Delete
[49411] Fix | Delete
module.exports = function CheckObjectCoercible(value, optMessage) {
[49412] Fix | Delete
if (value == null) {
[49413] Fix | Delete
throw new $TypeError(optMessage || ('Cannot call method on ' + value));
[49414] Fix | Delete
}
[49415] Fix | Delete
return value;
[49416] Fix | Delete
};
[49417] Fix | Delete
[49418] Fix | Delete
[49419] Fix | Delete
/***/ }),
[49420] Fix | Delete
[49421] Fix | Delete
/***/ "aenO":
[49422] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[49423] Fix | Delete
[49424] Fix | Delete
"use strict";
[49425] Fix | Delete
[49426] Fix | Delete
[49427] Fix | Delete
var GetIntrinsic = __webpack_require__("AM7I");
[49428] Fix | Delete
[49429] Fix | Delete
var $TypeError = GetIntrinsic('%TypeError%');
[49430] Fix | Delete
[49431] Fix | Delete
var IsPropertyKey = __webpack_require__("i10q");
[49432] Fix | Delete
var Type = __webpack_require__("V1cy");
[49433] Fix | Delete
[49434] Fix | Delete
// https://ecma-international.org/ecma-262/6.0/#sec-hasproperty
[49435] Fix | Delete
[49436] Fix | Delete
module.exports = function HasProperty(O, P) {
[49437] Fix | Delete
if (Type(O) !== 'Object') {
[49438] Fix | Delete
throw new $TypeError('Assertion failed: `O` must be an Object');
[49439] Fix | Delete
}
[49440] Fix | Delete
if (!IsPropertyKey(P)) {
[49441] Fix | Delete
throw new $TypeError('Assertion failed: `P` must be a Property Key');
[49442] Fix | Delete
}
[49443] Fix | Delete
return P in O;
[49444] Fix | Delete
};
[49445] Fix | Delete
[49446] Fix | Delete
[49447] Fix | Delete
/***/ }),
[49448] Fix | Delete
[49449] Fix | Delete
/***/ "agUq":
[49450] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[49451] Fix | Delete
[49452] Fix | Delete
"use strict";
[49453] Fix | Delete
[49454] Fix | Delete
[49455] Fix | Delete
// http://ecma-international.org/ecma-262/5.1/#sec-9.11
[49456] Fix | Delete
[49457] Fix | Delete
module.exports = __webpack_require__("IdCN");
[49458] Fix | Delete
[49459] Fix | Delete
[49460] Fix | Delete
/***/ }),
[49461] Fix | Delete
[49462] Fix | Delete
/***/ "ald4":
[49463] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[49464] Fix | Delete
[49465] Fix | Delete
"use strict";
[49466] Fix | Delete
[49467] Fix | Delete
[49468] Fix | Delete
var $isNaN = Number.isNaN || function (a) { return a !== a; };
[49469] Fix | Delete
[49470] Fix | Delete
module.exports = Number.isFinite || function (x) { return typeof x === 'number' && !$isNaN(x) && x !== Infinity && x !== -Infinity; };
[49471] Fix | Delete
[49472] Fix | Delete
[49473] Fix | Delete
/***/ }),
[49474] Fix | Delete
[49475] Fix | Delete
/***/ "bSjX":
[49476] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[49477] Fix | Delete
[49478] Fix | Delete
"use strict";
[49479] Fix | Delete
[49480] Fix | Delete
// EXPORTS
[49481] Fix | Delete
__webpack_require__.d(__webpack_exports__, "c", function() { return /* binding */ context_useSlot; });
[49482] Fix | Delete
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Consumer; });
[49483] Fix | Delete
[49484] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js + 1 modules
[49485] Fix | Delete
var slicedToArray = __webpack_require__("ODXe");
[49486] Fix | Delete
[49487] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
[49488] Fix | Delete
var toConsumableArray = __webpack_require__("KQm4");
[49489] Fix | Delete
[49490] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js
[49491] Fix | Delete
var classCallCheck = __webpack_require__("1OyB");
[49492] Fix | Delete
[49493] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createClass.js
[49494] Fix | Delete
var createClass = __webpack_require__("vuIU");
[49495] Fix | Delete
[49496] Fix | Delete
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
[49497] Fix | Delete
var assertThisInitialized = __webpack_require__("JX7q");
[49498] Fix | Delete
[49499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function