@industry-theme/file-city-panel 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{browserAll-BWR83R0--BnLs3Hii.js → browserAll-BdeGLg9f-DjBr02QC.js} +3 -3
- package/dist/{browserAll-BWR83R0--BnLs3Hii.js.map → browserAll-BdeGLg9f-DjBr02QC.js.map} +1 -1
- package/dist/{index-BegApVCq.js → index-vzg_r8XB.js} +832 -510
- package/dist/{index-BegApVCq.js.map → index-vzg_r8XB.js.map} +1 -1
- package/dist/{init-BViSvzO2-DhbwrY0a.js → init-DsRm8ZpT-BcbwX9Dy.js} +2 -2
- package/dist/init-DsRm8ZpT-BcbwX9Dy.js.map +1 -0
- package/dist/panels/components/RepoSpriteView.d.ts.map +1 -1
- package/dist/panels.bundle.js +1 -1
- package/dist/webworkerAll-DFGI4H02-B76T7ioQ.js +3 -0
- package/dist/webworkerAll-DFGI4H02-B76T7ioQ.js.map +1 -0
- package/package.json +3 -3
- package/dist/init-BViSvzO2-DhbwrY0a.js.map +0 -1
- package/dist/webworkerAll-DkB5mV_6-CnQVn1z6.js +0 -3
- package/dist/webworkerAll-DkB5mV_6-CnQVn1z6.js.map +0 -1
|
@@ -26707,7 +26707,7 @@ const ZoomOut$1 = createLucideIcon$2("zoom-out", __iconNode$qn);
|
|
|
26707
26707
|
* This source code is licensed under the ISC license.
|
|
26708
26708
|
* See the LICENSE file in the root directory of this source tree.
|
|
26709
26709
|
*/
|
|
26710
|
-
const index$
|
|
26710
|
+
const index$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26711
26711
|
__proto__: null,
|
|
26712
26712
|
AArrowDown: AArrowDown$1,
|
|
26713
26713
|
AArrowUp: AArrowUp$1,
|
|
@@ -34118,7 +34118,7 @@ const LucideIcons$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
|
|
|
34118
34118
|
ZoomOut: ZoomOut$1,
|
|
34119
34119
|
ZoomOutIcon: ZoomOut$1,
|
|
34120
34120
|
createLucideIcon: createLucideIcon$2,
|
|
34121
|
-
icons: index$
|
|
34121
|
+
icons: index$7
|
|
34122
34122
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
34123
34123
|
var defaultMarkdownTheme = {
|
|
34124
34124
|
space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
|
|
@@ -35869,7 +35869,7 @@ function resetFontScale(theme2) {
|
|
|
35869
35869
|
return scaleThemeFonts(theme2, 1);
|
|
35870
35870
|
}
|
|
35871
35871
|
var src_default = theme$2;
|
|
35872
|
-
const esm$
|
|
35872
|
+
const esm$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
35873
35873
|
__proto__: null,
|
|
35874
35874
|
ThemeProvider,
|
|
35875
35875
|
ThemeShowcase,
|
|
@@ -35909,7 +35909,7 @@ const esm$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
35909
35909
|
function getDefaultExportFromCjs$1(x) {
|
|
35910
35910
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
35911
35911
|
}
|
|
35912
|
-
function getAugmentedNamespace(n2) {
|
|
35912
|
+
function getAugmentedNamespace$1(n2) {
|
|
35913
35913
|
if (Object.prototype.hasOwnProperty.call(n2, "__esModule")) return n2;
|
|
35914
35914
|
var f2 = n2.default;
|
|
35915
35915
|
if (typeof f2 == "function") {
|
|
@@ -35935,7 +35935,7 @@ function getAugmentedNamespace(n2) {
|
|
|
35935
35935
|
}
|
|
35936
35936
|
var dist$1 = {};
|
|
35937
35937
|
var ArchitectureMapHighlightLayers = {};
|
|
35938
|
-
const require$$9 = /* @__PURE__ */ getAugmentedNamespace(esm$
|
|
35938
|
+
const require$$9 = /* @__PURE__ */ getAugmentedNamespace$1(esm$3);
|
|
35939
35939
|
var cityDataUtils = {};
|
|
35940
35940
|
var hasRequiredCityDataUtils;
|
|
35941
35941
|
function requireCityDataUtils() {
|
|
@@ -38833,7 +38833,7 @@ const dist = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
|
|
|
38833
38833
|
parseTour,
|
|
38834
38834
|
parseTourOrThrow
|
|
38835
38835
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
38836
|
-
const require$$6 = /* @__PURE__ */ getAugmentedNamespace(dist);
|
|
38836
|
+
const require$$6 = /* @__PURE__ */ getAugmentedNamespace$1(dist);
|
|
38837
38837
|
var fileColorOverrides = {};
|
|
38838
38838
|
var hasRequiredFileColorOverrides;
|
|
38839
38839
|
function requireFileColorOverrides() {
|
|
@@ -40369,9 +40369,9 @@ function cc$1(names) {
|
|
|
40369
40369
|
return out2;
|
|
40370
40370
|
}
|
|
40371
40371
|
var withSelector$1 = { exports: {} };
|
|
40372
|
-
var withSelector_production = {};
|
|
40372
|
+
var withSelector_production$1 = {};
|
|
40373
40373
|
var shim$1 = { exports: {} };
|
|
40374
|
-
var useSyncExternalStoreShim_production = {};
|
|
40374
|
+
var useSyncExternalStoreShim_production$1 = {};
|
|
40375
40375
|
/**
|
|
40376
40376
|
* @license React
|
|
40377
40377
|
* use-sync-external-store-shim.production.js
|
|
@@ -40381,10 +40381,10 @@ var useSyncExternalStoreShim_production = {};
|
|
|
40381
40381
|
* This source code is licensed under the MIT license found in the
|
|
40382
40382
|
* LICENSE file in the root directory of this source tree.
|
|
40383
40383
|
*/
|
|
40384
|
-
var hasRequiredUseSyncExternalStoreShim_production;
|
|
40385
|
-
function requireUseSyncExternalStoreShim_production() {
|
|
40386
|
-
if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
|
|
40387
|
-
hasRequiredUseSyncExternalStoreShim_production = 1;
|
|
40384
|
+
var hasRequiredUseSyncExternalStoreShim_production$1;
|
|
40385
|
+
function requireUseSyncExternalStoreShim_production$1() {
|
|
40386
|
+
if (hasRequiredUseSyncExternalStoreShim_production$1) return useSyncExternalStoreShim_production$1;
|
|
40387
|
+
hasRequiredUseSyncExternalStoreShim_production$1 = 1;
|
|
40388
40388
|
var React = React2__default__default;
|
|
40389
40389
|
function is(x, y2) {
|
|
40390
40390
|
return x === y2 && (0 !== x || 1 / x === 1 / y2) || x !== x && y2 !== y2;
|
|
@@ -40426,15 +40426,15 @@ function requireUseSyncExternalStoreShim_production() {
|
|
|
40426
40426
|
return getSnapshot();
|
|
40427
40427
|
}
|
|
40428
40428
|
var shim2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
40429
|
-
useSyncExternalStoreShim_production.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim2;
|
|
40430
|
-
return useSyncExternalStoreShim_production;
|
|
40429
|
+
useSyncExternalStoreShim_production$1.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim2;
|
|
40430
|
+
return useSyncExternalStoreShim_production$1;
|
|
40431
40431
|
}
|
|
40432
40432
|
var hasRequiredShim$1;
|
|
40433
40433
|
function requireShim$1() {
|
|
40434
40434
|
if (hasRequiredShim$1) return shim$1.exports;
|
|
40435
40435
|
hasRequiredShim$1 = 1;
|
|
40436
40436
|
{
|
|
40437
|
-
shim$1.exports = requireUseSyncExternalStoreShim_production();
|
|
40437
|
+
shim$1.exports = requireUseSyncExternalStoreShim_production$1();
|
|
40438
40438
|
}
|
|
40439
40439
|
return shim$1.exports;
|
|
40440
40440
|
}
|
|
@@ -40447,16 +40447,16 @@ function requireShim$1() {
|
|
|
40447
40447
|
* This source code is licensed under the MIT license found in the
|
|
40448
40448
|
* LICENSE file in the root directory of this source tree.
|
|
40449
40449
|
*/
|
|
40450
|
-
var hasRequiredWithSelector_production;
|
|
40451
|
-
function requireWithSelector_production() {
|
|
40452
|
-
if (hasRequiredWithSelector_production) return withSelector_production;
|
|
40453
|
-
hasRequiredWithSelector_production = 1;
|
|
40450
|
+
var hasRequiredWithSelector_production$1;
|
|
40451
|
+
function requireWithSelector_production$1() {
|
|
40452
|
+
if (hasRequiredWithSelector_production$1) return withSelector_production$1;
|
|
40453
|
+
hasRequiredWithSelector_production$1 = 1;
|
|
40454
40454
|
var React = React2__default__default, shim2 = requireShim$1();
|
|
40455
40455
|
function is(x, y2) {
|
|
40456
40456
|
return x === y2 && (0 !== x || 1 / x === 1 / y2) || x !== x && y2 !== y2;
|
|
40457
40457
|
}
|
|
40458
40458
|
var objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim2.useSyncExternalStore, useRef2 = React.useRef, useEffect2 = React.useEffect, useMemo2 = React.useMemo, useDebugValue2 = React.useDebugValue;
|
|
40459
|
-
withSelector_production.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector2, isEqual) {
|
|
40459
|
+
withSelector_production$1.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector2, isEqual) {
|
|
40460
40460
|
var instRef = useRef2(null);
|
|
40461
40461
|
if (null === instRef.current) {
|
|
40462
40462
|
var inst = { hasValue: false, value: null };
|
|
@@ -40507,14 +40507,14 @@ function requireWithSelector_production() {
|
|
|
40507
40507
|
useDebugValue2(value);
|
|
40508
40508
|
return value;
|
|
40509
40509
|
};
|
|
40510
|
-
return withSelector_production;
|
|
40510
|
+
return withSelector_production$1;
|
|
40511
40511
|
}
|
|
40512
40512
|
var hasRequiredWithSelector$1;
|
|
40513
40513
|
function requireWithSelector$1() {
|
|
40514
40514
|
if (hasRequiredWithSelector$1) return withSelector$1.exports;
|
|
40515
40515
|
hasRequiredWithSelector$1 = 1;
|
|
40516
40516
|
{
|
|
40517
|
-
withSelector$1.exports = requireWithSelector_production();
|
|
40517
|
+
withSelector$1.exports = requireWithSelector_production$1();
|
|
40518
40518
|
}
|
|
40519
40519
|
return withSelector$1.exports;
|
|
40520
40520
|
}
|
|
@@ -47819,7 +47819,7 @@ function NodeResizer$1({ nodeId, isVisible = true, handleClassName, handleStyle,
|
|
|
47819
47819
|
handleControls.map((c2) => React2__default__default.createElement(ResizeControl$1$1, { key: c2, className: handleClassName, style: handleStyle, nodeId, position: c2, color: color2, minWidth, minHeight, maxWidth, maxHeight, onResizeStart, keepAspectRatio, shouldResize, onResize, onResizeEnd }))
|
|
47820
47820
|
);
|
|
47821
47821
|
}
|
|
47822
|
-
const esm$
|
|
47822
|
+
const esm$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
47823
47823
|
__proto__: null,
|
|
47824
47824
|
Background: Background$1$1,
|
|
47825
47825
|
get BackgroundVariant() {
|
|
@@ -47907,7 +47907,7 @@ const esm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
|
|
|
47907
47907
|
useUpdateNodeInternals: useUpdateNodeInternals$1,
|
|
47908
47908
|
useViewport: useViewport$1
|
|
47909
47909
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
47910
|
-
const require$$1 = /* @__PURE__ */ getAugmentedNamespace(esm$
|
|
47910
|
+
const require$$1 = /* @__PURE__ */ getAugmentedNamespace$1(esm$2);
|
|
47911
47911
|
var hasRequiredCityViewWithReactFlow;
|
|
47912
47912
|
function requireCityViewWithReactFlow() {
|
|
47913
47913
|
if (hasRequiredCityViewWithReactFlow) return CityViewWithReactFlow;
|
|
@@ -56644,136 +56644,177 @@ function XYResizer({ domNode, nodeId, getStoreItems, onChange, onEnd }) {
|
|
|
56644
56644
|
function getDefaultExportFromCjs(x2) {
|
|
56645
56645
|
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
56646
56646
|
}
|
|
56647
|
+
function getAugmentedNamespace(n2) {
|
|
56648
|
+
if (Object.prototype.hasOwnProperty.call(n2, "__esModule")) return n2;
|
|
56649
|
+
var f2 = n2.default;
|
|
56650
|
+
if (typeof f2 == "function") {
|
|
56651
|
+
var a2 = function a3() {
|
|
56652
|
+
if (this instanceof a3) {
|
|
56653
|
+
return Reflect.construct(f2, arguments, this.constructor);
|
|
56654
|
+
}
|
|
56655
|
+
return f2.apply(this, arguments);
|
|
56656
|
+
};
|
|
56657
|
+
a2.prototype = f2.prototype;
|
|
56658
|
+
} else a2 = {};
|
|
56659
|
+
Object.defineProperty(a2, "__esModule", { value: true });
|
|
56660
|
+
Object.keys(n2).forEach(function(k2) {
|
|
56661
|
+
var d2 = Object.getOwnPropertyDescriptor(n2, k2);
|
|
56662
|
+
Object.defineProperty(a2, k2, d2.get ? d2 : {
|
|
56663
|
+
enumerable: true,
|
|
56664
|
+
get: function() {
|
|
56665
|
+
return n2[k2];
|
|
56666
|
+
}
|
|
56667
|
+
});
|
|
56668
|
+
});
|
|
56669
|
+
return a2;
|
|
56670
|
+
}
|
|
56647
56671
|
var withSelector = { exports: {} };
|
|
56648
|
-
var
|
|
56672
|
+
var withSelector_production = {};
|
|
56649
56673
|
var shim = { exports: {} };
|
|
56650
|
-
var
|
|
56674
|
+
var useSyncExternalStoreShim_production = {};
|
|
56651
56675
|
/**
|
|
56652
56676
|
* @license React
|
|
56653
|
-
* use-sync-external-store-shim.production.
|
|
56677
|
+
* use-sync-external-store-shim.production.js
|
|
56654
56678
|
*
|
|
56655
|
-
* Copyright (c)
|
|
56679
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
56656
56680
|
*
|
|
56657
56681
|
* This source code is licensed under the MIT license found in the
|
|
56658
56682
|
* LICENSE file in the root directory of this source tree.
|
|
56659
56683
|
*/
|
|
56660
|
-
var
|
|
56661
|
-
function
|
|
56662
|
-
if (
|
|
56663
|
-
|
|
56664
|
-
var
|
|
56665
|
-
function
|
|
56666
|
-
return
|
|
56667
|
-
}
|
|
56668
|
-
var
|
|
56669
|
-
function
|
|
56670
|
-
var
|
|
56671
|
-
|
|
56672
|
-
|
|
56673
|
-
|
|
56674
|
-
|
|
56675
|
-
|
|
56676
|
-
|
|
56677
|
-
|
|
56678
|
-
|
|
56679
|
-
|
|
56680
|
-
|
|
56681
|
-
|
|
56682
|
-
|
|
56683
|
-
|
|
56684
|
+
var hasRequiredUseSyncExternalStoreShim_production;
|
|
56685
|
+
function requireUseSyncExternalStoreShim_production() {
|
|
56686
|
+
if (hasRequiredUseSyncExternalStoreShim_production) return useSyncExternalStoreShim_production;
|
|
56687
|
+
hasRequiredUseSyncExternalStoreShim_production = 1;
|
|
56688
|
+
var React = React2__default__default;
|
|
56689
|
+
function is(x2, y2) {
|
|
56690
|
+
return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
|
|
56691
|
+
}
|
|
56692
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is, useState2 = React.useState, useEffect2 = React.useEffect, useLayoutEffect2 = React.useLayoutEffect, useDebugValue2 = React.useDebugValue;
|
|
56693
|
+
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
56694
|
+
var value = getSnapshot(), _useState = useState2({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
56695
|
+
useLayoutEffect2(
|
|
56696
|
+
function() {
|
|
56697
|
+
inst.value = value;
|
|
56698
|
+
inst.getSnapshot = getSnapshot;
|
|
56699
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
56700
|
+
},
|
|
56701
|
+
[subscribe, value, getSnapshot]
|
|
56702
|
+
);
|
|
56703
|
+
useEffect2(
|
|
56704
|
+
function() {
|
|
56705
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
56706
|
+
return subscribe(function() {
|
|
56707
|
+
checkIfSnapshotChanged(inst) && forceUpdate({ inst });
|
|
56708
|
+
});
|
|
56709
|
+
},
|
|
56710
|
+
[subscribe]
|
|
56711
|
+
);
|
|
56712
|
+
useDebugValue2(value);
|
|
56713
|
+
return value;
|
|
56684
56714
|
}
|
|
56685
|
-
function
|
|
56686
|
-
var
|
|
56687
|
-
|
|
56715
|
+
function checkIfSnapshotChanged(inst) {
|
|
56716
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
56717
|
+
inst = inst.value;
|
|
56688
56718
|
try {
|
|
56689
|
-
var
|
|
56690
|
-
return !
|
|
56691
|
-
} catch (
|
|
56719
|
+
var nextValue = latestGetSnapshot();
|
|
56720
|
+
return !objectIs(inst, nextValue);
|
|
56721
|
+
} catch (error) {
|
|
56692
56722
|
return true;
|
|
56693
56723
|
}
|
|
56694
56724
|
}
|
|
56695
|
-
function
|
|
56696
|
-
return
|
|
56725
|
+
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
56726
|
+
return getSnapshot();
|
|
56697
56727
|
}
|
|
56698
|
-
var
|
|
56699
|
-
|
|
56700
|
-
return
|
|
56728
|
+
var shim2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
56729
|
+
useSyncExternalStoreShim_production.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim2;
|
|
56730
|
+
return useSyncExternalStoreShim_production;
|
|
56701
56731
|
}
|
|
56702
56732
|
var hasRequiredShim;
|
|
56703
56733
|
function requireShim() {
|
|
56704
56734
|
if (hasRequiredShim) return shim.exports;
|
|
56705
56735
|
hasRequiredShim = 1;
|
|
56706
56736
|
{
|
|
56707
|
-
shim.exports =
|
|
56737
|
+
shim.exports = requireUseSyncExternalStoreShim_production();
|
|
56708
56738
|
}
|
|
56709
56739
|
return shim.exports;
|
|
56710
56740
|
}
|
|
56711
56741
|
/**
|
|
56712
56742
|
* @license React
|
|
56713
|
-
* use-sync-external-store-shim/with-selector.production.
|
|
56743
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
56714
56744
|
*
|
|
56715
|
-
* Copyright (c)
|
|
56745
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
56716
56746
|
*
|
|
56717
56747
|
* This source code is licensed under the MIT license found in the
|
|
56718
56748
|
* LICENSE file in the root directory of this source tree.
|
|
56719
56749
|
*/
|
|
56720
|
-
var
|
|
56721
|
-
function
|
|
56722
|
-
if (
|
|
56723
|
-
|
|
56724
|
-
var
|
|
56725
|
-
function
|
|
56726
|
-
return
|
|
56727
|
-
}
|
|
56728
|
-
var
|
|
56729
|
-
|
|
56730
|
-
var
|
|
56731
|
-
if (null ===
|
|
56732
|
-
var
|
|
56733
|
-
|
|
56734
|
-
} else
|
|
56735
|
-
|
|
56736
|
-
function
|
|
56737
|
-
|
|
56738
|
-
|
|
56739
|
-
|
|
56740
|
-
|
|
56741
|
-
|
|
56742
|
-
|
|
56743
|
-
|
|
56744
|
-
|
|
56745
|
-
|
|
56746
|
-
|
|
56747
|
-
|
|
56748
|
-
|
|
56749
|
-
|
|
56750
|
-
|
|
56751
|
-
|
|
56752
|
-
|
|
56753
|
-
|
|
56754
|
-
|
|
56755
|
-
|
|
56756
|
-
|
|
56757
|
-
|
|
56758
|
-
return
|
|
56759
|
-
|
|
56760
|
-
|
|
56761
|
-
|
|
56762
|
-
|
|
56763
|
-
|
|
56764
|
-
|
|
56765
|
-
|
|
56766
|
-
|
|
56767
|
-
|
|
56768
|
-
|
|
56769
|
-
|
|
56750
|
+
var hasRequiredWithSelector_production;
|
|
56751
|
+
function requireWithSelector_production() {
|
|
56752
|
+
if (hasRequiredWithSelector_production) return withSelector_production;
|
|
56753
|
+
hasRequiredWithSelector_production = 1;
|
|
56754
|
+
var React = React2__default__default, shim2 = requireShim();
|
|
56755
|
+
function is(x2, y2) {
|
|
56756
|
+
return x2 === y2 && (0 !== x2 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
|
|
56757
|
+
}
|
|
56758
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore = shim2.useSyncExternalStore, useRef2 = React.useRef, useEffect2 = React.useEffect, useMemo2 = React.useMemo, useDebugValue2 = React.useDebugValue;
|
|
56759
|
+
withSelector_production.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector2, isEqual) {
|
|
56760
|
+
var instRef = useRef2(null);
|
|
56761
|
+
if (null === instRef.current) {
|
|
56762
|
+
var inst = { hasValue: false, value: null };
|
|
56763
|
+
instRef.current = inst;
|
|
56764
|
+
} else inst = instRef.current;
|
|
56765
|
+
instRef = useMemo2(
|
|
56766
|
+
function() {
|
|
56767
|
+
function memoizedSelector(nextSnapshot) {
|
|
56768
|
+
if (!hasMemo) {
|
|
56769
|
+
hasMemo = true;
|
|
56770
|
+
memoizedSnapshot = nextSnapshot;
|
|
56771
|
+
nextSnapshot = selector2(nextSnapshot);
|
|
56772
|
+
if (void 0 !== isEqual && inst.hasValue) {
|
|
56773
|
+
var currentSelection = inst.value;
|
|
56774
|
+
if (isEqual(currentSelection, nextSnapshot))
|
|
56775
|
+
return memoizedSelection = currentSelection;
|
|
56776
|
+
}
|
|
56777
|
+
return memoizedSelection = nextSnapshot;
|
|
56778
|
+
}
|
|
56779
|
+
currentSelection = memoizedSelection;
|
|
56780
|
+
if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
|
|
56781
|
+
var nextSelection = selector2(nextSnapshot);
|
|
56782
|
+
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
|
|
56783
|
+
return memoizedSnapshot = nextSnapshot, currentSelection;
|
|
56784
|
+
memoizedSnapshot = nextSnapshot;
|
|
56785
|
+
return memoizedSelection = nextSelection;
|
|
56786
|
+
}
|
|
56787
|
+
var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
|
|
56788
|
+
return [
|
|
56789
|
+
function() {
|
|
56790
|
+
return memoizedSelector(getSnapshot());
|
|
56791
|
+
},
|
|
56792
|
+
null === maybeGetServerSnapshot ? void 0 : function() {
|
|
56793
|
+
return memoizedSelector(maybeGetServerSnapshot());
|
|
56794
|
+
}
|
|
56795
|
+
];
|
|
56796
|
+
},
|
|
56797
|
+
[getSnapshot, getServerSnapshot, selector2, isEqual]
|
|
56798
|
+
);
|
|
56799
|
+
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
56800
|
+
useEffect2(
|
|
56801
|
+
function() {
|
|
56802
|
+
inst.hasValue = true;
|
|
56803
|
+
inst.value = value;
|
|
56804
|
+
},
|
|
56805
|
+
[value]
|
|
56806
|
+
);
|
|
56807
|
+
useDebugValue2(value);
|
|
56808
|
+
return value;
|
|
56809
|
+
};
|
|
56810
|
+
return withSelector_production;
|
|
56770
56811
|
}
|
|
56771
56812
|
var hasRequiredWithSelector;
|
|
56772
56813
|
function requireWithSelector() {
|
|
56773
56814
|
if (hasRequiredWithSelector) return withSelector.exports;
|
|
56774
56815
|
hasRequiredWithSelector = 1;
|
|
56775
56816
|
{
|
|
56776
|
-
withSelector.exports =
|
|
56817
|
+
withSelector.exports = requireWithSelector_production();
|
|
56777
56818
|
}
|
|
56778
56819
|
return withSelector.exports;
|
|
56779
56820
|
}
|
|
@@ -56839,8 +56880,7 @@ function shallow$1(objA, objB) {
|
|
|
56839
56880
|
return false;
|
|
56840
56881
|
}
|
|
56841
56882
|
if (objA instanceof Map && objB instanceof Map) {
|
|
56842
|
-
if (objA.size !== objB.size)
|
|
56843
|
-
return false;
|
|
56883
|
+
if (objA.size !== objB.size) return false;
|
|
56844
56884
|
for (const [key, value] of objA) {
|
|
56845
56885
|
if (!Object.is(value, objB.get(key))) {
|
|
56846
56886
|
return false;
|
|
@@ -56849,8 +56889,7 @@ function shallow$1(objA, objB) {
|
|
|
56849
56889
|
return true;
|
|
56850
56890
|
}
|
|
56851
56891
|
if (objA instanceof Set && objB instanceof Set) {
|
|
56852
|
-
if (objA.size !== objB.size)
|
|
56853
|
-
return false;
|
|
56892
|
+
if (objA.size !== objB.size) return false;
|
|
56854
56893
|
for (const value of objA) {
|
|
56855
56894
|
if (!objB.has(value)) {
|
|
56856
56895
|
return false;
|
|
@@ -56862,8 +56901,8 @@ function shallow$1(objA, objB) {
|
|
|
56862
56901
|
if (keysA.length !== Object.keys(objB).length) {
|
|
56863
56902
|
return false;
|
|
56864
56903
|
}
|
|
56865
|
-
for (
|
|
56866
|
-
if (!Object.prototype.hasOwnProperty.call(objB,
|
|
56904
|
+
for (const keyA of keysA) {
|
|
56905
|
+
if (!Object.prototype.hasOwnProperty.call(objB, keyA) || !Object.is(objA[keyA], objB[keyA])) {
|
|
56867
56906
|
return false;
|
|
56868
56907
|
}
|
|
56869
56908
|
}
|
|
@@ -59397,7 +59436,7 @@ function ReactFlow({ nodes, edges, defaultNodes, defaultEdges, className, nodeTy
|
|
|
59397
59436
|
const colorModeClassName = useColorModeClass(colorMode);
|
|
59398
59437
|
return jsx("div", { ...rest, style: { ...style2, ...wrapperStyle }, ref, className: cc(["react-flow", className, colorModeClassName]), "data-testid": "rf__wrapper", id: id2, children: jsxs(Wrapper, { nodes, edges, width, height, fitView: fitView2, nodeOrigin, children: [jsx(GraphView, { onInit, onNodeClick, onEdgeClick, onNodeMouseEnter, onNodeMouseMove, onNodeMouseLeave, onNodeContextMenu, onNodeDoubleClick, nodeTypes: nodeTypes2, edgeTypes: edgeTypes2, connectionLineType, connectionLineStyle, connectionLineComponent, connectionLineContainerStyle, selectionKeyCode, selectionOnDrag, selectionMode, deleteKeyCode, multiSelectionKeyCode, panActivationKeyCode, zoomActivationKeyCode, onlyRenderVisibleElements, defaultViewport: defaultViewport$1, translateExtent, minZoom, maxZoom, preventScrolling, zoomOnScroll, zoomOnPinch, zoomOnDoubleClick, panOnScroll, panOnScrollSpeed, panOnScrollMode, panOnDrag, onPaneClick, onPaneMouseEnter, onPaneMouseMove, onPaneMouseLeave, onPaneScroll, onPaneContextMenu, paneClickDistance, onSelectionContextMenu, onSelectionStart, onSelectionEnd, onReconnect, onReconnectStart, onReconnectEnd, onEdgeContextMenu, onEdgeDoubleClick, onEdgeMouseEnter, onEdgeMouseMove, onEdgeMouseLeave, reconnectRadius, defaultMarkerColor, noDragClassName, noWheelClassName, noPanClassName, rfId, disableKeyboardA11y, nodeExtent, viewport, onViewportChange }), jsx(StoreUpdater, { nodes, edges, defaultNodes, defaultEdges, onConnect, onConnectStart, onConnectEnd, onClickConnectStart, onClickConnectEnd, nodesDraggable, nodesConnectable, nodesFocusable, edgesFocusable, edgesReconnectable, elementsSelectable, elevateNodesOnSelect, elevateEdgesOnSelect, minZoom, maxZoom, nodeExtent, onNodesChange, onEdgesChange, snapToGrid, snapGrid, connectionMode, translateExtent, connectOnClick, defaultEdgeOptions, fitView: fitView2, fitViewOptions, onNodesDelete, onEdgesDelete, onDelete, onNodeDragStart, onNodeDrag, onNodeDragStop, onSelectionDrag, onSelectionDragStart, onSelectionDragStop, onMove, onMoveStart, onMoveEnd, noPanClassName, nodeOrigin, rfId, autoPanOnConnect, autoPanOnNodeDrag, autoPanSpeed, onError, connectionRadius, isValidConnection, selectNodesOnDrag, nodeDragThreshold, onBeforeDelete, paneClickDistance, debug }), jsx(SelectionListener, { onSelectionChange }), children2, jsx(Attribution, { proOptions, position: attributionPosition }), jsx(A11yDescriptions, { rfId, disableKeyboardA11y })] }) });
|
|
59399
59438
|
}
|
|
59400
|
-
var index$
|
|
59439
|
+
var index$5 = fixedForwardRef(ReactFlow);
|
|
59401
59440
|
const selector$6 = (s2) => {
|
|
59402
59441
|
var _a;
|
|
59403
59442
|
return (_a = s2.domNode) == null ? void 0 : _a.querySelector(".react-flow__edgelabel-renderer");
|
|
@@ -93548,7 +93587,7 @@ const ZoomOut = createLucideIcon("zoom-out", __iconNode);
|
|
|
93548
93587
|
* This source code is licensed under the ISC license.
|
|
93549
93588
|
* See the LICENSE file in the root directory of this source tree.
|
|
93550
93589
|
*/
|
|
93551
|
-
const index$
|
|
93590
|
+
const index$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
93552
93591
|
__proto__: null,
|
|
93553
93592
|
AArrowDown,
|
|
93554
93593
|
AArrowUp,
|
|
@@ -100879,7 +100918,7 @@ const LucideIcons = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
100879
100918
|
ZoomOut,
|
|
100880
100919
|
ZoomOutIcon: ZoomOut,
|
|
100881
100920
|
createLucideIcon,
|
|
100882
|
-
icons: index$
|
|
100921
|
+
icons: index$4
|
|
100883
100922
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
100884
100923
|
function resolveIcon(icon, size = 20, className) {
|
|
100885
100924
|
if (!icon)
|
|
@@ -102837,179 +102876,163 @@ function parse$2$1(value) {
|
|
|
102837
102876
|
function stringify$2(values) {
|
|
102838
102877
|
return values.join(" ").trim();
|
|
102839
102878
|
}
|
|
102840
|
-
var
|
|
102841
|
-
var
|
|
102842
|
-
var
|
|
102843
|
-
|
|
102844
|
-
|
|
102845
|
-
|
|
102846
|
-
|
|
102847
|
-
|
|
102848
|
-
|
|
102849
|
-
|
|
102850
|
-
|
|
102851
|
-
|
|
102852
|
-
|
|
102853
|
-
|
|
102854
|
-
|
|
102855
|
-
|
|
102856
|
-
|
|
102857
|
-
|
|
102858
|
-
|
|
102859
|
-
|
|
102860
|
-
|
|
102861
|
-
|
|
102862
|
-
|
|
102863
|
-
|
|
102864
|
-
if (
|
|
102865
|
-
|
|
102866
|
-
|
|
102867
|
-
|
|
102868
|
-
|
|
102869
|
-
|
|
102870
|
-
|
|
102871
|
-
|
|
102872
|
-
|
|
102873
|
-
|
|
102874
|
-
|
|
102875
|
-
|
|
102876
|
-
|
|
102877
|
-
|
|
102878
|
-
|
|
102879
|
-
|
|
102880
|
-
|
|
102879
|
+
var COMMENT_REGEX$1 = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
|
|
102880
|
+
var NEWLINE_REGEX$1 = /\n/g;
|
|
102881
|
+
var WHITESPACE_REGEX$1 = /^\s*/;
|
|
102882
|
+
var PROPERTY_REGEX$1 = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
|
|
102883
|
+
var COLON_REGEX$1 = /^:\s*/;
|
|
102884
|
+
var VALUE_REGEX$1 = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
|
|
102885
|
+
var SEMICOLON_REGEX$1 = /^[;\s]*/;
|
|
102886
|
+
var TRIM_REGEX$1 = /^\s+|\s+$/g;
|
|
102887
|
+
var NEWLINE$1 = "\n";
|
|
102888
|
+
var FORWARD_SLASH$1 = "/";
|
|
102889
|
+
var ASTERISK$1 = "*";
|
|
102890
|
+
var EMPTY_STRING$1 = "";
|
|
102891
|
+
var TYPE_COMMENT$1 = "comment";
|
|
102892
|
+
var TYPE_DECLARATION$1 = "declaration";
|
|
102893
|
+
function index$3(style2, options) {
|
|
102894
|
+
if (typeof style2 !== "string") {
|
|
102895
|
+
throw new TypeError("First argument must be a string");
|
|
102896
|
+
}
|
|
102897
|
+
if (!style2) return [];
|
|
102898
|
+
options = options || {};
|
|
102899
|
+
var lineno = 1;
|
|
102900
|
+
var column = 1;
|
|
102901
|
+
function updatePosition(str2) {
|
|
102902
|
+
var lines = str2.match(NEWLINE_REGEX$1);
|
|
102903
|
+
if (lines) lineno += lines.length;
|
|
102904
|
+
var i2 = str2.lastIndexOf(NEWLINE$1);
|
|
102905
|
+
column = ~i2 ? str2.length - i2 : column + str2.length;
|
|
102906
|
+
}
|
|
102907
|
+
function position2() {
|
|
102908
|
+
var start2 = { line: lineno, column };
|
|
102909
|
+
return function(node2) {
|
|
102910
|
+
node2.position = new Position2(start2);
|
|
102911
|
+
whitespace2();
|
|
102912
|
+
return node2;
|
|
102913
|
+
};
|
|
102914
|
+
}
|
|
102915
|
+
function Position2(start2) {
|
|
102916
|
+
this.start = start2;
|
|
102917
|
+
this.end = { line: lineno, column };
|
|
102918
|
+
this.source = options.source;
|
|
102919
|
+
}
|
|
102920
|
+
Position2.prototype.content = style2;
|
|
102921
|
+
function error(msg) {
|
|
102922
|
+
var err = new Error(
|
|
102923
|
+
options.source + ":" + lineno + ":" + column + ": " + msg
|
|
102924
|
+
);
|
|
102925
|
+
err.reason = msg;
|
|
102926
|
+
err.filename = options.source;
|
|
102927
|
+
err.line = lineno;
|
|
102928
|
+
err.column = column;
|
|
102929
|
+
err.source = style2;
|
|
102930
|
+
if (options.silent) ;
|
|
102931
|
+
else {
|
|
102932
|
+
throw err;
|
|
102881
102933
|
}
|
|
102882
|
-
|
|
102883
|
-
|
|
102884
|
-
|
|
102885
|
-
|
|
102934
|
+
}
|
|
102935
|
+
function match(re2) {
|
|
102936
|
+
var m2 = re2.exec(style2);
|
|
102937
|
+
if (!m2) return;
|
|
102938
|
+
var str2 = m2[0];
|
|
102939
|
+
updatePosition(str2);
|
|
102940
|
+
style2 = style2.slice(str2.length);
|
|
102941
|
+
return m2;
|
|
102942
|
+
}
|
|
102943
|
+
function whitespace2() {
|
|
102944
|
+
match(WHITESPACE_REGEX$1);
|
|
102945
|
+
}
|
|
102946
|
+
function comments(rules) {
|
|
102947
|
+
var c2;
|
|
102948
|
+
rules = rules || [];
|
|
102949
|
+
while (c2 = comment2()) {
|
|
102950
|
+
if (c2 !== false) {
|
|
102951
|
+
rules.push(c2);
|
|
102952
|
+
}
|
|
102886
102953
|
}
|
|
102887
|
-
|
|
102888
|
-
|
|
102889
|
-
|
|
102890
|
-
|
|
102891
|
-
|
|
102892
|
-
|
|
102893
|
-
|
|
102894
|
-
|
|
102895
|
-
err.column = column;
|
|
102896
|
-
err.source = style2;
|
|
102897
|
-
if (options.silent) ;
|
|
102898
|
-
else {
|
|
102899
|
-
throw err;
|
|
102900
|
-
}
|
|
102901
|
-
}
|
|
102902
|
-
function match(re2) {
|
|
102903
|
-
var m2 = re2.exec(style2);
|
|
102904
|
-
if (!m2) return;
|
|
102905
|
-
var str2 = m2[0];
|
|
102906
|
-
updatePosition(str2);
|
|
102907
|
-
style2 = style2.slice(str2.length);
|
|
102908
|
-
return m2;
|
|
102909
|
-
}
|
|
102910
|
-
function whitespace2() {
|
|
102911
|
-
match(WHITESPACE_REGEX2);
|
|
102912
|
-
}
|
|
102913
|
-
function comments(rules) {
|
|
102914
|
-
var c2;
|
|
102915
|
-
rules = rules || [];
|
|
102916
|
-
while (c2 = comment2()) {
|
|
102917
|
-
if (c2 !== false) {
|
|
102918
|
-
rules.push(c2);
|
|
102919
|
-
}
|
|
102920
|
-
}
|
|
102921
|
-
return rules;
|
|
102922
|
-
}
|
|
102923
|
-
function comment2() {
|
|
102924
|
-
var pos = position2();
|
|
102925
|
-
if (FORWARD_SLASH2 != style2.charAt(0) || ASTERISK2 != style2.charAt(1)) return;
|
|
102926
|
-
var i2 = 2;
|
|
102927
|
-
while (EMPTY_STRING2 != style2.charAt(i2) && (ASTERISK2 != style2.charAt(i2) || FORWARD_SLASH2 != style2.charAt(i2 + 1))) {
|
|
102928
|
-
++i2;
|
|
102929
|
-
}
|
|
102930
|
-
i2 += 2;
|
|
102931
|
-
if (EMPTY_STRING2 === style2.charAt(i2 - 1)) {
|
|
102932
|
-
return error("End of comment missing");
|
|
102933
|
-
}
|
|
102934
|
-
var str2 = style2.slice(2, i2 - 2);
|
|
102935
|
-
column += 2;
|
|
102936
|
-
updatePosition(str2);
|
|
102937
|
-
style2 = style2.slice(i2);
|
|
102938
|
-
column += 2;
|
|
102939
|
-
return pos({
|
|
102940
|
-
type: TYPE_COMMENT2,
|
|
102941
|
-
comment: str2
|
|
102942
|
-
});
|
|
102954
|
+
return rules;
|
|
102955
|
+
}
|
|
102956
|
+
function comment2() {
|
|
102957
|
+
var pos = position2();
|
|
102958
|
+
if (FORWARD_SLASH$1 != style2.charAt(0) || ASTERISK$1 != style2.charAt(1)) return;
|
|
102959
|
+
var i2 = 2;
|
|
102960
|
+
while (EMPTY_STRING$1 != style2.charAt(i2) && (ASTERISK$1 != style2.charAt(i2) || FORWARD_SLASH$1 != style2.charAt(i2 + 1))) {
|
|
102961
|
+
++i2;
|
|
102943
102962
|
}
|
|
102944
|
-
|
|
102945
|
-
|
|
102946
|
-
|
|
102947
|
-
if (!prop) return;
|
|
102948
|
-
comment2();
|
|
102949
|
-
if (!match(COLON_REGEX2)) return error("property missing ':'");
|
|
102950
|
-
var val = match(VALUE_REGEX2);
|
|
102951
|
-
var ret = pos({
|
|
102952
|
-
type: TYPE_DECLARATION2,
|
|
102953
|
-
property: trim2(prop[0].replace(COMMENT_REGEX2, EMPTY_STRING2)),
|
|
102954
|
-
value: val ? trim2(val[0].replace(COMMENT_REGEX2, EMPTY_STRING2)) : EMPTY_STRING2
|
|
102955
|
-
});
|
|
102956
|
-
match(SEMICOLON_REGEX2);
|
|
102957
|
-
return ret;
|
|
102963
|
+
i2 += 2;
|
|
102964
|
+
if (EMPTY_STRING$1 === style2.charAt(i2 - 1)) {
|
|
102965
|
+
return error("End of comment missing");
|
|
102958
102966
|
}
|
|
102959
|
-
|
|
102960
|
-
|
|
102961
|
-
|
|
102962
|
-
|
|
102963
|
-
|
|
102964
|
-
|
|
102965
|
-
|
|
102966
|
-
|
|
102967
|
-
|
|
102967
|
+
var str2 = style2.slice(2, i2 - 2);
|
|
102968
|
+
column += 2;
|
|
102969
|
+
updatePosition(str2);
|
|
102970
|
+
style2 = style2.slice(i2);
|
|
102971
|
+
column += 2;
|
|
102972
|
+
return pos({
|
|
102973
|
+
type: TYPE_COMMENT$1,
|
|
102974
|
+
comment: str2
|
|
102975
|
+
});
|
|
102976
|
+
}
|
|
102977
|
+
function declaration() {
|
|
102978
|
+
var pos = position2();
|
|
102979
|
+
var prop = match(PROPERTY_REGEX$1);
|
|
102980
|
+
if (!prop) return;
|
|
102981
|
+
comment2();
|
|
102982
|
+
if (!match(COLON_REGEX$1)) return error("property missing ':'");
|
|
102983
|
+
var val = match(VALUE_REGEX$1);
|
|
102984
|
+
var ret = pos({
|
|
102985
|
+
type: TYPE_DECLARATION$1,
|
|
102986
|
+
property: trim$1(prop[0].replace(COMMENT_REGEX$1, EMPTY_STRING$1)),
|
|
102987
|
+
value: val ? trim$1(val[0].replace(COMMENT_REGEX$1, EMPTY_STRING$1)) : EMPTY_STRING$1
|
|
102988
|
+
});
|
|
102989
|
+
match(SEMICOLON_REGEX$1);
|
|
102990
|
+
return ret;
|
|
102991
|
+
}
|
|
102992
|
+
function declarations() {
|
|
102993
|
+
var decls = [];
|
|
102994
|
+
comments(decls);
|
|
102995
|
+
var decl;
|
|
102996
|
+
while (decl = declaration()) {
|
|
102997
|
+
if (decl !== false) {
|
|
102998
|
+
decls.push(decl);
|
|
102999
|
+
comments(decls);
|
|
102968
103000
|
}
|
|
102969
|
-
return decls;
|
|
102970
103001
|
}
|
|
102971
|
-
|
|
102972
|
-
return declarations();
|
|
102973
|
-
}
|
|
102974
|
-
function trim2(str2) {
|
|
102975
|
-
return str2 ? str2.replace(TRIM_REGEX2, EMPTY_STRING2) : EMPTY_STRING2;
|
|
103002
|
+
return decls;
|
|
102976
103003
|
}
|
|
102977
|
-
|
|
102978
|
-
return
|
|
103004
|
+
whitespace2();
|
|
103005
|
+
return declarations();
|
|
102979
103006
|
}
|
|
102980
|
-
|
|
102981
|
-
|
|
102982
|
-
|
|
102983
|
-
|
|
102984
|
-
|
|
102985
|
-
|
|
102986
|
-
};
|
|
102987
|
-
Object.defineProperty(cjs$2, "__esModule", { value: true });
|
|
102988
|
-
cjs$2.default = StyleToObject2;
|
|
102989
|
-
const inline_style_parser_1 = __importDefault(requireCjs$2());
|
|
102990
|
-
function StyleToObject2(style2, iterator) {
|
|
102991
|
-
let styleObject = null;
|
|
102992
|
-
if (!style2 || typeof style2 !== "string") {
|
|
102993
|
-
return styleObject;
|
|
102994
|
-
}
|
|
102995
|
-
const declarations = (0, inline_style_parser_1.default)(style2);
|
|
102996
|
-
const hasIterator = typeof iterator === "function";
|
|
102997
|
-
declarations.forEach((declaration) => {
|
|
102998
|
-
if (declaration.type !== "declaration") {
|
|
102999
|
-
return;
|
|
103000
|
-
}
|
|
103001
|
-
const { property, value } = declaration;
|
|
103002
|
-
if (hasIterator) {
|
|
103003
|
-
iterator(property, value, declaration);
|
|
103004
|
-
} else if (value) {
|
|
103005
|
-
styleObject = styleObject || {};
|
|
103006
|
-
styleObject[property] = value;
|
|
103007
|
-
}
|
|
103008
|
-
});
|
|
103007
|
+
function trim$1(str2) {
|
|
103008
|
+
return str2 ? str2.replace(TRIM_REGEX$1, EMPTY_STRING$1) : EMPTY_STRING$1;
|
|
103009
|
+
}
|
|
103010
|
+
function StyleToObject$1(style2, iterator) {
|
|
103011
|
+
let styleObject = null;
|
|
103012
|
+
if (!style2 || typeof style2 !== "string") {
|
|
103009
103013
|
return styleObject;
|
|
103010
103014
|
}
|
|
103011
|
-
|
|
103015
|
+
const declarations = index$3(style2);
|
|
103016
|
+
const hasIterator = typeof iterator === "function";
|
|
103017
|
+
declarations.forEach((declaration) => {
|
|
103018
|
+
if (declaration.type !== "declaration") {
|
|
103019
|
+
return;
|
|
103020
|
+
}
|
|
103021
|
+
const { property, value } = declaration;
|
|
103022
|
+
if (hasIterator) {
|
|
103023
|
+
iterator(property, value, declaration);
|
|
103024
|
+
} else if (value) {
|
|
103025
|
+
styleObject = styleObject || {};
|
|
103026
|
+
styleObject[property] = value;
|
|
103027
|
+
}
|
|
103028
|
+
});
|
|
103029
|
+
return styleObject;
|
|
103012
103030
|
}
|
|
103031
|
+
const esm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
103032
|
+
__proto__: null,
|
|
103033
|
+
default: StyleToObject$1
|
|
103034
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
103035
|
+
const require$$0$1 = /* @__PURE__ */ getAugmentedNamespace(esm$1);
|
|
103013
103036
|
var utilities$1 = {};
|
|
103014
103037
|
var hasRequiredUtilities$1;
|
|
103015
103038
|
function requireUtilities$1() {
|
|
@@ -103049,15 +103072,15 @@ function requireUtilities$1() {
|
|
|
103049
103072
|
utilities$1.camelCase = camelCase;
|
|
103050
103073
|
return utilities$1;
|
|
103051
103074
|
}
|
|
103052
|
-
var cjs$
|
|
103053
|
-
var hasRequiredCjs$
|
|
103054
|
-
function requireCjs$
|
|
103055
|
-
if (hasRequiredCjs$
|
|
103056
|
-
hasRequiredCjs$
|
|
103057
|
-
var __importDefault = cjs$
|
|
103075
|
+
var cjs$1;
|
|
103076
|
+
var hasRequiredCjs$1;
|
|
103077
|
+
function requireCjs$1() {
|
|
103078
|
+
if (hasRequiredCjs$1) return cjs$1;
|
|
103079
|
+
hasRequiredCjs$1 = 1;
|
|
103080
|
+
var __importDefault = cjs$1 && cjs$1.__importDefault || function(mod) {
|
|
103058
103081
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
103059
103082
|
};
|
|
103060
|
-
var style_to_object_1 = __importDefault(
|
|
103083
|
+
var style_to_object_1 = __importDefault(require$$0$1);
|
|
103061
103084
|
var utilities_1 = requireUtilities$1();
|
|
103062
103085
|
function StyleToJS(style2, options) {
|
|
103063
103086
|
var output = {};
|
|
@@ -103072,10 +103095,10 @@ function requireCjs$3() {
|
|
|
103072
103095
|
return output;
|
|
103073
103096
|
}
|
|
103074
103097
|
StyleToJS.default = StyleToJS;
|
|
103075
|
-
cjs$
|
|
103076
|
-
return cjs$
|
|
103098
|
+
cjs$1 = StyleToJS;
|
|
103099
|
+
return cjs$1;
|
|
103077
103100
|
}
|
|
103078
|
-
var cjsExports$1 = requireCjs$
|
|
103101
|
+
var cjsExports$1 = requireCjs$1();
|
|
103079
103102
|
const styleToJs$1 = /* @__PURE__ */ getDefaultExportFromCjs(cjsExports$1);
|
|
103080
103103
|
function stringifyPosition$1(value) {
|
|
103081
103104
|
if (!value || typeof value !== "object") {
|
|
@@ -146910,7 +146933,7 @@ const GraphRendererInner = ({ configuration, nodes: propNodes, edges: propEdges,
|
|
|
146910
146933
|
}, 100);
|
|
146911
146934
|
return () => clearTimeout(timeoutId);
|
|
146912
146935
|
}, [baseNodesKey, baseEdgesKey, fitView2, fitViewDuration]);
|
|
146913
|
-
return jsxs(Fragment, { children: [jsxs(index$
|
|
146936
|
+
return jsxs(Fragment, { children: [jsxs(index$5, { nodes: xyflowNodes, edges: xyflowEdges, nodeTypes, edgeTypes, minZoom: 0.1, maxZoom: 4, defaultEdgeOptions: { type: "custom" }, onEdgeClick, onNodeClick, onNodeDrag: handleNodeDrag, onNodeDragStop: handleNodeDragStop, proOptions: { hideAttribution: true }, nodesDraggable: editable, elementsSelectable: true, nodesConnectable: editable, edgesReconnectable: editable, reconnectRadius: 25, elevateEdgesOnSelect: true, onNodesChange: handleNodesChange, onEdgesChange: handleEdgesChange, onConnect: handleConnect, onReconnectStart: handleReconnectStart, onReconnect: handleReconnect, onReconnectEnd: handleReconnectEnd, onPaneClick, onSelectionChange: handleSelectionChange, panOnDrag: false, panOnScroll: true, zoomOnScroll: false, zoomOnPinch: true, selectionOnDrag: true, selectionKeyCode: null, multiSelectionKeyCode: null, children: [showBackground && jsx(Background, { color: backgroundVariant === "dots" ? theme2.colors.border : theme2.colors.textMuted, gap: backgroundGap ?? (backgroundVariant === "dots" ? 16 : 50), size: backgroundVariant === "dots" ? 1 : 0.5, variant: backgroundVariant === "dots" ? BackgroundVariant.Dots : backgroundVariant === "lines" ? BackgroundVariant.Lines : BackgroundVariant.Cross }), showControls && jsx(Controls, { showZoom: true, showFitView: true, showInteractive: true }), showMinimap && jsx(MiniMap, { nodeColor: (node2) => {
|
|
146914
146937
|
var _a;
|
|
146915
146938
|
const nodeData = node2.data;
|
|
146916
146939
|
return ((_a = nodeData == null ? void 0 : nodeData.typeDefinition) == null ? void 0 : _a.color) || theme2.colors.secondary;
|
|
@@ -149621,7 +149644,7 @@ const browserExt = {
|
|
|
149621
149644
|
},
|
|
149622
149645
|
test: () => true,
|
|
149623
149646
|
load: async () => {
|
|
149624
|
-
await import("./browserAll-
|
|
149647
|
+
await import("./browserAll-BdeGLg9f-DjBr02QC.js");
|
|
149625
149648
|
}
|
|
149626
149649
|
};
|
|
149627
149650
|
const webworkerExt = {
|
|
@@ -149632,7 +149655,7 @@ const webworkerExt = {
|
|
|
149632
149655
|
},
|
|
149633
149656
|
test: () => typeof self !== "undefined" && self.WorkerGlobalScope !== void 0,
|
|
149634
149657
|
load: async () => {
|
|
149635
|
-
await import("./webworkerAll-
|
|
149658
|
+
await import("./webworkerAll-DFGI4H02-B76T7ioQ.js");
|
|
149636
149659
|
}
|
|
149637
149660
|
};
|
|
149638
149661
|
class ObservablePoint {
|
|
@@ -188274,7 +188297,7 @@ const WebGPURenderer$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
188274
188297
|
WebGPURenderer
|
|
188275
188298
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
188276
188299
|
extensions.add(browserExt, webworkerExt);
|
|
188277
|
-
const index$
|
|
188300
|
+
const index$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
188278
188301
|
__proto__: null,
|
|
188279
188302
|
AbstractRenderer,
|
|
188280
188303
|
AbstractText,
|
|
@@ -188916,8 +188939,8 @@ function adjustBrightness$1$1(color2, factor) {
|
|
|
188916
188939
|
return newR << 16 | newG << 8 | newB;
|
|
188917
188940
|
}
|
|
188918
188941
|
const TILE_SIZE = 32;
|
|
188919
|
-
const ISO_TILE_WIDTH$
|
|
188920
|
-
const ISO_TILE_HEIGHT$
|
|
188942
|
+
const ISO_TILE_WIDTH$3 = TILE_SIZE * 2;
|
|
188943
|
+
const ISO_TILE_HEIGHT$3 = TILE_SIZE;
|
|
188921
188944
|
const STAR_TIERS = [
|
|
188922
188945
|
// Flags (basic tiers)
|
|
188923
188946
|
{ min: 0, max: 100, name: "New", decorationType: "flag", color: 9741240 },
|
|
@@ -189269,8 +189292,8 @@ function adjustBrightness$2(color2, factor) {
|
|
|
189269
189292
|
const newB = Math.min(255, Math.floor(b2 * factor));
|
|
189270
189293
|
return newR << 16 | newG << 8 | newB;
|
|
189271
189294
|
}
|
|
189272
|
-
const TILE_WIDTH = ISO_TILE_WIDTH$
|
|
189273
|
-
const TILE_HEIGHT = ISO_TILE_HEIGHT$
|
|
189295
|
+
const TILE_WIDTH = ISO_TILE_WIDTH$3;
|
|
189296
|
+
const TILE_HEIGHT = ISO_TILE_HEIGHT$3;
|
|
189274
189297
|
function calculateFootprint(sizeMultiplier) {
|
|
189275
189298
|
const tiles = 4 * sizeMultiplier;
|
|
189276
189299
|
return {
|
|
@@ -190065,6 +190088,43 @@ function generateCobblestoneGround(sizeMultiplier) {
|
|
|
190065
190088
|
}
|
|
190066
190089
|
return ground;
|
|
190067
190090
|
}
|
|
190091
|
+
function generateNeutralGround(sizeMultiplier) {
|
|
190092
|
+
const footprint = calculateFootprint(sizeMultiplier);
|
|
190093
|
+
const ground = new Graphics();
|
|
190094
|
+
const halfW = footprint.width;
|
|
190095
|
+
const halfH = footprint.height;
|
|
190096
|
+
const stoneBase = 9143160;
|
|
190097
|
+
const stoneDark = 7037784;
|
|
190098
|
+
const stoneLight = 10195848;
|
|
190099
|
+
ground.moveTo(0, -halfH);
|
|
190100
|
+
ground.lineTo(halfW, 0);
|
|
190101
|
+
ground.lineTo(0, halfH);
|
|
190102
|
+
ground.lineTo(-halfW, 0);
|
|
190103
|
+
ground.closePath();
|
|
190104
|
+
ground.fill(stoneBase);
|
|
190105
|
+
const textureCount = Math.max(5, Math.floor(7 * sizeMultiplier));
|
|
190106
|
+
for (let i2 = 0; i2 < textureCount; i2++) {
|
|
190107
|
+
const angle = i2 / textureCount * Math.PI * 2;
|
|
190108
|
+
const radius = 0.25 + i2 % 3 * 0.15;
|
|
190109
|
+
const x2 = Math.cos(angle) * halfW * radius;
|
|
190110
|
+
const y2 = Math.sin(angle) * halfH * radius;
|
|
190111
|
+
const dotSize = Math.max(2, 3 * sizeMultiplier);
|
|
190112
|
+
ground.circle(x2, y2, dotSize);
|
|
190113
|
+
ground.fill(i2 % 2 === 0 ? stoneLight : stoneDark);
|
|
190114
|
+
}
|
|
190115
|
+
const pebbleSize = Math.max(1.5, 2 * sizeMultiplier);
|
|
190116
|
+
const pebbleSpots = [
|
|
190117
|
+
{ x: -halfW * 0.3, y: -halfH * 0.15 },
|
|
190118
|
+
{ x: halfW * 0.25, y: halfH * 0.2 },
|
|
190119
|
+
{ x: -halfW * 0.15, y: halfH * 0.35 },
|
|
190120
|
+
{ x: halfW * 0.35, y: -halfH * 0.25 }
|
|
190121
|
+
];
|
|
190122
|
+
for (const spot of pebbleSpots) {
|
|
190123
|
+
ground.circle(spot.x, spot.y, pebbleSize);
|
|
190124
|
+
ground.fill(stoneDark);
|
|
190125
|
+
}
|
|
190126
|
+
return ground;
|
|
190127
|
+
}
|
|
190068
190128
|
function generateLicenseSign(license, config) {
|
|
190069
190129
|
switch (license) {
|
|
190070
190130
|
case "MIT":
|
|
@@ -190097,18 +190157,443 @@ function generateLicenseGround(license, sizeMultiplier) {
|
|
|
190097
190157
|
return generateOpenGrassGround(sizeMultiplier);
|
|
190098
190158
|
}
|
|
190099
190159
|
}
|
|
190100
|
-
|
|
190101
|
-
const
|
|
190102
|
-
|
|
190160
|
+
function darkenColor(color2, percent) {
|
|
190161
|
+
const r2 = Math.max(0, (color2 >> 16 & 255) * (1 - percent));
|
|
190162
|
+
const g2 = Math.max(0, (color2 >> 8 & 255) * (1 - percent));
|
|
190163
|
+
const b2 = Math.max(0, (color2 & 255) * (1 - percent));
|
|
190164
|
+
return `#${Math.round(r2).toString(16).padStart(2, "0")}${Math.round(g2).toString(16).padStart(2, "0")}${Math.round(b2).toString(16).padStart(2, "0")}`;
|
|
190165
|
+
}
|
|
190166
|
+
function hslToHex(h2, s2, l2) {
|
|
190167
|
+
s2 /= 100;
|
|
190168
|
+
l2 /= 100;
|
|
190169
|
+
const a2 = s2 * Math.min(l2, 1 - l2);
|
|
190170
|
+
const f2 = (n2) => {
|
|
190171
|
+
const k2 = (n2 + h2 / 30) % 12;
|
|
190172
|
+
const color2 = l2 - a2 * Math.max(Math.min(k2 - 3, 9 - k2, 1), -1);
|
|
190173
|
+
return Math.round(255 * color2);
|
|
190174
|
+
};
|
|
190175
|
+
return (f2(0) << 16) + (f2(8) << 8) + f2(4);
|
|
190176
|
+
}
|
|
190177
|
+
function hashStringToColor(str2) {
|
|
190178
|
+
let hash = 0;
|
|
190179
|
+
for (let i2 = 0; i2 < str2.length; i2++) {
|
|
190180
|
+
hash = str2.charCodeAt(i2) + ((hash << 5) - hash);
|
|
190181
|
+
}
|
|
190182
|
+
const h2 = Math.abs(hash % 360);
|
|
190183
|
+
const s2 = 30 + Math.abs((hash >> 8) % 30);
|
|
190184
|
+
const l2 = 35 + Math.abs((hash >> 16) % 20);
|
|
190185
|
+
return hslToHex(h2, s2, l2);
|
|
190186
|
+
}
|
|
190187
|
+
function parseColor$1(color2) {
|
|
190103
190188
|
if (typeof color2 === "number") return color2;
|
|
190104
|
-
|
|
190189
|
+
if (color2.startsWith("#")) return parseInt(color2.slice(1), 16);
|
|
190190
|
+
return hashStringToColor(color2);
|
|
190105
190191
|
}
|
|
190192
|
+
function generateCardColors(baseColor) {
|
|
190193
|
+
return {
|
|
190194
|
+
cardBg: darkenColor(baseColor, 0.6),
|
|
190195
|
+
cardBorder: darkenColor(baseColor, 0.7),
|
|
190196
|
+
cardHighlight: darkenColor(baseColor, 0.4),
|
|
190197
|
+
windowGradient: [
|
|
190198
|
+
darkenColor(baseColor, 0.85),
|
|
190199
|
+
darkenColor(baseColor, 0.8)
|
|
190200
|
+
],
|
|
190201
|
+
panelGradient: [
|
|
190202
|
+
darkenColor(baseColor, 0.4),
|
|
190203
|
+
darkenColor(baseColor, 0.6)
|
|
190204
|
+
],
|
|
190205
|
+
panelBorder: darkenColor(baseColor, 0.3)
|
|
190206
|
+
};
|
|
190207
|
+
}
|
|
190208
|
+
const licenseBorderColors = {
|
|
190209
|
+
MIT: "#228b22",
|
|
190210
|
+
// Forest green - open/welcoming
|
|
190211
|
+
BSD: "#228b22",
|
|
190212
|
+
// Same as MIT
|
|
190213
|
+
"BSD-3-Clause": "#228b22",
|
|
190214
|
+
ISC: "#228b22",
|
|
190215
|
+
"Apache-2.0": "#d97706",
|
|
190216
|
+
// Amber/orange - formal but welcoming
|
|
190217
|
+
"GPL-3.0": "#2255aa",
|
|
190218
|
+
// GNU blue
|
|
190219
|
+
"LGPL-3.0": "#2255aa",
|
|
190220
|
+
"GPL-2.0": "#2255aa",
|
|
190221
|
+
"AGPL-3.0": "#2255aa",
|
|
190222
|
+
"MPL-2.0": "#8b5cf6",
|
|
190223
|
+
// Purple
|
|
190224
|
+
UNLICENSED: "#dc2626"
|
|
190225
|
+
// Red - restrictive
|
|
190226
|
+
};
|
|
190106
190227
|
function formatCount$1(count2) {
|
|
190107
190228
|
if (count2 < 1e3) return count2.toString();
|
|
190108
190229
|
if (count2 < 1e6) return `${(count2 / 1e3).toFixed(1)}k`;
|
|
190109
190230
|
return `${(count2 / 1e6).toFixed(1)}M`;
|
|
190110
190231
|
}
|
|
190111
|
-
|
|
190232
|
+
const STARFIELD_BACKGROUND = `
|
|
190233
|
+
radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.4) 50%, transparent 50%),
|
|
190234
|
+
radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.3) 50%, transparent 50%),
|
|
190235
|
+
radial-gradient(1px 1px at 40% 10%, rgba(255,255,255,0.35) 50%, transparent 50%),
|
|
190236
|
+
radial-gradient(1px 1px at 55% 45%, rgba(255,255,255,0.25) 50%, transparent 50%),
|
|
190237
|
+
radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.4) 50%, transparent 50%),
|
|
190238
|
+
radial-gradient(1px 1px at 85% 40%, rgba(255,255,255,0.3) 50%, transparent 50%),
|
|
190239
|
+
radial-gradient(1px 1px at 15% 55%, rgba(255,255,255,0.35) 50%, transparent 50%),
|
|
190240
|
+
radial-gradient(1px 1px at 35% 70%, rgba(255,255,255,0.25) 50%, transparent 50%),
|
|
190241
|
+
radial-gradient(1px 1px at 50% 85%, rgba(255,255,255,0.4) 50%, transparent 50%),
|
|
190242
|
+
radial-gradient(1px 1px at 65% 60%, rgba(255,255,255,0.3) 50%, transparent 50%),
|
|
190243
|
+
radial-gradient(1px 1px at 80% 75%, rgba(255,255,255,0.35) 50%, transparent 50%),
|
|
190244
|
+
radial-gradient(1px 1px at 95% 90%, rgba(255,255,255,0.25) 50%, transparent 50%),
|
|
190245
|
+
radial-gradient(1.5px 1.5px at 20% 25%, rgba(255,255,255,0.5) 50%, transparent 50%),
|
|
190246
|
+
radial-gradient(1.5px 1.5px at 60% 30%, rgba(200,220,255,0.45) 50%, transparent 50%),
|
|
190247
|
+
radial-gradient(1.5px 1.5px at 45% 65%, rgba(255,255,255,0.5) 50%, transparent 50%),
|
|
190248
|
+
radial-gradient(1.5px 1.5px at 75% 80%, rgba(220,200,255,0.45) 50%, transparent 50%),
|
|
190249
|
+
radial-gradient(2px 2px at 30% 50%, rgba(255,255,255,0.6) 50%, transparent 50%),
|
|
190250
|
+
radial-gradient(2px 2px at 70% 55%, rgba(200,220,255,0.55) 50%, transparent 50%),
|
|
190251
|
+
radial-gradient(2px 2px at 90% 15%, rgba(255,255,255,0.6) 50%, transparent 50%)
|
|
190252
|
+
`;
|
|
190253
|
+
const CardLayout = ({
|
|
190254
|
+
color: color2,
|
|
190255
|
+
owner,
|
|
190256
|
+
stars,
|
|
190257
|
+
label,
|
|
190258
|
+
description: description2,
|
|
190259
|
+
files: files2,
|
|
190260
|
+
language: language2,
|
|
190261
|
+
license,
|
|
190262
|
+
packages,
|
|
190263
|
+
children: children2
|
|
190264
|
+
}) => {
|
|
190265
|
+
const { theme: theme2 } = useTheme();
|
|
190266
|
+
const baseColor = parseColor$1(color2);
|
|
190267
|
+
const colors = generateCardColors(baseColor);
|
|
190268
|
+
const licenseBorder = license ? licenseBorderColors[license] : null;
|
|
190269
|
+
const showHeader = owner || stars !== void 0 && stars > 0;
|
|
190270
|
+
return /* @__PURE__ */ jsxs(
|
|
190271
|
+
"div",
|
|
190272
|
+
{
|
|
190273
|
+
style: {
|
|
190274
|
+
position: "relative",
|
|
190275
|
+
display: "flex",
|
|
190276
|
+
flexDirection: "column",
|
|
190277
|
+
backgroundColor: colors.cardBg,
|
|
190278
|
+
padding: "8px 12px 28px 12px",
|
|
190279
|
+
border: `${licenseBorder ? "5px" : "3px"} solid ${licenseBorder || colors.cardBorder}`,
|
|
190280
|
+
width: "100%",
|
|
190281
|
+
height: "100%",
|
|
190282
|
+
boxSizing: "border-box",
|
|
190283
|
+
overflow: "hidden",
|
|
190284
|
+
boxShadow: licenseBorder ? `inset 0 0 0 2px ${licenseBorder}40, 0 0 8px ${licenseBorder}60` : `inset 0 0 0 2px ${colors.cardHighlight}`
|
|
190285
|
+
},
|
|
190286
|
+
children: [
|
|
190287
|
+
showHeader && /* @__PURE__ */ jsxs(
|
|
190288
|
+
"div",
|
|
190289
|
+
{
|
|
190290
|
+
style: {
|
|
190291
|
+
display: "flex",
|
|
190292
|
+
justifyContent: "space-between",
|
|
190293
|
+
alignItems: "flex-start",
|
|
190294
|
+
marginBottom: "0",
|
|
190295
|
+
marginLeft: "-12px",
|
|
190296
|
+
marginRight: "-4px",
|
|
190297
|
+
marginTop: "-8px",
|
|
190298
|
+
minHeight: "32px",
|
|
190299
|
+
flexShrink: 0
|
|
190300
|
+
},
|
|
190301
|
+
children: [
|
|
190302
|
+
owner ? /* @__PURE__ */ jsxs(
|
|
190303
|
+
"div",
|
|
190304
|
+
{
|
|
190305
|
+
style: {
|
|
190306
|
+
display: "flex",
|
|
190307
|
+
alignItems: "center",
|
|
190308
|
+
gap: "6px",
|
|
190309
|
+
minWidth: 0,
|
|
190310
|
+
flex: 1
|
|
190311
|
+
},
|
|
190312
|
+
children: [
|
|
190313
|
+
/* @__PURE__ */ jsx(
|
|
190314
|
+
"img",
|
|
190315
|
+
{
|
|
190316
|
+
src: `https://github.com/${owner}.png?size=80`,
|
|
190317
|
+
alt: owner,
|
|
190318
|
+
style: {
|
|
190319
|
+
width: "48px",
|
|
190320
|
+
height: "48px",
|
|
190321
|
+
borderRadius: "0",
|
|
190322
|
+
border: "none",
|
|
190323
|
+
borderRight: "1px solid rgba(255,255,255,0.3)",
|
|
190324
|
+
borderBottom: "1px solid rgba(255,255,255,0.3)",
|
|
190325
|
+
flexShrink: 0,
|
|
190326
|
+
marginBottom: "-16px",
|
|
190327
|
+
position: "relative",
|
|
190328
|
+
zIndex: 1
|
|
190329
|
+
}
|
|
190330
|
+
}
|
|
190331
|
+
),
|
|
190332
|
+
/* @__PURE__ */ jsx(
|
|
190333
|
+
"span",
|
|
190334
|
+
{
|
|
190335
|
+
style: {
|
|
190336
|
+
fontSize: theme2.fontSizes[1],
|
|
190337
|
+
fontWeight: theme2.fontWeights.medium,
|
|
190338
|
+
color: "#e0e0e0",
|
|
190339
|
+
textShadow: "0 1px 2px rgba(0,0,0,0.5)",
|
|
190340
|
+
fontFamily: theme2.fonts.body,
|
|
190341
|
+
overflow: "hidden",
|
|
190342
|
+
textOverflow: "ellipsis",
|
|
190343
|
+
whiteSpace: "nowrap",
|
|
190344
|
+
alignSelf: "flex-end"
|
|
190345
|
+
},
|
|
190346
|
+
children: owner
|
|
190347
|
+
}
|
|
190348
|
+
)
|
|
190349
|
+
]
|
|
190350
|
+
}
|
|
190351
|
+
) : /* @__PURE__ */ jsx("div", {}),
|
|
190352
|
+
stars !== void 0 && stars > 0 && /* @__PURE__ */ jsxs(
|
|
190353
|
+
"div",
|
|
190354
|
+
{
|
|
190355
|
+
style: {
|
|
190356
|
+
display: "flex",
|
|
190357
|
+
alignItems: "center",
|
|
190358
|
+
gap: "4px",
|
|
190359
|
+
flexShrink: 0,
|
|
190360
|
+
alignSelf: "flex-end"
|
|
190361
|
+
},
|
|
190362
|
+
children: [
|
|
190363
|
+
/* @__PURE__ */ jsx(
|
|
190364
|
+
"span",
|
|
190365
|
+
{
|
|
190366
|
+
style: {
|
|
190367
|
+
fontSize: theme2.fontSizes[1],
|
|
190368
|
+
fontWeight: theme2.fontWeights.medium,
|
|
190369
|
+
color: "#ffffff",
|
|
190370
|
+
textShadow: "0 1px 2px rgba(0,0,0,0.5)",
|
|
190371
|
+
fontFamily: theme2.fonts.body
|
|
190372
|
+
},
|
|
190373
|
+
children: formatCount$1(stars)
|
|
190374
|
+
}
|
|
190375
|
+
),
|
|
190376
|
+
/* @__PURE__ */ jsx(
|
|
190377
|
+
"span",
|
|
190378
|
+
{
|
|
190379
|
+
style: {
|
|
190380
|
+
fontSize: theme2.fontSizes[1],
|
|
190381
|
+
fontWeight: theme2.fontWeights.medium,
|
|
190382
|
+
color: "#fbbf24",
|
|
190383
|
+
textShadow: "0 1px 2px rgba(0,0,0,0.5)"
|
|
190384
|
+
},
|
|
190385
|
+
children: "★"
|
|
190386
|
+
}
|
|
190387
|
+
)
|
|
190388
|
+
]
|
|
190389
|
+
}
|
|
190390
|
+
)
|
|
190391
|
+
]
|
|
190392
|
+
}
|
|
190393
|
+
),
|
|
190394
|
+
/* @__PURE__ */ jsxs(
|
|
190395
|
+
"div",
|
|
190396
|
+
{
|
|
190397
|
+
style: {
|
|
190398
|
+
flex: 1,
|
|
190399
|
+
minHeight: 0,
|
|
190400
|
+
position: "relative",
|
|
190401
|
+
background: `linear-gradient(180deg, ${colors.windowGradient[0]} 0%, ${colors.windowGradient[1]} 100%)`,
|
|
190402
|
+
border: `2px solid ${colors.cardHighlight}`,
|
|
190403
|
+
boxShadow: "inset 0 2px 4px rgba(0,0,0,0.3)",
|
|
190404
|
+
overflow: "hidden",
|
|
190405
|
+
display: "flex",
|
|
190406
|
+
alignItems: "center",
|
|
190407
|
+
justifyContent: "center"
|
|
190408
|
+
},
|
|
190409
|
+
children: [
|
|
190410
|
+
/* @__PURE__ */ jsx(
|
|
190411
|
+
"div",
|
|
190412
|
+
{
|
|
190413
|
+
style: {
|
|
190414
|
+
position: "absolute",
|
|
190415
|
+
inset: 0,
|
|
190416
|
+
pointerEvents: "none",
|
|
190417
|
+
backgroundImage: STARFIELD_BACKGROUND,
|
|
190418
|
+
backgroundSize: "100% 100%"
|
|
190419
|
+
}
|
|
190420
|
+
}
|
|
190421
|
+
),
|
|
190422
|
+
children2,
|
|
190423
|
+
label && /* @__PURE__ */ jsx(
|
|
190424
|
+
"div",
|
|
190425
|
+
{
|
|
190426
|
+
style: {
|
|
190427
|
+
position: "absolute",
|
|
190428
|
+
bottom: 0,
|
|
190429
|
+
left: 0,
|
|
190430
|
+
right: 0,
|
|
190431
|
+
padding: "6px 8px",
|
|
190432
|
+
background: "linear-gradient(transparent, rgba(0,0,0,0.7))",
|
|
190433
|
+
fontSize: theme2.fontSizes[2],
|
|
190434
|
+
fontWeight: theme2.fontWeights.bold,
|
|
190435
|
+
color: "#ffffff",
|
|
190436
|
+
fontFamily: theme2.fonts.body,
|
|
190437
|
+
whiteSpace: "nowrap",
|
|
190438
|
+
overflow: "hidden",
|
|
190439
|
+
textOverflow: "ellipsis",
|
|
190440
|
+
textShadow: "0 1px 2px rgba(0,0,0,0.5)",
|
|
190441
|
+
textAlign: "center"
|
|
190442
|
+
},
|
|
190443
|
+
title: label,
|
|
190444
|
+
children: label
|
|
190445
|
+
}
|
|
190446
|
+
)
|
|
190447
|
+
]
|
|
190448
|
+
}
|
|
190449
|
+
),
|
|
190450
|
+
/* @__PURE__ */ jsxs(
|
|
190451
|
+
"div",
|
|
190452
|
+
{
|
|
190453
|
+
style: {
|
|
190454
|
+
marginTop: "12px",
|
|
190455
|
+
padding: "8px",
|
|
190456
|
+
background: `linear-gradient(180deg, ${colors.panelGradient[0]} 0%, ${colors.panelGradient[1]} 100%)`,
|
|
190457
|
+
border: `1px solid ${colors.panelBorder}`,
|
|
190458
|
+
flexShrink: 0
|
|
190459
|
+
},
|
|
190460
|
+
children: [
|
|
190461
|
+
description2 && /* @__PURE__ */ jsx(
|
|
190462
|
+
"div",
|
|
190463
|
+
{
|
|
190464
|
+
style: {
|
|
190465
|
+
fontSize: theme2.fontSizes[1],
|
|
190466
|
+
color: "#e0e0e0",
|
|
190467
|
+
marginBottom: "6px",
|
|
190468
|
+
fontFamily: theme2.fonts.body,
|
|
190469
|
+
overflow: "hidden",
|
|
190470
|
+
textOverflow: "ellipsis",
|
|
190471
|
+
display: "-webkit-box",
|
|
190472
|
+
WebkitLineClamp: 2,
|
|
190473
|
+
WebkitBoxOrient: "vertical",
|
|
190474
|
+
textShadow: "0 1px 2px rgba(0,0,0,0.3)",
|
|
190475
|
+
lineHeight: 1.4
|
|
190476
|
+
},
|
|
190477
|
+
title: description2,
|
|
190478
|
+
children: description2
|
|
190479
|
+
}
|
|
190480
|
+
),
|
|
190481
|
+
/* @__PURE__ */ jsx(
|
|
190482
|
+
"div",
|
|
190483
|
+
{
|
|
190484
|
+
style: {
|
|
190485
|
+
display: "flex",
|
|
190486
|
+
justifyContent: "center",
|
|
190487
|
+
flexWrap: "wrap",
|
|
190488
|
+
gap: "10px",
|
|
190489
|
+
fontSize: theme2.fontSizes[1],
|
|
190490
|
+
color: "#e0e0e0",
|
|
190491
|
+
fontFamily: theme2.fonts.body
|
|
190492
|
+
},
|
|
190493
|
+
children: files2 !== void 0 && files2 > 0 && /* @__PURE__ */ jsxs("span", { style: { display: "flex", alignItems: "center", gap: "4px" }, children: [
|
|
190494
|
+
/* @__PURE__ */ jsx("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "#94a3b8", children: /* @__PURE__ */ jsx(
|
|
190495
|
+
"path",
|
|
190496
|
+
{
|
|
190497
|
+
d: "M3 1h7l3 3v11H3V1zm7 0v3h3M5 8h6M5 11h6",
|
|
190498
|
+
stroke: "#94a3b8",
|
|
190499
|
+
strokeWidth: "1",
|
|
190500
|
+
fill: "none"
|
|
190501
|
+
}
|
|
190502
|
+
) }),
|
|
190503
|
+
formatCount$1(files2)
|
|
190504
|
+
] })
|
|
190505
|
+
}
|
|
190506
|
+
),
|
|
190507
|
+
packages && packages.length > 1 && /* @__PURE__ */ jsxs(
|
|
190508
|
+
"div",
|
|
190509
|
+
{
|
|
190510
|
+
style: {
|
|
190511
|
+
marginTop: "6px",
|
|
190512
|
+
display: "flex",
|
|
190513
|
+
flexWrap: "wrap",
|
|
190514
|
+
justifyContent: "center",
|
|
190515
|
+
gap: "4px"
|
|
190516
|
+
},
|
|
190517
|
+
children: [
|
|
190518
|
+
packages.slice(0, 6).map((pkg, i2) => /* @__PURE__ */ jsx(
|
|
190519
|
+
"span",
|
|
190520
|
+
{
|
|
190521
|
+
style: {
|
|
190522
|
+
fontSize: theme2.fontSizes[0],
|
|
190523
|
+
color: "#e0e0e0",
|
|
190524
|
+
backgroundColor: "rgba(0,0,0,0.2)",
|
|
190525
|
+
padding: "2px 6px",
|
|
190526
|
+
borderRadius: "3px",
|
|
190527
|
+
fontFamily: theme2.fonts.body,
|
|
190528
|
+
borderLeft: `2px solid ${typeof pkg.color === "string" ? pkg.color : `#${(pkg.color || 8947848).toString(16).padStart(6, "0")}`}`
|
|
190529
|
+
},
|
|
190530
|
+
children: pkg.name
|
|
190531
|
+
},
|
|
190532
|
+
i2
|
|
190533
|
+
)),
|
|
190534
|
+
packages.length > 6 && /* @__PURE__ */ jsxs(
|
|
190535
|
+
"span",
|
|
190536
|
+
{
|
|
190537
|
+
style: {
|
|
190538
|
+
fontSize: theme2.fontSizes[0],
|
|
190539
|
+
color: "#a0a0a0",
|
|
190540
|
+
fontFamily: theme2.fonts.body
|
|
190541
|
+
},
|
|
190542
|
+
children: [
|
|
190543
|
+
"+",
|
|
190544
|
+
packages.length - 6,
|
|
190545
|
+
" more"
|
|
190546
|
+
]
|
|
190547
|
+
}
|
|
190548
|
+
)
|
|
190549
|
+
]
|
|
190550
|
+
}
|
|
190551
|
+
)
|
|
190552
|
+
]
|
|
190553
|
+
}
|
|
190554
|
+
),
|
|
190555
|
+
language2 && /* @__PURE__ */ jsx(
|
|
190556
|
+
"div",
|
|
190557
|
+
{
|
|
190558
|
+
style: {
|
|
190559
|
+
position: "absolute",
|
|
190560
|
+
bottom: "4px",
|
|
190561
|
+
left: "8px",
|
|
190562
|
+
fontSize: theme2.fontSizes[0],
|
|
190563
|
+
fontWeight: theme2.fontWeights.medium,
|
|
190564
|
+
color: "#e0e0e0",
|
|
190565
|
+
textShadow: "0 1px 1px rgba(0,0,0,0.3)",
|
|
190566
|
+
fontFamily: theme2.fonts.body
|
|
190567
|
+
},
|
|
190568
|
+
children: language2
|
|
190569
|
+
}
|
|
190570
|
+
),
|
|
190571
|
+
license && /* @__PURE__ */ jsx(
|
|
190572
|
+
"div",
|
|
190573
|
+
{
|
|
190574
|
+
style: {
|
|
190575
|
+
position: "absolute",
|
|
190576
|
+
bottom: "-3px",
|
|
190577
|
+
right: "-3px",
|
|
190578
|
+
backgroundColor: licenseBorder || colors.cardHighlight,
|
|
190579
|
+
padding: "3px 10px",
|
|
190580
|
+
borderRadius: 0,
|
|
190581
|
+
fontFamily: theme2.fonts.body,
|
|
190582
|
+
fontSize: theme2.fontSizes[0],
|
|
190583
|
+
fontWeight: theme2.fontWeights.bold,
|
|
190584
|
+
color: "#ffffff",
|
|
190585
|
+
textShadow: "0 1px 1px rgba(0,0,0,0.3)"
|
|
190586
|
+
},
|
|
190587
|
+
children: license
|
|
190588
|
+
}
|
|
190589
|
+
)
|
|
190590
|
+
]
|
|
190591
|
+
}
|
|
190592
|
+
);
|
|
190593
|
+
};
|
|
190594
|
+
const ISO_TILE_WIDTH$1 = 64;
|
|
190595
|
+
const ISO_TILE_HEIGHT$1 = 32;
|
|
190596
|
+
function getPackagePositions$1(count2, footprintWidth, footprintHeight) {
|
|
190112
190597
|
const positions = [];
|
|
190113
190598
|
const spacing = 0.18;
|
|
190114
190599
|
const yOffset = -footprintHeight * 0.15;
|
|
@@ -190160,7 +190645,10 @@ const RepoSprite = ({
|
|
|
190160
190645
|
collaborators,
|
|
190161
190646
|
license,
|
|
190162
190647
|
label,
|
|
190648
|
+
owner,
|
|
190649
|
+
language: language2,
|
|
190163
190650
|
variant = "default",
|
|
190651
|
+
cardTheme = "blue",
|
|
190164
190652
|
width = 200,
|
|
190165
190653
|
height = 200,
|
|
190166
190654
|
backgroundColor,
|
|
@@ -190190,8 +190678,8 @@ const RepoSprite = ({
|
|
|
190190
190678
|
(_a = containerRef.current) == null ? void 0 : _a.appendChild(app.canvas);
|
|
190191
190679
|
appRef.current = app;
|
|
190192
190680
|
const boundarySize = 4 * size;
|
|
190193
|
-
const boundaryWidth = boundarySize * ISO_TILE_WIDTH;
|
|
190194
|
-
const boundaryHeight = boundarySize * ISO_TILE_HEIGHT;
|
|
190681
|
+
const boundaryWidth = boundarySize * ISO_TILE_WIDTH$1;
|
|
190682
|
+
const boundaryHeight = boundarySize * ISO_TILE_HEIGHT$1;
|
|
190195
190683
|
const padding = 0.9;
|
|
190196
190684
|
const scaleX = width * padding / boundaryWidth;
|
|
190197
190685
|
const scaleY = height * padding / boundaryHeight;
|
|
@@ -190215,15 +190703,10 @@ const RepoSprite = ({
|
|
|
190215
190703
|
boundary.stroke();
|
|
190216
190704
|
mainContainer.addChild(boundary);
|
|
190217
190705
|
}
|
|
190218
|
-
|
|
190219
|
-
|
|
190220
|
-
license,
|
|
190221
|
-
size
|
|
190222
|
-
);
|
|
190223
|
-
mainContainer.addChild(licenseGround);
|
|
190224
|
-
}
|
|
190706
|
+
const ground = license ? generateLicenseGround(license, size) : generateNeutralGround(size);
|
|
190707
|
+
mainContainer.addChild(ground);
|
|
190225
190708
|
if (packages && packages.length > 1) {
|
|
190226
|
-
const positions = getPackagePositions(
|
|
190709
|
+
const positions = getPackagePositions$1(
|
|
190227
190710
|
packages.length,
|
|
190228
190711
|
boundaryWidth / 2,
|
|
190229
190712
|
boundaryHeight / 2
|
|
@@ -190231,7 +190714,7 @@ const RepoSprite = ({
|
|
|
190231
190714
|
for (let i2 = 0; i2 < packages.length; i2++) {
|
|
190232
190715
|
const pkg = packages[i2];
|
|
190233
190716
|
const pos = positions[i2] || { x: 0, y: 0 };
|
|
190234
|
-
const pkgColor = pkg.color ? parseColor(pkg.color) : parseColor(color2);
|
|
190717
|
+
const pkgColor = pkg.color ? parseColor$1(pkg.color) : parseColor$1(color2);
|
|
190235
190718
|
const pkgSize = (pkg.size || 1) * size * 0.4;
|
|
190236
190719
|
const buildingGraphics = generateBuildingSprite({
|
|
190237
190720
|
size: pkgSize,
|
|
@@ -190254,7 +190737,7 @@ const RepoSprite = ({
|
|
|
190254
190737
|
mainContainer.addChild(buildingGraphics);
|
|
190255
190738
|
}
|
|
190256
190739
|
} else {
|
|
190257
|
-
const parsedColor = parseColor(color2);
|
|
190740
|
+
const parsedColor = parseColor$1(color2);
|
|
190258
190741
|
const buildingGraphics = generateBuildingSprite({
|
|
190259
190742
|
size,
|
|
190260
190743
|
color: parsedColor
|
|
@@ -190319,7 +190802,7 @@ const RepoSprite = ({
|
|
|
190319
190802
|
}
|
|
190320
190803
|
}
|
|
190321
190804
|
if (debug) {
|
|
190322
|
-
const { Graphics: Graphics2 } = await Promise.resolve().then(() => index$
|
|
190805
|
+
const { Graphics: Graphics2 } = await Promise.resolve().then(() => index$6);
|
|
190323
190806
|
const debugRect = new Graphics2();
|
|
190324
190807
|
debugRect.rect(-width / 2, -height / 2, width, height);
|
|
190325
190808
|
debugRect.stroke({ width: 1, color: 16711680 });
|
|
@@ -190353,189 +190836,30 @@ const RepoSprite = ({
|
|
|
190353
190836
|
onPackageHoverEnd
|
|
190354
190837
|
]);
|
|
190355
190838
|
if (variant === "card") {
|
|
190356
|
-
return /* @__PURE__ */
|
|
190357
|
-
|
|
190839
|
+
return /* @__PURE__ */ jsx(
|
|
190840
|
+
CardLayout,
|
|
190358
190841
|
{
|
|
190359
|
-
|
|
190360
|
-
|
|
190361
|
-
|
|
190362
|
-
|
|
190363
|
-
|
|
190364
|
-
|
|
190365
|
-
|
|
190366
|
-
|
|
190367
|
-
|
|
190368
|
-
|
|
190369
|
-
|
|
190370
|
-
|
|
190371
|
-
|
|
190372
|
-
|
|
190373
|
-
|
|
190374
|
-
|
|
190375
|
-
|
|
190376
|
-
|
|
190377
|
-
display: "flex",
|
|
190378
|
-
alignItems: "center",
|
|
190379
|
-
justifyContent: "center"
|
|
190380
|
-
}
|
|
190842
|
+
color: color2,
|
|
190843
|
+
owner,
|
|
190844
|
+
stars,
|
|
190845
|
+
label,
|
|
190846
|
+
files: files2,
|
|
190847
|
+
language: language2,
|
|
190848
|
+
license,
|
|
190849
|
+
packages,
|
|
190850
|
+
children: /* @__PURE__ */ jsx(
|
|
190851
|
+
"div",
|
|
190852
|
+
{
|
|
190853
|
+
ref: containerRef,
|
|
190854
|
+
style: {
|
|
190855
|
+
width: "100%",
|
|
190856
|
+
height: "100%",
|
|
190857
|
+
display: "flex",
|
|
190858
|
+
alignItems: "center",
|
|
190859
|
+
justifyContent: "center"
|
|
190381
190860
|
}
|
|
190382
|
-
|
|
190383
|
-
|
|
190384
|
-
label && /* @__PURE__ */ jsx(
|
|
190385
|
-
"div",
|
|
190386
|
-
{
|
|
190387
|
-
style: {
|
|
190388
|
-
fontSize: theme2.fontSizes[2],
|
|
190389
|
-
fontWeight: theme2.fontWeights.semibold,
|
|
190390
|
-
color: theme2.colors.text,
|
|
190391
|
-
marginBottom: "8px",
|
|
190392
|
-
fontFamily: theme2.fonts.body
|
|
190393
|
-
},
|
|
190394
|
-
children: label
|
|
190395
|
-
}
|
|
190396
|
-
),
|
|
190397
|
-
/* @__PURE__ */ jsxs(
|
|
190398
|
-
"div",
|
|
190399
|
-
{
|
|
190400
|
-
style: {
|
|
190401
|
-
display: "flex",
|
|
190402
|
-
justifyContent: "center",
|
|
190403
|
-
gap: "16px",
|
|
190404
|
-
fontSize: theme2.fontSizes[1],
|
|
190405
|
-
color: theme2.colors.textSecondary,
|
|
190406
|
-
fontFamily: theme2.fonts.body
|
|
190407
|
-
},
|
|
190408
|
-
children: [
|
|
190409
|
-
files2 !== void 0 && files2 > 0 && /* @__PURE__ */ jsxs(
|
|
190410
|
-
"span",
|
|
190411
|
-
{
|
|
190412
|
-
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
190413
|
-
children: [
|
|
190414
|
-
/* @__PURE__ */ jsx("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "#64748b", children: /* @__PURE__ */ jsx(
|
|
190415
|
-
"path",
|
|
190416
|
-
{
|
|
190417
|
-
d: "M3 1h7l3 3v11H3V1zm7 0v3h3M5 8h6M5 11h6",
|
|
190418
|
-
stroke: "#64748b",
|
|
190419
|
-
strokeWidth: "1",
|
|
190420
|
-
fill: "none"
|
|
190421
|
-
}
|
|
190422
|
-
) }),
|
|
190423
|
-
formatCount$1(files2)
|
|
190424
|
-
]
|
|
190425
|
-
}
|
|
190426
|
-
),
|
|
190427
|
-
packages && packages.length > 1 && /* @__PURE__ */ jsxs(
|
|
190428
|
-
"span",
|
|
190429
|
-
{
|
|
190430
|
-
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
190431
|
-
children: [
|
|
190432
|
-
/* @__PURE__ */ jsxs("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "none", children: [
|
|
190433
|
-
/* @__PURE__ */ jsx(
|
|
190434
|
-
"path",
|
|
190435
|
-
{
|
|
190436
|
-
d: "M8 1L14 4v8l-6 3-6-3V4l6-3z",
|
|
190437
|
-
stroke: "#8b5cf6",
|
|
190438
|
-
strokeWidth: "1.5"
|
|
190439
|
-
}
|
|
190440
|
-
),
|
|
190441
|
-
/* @__PURE__ */ jsx(
|
|
190442
|
-
"path",
|
|
190443
|
-
{
|
|
190444
|
-
d: "M8 8v7M8 8l6-3M8 8L2 5",
|
|
190445
|
-
stroke: "#8b5cf6",
|
|
190446
|
-
strokeWidth: "1"
|
|
190447
|
-
}
|
|
190448
|
-
)
|
|
190449
|
-
] }),
|
|
190450
|
-
packages.length
|
|
190451
|
-
]
|
|
190452
|
-
}
|
|
190453
|
-
),
|
|
190454
|
-
stars !== void 0 && stars > 0 && /* @__PURE__ */ jsxs(
|
|
190455
|
-
"span",
|
|
190456
|
-
{
|
|
190457
|
-
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
190458
|
-
children: [
|
|
190459
|
-
/* @__PURE__ */ jsx("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "#fbbf24", children: /* @__PURE__ */ jsx("path", { d: "M8 1l2.2 4.4 4.8.7-3.5 3.4.8 4.8L8 12l-4.3 2.3.8-4.8L1 6.1l4.8-.7L8 1z" }) }),
|
|
190460
|
-
formatCount$1(stars)
|
|
190461
|
-
]
|
|
190462
|
-
}
|
|
190463
|
-
),
|
|
190464
|
-
collaborators !== void 0 && collaborators > 0 && /* @__PURE__ */ jsxs(
|
|
190465
|
-
"span",
|
|
190466
|
-
{
|
|
190467
|
-
style: { display: "flex", alignItems: "center", gap: "4px" },
|
|
190468
|
-
children: [
|
|
190469
|
-
/* @__PURE__ */ jsxs("svg", { width: "12", height: "12", viewBox: "0 0 16 16", fill: "#22c55e", children: [
|
|
190470
|
-
/* @__PURE__ */ jsx("circle", { cx: "5", cy: "5", r: "2.5" }),
|
|
190471
|
-
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "5", r: "2.5" }),
|
|
190472
|
-
/* @__PURE__ */ jsx("path", { d: "M1 14c0-2.5 2-4 4-4s4 1.5 4 4M7 14c0-2.5 2-4 4-4s4 1.5 4 4" })
|
|
190473
|
-
] }),
|
|
190474
|
-
formatCount$1(collaborators)
|
|
190475
|
-
]
|
|
190476
|
-
}
|
|
190477
|
-
),
|
|
190478
|
-
license && /* @__PURE__ */ jsx(
|
|
190479
|
-
"span",
|
|
190480
|
-
{
|
|
190481
|
-
style: {
|
|
190482
|
-
backgroundColor: theme2.colors.backgroundTertiary,
|
|
190483
|
-
padding: "2px 6px",
|
|
190484
|
-
borderRadius: "4px",
|
|
190485
|
-
fontSize: theme2.fontSizes[0]
|
|
190486
|
-
},
|
|
190487
|
-
children: license
|
|
190488
|
-
}
|
|
190489
|
-
)
|
|
190490
|
-
]
|
|
190491
|
-
}
|
|
190492
|
-
),
|
|
190493
|
-
packages && packages.length > 1 && /* @__PURE__ */ jsxs(
|
|
190494
|
-
"div",
|
|
190495
|
-
{
|
|
190496
|
-
style: {
|
|
190497
|
-
marginTop: "8px",
|
|
190498
|
-
display: "flex",
|
|
190499
|
-
flexWrap: "wrap",
|
|
190500
|
-
justifyContent: "center",
|
|
190501
|
-
gap: "4px"
|
|
190502
|
-
},
|
|
190503
|
-
children: [
|
|
190504
|
-
packages.slice(0, 6).map((pkg, i2) => /* @__PURE__ */ jsx(
|
|
190505
|
-
"span",
|
|
190506
|
-
{
|
|
190507
|
-
style: {
|
|
190508
|
-
fontSize: theme2.fontSizes[0],
|
|
190509
|
-
color: theme2.colors.textSecondary,
|
|
190510
|
-
backgroundColor: theme2.colors.backgroundTertiary,
|
|
190511
|
-
padding: "2px 6px",
|
|
190512
|
-
fontFamily: theme2.fonts.body,
|
|
190513
|
-
borderLeft: `2px solid ${typeof pkg.color === "string" ? pkg.color : `#${(pkg.color || 8947848).toString(16).padStart(6, "0")}`}`
|
|
190514
|
-
},
|
|
190515
|
-
children: pkg.name
|
|
190516
|
-
},
|
|
190517
|
-
i2
|
|
190518
|
-
)),
|
|
190519
|
-
packages.length > 6 && /* @__PURE__ */ jsxs(
|
|
190520
|
-
"span",
|
|
190521
|
-
{
|
|
190522
|
-
style: {
|
|
190523
|
-
fontSize: theme2.fontSizes[0],
|
|
190524
|
-
color: theme2.colors.textSecondary,
|
|
190525
|
-
fontFamily: theme2.fonts.body
|
|
190526
|
-
},
|
|
190527
|
-
children: [
|
|
190528
|
-
"+",
|
|
190529
|
-
packages.length - 6,
|
|
190530
|
-
" more"
|
|
190531
|
-
]
|
|
190532
|
-
}
|
|
190533
|
-
)
|
|
190534
|
-
]
|
|
190535
|
-
}
|
|
190536
|
-
)
|
|
190537
|
-
] })
|
|
190538
|
-
]
|
|
190861
|
+
}
|
|
190862
|
+
)
|
|
190539
190863
|
}
|
|
190540
190864
|
);
|
|
190541
190865
|
}
|
|
@@ -190645,8 +190969,6 @@ const RepoSpriteView = ({
|
|
|
190645
190969
|
children: containerSize && /* @__PURE__ */ jsx(
|
|
190646
190970
|
RepoSprite,
|
|
190647
190971
|
{
|
|
190648
|
-
variant: "card",
|
|
190649
|
-
label: github.name,
|
|
190650
190972
|
files: fileCount,
|
|
190651
190973
|
stars: github.stars,
|
|
190652
190974
|
license: github.license ?? void 0,
|
|
@@ -194056,7 +194378,7 @@ const esm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
194056
194378
|
__proto__: null,
|
|
194057
194379
|
default: StyleToObject
|
|
194058
194380
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
194059
|
-
const require$$0 = /* @__PURE__ */ getAugmentedNamespace(esm);
|
|
194381
|
+
const require$$0 = /* @__PURE__ */ getAugmentedNamespace$1(esm);
|
|
194060
194382
|
var utilities = {};
|
|
194061
194383
|
var hasRequiredUtilities;
|
|
194062
194384
|
function requireUtilities() {
|
|
@@ -236209,7 +236531,7 @@ const TourPlayer = ({
|
|
|
236209
236531
|
}
|
|
236210
236532
|
)
|
|
236211
236533
|
] }),
|
|
236212
|
-
tour.prerequisites && tour.prerequisites.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
236534
|
+
Array.isArray(tour.prerequisites) && tour.prerequisites.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
|
|
236213
236535
|
/* @__PURE__ */ jsx(
|
|
236214
236536
|
"div",
|
|
236215
236537
|
{
|
|
@@ -241656,4 +241978,4 @@ export {
|
|
|
241656
241978
|
resolveImageUrl as u,
|
|
241657
241979
|
selectDistrictTool as v
|
|
241658
241980
|
};
|
|
241659
|
-
//# sourceMappingURL=index-
|
|
241981
|
+
//# sourceMappingURL=index-vzg_r8XB.js.map
|