likec4 1.8.0 → 1.8.2-next.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.
@@ -148,46 +148,18 @@ const ComponentName = {
148
148
  font: "Arial",
149
149
  shadow: "#0a0a0a"
150
150
  };
151
- function fixProto(target, prototype) {
152
- var setPrototypeOf = Object.setPrototypeOf;
153
- setPrototypeOf ? setPrototypeOf(target, prototype) : target.__proto__ = prototype;
154
- }
155
- function fixStack(target, fn) {
156
- fn === void 0 && (fn = target.constructor);
157
- var captureStackTrace = Error.captureStackTrace;
158
- captureStackTrace && captureStackTrace(target, fn);
159
- }
160
- var __extends = /* @__PURE__ */ function() {
161
- var _extendStatics = function(d2, b2) {
162
- return _extendStatics = Object.setPrototypeOf || {
163
- __proto__: []
164
- } instanceof Array && function(d3, b3) {
165
- d3.__proto__ = b3;
166
- } || function(d3, b3) {
167
- for (var p2 in b3)
168
- Object.prototype.hasOwnProperty.call(b3, p2) && (d3[p2] = b3[p2]);
169
- }, _extendStatics(d2, b2);
170
- };
171
- return function(d2, b2) {
172
- if (typeof b2 != "function" && b2 !== null) throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
173
- _extendStatics(d2, b2);
174
- function __() {
175
- this.constructor = d2;
176
- }
177
- d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
178
- };
179
- }(), CustomError = function(_super) {
180
- __extends(CustomError2, _super);
181
- function CustomError2(message, options) {
182
- var _newTarget = this.constructor, _this = _super.call(this, message, options) || this;
183
- return Object.defineProperty(_this, "name", {
184
- value: _newTarget.name,
185
- enumerable: !1,
186
- configurable: !0
187
- }), fixProto(_this, _newTarget.prototype), fixStack(_this), _this;
188
- }
189
- return CustomError2;
190
- }(Error);
151
+ function nonNullable(value, message) {
152
+ if (typeof value > "u" || value == null)
153
+ throw new Error(message ?? `Expected defined value, but received ${value}`);
154
+ return value;
155
+ }
156
+ function invariant$1(condition, message) {
157
+ if (!condition)
158
+ throw new Error(message ?? "Invariant failed");
159
+ }
160
+ function nonexhaustive(value) {
161
+ throw new Error(`NonExhaustive value: ${value}`);
162
+ }
191
163
  function u$7(t2, n2, a2) {
192
164
  let o2 = (r2) => t2(r2, ...n2);
193
165
  return a2 === void 0 ? o2 : Object.assign(o2, { lazy: a2, lazyArgs: n2 });
@@ -283,41 +255,6 @@ function u$2(...n2) {
283
255
  return u$6(i, n2);
284
256
  }
285
257
  var i = (n2, { min: e2, max: r2 }) => e2 !== void 0 && n2 < e2 ? e2 : r2 !== void 0 && n2 > r2 ? r2 : n2;
286
- function isString$1(value) {
287
- return value != null && typeof value == "string";
288
- }
289
- class BaseError extends CustomError {
290
- constructor(message, options) {
291
- super(message, options), Object.defineProperty(this, "name", { value: "BaseError" });
292
- }
293
- }
294
- class NullableError extends BaseError {
295
- constructor(message, options) {
296
- super(message, options), Object.defineProperty(this, "name", { value: "NullableError" });
297
- }
298
- }
299
- class InvariantError extends BaseError {
300
- constructor(message, options) {
301
- super(message, options), Object.defineProperty(this, "name", { value: "InvariantError" });
302
- }
303
- }
304
- function nonNullable(value, message) {
305
- if (typeof value > "u" || value == null)
306
- throw new NullableError(message ?? `Expected defined value, but received ${value}`);
307
- return value;
308
- }
309
- function invariant$1(condition, message) {
310
- if (!condition)
311
- throw new InvariantError(message ?? "Invariant failed");
312
- }
313
- class NonExhaustiveError extends BaseError {
314
- constructor(message, options) {
315
- super(message, options), Object.defineProperty(this, "name", { value: "NonExhaustiveError" });
316
- }
317
- }
318
- function nonexhaustive(value) {
319
- throw new NonExhaustiveError(`NonExhaustive value: ${value}`);
320
- }
321
258
  const ElementShapes = [
322
259
  "rectangle",
323
260
  "person",
@@ -326,7 +263,15 @@ const ElementShapes = [
326
263
  "cylinder",
327
264
  "storage",
328
265
  "queue"
329
- ], isTagEqual = (operator) => "tag" in operator, isKindEqual = (operator) => "kind" in operator, isNotOperator = (operator) => "not" in operator, isAndOperator = (operator) => "and" in operator, isOrOperator = (operator) => "or" in operator;
266
+ ];
267
+ function isString$1(value) {
268
+ return value != null && typeof value == "string";
269
+ }
270
+ function isAncestor(...args) {
271
+ const ancestor = isString$1(args[0]) ? args[0] : args[0].id;
272
+ return (isString$1(args[1]) ? args[1] : args[1].id).startsWith(ancestor + ".");
273
+ }
274
+ const isTagEqual = (operator) => "tag" in operator, isKindEqual = (operator) => "kind" in operator, isNotOperator = (operator) => "not" in operator, isAndOperator = (operator) => "and" in operator, isOrOperator = (operator) => "or" in operator;
330
275
  function whereOperatorAsPredicate(operator) {
331
276
  switch (!0) {
332
277
  case isTagEqual(operator): {
@@ -383,10 +328,6 @@ function getBBoxCenter({
383
328
  y: y2 + height / 2
384
329
  };
385
330
  }
386
- function isAncestor(...args) {
387
- const ancestor = isString$1(args[0]) ? args[0] : args[0].id;
388
- return (isString$1(args[1]) ? args[1] : args[1].id).startsWith(ancestor + ".");
389
- }
390
331
  function cc(names) {
391
332
  if (typeof names == "string" || typeof names == "number") return "" + names;
392
333
  let out = "";
@@ -8904,7 +8845,7 @@ class MotionValue {
8904
8845
  * @internal
8905
8846
  */
8906
8847
  constructor(init2, options = {}) {
8907
- this.version = "11.3.29", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (v2, render = !0) => {
8848
+ this.version = "11.3.31", this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (v2, render = !0) => {
8908
8849
  const currentTime = time.now();
8909
8850
  this.updatedAt !== currentTime && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(v2), this.current !== this.prev && this.events.change && this.events.change.notify(this.current), render && this.events.renderRequest && this.events.renderRequest.notify(this.current);
8910
8851
  }, this.hasAnimated = !1, this.setCurrent(init2), this.owner = options.owner;
@@ -9104,7 +9045,7 @@ function setTarget(visualElement, definition) {
9104
9045
  }
9105
9046
  }
9106
9047
  function getOptimisedAppearId(visualElement) {
9107
- return visualElement.getProps()[optimizedAppearDataAttribute];
9048
+ return visualElement.props[optimizedAppearDataAttribute];
9108
9049
  }
9109
9050
  class WillChangeMotionValue extends MotionValue {
9110
9051
  constructor() {
@@ -9476,7 +9417,7 @@ class VisualElement {
9476
9417
  this.current = instance, visualElementStore.set(instance, this), this.projection && !this.projection.instance && this.projection.mount(instance), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((value, key) => this.bindToMotionValue(key, value)), hasReducedMotionListener.current || initPrefersReducedMotion(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : prefersReducedMotion.current, this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
9477
9418
  }
9478
9419
  unmount() {
9479
- visualElementStore.delete(this.current), this.projection && this.projection.unmount(), cancelFrame(this.notifyUpdate), cancelFrame(this.render), this.valueSubscriptions.forEach((remove2) => remove2()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
9420
+ visualElementStore.delete(this.current), this.projection && this.projection.unmount(), cancelFrame(this.notifyUpdate), cancelFrame(this.render), this.valueSubscriptions.forEach((remove2) => remove2()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
9480
9421
  for (const key in this.events)
9481
9422
  this.events[key].clear();
9482
9423
  for (const key in this.features) {
@@ -9486,11 +9427,13 @@ class VisualElement {
9486
9427
  this.current = null;
9487
9428
  }
9488
9429
  bindToMotionValue(key, value) {
9430
+ this.valueSubscriptions.has(key) && this.valueSubscriptions.get(key)();
9489
9431
  const valueIsTransform = transformProps.has(key), removeOnChange = value.on("change", (latestValue) => {
9490
9432
  this.latestValues[key] = latestValue, this.props.onUpdate && frame.preRender(this.notifyUpdate), valueIsTransform && this.projection && (this.projection.isTransformDirty = !0);
9491
9433
  }), removeOnRenderRequest = value.on("renderRequest", this.scheduleRender);
9492
- this.valueSubscriptions.set(key, () => {
9493
- removeOnChange(), removeOnRenderRequest(), value.owner && value.stop();
9434
+ let removeSyncCheck;
9435
+ window.MotionCheckAppearSync && (removeSyncCheck = window.MotionCheckAppearSync(this, key, value)), this.valueSubscriptions.set(key, () => {
9436
+ removeOnChange(), removeOnRenderRequest(), removeSyncCheck && removeSyncCheck(), value.owner && value.stop();
9494
9437
  });
9495
9438
  }
9496
9439
  sortNodePosition(other) {
@@ -11735,6 +11678,7 @@ function DiagramContextProvider({
11735
11678
  }
11736
11679
  );
11737
11680
  }
11681
+ DiagramContextProvider.displayName = "DiagramContextProvider";
11738
11682
  function useDiagramState(selector2, equalityFn) {
11739
11683
  const store = useContext(DiagramContext);
11740
11684
  if (store === null)
@@ -22492,6 +22436,7 @@ function EnsureMantine({ children: children2 }) {
22492
22436
  throw new Error("LikeC4Diagram must be a child of MantineProvider");
22493
22437
  return /* @__PURE__ */ jsx(Fragment, { children: children2 });
22494
22438
  }
22439
+ EnsureMantine.displayName = "EnsureMantine";
22495
22440
  function selectXYFlowSize(state) {
22496
22441
  return `${Math.round(state.width)}:${Math.round(state.height)}`;
22497
22442
  }
@@ -23453,7 +23398,7 @@ const isSame = (a2, b2) => Math.abs(a2 - b2) < 2.5, isSamePoint = (a2, b2) => {
23453
23398
  }
23454
23399
  ) });
23455
23400
  /**
23456
- * @license @tabler/icons-react v3.12.0 - MIT
23401
+ * @license @tabler/icons-react v3.14.0 - MIT
23457
23402
  *
23458
23403
  * This source code is licensed under the MIT license.
23459
23404
  * See the LICENSE file in the root directory of this source tree.
@@ -23480,7 +23425,7 @@ var defaultAttributes = {
23480
23425
  }
23481
23426
  };
23482
23427
  /**
23483
- * @license @tabler/icons-react v3.12.0 - MIT
23428
+ * @license @tabler/icons-react v3.14.0 - MIT
23484
23429
  *
23485
23430
  * This source code is licensed under the MIT license.
23486
23431
  * See the LICENSE file in the root directory of this source tree.
@@ -23513,119 +23458,119 @@ const createReactComponent = (type, iconName, iconNamePascal, iconNode) => {
23513
23458
  return Component.displayName = `${iconNamePascal}`, Component;
23514
23459
  };
23515
23460
  /**
23516
- * @license @tabler/icons-react v3.12.0 - MIT
23461
+ * @license @tabler/icons-react v3.14.0 - MIT
23517
23462
  *
23518
23463
  * This source code is licensed under the MIT license.
23519
23464
  * See the LICENSE file in the root directory of this source tree.
23520
23465
  */
23521
23466
  var IconAlertTriangle = createReactComponent("outline", "alert-triangle", "IconAlertTriangle", [["path", { d: "M12 9v4", key: "svg-0" }], ["path", { d: "M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z", key: "svg-1" }], ["path", { d: "M12 16h.01", key: "svg-2" }]]);
23522
23467
  /**
23523
- * @license @tabler/icons-react v3.12.0 - MIT
23468
+ * @license @tabler/icons-react v3.14.0 - MIT
23524
23469
  *
23525
23470
  * This source code is licensed under the MIT license.
23526
23471
  * See the LICENSE file in the root directory of this source tree.
23527
23472
  */
23528
23473
  var IconArrowBigDownLines = createReactComponent("outline", "arrow-big-down-lines", "IconArrowBigDownLines", [["path", { d: "M15 12h3.586a1 1 0 0 1 .707 1.707l-6.586 6.586a1 1 0 0 1 -1.414 0l-6.586 -6.586a1 1 0 0 1 .707 -1.707h3.586v-3h6v3z", key: "svg-0" }], ["path", { d: "M15 3h-6", key: "svg-1" }], ["path", { d: "M15 6h-6", key: "svg-2" }]]);
23529
23474
  /**
23530
- * @license @tabler/icons-react v3.12.0 - MIT
23475
+ * @license @tabler/icons-react v3.14.0 - MIT
23531
23476
  *
23532
23477
  * This source code is licensed under the MIT license.
23533
23478
  * See the LICENSE file in the root directory of this source tree.
23534
23479
  */
23535
23480
  var IconArrowDownRight = createReactComponent("outline", "arrow-down-right", "IconArrowDownRight", [["path", { d: "M7 7l10 10", key: "svg-0" }], ["path", { d: "M17 8l0 9l-9 0", key: "svg-1" }]]);
23536
23481
  /**
23537
- * @license @tabler/icons-react v3.12.0 - MIT
23482
+ * @license @tabler/icons-react v3.14.0 - MIT
23538
23483
  *
23539
23484
  * This source code is licensed under the MIT license.
23540
23485
  * See the LICENSE file in the root directory of this source tree.
23541
23486
  */
23542
23487
  var IconChevronLeft = createReactComponent("outline", "chevron-left", "IconChevronLeft", [["path", { d: "M15 6l-6 6l6 6", key: "svg-0" }]]);
23543
23488
  /**
23544
- * @license @tabler/icons-react v3.12.0 - MIT
23489
+ * @license @tabler/icons-react v3.14.0 - MIT
23545
23490
  *
23546
23491
  * This source code is licensed under the MIT license.
23547
23492
  * See the LICENSE file in the root directory of this source tree.
23548
23493
  */
23549
23494
  var IconChevronRight = createReactComponent("outline", "chevron-right", "IconChevronRight", [["path", { d: "M9 6l6 6l-6 6", key: "svg-0" }]]);
23550
23495
  /**
23551
- * @license @tabler/icons-react v3.12.0 - MIT
23496
+ * @license @tabler/icons-react v3.14.0 - MIT
23552
23497
  *
23553
23498
  * This source code is licensed under the MIT license.
23554
23499
  * See the LICENSE file in the root directory of this source tree.
23555
23500
  */
23556
23501
  var IconFileSymlink = createReactComponent("outline", "file-symlink", "IconFileSymlink", [["path", { d: "M4 21v-4a3 3 0 0 1 3 -3h5", key: "svg-0" }], ["path", { d: "M9 17l3 -3l-3 -3", key: "svg-1" }], ["path", { d: "M14 3v4a1 1 0 0 0 1 1h4", key: "svg-2" }], ["path", { d: "M5 11v-6a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-9.5", key: "svg-3" }]]);
23557
23502
  /**
23558
- * @license @tabler/icons-react v3.12.0 - MIT
23503
+ * @license @tabler/icons-react v3.14.0 - MIT
23559
23504
  *
23560
23505
  * This source code is licensed under the MIT license.
23561
23506
  * See the LICENSE file in the root directory of this source tree.
23562
23507
  */
23563
23508
  var IconFocusCentered = createReactComponent("outline", "focus-centered", "IconFocusCentered", [["path", { d: "M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-0" }], ["path", { d: "M4 8v-2a2 2 0 0 1 2 -2h2", key: "svg-1" }], ["path", { d: "M4 16v2a2 2 0 0 0 2 2h2", key: "svg-2" }], ["path", { d: "M16 4h2a2 2 0 0 1 2 2v2", key: "svg-3" }], ["path", { d: "M16 20h2a2 2 0 0 0 2 -2v-2", key: "svg-4" }]]);
23564
23509
  /**
23565
- * @license @tabler/icons-react v3.12.0 - MIT
23510
+ * @license @tabler/icons-react v3.14.0 - MIT
23566
23511
  *
23567
23512
  * This source code is licensed under the MIT license.
23568
23513
  * See the LICENSE file in the root directory of this source tree.
23569
23514
  */
23570
23515
  var IconHelpCircle = createReactComponent("outline", "help-circle", "IconHelpCircle", [["path", { d: "M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0", key: "svg-0" }], ["path", { d: "M12 16v.01", key: "svg-1" }], ["path", { d: "M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483", key: "svg-2" }]]);
23571
23516
  /**
23572
- * @license @tabler/icons-react v3.12.0 - MIT
23517
+ * @license @tabler/icons-react v3.14.0 - MIT
23573
23518
  *
23574
23519
  * This source code is licensed under the MIT license.
23575
23520
  * See the LICENSE file in the root directory of this source tree.
23576
23521
  */
23577
23522
  var IconLayoutDashboard = createReactComponent("outline", "layout-dashboard", "IconLayoutDashboard", [["path", { d: "M5 4h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1", key: "svg-0" }], ["path", { d: "M5 16h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1", key: "svg-1" }], ["path", { d: "M15 12h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1", key: "svg-2" }], ["path", { d: "M15 4h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1", key: "svg-3" }]]);
23578
23523
  /**
23579
- * @license @tabler/icons-react v3.12.0 - MIT
23524
+ * @license @tabler/icons-react v3.14.0 - MIT
23580
23525
  *
23581
23526
  * This source code is licensed under the MIT license.
23582
23527
  * See the LICENSE file in the root directory of this source tree.
23583
23528
  */
23584
23529
  var IconLink = createReactComponent("outline", "link", "IconLink", [["path", { d: "M9 15l6 -6", key: "svg-0" }], ["path", { d: "M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464", key: "svg-1" }], ["path", { d: "M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463", key: "svg-2" }]]);
23585
23530
  /**
23586
- * @license @tabler/icons-react v3.12.0 - MIT
23531
+ * @license @tabler/icons-react v3.14.0 - MIT
23587
23532
  *
23588
23533
  * This source code is licensed under the MIT license.
23589
23534
  * See the LICENSE file in the root directory of this source tree.
23590
23535
  */
23591
23536
  var IconMenu2 = createReactComponent("outline", "menu-2", "IconMenu2", [["path", { d: "M4 6l16 0", key: "svg-0" }], ["path", { d: "M4 12l16 0", key: "svg-1" }], ["path", { d: "M4 18l16 0", key: "svg-2" }]]);
23592
23537
  /**
23593
- * @license @tabler/icons-react v3.12.0 - MIT
23538
+ * @license @tabler/icons-react v3.14.0 - MIT
23594
23539
  *
23595
23540
  * This source code is licensed under the MIT license.
23596
23541
  * See the LICENSE file in the root directory of this source tree.
23597
23542
  */
23598
23543
  var IconMenu = createReactComponent("outline", "menu", "IconMenu", [["path", { d: "M4 8l16 0", key: "svg-0" }], ["path", { d: "M4 16l16 0", key: "svg-1" }]]);
23599
23544
  /**
23600
- * @license @tabler/icons-react v3.12.0 - MIT
23545
+ * @license @tabler/icons-react v3.14.0 - MIT
23601
23546
  *
23602
23547
  * This source code is licensed under the MIT license.
23603
23548
  * See the LICENSE file in the root directory of this source tree.
23604
23549
  */
23605
23550
  var IconZoomScan = createReactComponent("outline", "zoom-scan", "IconZoomScan", [["path", { d: "M4 8v-2a2 2 0 0 1 2 -2h2", key: "svg-0" }], ["path", { d: "M4 16v2a2 2 0 0 0 2 2h2", key: "svg-1" }], ["path", { d: "M16 4h2a2 2 0 0 1 2 2v2", key: "svg-2" }], ["path", { d: "M16 20h2a2 2 0 0 0 2 -2v-2", key: "svg-3" }], ["path", { d: "M8 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0", key: "svg-4" }], ["path", { d: "M16 16l-2.5 -2.5", key: "svg-5" }]]);
23606
23551
  /**
23607
- * @license @tabler/icons-react v3.12.0 - MIT
23552
+ * @license @tabler/icons-react v3.14.0 - MIT
23608
23553
  *
23609
23554
  * This source code is licensed under the MIT license.
23610
23555
  * See the LICENSE file in the root directory of this source tree.
23611
23556
  */
23612
23557
  var IconPlayerPlayFilled = createReactComponent("filled", "player-play-filled", "IconPlayerPlayFilled", [["path", { d: "M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z", key: "svg-0" }]]);
23613
23558
  /**
23614
- * @license @tabler/icons-react v3.12.0 - MIT
23559
+ * @license @tabler/icons-react v3.14.0 - MIT
23615
23560
  *
23616
23561
  * This source code is licensed under the MIT license.
23617
23562
  * See the LICENSE file in the root directory of this source tree.
23618
23563
  */
23619
23564
  var IconPlayerSkipBackFilled = createReactComponent("filled", "player-skip-back-filled", "IconPlayerSkipBackFilled", [["path", { d: "M19.496 4.136l-12 7a1 1 0 0 0 0 1.728l12 7a1 1 0 0 0 1.504 -.864v-14a1 1 0 0 0 -1.504 -.864z", key: "svg-0" }], ["path", { d: "M4 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z", key: "svg-1" }]]);
23620
23565
  /**
23621
- * @license @tabler/icons-react v3.12.0 - MIT
23566
+ * @license @tabler/icons-react v3.14.0 - MIT
23622
23567
  *
23623
23568
  * This source code is licensed under the MIT license.
23624
23569
  * See the LICENSE file in the root directory of this source tree.
23625
23570
  */
23626
23571
  var IconPlayerSkipForwardFilled = createReactComponent("filled", "player-skip-forward-filled", "IconPlayerSkipForwardFilled", [["path", { d: "M3 5v14a1 1 0 0 0 1.504 .864l12 -7a1 1 0 0 0 0 -1.728l-12 -7a1 1 0 0 0 -1.504 .864z", key: "svg-0" }], ["path", { d: "M20 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z", key: "svg-1" }]]);
23627
23572
  /**
23628
- * @license @tabler/icons-react v3.12.0 - MIT
23573
+ * @license @tabler/icons-react v3.14.0 - MIT
23629
23574
  *
23630
23575
  * This source code is licensed under the MIT license.
23631
23576
  * See the LICENSE file in the root directory of this source tree.
@@ -25737,6 +25682,7 @@ function XYFlow({
25737
25682
  }
25738
25683
  );
25739
25684
  }
25685
+ XYFlow.displayName = "XYFlow";
25740
25686
  var container$2 = "_19ci0hj0", card$1 = "_19ci0hj1", title = "_19ci0hj2", description = "_19ci0hj3";
25741
25687
  const selector$1 = (s) => ({
25742
25688
  id: s.view.id,
@@ -26106,7 +26052,7 @@ function NotationPanel() {
26106
26052
  defaultValue: !0
26107
26053
  }), hasNotations = notations.length > 0, portalProps = target ? { portalProps: { target } } : { withinPortal: !1 };
26108
26054
  return /* @__PURE__ */ jsxs(AnimatePresence, { children: [
26109
- !hasNotations && /* @__PURE__ */ jsx(
26055
+ !hasNotations && isVisible && /* @__PURE__ */ jsx(
26110
26056
  m.div,
26111
26057
  {
26112
26058
  initial: { opacity: 0.75, translateX: "50%" },
@@ -26116,7 +26062,7 @@ function NotationPanel() {
26116
26062
  opacity: 0.6
26117
26063
  },
26118
26064
  className: clsx("react-flow__panel", container),
26119
- children: /* @__PURE__ */ jsx(Tooltip$2, { label: "Diagram has no notations", color: "orange", ...portalProps, children: /* @__PURE__ */ jsx(
26065
+ children: /* @__PURE__ */ jsx(Tooltip$2, { label: "View has no notations", color: "orange", ...portalProps, children: /* @__PURE__ */ jsx(
26120
26066
  ThemeIcon,
26121
26067
  {
26122
26068
  size: "xl",
@@ -26965,6 +26911,7 @@ function LikeC4Diagram({
26965
26911
  }
26966
26912
  ) }) });
26967
26913
  }
26914
+ LikeC4Diagram.displayName = "LikeC4Diagram";
26968
26915
  const LikeC4DiagramInnerMemo = memo$1(function({
26969
26916
  background,
26970
26917
  controls,
@@ -27008,7 +26955,9 @@ const LikeC4DiagramInnerMemo = memo$1(function({
27008
26955
  enableFocusMode && /* @__PURE__ */ jsx(SelectEdgesOnNodeFocus, {})
27009
26956
  ] })
27010
26957
  ] });
27011
- }, shallowEqual), RenderIcon = ({ node }) => {
26958
+ }, shallowEqual);
26959
+ LikeC4DiagramInnerMemo.displayName = "LikeC4DiagramInnerMemo";
26960
+ const RenderIcon = ({ node }) => {
27012
26961
  const IconComponent = Icons[node.icon ?? ""];
27013
26962
  return IconComponent ? /* @__PURE__ */ jsx(IconComponent, {}) : null;
27014
26963
  }, fontCss = '@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}', bundledStyles = () => {
@@ -27063,7 +27012,7 @@ const BrowserModal = memo$1(({
27063
27012
  }, []), useTimeoutEffect(() => {
27064
27013
  setVisible(!0);
27065
27014
  }, 20);
27066
- const notations = view.notation?.elements, hasNotations = notations && notations.length > 0;
27015
+ const hasNotations = (view.notation?.elements ?? []).length > 0;
27067
27016
  return /* @__PURE__ */ jsx(
27068
27017
  ModalRoot,
27069
27018
  {
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+