@conundrum/ts 0.0.3 → 0.0.6

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.
Files changed (63) hide show
  1. package/dist/blog_post_nav-BZQvuEof.mjs +458 -0
  2. package/dist/blog_post_nav-BZQvuEof.mjs.map +1 -0
  3. package/dist/blog_post_nav-BpUDqfSu.js +457 -0
  4. package/dist/blog_post_nav-BpUDqfSu.js.map +1 -0
  5. package/dist/codegenTypeshare.cjs +6 -0
  6. package/dist/codegenTypeshare.cjs.map +1 -1
  7. package/dist/codegenTypeshare.mjs +6 -0
  8. package/dist/codegenTypeshare.mjs.map +1 -1
  9. package/dist/framework.cjs +1 -0
  10. package/dist/framework.cjs.map +1 -1
  11. package/dist/framework.mjs +2 -1
  12. package/dist/server.cjs +155 -0
  13. package/dist/server.cjs.map +1 -0
  14. package/dist/server.d.ts +2 -0
  15. package/dist/server.mjs +155 -0
  16. package/dist/server.mjs.map +1 -0
  17. package/dist/src/code_gen/typeshare/conundrum.d.ts +62 -48
  18. package/dist/src/code_gen/typeshare/conundrum.d.ts.map +1 -1
  19. package/dist/src/prebuilt_ui/blog/components/blog_index.d.ts +34 -0
  20. package/dist/src/prebuilt_ui/blog/components/blog_index.d.ts.map +1 -0
  21. package/dist/src/prebuilt_ui/blog/components/blog_post_nav.d.ts +19 -0
  22. package/dist/src/prebuilt_ui/blog/components/blog_post_nav.d.ts.map +1 -0
  23. package/dist/src/prebuilt_ui/blog/components/blog_shell.d.ts +16 -0
  24. package/dist/src/prebuilt_ui/blog/components/blog_shell.d.ts.map +1 -0
  25. package/dist/src/prebuilt_ui/blog/components/blog_sidebar.d.ts +24 -0
  26. package/dist/src/prebuilt_ui/blog/components/blog_sidebar.d.ts.map +1 -0
  27. package/dist/src/prebuilt_ui/blog/components/shared.d.ts +25 -0
  28. package/dist/src/prebuilt_ui/blog/components/shared.d.ts.map +1 -0
  29. package/dist/src/prebuilt_ui/blog/index.d.ts +7 -2
  30. package/dist/src/prebuilt_ui/blog/index.d.ts.map +1 -1
  31. package/dist/src/prebuilt_ui/blog/index_ssr.d.ts +7 -2
  32. package/dist/src/prebuilt_ui/blog/index_ssr.d.ts.map +1 -1
  33. package/dist/src/prebuilt_ui/blog/model/blog_filter.d.ts +26 -0
  34. package/dist/src/prebuilt_ui/blog/model/blog_filter.d.ts.map +1 -0
  35. package/dist/src/prebuilt_ui/blog/model/blog_model.d.ts +60 -0
  36. package/dist/src/prebuilt_ui/blog/model/blog_model.d.ts.map +1 -0
  37. package/dist/src/prebuilt_ui/blog/{index_page → model}/summarize_blog_post.d.ts +10 -7
  38. package/dist/src/prebuilt_ui/blog/model/summarize_blog_post.d.ts.map +1 -0
  39. package/dist/src/server/conundrum_database.d.ts +32 -0
  40. package/dist/src/server/conundrum_database.d.ts.map +1 -0
  41. package/dist/src/server/create_search_route.d.ts +28 -0
  42. package/dist/src/server/create_search_route.d.ts.map +1 -0
  43. package/dist/src/server/index.d.ts +4 -0
  44. package/dist/src/server/index.d.ts.map +1 -0
  45. package/dist/src/server/search_conundrum.d.ts +46 -0
  46. package/dist/src/server/search_conundrum.d.ts.map +1 -0
  47. package/dist/uiBlog.cjs +19 -8
  48. package/dist/uiBlog.cjs.map +1 -1
  49. package/dist/uiBlog.mjs +144 -133
  50. package/dist/uiBlog.mjs.map +1 -1
  51. package/dist/uiBlogSSR.cjs +19 -8
  52. package/dist/uiBlogSSR.cjs.map +1 -1
  53. package/dist/uiBlogSSR.mjs +18 -7
  54. package/package.json +13 -5
  55. package/src/prebuilt_ui/blog/blog.css +709 -0
  56. package/dist/blog_index-DbEZPK0j.mjs +0 -223
  57. package/dist/blog_index-DbEZPK0j.mjs.map +0 -1
  58. package/dist/blog_index-Dd7fy5LS.js +0 -222
  59. package/dist/blog_index-Dd7fy5LS.js.map +0 -1
  60. package/dist/src/prebuilt_ui/blog/index_page/blog_index.d.ts +0 -63
  61. package/dist/src/prebuilt_ui/blog/index_page/blog_index.d.ts.map +0 -1
  62. package/dist/src/prebuilt_ui/blog/index_page/summarize_blog_post.d.ts.map +0 -1
  63. package/src/prebuilt_ui/blog/blog_index.css +0 -355
package/dist/uiBlog.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { createContext, useRef, useLayoutEffect, useEffect, useContext, useId, useCallback, useMemo, Fragment, createElement, useInsertionEffect, forwardRef, Component, useState } from "react";
3
- import { B, a, b, F, f, r, s } from "./blog_index-DbEZPK0j.mjs";
3
+ import { B, a, b, c, d, e, f, N, g, h, i, j, k, l, m, r, s, n } from "./blog_post_nav-BZQvuEof.mjs";
4
4
  const LayoutGroupContext = createContext({});
