@automattic/charts 1.10.1 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ import { Annotation, CircleSubject, Connector, HtmlLabel, Label, LineSubject } f
23
23
  import { PatternCircles, PatternHexagons, PatternLines, PatternWaves } from "@visx/pattern";
24
24
  import { Chart } from "react-google-charts";
25
25
  import DOMPurify from "dompurify";
26
- import _extends from "@babel/runtime/helpers/esm/extends";
26
+ import "@babel/runtime/helpers/esm/extends";
27
27
  import "@babel/runtime/helpers/extends";
28
28
  import { Pie } from "@visx/shape";
29
29
  //#region \0rolldown/runtime.js
@@ -2907,27 +2907,14 @@ const guessOptimalNumTicks = (data, chartWidth, tickFormatter) => {
2907
2907
  };
2908
2908
  //#endregion
2909
2909
  //#region src/charts/private/with-responsive/with-responsive.module.scss
2910
- var with_responsive_module_default = { "container": "a8ccharts-sP1gHa-container" };
2910
+ var with_responsive_module_default = {
2911
+ "container": "a8ccharts-sP1gHa-container",
2912
+ "content": "a8ccharts-sP1gHa-content",
2913
+ "isContained": "a8ccharts-sP1gHa-isContained"
2914
+ };
2911
2915
  //#endregion
2912
2916
  //#region src/charts/private/with-responsive/with-responsive.tsx
2913
- const useResponsiveDimensions = ({ resizeDebounceTime = 300, maxWidth = 1200, aspectRatio }) => {
2914
- const { parentRef, width: parentWidth, height: parentHeight } = useParentSize({
2915
- debounceTime: resizeDebounceTime,
2916
- enableDebounceLeadingCall: true
2917
- });
2918
- const containerWidth = parentWidth > 0 ? Math.min(parentWidth, maxWidth) : 0;
2919
- return {
2920
- parentRef,
2921
- width: containerWidth,
2922
- height: aspectRatio !== void 0 ? containerWidth * aspectRatio : parentHeight,
2923
- /**
2924
- * Whether an aspectRatio was provided. Used to determine container
2925
- * height styling: 'auto' when true (height derived from width),
2926
- * '100%' when false (fill parent container).
2927
- */
2928
- hasAspectRatio: aspectRatio !== void 0
2929
- };
2930
- };
2917
+ const useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect;
2931
2918
  /**
2932
2919
  * A higher-order component that provides responsive dimensions
2933
2920
  * to the wrapped chart component using useParentSize from `@visx/responsive`.
@@ -2937,32 +2924,67 @@ const useResponsiveDimensions = ({ resizeDebounceTime = 300, maxWidth = 1200, as
2937
2924
  */
