@popcraft/kit 1.2.2 → 1.3.0

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 (92) hide show
  1. package/dist/chunks/{agent-A7BOM22T.js → agent-FBOFA4L2.js} +1 -1
  2. package/dist/chunks/{builtin-AOXFUXCD.js → builtin-UNS7IRTZ.js} +3 -3
  3. package/dist/chunks/{buy-credits-EJCPC5V7.js → buy-credits-37KIF2FX.js} +2 -2
  4. package/dist/chunks/{check-template-V5U2PC6J.js → check-template-NTW22VNY.js} +2 -2
  5. package/dist/chunks/{chunk-33CFABZ2.js → chunk-2CMHDBFD.js} +43 -43
  6. package/dist/chunks/{chunk-X4B7SE3J.js → chunk-2ISMXQZH.js} +1 -1
  7. package/dist/chunks/{chunk-VV7HKDNH.js → chunk-4WOODRGC.js} +4 -4
  8. package/dist/chunks/{chunk-BOIBQ7MZ.js → chunk-5OKROQS5.js} +2 -2
  9. package/dist/chunks/{chunk-JZM5HWEX.js → chunk-6QIOHC6D.js} +1 -1
  10. package/dist/chunks/{chunk-OV2W3YJU.js → chunk-7ETSVZDD.js} +5 -5
  11. package/dist/chunks/{chunk-6RIRRH4P.js → chunk-7KJGH5DA.js} +3 -3
  12. package/dist/chunks/{chunk-JY7KJGXS.js → chunk-AIF72RXH.js} +8 -10
  13. package/dist/chunks/{chunk-JCV2E7HJ.js → chunk-BOJUI3OG.js} +20 -17
  14. package/dist/chunks/{chunk-DWEPCHQV.js → chunk-EA7WPVPB.js} +11 -11
  15. package/dist/chunks/{chunk-3UBIOYSA.js → chunk-EOER2JCK.js} +9 -9
  16. package/dist/chunks/{chunk-CVZA6HPL.js → chunk-FSM6RE22.js} +139 -4
  17. package/dist/chunks/{chunk-7CEUBEEL.js → chunk-GJXUDC7M.js} +40 -24
  18. package/dist/chunks/{chunk-MJVFENH4.js → chunk-HCFZGHJQ.js} +3 -3
  19. package/dist/chunks/{chunk-EUKKWV3G.js → chunk-IO6ER43U.js} +1 -1
  20. package/dist/chunks/{chunk-A72CYF2R.js → chunk-J3BR4XR7.js} +1 -1
  21. package/dist/chunks/{chunk-NPUNFQF3.js → chunk-JKYYRNHA.js} +6 -6
  22. package/dist/chunks/{chunk-24ZYL3SN.js → chunk-LEUINJWK.js} +1 -1
  23. package/dist/chunks/{chunk-SRY4ZWCH.js → chunk-LP7KEPZV.js} +3 -3
  24. package/dist/chunks/{chunk-HDSIM2CO.js → chunk-MBNDFL52.js} +2 -2
  25. package/dist/chunks/{chunk-C22ZRLC7.js → chunk-MRYCR76X.js} +5 -5
  26. package/dist/chunks/{chunk-KSNXRXZE.js → chunk-O2IDQSID.js} +1 -1
  27. package/dist/chunks/{chunk-M5ETLHVZ.js → chunk-ORSEXNAN.js} +2 -2
  28. package/dist/chunks/{chunk-WIQJ4QRA.js → chunk-OZDD4X2Z.js} +1 -1
  29. package/dist/chunks/{chunk-F7TJGTY6.js → chunk-QLMN2B6V.js} +2 -2
  30. package/dist/chunks/{chunk-S3LCCBYA.js → chunk-SYM2BMBO.js} +5 -5
  31. package/dist/chunks/{chunk-QTBLWSUJ.js → chunk-TEJDLWJQ.js} +1 -1
  32. package/dist/chunks/{chunk-FIJDYPTN.js → chunk-TMSCTWTK.js} +1 -1
  33. package/dist/chunks/{chunk-HSBUM7AM.js → chunk-TR73N5K3.js} +2 -2
  34. package/dist/chunks/{chunk-GZN3CWWE.js → chunk-UVHQ6OC6.js} +5 -5
  35. package/dist/chunks/{chunk-6S57YBJX.js → chunk-VH7BAQHO.js} +3 -1
  36. package/dist/chunks/{chunk-KA2MGAQJ.js → chunk-WLNCMP4R.js} +4 -4
  37. package/dist/chunks/{chunk-TPLD3ZO5.js → chunk-XPXDYITB.js} +1 -1
  38. package/dist/chunks/{client-ATCRQ4Z2.js → client-3O4IP7IV.js} +2 -2
  39. package/dist/chunks/{client-FKUY77S6.js → client-MGVU6BYH.js} +1 -1
  40. package/dist/chunks/{client-LD6UEIKF.js → client-NN7D5KOY.js} +3 -3
  41. package/dist/chunks/{client-actions-5ZFSAP4E.js → client-actions-EGFPGDRF.js} +5 -5
  42. package/dist/chunks/{dangerous-C7S2EUYQ.js → dangerous-KA4XBNPQ.js} +3 -3
  43. package/dist/chunks/{delete-current-file-BV4SUOBR.js → delete-current-file-JWRQEJD7.js} +5 -5
  44. package/dist/chunks/{editor-seams-Y5E3HJSY.js → editor-seams-SVNNJYML.js} +12 -12
  45. package/dist/chunks/{editor-store-JQA3IFQ4.js → editor-store-F55ZEWJH.js} +1 -1
  46. package/dist/chunks/{export-watermark-YUXHSEHB.js → export-watermark-2JR3IBVA.js} +5 -5
  47. package/dist/chunks/{eyedropper-OTQO5UFY.js → eyedropper-6GKVVVEE.js} +1 -1
  48. package/dist/chunks/{generate-media-4YZWLMG5.js → generate-media-XPID2HER.js} +3 -3
  49. package/dist/chunks/{host-SV2ZGKB3.js → host-I6KIHIVJ.js} +6 -6
  50. package/dist/chunks/{integrations-2J5ACHB3.js → integrations-QLSOUP5Z.js} +1 -1
  51. package/dist/chunks/{libraries-5WFWU4EA.js → libraries-AS5KS6VS.js} +5 -5
  52. package/dist/chunks/{live-7CTGJ4VD.js → live-ZQRP46FK.js} +1 -1
  53. package/dist/chunks/{media-tool-IHV3MK22.js → media-tool-M33SALHX.js} +1 -1
  54. package/dist/chunks/{new-file-Z5VURBEJ.js → new-file-J7EH3YKS.js} +3 -3
  55. package/dist/chunks/{next-commerce-BAVLRG73.js → next-commerce-7KAFFBWA.js} +2 -2
  56. package/dist/chunks/{plugin-MTBJ57I6.js → plugin-IQEMDPM3.js} +2 -2
  57. package/dist/chunks/{plugin-import-OW37E42K.js → plugin-import-EILLZJLX.js} +16 -16
  58. package/dist/chunks/{presence-AGLEN24G.js → presence-IJN6TO2U.js} +2 -2
  59. package/dist/chunks/{project-D3353YKF.js → project-GOALAIWW.js} +1 -1
  60. package/dist/chunks/{publish-site-ATYXDIV6.js → publish-site-I5BQK7VR.js} +6 -6
  61. package/dist/chunks/{publish-store-3LC6WJ4I.js → publish-store-WDLIOS5E.js} +5 -5
  62. package/dist/chunks/{raster-actions-IKOFMSP3.js → raster-actions-7CCO2RS5.js} +1 -1
  63. package/dist/chunks/{runner-66VO3EOK.js → runner-535UPLGO.js} +18 -18
  64. package/dist/chunks/{store-VLXBAKCI.js → store-J33GD3OK.js} +6 -6
  65. package/dist/chunks/{storefront-6LO77DYV.js → storefront-VZ5JGP6Q.js} +2 -2
  66. package/dist/chunks/{sync-E2ZSQO7W.js → sync-LN254R24.js} +5 -5
  67. package/dist/chunks/{tabs-UF4G2SFX.js → tabs-SRMAPWDX.js} +8 -8
  68. package/dist/chunks/{team-ZEB7U5XZ.js → team-P7EP6HAH.js} +1 -1
  69. package/dist/chunks/{team-client-GFSAI3BD.js → team-client-ATTL4BUG.js} +1 -1
  70. package/dist/chunks/{tools-AJX5HK2L.js → tools-F566WZLK.js} +2 -2
  71. package/dist/chunks/{ui-commands-IO47EC2X.js → ui-commands-2E6YO3G7.js} +12 -12
  72. package/dist/chunks/{versions-QBEREZYR.js → versions-ZSGH7ZJN.js} +5 -5
  73. package/dist/index.js +1 -1
  74. package/dist/templates/count.js +1 -1
  75. package/dist/templates/index.js +12 -12
  76. package/dist/templates/motion/landing-hero/index.js +4 -4
  77. package/dist/templates/motion/launch-trailer/document.js +12 -12
  78. package/dist/templates/motion/launch-trailer/index.js +4 -4
  79. package/dist/templates/motion/launch-trailer/scenes.js +3 -3
  80. package/dist/templates/motion/template-wall.js +2 -2
  81. package/dist/templates/print/knit-christmas-tree-sweater.js +2 -2
  82. package/dist/templates/print/knit-nordic-snowflake-sweater.js +2 -2
  83. package/dist/templates/print/knit-shared.js +3 -1
  84. package/dist/templates/print/knit-snowflake-beanie.js +2 -2
  85. package/dist/templates/themes/holidays.js +5 -5
  86. package/dist/templates/themes/index.js +6 -6
  87. package/package.json +1 -1
  88. package/src/templates/print/knit-christmas-tree-sweater.ts +21 -17
  89. package/src/templates/print/knit-nordic-snowflake-sweater.ts +45 -26
  90. package/src/templates/print/knit-shared.ts +118 -7
  91. package/src/templates/print/knit-snowflake-beanie.ts +9 -9
  92. package/types/templates/src/print/knit-shared.d.ts +49 -3
