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: block-editor.js
* WordPress dependencies
[68500] Fix | Delete
*/
[68501] Fix | Delete
[68502] Fix | Delete
[68503] Fix | Delete
[68504] Fix | Delete
[68505] Fix | Delete
/**
[68506] Fix | Delete
* Internal dependencies
[68507] Fix | Delete
*/
[68508] Fix | Delete
[68509] Fix | Delete
[68510] Fix | Delete
[68511] Fix | Delete
/*
[68512] Fix | Delete
* This function is similar to `@wordpress/element`'s `renderToString` function,
[68513] Fix | Delete
* except that it does not render the elements to a string, but instead collects
[68514] Fix | Delete
* the values of all rich text `Content` elements.
[68515] Fix | Delete
*/
[68516] Fix | Delete
[68517] Fix | Delete
function addValuesForElement(element, values, innerBlocks) {
[68518] Fix | Delete
if (null === element || undefined === element || false === element) {
[68519] Fix | Delete
return;
[68520] Fix | Delete
}
[68521] Fix | Delete
if (Array.isArray(element)) {
[68522] Fix | Delete
return addValuesForElements(element, values, innerBlocks);
[68523] Fix | Delete
}
[68524] Fix | Delete
switch (typeof element) {
[68525] Fix | Delete
case 'string':
[68526] Fix | Delete
case 'number':
[68527] Fix | Delete
return;
[68528] Fix | Delete
}
[68529] Fix | Delete
const {
[68530] Fix | Delete
type,
[68531] Fix | Delete
props
[68532] Fix | Delete
} = element;
[68533] Fix | Delete
switch (type) {
[68534] Fix | Delete
case external_wp_element_namespaceObject.StrictMode:
[68535] Fix | Delete
case external_wp_element_namespaceObject.Fragment:
[68536] Fix | Delete
return addValuesForElements(props.children, values, innerBlocks);
[68537] Fix | Delete
case external_wp_element_namespaceObject.RawHTML:
[68538] Fix | Delete
return;
[68539] Fix | Delete
case inner_blocks.Content:
[68540] Fix | Delete
return addValuesForBlocks(values, innerBlocks);
[68541] Fix | Delete
case Content:
[68542] Fix | Delete
values.push(props.value);
[68543] Fix | Delete
return;
[68544] Fix | Delete
}
[68545] Fix | Delete
switch (typeof type) {
[68546] Fix | Delete
case 'string':
[68547] Fix | Delete
if (typeof props.children !== 'undefined') {
[68548] Fix | Delete
return addValuesForElements(props.children, values, innerBlocks);
[68549] Fix | Delete
}
[68550] Fix | Delete
return;
[68551] Fix | Delete
case 'function':
[68552] Fix | Delete
const el = type.prototype && typeof type.prototype.render === 'function' ? new type(props).render() : type(props);
[68553] Fix | Delete
return addValuesForElement(el, values, innerBlocks);
[68554] Fix | Delete
}
[68555] Fix | Delete
}
[68556] Fix | Delete
function addValuesForElements(children, ...args) {
[68557] Fix | Delete
children = Array.isArray(children) ? children : [children];
[68558] Fix | Delete
for (let i = 0; i < children.length; i++) {
[68559] Fix | Delete
addValuesForElement(children[i], ...args);
[68560] Fix | Delete
}
[68561] Fix | Delete
}
[68562] Fix | Delete
function addValuesForBlocks(values, blocks) {
[68563] Fix | Delete
for (let i = 0; i < blocks.length; i++) {
[68564] Fix | Delete
const {
[68565] Fix | Delete
name,
[68566] Fix | Delete
attributes,
[68567] Fix | Delete
innerBlocks
[68568] Fix | Delete
} = blocks[i];
[68569] Fix | Delete
const saveElement = (0,external_wp_blocks_namespaceObject.getSaveElement)(name, attributes,
[68570] Fix | Delete
/*#__PURE__*/
[68571] Fix | Delete
// Instead of letting save elements use `useInnerBlocksProps.save`,
[68572] Fix | Delete
// force them to use InnerBlocks.Content instead so we can intercept
[68573] Fix | Delete
// a single component.
[68574] Fix | Delete
(0,external_ReactJSXRuntime_namespaceObject.jsx)(inner_blocks.Content, {}));
[68575] Fix | Delete
addValuesForElement(saveElement, values, innerBlocks);
[68576] Fix | Delete
}
[68577] Fix | Delete
}
[68578] Fix | Delete
function getRichTextValues(blocks = []) {
[68579] Fix | Delete
external_wp_blocks_namespaceObject.__unstableGetBlockProps.skipFilters = true;
[68580] Fix | Delete
const values = [];
[68581] Fix | Delete
addValuesForBlocks(values, blocks);
[68582] Fix | Delete
external_wp_blocks_namespaceObject.__unstableGetBlockProps.skipFilters = false;
[68583] Fix | Delete
return values.map(value => value instanceof external_wp_richText_namespaceObject.RichTextData ? value : external_wp_richText_namespaceObject.RichTextData.fromHTMLString(value));
[68584] Fix | Delete
}
[68585] Fix | Delete
[68586] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/resizable-box-popover/index.js
[68587] Fix | Delete
/**
[68588] Fix | Delete
* WordPress dependencies
[68589] Fix | Delete
*/
[68590] Fix | Delete
[68591] Fix | Delete
[68592] Fix | Delete
/**
[68593] Fix | Delete
* Internal dependencies
[68594] Fix | Delete
*/
[68595] Fix | Delete
[68596] Fix | Delete
[68597] Fix | Delete
function ResizableBoxPopover({
[68598] Fix | Delete
clientId,
[68599] Fix | Delete
resizableBoxProps,
[68600] Fix | Delete
...props
[68601] Fix | Delete
}) {
[68602] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(cover, {
[68603] Fix | Delete
clientId: clientId,
[68604] Fix | Delete
__unstablePopoverSlot: "block-toolbar",
[68605] Fix | Delete
...props,
[68606] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.ResizableBox, {
[68607] Fix | Delete
...resizableBoxProps
[68608] Fix | Delete
})
[68609] Fix | Delete
});
[68610] Fix | Delete
}
[68611] Fix | Delete
[68612] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/block-removal-warning-modal/index.js
[68613] Fix | Delete
/**
[68614] Fix | Delete
* WordPress dependencies
[68615] Fix | Delete
*/
[68616] Fix | Delete
[68617] Fix | Delete
[68618] Fix | Delete
[68619] Fix | Delete
[68620] Fix | Delete
[68621] Fix | Delete
/**
[68622] Fix | Delete
* Internal dependencies
[68623] Fix | Delete
*/
[68624] Fix | Delete
[68625] Fix | Delete
[68626] Fix | Delete
[68627] Fix | Delete
[68628] Fix | Delete
function BlockRemovalWarningModal({
[68629] Fix | Delete
rules
[68630] Fix | Delete
}) {
[68631] Fix | Delete
const {
[68632] Fix | Delete
clientIds,
[68633] Fix | Delete
selectPrevious,
[68634] Fix | Delete
message
[68635] Fix | Delete
} = (0,external_wp_data_namespaceObject.useSelect)(select => unlock(select(store)).getRemovalPromptData());
[68636] Fix | Delete
const {
[68637] Fix | Delete
clearBlockRemovalPrompt,
[68638] Fix | Delete
setBlockRemovalRules,
[68639] Fix | Delete
privateRemoveBlocks
[68640] Fix | Delete
} = unlock((0,external_wp_data_namespaceObject.useDispatch)(store));
[68641] Fix | Delete
[68642] Fix | Delete
// Load block removal rules, simultaneously signalling that the block
[68643] Fix | Delete
// removal prompt is in place.
[68644] Fix | Delete
(0,external_wp_element_namespaceObject.useEffect)(() => {
[68645] Fix | Delete
setBlockRemovalRules(rules);
[68646] Fix | Delete
return () => {
[68647] Fix | Delete
setBlockRemovalRules();
[68648] Fix | Delete
};
[68649] Fix | Delete
}, [rules, setBlockRemovalRules]);
[68650] Fix | Delete
if (!message) {
[68651] Fix | Delete
return;
[68652] Fix | Delete
}
[68653] Fix | Delete
const onConfirmRemoval = () => {
[68654] Fix | Delete
privateRemoveBlocks(clientIds, selectPrevious, /* force */true);
[68655] Fix | Delete
clearBlockRemovalPrompt();
[68656] Fix | Delete
};
[68657] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.Modal, {
[68658] Fix | Delete
title: (0,external_wp_i18n_namespaceObject.__)('Be careful!'),
[68659] Fix | Delete
onRequestClose: clearBlockRemovalPrompt,
[68660] Fix | Delete
size: "medium",
[68661] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)("p", {
[68662] Fix | Delete
children: message
[68663] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsxs)(external_wp_components_namespaceObject.__experimentalHStack, {
[68664] Fix | Delete
justify: "right",
[68665] Fix | Delete
children: [/*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[68666] Fix | Delete
variant: "tertiary",
[68667] Fix | Delete
onClick: clearBlockRemovalPrompt,
[68668] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Cancel')
[68669] Fix | Delete
}), /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.Button, {
[68670] Fix | Delete
variant: "primary",
[68671] Fix | Delete
onClick: onConfirmRemoval,
[68672] Fix | Delete
children: (0,external_wp_i18n_namespaceObject.__)('Delete')
[68673] Fix | Delete
})]
[68674] Fix | Delete
})]
[68675] Fix | Delete
});
[68676] Fix | Delete
}
[68677] Fix | Delete
[68678] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@wordpress/block-editor/build-module/components/dimensions-tool/scale-tool.js
[68679] Fix | Delete
/**
[68680] Fix | Delete
* WordPress dependencies
[68681] Fix | Delete
*/
[68682] Fix | Delete
[68683] Fix | Delete
[68684] Fix | Delete
[68685] Fix | Delete
[68686] Fix | Delete
/**
[68687] Fix | Delete
* @typedef {import('@wordpress/components/build-types/select-control/types').SelectControlProps} SelectControlProps
[68688] Fix | Delete
*/
[68689] Fix | Delete
[68690] Fix | Delete
/**
[68691] Fix | Delete
* The descriptions are purposely made generic as object-fit could be used for
[68692] Fix | Delete
* any replaced element. Provide your own set of options if you need different
[68693] Fix | Delete
* help text or labels.
[68694] Fix | Delete
*
[68695] Fix | Delete
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/Replaced_element
[68696] Fix | Delete
*
[68697] Fix | Delete
* @type {SelectControlProps[]}
[68698] Fix | Delete
*/
[68699] Fix | Delete
[68700] Fix | Delete
const DEFAULT_SCALE_OPTIONS = [{
[68701] Fix | Delete
value: 'fill',
[68702] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Fill', 'Scale option for dimensions control'),
[68703] Fix | Delete
help: (0,external_wp_i18n_namespaceObject.__)('Fill the space by stretching the content.')
[68704] Fix | Delete
}, {
[68705] Fix | Delete
value: 'contain',
[68706] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Contain', 'Scale option for dimensions control'),
[68707] Fix | Delete
help: (0,external_wp_i18n_namespaceObject.__)('Fit the content to the space without clipping.')
[68708] Fix | Delete
}, {
[68709] Fix | Delete
value: 'cover',
[68710] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Cover', 'Scale option for dimensions control'),
[68711] Fix | Delete
help: (0,external_wp_i18n_namespaceObject.__)("Fill the space by clipping what doesn't fit.")
[68712] Fix | Delete
}, {
[68713] Fix | Delete
value: 'none',
[68714] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('None', 'Scale option for dimensions control'),
[68715] Fix | Delete
help: (0,external_wp_i18n_namespaceObject.__)('Do not adjust the sizing of the content. Content that is too large will be clipped, and content that is too small will have additional padding.')
[68716] Fix | Delete
}, {
[68717] Fix | Delete
value: 'scale-down',
[68718] Fix | Delete
label: (0,external_wp_i18n_namespaceObject._x)('Scale down', 'Scale option for dimensions control'),
[68719] Fix | Delete
help: (0,external_wp_i18n_namespaceObject.__)('Scale down the content to fit the space if it is too big. Content that is too small will have additional padding.')
[68720] Fix | Delete
}];
[68721] Fix | Delete
[68722] Fix | Delete
/**
[68723] Fix | Delete
* @callback ScaleToolPropsOnChange
[68724] Fix | Delete
* @param {string} nextValue New scale value.
[68725] Fix | Delete
* @return {void}
[68726] Fix | Delete
*/
[68727] Fix | Delete
[68728] Fix | Delete
/**
[68729] Fix | Delete
* @typedef {Object} ScaleToolProps
[68730] Fix | Delete
* @property {string} [panelId] ID of the panel that contains the controls.
[68731] Fix | Delete
* @property {string} [value] Current scale value.
[68732] Fix | Delete
* @property {ScaleToolPropsOnChange} [onChange] Callback to update the scale value.
[68733] Fix | Delete
* @property {SelectControlProps[]} [options] Scale options.
[68734] Fix | Delete
* @property {string} [defaultValue] Default scale value.
[68735] Fix | Delete
* @property {boolean} [showControl=true] Whether to show the control.
[68736] Fix | Delete
* @property {boolean} [isShownByDefault=true] Whether the tool panel is shown by default.
[68737] Fix | Delete
*/
[68738] Fix | Delete
[68739] Fix | Delete
/**
[68740] Fix | Delete
* A tool to select the CSS object-fit property for the image.
[68741] Fix | Delete
*
[68742] Fix | Delete
* @param {ScaleToolProps} props
[68743] Fix | Delete
*
[68744] Fix | Delete
* @return {import('react').ReactElement} The scale tool.
[68745] Fix | Delete
*/
[68746] Fix | Delete
function ScaleTool({
[68747] Fix | Delete
panelId,
[68748] Fix | Delete
value,
[68749] Fix | Delete
onChange,
[68750] Fix | Delete
options = DEFAULT_SCALE_OPTIONS,
[68751] Fix | Delete
defaultValue = DEFAULT_SCALE_OPTIONS[0].value,
[68752] Fix | Delete
isShownByDefault = true
[68753] Fix | Delete
}) {
[68754] Fix | Delete
// Match the CSS default so if the value is used directly in CSS it will look correct in the control.
[68755] Fix | Delete
const displayValue = value !== null && value !== void 0 ? value : 'fill';
[68756] Fix | Delete
const scaleHelp = (0,external_wp_element_namespaceObject.useMemo)(() => {
[68757] Fix | Delete
return options.reduce((acc, option) => {
[68758] Fix | Delete
acc[option.value] = option.help;
[68759] Fix | Delete
return acc;
[68760] Fix | Delete
}, {});
[68761] Fix | Delete
}, [options]);
[68762] Fix | Delete
return /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToolsPanelItem, {
[68763] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Scale'),
[68764] Fix | Delete
isShownByDefault: isShownByDefault,
[68765] Fix | Delete
hasValue: () => displayValue !== defaultValue,
[68766] Fix | Delete
onDeselect: () => onChange(defaultValue),
[68767] Fix | Delete
panelId: panelId,
[68768] Fix | Delete
children: /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControl, {
[68769] Fix | Delete
label: (0,external_wp_i18n_namespaceObject.__)('Scale'),
[68770] Fix | Delete
isBlock: true,
[68771] Fix | Delete
help: scaleHelp[displayValue],
[68772] Fix | Delete
value: displayValue,
[68773] Fix | Delete
onChange: onChange,
[68774] Fix | Delete
size: "__unstable-large",
[68775] Fix | Delete
children: options.map(option => /*#__PURE__*/(0,external_ReactJSXRuntime_namespaceObject.jsx)(external_wp_components_namespaceObject.__experimentalToggleGroupControlOption, {
[68776] Fix | Delete
...option
[68777] Fix | Delete
}, option.value))
[68778] Fix | Delete
})
[68779] Fix | Delete
});
[68780] Fix | Delete
}
[68781] Fix | Delete
[68782] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/extends.js
[68783] Fix | Delete
function extends_extends() {
[68784] Fix | Delete
extends_extends = Object.assign ? Object.assign.bind() : function (target) {
[68785] Fix | Delete
for (var i = 1; i < arguments.length; i++) {
[68786] Fix | Delete
var source = arguments[i];
[68787] Fix | Delete
for (var key in source) {
[68788] Fix | Delete
if (Object.prototype.hasOwnProperty.call(source, key)) {
[68789] Fix | Delete
target[key] = source[key];
[68790] Fix | Delete
}
[68791] Fix | Delete
}
[68792] Fix | Delete
}
[68793] Fix | Delete
return target;
[68794] Fix | Delete
};
[68795] Fix | Delete
return extends_extends.apply(this, arguments);
[68796] Fix | Delete
}
[68797] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@emotion/styled/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
[68798] Fix | Delete
function memoize(fn) {
[68799] Fix | Delete
var cache = Object.create(null);
[68800] Fix | Delete
return function (arg) {
[68801] Fix | Delete
if (cache[arg] === undefined) cache[arg] = fn(arg);
[68802] Fix | Delete
return cache[arg];
[68803] Fix | Delete
};
[68804] Fix | Delete
}
[68805] Fix | Delete
[68806] Fix | Delete
[68807] Fix | Delete
[68808] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@emotion/styled/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
[68809] Fix | Delete
[68810] Fix | Delete
[68811] Fix | Delete
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
[68812] Fix | Delete
[68813] Fix | Delete
var isPropValid = /* #__PURE__ */memoize(function (prop) {
[68814] Fix | Delete
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
[68815] Fix | Delete
/* o */
[68816] Fix | Delete
&& prop.charCodeAt(1) === 110
[68817] Fix | Delete
/* n */
[68818] Fix | Delete
&& prop.charCodeAt(2) < 91;
[68819] Fix | Delete
}
[68820] Fix | Delete
/* Z+1 */
[68821] Fix | Delete
);
[68822] Fix | Delete
[68823] Fix | Delete
[68824] Fix | Delete
[68825] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.js
[68826] Fix | Delete
/*
[68827] Fix | Delete
[68828] Fix | Delete
Based off glamor's StyleSheet, thanks Sunil ❤️
[68829] Fix | Delete
[68830] Fix | Delete
high performance StyleSheet for css-in-js systems
[68831] Fix | Delete
[68832] Fix | Delete
- uses multiple style tags behind the scenes for millions of rules
[68833] Fix | Delete
- uses `insertRule` for appending in production for *much* faster performance
[68834] Fix | Delete
[68835] Fix | Delete
// usage
[68836] Fix | Delete
[68837] Fix | Delete
import { StyleSheet } from '@emotion/sheet'
[68838] Fix | Delete
[68839] Fix | Delete
let styleSheet = new StyleSheet({ key: '', container: document.head })
[68840] Fix | Delete
[68841] Fix | Delete
styleSheet.insert('#box { border: 1px solid red; }')
[68842] Fix | Delete
- appends a css rule into the stylesheet
[68843] Fix | Delete
[68844] Fix | Delete
styleSheet.flush()
[68845] Fix | Delete
- empties the stylesheet of all its contents
[68846] Fix | Delete
[68847] Fix | Delete
*/
[68848] Fix | Delete
// $FlowFixMe
[68849] Fix | Delete
function sheetForTag(tag) {
[68850] Fix | Delete
if (tag.sheet) {
[68851] Fix | Delete
// $FlowFixMe
[68852] Fix | Delete
return tag.sheet;
[68853] Fix | Delete
} // this weirdness brought to you by firefox
[68854] Fix | Delete
[68855] Fix | Delete
/* istanbul ignore next */
[68856] Fix | Delete
[68857] Fix | Delete
[68858] Fix | Delete
for (var i = 0; i < document.styleSheets.length; i++) {
[68859] Fix | Delete
if (document.styleSheets[i].ownerNode === tag) {
[68860] Fix | Delete
// $FlowFixMe
[68861] Fix | Delete
return document.styleSheets[i];
[68862] Fix | Delete
}
[68863] Fix | Delete
}
[68864] Fix | Delete
}
[68865] Fix | Delete
[68866] Fix | Delete
function createStyleElement(options) {
[68867] Fix | Delete
var tag = document.createElement('style');
[68868] Fix | Delete
tag.setAttribute('data-emotion', options.key);
[68869] Fix | Delete
[68870] Fix | Delete
if (options.nonce !== undefined) {
[68871] Fix | Delete
tag.setAttribute('nonce', options.nonce);
[68872] Fix | Delete
}
[68873] Fix | Delete
[68874] Fix | Delete
tag.appendChild(document.createTextNode(''));
[68875] Fix | Delete
tag.setAttribute('data-s', '');
[68876] Fix | Delete
return tag;
[68877] Fix | Delete
}
[68878] Fix | Delete
[68879] Fix | Delete
var StyleSheet = /*#__PURE__*/function () {
[68880] Fix | Delete
// Using Node instead of HTMLElement since container may be a ShadowRoot
[68881] Fix | Delete
function StyleSheet(options) {
[68882] Fix | Delete
var _this = this;
[68883] Fix | Delete
[68884] Fix | Delete
this._insertTag = function (tag) {
[68885] Fix | Delete
var before;
[68886] Fix | Delete
[68887] Fix | Delete
if (_this.tags.length === 0) {
[68888] Fix | Delete
if (_this.insertionPoint) {
[68889] Fix | Delete
before = _this.insertionPoint.nextSibling;
[68890] Fix | Delete
} else if (_this.prepend) {
[68891] Fix | Delete
before = _this.container.firstChild;
[68892] Fix | Delete
} else {
[68893] Fix | Delete
before = _this.before;
[68894] Fix | Delete
}
[68895] Fix | Delete
} else {
[68896] Fix | Delete
before = _this.tags[_this.tags.length - 1].nextSibling;
[68897] Fix | Delete
}
[68898] Fix | Delete
[68899] Fix | Delete
_this.container.insertBefore(tag, before);
[68900] Fix | Delete
[68901] Fix | Delete
_this.tags.push(tag);
[68902] Fix | Delete
};
[68903] Fix | Delete
[68904] Fix | Delete
this.isSpeedy = options.speedy === undefined ? "production" === 'production' : options.speedy;
[68905] Fix | Delete
this.tags = [];
[68906] Fix | Delete
this.ctr = 0;
[68907] Fix | Delete
this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
[68908] Fix | Delete
[68909] Fix | Delete
this.key = options.key;
[68910] Fix | Delete
this.container = options.container;
[68911] Fix | Delete
this.prepend = options.prepend;
[68912] Fix | Delete
this.insertionPoint = options.insertionPoint;
[68913] Fix | Delete
this.before = null;
[68914] Fix | Delete
}
[68915] Fix | Delete
[68916] Fix | Delete
var _proto = StyleSheet.prototype;
[68917] Fix | Delete
[68918] Fix | Delete
_proto.hydrate = function hydrate(nodes) {
[68919] Fix | Delete
nodes.forEach(this._insertTag);
[68920] Fix | Delete
};
[68921] Fix | Delete
[68922] Fix | Delete
_proto.insert = function insert(rule) {
[68923] Fix | Delete
// the max length is how many rules we have per style tag, it's 65000 in speedy mode
[68924] Fix | Delete
// it's 1 in dev because we insert source maps that map a single rule to a location
[68925] Fix | Delete
// and you can only have one source map per style tag
[68926] Fix | Delete
if (this.ctr % (this.isSpeedy ? 65000 : 1) === 0) {
[68927] Fix | Delete
this._insertTag(createStyleElement(this));
[68928] Fix | Delete
}
[68929] Fix | Delete
[68930] Fix | Delete
var tag = this.tags[this.tags.length - 1];
[68931] Fix | Delete
[68932] Fix | Delete
if (false) { var isImportRule; }
[68933] Fix | Delete
[68934] Fix | Delete
if (this.isSpeedy) {
[68935] Fix | Delete
var sheet = sheetForTag(tag);
[68936] Fix | Delete
[68937] Fix | Delete
try {
[68938] Fix | Delete
// this is the ultrafast version, works across browsers
[68939] Fix | Delete
// the big drawback is that the css won't be editable in devtools
[68940] Fix | Delete
sheet.insertRule(rule, sheet.cssRules.length);
[68941] Fix | Delete
} catch (e) {
[68942] Fix | Delete
if (false) {}
[68943] Fix | Delete
}
[68944] Fix | Delete
} else {
[68945] Fix | Delete
tag.appendChild(document.createTextNode(rule));
[68946] Fix | Delete
}
[68947] Fix | Delete
[68948] Fix | Delete
this.ctr++;
[68949] Fix | Delete
};
[68950] Fix | Delete
[68951] Fix | Delete
_proto.flush = function flush() {
[68952] Fix | Delete
// $FlowFixMe
[68953] Fix | Delete
this.tags.forEach(function (tag) {
[68954] Fix | Delete
return tag.parentNode && tag.parentNode.removeChild(tag);
[68955] Fix | Delete
});
[68956] Fix | Delete
this.tags = [];
[68957] Fix | Delete
this.ctr = 0;
[68958] Fix | Delete
[68959] Fix | Delete
if (false) {}
[68960] Fix | Delete
};
[68961] Fix | Delete
[68962] Fix | Delete
return StyleSheet;
[68963] Fix | Delete
}();
[68964] Fix | Delete
[68965] Fix | Delete
[68966] Fix | Delete
[68967] Fix | Delete
;// CONCATENATED MODULE: ./node_modules/stylis/src/Utility.js
[68968] Fix | Delete
/**
[68969] Fix | Delete
* @param {number}
[68970] Fix | Delete
* @return {number}
[68971] Fix | Delete
*/
[68972] Fix | Delete
var abs = Math.abs
[68973] Fix | Delete
[68974] Fix | Delete
/**
[68975] Fix | Delete
* @param {number}
[68976] Fix | Delete
* @return {string}
[68977] Fix | Delete
*/
[68978] Fix | Delete
var Utility_from = String.fromCharCode
[68979] Fix | Delete
[68980] Fix | Delete
/**
[68981] Fix | Delete
* @param {object}
[68982] Fix | Delete
* @return {object}
[68983] Fix | Delete
*/
[68984] Fix | Delete
var Utility_assign = Object.assign
[68985] Fix | Delete
[68986] Fix | Delete
/**
[68987] Fix | Delete
* @param {string} value
[68988] Fix | Delete
* @param {number} length
[68989] Fix | Delete
* @return {number}
[68990] Fix | Delete
*/
[68991] Fix | Delete
function hash (value, length) {
[68992] Fix | Delete
return Utility_charat(value, 0) ^ 45 ? (((((((length << 2) ^ Utility_charat(value, 0)) << 2) ^ Utility_charat(value, 1)) << 2) ^ Utility_charat(value, 2)) << 2) ^ Utility_charat(value, 3) : 0
[68993] Fix | Delete
}
[68994] Fix | Delete
[68995] Fix | Delete
/**
[68996] Fix | Delete
* @param {string} value
[68997] Fix | Delete
* @return {string}
[68998] Fix | Delete
*/
[68999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function