5
5
  function useConstant(init) {
6
6
  const ref = useRef(null);
@@ -74,16 +74,16 @@ class SubscriptionManager {
74
74
  addUniqueItem(this.subscriptions, handler);
75
75
  return () => removeItem(this.subscriptions, handler);
76
76
  }
77
- notify(a2, b2, c) {
77
+ notify(a2, b2, c2) {
78
78
  const numSubscriptions = this.subscriptions.length;
79
79
  if (!numSubscriptions)
80
80
  return;
81
81
  if (numSubscriptions === 1) {
82
- this.subscriptions[0](a2, b2, c);
82
+ this.subscriptions[0](a2, b2, c2);
83
83
  } else {
84
- for (let i = 0; i < numSubscriptions; i++) {
85
- const handler = this.subscriptions[i];
86
- handler && handler(a2, b2, c);
84
+ for (let i2 = 0; i2 < numSubscriptions; i2++) {
85
+ const handler = this.subscriptions[i2];
86
+ handler && handler(a2, b2, c2);
87
87
  }
88
88
  }
89
89
  }
@@ -110,7 +110,7 @@ const subdivisionMaxIterations = 12;
110
110
  function binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {
111
111
  let currentX;
112
112
  let currentT;
113
- let i = 0;
113
+ let i2 = 0;
114
114
  do {
115
115
  currentT = lowerBound + (upperBound - lowerBound) / 2;
116
116
  currentX = calcBezier(currentT, mX1, mX2) - x;
@@ -119,7 +119,7 @@ function binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {
119
119
  } else {
120
120
  lowerBound = currentT;
121
121
  }
122
- } while (Math.abs(currentX) > subdivisionPrecision && ++i < subdivisionMaxIterations);
122
+ } while (Math.abs(currentX) > subdivisionPrecision && ++i2 < subdivisionMaxIterations);
123
123
  return currentT;
124
124
  }
125
125
  // @__NO_SIDE_EFFECTS__
@@ -306,8 +306,8 @@ function createRenderBatcher(scheduleNextBatch, allowKeepAlive) {
306
306
  return acc;
307
307
  }, {});
308
308
  const cancel = (process2) => {
309
- for (let i = 0; i < stepsOrder.length; i++) {
310
- steps[stepsOrder[i]].cancel(process2);
309
+ for (let i2 = 0; i2 < stepsOrder.length; i2++) {
310
+ steps[stepsOrder[i2]].cancel(process2);
311
311
  }
312
312
  };
313
313
  return { schedule, cancel, state, steps };
@@ -369,11 +369,11 @@ const isColorString = (type, testProp) => (v) => {
369
369
  const splitColor = (aName, bName, cName) => (v) => {
370
370
  if (typeof v !== "string")
371
371
  return v;
372
- const [a2, b2, c, alpha2] = v.match(floatRegex);
372
+ const [a2, b2, c2, alpha2] = v.match(floatRegex);
373
373
  return {
374
374
  [aName]: parseFloat(a2),
375
375
  [bName]: parseFloat(b2),
376
- [cName]: parseFloat(c),
376
+ [cName]: parseFloat(c2),
377
377
  alpha: alpha2 !== void 0 ? parseFloat(alpha2) : 1
378
378
  };
379
379
  };
@@ -389,27 +389,27 @@ const rgba = {
389
389
  };
390
390
  function parseHex(v) {
391
391
  let r2 = "";
392
- let g = "";
392
+ let g2 = "";
393
393
  let b2 = "";
394
394
  let a2 = "";
395
395
  if (v.length > 5) {
396
396
  r2 = v.substring(1, 3);
397
- g = v.substring(3, 5);
397
+ g2 = v.substring(3, 5);
398
398
  b2 = v.substring(5, 7);
399
399
  a2 = v.substring(7, 9);
400
400
  } else {
401
401
  r2 = v.substring(1, 2);
402
- g = v.substring(2, 3);
402
+ g2 = v.substring(2, 3);
403
403
  b2 = v.substring(3, 4);
404
404
  a2 = v.substring(4, 5);
405
405
  r2 += r2;
406
- g += g;
406
+ g2 += g2;
407
407
  b2 += b2;
408
408
  a2 += a2;
409
409
  }
410
410
  return {
411
411
  red: parseInt(r2, 16),
412
- green: parseInt(g, 16),
412
+ green: parseInt(g2, 16),
413
413
  blue: parseInt(b2, 16),
414
414
  alpha: a2 ? parseInt(a2, 16) / 255 : 1
415
415
  };
@@ -480,22 +480,22 @@ function analyseComplexValue(value) {
480
480
  var: []
481
481
  };
482
482
  const types = [];
483
- let i = 0;
483
+ let i2 = 0;
484
484
  const tokenised = originalValue.replace(complexRegex, (parsedValue) => {
485
485
  if (color.test(parsedValue)) {
486
- indexes.color.push(i);
486
+ indexes.color.push(i2);
487
487
  types.push(COLOR_TOKEN);
488
488
  values.push(color.parse(parsedValue));
489
489
  } else if (parsedValue.startsWith(VAR_FUNCTION_TOKEN)) {
490
- indexes.var.push(i);
490
+ indexes.var.push(i2);
491
491
  types.push(VAR_TOKEN);
492
492
  values.push(parsedValue);
493
493
  } else {
494
- indexes.number.push(i);
494
+ indexes.number.push(i2);
495
495
  types.push(NUMBER_TOKEN);
496
496
  values.push(parseFloat(parsedValue));
497
497
  }
498
- ++i;
498
+ ++i2;
499
499
  return SPLIT_TOKEN;
500
500
  });
501
501
  const split = tokenised.split(SPLIT_TOKEN);
@@ -508,16 +508,16 @@ function buildTransformer({ split, types }) {
508
508
  const numSections = split.length;
509
509
  return (v) => {
510
510
  let output = "";
511
- for (let i = 0; i < numSections; i++) {
512
- output += split[i];
513
- if (v[i] !== void 0) {
514
- const type = types[i];
511
+ for (let i2 = 0; i2 < numSections; i2++) {
512
+ output += split[i2];
513
+ if (v[i2] !== void 0) {
514
+ const type = types[i2];
515
515
  if (type === NUMBER_TOKEN) {
516
- output += sanitize(v[i]);
516
+ output += sanitize(v[i2]);
517
517
  } else if (type === COLOR_TOKEN) {
518
- output += color.transform(v[i]);
518
+ output += color.transform(v[i2]);
519
519
  } else {
520
- output += v[i];
520
+ output += v[i2];
521
521
  }
522
522
  }
523
523
  }
@@ -537,7 +537,7 @@ const convertToZero = (value, splitBefore) => {
537
537
  function getAnimatableNone$1(v) {
538
538
  const info = analyseComplexValue(v);
539
539
  const transformer = buildTransformer(info);
540
- return transformer(info.values.map((value, i) => convertToZero(value, info.split[i])));
540
+ return transformer(info.values.map((value, i2) => convertToZero(value, info.split[i2])));
541
541
  }
542
542
  const complex = {
543
543
  test,
@@ -646,10 +646,10 @@ function getMixer(a2) {
646
646
  function mixArray(a2, b2) {
647
647
  const output = [...a2];
648
648
  const numValues = output.length;
649
- const blendValue = a2.map((v, i) => getMixer(v)(v, b2[i]));
649
+ const blendValue = a2.map((v, i2) => getMixer(v)(v, b2[i2]));
650
650
  return (p) => {
651
- for (let i = 0; i < numValues; i++) {
652
- output[i] = blendValue[i](p);
651
+ for (let i2 = 0; i2 < numValues; i2++) {
652
+ output[i2] = blendValue[i2](p);
653
653
  }
654
654
  return output;
655
655
  };
@@ -672,11 +672,11 @@ function mixObject(a2, b2) {
672
672
  function matchOrder(origin, target) {
673
673
  const orderedOrigin = [];
674
674
  const pointers = { color: 0, var: 0, number: 0 };
675
- for (let i = 0; i < target.values.length; i++) {
676
- const type = target.types[i];
675
+ for (let i2 = 0; i2 < target.values.length; i2++) {
676
+ const type = target.types[i2];
677
677
  const originIndex = origin.indexes[type][pointers[type]];
678
678
  const originValue = origin.values[originIndex] ?? 0;
679
- orderedOrigin[i] = originValue;
679
+ orderedOrigin[i2] = originValue;
680
680
  pointers[type]++;
681
681
  }
682
682
  return orderedOrigin;
@@ -718,8 +718,8 @@ const frameloopDriver = (update) => {
718
718
  const generateLinearEasing = (easing, duration, resolution = 10) => {
719
719
  let points = "";
720
720
  const numPoints = Math.max(Math.round(duration / resolution), 2);
721
- for (let i = 0; i < numPoints; i++) {
722
- points += Math.round(easing(i / (numPoints - 1)) * 1e4) / 1e4 + ", ";
721
+ for (let i2 = 0; i2 < numPoints; i2++) {
722
+ points += Math.round(easing(i2 / (numPoints - 1)) * 1e4) / 1e4 + ", ";
723
723
  }
724
724
  return `linear(${points.substring(0, points.length - 2)})`;
725
725
  };
@@ -780,7 +780,7 @@ function calcAngularFreq(undampedFreq, dampingRatio) {
780
780
  const rootIterations = 12;
781
781
  function approximateRoot(envelope, derivative, initialGuess) {
782
782
  let result = initialGuess;
783
- for (let i = 1; i < rootIterations; i++) {
783
+ for (let i2 = 1; i2 < rootIterations; i2++) {
784
784
  result = result - envelope(result) / derivative(result);
785
785
  }
786
786
  return result;
@@ -799,18 +799,18 @@ function findSpring({ duration = springDefaults.duration, bounce = springDefault
799
799
  const delta = exponentialDecay * duration;
800
800
  const a2 = exponentialDecay - velocity;
801
801
  const b2 = calcAngularFreq(undampedFreq2, dampingRatio);
802
- const c = Math.exp(-delta);
803
- return safeMin - a2 / b2 * c;
802
+ const c2 = Math.exp(-delta);
803
+ return safeMin - a2 / b2 * c2;
804
804
  };
805
805
  derivative = (undampedFreq2) => {
806
806
  const exponentialDecay = undampedFreq2 * dampingRatio;
807
807
  const delta = exponentialDecay * duration;
808
- const d = delta * velocity + velocity;
809
- const e = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq2, 2) * duration;
808
+ const d2 = delta * velocity + velocity;
809
+ const e2 = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq2, 2) * duration;
810
810
  const f2 = Math.exp(-delta);
811
- const g = calcAngularFreq(Math.pow(undampedFreq2, 2), dampingRatio);
811
+ const g2 = calcAngularFreq(Math.pow(undampedFreq2, 2), dampingRatio);
812
812
  const factor = -envelope(undampedFreq2) + safeMin > 0 ? -1 : 1;
813
- return factor * ((d - e) * f2) / g;
813
+ return factor * ((d2 - e2) * f2) / g2;
814
814
  };
815
815
  } else {
816
816
  envelope = (undampedFreq2) => {
@@ -1053,10 +1053,10 @@ function createMixers(output, ease2, customMixer) {
1053
1053
  const mixers = [];
1054
1054
  const mixerFactory = customMixer || MotionGlobalConfig.mix || mix;
1055
1055
  const numMixers = output.length - 1;
1056
- for (let i = 0; i < numMixers; i++) {
1057
- let mixer = mixerFactory(output[i], output[i + 1]);
1056
+ for (let i2 = 0; i2 < numMixers; i2++) {
1057
+ let mixer = mixerFactory(output[i2], output[i2 + 1]);
1058
1058
  if (ease2) {
1059
- const easingFunction = Array.isArray(ease2) ? ease2[i] || noop : ease2;
1059
+ const easingFunction = Array.isArray(ease2) ? ease2[i2] || noop : ease2;
1060
1060
  mixer = pipe(easingFunction, mixer);
1061
1061
  }
1062
1062
  mixers.push(mixer);
@@ -1080,22 +1080,22 @@ function interpolate(input, output, { clamp: isClamp = true, ease: ease2, mixer
1080
1080
  const interpolator = (v) => {
1081
1081
  if (isZeroDeltaRange && v < input[0])
1082
1082
  return output[0];
1083
- let i = 0;
1083
+ let i2 = 0;
1084
1084
  if (numMixers > 1) {
1085
- for (; i < input.length - 2; i++) {
1086
- if (v < input[i + 1])
1085
+ for (; i2 < input.length - 2; i2++) {
1086
+ if (v < input[i2 + 1])
1087
1087
  break;
1088
1088
  }
1089
1089
  }
1090
- const progressInRange = /* @__PURE__ */ progress(input[i], input[i + 1], v);
1091
- return mixers[i](progressInRange);
1090
+ const progressInRange = /* @__PURE__ */ progress(input[i2], input[i2 + 1], v);
1091
+ return mixers[i2](progressInRange);
1092
1092
  };
1093
1093
  return isClamp ? (v) => interpolator(clamp(input[0], input[inputLength - 1], v)) : interpolator;
1094
1094
  }
1095
1095
  function fillOffset(offset, remaining) {
1096
1096
  const min = offset[offset.length - 1];
1097
- for (let i = 1; i <= remaining; i++) {
1098
- const offsetProgress = /* @__PURE__ */ progress(0, remaining, i);
1097
+ for (let i2 = 1; i2 <= remaining; i2++) {
1098
+ const offsetProgress = /* @__PURE__ */ progress(0, remaining, i2);
1099
1099
  offset.push(mixNumber$1(min, 1, offsetProgress));
1100
1100
  }
1101
1101
  }
@@ -1455,8 +1455,8 @@ class JSAnimation extends WithPromise {
1455
1455
  }
1456
1456
  }
1457
1457
  function fillWildcards(keyframes2) {
1458
- for (let i = 1; i < keyframes2.length; i++) {
1459
- keyframes2[i] ?? (keyframes2[i] = keyframes2[i - 1]);
1458
+ for (let i2 = 1; i2 < keyframes2.length; i2++) {
1459
+ keyframes2[i2] ?? (keyframes2[i2] = keyframes2[i2 - 1]);
1460
1460
  }
1461
1461
  }
1462
1462
  const radToDeg = (rad) => rad * 180 / Math.PI;
@@ -1728,12 +1728,12 @@ const supportsScrollTimeline = /* @__PURE__ */ memoSupports(() => window.ScrollT
1728
1728
  const supportsLinearEasing = /* @__PURE__ */ memoSupports(() => {
1729
1729
  try {
1730
1730
  document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
1731
- } catch (e) {
1731
+ } catch (e2) {
1732
1732
  return false;
1733
1733
  }
1734
1734
  return true;
1735
1735
  }, "linearEasing");
1736
- const cubicBezierAsString = ([a2, b2, c, d]) => `cubic-bezier(${a2}, ${b2}, ${c}, ${d})`;
1736
+ const cubicBezierAsString = ([a2, b2, c2, d2]) => `cubic-bezier(${a2}, ${b2}, ${c2}, ${d2})`;
1737
1737
  const supportedWaapiEasing = {
1738
1738
  linear: "linear",
1739
1739
  ease: "ease",
@@ -1841,7 +1841,7 @@ class NativeAnimation extends WithPromise {
1841
1841
  cancel() {
1842
1842
  try {
1843
1843
  this.animation.cancel();
1844
- } catch (e) {
1844
+ } catch (e2) {
1845
1845
  }
1846
1846
  }
1847
1847
  stop() {
@@ -2009,8 +2009,8 @@ function hasKeyframesChanged(keyframes2) {
2009
2009
  const current = keyframes2[0];
2010
2010
  if (keyframes2.length === 1)
2011
2011
  return true;
2012
- for (let i = 0; i < keyframes2.length; i++) {
2013
- if (keyframes2[i] !== current)
2012
+ for (let i2 = 0; i2 < keyframes2.length; i2++) {
2013
+ if (keyframes2[i2] !== current)
2014
2014
  return true;
2015
2015
  }
2016
2016
  }
@@ -2043,8 +2043,8 @@ const acceleratedValues = /* @__PURE__ */ new Set([
2043
2043
  ]);
2044
2044
  const browserColorFunctions = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
2045
2045
  function hasBrowserOnlyColors(keyframes2) {
2046
- for (let i = 0; i < keyframes2.length; i++) {
2047
- if (typeof keyframes2[i] === "string" && browserColorFunctions.test(keyframes2[i])) {
2046
+ for (let i2 = 0; i2 < keyframes2.length; i2++) {
2047
+ if (typeof keyframes2[i2] === "string" && browserColorFunctions.test(keyframes2[i2])) {
2048
2048
  return true;
2049
2049
  }
2050
2050
  }
@@ -3011,14 +3011,14 @@ function getAnimatableNone(key, value) {
3011
3011
  }
3012
3012
  const invalidTemplates = /* @__PURE__ */ new Set(["auto", "none", "0"]);
3013
3013
  function makeNoneKeyframesAnimatable(unresolvedKeyframes, noneKeyframeIndexes, name) {
3014
- let i = 0;
3014
+ let i2 = 0;
3015
3015
  let animatableTemplate = void 0;
3016
- while (i < unresolvedKeyframes.length && !animatableTemplate) {
3017
- const keyframe = unresolvedKeyframes[i];
3016
+ while (i2 < unresolvedKeyframes.length && !animatableTemplate) {
3017
+ const keyframe = unresolvedKeyframes[i2];
3018
3018
  if (typeof keyframe === "string" && !invalidTemplates.has(keyframe) && analyseComplexValue(keyframe).values.length) {
3019
- animatableTemplate = unresolvedKeyframes[i];
3019
+ animatableTemplate = unresolvedKeyframes[i2];
3020
3020
  }
3021
- i++;
3021
+ i2++;
3022
3022
  }
3023
3023
  if (animatableTemplate && name) {
3024
3024
  for (const noneIndex of noneKeyframeIndexes) {
@@ -3035,16 +3035,16 @@ class DOMKeyframesResolver extends KeyframeResolver {
3035
3035
  if (!element || !element.current)
3036
3036
  return;
3037
3037
  super.readKeyframes();
3038
- for (let i = 0; i < unresolvedKeyframes.length; i++) {
3039
- let keyframe = unresolvedKeyframes[i];
3038
+ for (let i2 = 0; i2 < unresolvedKeyframes.length; i2++) {
3039
+ let keyframe = unresolvedKeyframes[i2];
3040
3040
  if (typeof keyframe === "string") {
3041
3041
  keyframe = keyframe.trim();
3042
3042
  if (isCSSVariableToken(keyframe)) {
3043
3043
  const resolved = getVariableValue(keyframe, element.current);
3044
3044
  if (resolved !== void 0) {
3045
- unresolvedKeyframes[i] = resolved;
3045
+ unresolvedKeyframes[i2] = resolved;
3046
3046
  }
3047
- if (i === unresolvedKeyframes.length - 1) {
3047
+ if (i2 === unresolvedKeyframes.length - 1) {
3048
3048
  this.finalKeyframe = keyframe;
3049
3049
  }
3050
3050
  }
@@ -3066,10 +3066,10 @@ class DOMKeyframesResolver extends KeyframeResolver {
3066
3066
  if (originType === targetType)
3067
3067
  return;
3068
3068
  if (isNumOrPxType(originType) && isNumOrPxType(targetType)) {
3069
- for (let i = 0; i < unresolvedKeyframes.length; i++) {
3070
- const value = unresolvedKeyframes[i];
3069
+ for (let i2 = 0; i2 < unresolvedKeyframes.length; i2++) {
3070
+ const value = unresolvedKeyframes[i2];
3071
3071
  if (typeof value === "string") {
3072
- unresolvedKeyframes[i] = parseFloat(value);
3072
+ unresolvedKeyframes[i2] = parseFloat(value);
3073
3073
  }
3074
3074
  }
3075
3075
  } else if (positionalValues[name]) {
@@ -3079,9 +3079,9 @@ class DOMKeyframesResolver extends KeyframeResolver {
3079
3079
  resolveNoneKeyframes() {
3080
3080
  const { unresolvedKeyframes, name } = this;
3081
3081
  const noneKeyframeIndexes = [];
3082
- for (let i = 0; i < unresolvedKeyframes.length; i++) {
3083
- if (unresolvedKeyframes[i] === null || isNone(unresolvedKeyframes[i])) {
3084
- noneKeyframeIndexes.push(i);
3082
+ for (let i2 = 0; i2 < unresolvedKeyframes.length; i2++) {
3083
+ if (unresolvedKeyframes[i2] === null || isNone(unresolvedKeyframes[i2])) {
3084
+ noneKeyframeIndexes.push(i2);
3085
3085
  }
3086
3086
  }
3087
3087
  if (noneKeyframeIndexes.length) {
@@ -3778,8 +3778,8 @@ class VisualElement {
3778
3778
  this.props = props;
3779
3779
  this.prevPresenceContext = this.presenceContext;
3780
3780
  this.presenceContext = presenceContext;
3781
- for (let i = 0; i < propEventHandlers.length; i++) {
3782
- const key = propEventHandlers[i];
3781
+ for (let i2 = 0; i2 < propEventHandlers.length; i2++) {
3782
+ const key = propEventHandlers[i2];
3783
3783
  if (this.propEventSubscriptions[key]) {
3784
3784
  this.propEventSubscriptions[key]();
3785
3785
  delete this.propEventSubscriptions[key];
@@ -4032,8 +4032,8 @@ function applyTreeDeltas(box, treeScale, treePath, isSharedTransition = false) {
4032
4032
  treeScale.x = treeScale.y = 1;
4033
4033
  let node;
4034
4034
  let delta;
4035
- for (let i = 0; i < treeLength; i++) {
4036
- node = treePath[i];
4035
+ for (let i2 = 0; i2 < treeLength; i2++) {
4036
+ node = treePath[i2];
4037
4037
  delta = node.projectionDelta;
4038
4038
  const { visualElement } = node.options;
4039
4039
  if (visualElement && visualElement.props.style && visualElement.props.style.display === "contents") {
@@ -4100,8 +4100,8 @@ const numTransforms = transformPropOrder.length;
4100
4100
  function buildTransform(latestValues, transform, transformTemplate) {
4101
4101
  let transformString = "";
4102
4102
  let transformIsDefault = true;
4103
- for (let i = 0; i < numTransforms; i++) {
4104
- const key = transformPropOrder[i];
4103
+ for (let i2 = 0; i2 < numTransforms; i2++) {
4104
+ const key = transformPropOrder[i2];
4105
4105
  const value = latestValues[key];
4106
4106
  if (value === void 0)
4107
4107
  continue;
@@ -4436,8 +4436,8 @@ function getVariantContext(visualElement) {
4436
4436
  return context2;
4437
4437
  }
4438
4438
  const context = {};
4439
- for (let i = 0; i < numVariantProps; i++) {
4440
- const name = variantProps[i];
4439
+ for (let i2 = 0; i2 < numVariantProps; i2++) {
4440
+ const name = variantProps[i2];
4441
4441
  const prop = visualElement.props[name];
4442
4442
  if (isVariantLabel(prop) || prop === false) {
4443
4443
  context[name] = prop;
@@ -4451,8 +4451,8 @@ function shallowCompare(next, prev) {
4451
4451
  const prevLength = prev.length;
4452
4452
  if (prevLength !== next.length)
4453
4453
  return false;
4454
- for (let i = 0; i < prevLength; i++) {
4455
- if (prev[i] !== next[i])
4454
+ for (let i2 = 0; i2 < prevLength; i2++) {
4455
+ if (prev[i2] !== next[i2])
4456
4456
  return false;
4457
4457
  }
4458
4458
  return true;
@@ -4487,14 +4487,14 @@ function createAnimationState(visualElement) {
4487
4487
  const removedKeys = /* @__PURE__ */ new Set();
4488
4488
  let encounteredKeys = {};
4489
4489
  let removedVariantIndex = Infinity;
4490
- for (let i = 0; i < numAnimationTypes; i++) {
4491
- const type = reversePriorityOrder[i];
4490
+ for (let i2 = 0; i2 < numAnimationTypes; i2++) {
4491
+ const type = reversePriorityOrder[i2];
4492
4492
  const typeState = state[type];
4493
4493
  const prop = props[type] !== void 0 ? props[type] : context[type];
4494
4494
  const propIsVariant = isVariantLabel(prop);
4495
4495
  const activeDelta = type === changedActiveType ? typeState.isActive : null;
4496
4496
  if (activeDelta === false)
4497
- removedVariantIndex = i;
4497
+ removedVariantIndex = i2;
4498
4498
  let isInherited = prop === context[type] && prop !== props[type] && propIsVariant;
4499
4499
  if (isInherited && (isInitialRender || wasReset) && visualElement.manuallyAnimateOnMount) {
4500
4500
  isInherited = false;
@@ -4520,7 +4520,7 @@ function createAnimationState(visualElement) {
4520
4520
  const variantDidChange = checkVariantsDidChange(typeState.prevProp, prop);
4521
4521
  let shouldAnimateType = variantDidChange || // If we're making this variant active, we want to always make it active
4522
4522
  type === changedActiveType && typeState.isActive && !isInherited && propIsVariant || // If we removed a higher-priority variant (i is in reverse order)
4523
- i > removedVariantIndex && propIsVariant;
4523
+ i2 > removedVariantIndex && propIsVariant;
4524
4524
  let handledRemovedValues = false;
4525
4525
  const definitionList = Array.isArray(prop) ? prop : [prop];
4526
4526
  let resolvedValues = definitionList.reduce(buildResolvedTypeValues(type), {});
@@ -4830,8 +4830,8 @@ function mixValues(target, follow, lead, progress2, shouldCrossfadeOpacity, isOn
4830
4830
  } else if (isOnlyMember) {
4831
4831
  target.opacity = mixNumber$1(follow.opacity ?? 1, lead.opacity ?? 1, progress2);
4832
4832
  }
4833
- for (let i = 0; i < numBorders; i++) {
4834
- const borderLabel = cornerRadiusProps[i];
4833
+ for (let i2 = 0; i2 < numBorders; i2++) {
4834
+ const borderLabel = cornerRadiusProps[i2];
4835
4835
  let followRadius = getRadius(follow, borderLabel);
4836
4836
  let leadRadius = getRadius(lead, borderLabel);
4837
4837
  if (followRadius === void 0 && leadRadius === void 0)
@@ -4916,8 +4916,8 @@ class NodeStack {
4916
4916
  }
4917
4917
  add(node) {
4918
4918
  addUniqueItem(this.members, node);
4919
- for (let i = this.members.length - 1; i >= 0; i--) {
4920
- const member = this.members[i];
4919
+ for (let i2 = this.members.length - 1; i2 >= 0; i2--) {
4920
+ const member = this.members[i2];
4921
4921
  if (member === node || member === this.lead || member === this.prevLead)
4922
4922
  continue;
4923
4923
  const inst = member.instance;
@@ -4939,8 +4939,8 @@ class NodeStack {
4939
4939
  }
4940
4940
  }
4941
4941
  relegate(node) {
4942
- for (let i = this.members.indexOf(node) - 1; i >= 0; i--) {
4943
- const member = this.members[i];
4942
+ for (let i2 = this.members.indexOf(node) - 1; i2 >= 0; i2--) {
4943
+ const member = this.members[i2];
4944
4944
  if (member.isPresent !== false && member.instance?.isConnected !== false) {
4945
4945
  this.promote(member);
4946
4946
  return true;
@@ -5083,8 +5083,8 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
5083
5083
  this.path = parent ? [...parent.path, parent] : [];
5084
5084
  this.parent = parent;
5085
5085
  this.depth = parent ? parent.depth + 1 : 0;
5086
- for (let i = 0; i < this.path.length; i++) {
5087
- this.path[i].shouldResetTransform = true;
5086
+ for (let i2 = 0; i2 < this.path.length; i2++) {
5087
+ this.path[i2].shouldResetTransform = true;
5088
5088
  }
5089
5089
  if (this.root === this)
5090
5090
  this.nodes = new FlatTree();
@@ -5230,8 +5230,8 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
5230
5230
  if (this.isLayoutDirty)
5231
5231
  return;
5232
5232
  this.isLayoutDirty = true;
5233
- for (let i = 0; i < this.path.length; i++) {
5234
- const node = this.path[i];
5233
+ for (let i2 = 0; i2 < this.path.length; i2++) {
5234
+ const node = this.path[i2];
5235
5235
  node.shouldResetTransform = true;
5236
5236
  if (typeof node.latestValues.x === "string" || typeof node.latestValues.y === "string") {
5237
5237
  node.isLayoutDirty = true;
@@ -5331,8 +5331,8 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
5331
5331
  return;
5332
5332
  }
5333
5333
  if (this.resumeFrom && !this.resumeFrom.instance) {
5334
- for (let i = 0; i < this.path.length; i++) {
5335
- const node = this.path[i];
5334
+ for (let i2 = 0; i2 < this.path.length; i2++) {
5335
+ const node = this.path[i2];
5336
5336
  node.updateScroll();
5337
5337
  }
5338
5338
  }
@@ -5413,8 +5413,8 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
5413
5413
  if (this.scroll?.wasRoot) {
5414
5414
  return boxWithoutScroll;
5415
5415
  }
5416
- for (let i = 0; i < this.path.length; i++) {
5417
- const node = this.path[i];
5416
+ for (let i2 = 0; i2 < this.path.length; i2++) {
5417
+ const node = this.path[i2];
5418
5418
  const { scroll, options } = node;
5419
5419
  if (node !== this.root && scroll && options.layoutScroll) {
5420
5420
  if (scroll.wasRoot) {
@@ -5429,8 +5429,8 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
5429
5429
  applyTransform(box, transformOnly = false, output) {
5430
5430
  const withTransforms = output || createBox();
5431
5431
  copyBoxInto(withTransforms, box);
5432
- for (let i = 0; i < this.path.length; i++) {
5433
- const node = this.path[i];
5432
+ for (let i2 = 0; i2 < this.path.length; i2++) {
5433
+ const node = this.path[i2];
5434
5434
  if (!transformOnly && node.options.layoutScroll && node.scroll && node !== node.root) {
5435
5435
  translateAxis(withTransforms.x, -node.scroll.offset.x);
5436
5436
  translateAxis(withTransforms.y, -node.scroll.offset.y);
@@ -5447,8 +5447,8 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
5447
5447
  removeTransform(box) {
5448
5448
  const boxWithoutTransform = createBox();
5449
5449
  copyBoxInto(boxWithoutTransform, box);
5450
- for (let i = 0; i < this.path.length; i++) {
5451
- const node = this.path[i];
5450
+ for (let i2 = 0; i2 < this.path.length; i2++) {
5451
+ const node = this.path[i2];
5452
5452
  if (!hasTransform(node.latestValues))
5453
5453
  continue;
5454
5454
  let sourceBox;
@@ -5831,9 +5831,9 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
5831
5831
  if (latestValues.z) {
5832
5832
  resetDistortingTransform("z", visualElement, resetValues, this.animationValues);
5833
5833
  }
5834
- for (let i = 0; i < transformAxes.length; i++) {
5835
- resetDistortingTransform(`rotate${transformAxes[i]}`, visualElement, resetValues, this.animationValues);
5836
- resetDistortingTransform(`skew${transformAxes[i]}`, visualElement, resetValues, this.animationValues);
5834
+ for (let i2 = 0; i2 < transformAxes.length; i2++) {
5835
+ resetDistortingTransform(`rotate${transformAxes[i2]}`, visualElement, resetValues, this.animationValues);
5836
+ resetDistortingTransform(`skew${transformAxes[i2]}`, visualElement, resetValues, this.animationValues);
5837
5837
  }
5838
5838
  visualElement.render();
5839
5839
  for (const key in resetValues) {
@@ -5894,8 +5894,8 @@ function createProjectionNode$1({ attachResizeListener, defaultParent, measureSc
5894
5894
  const corrected = transform === "none" ? valuesToRender[key] : correct(valuesToRender[key], lead);
5895
5895
  if (applyTo) {
5896
5896
  const num = applyTo.length;
5897
- for (let i = 0; i < num; i++) {
5898
- targetStyle[applyTo[i]] = corrected;
5897
+ for (let i2 = 0; i2 < num; i2++) {
5898
+ targetStyle[applyTo[i2]] = corrected;
5899
5899
  }
5900
5900
  } else {
5901
5901
  if (isCSSVariable) {
@@ -6415,8 +6415,8 @@ function makeLatestValues(props, context, presenceContext, scrapeMotionValues) {
6415
6415
  const variantToSet = isInitialAnimationBlocked ? animate : initial;
6416
6416
  if (variantToSet && typeof variantToSet !== "boolean" && !isAnimationControls(variantToSet)) {
6417
6417
  const list = Array.isArray(variantToSet) ? variantToSet : [variantToSet];
6418
- for (let i = 0; i < list.length; i++) {
6419
- const resolved = resolveVariantFromProps(props, list[i]);
6418
+ for (let i2 = 0; i2 < list.length; i2++) {
6419
+ const resolved = resolveVariantFromProps(props, list[i2]);
6420
6420
  if (resolved) {
6421
6421
  const { transitionEnd, transition, ...target } = resolved;
6422
6422
  for (const key in target) {
@@ -6958,15 +6958,15 @@ function getVelocity(history, timeDelta) {
6958
6958
  if (history.length < 2) {
6959
6959
  return { x: 0, y: 0 };
6960
6960
  }
6961
- let i = history.length - 1;
6961
+ let i2 = history.length - 1;
6962
6962
  let timestampedPoint = null;
6963
6963
  const lastPoint = lastDevicePoint(history);
6964
- while (i >= 0) {
6965
- timestampedPoint = history[i];
6964
+ while (i2 >= 0) {
6965
+ timestampedPoint = history[i2];
6966
6966
  if (lastPoint.timestamp - timestampedPoint.timestamp > /* @__PURE__ */ secondsToMilliseconds(timeDelta)) {
6967
6967
  break;
6968
6968
  }
6969
- i--;
6969
+ i2--;
6970
6970
  }
6971
6971
  if (!timestampedPoint) {
6972
6972
  return { x: 0, y: 0 };
@@ -7689,7 +7689,7 @@ class FocusGesture extends Feature {
7689
7689
  let isFocusVisible = false;
7690
7690
  try {
7691
7691
  isFocusVisible = this.node.current.matches(":focus-visible");
7692
- } catch (e) {
7692
+ } catch (e2) {
7693
7693
  isFocusVisible = true;
7694
7694
  }
7695
7695
  if (!isFocusVisible || !this.node.animationState)
@@ -7861,11 +7861,11 @@ const SidebarItemContainer = ({
7861
7861
  }) => {
7862
7862
  const [open, setOpen] = useState(true);
7863
7863
  useEffect(() => {
7864
- const handleEvent = (e) => {
7865
- setOpen(e.detail.open === "toggle" ? !open : e.detail.open);
7864
+ const handleEvent = (e2) => {
7865
+ setOpen(e2.detail.open === "toggle" ? !open : e2.detail.open);
7866
7866
  };
7867
- window.addEventListener("toggle-blog-sidebar", (e) => {
7868
- handleEvent(e);
7867
+ window.addEventListener("toggle-blog-sidebar", (e2) => {
7868
+ handleEvent(e2);
7869
7869
  });
7870
7870
  return () => {
7871
7871
  window.removeEventListener("toggle-blog-sidebar", handleEvent);
@@ -7989,15 +7989,26 @@ const SidebarToggleButton = () => {
7989
7989
  };
7990
7990
  SidebarToggleButton.displayName = "SidebarToggleButton";
7991
7991
  export {
7992
- B as BlogIndex,
7993
- a as BlogPostRow,
7994
- b as BlogSubjectNav,
7995
- F as FeaturedBlogPost,
7992
+ B as BlogBreadcrumb,
7993
+ a as BlogIndex,
7994
+ b as BlogLeadPost,
7995
+ c as BlogPostEntry,
7996
+ d as BlogPostNav,
7997
+ e as BlogShell,
7998
+ f as BlogSidebar,
7999
+ N as NO_SUBJECT,
7996
8000
  SidebarItemContainer,
7997
8001
  SidebarItemPanel,
7998
8002
  SidebarToggleButton,
7999
- f as firstImage,
8003
+ g as blogFilterFromSearchParams,
8004
+ h as blogFilterUrl,
8005
+ i as createBlogModel,
8006
+ j as filterBlogPosts,
8007
+ k as firstImage,
8008
+ l as htmlToPlainText,
8009
+ m as isFiltering,
8000
8010
  r as readingMinutes,
8001
- s as summarizeBlogPost
8011
+ s as subjectColorFromName,
8012
+ n as summarizeBlogPost
8002
8013
  };
8003
8014
  //# sourceMappingURL=uiBlog.mjs.map