@@ -17,9 +17,10 @@ import {
17
17
  linear,
18
18
  radial,
19
19
  snowflake,
20
+ solid,
20
21
  tree,
21
22
  zigzag
22
- } from "./chunk-CVZA6HPL.js";
23
+ } from "./chunk-FSM6RE22.js";
23
24
  import {
24
25
  defineTemplate
25
26
  } from "./chunk-K4AMMKWH.js";
@@ -38,10 +39,12 @@ var BLEACH = 2;
38
39
  var MUSTARD = 3;
39
40
  var YARNS = [YARN.chili, YARN.pine, YARN.bleach, YARN.mustard];
40
41
  function topBand(s, top) {
42
+ s.motif("Collar zigzags");
41
43
  zigzag(s, top, 20, 7, 3, BLEACH);
42
44
  zigzag(s, top + 14, 20, 7, 3, PINE);
43
45
  }
44
46
  function forest(s, bottom) {
47
+ s.motif("Forest band");
45
48
  s.rows(bottom - 70, bottom - 67, PINE);
46
49
  for (let x = 26; x < s.width; x += 52) tree(s, x, bottom - 60, 46, PINE, MUSTARD);
47
50
  s.rows(bottom - 8, bottom - 5, PINE);
@@ -61,14 +64,12 @@ function starPts(cx, cy, r) {
61
64
  });
62
65
  }
63
66
  function litTree(L, cx, top, h) {
64
- L.halo(cx, top + h * 0.45, h * 0.62, h * 0.6, Y.mustard, 0.6, 0.66, "Tree glow");
65
67
  const lit = linear(0, [[0, between(Y.pine, Y.mustard, 0.5)], [0.42, Y.pine], [1, Y.pine]]);
66
68
  tiers(cx, top, h).forEach((t, i) => L.poly(t, lit, `Tier ${i + 1}`));
67
69
  const tw = Math.max(2, Math.round(h * 0.045));
68
70
  L.rect(cx - tw, top + h * 0.86 - 1, tw * 2, h * 0.14 + 1, linear(0, [[0, between(Y.pine, Y.mustard, 0.3)], [1, Y.pine]]), "Trunk");
69
71
  const spots = [[-22, 0.38], [26, 0.4], [-60, 0.6], [6, 0.63], [64, 0.61]];
70
72
  spots.forEach(([dx, at], i) => L.bauble(cx + dx, top + h * at, 10, Y.bleach, i % 2 ? Y.mustard : Y.chili, between(i % 2 ? Y.mustard : Y.chili, Y.pine, 0.6)));
71
- L.halo(cx, top - 6, 46, 46, Y.mustard, 0.8, 0.55, "Star glow");
72
73
  L.poly(starPts(cx, top - 6, 30), radial([[0, Y.bleach], [0.45, Y.mustard], [1, between(Y.mustard, Y.chili, 0.5)]], 0.45, 0.4, 0.6), "Star");
73
74
  }
74
75
  function ribbon(L, cx, cy, w, h, logo) {
@@ -82,7 +83,7 @@ function ribbon(L, cx, cy, w, h, logo) {
82
83
  );
83
84
  }
84
85
  L.rect(l, top, w, h, linear(90, [[0, Y.bleach], [0.62, Y.bleach], [1, between(Y.bleach, Y.mustard, 0.7)]]), "Ribbon");