2938
2925
  function withResponsive(WrappedComponent) {
2939
2926
  return function ResponsiveChart({ resizeDebounceTime = 300, maxWidth = 1200, aspectRatio, size, width, height, ...chartProps }) {
2940
- const { parentRef, width: measuredWidth, height: measuredHeight, hasAspectRatio } = useResponsiveDimensions({
2941
- resizeDebounceTime,
2942
- maxWidth,
2943
- aspectRatio
2927
+ const { parentRef, width: parentWidth, height: parentHeight } = useParentSize({
2928
+ debounceTime: resizeDebounceTime,
2929
+ enableDebounceLeadingCall: true
2930
+ });
2931
+ const hasAspectRatio = aspectRatio !== void 0 && aspectRatio > 0;
2932
+ const wrapperRef = useRef(null);
2933
+ const setWrapperRef = useCallback((node) => {
2934
+ wrapperRef.current = node;
2935
+ if (typeof parentRef === "function") parentRef(node);
2936
+ else if (parentRef) parentRef.current = node;
2937
+ }, [parentRef]);
2938
+ const [containedHeight, setContainedHeight] = useState(null);
2939
+ const availableWidth = parentWidth > 0 ? Math.min(parentWidth, width === void 0 ? maxWidth : Infinity) : width ?? 0;
2940
+ let boxWidth = availableWidth;
2941
+ let boxHeight;
2942
+ if (hasAspectRatio) {
2943
+ const derivedHeight = availableWidth * aspectRatio;
2944
+ if (containedHeight !== null && derivedHeight > containedHeight) {
2945
+ boxHeight = containedHeight;
2946
+ boxWidth = boxHeight / aspectRatio;
2947
+ } else boxHeight = derivedHeight;
2948
+ } else boxHeight = parentHeight > 0 ? parentHeight : height ?? 0;
2949
+ useIsomorphicLayoutEffect(() => {
2950
+ if (!hasAspectRatio) {
2951
+ if (containedHeight !== null) setContainedHeight(null);
2952
+ return;
2953
+ }
2954
+ const available = wrapperRef.current?.clientHeight ?? 0;
2955
+ const derivedHeight = availableWidth * aspectRatio;
2956
+ if (containedHeight === null) {
2957
+ if (available > 0 && derivedHeight > available + 1) setContainedHeight(available);
2958
+ } else if (available >= derivedHeight - 1) setContainedHeight(null);
2959
+ else if (Math.abs(available - containedHeight) > 1) setContainedHeight(available);
2960
+ }, [
2961
+ hasAspectRatio,
2962
+ availableWidth,
2963
+ aspectRatio,
2964
+ containedHeight,
2965
+ parentHeight
2966
+ ]);
2967
+ const wrappedComponent = /* @__PURE__ */ jsx(WrappedComponent, {
2968
+ width: boxWidth,
2969
+ height: boxHeight,
2970
+ size,
2971
+ ...chartProps
2944
2972
  });
2945
- const effectiveWidth = measuredWidth || width || 0;
2946
- const effectiveHeight = measuredHeight || height || 0;
2947
- const defaultHeight = hasAspectRatio ? "auto" : "100%";
2948
- const aspectRatioStyle = hasAspectRatio && aspectRatio ? {
2949
- aspectRatio: `${1 / aspectRatio}`,
2950
- maxWidth: width === void 0 ? maxWidth : void 0
2951
- } : null;
2952
2973
  return /* @__PURE__ */ jsx("div", {
2953
- ref: parentRef,
2954
- className: with_responsive_module_default.container,
2974
+ ref: setWrapperRef,
2975
+ className: clsx(with_responsive_module_default.container, hasAspectRatio && with_responsive_module_default.isContained),
2955
2976
  style: {
2956
- width: width ?? "100%",
2957
- height: height ?? defaultHeight,
2958
- ...aspectRatioStyle
2977
+ ...width !== void 0 ? { width } : null,
2978
+ ...height !== void 0 ? { height } : null
2959
2979
  },
2960
- children: /* @__PURE__ */ jsx(WrappedComponent, {
2961
- width: effectiveWidth,
2962
- height: effectiveHeight,
2963
- size,
2964
- ...chartProps
2965
- })
2980
+ children: hasAspectRatio ? /* @__PURE__ */ jsx("div", {
2981
+ className: with_responsive_module_default.content,
2982
+ style: {
2983
+ width: boxWidth,
2984
+ height: boxHeight
2985
+ },
2986
+ children: wrappedComponent
2987
+ }) : wrappedComponent
2966
2988
  });
2967
2989
  };
2968
2990
  }
@@ -5954,6 +5976,7 @@ var heatmap_chart_module_default = {
5954
5976
  "heatmap-chart": "a8ccharts-O3YMOW-heatmap-chart",
5955
5977
  "heatmap-chart__cell": "a8ccharts-O3YMOW-heatmap-chart__cell",
5956
5978
  "heatmap-chart__cell--filled": "a8ccharts-O3YMOW-heatmap-chart__cell--filled",
5979
+ "heatmap-chart__cell--hidden": "a8ccharts-O3YMOW-heatmap-chart__cell--hidden",
5957
5980
  "heatmap-chart__cell--selected": "a8ccharts-O3YMOW-heatmap-chart__cell--selected",
5958
5981
  "heatmap-chart__cell--strong": "a8ccharts-O3YMOW-heatmap-chart__cell--strong",
5959
5982
  "heatmap-chart__cell-value": "a8ccharts-O3YMOW-heatmap-chart__cell-value",
@@ -5961,9 +5984,11 @@ var heatmap_chart_module_default = {
5961
5984
  "heatmap-chart__empty": "a8ccharts-O3YMOW-heatmap-chart__empty",
5962
5985
  "heatmap-chart__grid": "a8ccharts-O3YMOW-heatmap-chart__grid",
5963
5986
  "heatmap-chart__grid--compact": "a8ccharts-O3YMOW-heatmap-chart__grid--compact",
5987
+ "heatmap-chart__grid--height-capped": "a8ccharts-O3YMOW-heatmap-chart__grid--height-capped",
5964
5988
  "heatmap-chart__legend-swatch": "a8ccharts-O3YMOW-heatmap-chart__legend-swatch",
5965
5989
  "heatmap-chart__row": "a8ccharts-O3YMOW-heatmap-chart__row",
5966
- "heatmap-chart__row-label": "a8ccharts-O3YMOW-heatmap-chart__row-label"
5990
+ "heatmap-chart__row-label": "a8ccharts-O3YMOW-heatmap-chart__row-label",
5991
+ "heatmap-chart--height-capped": "a8ccharts-O3YMOW-heatmap-chart--height-capped"
5967
5992
  };
5968
5993
  //#endregion
5969
5994
  //#region src/charts/heatmap-chart/private/use-heatmap-colors.ts
@@ -5985,14 +6010,18 @@ const getValueExtent = (data) => {
5985
6010
  return [min, max];
5986
6011
  };
5987
6012
  /**
5988
- * Normalize a value to 0–1 within the extent. A flat extent (min === max) maps to 1.
6013
+ * Normalize a value to 0–1 within the extent. A flat extent (min === max)
6014
+ * maps to 1 — every cell is equally the "highest" — except an all-zero
6015
+ * extent, which maps to 0 so a no-activity grid renders at the scale's
6016
+ * bottom instead of full intensity.
6017
+ *
5989
6018
  * @param value - The value to normalize
5990
6019
  * @param extent - Tuple of [min, max] values for the normalization range
5991
6020
  * @return Normalized value between 0 and 1
5992
6021
  */
5993
6022
  const getNormalizedValue = (value, extent) => {
5994
6023
  const [min, max] = extent;
5995
- if (min === max) return 1;
6024
+ if (min === max) return max === 0 ? 0 : 1;
5996
6025
  return Math.min(1, Math.max(0, (value - min) / (max - min)));
5997
6026
  };
5998
6027
  //#endregion
@@ -6013,6 +6042,7 @@ const toDate = (point) => {
6013
6042
  };
6014
6043
  const buildCalendarHeatmapData = (series, options = {}) => {
6015
6044
  const weekStartsOn = options.weekStartsOn ?? 1;
6045
+ const hideOutOfRangeDays = options.hideOutOfRangeDays ?? true;
6016
6046
  const entries = series.map((point) => ({
6017
6047
  date: toDate(point),
6018
6048
  value: point.value
@@ -6031,6 +6061,8 @@ const buildCalendarHeatmapData = (series, options = {}) => {
6031
6061
  }
6032
6062
  const gridStart = startOfWeek(minDate, { weekStartsOn });
6033
6063
  const weekCount = differenceInCalendarWeeks(maxDate, gridStart, { weekStartsOn }) + 1;
6064
+ const minDayKey = format(minDate, "yyyy-MM-dd");
6065
+ const maxDayKey = format(maxDate, "yyyy-MM-dd");
6034
6066
  const rowLabels = Array.from({ length: 7 }, (_, row) => LABELLED_ROWS.includes(row) ? format(addDays(gridStart, row), "EEE") : "");
6035
6067
  const MIN_FIRST_MONTH_WEEKS = 2;
6036
6068
  const firstMonth = gridStart.getMonth();
@@ -6048,10 +6080,12 @@ const buildCalendarHeatmapData = (series, options = {}) => {
6048
6080
  for (let row = 0; row < 7; row++) {
6049
6081
  const day = addDays(gridStart, week * 7 + row);
6050
6082
  const key = format(day, "yyyy-MM-dd");
6051
- cells.push({
6083
+ const cell = {
6052
6084
  label: format(day, "EEE, MMM d, yyyy"),
6053
6085
  value: valueByDay.has(key) ? valueByDay.get(key) : null
6054
- });
6086
+ };
6087
+ if (hideOutOfRangeDays && (key < minDayKey || key > maxDayKey)) cell.hidden = true;
6088
+ cells.push(cell);
6055
6089
  }
6056
6090
  data.push({
6057
6091
  label,
@@ -6112,7 +6146,7 @@ const HeatmapLegend = ({ steps = 5, lessLabel, moreLabel }) => {
6112
6146
  //#endregion
6113
6147
  //#region src/charts/heatmap-chart/heatmap-chart.tsx
6114
6148
  const CELL_MIX_FLOOR = .15;
6115
- const HeatmapChartInternal = ({ data, chartId: providedChartId, width = 0, height = 0, className, compact = false, showValues, rowLabels = [], primaryColor, gap = "md", withTooltips = false, renderTooltip, children }) => {
6149
+ const HeatmapChartInternal = ({ data, chartId: providedChartId, width = 0, height = 0, className, compact = false, showValues, maxCellWidth, maxCellHeight, minCellWidth, minCellHeight, rowLabels = [], primaryColor, gap = "md", withTooltips = false, renderTooltip, children }) => {
6116
6150
  const chartId = useChartId(providedChartId);
6117
6151
  const { getElementStyles, resolveThemeColor, theme } = useGlobalChartsContext();
6118
6152
  const { heatmapChart: heatmapChartSettings } = theme;
@@ -6156,6 +6190,7 @@ const HeatmapChartInternal = ({ data, chartId: providedChartId, width = 0, heigh
6156
6190
  setSelectedIndex(void 0);
6157
6191
  hideTooltip();
6158
6192
  }, [hideTooltip]);
6193
+ const isCellHidden = useCallback((col, row) => data[col]?.data[row]?.hidden === true, [data]);
6159
6194
  const onChartKeyDown = useCallback((event) => {
6160
6195
  if (![
6161
6196
  "ArrowLeft",
@@ -6172,21 +6207,32 @@ const HeatmapChartInternal = ({ data, chartId: providedChartId, width = 0, heigh
6172
6207
  }
6173
6208
  event.preventDefault();
6174
6209
  if (selectedIndex === void 0) {
6175
- setSelectedIndex(0);
6210
+ for (let index = 0; index < columns * rows; index++) if (!isCellHidden(Math.floor(index / rows), index % rows)) {
6211
+ setSelectedIndex(index);
6212
+ return;
6213
+ }
6176
6214
  return;
6177
6215
  }
6216
+ let stepCol = 0;
6217
+ let stepRow = 0;
6218
+ if (event.key === "ArrowRight") stepCol = 1;
6219
+ else if (event.key === "ArrowLeft") stepCol = -1;
6220
+ else if (event.key === "ArrowDown") stepRow = 1;
6221
+ else if (event.key === "ArrowUp") stepRow = -1;
6178
6222
  let col = Math.floor(selectedIndex / rows);
6179
6223
  let row = selectedIndex % rows;
6180
- if (event.key === "ArrowRight") col = Math.min(col + 1, columns - 1);
6181
- else if (event.key === "ArrowLeft") col = Math.max(col - 1, 0);
6182
- else if (event.key === "ArrowDown") row = Math.min(row + 1, rows - 1);
6183
- else if (event.key === "ArrowUp") row = Math.max(row - 1, 0);
6224
+ do {
6225
+ col += stepCol;
6226
+ row += stepRow;
6227
+ } while (col >= 0 && col < columns && row >= 0 && row < rows && isCellHidden(col, row));
6228
+ if (col < 0 || col >= columns || row < 0 || row >= rows) return;
6184
6229
  setSelectedIndex(col * rows + row);
6185
6230
  }, [
6186
6231
  rows,
6187
6232
  columns,
6188
6233
  selectedIndex,
6189
- hideTooltip
6234
+ hideTooltip,
6235
+ isCellHidden
6190
6236
  ]);
6191
6237
  const handleCellMouseMove = useCallback((event) => {
6192
6238
  if (!withTooltips) return;
@@ -6242,18 +6288,20 @@ const HeatmapChartInternal = ({ data, chartId: providedChartId, width = 0, heigh
6242
6288
  children: __("No data available", "jetpack-charts")
6243
6289
  })
6244
6290
  });
6245
- const trackSize = compact ? "var(--heatmap-cell-size)" : "minmax(0, 1fr)";
6291
+ const columnTrack = compact ? "var(--heatmap-cell-size)" : `minmax(${minCellWidth ?? 0}px, ${maxCellWidth ? `${maxCellWidth}px` : "1fr"})`;
6292
+ const rowTrack = compact ? "var(--heatmap-cell-size)" : `minmax(${minCellHeight ?? 0}px, ${maxCellHeight ? `${maxCellHeight}px` : "1fr"})`;
6246
6293
  const gridStyle = {
6247
6294
  "--heatmap-primary": primaryColorHex,
6248
6295
  "--heatmap-bg": theme.backgroundColor,
6249
- gridTemplateColumns: `auto repeat(${columns}, ${trackSize})`,
6250
- gridTemplateRows: `auto repeat(${rows}, ${trackSize})`
6296
+ gridTemplateColumns: `auto repeat(${columns}, ${columnTrack})`,
6297
+ gridTemplateRows: `auto repeat(${rows}, ${rowTrack})`
6251
6298
  };
6252
6299
  if (compact) {
6253
6300
  gridStyle["--heatmap-cell-gap"] = `${compactCellGap}px`;
6254
6301
  gridStyle["--heatmap-cell-size"] = `${compactCellSize}px`;
6255
6302
  }
6256
6303
  const activeDescendant = selectedIndex !== void 0 ? `${chartId}-cell-${Math.floor(selectedIndex / rows)}-${selectedIndex % rows}` : void 0;
6304
+ const heightCapped = !compact && Boolean(maxCellHeight);
6257
6305
  return /* @__PURE__ */ jsx(HeatmapContext.Provider, {
6258
6306
  value: heatmapContext,
6259
6307
  children: /* @__PURE__ */ jsx(SingleChartContext.Provider, {
@@ -6263,7 +6311,7 @@ const HeatmapChartInternal = ({ data, chartId: providedChartId, width = 0, heigh
6263
6311
  legendChildren: [],
6264
6312
  trailingContent: nonLegendChildren,
6265
6313
  gap,
6266
- className: clsx("heatmap-chart", heatmap_chart_module_default["heatmap-chart"], className),
6314
+ className: clsx("heatmap-chart", heatmap_chart_module_default["heatmap-chart"], className, { [heatmap_chart_module_default["heatmap-chart--height-capped"]]: heightCapped }),
6267
6315
  style: {
6268
6316
  width: width || void 0,
6269
6317
  height: height || void 0
@@ -6279,7 +6327,10 @@ const HeatmapChartInternal = ({ data, chartId: providedChartId, width = 0, heigh
6279
6327
  tabIndex: 0,
6280
6328
  onBlur: onChartBlur,
6281
6329
  onKeyDown: onChartKeyDown,
6282
- className: clsx(heatmap_chart_module_default["heatmap-chart__grid"], { [heatmap_chart_module_default["heatmap-chart__grid--compact"]]: compact }),
6330
+ className: clsx(heatmap_chart_module_default["heatmap-chart__grid"], {
6331
+ [heatmap_chart_module_default["heatmap-chart__grid--compact"]]: compact,
6332
+ [heatmap_chart_module_default["heatmap-chart__grid--height-capped"]]: heightCapped
6333
+ }),
6283
6334
  style: gridStyle,
6284
6335
  children: [/* @__PURE__ */ jsxs("div", {
6285
6336
  role: "row",
@@ -6300,7 +6351,12 @@ const HeatmapChartInternal = ({ data, chartId: providedChartId, width = 0, heigh
6300
6351
  className: heatmap_chart_module_default["heatmap-chart__row-label"],
6301
6352
  children: labelVisible ? rowLabels[rowIndex] ?? "" : ""
6302
6353
  }), data.map((column, columnIndex) => {
6303
- const value = column.data[rowIndex]?.value ?? null;
6354
+ const cell = column.data[rowIndex];
6355
+ if (cell?.hidden) return /* @__PURE__ */ jsx("div", {
6356
+ "aria-hidden": "true",
6357
+ className: clsx(heatmap_chart_module_default["heatmap-chart__cell"], heatmap_chart_module_default["heatmap-chart__cell--hidden"])
6358
+ }, `cell-${columnIndex}-${rowIndex}`);
6359
+ const value = cell?.value ?? null;
6304
6360
  const present = isPresent(value);
6305
6361
  const normalized = present ? getNormalizedValue(value, extent) : 0;
6306
6362
  const flatIndex = columnIndex * rows + rowIndex;
@@ -6357,7 +6413,7 @@ const HeatmapChartResponsiveInner = (props) => /* @__PURE__ */ jsx(HeatmapChartW
6357
6413
  HeatmapChartResponsiveInner.displayName = "HeatmapChart";
6358
6414
  const HeatmapChartResponsive = attachSubComponents(withResponsive(HeatmapChartResponsiveInner), { Legend: HeatmapLegend });
6359
6415
  //#endregion
6360
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/hooks/use-update-effect.mjs
6416
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/hooks/use-update-effect.mjs
6361
6417
  function useUpdateEffect(effect, deps) {
6362
6418
  const mountedRef = useRef$1(false);
6363
6419
  useEffect$1(() => {
@@ -7631,7 +7687,7 @@ var unitlessKeys = {
7631
7687
  };
7632
7688
  //#endregion
7633
7689
  //#region ../../../node_modules/.pnpm/@emotion+serialize@1.3.3/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js
7634
- var isDevelopment$2 = false;
7690
+ var isDevelopment$1 = false;
7635
7691
  var hyphenateRegex = /[A-Z]|^ms/g;
7636
7692
  var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
7637
7693
  var isCustomProperty = function isCustomProperty(property) {
@@ -7713,7 +7769,7 @@ function createStringFromObject(mergedProps, registered, obj) {
7713
7769
  if (registered != null && registered[asString] !== void 0) string += key + "{" + registered[asString] + "}";
7714
7770
  else if (isProcessableValue(asString)) string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
7715
7771
  } else {
7716
- if (key === "NO_COMPONENT_SELECTOR" && isDevelopment$2) throw new Error(noComponentSelectorMessage);
7772
+ if (key === "NO_COMPONENT_SELECTOR" && isDevelopment$1) throw new Error(noComponentSelectorMessage);
7717
7773
  if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
7718
7774
  for (var _i = 0; _i < value.length; _i++) if (isProcessableValue(value[_i])) string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
7719
7775
  } else {
@@ -7783,7 +7839,7 @@ var createEmotionProps = function createEmotionProps(type, props) {
7783
7839
  newProps[typePropName] = type;
7784
7840
  return newProps;
7785
7841
  };
7786
- var Insertion$1 = function Insertion(_ref) {
7842
+ var Insertion = function Insertion(_ref) {
7787
7843
  var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
7788
7844
  registerStyles(cache, serialized, isStringTag);
7789
7845
  useInsertionEffectAlwaysWithSyncFallback(function() {
@@ -7805,7 +7861,7 @@ var Emotion$1 = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
7805
7861
  for (var _key2 in props) if (hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && true) newProps[_key2] = props[_key2];
7806
7862
  newProps.className = className;
7807
7863
  if (ref) newProps.ref = ref;
7808
- return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(Insertion$1, {
7864
+ return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(Insertion, {
7809
7865
  cache,
7810
7866
  serialized,
7811
7867
  isStringTag: typeof WrappedComponent === "string"
@@ -7930,7 +7986,7 @@ _createEmotion.css;
7930
7986
  _createEmotion.sheet;
7931
7987
  _createEmotion.cache;
7932
7988
  //#endregion
7933
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/hooks/use-cx.mjs
7989
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/hooks/use-cx.mjs
7934
7990
  var isSerializedStyles = (o) => typeof o !== "undefined" && o !== null && ["name", "styles"].every((p) => typeof o[p] !== "undefined");
7935
7991
  var useCx = () => {
7936
7992
  const cache = __unsafe_useEmotionCache();
@@ -8037,7 +8093,7 @@ function memize(fn, options) {
8037
8093
  return memoized;
8038
8094
  }
8039
8095
  //#endregion
8040
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/colors-values.mjs
8096
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/colors-values.mjs
8041
8097
  var white = "#fff";
8042
8098
  var GRAY = {
8043
8099
  900: "#1e1e1e",
@@ -8116,7 +8172,7 @@ var COLORS = Object.freeze({
8116
8172
  ui: UI
8117
8173
  });
8118
8174
  //#endregion
8119
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/config-values.mjs
8175
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/config-values.mjs
8120
8176
  var CONTROL_HEIGHT = "36px";
8121
8177
  var CONTROL_PROPS = {
8122
8178
  controlPaddingX: 12,
@@ -8158,20 +8214,13 @@ var config_values_default = Object.assign({}, CONTROL_PROPS, {
8158
8214
  fontSizeXSmall: "calc(0.75 * 13px)",
8159
8215
  fontLineHeightBase: "1.4",
8160
8216
  fontWeight: "normal",
8161
- fontWeightMedium: "499",
8162
- fontWeightHeading: "600",
8217
+ fontWeightEmphasis: "600",
8163
8218
  gridBase: "4px",
8164
8219
  elevationXSmall: `0 1px 1px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02), 0 3px 3px rgba(0, 0, 0, 0.02), 0 4px 4px rgba(0, 0, 0, 0.01)`,
8165
8220
  elevationSmall: `0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 3px rgba(0, 0, 0, 0.04), 0 6px 6px rgba(0, 0, 0, 0.03), 0 8px 8px rgba(0, 0, 0, 0.02)`,
8166
8221
  elevationMedium: `0 2px 3px rgba(0, 0, 0, 0.05), 0 4px 5px rgba(0, 0, 0, 0.04), 0 12px 12px rgba(0, 0, 0, 0.03), 0 16px 16px rgba(0, 0, 0, 0.02)`,
8167
8222
  elevationLarge: `0 5px 15px rgba(0, 0, 0, 0.08), 0 15px 27px rgba(0, 0, 0, 0.07), 0 30px 36px rgba(0, 0, 0, 0.04), 0 50px 43px rgba(0, 0, 0, 0.02)`,
8168
- surfaceBackgroundColor: COLORS.white,
8169
- surfaceBackgroundSubtleColor: "#F3F3F3",
8170
- surfaceBackgroundTintColor: "#F5F5F5",
8171
8223
  surfaceBorderColor: "rgba(0, 0, 0, 0.1)",
8172
- surfaceBorderBoldColor: "rgba(0, 0, 0, 0.15)",
8173
- surfaceBorderSubtleColor: "rgba(0, 0, 0, 0.05)",
8174
- surfaceBackgroundTertiaryColor: COLORS.white,
8175
8224
  surfaceColor: COLORS.white,
8176
8225
  transitionDuration: "200ms",
8177
8226
  transitionDurationFast: "160ms",
@@ -8228,10 +8277,10 @@ var require_es6 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
8228
8277
  };
8229
8278
  }));
8230
8279
  //#endregion
8231
- //#region ../../../node_modules/.pnpm/@wordpress+warning@3.50.0/node_modules/@wordpress/warning/build-module/utils.mjs
8280
+ //#region ../../../node_modules/.pnpm/@wordpress+warning@3.51.0/node_modules/@wordpress/warning/build-module/utils.mjs
8232
8281
  var logged = /* @__PURE__ */ new Set();
8233
8282
  //#endregion
8234
- //#region ../../../node_modules/.pnpm/@wordpress+warning@3.50.0/node_modules/@wordpress/warning/build-module/index.mjs
8283
+ //#region ../../../node_modules/.pnpm/@wordpress+warning@3.51.0/node_modules/@wordpress/warning/build-module/index.mjs
8235
8284
  function isDev() {
8236
8285
  return globalThis.SCRIPT_DEBUG === true;
8237
8286
  }
@@ -8245,7 +8294,7 @@ function warning(message) {
8245
8294
  logged.add(message);
8246
8295
  }
8247
8296
  //#endregion
8248
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/context-system-provider.mjs
8297
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/context-system-provider.mjs
8249
8298
  var import_es6 = /* @__PURE__ */ __toESM(require_es6(), 1);
8250
8299
  var ComponentsContext = createContext$1(
8251
8300
  /** @type {Record<string, any>} */
@@ -8272,18 +8321,18 @@ var BaseContextSystemProvider = ({ children, value }) => {
8272
8321
  };
8273
8322
  memo(BaseContextSystemProvider);
8274
8323
  //#endregion
8275
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/constants.mjs
8324
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/constants.mjs
8276
8325
  var COMPONENT_NAMESPACE = "data-wp-component";
8277
8326
  var CONNECTED_NAMESPACE = "data-wp-c16t";
8278
8327
  var CONNECT_STATIC_NAMESPACE = "__contextSystemKey__";
8279
8328
  //#endregion
8280
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/get-styled-class-name-from-key.mjs
8329
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/get-styled-class-name-from-key.mjs
8281
8330
  function getStyledClassName(namespace) {
8282
8331
  return `components-${paramCase(namespace)}`;
8283
8332
  }
8284
8333
  var getStyledClassNameFromKey = memize(getStyledClassName);
8285
8334
  //#endregion
8286
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/context-connect.mjs
8335
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/context-connect.mjs
8287
8336
  function contextConnect(Component, namespace) {
8288
8337
  return _contextConnect(Component, namespace, { forwardsRef: true });
8289
8338
  }
@@ -8300,7 +8349,7 @@ function _contextConnect(Component, namespace, options) {
8300
8349
  });
8301
8350
  }
8302
8351
  //#endregion
8303
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/utils.mjs
8352
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/utils.mjs
8304
8353
  function getNamespace(componentName) {
8305
8354
  return { [COMPONENT_NAMESPACE]: componentName };
8306
8355
  }
@@ -8308,7 +8357,7 @@ function getConnectedNamespace() {
8308
8357
  return { [CONNECTED_NAMESPACE]: true };
8309
8358
  }
8310
8359
  //#endregion
8311
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/use-context-system.mjs
8360
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/context/use-context-system.mjs
8312
8361
  function useContextSystem(props, namespace) {
8313
8362
  const contextSystemProps = useComponentsContext();
8314
8363
  if (typeof namespace === "undefined") globalThis.SCRIPT_DEBUG === true && warning("useContextSystem: Please provide a namespace");
@@ -8328,7 +8377,7 @@ function useContextSystem(props, namespace) {
8328
8377
  return finalComponentProps;
8329
8378
  }
8330
8379
  //#endregion
8331
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/visually-hidden/styles.mjs
8380
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/visually-hidden/styles.mjs
8332
8381
  var visuallyHidden = {
8333
8382
  border: 0,
8334
8383
  clip: "rect(1px, 1px, 1px, 1px)",
@@ -8344,124 +8393,105 @@ var visuallyHidden = {
8344
8393
  wordBreak: "normal"
8345
8394
  };
8346
8395
  //#endregion
8347
- //#region ../../../node_modules/.pnpm/@emotion+is-prop-valid@1.4.0/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
8348
- 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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/;
8349
- var isPropValid = /* #__PURE__ */ memoize(function(prop) {
8350
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
8351
- });
8352
- //#endregion
8353
- //#region ../../../node_modules/.pnpm/@emotion+styled@11.14.1_@emotion+react@11.14.0_@types+react@18.3.28_react@18.3.1__@types+react@18.3.28_react@18.3.1/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
8354
- var isDevelopment = false;
8355
- var testOmitPropsOnStringTag = isPropValid;
8356
- var testOmitPropsOnComponent = function testOmitPropsOnComponent(key) {
8357
- return key !== "theme";
8358
- };
8359
- var getDefaultShouldForwardProp = function getDefaultShouldForwardProp(tag) {
8360
- return typeof tag === "string" && tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
8361
- };
8362
- var composeShouldForwardProps = function composeShouldForwardProps(tag, options, isReal) {
8363
- var shouldForwardProp;
8364
- if (options) {
8365
- var optionsShouldForwardProp = options.shouldForwardProp;
8366
- shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
8367
- return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
8368
- } : optionsShouldForwardProp;
8369
- }
8370
- if (typeof shouldForwardProp !== "function" && isReal) shouldForwardProp = tag.__emotion_forwardProp;
8371
- return shouldForwardProp;
8372
- };
8373
- var Insertion = function Insertion(_ref) {
8374
- var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
8375
- registerStyles(cache, serialized, isStringTag);
8376
- useInsertionEffectAlwaysWithSyncFallback(function() {
8377
- return insertStyles(cache, serialized, isStringTag);
8396
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/polymorphic-element.mjs
8397
+ var customAttributeRegExp = /^(data|aria|x)-/i;
8398
+ var eventHandlerRegExp = /^on[A-Z]/;
8399
+ var svgElementNames = new Set(`animate animateMotion animateTransform circle clipPath defs desc ellipse
8400
+ feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix
8401
+ feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood
8402
+ feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode
8403
+ feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile
8404
+ feTurbulence filter foreignObject g image line linearGradient marker mask
8405
+ metadata mpath path pattern polygon polyline radialGradient rect set stop svg
8406
+ switch symbol text textPath tspan use view`.split(/\s+/));
8407
+ var baseElementProps = new Set(`children dangerouslySetInnerHTML key autoFocus defaultValue defaultChecked
8408
+ innerHTML suppressContentEditableWarning suppressHydrationWarning valueLink
8409
+ abbr accept acceptCharset accessKey action allow allowUserMedia
8410
+ allowPaymentRequest allowFullScreen allowTransparency alt async autoComplete
8411
+ autoPlay capture cellPadding cellSpacing challenge charSet checked cite classID
8412
+ className cols colSpan content contentEditable contextMenu controls controlsList
8413
+ coords crossOrigin data dateTime decoding default defer dir disabled
8414
+ disablePictureInPicture disableRemotePlayback download draggable encType
8415
+ enterKeyHint fetchpriority fetchPriority form formAction formEncType formMethod
8416
+ formNoValidate formTarget frameBorder headers height hidden high href hrefLang
8417
+ htmlFor httpEquiv id inputMode integrity is keyParams keyType kind label lang
8418
+ list loading loop low marginHeight marginWidth max maxLength media mediaGroup
8419
+ method min minLength multiple muted name nonce noValidate open optimum pattern
8420
+ placeholder playsInline popover popoverTarget popoverTargetAction poster
8421
+ preload profile radioGroup readOnly referrerPolicy rel required reversed role
8422
+ rows rowSpan sandbox scope scoped scrolling seamless selected shape size sizes
8423
+ slot span spellCheck src srcDoc srcLang srcSet start step style summary
8424
+ tabIndex target title translate type useMap value width wmode wrap about
8425
+ datatype inlist prefix property resource typeof vocab autoCapitalize
8426
+ autoCorrect autoSave color incremental fallback inert itemProp itemScope
8427
+ itemType itemID itemRef on option results security unselectable`.split(/\s+/));
8428
+ var svgElementProps = new Set(`accentHeight accumulate additive alignmentBaseline allowReorder alphabetic
8429
+ amplitude arabicForm ascent attributeName attributeType autoReverse azimuth
8430
+ baseFrequency baselineShift baseProfile bbox begin bias by calcMode capHeight
8431
+ clip clipPathUnits clipPath clipRule colorInterpolation
8432
+ colorInterpolationFilters colorProfile colorRendering contentScriptType
8433
+ contentStyleType cursor cx cy d decelerate descent diffuseConstant direction
8434
+ display divisor dominantBaseline dur dx dy edgeMode elevation enableBackground
8435
+ end exponent externalResourcesRequired fill fillOpacity fillRule filter
8436
+ filterRes filterUnits floodColor floodOpacity focusable fontFamily fontSize
8437
+ fontSizeAdjust fontStretch fontStyle fontVariant fontWeight format from fr fx
8438
+ fy g1 g2 glyphName glyphOrientationHorizontal glyphOrientationVertical
8439
+ glyphRef gradientTransform gradientUnits hanging horizAdvX horizOriginX
8440
+ ideographic imageRendering in in2 intercept k k1 k2 k3 k4 kernelMatrix
8441
+ kernelUnitLength kerning keyPoints keySplines keyTimes lengthAdjust
8442
+ letterSpacing lightingColor limitingConeAngle local markerEnd markerMid
8443
+ markerStart markerHeight markerUnits markerWidth mask maskContentUnits
8444
+ maskUnits mathematical mode numOctaves offset opacity operator order orient
8445
+ orientation origin overflow overlinePosition overlineThickness panose1
8446
+ paintOrder pathLength patternContentUnits patternTransform patternUnits
8447
+ pointerEvents points pointsAtX pointsAtY pointsAtZ preserveAlpha
8448
+ preserveAspectRatio primitiveUnits r radius refX refY renderingIntent
8449
+ repeatCount repeatDur requiredExtensions requiredFeatures restart result rotate
8450
+ rx ry scale seed shapeRendering slope spacing specularConstant
8451
+ specularExponent speed spreadMethod startOffset stdDeviation stemh stemv
8452
+ stitchTiles stopColor stopOpacity strikethroughPosition strikethroughThickness
8453
+ string stroke strokeDasharray strokeDashoffset strokeLinecap strokeLinejoin
8454
+ strokeMiterlimit strokeOpacity strokeWidth surfaceScale systemLanguage
8455
+ tableValues targetX targetY textAnchor textDecoration textRendering textLength
8456
+ to transform u1 u2 underlinePosition underlineThickness unicode unicodeBidi
8457
+ unicodeRange unitsPerEm vAlphabetic vHanging vIdeographic vMathematical values
8458
+ vectorEffect version vertAdvY vertOriginX vertOriginY viewBox viewTarget
8459
+ visibility widths wordSpacing writingMode x xHeight x1 x2 xChannelSelector
8460
+ xlinkActuate xlinkArcrole xlinkHref xlinkRole xlinkShow xlinkTitle xlinkType
8461
+ xmlBase xmlns xmlnsXlink xmlLang xmlSpace y y1 y2 yChannelSelector z
8462
+ zoomAndPan`.split(/\s+/));
8463
+ var compatElementProps = /* @__PURE__ */ new Set([
8464
+ "autofocus",
8465
+ "class",
8466
+ "for"
8467
+ ]);
8468
+ function isValidIntrinsicElementProp(prop, element) {
8469
+ if (customAttributeRegExp.test(prop) || eventHandlerRegExp.test(prop)) return true;
8470
+ if (baseElementProps.has(prop) || compatElementProps.has(prop)) return true;
8471
+ return svgElementNames.has(element) && svgElementProps.has(prop);
8472
+ }
8473
+ function filterIntrinsicElementProps(props, element) {
8474
+ return Object.fromEntries(Object.entries(props).filter(([prop]) => isValidIntrinsicElementProp(prop, element)));
8475
+ }
8476
+ function UnforwardedPolymorphicElement({ as, ...props }, ref) {
8477
+ const Element = as || "div";
8478
+ return /* @__PURE__ */ jsx(Element, {
8479
+ ref,
8480
+ ...typeof Element === "string" ? filterIntrinsicElementProps(props, Element) : props
8378
8481
  });
8379
- return null;
8380
- };
8482
+ }
8483
+ var PolymorphicElement = forwardRef$1(UnforwardedPolymorphicElement);
8381
8484
  //#endregion
8382
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/view/component.mjs
8383
- var PolymorphicDiv = /* @__PURE__ */ function createStyled(tag, options) {
8384
- var isReal = tag.__emotion_real === tag;
8385
- var baseTag = isReal && tag.__emotion_base || tag;
8386
- var identifierName;
8387
- var targetClassName;
8388
- if (options !== void 0) {
8389
- identifierName = options.label;
8390
- targetClassName = options.target;
8391
- }
8392
- var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);
8393
- var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);
8394
- var shouldUseAs = !defaultShouldForwardProp("as");
8395
- return function() {
8396
- var args = arguments;
8397
- var styles = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
8398
- if (identifierName !== void 0) styles.push("label:" + identifierName + ";");
8399
- if (args[0] == null || args[0].raw === void 0) styles.push.apply(styles, args);
8400
- else {
8401
- var templateStringsArr = args[0];
8402
- styles.push(templateStringsArr[0]);
8403
- var len = args.length;
8404
- var i = 1;
8405
- for (; i < len; i++) styles.push(args[i], templateStringsArr[i]);
8406
- }
8407
- var Styled = withEmotionCache(function(props, cache, ref) {
8408
- var FinalTag = shouldUseAs && props.as || baseTag;
8409
- var className = "";
8410
- var classInterpolations = [];
8411
- var mergedProps = props;
8412
- if (props.theme == null) {
8413
- mergedProps = {};
8414
- for (var key in props) mergedProps[key] = props[key];
8415
- mergedProps.theme = React.useContext(ThemeContext);
8416
- }
8417
- if (typeof props.className === "string") className = getRegisteredStyles$1(cache.registered, classInterpolations, props.className);
8418
- else if (props.className != null) className = props.className + " ";
8419
- var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
8420
- className += cache.key + "-" + serialized.name;
8421
- if (targetClassName !== void 0) className += " " + targetClassName;
8422
- var finalShouldForwardProp = shouldUseAs && shouldForwardProp === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
8423
- var newProps = {};
8424
- for (var _key in props) {
8425
- if (shouldUseAs && _key === "as") continue;
8426
- if (finalShouldForwardProp(_key)) newProps[_key] = props[_key];
8427
- }
8428
- newProps.className = className;
8429
- if (ref) newProps.ref = ref;
8430
- return /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(Insertion, {
8431
- cache,
8432
- serialized,
8433
- isStringTag: typeof FinalTag === "string"
8434
- }), /*#__PURE__*/ React.createElement(FinalTag, newProps));
8435
- });
8436
- Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
8437
- Styled.defaultProps = tag.defaultProps;
8438
- Styled.__emotion_real = Styled;
8439
- Styled.__emotion_base = baseTag;
8440
- Styled.__emotion_styles = styles;
8441
- Styled.__emotion_forwardProp = shouldForwardProp;
8442
- Object.defineProperty(Styled, "toString", { value: function value() {
8443
- if (targetClassName === void 0 && isDevelopment) return "NO_COMPONENT_SELECTOR";
8444
- return "." + targetClassName;
8445
- } });
8446
- Styled.withComponent = function(nextTag, nextOptions) {
8447
- return createStyled(nextTag, _extends({}, options, nextOptions, { shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true) })).apply(void 0, styles);
8448
- };
8449
- return Styled;
8450
- };
8451
- }("div", process.env.NODE_ENV === "production" ? { target: "e19lxcc00" } : {
8452
- target: "e19lxcc00",
8453
- label: "PolymorphicDiv"
8454
- })(process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZWlDIiwiZmlsZSI6ImNvbXBvbmVudC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEV4dGVybmFsIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5cbi8qKlxuICogV29yZFByZXNzIGRlcGVuZGVuY2llc1xuICovXG5pbXBvcnQgeyBmb3J3YXJkUmVmIH0gZnJvbSAnQHdvcmRwcmVzcy9lbGVtZW50JztcblxuLyoqXG4gKiBJbnRlcm5hbCBkZXBlbmRlbmNpZXNcbiAqL1xuaW1wb3J0IHR5cGUgeyBXb3JkUHJlc3NDb21wb25lbnRQcm9wcyB9IGZyb20gJy4uL2NvbnRleHQnO1xuXG5jb25zdCBQb2x5bW9ycGhpY0RpdiA9IHN0eWxlZC5kaXZgYDtcblxuZnVuY3Rpb24gVW5mb3J3YXJkZWRWaWV3PCBUIGV4dGVuZHMgUmVhY3QuRWxlbWVudFR5cGUgPSAnZGl2JyA+KFxuXHR7IGFzLCAuLi5yZXN0UHJvcHMgfTogV29yZFByZXNzQ29tcG9uZW50UHJvcHM8IHt9LCBUID4sXG5cdHJlZjogUmVhY3QuRm9yd2FyZGVkUmVmPCBhbnkgPlxuKSB7XG5cdHJldHVybiA8UG9seW1vcnBoaWNEaXYgYXM9eyBhcyB9IHJlZj17IHJlZiB9IHsgLi4ucmVzdFByb3BzIH0gLz47XG59XG5cbi8qKlxuICogYFZpZXdgIGlzIGEgY29yZSBjb21wb25lbnQgdGhhdCByZW5kZXJzIGV2ZXJ5dGhpbmcgaW4gdGhlIGxpYnJhcnkuXG4gKiBJdCBpcyB0aGUgcHJpbmNpcGxlIGNvbXBvbmVudCBpbiB0aGUgZW50aXJlIGxpYnJhcnkuXG4gKlxuICogYGBganN4XG4gKiBpbXBvcnQgeyBWaWV3IH0gZnJvbSBgQHdvcmRwcmVzcy9jb21wb25lbnRzYDtcbiAqXG4gKiBmdW5jdGlvbiBFeGFtcGxlKCkge1xuICogXHRyZXR1cm4gKFxuICogXHRcdDxWaWV3PlxuICogXHRcdFx0IENvZGUgaXMgUG9ldHJ5XG4gKiBcdFx0PC9WaWV3PlxuICogXHQpO1xuICogfVxuICogYGBgXG4gKi9cbmV4cG9ydCBjb25zdCBWaWV3ID0gT2JqZWN0LmFzc2lnbiggZm9yd2FyZFJlZiggVW5mb3J3YXJkZWRWaWV3ICksIHtcblx0c2VsZWN0b3I6ICcuY29tcG9uZW50cy12aWV3Jyxcbn0gKTtcblxuZXhwb3J0IGRlZmF1bHQgVmlldztcbiJdfQ== */");
8455
- function UnforwardedView({ as, ...restProps }, ref) {
8456
- return /* @__PURE__ */ jsx(PolymorphicDiv, {
8457
- as,
8485
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/view/component.mjs
8486
+ function UnforwardedView({ css, ...restProps }, ref) {
8487
+ return /* @__PURE__ */ jsx(PolymorphicElement, {
8458
8488
  ref,
8459
8489
  ...restProps
8460
8490
  });
8461
8491
  }
8462
8492
  var component_default$2 = Object.assign(forwardRef$1(UnforwardedView), { selector: ".components-view" });
8463
8493
  //#endregion
8464
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/visually-hidden/component.mjs
8494
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/visually-hidden/component.mjs
8465
8495
  function UnconnectedVisuallyHidden(props, forwardedRef) {
8466
8496
  const { style: styleProp, ...contextProps } = useContextSystem(props, "VisuallyHidden");
8467
8497
  return /* @__PURE__ */ jsx(component_default$2, {
@@ -8476,7 +8506,7 @@ function UnconnectedVisuallyHidden(props, forwardedRef) {
8476
8506
  }
8477
8507
  var component_default$1 = contextConnect(UnconnectedVisuallyHidden, "VisuallyHidden");
8478
8508
  //#endregion
8479
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/use-responsive-value.mjs
8509
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/utils/use-responsive-value.mjs
8480
8510
  var breakpoints = [
8481
8511
  "40em",
8482
8512
  "52em",
@@ -8510,7 +8540,7 @@ function useResponsiveValue(values, options = {}) {
8510
8540
  return array[index >= array.length ? array.length - 1 : index];
8511
8541
  }
8512
8542
  //#endregion
8513
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/utils.mjs
8543
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/utils.mjs
8514
8544
  var ALIGNMENTS = {
8515
8545
  bottom: {
8516
8546
  alignItems: "flex-end",
@@ -8558,7 +8588,7 @@ function getAlignmentProps(alignment) {
8558
8588
  return alignment ? ALIGNMENTS[alignment] : {};
8559
8589
  }
8560
8590
  //#endregion
8561
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/hook.mjs
8591
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/hook.mjs
8562
8592
  function useGrid(props) {
8563
8593
  const { align, alignment, className, columnGap, columns = 2, gap = 3, isInline = false, justify, rowGap, rows, templateColumns, templateRows, ...otherProps } = useContextSystem(props, "Grid");
8564
8594
  const column = useResponsiveValue(Array.isArray(columns) ? columns : [columns]);
@@ -8600,7 +8630,7 @@ function useGrid(props) {
8600
8630
  };
8601
8631
  }
8602
8632
  //#endregion
8603
- //#region ../../../node_modules/.pnpm/@wordpress+components@36.1.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/component.mjs
8633
+ //#region ../../../node_modules/.pnpm/@wordpress+components@37.0.0_@types+react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@wordpress/components/build-module/grid/component.mjs
8604
8634
  function UnconnectedGrid(props, forwardedRef) {
8605
8635
  return /* @__PURE__ */ jsx(component_default$2, {
8606
8636
  ...useGrid(props),