@symbo.ls/scratch 3.0.2 → 3.1.1

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.
@@ -29,16 +29,16 @@ __export(factory_exports, {
29
29
  });
30
30
  module.exports = __toCommonJS(factory_exports);
31
31
 
32
- // ../../node_modules/@domql/utils/globals.js
32
+ // ../../../domql/packages/utils/globals.js
33
33
  var window2 = globalThis;
34
34
  var document2 = window2.document;
35
35
 
36
- // ../../node_modules/@domql/utils/node.js
36
+ // ../../../domql/packages/utils/node.js
37
37
  var isDOMNode = (obj) => {
38
38
  return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
39
39
  };
40
40
 
41
- // ../../node_modules/@domql/utils/types.js
41
+ // ../../../domql/packages/utils/types.js
42
42
  var isObject = (arg) => {
43
43
  if (arg === null) return false;
44
44
  return typeof arg === "object" && arg.constructor === Object;
@@ -61,7 +61,7 @@ var isUndefined = (arg) => {
61
61
  return arg === void 0;
62
62
  };
63
63
 
64
- // ../../node_modules/@domql/utils/array.js
64
+ // ../../../domql/packages/utils/array.js
65
65
  var unstackArrayOfObjects = (arr, exclude = []) => {
66
66
  return arr.reduce(
67
67
  (a, c) => deepMerge(a, deepClone(c, { exclude }), exclude),
@@ -69,7 +69,7 @@ var unstackArrayOfObjects = (arr, exclude = []) => {
69
69
  );
70
70
  };
71
71
 
72
- // ../../node_modules/@domql/utils/keys.js
72
+ // ../../../domql/packages/utils/keys.js
73
73
  var STATE_METHODS = [
74
74
  "update",
75
75
  "parse",
@@ -140,7 +140,7 @@ var METHODS_EXL = [
140
140
  ...PROPS_METHODS
141
141
  ];
142
142
 
143
- // ../../node_modules/@domql/utils/object.js
143
+ // ../../../domql/packages/utils/object.js
144
144
  var deepMerge = (element, extend, excludeFrom = METHODS_EXL) => {
145
145
  for (const e in extend) {
146
146
  const hasOwnProperty = Object.prototype.hasOwnProperty.call(extend, e);
@@ -207,9 +207,84 @@ var deepClone = (obj, options = {}) => {
207
207
  return clone;
208
208
  };
209
209
 
210
- // ../../node_modules/@domql/utils/cookie.js
210
+ // ../../../domql/packages/utils/cookie.js
211
211
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
212
212
 
213
+ // ../../../domql/packages/event/dist/esm/keys.js
214
+ var STATE_METHODS2 = [
215
+ "update",
216
+ "parse",
217
+ "clean",
218
+ "create",
219
+ "destroy",
220
+ "add",
221
+ "toggle",
222
+ "remove",
223
+ "apply",
224
+ "set",
225
+ "reset",
226
+ "replace",
227
+ "quietReplace",
228
+ "quietUpdate",
229
+ "applyReplace",
230
+ "applyFunction",
231
+ "keys",
232
+ "values",
233
+ "ref",
234
+ "rootUpdate",
235
+ "parentUpdate",
236
+ "parent",
237
+ "__element",
238
+ "__depends",
239
+ "__ref",
240
+ "__children",
241
+ "root",
242
+ "setByPath",
243
+ "setPathCollection",
244
+ "removeByPath",
245
+ "removePathCollection",
246
+ "getByPath"
247
+ ];
248
+ var PROPS_METHODS2 = ["update", "__element"];
249
+ var METHODS2 = [
250
+ "set",
251
+ "reset",
252
+ "update",
253
+ "remove",
254
+ "updateContent",
255
+ "removeContent",
256
+ "lookup",
257
+ "lookdown",
258
+ "lookdownAll",
259
+ "getRef",
260
+ "getPath",
261
+ "setNodeStyles",
262
+ "spotByPath",
263
+ "keys",
264
+ "parse",
265
+ "setProps",
266
+ "parseDeep",
267
+ "variables",
268
+ "if",
269
+ "log",
270
+ "verbose",
271
+ "warn",
272
+ "error",
273
+ "call",
274
+ "nextElement",
275
+ "previousElement"
276
+ ];
277
+ var METHODS_EXL2 = [
278
+ ...["node", "context", "extends", "__element", "__ref"],
279
+ ...METHODS2,
280
+ ...STATE_METHODS2,
281
+ ...PROPS_METHODS2
282
+ ];
283
+
284
+ // ../../../domql/packages/event/dist/esm/globals.js
285
+ var window3 = globalThis;
286
+ var document3 = window3.document;
287
+
213
288
  // src/defaultConfig/index.js
214
289
  var defaultConfig_exports = {};
215
290
  __export(defaultConfig_exports, {
package/dist/cjs/index.js CHANGED
@@ -83,7 +83,7 @@ var require_cjs = __commonJS({
83
83
  var isString2 = (arg) => typeof arg === "string";
84
84
  var isNumber2 = (arg) => typeof arg === "number";
85
85
  var isArray2 = (arg) => Array.isArray(arg);
86
- var STATE_METHODS2 = [
86
+ var STATE_METHODS3 = [
87
87
  "update",
88
88
  "parse",
89
89
  "clean",
@@ -117,8 +117,8 @@ var require_cjs = __commonJS({
117
117
  "removePathCollection",
118
118
  "getByPath"
119
119
  ];
120
- var PROPS_METHODS2 = ["update", "__element"];
121
- var METHODS2 = [
120
+ var PROPS_METHODS3 = ["update", "__element"];
121
+ var METHODS3 = [
122
122
  "set",
123
123
  "reset",
124
124
  "update",
@@ -146,13 +146,84 @@ var require_cjs = __commonJS({
146
146
  "nextElement",
147
147
  "previousElement"
148
148
  ];
149
- var METHODS_EXL2 = [
149
+ var METHODS_EXL3 = [
150
150
  ...["node", "context", "extends", "__element", "__ref"],
151
- ...METHODS2,
152
- ...STATE_METHODS2,
153
- ...PROPS_METHODS2
151
+ ...METHODS3,
152
+ ...STATE_METHODS3,
153
+ ...PROPS_METHODS3
154
154
  ];
155
155
  var isMobile2 = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
156
+ var STATE_METHODS22 = [
157
+ "update",
158
+ "parse",
159
+ "clean",
160
+ "create",
161
+ "destroy",
162
+ "add",
163
+ "toggle",
164
+ "remove",
165
+ "apply",
166
+ "set",
167
+ "reset",
168
+ "replace",
169
+ "quietReplace",
170
+ "quietUpdate",
171
+ "applyReplace",
172
+ "applyFunction",
173
+ "keys",
174
+ "values",
175
+ "ref",
176
+ "rootUpdate",
177
+ "parentUpdate",
178
+ "parent",
179
+ "__element",
180
+ "__depends",
181
+ "__ref",
182
+ "__children",
183
+ "root",
184
+ "setByPath",
185
+ "setPathCollection",
186
+ "removeByPath",
187
+ "removePathCollection",
188
+ "getByPath"
189
+ ];
190
+ var PROPS_METHODS22 = ["update", "__element"];
191
+ var METHODS22 = [
192
+ "set",
193
+ "reset",
194
+ "update",
195
+ "remove",
196
+ "updateContent",
197
+ "removeContent",
198
+ "lookup",
199
+ "lookdown",
200
+ "lookdownAll",
201
+ "getRef",
202
+ "getPath",
203
+ "setNodeStyles",
204
+ "spotByPath",
205
+ "keys",
206
+ "parse",
207
+ "setProps",
208
+ "parseDeep",
209
+ "variables",
210
+ "if",
211
+ "log",
212
+ "verbose",
213
+ "warn",
214
+ "error",
215
+ "call",
216
+ "nextElement",
217
+ "previousElement"
218
+ ];
219
+ var METHODS_EXL22 = [
220
+ ...["node", "context", "extends", "__element", "__ref"],
221
+ ...METHODS22,
222
+ ...STATE_METHODS22,
223
+ ...PROPS_METHODS22
224
+ ];
225
+ var window32 = globalThis;
226
+ var document32 = window32.document;
156
227
  async function toggleFullscreen(opts) {
157
228
  if (!document.fullscreenElement) {
158
229
  try {
@@ -508,16 +579,16 @@ var isScalingUnit = (unit) => {
508
579
  return unit === "em" || unit === "rem" || unit === "vw" || unit === "vh" || unit === "vmax" || unit === "vmin";
509
580
  };
510
581
 
511
- // ../../node_modules/@domql/utils/globals.js
582
+ // ../../../domql/packages/utils/globals.js
512
583
  var window2 = globalThis;
513
584
  var document2 = window2.document;
514
585
 
515
- // ../../node_modules/@domql/utils/node.js
586
+ // ../../../domql/packages/utils/node.js
516
587
  var isDOMNode = (obj) => {
517
588
  return typeof window2 !== "undefined" && (obj instanceof window2.Node || obj instanceof window2.Window || obj === window2 || obj === document);
518
589
  };
519
590
 
520
- // ../../node_modules/@domql/utils/types.js
591
+ // ../../../domql/packages/utils/types.js
521
592
  var isObject = (arg) => {
522
593
  if (arg === null) return false;
523
594
  return typeof arg === "object" && arg.constructor === Object;
@@ -540,7 +611,7 @@ var isUndefined = (arg) => {
540
611
  return arg === void 0;
541
612
  };
542
613
 
543
- // ../../node_modules/@domql/utils/array.js
614
+ // ../../../domql/packages/utils/array.js
544
615
  var unstackArrayOfObjects = (arr, exclude = []) => {
545
616
  return arr.reduce(
546
617
  (a, c) => deepMerge(a, deepClone(c, { exclude }), exclude),
@@ -548,7 +619,7 @@ var unstackArrayOfObjects = (arr, exclude = []) => {
548
619
  );
549
620
  };
550
621
 
551
- // ../../node_modules/@domql/utils/keys.js
622
+ // ../../../domql/packages/utils/keys.js
552
623
  var STATE_METHODS = [
553
624
  "update",
554
625
  "parse",
@@ -619,7 +690,7 @@ var METHODS_EXL = [
619
690
  ...PROPS_METHODS
620
691
  ];
621
692
 
622
- // ../../node_modules/@domql/utils/object.js
693
+ // ../../../domql/packages/utils/object.js
623
694
  var merge = (element, obj, excludeFrom = []) => {
624
695
  for (const e in obj) {
625
696
  const hasOwnProperty = Object.prototype.hasOwnProperty.call(obj, e);
@@ -723,9 +794,84 @@ var overwriteDeep = (obj, params, opts = {}, visited = /* @__PURE__ */ new WeakM
723
794
  return obj;
724
795
  };
725
796
 
726
- // ../../node_modules/@domql/utils/cookie.js
797
+ // ../../../domql/packages/utils/cookie.js
727
798
  var isMobile = (() => typeof navigator === "undefined" ? false : /Mobi/.test(navigator.userAgent))();
728
799
 
800
+ // ../../../domql/packages/event/dist/esm/keys.js
801
+ var STATE_METHODS2 = [
802
+ "update",
803
+ "parse",
804
+ "clean",
805
+ "create",
806
+ "destroy",
807
+ "add",
808
+ "toggle",
809
+ "remove",
810
+ "apply",
811
+ "set",
812
+ "reset",
813
+ "replace",
814
+ "quietReplace",
815
+ "quietUpdate",
816
+ "applyReplace",
817
+ "applyFunction",
818
+ "keys",
819
+ "values",
820
+ "ref",
821
+ "rootUpdate",
822
+ "parentUpdate",
823
+ "parent",
824
+ "__element",
825
+ "__depends",
826
+ "__ref",
827
+ "__children",
828
+ "root",
829
+ "setByPath",
830
+ "setPathCollection",
831
+ "removeByPath",
832
+ "removePathCollection",
833
+ "getByPath"
834
+ ];
835
+ var PROPS_METHODS2 = ["update", "__element"];
836
+ var METHODS2 = [
837
+ "set",
838
+ "reset",
839
+ "update",
840
+ "remove",
841
+ "updateContent",
842
+ "removeContent",
843
+ "lookup",
844
+ "lookdown",
845
+ "lookdownAll",
846
+ "getRef",
847
+ "getPath",
848
+ "setNodeStyles",
849
+ "spotByPath",
850
+ "keys",
851
+ "parse",
852
+ "setProps",
853
+ "parseDeep",
854
+ "variables",
855
+ "if",
856
+ "log",
857
+ "verbose",
858
+ "warn",
859
+ "error",
860
+ "call",
861
+ "nextElement",
862
+ "previousElement"
863
+ ];
864
+ var METHODS_EXL2 = [
865
+ ...["node", "context", "extends", "__element", "__ref"],
866
+ ...METHODS2,
867
+ ...STATE_METHODS2,
868
+ ...PROPS_METHODS2
869
+ ];
870
+
871
+ // ../../../domql/packages/event/dist/esm/globals.js
872
+ var window3 = globalThis;
873
+ var document3 = window3.document;
874
+
729
875
  // src/utils/color.js
730
876
  var ENV = "development";
731
877
  var colorStringToRgbaArray = (color) => {
@@ -841,7 +987,7 @@ var mixTwoRgba = (colorA, colorB, range = 0.5) => {
841
987
  var opacify = (color, opacity) => {
842
988
  const arr = colorStringToRgbaArray(color);
843
989
  if (!arr) {
844
- if (ENV === "test" || ENV === "development") console.warn(color + " color is not rgba");
990
+ if (ENV === "testing" || ENV === "development") console.warn(color + " color is not rgba");
845
991
  return;
846
992
  }
847
993
  arr[3] = opacity;
@@ -912,7 +1058,7 @@ var getFontFaceString = (LIBRARY) => {
912
1058
  };
913
1059
 
914
1060
  // src/utils/sequence.js
915
- var import_utils6 = __toESM(require_cjs(), 1);
1061
+ var import_utils5 = __toESM(require_cjs(), 1);
916
1062
 
917
1063
  // src/defaultConfig/index.js
918
1064
  var defaultConfig_exports = {};
@@ -1278,8 +1424,12 @@ var generateSequence = (sequenceProps) => {
1278
1424
  return sequenceProps;
1279
1425
  };
1280
1426
  var generateSequencePosition = (sequenceProps, position = 0) => {
1427
+ var _a;
1281
1428
  const { type, base, ratio, subSequence } = sequenceProps;
1282
- const letterKey = (void 0).call("isString", position) ? position : numToLetterMap[position];
1429
+ const letterKey = isString(position) ? position : numToLetterMap[position];
1430
+ const index = isString(position) ? (_a = Object.entries(numToLetterMap).find(
1431
+ ([, value2]) => value2 === position
1432
+ )) == null ? void 0 : _a[0] : position;
1283
1433
  if (!letterKey) {
1284
1434
  console.warn(`Position ${position} is out of range in numToLetterMap`);
1285
1435
  return null;
@@ -1290,11 +1440,11 @@ var generateSequencePosition = (sequenceProps, position = 0) => {
1290
1440
  vars: {},
1291
1441
  ...sequenceProps
1292
1442
  };
1293
- const value = base * Math.pow(ratio, position);
1443
+ const value = base * Math.pow(ratio, index);
1294
1444
  const scaling = ~~(value / base * 100) / 100;
1295
1445
  const prefix = "--" + (type && type.replace(".", "-")) + "-";
1296
1446
  const variable = prefix + letterKey;
1297
- const scalingVariable = setScalingVar(position, sequenceProps);
1447
+ const scalingVariable = setScalingVar(index, sequenceProps);
1298
1448
  const props = {
1299
1449
  key: letterKey,
1300
1450
  variable,
@@ -1303,7 +1453,7 @@ var generateSequencePosition = (sequenceProps, position = 0) => {
1303
1453
  scaling,
1304
1454
  scalingVariable,
1305
1455
  ratio,
1306
- index: position
1456
+ index
1307
1457
  };
1308
1458
  setSequenceValue(props, result);
1309
1459
  if (subSequence) {
@@ -1320,7 +1470,7 @@ var getSequenceValue = (value = "A", sequenceProps) => {
1320
1470
  useVariable
1321
1471
  } = sequenceProps;
1322
1472
  if (isString(value) && value.slice(0, 2) === "--") return `var(${value})`;
1323
- const prefix = `--${(0, import_utils6.toDashCase)(sequenceProps.type.replace(".", "-"))}-`;
1473
+ const prefix = `--${(0, import_utils5.toDashCase)(sequenceProps.type.replace(".", "-"))}-`;
1324
1474
  const startsWithDashOrLetterRegex = /^-?[a-zA-Z]/i;
1325
1475
  const startsWithDashOrLetter = startsWithDashOrLetterRegex.test(value);
1326
1476
  if (value === "none" || value === "auto" || value === "unset" || value === "inherit" || value === "fit-content" || value === "min-content" || value === "max-content" || value.includes("calc") || value.includes("var") || !startsWithDashOrLetter) return value;
@@ -1454,6 +1604,8 @@ var applyMediaSequenceVars = (FACTORY2, media, options = {}) => {
1454
1604
  };
1455
1605
 
1456
1606
  // src/utils/sprite.js
1607
+ var ENV2 = "development";
1608
+ var isDev = ENV2 === "development" || ENV2 === "testing";
1457
1609
  var generateSprite = (icons) => {
1458
1610
  const CONFIG2 = getActiveConfig();
1459
1611
  let sprite = "";
@@ -1467,7 +1619,8 @@ var generateSprite = (icons) => {
1467
1619
  var parseRootAttributes = (htmlString) => {
1468
1620
  const val = htmlString.default || htmlString;
1469
1621
  if (!isString(val)) {
1470
- return console.warn(`parseRootAttributes: ${val} is not a string`);
1622
+ if (isDev) console.warn("parseRootAttributes:", val, "is not a string");
1623
+ return;
1471
1624
  }
1472
1625
  const match = val.match(/<svg\s+(.*?)>/);
1473
1626
  if (!match || !match[1]) {
@@ -1867,7 +2020,7 @@ var getMediaTheme = (value, modifier) => {
1867
2020
  };
1868
2021
 
1869
2022
  // src/system/font.js
1870
- var import_utils13 = __toESM(require_cjs(), 1);
2023
+ var import_utils12 = __toESM(require_cjs(), 1);
1871
2024
  var setFont = (val, key) => {
1872
2025
  const CSSvar = `--font-${key}`;
1873
2026
  if (!val || isArray(val) && !val[0]) return;
@@ -1884,7 +2037,7 @@ var setFontFamily = (val, key) => {
1884
2037
  const { FONT_FAMILY: FONT_FAMILY2, FONT_FAMILY_TYPES: FONT_FAMILY_TYPES2 } = CONFIG2;
1885
2038
  let { value, type } = val;
1886
2039
  if (val.isDefault) FONT_FAMILY2.default = key;
1887
- if (isObject(value)) value = (0, import_utils13.arrayzeValue)(value);
2040
+ if (isObject(value)) value = (0, import_utils12.arrayzeValue)(value);
1888
2041
  const CSSvar = `--font-family-${key}`;
1889
2042
  const str = `${value.join(", ")}, ${FONT_FAMILY_TYPES2[type]}`;
1890
2043
  return { var: CSSvar, value: str, arr: value, type };
@@ -1938,6 +2091,7 @@ var runThroughMedia = (FACTORY2) => {
1938
2091
  }
1939
2092
  };
1940
2093
  var applyHeadings = (props) => {
2094
+ var _a;
1941
2095
  const CONFIG2 = getActiveConfig();
1942
2096
  if (props.h1Matches) {
1943
2097
  const unit = props.unit;
@@ -1946,8 +2100,9 @@ var applyHeadings = (props) => {
1946
2100
  for (const k in HEADINGS) {
1947
2101
  const headerName = `h${parseInt(k) + 1}`;
1948
2102
  const headerStyle = templates[headerName];
2103
+ if (!HEADINGS[k]) continue;
1949
2104
  templates[headerName] = {
1950
- fontSize: CONFIG2.useVariable ? `var(${HEADINGS[k].variable})` : `${HEADINGS[k].scaling}${unit}`,
2105
+ fontSize: CONFIG2.useVariable ? `var(${(_a = HEADINGS[k]) == null ? void 0 : _a.variable})` : `${HEADINGS[k].scaling}${unit}`,
1951
2106
  margin: headerStyle ? headerStyle.margin : 0,
1952
2107
  lineHeight: headerStyle ? headerStyle.lineHeight : props.lineHeight,
1953
2108
  letterSpacing: headerStyle ? headerStyle.letterSpacing : props.letterSpacing,
@@ -1975,7 +2130,7 @@ var getFontSizeByKey = (value) => {
1975
2130
  };
1976
2131
 
1977
2132
  // src/system/spacing.js
1978
- var import_utils17 = __toESM(require_cjs(), 1);
2133
+ var import_utils16 = __toESM(require_cjs(), 1);
1979
2134
  var runThroughMedia2 = (FACTORY2) => {
1980
2135
  for (const prop in FACTORY2) {
1981
2136
  const mediaProps = FACTORY2[prop];
@@ -2026,7 +2181,7 @@ var getSpacingByKey = (value, propertyName = "padding", sequenceProps) => {
2026
2181
  if (isString(value) && (value.includes("calc") || value.includes("var"))) {
2027
2182
  return { [propertyName]: value };
2028
2183
  }
2029
- const stack = (0, import_utils17.arrayzeValue)(value);
2184
+ const stack = (0, import_utils16.arrayzeValue)(value);
2030
2185
  if (!isArray(stack)) return;
2031
2186
  if (stack.length > 1) {
2032
2187
  let suffix = "";
@@ -2158,7 +2313,7 @@ var getShadow = (value, globalTheme) => {
2158
2313
  };
2159
2314
 
2160
2315
  // src/system/timing.js
2161
- var import_utils21 = __toESM(require_cjs(), 1);
2316
+ var import_utils20 = __toESM(require_cjs(), 1);
2162
2317
  var applyTimingSequence = () => {
2163
2318
  const CONFIG2 = getActiveConfig();
2164
2319
  const { TIMING: TIMING2 } = CONFIG2;
@@ -2168,7 +2323,7 @@ var applyTimingSequence = () => {
2168
2323
  var getTimingFunction = (value) => {
2169
2324
  const CONFIG2 = getActiveConfig();
2170
2325
  const { TIMING: TIMING2 } = CONFIG2;
2171
- return TIMING2[value] || TIMING2[(0, import_utils21.toCamelCase)(value)] || value;
2326
+ return TIMING2[value] || TIMING2[(0, import_utils20.toCamelCase)(value)] || value;
2172
2327
  };
2173
2328
  var getTimingByKey = (value, property = "timing") => {
2174
2329
  const CONFIG2 = getActiveConfig();
@@ -2490,7 +2645,13 @@ var setEach = (factoryName, props) => {
2490
2645
  const CONFIG2 = getActiveConfig();
2491
2646
  const FACTORY_NAME = factoryName.toUpperCase();
2492
2647
  const keys = Object.keys(props);
2493
- keys.map((key) => setValue(FACTORY_NAME, props[key], key));
2648
+ keys.forEach((key) => {
2649
+ try {
2650
+ return setValue(FACTORY_NAME, props[key], key);
2651
+ } catch (error) {
2652
+ if (CONFIG2.verbose) console.warn("Error setting", FACTORY_NAME, "value", props[key], key, error);
2653
+ }
2654
+ });
2494
2655
  return CONFIG2[FACTORY_NAME];
2495
2656
  };
2496
2657
  var SET_OPTIONS = {};
@@ -2527,9 +2688,27 @@ var set = (recivedConfig, options = SET_OPTIONS) => {
2527
2688
  if (!CONFIG2.__svg_cache) CONFIG2.__svg_cache = {};
2528
2689
  const keys = Object.keys(config);
2529
2690
  keys.map((key) => setEach(key, config[key]));
2530
- if (config.TYPOGRAPHY) applyTypographySequence();
2531
- if (config.SPACING) applySpacingSequence();
2532
- if (config.TIMING) applyTimingSequence();
2691
+ if (config.TYPOGRAPHY) {
2692
+ try {
2693
+ applyTypographySequence();
2694
+ } catch (e) {
2695
+ if (CONFIG2.verbose) console.warn("Error applying typography sequence", e);
2696
+ }
2697
+ }
2698
+ if (config.SPACING) {
2699
+ try {
2700
+ applySpacingSequence();
2701
+ } catch (e) {
2702
+ if (CONFIG2.verbose) console.warn("Error applying typography sequence", e);
2703
+ }
2704
+ }
2705
+ if (config.TIMING) {
2706
+ try {
2707
+ applyTimingSequence();
2708
+ } catch (e) {
2709
+ if (CONFIG2.verbose) console.warn("Error applying typography sequence", e);
2710
+ }
2711
+ }
2533
2712
  applyDocument();
2534
2713
  applyReset();
2535
2714
  return CONFIG2;