85
- L.logo(cx, cy, logo, linear(90, [[0, Y.chili], [0.5, Y.chili], [1, between(Y.chili, Y.pine, 0.5)]]));
86
+ L.badge(cx, cy, logo, Y.chili);
86
87
  }
87
88
  var knit_christmas_tree_sweater_default = defineTemplate({
88
89
  id: "print-knit-christmas-tree-sweater",
@@ -104,34 +105,36 @@ var knit_christmas_tree_sweater_default = defineTemplate({
104
105
  k.palette({ trim: YARN.pine });
105
106
  const f = new Stitches(front.width, front.height);
106
107
  topBand(f, 54);
107
- for (const [x, y, r] of [[78, 170, 34], [436, 170, 34], [62, 370, 26], [450, 370, 26], [120, 270, 18], [392, 270, 18]]) snowflake(f, x, y, r, BLEACH);
108
+ for (const [x, y, r, name] of [[78, 170, 34, "top left"], [436, 170, 34, "top right"], [62, 370, 26, "lower left"], [450, 370, 26, "lower right"], [120, 270, 18, "small left"], [392, 270, 18, "small right"]]) snowflake(f.motif(`Snowflake ${name}`), x, y, r, BLEACH);
108
109
  forest(f, 628);
109
- lice(f, 110, 540, 30, BLEACH, clear(f, 7));
110
- knitPanel(k, k.sheet, front, YARNS, f, PINE, { blend: "HALFTONE", dot: 5, layers: (L) => {
110
+ knitPanel(k, k.sheet, front, YARNS, f, PINE, { blend: "HALFTONE", dot: 5, under: (L) => {
111
+ L.sunburst(255, 150, 420, 28, [[0, Y.mustard, 0.95], [0.45, Y.mustard, 0.5], [1, Y.mustard, 0]], "Sunburst", -Math.PI / 2);
112
+ }, layers: (L) => {
111
113
  litTree(L, 255, 140, 380);
112
114
  ribbon(L, 255, 476, 300, 104, 240);
113
115
  } });
114
116
  const b = new Stitches(back.width, back.height);
115
117
  topBand(b, 20);
118
+ b.motif("Snowflake row");
116
119
  for (let x = 0; x < b.width; x += 128) snowflake(b, x, 120, 22, BLEACH);
117
120
  forest(b, 628);
118
- lice(b, 70, 540, 30, BLEACH, clear(b, 7));
119
- knitPanel(k, k.addSheet(knitPreset(back)), back, YARNS, b, PINE, { blend: "HALFTONE", dot: 5, layers: (L) => {
120
- L.halo(255, 300, 270, 130, Y.mustard, 0.55, 0.82, "Logo glow");
121
- L.logo(259, 305, 420, linear(90, [[0, Y.pine]]), "Logo shadow");
122
- L.logo(255, 300, 420, linear(90, [[0, Y.bleach], [0.55, Y.bleach], [1, between(Y.bleach, Y.mustard, 0.75)]]));
121
+ knitPanel(k, k.addSheet(knitPreset(back)), back, YARNS, b, PINE, { blend: "HALFTONE", dot: 5, under: (L) => {
122
+ L.sunburst(255, 300, 420, 32, [[0, Y.mustard, 0.9], [0.5, Y.mustard, 0.45], [1, Y.mustard, 0]], "Sunburst", -Math.PI / 2);
123
+ }, layers: (L) => {
124
+ L.badge(255, 300, 420, Y.bleach, { outline: Y.pine, ring: 3, shadow: Y.mustard, dx: 5, dy: 5 });
123
125
  for (const x of [80, 431]) litTree(L, x, 420, 120);
124
126
  } });
125
127
  for (const sleeve of [right, left]) {
126
128
  const s = new Stitches(sleeve.width, sleeve.height);
127
- for (let y = 90, i = 0; y < 520; y += 105, i++) {
128
- if (i % 2) snowflake(s, 255, y, 34, BLEACH);
129
- else heart(s, 255, y, 30, BLEACH);
129
+ for (let y = 80, i = 0; y < 460; y += 100, i++) {
130
+ if (i % 2) snowflake(s.motif(`Snowflake ${i + 1}`), 255, y, 34, BLEACH);
131
+ else heart(s.motif(`Heart ${i + 1}`), 255, y, 30, BLEACH);
130
132
  }
131
133
  forest(s, 628);
132
- lice(s, 30, 540, 30, BLEACH, clear(s, 7));
134
+ lice(s.motif("Sprinkles"), 30, 540, 30, BLEACH, clear(s, 7));
133
135
  knitPanel(k, k.addSheet(knitPreset(sleeve)), sleeve, YARNS, s, PINE, { blend: "HALFTONE", dot: 5, layers: (L) => {
134
- L.rect(0, 470, sleeve.width, 86, linear(90, [[0, Y.pine, 0], [1, Y.pine, 0.85]]), "Dusk");
136
+ L.rect(0, 492, sleeve.width, 4, solid(Y.pine), "Stripe rule");
137
+ L.stripes(496, 552, 18, 9, solid(Y.bleach));
135
138
  } });
136
139
  }
137
140
  return k.doc;
@@ -6,14 +6,14 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  pluginRun
9
- } from "./chunk-C22ZRLC7.js";
9
+ } from "./chunk-MRYCR76X.js";
10
10
  import {
11
11
  fileCommands,
12
12
  fontTeamRemove,
13
13
  integrationConfirmCommands,
14
14
  mediaDelete,
15
15
  publishCommands
16
- } from "./chunk-33CFABZ2.js";
16
+ } from "./chunk-2CMHDBFD.js";
17
17
  import {
18
18
  external_exports
19
19
  } from "./chunk-R5K2B3R3.js";
@@ -53,7 +53,7 @@ var collabSetSpotlight = defineCommand({
53
53
  }
54
54
  },
55
55
  run: async ({ on }, ctx) => {
56
- const { setSpotlight } = await import("./presence-AGLEN24G.js");
56
+ const { setSpotlight } = await import("./presence-IJN6TO2U.js");
57
57
  setSpotlight(on);
58
58
  ctx.notice(on ? "Spotlight on \u2014 everyone is following this view." : "Spotlight off.");
59
59
  return { summary: on ? "Spotlight on" : "Spotlight off", data: { spotlight: on } };
@@ -80,7 +80,7 @@ var collabRevealPrivate = defineCommand({
80
80
  }
81
81
  },
82
82
  run: async (_p, ctx) => {
83
- const { useEditorStore } = await import("./editor-store-JQA3IFQ4.js");
83
+ const { useEditorStore } = await import("./editor-store-F55ZEWJH.js");
84
84
  const before = Object.values(useEditorStore.getState().document.nodes).filter((n) => n.privateTo).length;
85
85
  useEditorStore.getState().revealPrivate();
86
86
  ctx.notice(before ? `Revealed ${before} private item${before === 1 ? "" : "s"}.` : "Nothing was private.");
@@ -144,7 +144,7 @@ var documentDelete = defineCommand({
144
144
  }
145
145
  },
146
146
  run: async ({ id }, ctx) => {
147
- const { useEditorStore } = await import("./editor-store-JQA3IFQ4.js");
147
+ const { useEditorStore } = await import("./editor-store-F55ZEWJH.js");
148
148
  const wasOpen = useEditorStore.getState().document.id === id;
149
149
  await useEditorStore.getState().deleteDocument(id);
150
150
  ctx.notice("Deleted the document.");
@@ -188,7 +188,7 @@ var libraryPublish = defineCommand({
188
188
  }
189
189
  },
190
190
  run: async (p, ctx) => {
191
- const { publishLibrary } = await import("./libraries-5WFWU4EA.js");
191
+ const { publishLibrary } = await import("./libraries-AS5KS6VS.js");
192
192
  const doc = ctx.doc();
193
193
  const pick = {
194
194
  componentIds: p.componentIds ?? Object.keys(doc.components ?? {}),
@@ -220,7 +220,7 @@ var libraryUnpublish = defineCommand({
220
220
  },
221
221
  run: async ({ libraryId }, ctx) => {
222
222
  if (!libraryId.trim()) throw new CommandError("Which library? Pass its `libraryId`.", "invalid_params");
223
- const { unpublishLibrary } = await import("./libraries-5WFWU4EA.js");
223
+ const { unpublishLibrary } = await import("./libraries-AS5KS6VS.js");
224
224
  await unpublishLibrary(libraryId);
225
225
  ctx.notice(`Unpublished library ${libraryId}.`);
226
226
  return { summary: `Unpublished library ${libraryId}`, data: { libraryId, unpublished: true } };
@@ -232,8 +232,8 @@ var libraryCommands = [libraryPublish, libraryUnpublish];
232
232
  init_define_POPCRAFT_COMPONENT_IDS();
233
233
  async function findVersion(id) {
234
234
  const [{ useEditorStore }, { versionLabel }] = await Promise.all([
235
- import("./editor-store-JQA3IFQ4.js"),
236
- import("./versions-QBEREZYR.js")
235
+ import("./editor-store-F55ZEWJH.js"),
236
+ import("./versions-ZSGH7ZJN.js")
237
237
  ]);
238
238
  const meta = useEditorStore.getState().versions.find((v) => v.id === id);
239
239
  if (!meta) {
@@ -266,7 +266,7 @@ var versionRestore = defineCommand({
266
266
  },
267
267
  run: async ({ id }) => {
268
268
  const found = await findVersion(id);
269
- const { restoreVersion } = await import("./versions-QBEREZYR.js");
269
+ const { restoreVersion } = await import("./versions-ZSGH7ZJN.js");
270
270
  await restoreVersion(found.meta);
271
271
  return { summary: `Restored \u201C${found.label}\u201D`, data: { id, label: found.label, restored: true } };
272
272
  }
@@ -291,7 +291,7 @@ var versionDelete = defineCommand({
291
291
  },
292
292
  run: async ({ id }, ctx) => {
293
293
  const found = await findVersion(id);
294
- const { deleteVersion } = await import("./versions-QBEREZYR.js");
294
+ const { deleteVersion } = await import("./versions-ZSGH7ZJN.js");
295
295
  await deleteVersion(found.meta);
296
296
  ctx.notice(`Deleted the version \u201C${found.label}\u201D.`);
297
297
  return { summary: `Deleted the version \u201C${found.label}\u201D`, data: { id, label: found.label, deleted: true } };
@@ -8,7 +8,7 @@ import {
8
8
  needsSelection,
9
9
  pageGo,
10
10
  selectionIsPicture
11
- } from "./chunk-33CFABZ2.js";
11
+ } from "./chunk-2CMHDBFD.js";
12
12
  import {
13
13
  external_exports
14
14
  } from "./chunk-R5K2B3R3.js";
@@ -31,7 +31,7 @@ var none = external_exports.object({});
31
31
  var emit = (name, detail) => {
32
32
  if (typeof window !== "undefined") window.dispatchEvent(new CustomEvent(name, { detail }));
33
33
  };
34
- var store = () => import("./editor-store-JQA3IFQ4.js").then((m) => m.useEditorStore.getState());
34
+ var store = () => import("./editor-store-F55ZEWJH.js").then((m) => m.useEditorStore.getState());
35
35
  var MODE_IDS = MODE_LIST.map((m) => m.id);
36
36
  var MODE_ALIASES = { JAM: "POPCORN", DEV: "VIEW" };
37
37
  var modeSet = defineCommand({
@@ -191,7 +191,7 @@ var dialogOpen = defineCommand({
191
191
  (await import("./plan-limit-VGQF2DZX.js")).openPlanDialog();
192
192
  break;
193
193
  case "credits":
194
- await (await import("./buy-credits-EJCPC5V7.js")).buyAiCredits();
194
+ await (await import("./buy-credits-37KIF2FX.js")).buyAiCredits();
195
195
  break;
196
196
  case "tokens":
197
197
  emit("popcraft-open-tokens");
@@ -237,7 +237,7 @@ var aiOpen = defineCommand({
237
237
  ] } },
238
238
  run: async ({ dialog, skillId }) => {
239
239
  if (dialog) (await import("./client-store-URE3KRXT.js")).openAiDialog(dialog);
240
- else (await import("./store-VLXBAKCI.js")).openAgentPanel({ skillId: skillId ?? null });
240
+ else (await import("./store-J33GD3OK.js")).openAgentPanel({ skillId: skillId ?? null });
241
241
  return { summary: dialog ? `Opened AI ${dialog}` : "Opened the agent" };
242
242
  }
243
243
  });
@@ -250,7 +250,7 @@ var agentContinue = defineCommand({
250
250
  params: external_exports.object({}),
251
251
  expose: { ui: { label: "AI: Continue the agent\u2019s last turn", keywords: ["ai", "agent", "continue", "resume", "retry", "keep going"] } },
252
252
  run: async () => {
253
- const resumed = await (await import("./runner-66VO3EOK.js")).continueTurn();
253
+ const resumed = await (await import("./runner-535UPLGO.js")).continueTurn();
254
254
  return { summary: resumed ? "Continued the agent" : "Nothing to continue" };
255
255
  }
256
256
  });
@@ -329,11 +329,11 @@ var toolPlace = defineCommand({
329
329
  run: async ({ what }) => {
330
330
  if (what === "media") {
331
331
  const s = await store();
332
- const { placeMediaFromPicker } = await import("./media-tool-IHV3MK22.js");
332
+ const { placeMediaFromPicker } = await import("./media-tool-M33SALHX.js");
333
333
  await placeMediaFromPicker({ kind: "point", x: s.camera.x, y: s.camera.y });
334
334
  return { summary: "Placing media" };
335
335
  }
336
- const { beginEyedrop } = await import("./eyedropper-OTQO5UFY.js");
336
+ const { beginEyedrop } = await import("./eyedropper-6GKVVVEE.js");
337
337
  void beginEyedrop();
338
338
  return { summary: "Pick a color" };
339
339
  }
@@ -351,7 +351,7 @@ var nodeRasterize = defineCommand({
351
351
  keywords: ["rasterize", "raster", "flatten", "pixels", "paint layer", "erase", "bitmap"]
352
352
  } },
353
353
  run: async () => {
354
- const { flattenSelectionToPaintLayer } = await import("./raster-actions-IKOFMSP3.js");
354
+ const { flattenSelectionToPaintLayer } = await import("./raster-actions-7CCO2RS5.js");
355
355
  await flattenSelectionToPaintLayer();
356
356
  return { summary: "Rasterized" };
357
357
  }
@@ -462,7 +462,7 @@ function pluginCommand(plugins) {
462
462
  params: external_exports.object({ pluginId: external_exports.string(), commandId: external_exports.string() }),
463
463
  expose: { ui: { label: "Run plugin", keywords: ["plugin", "extension", "run"], variants, palette: variants.length ? void 0 : false } },
464
464
  run: async ({ pluginId, commandId }) => {
465
- await (await import("./host-SV2ZGKB3.js")).runPlugin(pluginId, commandId);
465
+ await (await import("./host-I6KIHIVJ.js")).runPlugin(pluginId, commandId);
466
466
  return { summary: "Plugin started" };
467
467
  }
468
468
  });
@@ -41,10 +41,34 @@ var Stitches = class {
41
41
  constructor(width, height) {
42
42
  this.width = width;
43
43
  this.height = height;
44
+ /** The motif layers, in the order first drawn: a name and a palette slot each. */
45
+ this.motifs = [];
46
+ this.current = null;
44
47
  this.cells = new Uint8Array(width * height);
48
+ this.owner = new Int32Array(width * height).fill(-1);
49
+ }
50
+ /**
51
+ * What is drawn from here on is the motif `name`: knitPanel makes it a vector layer inside the stitch canvas (one
52
+ * per yarn it uses), so it can be moved, recoloured or deleted like any shape. `null` paints stitches directly.
53
+ */
54
+ motif(name) {
55
+ this.current = name;
56
+ return this;
45
57
  }
46
58
  set(x, y, c) {
47
- if (x >= 0 && y >= 0 && x < this.width && y < this.height) this.cells[y * this.width + x] = c;
59
+ if (x < 0 || y < 0 || x >= this.width || y >= this.height) return;
60
+ const i = y * this.width + x;
61
+ this.cells[i] = c;
62
+ if (this.current === null) {
63
+ this.owner[i] = -1;
64
+ return;
65
+ }
66
+ let m = this.motifs.findIndex((l) => l.name === this.current && l.c === c);
67
+ if (m < 0) {
68
+ m = this.motifs.length;
69
+ this.motifs.push({ name: this.current, c });
70
+ }
71
+ this.owner[i] = m;
48
72
  }
49
73
  get(x, y) {
50
74
  return this.cells[y * this.width + x];
@@ -228,7 +252,18 @@ var clear = (s, pad) => (x, y) => {
228
252
  };
229
253
  function knitPanel(k, sheet, panel, yarns, s, trimSlot, o = {}) {
230
254
  s.removeStrays();
255
+ s.motif(null);
231
256
  for (const [a, b] of panel.trim) s.rows(a, b, trimSlot);
257
+ const masks = s.motifs.map(() => new Uint8Array(s.width * s.height));
258
+ const painted = s.cells.slice();
259
+ for (let i = 0; i < s.cells.length; i++) {
260
+ const m = s.owner[i];
261
+ if (m >= 0 && s.motifs[m].c === s.cells[i]) {
262
+ masks[m][i] = 1;
263
+ painted[i] = 0;
264
+ }
265
+ }
266
+ s.cells.set(painted);
232
267
  const chars = "abcdefgh";
233
268
  const key = {};
234
269
  yarns.forEach((hex2, i) => {
@@ -245,8 +280,11 @@ function knitPanel(k, sheet, panel, yarns, s, trimSlot, o = {}) {
245
280
  const area = k.frame(sheet, { x: 0, y: 0, width: panel.width * CELL, height: panel.height * CELL }, { name: "Knit area", clip: true });
246
281
  const grid = k.pixels(area, [rows], key, { cell: CELL, name: "Stitches", palette: [...yarns], absolute: { x: 0, y: 0 } });
247
282
  k.patch(grid, { layerPaletteSnap: true, layerBlend: o.blend ?? "DITHER", ...o.dot ? { layerHalftoneSize: o.dot } : {} });
248
- o.layers?.(new KnitLayers(k, grid));
249
- if (o.layers) for (const [a, b] of panel.trim) new KnitLayers(k, grid).rect(0, a, panel.width, b - a + 1, [{ ...k.paint("trim")[0] }], "Trim yarn");
283
+ const L = new KnitLayers(k, grid, s.width, s.height);
284
+ o.under?.(L);
285
+ s.motifs.forEach((m, i) => L.mask(masks[i], s.width, s.height, solid(yarns[m.c]), s.motifs.filter((n) => n.name === m.name).length > 1 ? `${m.name} \xB7 ${yarnName(yarns[m.c])}` : m.name));
286
+ o.layers?.(L);
287
+ for (const [a, b] of panel.trim) L.rect(0, a, panel.width, b - a + 1, [{ ...k.paint("trim")[0] }], "Trim yarn");
250
288
  for (const [a, b] of panel.trim) {
251
289
  const id = k.rect(sheet, panel.width * CELL, (b - a + 1) * CELL, "trim", { name: "Trim", absolute: { x: 0, y: a * CELL } });
252
290
  k.patch(id, { locked: true });
@@ -264,10 +302,14 @@ function between(a, b, t = 0.5) {
264
302
  const p = (h, i) => parseInt(h.slice(1 + i * 2, 3 + i * 2), 16);
265
303
  return "#" + [0, 1, 2].map((i) => Math.round(p(a, i) + (p(b, i) - p(a, i)) * t).toString(16).padStart(2, "0")).join("");
266
304
  }
305
+ var solid = (h) => [{ type: "SOLID", color: hex(h), opacity: 1, visible: true }];
306
+ var yarnName = (h) => (Object.entries(YARN).find(([, v]) => v === h)?.[0] ?? h).replace(/^./, (c) => c.toUpperCase());
267
307
  var KnitLayers = class {
268
- constructor(k, grid) {
308
+ constructor(k, grid, width = 0, height = 0) {
269
309
  this.k = k;
270
310
  this.grid = grid;
311
+ this.width = width;
312
+ this.height = height;
271
313
  }
272
314
  add(x0, y0, w, h, paths, fill, name) {
273
315
  return this.k.vector(this.grid, w * CELL, h * CELL, paths, fill, { name, absolute: { x: x0 * CELL, y: y0 * CELL } });
@@ -298,6 +340,98 @@ var KnitLayers = class {
298
340
  bauble(cx, cy, r, light, body, shadow, name = "Bauble") {
299
341
  return this.ellipse(cx, cy, r, r, radial([[0, light], [0.35, body], [1, shadow]], 0.36, 0.32, 0.75), name);
300
342
  }
343
+ /** A vector layer covering exactly the stitches set in `mask` (row runs), cropped to their box. */
344
+ mask(bits, w, h, fill, name) {
345
+ let x0 = w, y0 = h, x1 = -1, y1 = -1;
346
+ for (let y = 0; y < h; y++) for (let x = 0; x < w; x++) if (bits[y * w + x]) {
347
+ x0 = Math.min(x0, x);
348
+ y0 = Math.min(y0, y);
349
+ x1 = Math.max(x1, x);
350
+ y1 = Math.max(y1, y);
351
+ }
352
+ if (x1 < 0) return null;
353
+ const paths = [];
354
+ for (let y = y0; y <= y1; y++) for (let x = x0; x <= x1; x++) {
355
+ if (!bits[y * w + x]) continue;
356
+ let e = x;
357
+ while (e + 1 <= x1 && bits[y * w + e + 1]) e++;
358
+ const a = (x - x0) * CELL, b = (e + 1 - x0) * CELL, t = (y - y0) * CELL, u = (y + 1 - y0) * CELL;
359
+ paths.push({ points: [{ x: a, y: t }, { x: b, y: t }, { x: b, y: u }, { x: a, y: u }], closed: true });
360
+ x = e;
361
+ }
362
+ return this.add(x0, y0, x1 - x0 + 1, y1 - y0 + 1, paths, fill, name);
363
+ }
364
+ /**
365
+ * Pop-art sunburst: `rays` wedges round (cx, cy) out to `r`, every other one filled, each with `fill` (a radial
366
+ * gradient fading outward reads as light). Hard-edged wedges, so the screen inside them looks designed.
367
+ */
368
+ sunburst(cx, cy, r, rays, light, name = "Sunburst", turn = 0) {
369
+ const ids = [];
370
+ for (let i = 0; i < rays; i += 2) {
371
+ const a0 = turn + i / rays * Math.PI * 2, a1 = turn + (i + 1) / rays * Math.PI * 2;
372
+ const pts = [[cx, cy]];
373
+ for (let s = 0; s <= 6; s++) {
374
+ const a = a0 + (a1 - a0) * s / 6;
375
+ pts.push([cx + Math.cos(a) * r, cy + Math.sin(a) * r]);
376
+ }
377
+ const xs = pts.map((p) => p[0]), ys = pts.map((p) => p[1]), x0 = Math.min(...xs), y0 = Math.min(...ys), bw = Math.max(...xs) - x0 || 1, bh = Math.max(...ys) - y0 || 1;
378
+ const fill = [{ type: "GRADIENT_RADIAL", gradientStops: stops(light), gradientHandlePositions: [{ x: (cx - x0) / bw, y: (cy - y0) / bh }, { x: (cx - x0 + r) / bw, y: (cy - y0) / bh }, { x: (cx - x0) / bw, y: (cy - y0 + r) / bh }], opacity: 1, visible: true }];
379
+ ids.push(this.poly(pts, fill, `${name} ray ${i / 2 + 1}`));
380
+ }
381
+ return ids;
382
+ }
383
+ /** A ribbon of light across the panel: a band `thick` stitches deep riding a sine wave. */
384
+ wave(yc, amp, period, thick, phase, fill, name = "Aurora") {
385
+ const top = [], bot = [];
386
+ for (let x = -4; x <= this.width + 4; x += 4) {
387
+ const y = yc + amp * Math.sin(x / period * Math.PI * 2 + phase), t = thick;
388
+ top.push([x, y - t / 2]);
389
+ bot.push([x, y + t / 2]);
390
+ }
391
+ return this.poly([...top, ...bot.reverse()], fill, name);
392
+ }
393
+ /** Diagonal candy stripes between rows y0 and y1: bands `w` wide every `period`, slanting by the band's height. */
394
+ stripes(y0, y1, period, w, fill, name = "Candy stripes") {
395
+ return this.mask(this.bits((x, y) => y >= y0 && y < y1 && ((x + (y - y0)) % period + period) % period < w), this.width, this.height, fill, name);
396
+ }
397
+ /** A panel-sized stitch mask from a test on each stitch. */
398
+ bits(inside) {
399
+ const b = new Uint8Array(this.width * this.height);
400
+ for (let y = 0; y < this.height; y++) for (let x = 0; x < this.width; x++) if (inside(x, y)) b[y * this.width + x] = 1;
401
+ return b;
402
+ }
403
+ /** A ring of stitches `w` thick at radius `r` round (cx, cy): a medallion frame. */
404
+ ring(cx, cy, r, w, fill, name = "Ring") {
405
+ return this.mask(this.bits((x, y) => {
406
+ const d = Math.hypot(x - cx, y - cy);
407
+ return d >= r && d < r + w;
408
+ }), this.width, this.height, fill, name);
409
+ }
410
+ /** A dotted ring: single dots `gap` stitches apart round a circle, each a 2×2 stitch block (never a lone stitch). */
411
+ dots(cx, cy, r, gap, fill, name = "Dotted ring") {
412
+ const n = Math.round(2 * Math.PI * r / gap), pts = Array.from({ length: n }, (_, i) => [Math.round(cx + Math.cos(i / n * 2 * Math.PI) * r), Math.round(cy + Math.sin(i / n * 2 * Math.PI) * r)]);
413
+ return this.mask(this.bits((x, y) => pts.some(([px, py]) => x >= px && x <= px + 1 && y >= py && y <= py + 1)), this.width, this.height, fill, name);
414
+ }
415
+ /**
416
+ * The wordmark, solid, with what makes knit lettering read from across a room: an outline `ring` stitches thick
417
+ * and/or a drop shadow offset (dx, dy), each a solid yarn — never a blend inside the letters.
418
+ */
419
+ badge(cx, cy, width, letters, o = {}) {
420
+ const L = logoStitches(width), x0 = Math.round(cx - width / 2), y0 = Math.round(cy - L.height / 2);
421
+ const at = (x, y) => L.at(x - x0, y - y0);
422
+ if (o.shadow) {
423
+ const dx = o.dx ?? 3, dy = o.dy ?? 3;
424
+ this.mask(this.bits((x, y) => at(x - dx, y - dy)), this.width, this.height, solid(o.shadow), "Logo shadow");
425
+ }
426
+ if (o.outline) {
427
+ const r = o.ring ?? 2;
428
+ this.mask(this.bits((x, y) => {
429
+ for (let dy = -r; dy <= r; dy++) for (let dx = -r; dx <= r; dx++) if (dx * dx + dy * dy <= r * r + r && at(x + dx, y + dy)) return true;
430
+ return false;
431
+ }), this.width, this.height, solid(o.outline), "Logo outline");
432
+ }
433
+ return this.mask(this.bits(at), this.width, this.height, solid(letters), "PopCraft logo");
434
+ }
301
435
  /** The PopCraft wordmark as one vector layer, `width` stitches wide, centred on (cx, cy), filled with `fill`. */
302
436
  logo(cx, cy, width, fill, name = "PopCraft logo") {
303
437
  const L = logoStitches(width), x0 = Math.round(cx - width / 2), y0 = Math.round(cy - L.height / 2);
@@ -340,5 +474,6 @@ export {
340
474
  linear,
341
475
  radial,
342
476
  between,
477
+ solid,
343
478
  KnitLayers
344
479
  };
@@ -8,7 +8,6 @@ import {
8
8
  SWEATER_3XL,
9
9
  Stitches,
10
10
  YARN,
11
- between,
12
11
  clear,
13
12
  diamonds,
14
13
  knitPanel,
@@ -18,8 +17,9 @@ import {
18
17
  nordicStar,
19
18
  popcraftLogo,
20
19
  snowflake,
20
+ solid,
21
21
  zigzag
22
- } from "./chunk-CVZA6HPL.js";
22
+ } from "./chunk-FSM6RE22.js";
23
23
  import {
24
24
  defineTemplate
25
25
  } from "./chunk-K4AMMKWH.js";
@@ -38,11 +38,13 @@ var BLEACH = 1;
38
38
  var CHILI = 2;
39
39
  var YARNS = [YARN.navy, YARN.bleach, YARN.chili];
40
40
  function yoke(s, top) {
41
- zigzag(s, top, 24, 8, 3, CHILI);
41
+ zigzag(s.motif("Yoke zigzags"), top, 24, 8, 3, CHILI);
42
+ s.motif("Yoke stars");
42
43
  for (let x = 32; x < s.width; x += 64) nordicStar(s, x, top + 44, 26, BLEACH, NAVY);
43
- zigzag(s, top + 78, 24, 8, 3, CHILI);
44
+ zigzag(s.motif("Yoke zigzags"), top + 78, 24, 8, 3, CHILI);
44
45
  }
45
46
  function hemBand(s, bottom) {
47
+ s.motif("Hem band");
46
48
  s.rows(bottom - 62, bottom - 59, BLEACH);
47
49
  diamonds(s, bottom - 34, 40, 36, CHILI, BLEACH);
48
50
  s.rows(bottom - 9, bottom - 6, BLEACH);
@@ -67,36 +69,50 @@ var knit_nordic_snowflake_sweater_default = defineTemplate({
67
69
  k.palette({ trim: YARN.bleach });
68
70
  const f = new Stitches(front.width, front.height);
69
71
  yoke(f, 52);
70
- snowflake(f, 255, 282, 100, BLEACH);
71
- snowflake(f, 84, 262, 44, BLEACH);
72
- snowflake(f, 426, 262, 44, BLEACH);
73
- for (const x of [44, 467]) snowflake(f, x, 466, 24, CHILI);
72
+ snowflake(f.motif("Big snowflake"), 255, 282, 100, BLEACH);
73
+ snowflake(f.motif("Snowflake left"), 84, 262, 44, BLEACH);
74
+ snowflake(f.motif("Snowflake right"), 426, 262, 44, BLEACH);
75
+ for (const x of [44, 467]) snowflake(f.motif(`Red snowflake ${x < 255 ? "left" : "right"}`), x, 466, 24, CHILI);
74
76
  hemBand(f, 628);
75
- lice(f, 160, 540, 32, BLEACH, clear(f, 6));
76
- knitPanel(k, k.sheet, front, YARNS, f, BLEACH, { layers: (L) => {
77
- L.halo(255, 290, 148, 148, YARN.bleach, 0.55, 0.8, "Frost glow");
78
- L.rect(0, 500, f.width, 66, linear(90, [[0, YARN.bleach, 0], [1, YARN.bleach, 0.5]]), "Frost");
79
- L.logo(258, 470, 290, linear(90, [[0, YARN.chili]]), "Logo shadow");
80
- L.logo(255, 466, 290, linear(90, [[0, YARN.bleach], [0.5, YARN.bleach], [1, between(YARN.bleach, YARN.navy, 0.45)]]));
77
+ knitPanel(k, k.sheet, front, YARNS, f, BLEACH, { blend: "HALFTONE", dot: 4, under: (L) => {
78
+ for (const [y, ph] of [[190, 0.3], [330, 2.4]]) {
79
+ L.wave(y + 34, 30, 300, 70, ph, linear(90, [[0, YARN.bleach, 0.8], [0.35, YARN.bleach, 0.35], [1, YARN.bleach, 0]]), "Aurora frost");
80
+ L.wave(y, 30, 300, 6, ph, solid(YARN.chili), "Aurora crest");
81
+ }
82
+ L.ellipse(255, 282, 126, 126, solid(YARN.navy), "Medallion");
83
+ }, layers: (L) => {
84
+ L.ring(255, 282, 124, 5, solid(YARN.chili), "Medallion ring");
85
+ L.dots(255, 282, 136, 9, solid(YARN.bleach), "Medallion dots");
86
+ L.rect(0, 524, f.width, 3, solid(YARN.bleach), "Drift rule");
87
+ L.rect(0, 527, f.width, 39, linear(90, [[0, YARN.bleach, 0.1], [1, YARN.bleach, 0.65]]), "Snowdrift");
88
+ L.badge(255, 462, 290, YARN.bleach, { shadow: YARN.chili, dx: 4, dy: 4 });
81
89
  } });
82
90
  const b = new Stitches(back.width, back.height);
83
91
  yoke(b, 20);
84
- popcraftLogo(b, 255, 290, 410, CHILI, { c: BLEACH, ring: 4 });
92
+ popcraftLogo(b.motif("PopCraft logo"), 255, 290, 410, CHILI, { c: BLEACH, ring: 4 });
93
+ b.motif("Red snowflake row");
85
94
  for (let x = 32; x < b.width; x += 64) snowflake(b, x, 470, 20, CHILI);
86
95
  hemBand(b, 628);
87
- lice(b, 130, 540, 32, BLEACH, clear(b, 6));
88
- knitPanel(k, k.addSheet(knitPreset(back)), back, YARNS, b, BLEACH, { layers: (L) => {
89
- L.halo(255, 290, 280, 150, YARN.chili, 0.5, 0.9, "Aurora red");
90
- L.halo(255, 290, 250, 125, YARN.bleach, 0.35, 0.92, "Aurora frost");
91
- L.logo(255, 290, 410, linear(90, [[0, YARN.chili, 0], [0.45, YARN.chili, 0], [1, between(YARN.chili, YARN.navy, 0.55)]]), "Logo shade");
96
+ knitPanel(k, k.addSheet(knitPreset(back)), back, YARNS, b, BLEACH, { blend: "HALFTONE", dot: 4, under: (L) => {
97
+ for (const [y, ph] of [[140, 0.3], [370, 2.4]]) {
98
+ L.wave(y + 34, 30, 300, 70, ph, linear(90, [[0, YARN.bleach, 0.8], [0.35, YARN.bleach, 0.35], [1, YARN.bleach, 0]]), "Aurora frost");
99
+ L.wave(y, 30, 300, 6, ph, solid(YARN.chili), "Aurora crest");
100
+ }
101
+ }, layers: (L) => {
102
+ L.rect(0, 524, b.width, 3, solid(YARN.bleach), "Drift rule");
103
+ L.rect(0, 527, b.width, 39, linear(90, [[0, YARN.bleach, 0.1], [1, YARN.bleach, 0.65]]), "Snowdrift");
92
104
  } });
93
105
  for (const sleeve of [right, left]) {
94
106
  const s = new Stitches(sleeve.width, sleeve.height);
95
- for (let y = 110; y < 520; y += 130) snowflake(s, 255, y, 44, BLEACH);
107
+ for (let y = 100; y < 480; y += 125) snowflake(s.motif(`Snowflake ${(y - 100) / 125 + 1}`), 255, y, 44, BLEACH);
96
108
  hemBand(s, 628);
97
- lice(s, 40, 540, 32, BLEACH, clear(s, 6));
98
- knitPanel(k, k.addSheet(knitPreset(sleeve)), sleeve, YARNS, s, BLEACH, { layers: (L) => {
99
- for (let y = 110; y < 520; y += 130) L.halo(255, y, 66, 66, YARN.bleach, 0.45, 0.8, "Frost glow");
109
+ lice(s.motif("Sprinkles"), 40, 540, 32, BLEACH, clear(s, 6));
110
+ knitPanel(k, k.addSheet(knitPreset(sleeve)), sleeve, YARNS, s, BLEACH, { blend: "HALFTONE", dot: 4, under: (L) => {
111
+ L.wave(270 + 34, 30, 300, 70, 1.2, linear(90, [[0, YARN.bleach, 0.8], [0.35, YARN.bleach, 0.35], [1, YARN.bleach, 0]]), "Aurora frost");
112
+ L.wave(270, 30, 300, 6, 1.2, solid(YARN.chili), "Aurora crest");
113
+ }, layers: (L) => {
114
+ L.rect(0, 524, sleeve.width, 3, solid(YARN.bleach), "Drift rule");
115
+ L.rect(0, 527, sleeve.width, 39, linear(90, [[0, YARN.bleach, 0.1], [1, YARN.bleach, 0.65]]), "Snowdrift");
100
116
  } });
101
117
  }
102
118
  return k.doc;
@@ -9537,21 +9537,21 @@ var templates_default = [
9537
9537
  name: "Christmas tree knit sweater",
9538
9538
  kind: "PRINT",
9539
9539
  category: "knitwear",
9540
- bytes: 7745532
9540
+ bytes: 8971033
9541
9541
  },
9542
9542
  {
9543
9543
  id: "popcraft.print-knit-nordic-snowflake-sweater",
9544
9544
  name: "Nordic snowflake knit sweater",
9545
9545
  kind: "PRINT",
9546
9546
  category: "knitwear",
9547
- bytes: 7675449
9547
+ bytes: 9315132
9548
9548
  },
9549
9549
  {
9550
9550
  id: "popcraft.print-knit-snowflake-beanie",
9551
9551
  name: "Snowflake knit beanie",
9552
9552
  kind: "PRINT",
9553
9553
  category: "knitwear",
9554
- bytes: 589765
9554
+ bytes: 783652
9555
9555
  },
9556
9556
  {
9557
9557
  id: "popcraft.print-large-format",
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  buildTemplateWall
9
- } from "./chunk-JZM5HWEX.js";
9
+ } from "./chunk-6QIOHC6D.js";
10
10
  import {
11
11
  key,
12
12
  scale
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  SCENE_BUILDERS
9
- } from "./chunk-EUKKWV3G.js";
9
+ } from "./chunk-IO6ER43U.js";
10
10
  import {
11
11
  trailerType
12
12
  } from "./chunk-Y2QHMGV2.js";
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
6
6
  const __dirname = __popcraftDirname(__filename);
7
7
  import {
8
8
  registerAppCommands
9
- } from "./chunk-3UBIOYSA.js";
9
+ } from "./chunk-EOER2JCK.js";
10
10
  import {
11
11
  storeOpsSeam
12
12
  } from "./chunk-2NFTX3PP.js";
@@ -23,13 +23,13 @@ import {
23
23
  sameResolution,
24
24
  surfaceSize,
25
25
  windowCssSize
26
- } from "./chunk-33CFABZ2.js";
26
+ } from "./chunk-2CMHDBFD.js";
27
27
  import {
28
28
  notice
29
- } from "./chunk-BOIBQ7MZ.js";
29
+ } from "./chunk-5OKROQS5.js";
30
30
  import {
31
31
  agentContext
32
- } from "./chunk-SRY4ZWCH.js";
32
+ } from "./chunk-LP7KEPZV.js";
33
33
  import {
34
34
  setAudioOutputDocument,
35
35
  setMediaDocument
@@ -37,7 +37,7 @@ import {
37
37
  import {
38
38
  collabSession,
39
39
  syncStatus
40
- } from "./chunk-KA2MGAQJ.js";
40
+ } from "./chunk-WLNCMP4R.js";
41
41
  import {
42
42
  loadEntitlements
43
43
  } from "./chunk-QH6PUSXO.js";
@@ -50,7 +50,7 @@ import {
50
50
  import {
51
51
  persist,
52
52
  useEditorStore
53
- } from "./chunk-S3LCCBYA.js";
53
+ } from "./chunk-SYM2BMBO.js";
54
54
  import {
55
55
  create
56
56
  } from "./chunk-LLNAXNMG.js";