From 3c0989247bbb45c3a49612a43e4fd403979eda5c Mon Sep 17 00:00:00 2001 From: Masusder <59669685+Masusder@users.noreply.github.com> Date: Thu, 3 Dec 2026 19:05:54 +0100 Subject: [PATCH] Mesh Preview Feature (#727) For lower end PCs it's recommended to use on-hover preview option Co-authored-by: Asval --- CUE4Parse | 2 +- FModel/Enums.cs | 11 +- FModel/Framework/SnooperHost.cs | 82 ++- FModel/MainWindow.xaml | 144 ++-- FModel/MainWindow.xaml.cs | 51 +- .../Services/AssetExplorerPreviewResolver.cs | 341 +++++++++ FModel/Settings/UserSettings.cs | 15 +- FModel/ViewModels/ApplicationViewModel.cs | 13 +- FModel/ViewModels/AssetsFolderViewModel.cs | 72 +- FModel/ViewModels/CUE4ParseViewModel.cs | 2 +- FModel/ViewModels/Commands/MenuCommand.cs | 3 + FModel/ViewModels/GameFileViewModel.cs | 660 +++++++++--------- FModel/ViewModels/SnooperViewModel.cs | 7 +- FModel/Views/Resources/Colors.xaml | 4 +- .../Resources/Controls/DropOverlay.xaml.cs | 1 + .../Explorer/ListExplorer/FileRow.xaml | 16 +- .../Explorer/TiledExplorer/FileButton.xaml | 16 +- .../Converters/FileToGeometryConverter.cs | 6 +- FModel/Views/Resources/Icons.xaml | 10 +- FModel/Views/Resources/Resources.xaml | 134 +--- FModel/Views/SettingsView.xaml | 60 +- FModel/Views/SettingsView.xaml.cs | 1 + Snooper | 2 +- 23 files changed, 1011 insertions(+), 642 deletions(-) create mode 100644 FModel/Services/AssetExplorerPreviewResolver.cs diff --git a/CUE4Parse b/CUE4Parse index c95dd9b5..099b91b3 160000 --- a/CUE4Parse +++ b/CUE4Parse @@ -1 +1 @@ -Subproject commit c95dd9b587a6fb8cbf030d6b84d37cd0c7512b7d +Subproject commit 099b91b3b673d59f83026abeb1a4a10746513d3b diff --git a/FModel/Enums.cs b/FModel/Enums.cs index 9b5a79b7..5c26c2ad 100644 --- a/FModel/Enums.cs +++ b/FModel/Enums.cs @@ -142,6 +142,7 @@ public enum EAssetCategory : uint MaterialFunction = Materials + 3, MaterialFunctionEditorData = Materials + 4, MaterialParameterCollection = Materials + 5, + PhysicalMaterial = Materials + 6, Animation = AssetCategoryExtensions.CategoryBase + (5 << 16), Skeleton = Animation + 1, Rig = Animation + 2, @@ -155,8 +156,7 @@ public enum EAssetCategory : uint CurveBase = Data + 2, PhysicsAsset = Data + 3, ObjectRedirector = Data + 4, - PhysicalMaterial = Data + 5, - ByteCode = Data + 6, + ByteCode = Data + 5, Media = AssetCategoryExtensions.CategoryBase + (8 << 16), Audio = Media + 1, Video = Media + 2, @@ -199,3 +199,10 @@ public enum EExplorerViewMode Grid, List } + +public enum EExplorerPreviewMode +{ + None, + MeshesOnHover, + All +} diff --git a/FModel/Framework/SnooperHost.cs b/FModel/Framework/SnooperHost.cs index 30e49a86..b4de897e 100644 --- a/FModel/Framework/SnooperHost.cs +++ b/FModel/Framework/SnooperHost.cs @@ -1,10 +1,14 @@ using System; +using System.Collections.Concurrent; using System.Threading; +using System.Threading.Tasks; +using CUE4Parse.UE4.Assets.Exports; using Editor; using FModel.Views.Resources.Controls; using OpenTK.Windowing.Desktop; using Serilog; using Serilog.Context; +using Snooper.Rendering; namespace FModel.Framework; @@ -17,13 +21,17 @@ namespace FModel.Framework; /// dying: GLFW and the GL driver keep per-thread state there. So the thread Snooper is created on never dies until /// FModel itself closes, it just loops back to waiting for the next window to build. /// -public sealed class SnooperHost(Func build, Action onStartupFailure) : IDisposable +public sealed class SnooperHost(Func build, Action onStartupFailure, int previewResolution) : IDisposable { private readonly Lock _lock = new(); - private readonly SemaphoreSlim _wanted = new(0); + private readonly AutoResetEvent _wanted = new(false); private readonly ManualResetEventSlim _ready = new(); + private readonly ConcurrentQueue _renderRequests = new(); + private readonly MeshPreviewRenderer _meshPreviews = new(previewResolution); private volatile EditorWindow? _window; + private volatile bool _openRequested; + private volatile bool _meshPreviewsUnavailable; private Exception? _failure; private Thread? _thread; @@ -36,7 +44,8 @@ public sealed class SnooperHost(Func build, Action onSt _thread ??= StartThread(); _ready.Reset(); - _wanted.Release(); + _openRequested = true; + _wanted.Set(); _ready.Wait(); if (_window is { } window) return window; @@ -48,6 +57,61 @@ public sealed class SnooperHost(Func build, Action onSt return null; } + public byte[] RenderMeshPreview(UObject asset, float screenHeight) + { + if (!_meshPreviews.IsReady && !_meshPreviewsUnavailable) + { + var initialized = new TaskCompletionSource(); + QueueGraphicsWork(() => + { + try + { + _meshPreviews.Initialize(loadBindings: _window == null); + } + catch (Exception exception) + { + _meshPreviewsUnavailable = true; + Log.Warning(exception, "Could not start the Snooper mesh preview context"); + } + finally + { + initialized.SetResult(); + } + }); + initialized.Task.Wait(); + } + + return _meshPreviewsUnavailable ? null : _meshPreviews.Render(asset, screenHeight); + } + + public void CloseMeshPreviews() + { + _meshPreviewsUnavailable = true; + if (_thread is not null) + QueueGraphicsWork(_meshPreviews.Dispose); + } + + private void QueueGraphicsWork(Action action) + { + lock (_lock) + { + _thread ??= StartThread(); + _renderRequests.Enqueue(action); + if (_window is { } window) + window.Invoke(RunGraphicsWork); + else + _wanted.Set(); + } + } + + private void RunGraphicsWork() + { + if (_renderRequests.TryDequeue(out var action)) + action(); + if (!_renderRequests.IsEmpty && _window is { } window) + window.Invoke(RunGraphicsWork); + } + private Thread StartThread() { // this thread must never die until fmodel closes @@ -66,12 +130,22 @@ public sealed class SnooperHost(Func build, Action onSt while (true) { - _wanted.Wait(); + if (!_openRequested && _renderRequests.IsEmpty) + _wanted.WaitOne(); + + if (!_openRequested) + { + RunGraphicsWork(); + continue; + } + _openRequested = false; try { _failure = null; _window = build(); + if (!_renderRequests.IsEmpty) + _window.Invoke(RunGraphicsWork); } catch (Exception e) { diff --git a/FModel/MainWindow.xaml b/FModel/MainWindow.xaml index c79a0f23..cdeb389a 100644 --- a/FModel/MainWindow.xaml +++ b/FModel/MainWindow.xaml @@ -75,12 +75,7 @@ - - - - - - + @@ -234,18 +229,6 @@ - - - - - - - - - - @@ -555,6 +538,59 @@ Stretch="Uniform" Fill="{DynamicResource {x:Static adonisUi:Brushes.ForegroundBrush}}" /> + + + + + + + + + + + + + + + @@ -609,78 +645,6 @@ Visibility="{Binding IsAssetsExplorerVisible, Converter={x:Static converters:InvertBoolToVisibilityConverter.Instance}, ConverterParameter=Hidden}" /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/FModel/MainWindow.xaml.cs b/FModel/MainWindow.xaml.cs index 179b9f61..dc778036 100644 --- a/FModel/MainWindow.xaml.cs +++ b/FModel/MainWindow.xaml.cs @@ -1,7 +1,6 @@ using System; using System.Collections; using System.ComponentModel; -using System.IO; using System.Linq; using System.Threading.Tasks; using System.Windows; @@ -27,6 +26,7 @@ public partial class MainWindow private ThreadWorkerViewModel _threadWorkerView => ApplicationService.ThreadWorkerView; private ApplicationViewModel _applicationView => ApplicationService.ApplicationView; private DiscordHandler _discordHandler => DiscordService.DiscordHandler; + private readonly AssetExplorerPreviewResolver _previewResolver; public MainWindow() { @@ -34,7 +34,7 @@ public partial class MainWindow CommandBindings.Add(new CommandBinding(ApplicationCommands.Find, (_, _) => OnOpenAvalonFinder())); CommandBindings.Add(new CommandBinding(NavigationCommands.BrowseBack, (_, _) => { - if (UserSettings.Default.FeaturePreviewNewAssetExplorer && !_applicationView.IsAssetsExplorerVisible) + if (!_applicationView.IsAssetsExplorerVisible) { // back browsing the json view will reopen the assets explorer _applicationView.IsAssetsExplorerVisible = true; @@ -55,9 +55,8 @@ public partial class MainWindow DataContext = _applicationView; InitializeComponent(); - AssetsExplorer.ItemContainerGenerator.StatusChanged += ItemContainerGenerator_StatusChanged; - AssetsListExplorer.ItemContainerGenerator.StatusChanged += ItemContainerGenerator_StatusChanged; - AssetsListName.ItemContainerGenerator.StatusChanged += ItemContainerGenerator_StatusChanged; + _previewResolver = new AssetExplorerPreviewResolver(_applicationView, AssetsExplorer, AssetsListExplorer, AssetsListName); + AssetsExplorer.SelectionChanged += (_, e) => SyncSelection(AssetsListName, e); AssetsListExplorer.SelectionChanged += (_, e) => SyncSelection(AssetsListName, e); AssetsListName.SelectionChanged += (_, e) => SyncSelection(AssetsExplorer, e); @@ -83,6 +82,7 @@ public partial class MainWindow private void OnClosing(object sender, CancelEventArgs e) { + _previewResolver.Dispose(); _discordHandler.Dispose(); } @@ -201,7 +201,7 @@ public partial class MainWindow OnExportHotkey("Save_Audio"); else if (_applicationView.Status.IsReady && UserSettings.Default.ExportCode.IsTriggered(e.Key)) OnExportHotkey("Save_Code"); - else if (_applicationView.Status.IsReady && UserSettings.Default.FeaturePreviewNewAssetExplorer && UserSettings.Default.SwitchAssetExplorer.IsTriggered(e.Key)) + else if (_applicationView.Status.IsReady && UserSettings.Default.SwitchAssetExplorer.IsTriggered(e.Key)) _applicationView.IsAssetsExplorerVisible = !_applicationView.IsAssetsExplorerVisible; else if (UserSettings.Default.AssetAddTab.IsTriggered(e.Key)) _applicationView.CUE4Parse.TabControl.AddTab(); @@ -255,6 +255,7 @@ public partial class MainWindow private async void OnMappingsReload(object sender, ExecutedRoutedEventArgs e) { await _applicationView.CUE4Parse.InitMappings(true); + _applicationView.RefreshAssetResolution(); } private void OnOpenAvalonFinder() @@ -274,28 +275,6 @@ public partial class MainWindow private void OnFolderOpenAssets(object sender, EventArgs e) => _applicationView.SelectedLeftTabIndex = 2; - private void OnPreviewTexturesToggled(object sender, RoutedEventArgs e) => ItemContainerGenerator_StatusChanged(AssetsExplorer.ItemContainerGenerator, EventArgs.Empty); - private void ItemContainerGenerator_StatusChanged(object sender, EventArgs e) - { - if (sender is not ItemContainerGenerator { Status: GeneratorStatus.ContainersGenerated } generator) - return; - - var list = ReferenceEquals(generator, AssetsExplorer.ItemContainerGenerator) ? AssetsExplorer - : ReferenceEquals(generator, AssetsListExplorer.ItemContainerGenerator) ? AssetsListExplorer - : AssetsListName; - - if (!list.IsVisible || list.FindVisualChild() is not { } panel) - return; - - foreach (var container in panel.Children.OfType()) - { - if (container is FrameworkElement { IsVisible: true, DataContext: GameFileViewModel file }) - { - file.OnIsVisible(); - } - } - } - private void OnAssetsTreeSelectedItemChanged(object sender, SelectionChangedEventArgs e) { if (sender is not ListBox { SelectedItem: TreeItem }) @@ -314,15 +293,10 @@ public partial class MainWindow public void SelectAsset(GameFileViewModel asset) { - var useExplorer = UserSettings.Default.FeaturePreviewNewAssetExplorer; + _applicationView.SelectedLeftTabIndex = 1; + _applicationView.IsAssetsExplorerVisible = true; - _applicationView.SelectedLeftTabIndex = useExplorer ? 1 : 2; - if (useExplorer) - { - _applicationView.IsAssetsExplorerVisible = true; - } - - var list = useExplorer ? UserSettings.Default.ExplorerViewMode == EExplorerViewMode.List ? AssetsListExplorer : AssetsExplorer : AssetsListName; + var list = UserSettings.Default.ExplorerViewMode == EExplorerViewMode.List ? AssetsListExplorer : AssetsExplorer; list.GetBindingExpression(ItemsControl.ItemsSourceProperty)?.UpdateTarget(); list.UnselectAll(); list.SelectedItem = asset; @@ -391,11 +365,6 @@ public partial class MainWindow } } - private void FeaturePreviewOnUnchecked(object sender, RoutedEventArgs e) - { - _applicationView.IsAssetsExplorerVisible = false; - } - private void OnExportHotkey(string trigger) { if (!_applicationView.Status.IsReady || Keyboard.FocusedElement is not DependencyObject focused) diff --git a/FModel/Services/AssetExplorerPreviewResolver.cs b/FModel/Services/AssetExplorerPreviewResolver.cs new file mode 100644 index 00000000..16c2e599 --- /dev/null +++ b/FModel/Services/AssetExplorerPreviewResolver.cs @@ -0,0 +1,341 @@ +using System; +using System.Collections.Concurrent; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Controls.Primitives; +using System.Windows.Input; +using System.Windows.Threading; +using CUE4Parse.FileProvider; +using FModel.Extensions; +using FModel.Settings; +using FModel.ViewModels; + +namespace FModel.Services; + +public sealed class AssetExplorerPreviewResolver : IDisposable +{ + private readonly ApplicationViewModel _applicationView; + private readonly (ListBox Grid, ListBox List, ListBox Packages) _views; + private readonly UserSettings _settings = UserSettings.Default; + + private ListBox Explorer => _views.Grid.IsVisible ? _views.Grid : _views.List; + private readonly DispatcherTimer _resolutionTimer = new(DispatcherPriority.Background) { Interval = TimeSpan.FromMilliseconds(100) }; + private int _assetResolutionVersion; + private int _startedAssetResolutionVersion; + private bool _resolvingAssets; + private volatile bool _closing; + private volatile PreviewQueue _previews = new(); + private readonly ConcurrentDictionary _activePreviews = new(); + private GameFileViewModel _hoveredPreview; + + // Snooper rendering would block texture previews on a shared queue + // therefore we need two separate queues for textures and rendered previews + private readonly PreviewWorkers _textureWorkers; + private readonly PreviewWorkers _renderWorkers; + + public AssetExplorerPreviewResolver(ApplicationViewModel applicationView, ListBox grid, ListBox list, ListBox packages) + { + _applicationView = applicationView; + _views = (grid, list, packages); + _textureWorkers = new(this, rendered: false); + _renderWorkers = new(this, rendered: true); + + _resolutionTimer.Tick += OnResolutionTick; + _settings.PropertyChanged += OnSettingsChanged; + _applicationView.AssetResolutionRequested += OnAssetResolutionRequested; + foreach (var view in new[] { grid, list, packages }) + { + view.ItemContainerGenerator.StatusChanged += OnContainersGenerated; + view.IsVisibleChanged += OnVisibilityChanged; + view.AddHandler(ScrollViewer.ScrollChangedEvent, new ScrollChangedEventHandler(OnScrollChanged)); + } + + grid.MouseMove += OnMouseMove; + list.MouseMove += OnMouseMove; + ScheduleAssetResolution(); + } + + public void Dispose() + { + if (_closing) + return; + + _closing = true; + Interlocked.Increment(ref _assetResolutionVersion); + _resolutionTimer.Stop(); + _resolutionTimer.Tick -= OnResolutionTick; + _settings.PropertyChanged -= OnSettingsChanged; + _applicationView.AssetResolutionRequested -= OnAssetResolutionRequested; + foreach (var view in new[] { _views.Grid, _views.List, _views.Packages }) + { + view.ItemContainerGenerator.StatusChanged -= OnContainersGenerated; + view.IsVisibleChanged -= OnVisibilityChanged; + view.RemoveHandler(ScrollViewer.ScrollChangedEvent, new ScrollChangedEventHandler(OnScrollChanged)); + } + + _views.Grid.MouseMove -= OnMouseMove; + _views.List.MouseMove -= OnMouseMove; + SnooperViewModel.Instance.CloseMeshPreviews(); + } + + private void OnVisibilityChanged(object sender, DependencyPropertyChangedEventArgs e) => ScheduleAssetResolution(); + + private void OnContainersGenerated(object sender, EventArgs e) + { + if (sender is not ItemContainerGenerator { Status: GeneratorStatus.ContainersGenerated } generator) + return; + + var (grid, list, packages) = _views; + var view = packages; + if (ReferenceEquals(generator, grid.ItemContainerGenerator)) + { + view = grid; + } + else if (ReferenceEquals(generator, list.ItemContainerGenerator)) + { + view = list; + } + + if (view.IsVisible) + ScheduleAssetResolution(); + } + + private void OnAssetResolutionRequested(object sender, EventArgs e) + { + _previews = new(); + ScheduleAssetResolution(); + } + + private void ScheduleAssetResolution() + { + if (_closing) + return; + + Interlocked.Increment(ref _assetResolutionVersion); + RestartResolutionTimer(); + } + + private void RestartResolutionTimer() + { + _resolutionTimer.Stop(); + _resolutionTimer.Start(); + } + + private void OnResolutionTick(object sender, EventArgs e) + { + _resolutionTimer.Stop(); + if (_closing) + return; + + if (!_resolvingAssets && _startedAssetResolutionVersion != _assetResolutionVersion) + ResolveVisibleAssets(); + } + + private void ResolveVisibleAssets() + { + var version = _startedAssetResolutionVersion = _assetResolutionVersion; + var explorer = Explorer; + var withPreviews = explorer.IsVisible && _settings.ExplorerPreviewMode is not EExplorerPreviewMode.None; + var provider = _applicationView.CUE4Parse?.Provider; + + var previews = new PreviewQueue(provider); + var uncategorized = new List<(GameFileViewModel File, bool Preview)>(); + foreach (var file in GetVisibleAssets(explorer, file => NeedsCategory(file) || (withPreviews && NeedsPreview(file)))) + { + if (NeedsCategory(file)) + { + uncategorized.Add((file, withPreviews)); + } + else if (withPreviews && NeedsPreview(file)) + { + GetPreviewWorkers(file).Enqueue(previews, file); + } + } + + _previews = previews; + _textureWorkers.Start(); + _renderWorkers.Start(); + + var visible = uncategorized + .Concat(GetVisibleAssets(_views.Packages, NeedsCategory) + .Select(file => (File: file, Preview: false))) + .DistinctBy(request => request.File) + .ToArray(); + + if (visible.Length == 0) + return; + + var dispatcher = explorer.Dispatcher; + _resolvingAssets = true; + _ = Task.Run(() => + { + try + { + foreach (var (file, preview) in visible) + { + if (Volatile.Read(ref _assetResolutionVersion) != version) + break; + + var resolvePreview = file.ResolveCategory(provider, preview); + if (!preview || !NeedsPreview(file)) + continue; + + GetPreviewWorkers(file).Enqueue(previews, file, resolvePreview); + } + } + finally + { + dispatcher.InvokeAsync(() => + { + _resolvingAssets = false; + if (!_closing && version != _assetResolutionVersion && !_resolutionTimer.IsEnabled) + _resolutionTimer.Start(); + }, DispatcherPriority.Background); + } + }); + } + + private static IEnumerable GetVisibleAssets(ListBox list, Predicate include) + { + if (!list.IsVisible || list.FindVisualChild() is not { } viewport || viewport.FindVisualChild() is not { } panel) + yield break; + + var viewportBounds = new Rect(viewport.RenderSize); + foreach (var child in panel.Children) + { + if (child is not ListBoxItem { IsVisible: true, DataContext: GameFileViewModel file } container || !include(file)) + continue; + + var bounds = container.TransformToAncestor(viewport).TransformBounds(new Rect(container.RenderSize)); + bounds.Intersect(viewportBounds); + if (bounds.Width > 0 && bounds.Height > 0) + yield return file; + } + } + + private static bool NeedsCategory(GameFileViewModel file) => file.NeedsResolution(EResolveCompute.Category); + + private bool NeedsPreview(GameFileViewModel file) => !NeedsCategory(file) && file.NeedsResolution(EResolveCompute.Preview) && !(file.RendersPreview && _settings.ExplorerPreviewMode is EExplorerPreviewMode.MeshesOnHover); + + private PreviewWorkers GetPreviewWorkers(GameFileViewModel file) => file.RendersPreview ? _renderWorkers : _textureWorkers; + + private void ProcessPreviews(bool rendered) + { + var provider = _applicationView.CUE4Parse?.Provider; + while (!_closing && TryTakePreview(rendered, provider, out var preview)) + { + if (!_activePreviews.TryAdd(preview.File, 0)) + continue; + + try + { + preview.Resolve(); + } + finally + { + _activePreviews.TryRemove(preview.File, out _); + } + } + } + + private bool TryTakePreview(bool rendered, IFileProvider provider, out PreviewRequest preview) + { + if (rendered && Interlocked.Exchange(ref _hoveredPreview, null) is { } hovered && hovered.NeedsResolution(EResolveCompute.Preview)) + { + preview = new PreviewRequest(hovered, () => hovered.Resolve(EResolveCompute.Preview, provider)); + return true; + } + + return _previews.GetQueue(rendered).TryDequeue(out preview); + } + + private readonly struct PreviewRequest(GameFileViewModel file, Action resolve) + { + public GameFileViewModel File { get; } = file; + public Action Resolve { get; } = resolve; + } + + private sealed class PreviewQueue(IFileProvider provider = null) + { + private readonly ConcurrentQueue _textures = new(); + private readonly ConcurrentQueue _rendered = new(); + + public ConcurrentQueue GetQueue(bool rendered) => rendered ? _rendered : _textures; + + public void Enqueue(bool rendered, GameFileViewModel file, Action resolve) + { + resolve ??= () => file.Resolve(EResolveCompute.Preview, provider); + GetQueue(rendered).Enqueue(new PreviewRequest(file, resolve)); + } + } + + private sealed class PreviewWorkers(AssetExplorerPreviewResolver resolver, bool rendered) + { + private int _active; + + public void Enqueue(PreviewQueue previews, GameFileViewModel file, Action resolve = null) + { + previews.Enqueue(rendered, file, resolve); + if (ReferenceEquals(previews, resolver._previews)) + Start(); + } + + public void Start() + { + var limit = rendered && resolver._settings.ExplorerPreviewMode is EExplorerPreviewMode.All ? 2 : 1; + while (!resolver._closing && HasWork()) + { + var active = Volatile.Read(ref _active); + if (active >= limit) + return; + + if (Interlocked.CompareExchange(ref _active, active + 1, active) == active) + _ = Task.Run(Run); + } + + bool HasWork() => rendered && Volatile.Read(ref resolver._hoveredPreview) != null || !resolver._previews.GetQueue(rendered).IsEmpty; + } + + + private void Run() + { + try + { + resolver.ProcessPreviews(rendered); + } + finally + { + Interlocked.Decrement(ref _active); + Start(); + } + } + } + + private void OnMouseMove(object sender, MouseEventArgs e) + { + if (_settings.ExplorerPreviewMode is not EExplorerPreviewMode.MeshesOnHover || sender is not ListBox list || e.OriginalSource is not DependencyObject element || + ItemsControl.ContainerFromElement(list, element) is not ListBoxItem { DataContext: GameFileViewModel { RendersPreview: true } file } || + file.NeedsResolution(EResolveCompute.Category) || !file.NeedsResolution(EResolveCompute.Preview)) + return; + + Volatile.Write(ref _hoveredPreview, file); + _renderWorkers.Start(); + } + + private void OnSettingsChanged(object sender, PropertyChangedEventArgs e) + { + if (e.PropertyName == nameof(UserSettings.ExplorerPreviewMode)) + ScheduleAssetResolution(); + } + + private void OnScrollChanged(object sender, ScrollChangedEventArgs e) + { + if (sender is ListBox { IsVisible: true } && (e.VerticalChange != 0 || e.HorizontalChange != 0 || e.ViewportHeightChange != 0 || e.ViewportWidthChange != 0)) + ScheduleAssetResolution(); + } +} diff --git a/FModel/Settings/UserSettings.cs b/FModel/Settings/UserSettings.cs index fa385d54..90f53614 100644 --- a/FModel/Settings/UserSettings.cs +++ b/FModel/Settings/UserSettings.cs @@ -684,18 +684,11 @@ public sealed class UserSettings : ViewModel set => SetProperty(ref _saveHdrTexturesAsHdr, value); } - private bool _featurePreviewNewAssetExplorer = true; - public bool FeaturePreviewNewAssetExplorer + private EExplorerPreviewMode _explorerPreviewMode = EExplorerPreviewMode.All; + public EExplorerPreviewMode ExplorerPreviewMode { - get => _featurePreviewNewAssetExplorer; - set => SetProperty(ref _featurePreviewNewAssetExplorer, value); - } - - private bool _previewTexturesAssetExplorer = true; - public bool PreviewTexturesAssetExplorer - { - get => _previewTexturesAssetExplorer; - set => SetProperty(ref _previewTexturesAssetExplorer, value); + get => _explorerPreviewMode; + set => SetProperty(ref _explorerPreviewMode, value); } private EExplorerViewMode _explorerViewMode = EExplorerViewMode.Grid; diff --git a/FModel/ViewModels/ApplicationViewModel.cs b/FModel/ViewModels/ApplicationViewModel.cs index 235bdacb..24b5dd4c 100644 --- a/FModel/ViewModels/ApplicationViewModel.cs +++ b/FModel/ViewModels/ApplicationViewModel.cs @@ -52,13 +52,14 @@ public class ApplicationViewModel : ViewModel public bool IsAssetsExplorerVisible { get => _isAssetsExplorerVisible; - set - { - if (value && !UserSettings.Default.FeaturePreviewNewAssetExplorer) - return; + set => SetProperty(ref _isAssetsExplorerVisible, value); + } - SetProperty(ref _isAssetsExplorerVisible, value); - } + public event EventHandler AssetResolutionRequested; + public void RefreshAssetResolution() + { + CUE4Parse.AssetsFolder.SelectedFolder?.ResolveCategoryFilter(); + AssetResolutionRequested?.Invoke(this, EventArgs.Empty); } private bool _isUpdateAvailable; diff --git a/FModel/ViewModels/AssetsFolderViewModel.cs b/FModel/ViewModels/AssetsFolderViewModel.cs index db0f3181..89b1f521 100644 --- a/FModel/ViewModels/AssetsFolderViewModel.cs +++ b/FModel/ViewModels/AssetsFolderViewModel.cs @@ -88,7 +88,7 @@ public class TreeItem : ViewModel } else { - _ = OnSelectedCategoryChanged(); + ResolveCategoryFilter(); } } } @@ -106,7 +106,7 @@ public class TreeItem : ViewModel // BulkPopulate sorts Folders before this view is created _filteredFoldersView ??= new ListCollectionView(Folders) { - Filter = ItemFilter + Filter = HasFilter ? ItemFilter : null }; return _filteredFoldersView; } @@ -133,14 +133,27 @@ public class TreeItem : ViewModel Version = vfsEntry.Vfs.Ver; } PathAtThisPoint = pathHere; - - AssetsList.AssetsView.Filter = ItemFilter; } + private bool HasFilter => SelectedCategory != EAssetCategory.All || _searchTerms.Length != 0; + private void RefreshFilters() { - AssetsList.AssetsView.Refresh(); - FilteredFoldersView?.Refresh(); + Predicate filter = HasFilter ? ItemFilter : null; + UpdateFilter(AssetsList.AssetsView, filter); + if (_filteredFoldersView != null) UpdateFilter(_filteredFoldersView, filter); + } + + private static void UpdateFilter(ICollectionView view, Predicate filter) + { + if (view.Filter != filter) + { + view.Filter = filter; + } + else if (filter != null) + { + view.Refresh(); + } } private bool ItemFilter(object item) => item switch @@ -161,10 +174,51 @@ public class TreeItem : ViewModel return true; } - private async Task OnSelectedCategoryChanged() + private bool _resolvingCategory; + + public void ResolveCategoryFilter() { - await Task.WhenAll(AssetsList.Assets.Select(asset => asset.ResolveAsync(EResolveCompute.Category))); - RefreshFilters(); + if (_resolvingCategory || SelectedCategory is EAssetCategory.All) + return; + + var assets = AssetsList.Assets.Where(file => file.NeedsResolution(EResolveCompute.Category)).ToArray(); + if (assets.Length == 0) + { + RefreshFilters(); + return; + } + + _resolvingCategory = true; + var provider = ApplicationService.ApplicationView.CUE4Parse?.Provider; + _ = Task.Run(() => + { + var interrupted = false; + foreach (var asset in assets) + { + if (_selectedCategory is EAssetCategory.All) + { + interrupted = true; + break; + } + asset.Resolve(EResolveCompute.Category, provider); + } + + Application.Current.Dispatcher.InvokeAsync(() => + { + _resolvingCategory = false; + if (SelectedCategory is EAssetCategory.All) + return; + + if (interrupted) + { + ResolveCategoryFilter(); + } + else + { + RefreshFilters(); + } + }); + }); } public override string ToString() => $"{Header} | {Folders.Count} Folders | {AssetsList.Assets.Count} Files"; diff --git a/FModel/ViewModels/CUE4ParseViewModel.cs b/FModel/ViewModels/CUE4ParseViewModel.cs index f128c654..b09cecc8 100644 --- a/FModel/ViewModels/CUE4ParseViewModel.cs +++ b/FModel/ViewModels/CUE4ParseViewModel.cs @@ -960,7 +960,7 @@ public class CUE4ParseViewModel : ViewModel break; } - case "ustbin" when Provider.Versions.Game is GAME_DeltaForce: + case "ustbin" when Provider.Versions.Game is GAME_DeltaForce or GAME_DeltaForceMobile: { var archive = entry.CreateReader(); var ustbin = new FDeltaStringTable(archive); diff --git a/FModel/ViewModels/Commands/MenuCommand.cs b/FModel/ViewModels/Commands/MenuCommand.cs index 0e49a733..4b2713a0 100644 --- a/FModel/ViewModels/Commands/MenuCommand.cs +++ b/FModel/ViewModels/Commands/MenuCommand.cs @@ -39,6 +39,9 @@ public class MenuCommand : ViewModelCommand case "Views_3dViewer": SnooperViewModel.Instance.Load(null); break; + case "Views_AssetsExplorer": + contextViewModel.IsAssetsExplorerVisible = true; + break; case "Views_ExportSession": Helper.OpenWindow("Export Session", () => new ExportSessionWindow().Show()); break; diff --git a/FModel/ViewModels/GameFileViewModel.cs b/FModel/ViewModels/GameFileViewModel.cs index 9b26fe42..ce6502dd 100644 --- a/FModel/ViewModels/GameFileViewModel.cs +++ b/FModel/ViewModels/GameFileViewModel.cs @@ -6,9 +6,11 @@ using System.Threading.Tasks; using System.Windows; using System.Windows.Media; using System.Windows.Media.Imaging; +using System.Windows.Threading; using CUE4Parse_Conversion.Textures; using CUE4Parse_Conversion.Textures.Paper2D; using CUE4Parse_Conversion.Dto; +using CUE4Parse.FileProvider; using CUE4Parse.FileProvider.Objects; using CUE4Parse.GameTypes.Borderlands3.Assets.Exports; using CUE4Parse.GameTypes.Borderlands4.Assets.Exports; @@ -64,6 +66,7 @@ using CUE4Parse.UE4.Objects.UObject.Editor; using CUE4Parse.UE4.Versions; using CUE4Parse.Utils; using FModel.Framework; +using FModel.Extensions; using FModel.Services; using FModel.Settings; using FModel.Views.Resources.Controls; @@ -75,12 +78,17 @@ namespace FModel.ViewModels; public class GameFileViewModel(GameFile asset) : ViewModel { - private const int MaxPreviewSize = 128; + public const int MaxPreviewSize = 128; private ApplicationViewModel _applicationView => ApplicationService.ApplicationView; private EGame? GameVersion => _applicationView.CUE4Parse?.Provider.Versions.Game; - public EResolveCompute Resolved { get; private set; } = EResolveCompute.None; + private volatile EResolveCompute _resolved; + public EResolveCompute Resolved + { + get => _resolved; + private set => _resolved = value; + } public GameFile Asset { get; } = asset; private string _resolvedAssetType = asset.Extension; @@ -143,15 +151,18 @@ public class GameFileViewModel(GameFile asset) : ViewModel public ImageSource PreviewImage { get => _previewImage; - private set - { - if (SetProperty(ref _previewImage, value)) - { - Resolved |= EResolveCompute.Preview; - } - } + private set => SetProperty(ref _previewImage, value); } + private bool _isRenderedPreview; + public bool IsRenderedPreview + { + get => _isRenderedPreview; + private set => SetProperty(ref _isRenderedPreview, value); + } + + public bool RendersPreview => AssetCategory is EAssetCategory.Material or EAssetCategory.Nascar || AssetCategory.IsOfCategory(EAssetCategory.Mesh); + private int _numTextures = 0; public int NumTextures { @@ -159,43 +170,60 @@ public class GameFileViewModel(GameFile asset) : ViewModel private set => SetProperty(ref _numTextures, value); } - public Task ExtractAsync() - => ApplicationService.ThreadWorkerView.Begin(cancellationToken => - _applicationView.CUE4Parse.ExtractSelected(cancellationToken, [Asset])); + public Task ExtractAsync() => ApplicationService.ThreadWorkerView.Begin(cancellationToken => _applicationView.CUE4Parse.ExtractSelected(cancellationToken, [Asset])); - public Task ResolveAsync(EResolveCompute resolve) + private Lock _resolveLock; + + public bool NeedsResolution(EResolveCompute resolve) => (resolve & ~Resolved) != EResolveCompute.None; + + public void Resolve(EResolveCompute resolve, IFileProvider provider) => ResolveCore(resolve, provider); + + public Action ResolveCategory(IFileProvider provider, bool withPreview) { - try - { - return ResolveInternalAsync(resolve); - } - catch (Exception e) - { - Log.Error(e, "Failed to resolve asset {AssetName} ({Resolver})", Asset.Path, resolve.ToStringBitfield()); + var export = ResolveCore(EResolveCompute.Category, provider); + return withPreview && export != null ? () => ResolveCore(EResolveCompute.Preview, provider, export) : null; + } - Resolved = EResolveCompute.All; - return Task.CompletedTask; + private Lazy ResolveCore(EResolveCompute resolve, IFileProvider provider, Lazy previewExport = null) + { + if (!NeedsResolution(resolve)) + return null; + + lock (LazyInitializer.EnsureInitialized(ref _resolveLock)) + { + resolve &= ~Resolved; + if (resolve is EResolveCompute.None) + return null; + + try + { + Lazy export = null; + if (previewExport != null) + { + ResolvePackagePreview(previewExport.Value); + } + else if (!Asset.IsUePackage || provider is null) + { + ResolveByExtension(resolve, provider); + } + else + { + export = ResolveByPackage(resolve, provider); + } + + Resolved |= resolve; + return export; + } + catch (Exception e) + { + Resolved &= ~resolve; + Log.Error(e, "Failed to resolve asset {AssetName} ({Resolver})", Asset.Path, resolve.ToStringBitfield()); + return null; + } } } - private Task ResolveInternalAsync(EResolveCompute resolve) - { - if (!_applicationView.IsAssetsExplorerVisible || !UserSettings.Default.PreviewTexturesAssetExplorer) - { - resolve &= ~EResolveCompute.Preview; - } - - resolve &= ~Resolved; - if (resolve == EResolveCompute.None) - return Task.CompletedTask; - - if (!Asset.IsUePackage || _applicationView.CUE4Parse is null) - return ResolveByExtensionAsync(resolve); - - return ResolveByPackageAsync(resolve); - } - - private Task ResolveByPackageAsync(EResolveCompute resolve) + private Lazy ResolveByPackage(EResolveCompute resolve, IFileProvider provider) { if (Asset.Extension is "umap") { @@ -203,7 +231,7 @@ public class GameFileViewModel(GameFile asset) : ViewModel AssetActions = EBulkType.Worlds | EBulkType.Textures | EBulkType.Audio | EBulkType.Code; ResolvedAssetType = "World"; Resolved |= EResolveCompute.Preview; - return Task.CompletedTask; + return null; } if (Asset.NameWithoutExtension.EndsWith("_BuiltData")) @@ -212,231 +240,241 @@ public class GameFileViewModel(GameFile asset) : ViewModel AssetActions = EBulkType.Textures; ResolvedAssetType = "MapBuildDataRegistry"; Resolved |= EResolveCompute.Preview; - return Task.CompletedTask; + return null; } - return Task.Run(() => + var pkg = provider.LoadPackage(Asset); + + var pointer = FindMainExport(pkg); + if (pointer?.Object is not { } export) + return null; + + if ((resolve & EResolveCompute.Category) != 0) + ResolveCategory((AbstractUePackage) pkg, pointer, export); + + if (AssetCategory is not (EAssetCategory.Texture or EAssetCategory.AnimatedTexture or EAssetCategory.ItemDefinitionBase) && !RendersPreview) { - // TODO: cache and reuse packages - var pkg = _applicationView.CUE4Parse?.Provider.LoadPackage(Asset); - if (pkg is null) - throw new InvalidOperationException($"Failed to load {Asset.Path} as UE package."); + Resolved |= EResolveCompute.Preview; + return null; + } - var mainIndex = pkg.GetExportIndex(Asset.NameWithoutExtension, StringComparison.OrdinalIgnoreCase); - if (mainIndex < 0) mainIndex = pkg.GetExportIndex($"{Asset.NameWithoutExtension}_C", StringComparison.OrdinalIgnoreCase); - if (mainIndex < 0) mainIndex = 0; + if ((resolve & EResolveCompute.Preview) == 0) + return NeedsResolution(EResolveCompute.Preview) ? export : null; - var pointer = new FPackageIndex(pkg, mainIndex + 1).ResolvedObject; - if (pointer?.Object is null) - return; - - var dummy = ((AbstractUePackage) pkg).ConstructObject(pointer.Class, pkg); - ResolvedAssetType = dummy.ExportType; - - AssetFamily = dummy switch - { - UAtomSoundBase or UAtomSoundBank or USoundAtomCue or USoundAtomCueSheet - or USoundAtomConfig or UAtomDspBusSetting or UAtomRackBase => EAssetFamily.Criware, - - UAkAudioType or UAkAssetData or UAkAssetPlatformData or UAkMediaAssetData - or UAkMediaAsset or UWwiseAssetLibrary or UWwiseAssetLibraryGroup or UExternalSource or UExternalSourceBank => EAssetFamily.Wwise, - - UFMODEvent or UFMODBank or UFMODBankLookup or UFMODBus - or UFMODSnapshot or UFMODSnapshotReverb or UFMODVCA => EAssetFamily.FMod, - - UHoudiniAsset or UHoudiniStaticMesh => EAssetFamily.Houdini, - - UPaperTileMap or UPaperTileLayer or UPaperTileSet or UPaperSprite or UPaperFlipbook => EAssetFamily.Paper2D, - - _ => EAssetFamily.None, - }; - - (AssetCategory, AssetActions) = dummy switch - { - URigVMBlueprintGeneratedClass => (EAssetCategory.RigVMBlueprintGeneratedClass, EBulkType.Code), - UAnimBlueprintGeneratedClass => (EAssetCategory.AnimBlueprintGeneratedClass, EBulkType.Code), - UWidgetBlueprintGeneratedClass => (EAssetCategory.WidgetBlueprintGeneratedClass, EBulkType.Code), - UFunction => (EAssetCategory.BlueprintGeneratedClass, EBulkType.Code), - UBlueprintGeneratedClass => (EAssetCategory.BlueprintGeneratedClass, EBulkType.Code | EBulkType.Worlds), - - UUserDefinedEnum => (EAssetCategory.UserDefinedEnum, EBulkType.None), - UUserDefinedStruct => (EAssetCategory.UserDefinedStruct, EBulkType.Code), - UBlueprintCore => (EAssetCategory.Blueprint, EBulkType.Code), - UClassCookedMetaData or UStructCookedMetaData or UEnumCookedMetaData => (EAssetCategory.CookedMetaData, EBulkType.None), - - UStaticMesh => (EAssetCategory.StaticMesh, EBulkType.Meshes), - UHoudiniStaticMesh => (EAssetCategory.StaticMesh, EBulkType.Meshes), - USkeletalMesh => (EAssetCategory.SkeletalMesh, EBulkType.Meshes), - UChaosClothAsset => (EAssetCategory.ChaosClothAsset, EBulkType.Meshes), - UCustomizableObject => (EAssetCategory.CustomizableObject, EBulkType.None), // TODO: Add support - UNaniteDisplacedMesh => (EAssetCategory.NaniteDisplacedMesh, EBulkType.None), - UGeometryCollection => (EAssetCategory.GeometryCollection, EBulkType.Meshes), - UGroomAsset => (EAssetCategory.GroomAsset, EBulkType.Meshes), // TODO: Add full support - UGroomBindingAsset => (EAssetCategory.GroomAsset, EBulkType.None), // TODO: Add support - - UHoudiniAsset => (EAssetCategory.Data, EBulkType.None), - - UTexture or UPaperSprite => (EAssetCategory.Texture, EBulkType.Textures), - UPaperFlipbook => (EAssetCategory.AnimatedTexture, EBulkType.Textures), - - UMaterialInterface => (EAssetCategory.Material, EBulkType.None), - UMaterialInterfaceEditorOnlyData => (EAssetCategory.MaterialEditorData, EBulkType.None), - UMaterialFunction => (EAssetCategory.MaterialFunction, EBulkType.None), - UMaterialFunctionEditorOnlyData => (EAssetCategory.MaterialFunctionEditorData, EBulkType.None), - UMaterialParameterCollection => (EAssetCategory.MaterialParameterCollection, EBulkType.None), - - UAnimationAsset => (EAssetCategory.Animation, EBulkType.Animations), - USkeleton => (EAssetCategory.Skeleton, EBulkType.Meshes), - URig => (EAssetCategory.Rig, EBulkType.None), - - UWorld => (EAssetCategory.World, EBulkType.Meshes | EBulkType.Textures | EBulkType.Audio | EBulkType.Code), - UMapBuildDataRegistry => (EAssetCategory.BuildData, EBulkType.Textures), - ULevelSequence => (EAssetCategory.LevelSequence, EBulkType.Code), - UFoliageType => (EAssetCategory.Foliage, EBulkType.None), - - UItemDefinitionBase => (EAssetCategory.ItemDefinitionBase, EBulkType.Textures), - UDataAsset or UDataTable or UCurveTable or UStringTable => (EAssetCategory.Data, EBulkType.None), - UCurveBase => (EAssetCategory.CurveBase, EBulkType.None), - UPhysicsAsset => (EAssetCategory.PhysicsAsset, EBulkType.None), - UObjectRedirector => (EAssetCategory.ObjectRedirector, EBulkType.None), - UPhysicalMaterial => (EAssetCategory.PhysicalMaterial, EBulkType.None), - - USoundAtomCue or UAtomSoundCue or UAkAudioEvent or USoundCue or UFMODEvent - or UAkAssetData or UAkAssetPlatformData => (EAssetCategory.AudioEvent, EBulkType.Audio), - - UFileManaMovie => (EAssetCategory.Video, EBulkType.None), - - UFMODBankLookup or USoundAtomConfig or UFMODSnapshotReverb or UFMODBus or UFMODSnapshot - or UFMODVCA or UAtomDspBusSetting => (EAssetCategory.Data, EBulkType.None), - - USQEXSEADSoundAttenuation => (EAssetCategory.Audio, EBulkType.None), - - UFMODBank or UAkAudioBank or UAtomSoundBank or USoundAtomCueSheet - or UAkInitBank or USQEXSEADSoundBank => (EAssetCategory.SoundBank, EBulkType.Audio), - - UWwiseAssetLibrary or UWwiseAssetLibraryGroup or UAtomSoundBase or USoundBase or UAkMediaAssetData - or UExternalSource or UExternalSourceBank or UAkMediaAsset => (EAssetCategory.Audio, EBulkType.Audio), - - UAkAudioType => (EAssetCategory.Data, EBulkType.None), - - UFileMediaSource => (EAssetCategory.Video, EBulkType.None), - UFont or UFontFace or USMGLocaleFontUMG => (EAssetCategory.Font, EBulkType.None), - - UNiagaraSystem or UNiagaraScriptBase or UParticleSystem => (EAssetCategory.Particle, EBulkType.None), - - USwfMovie => (EAssetCategory.Flash, EBulkType.None), - - // Game specific assets below - UBorderlandsDialogObject when GameVersion is EGame.GAME_Borderlands3 => (EAssetCategory.Borderlands, EBulkType.None), // Borderlands 3; - UGbxGraphAsset or UDialogScriptData or UDialogPerformanceData when GameVersion is EGame.GAME_Borderlands4 or EGame.GAME_Borderlands3 => (EAssetCategory.Borderlands, EBulkType.Audio), // Borderlands 4; Borderlands 3; - UFaceFXAnimSet when GameVersion is EGame.GAME_Borderlands4 => (EAssetCategory.Borderlands, EBulkType.Audio), // Borderlands 4; - UWubAudioEvent or UWubDialogueEvent when GameVersion is EGame.GAME_LEGOBatmanLegacyoftheDarkKnight => (EAssetCategory.LegoBatman, EBulkType.Audio), // Lego Batman: Legacy of the Dark Knight; - UREDBinaryObject => (EAssetCategory.ArcSys, EBulkType.None), // Arc System Works games; - UOrpheusBank or UOrpheusEvent => (EAssetCategory.GothamKnights, EBulkType.Audio), // Gotham Knights; - UIRMesh => (EAssetCategory.Nascar, EBulkType.Meshes), // iRacing games; - UPaperTileMap when GameVersion is EGame.GAME_DeadByDaylight => (EAssetCategory.DeadByDaylight, EBulkType.Worlds), // DBD; UPaperTileMap isn't game specific, its use is just non typical - - _ => (EAssetCategory.All, EBulkType.None), - }; - - var obj = pointer.Object.Value; - IconStyle = obj switch - { - UGroomBindingAsset => (null, "GroomBindingAssetBrush"), - USkeletalMesh mesh when mesh.AssetUserData?.Any(data => data?.ResolvedObject is { } reference && - (reference.IsA() || reference.Class?.Name.Text == "DNAAssetUserData")) == true => ("MetaHumanIcon", null), // Way to detect MetaHumans, for >UE 5.8 DNAAssetUserData is needed since DNAAsset can be standalone asset - _ => default - }; - - if (EmbeddedFilesDto.Supports(dummy)) - { - var files = new EmbeddedFilesDto(obj).Files; - EmbeddedFileExtensions = string.Join(", ", files.Select(file => "." + file.Extension).Distinct(StringComparer.OrdinalIgnoreCase).OrderBy(extension => extension, StringComparer.OrdinalIgnoreCase)); - if (files.Count > 0) - AssetActions |= EBulkType.EmbeddedFiles; - } - - switch (AssetCategory) - { - case EAssetCategory.Texture: - { - if (!resolve.HasFlag(EResolveCompute.Preview)) - break; - - if (obj is UTexture2DArray textureArray && textureArray.GetFirstMip() is { SizeZ: > 1 } firstMip) - NumTextures = firstMip.SizeZ; - - var options = UserSettings.GetExportOptions(); - var img = obj switch - { - UTexture texture => texture.Decode(MaxPreviewSize, options), - UPaperSprite sprite => sprite.Decode(options), - _ => null - }; - if (img != null) - { - using var bitmap = img.ToSkBitmap(); - using var image = bitmap.Encode(SKEncodedImageFormat.Png, 100); - SetPreviewImage(image); - } - else - { - Resolved |= EResolveCompute.Preview; - } - - break; - } - case EAssetCategory.AnimatedTexture when obj is UPaperFlipbook flipbook: - { - if (!resolve.HasFlag(EResolveCompute.Preview)) - break; - - var preview = ImageAnimation.CreateThumbnail(flipbook, UserSettings.GetExportOptions(), MaxPreviewSize); - Application.Current.Dispatcher.InvokeAsync(() => PreviewImage = preview); - if (preview == null) Resolved |= EResolveCompute.Preview; - break; - } - case EAssetCategory.ItemDefinitionBase: - if (!resolve.HasFlag(EResolveCompute.Preview)) - break; - - if (obj is UItemDefinitionBase itemDef) - { - if (LookupPreview(itemDef.DataList)) break; - - if (itemDef is UAthenaPickaxeItemDefinition pickaxe && pickaxe.WeaponDefinition.TryLoad(out UItemDefinitionBase weaponDef)) - { - LookupPreview(weaponDef.DataList); - } - - bool LookupPreview(FInstancedStruct[] dataList) - { - foreach (var data in dataList) - { - if (!data.NonConstStruct.TryGetValue(out FSoftObjectPath icon, "Icon", "LargeIcon") || - !icon.TryLoad(out var texture)) - continue; - - var img = texture.Decode(MaxPreviewSize, UserSettings.GetExportOptions()); - if (img == null) return false; - - using var bitmap = img.ToSkBitmap(); - using var image = bitmap.Encode(SKEncodedImageFormat.Png, 100); - SetPreviewImage(image); - return true; - } - return false; - } - } - break; - default: - Resolved |= EResolveCompute.Preview; - break; - } - }); + ResolvePackagePreview(export.Value); + return null; } - private Task ResolveByExtensionAsync(EResolveCompute resolve) + private void ResolveCategory(AbstractUePackage pkg, ResolvedObject pointer, Lazy export) + { + var dummy = pkg.ConstructObject(pointer.Class, pkg); + ResolvedAssetType = dummy.ExportType; + + AssetFamily = dummy switch + { + UAtomSoundBase or UAtomSoundBank or USoundAtomCue or USoundAtomCueSheet + or USoundAtomConfig or UAtomDspBusSetting or UAtomRackBase => EAssetFamily.Criware, + + UAkAudioType or UAkAssetData or UAkAssetPlatformData or UAkMediaAssetData + or UAkMediaAsset or UWwiseAssetLibrary or UWwiseAssetLibraryGroup or UExternalSource or UExternalSourceBank => EAssetFamily.Wwise, + + UFMODEvent or UFMODBank or UFMODBankLookup or UFMODBus + or UFMODSnapshot or UFMODSnapshotReverb or UFMODVCA => EAssetFamily.FMod, + + UHoudiniAsset or UHoudiniStaticMesh => EAssetFamily.Houdini, + + UPaperTileMap or UPaperTileLayer or UPaperTileSet or UPaperSprite or UPaperFlipbook => EAssetFamily.Paper2D, + + _ => EAssetFamily.None, + }; + + var (category, actions) = dummy switch + { + URigVMBlueprintGeneratedClass => (EAssetCategory.RigVMBlueprintGeneratedClass, EBulkType.Code), + UAnimBlueprintGeneratedClass => (EAssetCategory.AnimBlueprintGeneratedClass, EBulkType.Code), + UWidgetBlueprintGeneratedClass => (EAssetCategory.WidgetBlueprintGeneratedClass, EBulkType.Code), + UFunction => (EAssetCategory.BlueprintGeneratedClass, EBulkType.Code), + UBlueprintGeneratedClass => (EAssetCategory.BlueprintGeneratedClass, EBulkType.Code | EBulkType.Worlds), + + UUserDefinedEnum => (EAssetCategory.UserDefinedEnum, EBulkType.None), + UUserDefinedStruct => (EAssetCategory.UserDefinedStruct, EBulkType.Code), + UBlueprintCore => (EAssetCategory.Blueprint, EBulkType.Code), + UClassCookedMetaData or UStructCookedMetaData or UEnumCookedMetaData => (EAssetCategory.CookedMetaData, EBulkType.None), + + UStaticMesh => (EAssetCategory.StaticMesh, EBulkType.Meshes), + UHoudiniStaticMesh => (EAssetCategory.StaticMesh, EBulkType.Meshes), + USkeletalMesh => (EAssetCategory.SkeletalMesh, EBulkType.Meshes), + UChaosClothAsset => (EAssetCategory.ChaosClothAsset, EBulkType.Meshes), + UCustomizableObject => (EAssetCategory.CustomizableObject, EBulkType.None), // TODO: Add support + UNaniteDisplacedMesh => (EAssetCategory.NaniteDisplacedMesh, EBulkType.None), + UGeometryCollection => (EAssetCategory.GeometryCollection, EBulkType.Meshes), + UGroomAsset => (EAssetCategory.GroomAsset, EBulkType.Meshes), // TODO: Add full support + UGroomBindingAsset => (EAssetCategory.GroomAsset, EBulkType.None), // TODO: Add support + + UHoudiniAsset => (EAssetCategory.Data, EBulkType.None), + + UTexture or UPaperSprite => (EAssetCategory.Texture, EBulkType.Textures), + UPaperFlipbook => (EAssetCategory.AnimatedTexture, EBulkType.Textures), + + UMaterialInterface => (EAssetCategory.Material, EBulkType.None), + UMaterialInterfaceEditorOnlyData => (EAssetCategory.MaterialEditorData, EBulkType.None), + UMaterialFunction => (EAssetCategory.MaterialFunction, EBulkType.None), + UMaterialFunctionEditorOnlyData => (EAssetCategory.MaterialFunctionEditorData, EBulkType.None), + UMaterialParameterCollection => (EAssetCategory.MaterialParameterCollection, EBulkType.None), + UPhysicalMaterial => (EAssetCategory.PhysicalMaterial, EBulkType.None), + + UAnimationAsset => (EAssetCategory.Animation, EBulkType.Animations), + USkeleton => (EAssetCategory.Skeleton, EBulkType.Meshes), + URig => (EAssetCategory.Rig, EBulkType.None), + + UWorld => (EAssetCategory.World, EBulkType.Meshes | EBulkType.Textures | EBulkType.Audio | EBulkType.Code), + UMapBuildDataRegistry => (EAssetCategory.BuildData, EBulkType.Textures), + ULevelSequence => (EAssetCategory.LevelSequence, EBulkType.Code), + UFoliageType => (EAssetCategory.Foliage, EBulkType.None), + + UItemDefinitionBase => (EAssetCategory.ItemDefinitionBase, EBulkType.Textures), + UDataAsset or UDataTable or UCurveTable or UStringTable => (EAssetCategory.Data, EBulkType.None), + UCurveBase => (EAssetCategory.CurveBase, EBulkType.None), + UPhysicsAsset => (EAssetCategory.PhysicsAsset, EBulkType.None), + UObjectRedirector => (EAssetCategory.ObjectRedirector, EBulkType.None), + + USoundAtomCue or UAtomSoundCue or UAkAudioEvent or USoundCue or UFMODEvent + or UAkAssetData or UAkAssetPlatformData => (EAssetCategory.AudioEvent, EBulkType.Audio), + + UFileManaMovie => (EAssetCategory.Video, EBulkType.None), + + UFMODBankLookup or USoundAtomConfig or UFMODSnapshotReverb or UFMODBus or UFMODSnapshot + or UFMODVCA or UAtomDspBusSetting => (EAssetCategory.Data, EBulkType.None), + + USQEXSEADSoundAttenuation => (EAssetCategory.Audio, EBulkType.None), + + UFMODBank or UAkAudioBank or UAtomSoundBank or USoundAtomCueSheet + or UAkInitBank or USQEXSEADSoundBank => (EAssetCategory.SoundBank, EBulkType.Audio), + + UWwiseAssetLibrary or UWwiseAssetLibraryGroup or UAtomSoundBase or USoundBase or UAkMediaAssetData + or UExternalSource or UExternalSourceBank or UAkMediaAsset => (EAssetCategory.Audio, EBulkType.Audio), + + UAkAudioType => (EAssetCategory.Data, EBulkType.None), + + UFileMediaSource => (EAssetCategory.Video, EBulkType.None), + UFont or UFontFace or USMGLocaleFontUMG => (EAssetCategory.Font, EBulkType.None), + + UNiagaraSystem or UNiagaraScriptBase or UParticleSystem => (EAssetCategory.Particle, EBulkType.None), + + USwfMovie => (EAssetCategory.Flash, EBulkType.None), + + // Game specific assets below + UBorderlandsDialogObject when GameVersion is EGame.GAME_Borderlands3 => (EAssetCategory.Borderlands, EBulkType.None), // Borderlands 3; + UGbxGraphAsset or UDialogScriptData or UDialogPerformanceData when GameVersion is EGame.GAME_Borderlands4 or EGame.GAME_Borderlands3 => (EAssetCategory.Borderlands, EBulkType.Audio), // Borderlands 4; Borderlands 3; + UFaceFXAnimSet when GameVersion is EGame.GAME_Borderlands4 => (EAssetCategory.Borderlands, EBulkType.Audio), // Borderlands 4; + UWubAudioEvent or UWubDialogueEvent when GameVersion is EGame.GAME_LEGOBatmanLegacyoftheDarkKnight => (EAssetCategory.LegoBatman, EBulkType.Audio), // Lego Batman: Legacy of the Dark Knight; + UREDBinaryObject => (EAssetCategory.ArcSys, EBulkType.None), // Arc System Works games; + UOrpheusBank or UOrpheusEvent => (EAssetCategory.GothamKnights, EBulkType.Audio), // Gotham Knights; + UIRMesh => (EAssetCategory.Nascar, EBulkType.Meshes), // iRacing games; + UPaperTileMap when GameVersion is EGame.GAME_DeadByDaylight => (EAssetCategory.DeadByDaylight, EBulkType.Worlds), // DBD; UPaperTileMap isn't game specific, its use is just non typical + + _ => (EAssetCategory.All, EBulkType.None), + }; + + (AssetCategory, AssetActions) = (category, actions); + + IconStyle = dummy switch + { + UGroomBindingAsset => (null, "GroomBindingAssetBrush"), + USkeletalMesh when export.Value is USkeletalMesh mesh && mesh.AssetUserData?.Any(data => data?.ResolvedObject is { } reference && (reference.IsA() || reference.Class?.Name.Text == "DNAAssetUserData")) == true => ("MetaHumanIcon", null), // Way to detect MetaHumans, for >UE 5.8 DNAAssetUserData is needed since DNAAsset can be standalone asset + _ => default + }; + + if (EmbeddedFilesDto.Supports(dummy)) + { + var files = new EmbeddedFilesDto(export.Value).Files; + EmbeddedFileExtensions = string.Join(", ", files.Select(file => "." + file.Extension).Distinct(StringComparer.OrdinalIgnoreCase).OrderBy(extension => extension, StringComparer.OrdinalIgnoreCase)); + if (files.Count > 0) + AssetActions |= EBulkType.EmbeddedFiles; + } + + } + + private void ResolvePackagePreview(UObject export) + { + var options = UserSettings.GetExportOptions(); + switch (export) + { + case UTexture or UPaperSprite: + { + if (export is UTexture2DArray textureArray && textureArray.GetFirstMip() is { SizeZ: > 1 } firstMip) + NumTextures = firstMip.SizeZ; + + var img = export switch + { + UTexture texture => texture.Decode(MaxPreviewSize, options), + UPaperSprite sprite => sprite.Decode(options), + _ => null + }; + if (img != null) + { + using var bitmap = img.ToSkBitmap(); + SetPreviewImage(bitmap); + } + break; + } + case UPaperFlipbook flipbook: + { + var preview = ImageAnimation.CreateThumbnail(flipbook, options, MaxPreviewSize); + if (preview != null) + PublishPreview(preview); + + break; + } + case UStaticMesh or USkinnedAsset or UGeometryCollection or UHoudiniStaticMesh or UIRMesh or UMaterialInterface: + { + var pixels = SnooperViewModel.Instance.RenderMeshPreview(export); + if (pixels == null) + break; + + var image = BitmapSource.Create(MaxPreviewSize, MaxPreviewSize, 96, 96, PixelFormats.Pbgra32, null, pixels, MaxPreviewSize * 4); + image.Freeze(); + PublishPreview(image, true); + break; + } + case UItemDefinitionBase itemDef: + { + if (LookupPreview(itemDef.DataList)) + break; + + if (itemDef is UAthenaPickaxeItemDefinition pickaxe && pickaxe.WeaponDefinition.TryLoad(out UItemDefinitionBase weaponDef)) + LookupPreview(weaponDef.DataList); + + break; + + bool LookupPreview(FInstancedStruct[] dataList) + { + foreach (var data in dataList) + { + if (!data.NonConstStruct.TryGetValue(out FSoftObjectPath icon, "Icon", "LargeIcon") || !icon.TryLoad(out var texture)) + continue; + + var img = texture.Decode(MaxPreviewSize, options); + if (img == null) return false; + + using var bitmap = img.ToSkBitmap(); + SetPreviewImage(bitmap); + return true; + } + return false; + } + } + } + } + + private ResolvedObject FindMainExport(IPackage package) + { + var index = package.GetExportIndex(Asset.NameWithoutExtension, StringComparison.OrdinalIgnoreCase); + if (index < 0) index = package.GetExportIndex($"{Asset.NameWithoutExtension}_C", StringComparison.OrdinalIgnoreCase); + return new FPackageIndex(package, Math.Max(0, index) + 1).ResolvedObject; + } + + private void ResolveByExtension(EResolveCompute resolve, IFileProvider provider) { var lowercaseExtension = Asset.Extension.ToLowerInvariant(); @@ -525,41 +563,41 @@ public class GameFileViewModel(GameFile asset) : ViewModel AssetCategory = EAssetCategory.Texture; AssetActions = EBulkType.Textures; if (!resolve.HasFlag(EResolveCompute.Preview)) - return Task.CompletedTask; + return; - return Task.Run(() => + if (provider == null) return; + var data = provider.SaveAsset(Asset); + using var stream = new MemoryStream(data); + stream.Position = 0; + + SKBitmap bitmap; + if (lowercaseExtension == "svg") { - var data = _applicationView.CUE4Parse.Provider.SaveAsset(Asset); - using var stream = new MemoryStream(data); - stream.Position = 0; + var svg = new SKSvg(); + svg.Load(stream); + if (svg.Picture == null) + return; - SKBitmap bitmap; - if (lowercaseExtension == "svg") - { - var svg = new SKSvg(); - svg.Load(stream); - if (svg.Picture == null) - return; + bitmap = new SKBitmap(MaxPreviewSize, MaxPreviewSize); + using var canvas = new SKCanvas(bitmap); + canvas.Clear(SKColors.Transparent); - bitmap = new SKBitmap(MaxPreviewSize, MaxPreviewSize); - using var canvas = new SKCanvas(bitmap); - canvas.Clear(SKColors.Transparent); + var bounds = svg.Picture.CullRect; + float scale = Math.Min(MaxPreviewSize / bounds.Width, MaxPreviewSize / bounds.Height); + canvas.Scale(scale); + canvas.Translate(-bounds.Left, -bounds.Top); + canvas.DrawPicture(svg.Picture); + } + else + { + bitmap = SKBitmap.Decode(stream); + } - var bounds = svg.Picture.CullRect; - float scale = Math.Min(MaxPreviewSize / bounds.Width, MaxPreviewSize / bounds.Height); - canvas.Scale(scale); - canvas.Translate(-bounds.Left, -bounds.Top); - canvas.DrawPicture(svg.Picture); - } - else - { - bitmap = SKBitmap.Decode(stream); - } - - using var image = bitmap.Encode(lowercaseExtension == "jpg" ? SKEncodedImageFormat.Jpeg : SKEncodedImageFormat.Png, 100); - SetPreviewImage(image); - bitmap.Dispose(); - }); + using (bitmap) + { + if (bitmap != null) SetPreviewImage(bitmap); + } + return; } case "swf": AssetCategory = EAssetCategory.Flash; @@ -577,7 +615,7 @@ public class GameFileViewModel(GameFile asset) : ViewModel case "cam" when GameVersion is EGame.GAME_RocoKingdomWorld: AssetCategory = EAssetCategory.RocoKingdomWorld; break; - case "ustbin" when GameVersion is EGame.GAME_DeltaForce: + case "ustbin" when GameVersion is EGame.GAME_DeltaForce or EGame.GAME_DeltaForceMobile: AssetCategory = EAssetCategory.DeltaForce; break; default: @@ -586,37 +624,29 @@ public class GameFileViewModel(GameFile asset) : ViewModel } Resolved |= EResolveCompute.Preview; - return Task.CompletedTask; } - private void SetPreviewImage(SKData data) + private void SetPreviewImage(SKBitmap bitmap) { - using var ms = new MemoryStream(data.ToArray()); - ms.Position = 0; - var bitmap = new BitmapImage(); - bitmap.BeginInit(); - bitmap.CacheOption = BitmapCacheOption.OnLoad; - bitmap.StreamSource = ms; - bitmap.EndInit(); - bitmap.Freeze(); - Application.Current.Dispatcher.InvokeAsync(() => PreviewImage = bitmap); - } - - private CancellationTokenSource _previewCts; - public void OnIsVisible() - { - if (Resolved == EResolveCompute.All) + if (bitmap.Width <= 0 || bitmap.Height <= 0) return; - _previewCts?.Cancel(); - _previewCts = new CancellationTokenSource(); - var token = _previewCts.Token; - Task.Delay(100, token).ContinueWith(t => - { - if (t.IsCanceled) return; - ResolveAsync(EResolveCompute.All); - }, TaskScheduler.FromCurrentSynchronizationContext()); + var scale = Math.Min(1, (double) MaxPreviewSize / Math.Max(bitmap.Width, bitmap.Height)); + using var pixels = new SKBitmap(new SKImageInfo(Math.Max(1, (int) (bitmap.Width * scale)), Math.Max(1, (int) (bitmap.Height * scale)), SKColorType.Bgra8888, SKAlphaType.Premul)); + + if (!bitmap.ScalePixels(pixels, SKFilterQuality.Low)) + return; + + var image = BitmapSource.Create(pixels.Width, pixels.Height, 96, 96, PixelFormats.Pbgra32, null, pixels.GetPixels(), pixels.ByteCount, pixels.RowBytes); + image.Freeze(); + PublishPreview(image); } + + private void PublishPreview(ImageSource image, bool rendered = false) => Application.Current.Dispatcher.InvokeAsync(() => + { + IsRenderedPreview = rendered; + PreviewImage = image; + }, DispatcherPriority.Background); } [Flags] diff --git a/FModel/ViewModels/SnooperViewModel.cs b/FModel/ViewModels/SnooperViewModel.cs index 140737f4..14f1eed3 100644 --- a/FModel/ViewModels/SnooperViewModel.cs +++ b/FModel/ViewModels/SnooperViewModel.cs @@ -70,11 +70,15 @@ public class SnooperViewModel : ViewModel, IDisposable Bridge.Host = new FModelBridgeHost(); Bridge.PendingRequestChanged += request => PendingRequest = request; - _host = new SnooperHost(() => new EditorWindow(htz, width, height, ApplicationService.ApplicationView.CUE4Parse.Provider, startVisible: false, closeHides: true), OnStartupFailure); + _host = new SnooperHost(() => new EditorWindow(htz, width, height, ApplicationService.ApplicationView.CUE4Parse.Provider, startVisible: false, closeHides: true), OnStartupFailure, GameFileViewModel.MaxPreviewSize); _sun = new SunActor(); _environment = new EnvironmentActor(); } + public byte[] RenderMeshPreview(UObject asset) => _host.RenderMeshPreview(asset, (float) SystemParameters.PrimaryScreenHeight); + + public void CloseMeshPreviews() => _host.CloseMeshPreviews(); + public void Load(UObject obj, CancellationToken ct = default) { if (!CanOpenSnooper) @@ -88,6 +92,7 @@ public class SnooperViewModel : ViewModel, IDisposable UIRMesh ir => new MeshActor(ir), UHoudiniStaticMesh hsm => new MeshActor(hsm), USkinnedAsset sa => new MeshActor(sa), + USkeleton sk => new MeshActor(sk), UGeometryCollection gc => new MeshActor(gc), UAnimationAsset anim => new MeshActor(anim), UMaterialInterface mat => new MaterialActor(mat), diff --git a/FModel/Views/Resources/Colors.xaml b/FModel/Views/Resources/Colors.xaml index aa10eeec..e1ba259d 100644 --- a/FModel/Views/Resources/Colors.xaml +++ b/FModel/Views/Resources/Colors.xaml @@ -17,7 +17,9 @@ - + + + diff --git a/FModel/Views/Resources/Controls/DropOverlay.xaml.cs b/FModel/Views/Resources/Controls/DropOverlay.xaml.cs index d9aea2da..ef4fe8eb 100644 --- a/FModel/Views/Resources/Controls/DropOverlay.xaml.cs +++ b/FModel/Views/Resources/Controls/DropOverlay.xaml.cs @@ -99,6 +99,7 @@ public partial class DropOverlay : UserControl try { _applicationView.CUE4Parse.ApplyMappingFile(_path); + _applicationView.RefreshAssetResolution(); } catch (Exception ex) { diff --git a/FModel/Views/Resources/Controls/Explorer/ListExplorer/FileRow.xaml b/FModel/Views/Resources/Controls/Explorer/ListExplorer/FileRow.xaml index 5e40d0ca..3dc1f655 100644 --- a/FModel/Views/Resources/Controls/Explorer/ListExplorer/FileRow.xaml +++ b/FModel/Views/Resources/Controls/Explorer/ListExplorer/FileRow.xaml @@ -24,21 +24,27 @@ - + + Stretch="Uniform" IsHitTestVisible="False"> diff --git a/FModel/Views/Resources/Controls/Explorer/TiledExplorer/FileButton.xaml b/FModel/Views/Resources/Controls/Explorer/TiledExplorer/FileButton.xaml index e5e01eb9..10cc1b71 100644 --- a/FModel/Views/Resources/Controls/Explorer/TiledExplorer/FileButton.xaml +++ b/FModel/Views/Resources/Controls/Explorer/TiledExplorer/FileButton.xaml @@ -20,15 +20,25 @@ - - + + diff --git a/FModel/Views/Resources/Converters/FileToGeometryConverter.cs b/FModel/Views/Resources/Converters/FileToGeometryConverter.cs index f507c996..2e61f2cd 100644 --- a/FModel/Views/Resources/Converters/FileToGeometryConverter.cs +++ b/FModel/Views/Resources/Converters/FileToGeometryConverter.cs @@ -40,9 +40,10 @@ public class FileToGeometryConverter : IMultiValueConverter EAssetCategory.Material => ("MaterialIcon", "MaterialBrush"), EAssetCategory.MaterialEditorData => ("MaterialIcon", "MaterialEditorBrush"), - EAssetCategory.MaterialParameterCollection => ("MaterialParameterCollectionIcon", "MaterialBrush"), - EAssetCategory.MaterialFunction => ("MaterialFunctionIcon", "MaterialBrush"), + EAssetCategory.MaterialParameterCollection => ("MaterialParameterCollectionIcon", "MaterialParameterBrush"), + EAssetCategory.MaterialFunction => ("MaterialFunctionIcon", "MaterialFunctionBrush"), EAssetCategory.MaterialFunctionEditorData => ("MaterialFunctionIcon", "MaterialEditorBrush"), + EAssetCategory.PhysicalMaterial => ("PhysicalMaterialIcon", "NeutralBrush"), EAssetCategory.Animation => ("AnimationIconAlt", "AnimationBrush"), EAssetCategory.Skeleton => ("SkeletonIcon", "NeutralBrush"), @@ -57,7 +58,6 @@ public class FileToGeometryConverter : IMultiValueConverter EAssetCategory.CurveBase => ("CurveIcon", "CurveBrush"), EAssetCategory.PhysicsAsset => ("PhysicsIcon", "NeutralBrush"), EAssetCategory.ObjectRedirector => ("RedirectorIcon", "ConfigBrush"), - EAssetCategory.PhysicalMaterial => ("MaterialIcon", "NeutralBrush"), EAssetCategory.Audio => ("AudioIconAlt", "AudioBrush"), EAssetCategory.SoundBank => ("AudioIconAlt", "SoundBankBrush"), diff --git a/FModel/Views/Resources/Icons.xaml b/FModel/Views/Resources/Icons.xaml index 59906029..18fa6e85 100644 --- a/FModel/Views/Resources/Icons.xaml +++ b/FModel/Views/Resources/Icons.xaml @@ -68,7 +68,7 @@ M5.206,19.956l0.199,42.771c0.003,0.55,0.306,1.054,0.789,1.314l34.161,17.887c0.223,0.119,0.467,0.179,0.711,0.179 c0.001,0,0.002,0,0.003,0c0.103,0.117,0.218,0.227,0.355,0.309c0.236,0.141,0.502,0.212,0.769,0.212 c0.246,0,0.49-0.061,0.712-0.181l33.729-18.292c0.484-0.263,0.787-0.77,0.787-1.319v-44.5c0-0.013-0.005-0.025-0.005-0.039 c-0.001-0.011,0.003-0.021,0.003-0.033c-0.002-0.043-0.019-0.082-0.022-0.124c-0.013-0.082-0.022-0.164-0.047-0.243 c-0.018-0.055-0.041-0.104-0.064-0.157c-0.031-0.07-0.062-0.139-0.104-0.203c-0.031-0.05-0.068-0.095-0.105-0.141 c-0.047-0.058-0.096-0.112-0.152-0.163c-0.044-0.04-0.091-0.076-0.141-0.111c-0.032-0.022-0.059-0.053-0.094-0.073 c-0.032-0.02-0.069-0.028-0.104-0.045c-0.029-0.015-0.052-0.036-0.081-0.049L41.747,0.118c-0.405-0.171-0.864-0.155-1.258,0.042 L6.131,18.071c-0.504,0.254-0.822,0.77-0.825,1.333c0,0.009,0.004,0.017,0.004,0.025C5.249,19.596,5.205,19.772,5.206,19.956z M72.456,18.501l-30.28,16.93L10.111,19.425L41.218,3.151L72.456,18.501z M43.692,78.61V38.021l30.729-17.173v41.09L43.692,78.61z M 299.53 18.813 C 279.92 19.169 258.693 28.151 241.78 45.063 C 219.82 67.023 211.263 96.303 217.562 119.813 C 154.784 90.813 159.904 88.397 97.282 48.219 C 87.209 41.756 77.84 38.799 69.469 38.405 C 55.515 37.751 44.351 44.21 37.343 53.343 C 26.13 67.956 24.96 89.496 48.28 107.75 C 79.307 132.036 107.123 148.79 127.312 167.22 C 147.502 185.647 159.96 207.81 155.656 237.25 C 152.498 258.86 141.966 275.248 129.186 288.72 C 116.408 302.19 101.44 313.206 87.75 325.406 C 60.37 349.806 37.42 377.159 42.687 439.656 C 46.015 479.139 76.845 494.773 102.344 492.031 C 115.094 490.661 125.854 484.695 131.75 474.564 C 137.647 464.432 139.446 449.126 130.72 426.814 C 123.125 407.398 133.822 385.978 149.063 369.72 C 164.303 353.46 185.893 340.9 207.938 344.72 C 214.113 345.79 219.358 349.44 222.968 353.875 C 226.578 358.31 228.964 363.495 230.938 369.125 C 234.884 380.385 237.208 393.799 240.063 407.688 C 245.773 435.465 253.725 463.655 273.125 476.156 C 311.089 500.624 348.383 493.578 365.031 476.626 C 373.356 468.148 376.946 457.766 374.157 445.469 C 371.369 433.169 361.449 418.311 339.877 403.624 C 316.212 387.514 307.221 355.334 306.032 323.499 C 304.844 291.663 311.32 259.422 326.158 239.469 C 333.036 230.219 343.704 226.351 355.814 222.062 C 367.924 217.772 382.021 213.587 396.564 207.374 C 425.651 194.949 456.2 175.177 475.689 130.594 C 492.767 91.524 479.063 66.276 460.409 57.094 C 451.081 52.501 440.279 51.962 429.971 56.468 C 419.661 60.972 409.541 70.654 402.531 88.218 C 389.391 121.15 363.313 139.925 332.095 144.654 C 325.881 145.596 319.481 146.01 312.907 145.967 C 312.461 145.687 312.012 145.397 311.563 145.122 C 317.666 141.304 323.317 136.807 328.407 131.716 C 358.471 101.651 363.457 57.86 339.532 33.934 C 329.066 23.466 314.788 18.531 299.532 18.808 L 299.53 18.813 Z M 297.188 37.969 C 306.761 37.779 315.712 41.139 322.281 48.249 C 337.298 64.499 334.181 94.205 315.314 114.624 C 296.444 135.044 268.986 138.437 253.97 122.187 C 238.953 105.937 242.07 76.2 260.938 55.78 C 271.551 44.295 284.878 38.21 297.188 37.97 L 297.188 37.969 Z M 65.03 62.593 L 127.72 108.061 L 117.438 123.687 L 54.062 77.717 L 65.032 62.593 L 65.03 62.593 Z M 439.095 85.03 L 455.189 94.53 L 418.814 156.125 L 405.782 141.469 L 439.096 85.029 L 439.095 85.03 Z M 142.875 119.062 L 182.815 148.032 C 180.185 153.969 177.865 159.966 175.875 166.094 L 132.595 134.688 L 142.875 119.063 L 142.875 119.062 Z M 214.815 138.938 C 215.543 138.925 216.265 138.931 217.001 138.938 C 248.215 139.218 282.064 146.615 309.845 166.625 C 309.415 199.908 248.937 315.907 248.937 315.907 C 221.243 316.177 195.231 314.66 170.907 301.407 C 170.907 301.407 212.624 138.975 214.813 138.938 L 214.815 138.938 Z M 389.47 151.188 L 402.75 166.156 L 326.937 194.75 C 327.69 188.073 328.132 181.234 328.375 174.22 L 389.469 151.188 L 389.47 151.188 Z M 149.125 302.218 L 161.781 315.968 L 109.471 364.125 L 88.501 358.031 L 149.126 302.221 L 149.125 302.218 Z M 260.281 324.844 L 283.314 373.874 L 266.064 381.124 L 243.344 332.781 L 260.282 324.845 L 260.281 324.844 Z M 83.281 375.969 L 102.221 381.469 L 106.095 466.374 L 87.407 467.218 L 83.282 375.968 L 83.281 375.969 Z M 292.845 390.155 L 335.439 458.875 L 319.564 468.718 L 275.407 397.468 L 292.845 390.154 L 292.845 390.155 Z M1.5,7.23 V22.5 H19.64 A2.87,2.87 0 0 0 19.64,16.77 H17.73 V7.23 Z M17.73,1.5 V16.77 H19.64 A2.88,2.88 0 0 1 21.64,17.61 A2.85,2.85 0 0 1 22.48,19.68 V4.36 A2.87,2.87 0 0 0 19.64,1.5 Z M13.91,18.68 L5.32,18.68 L5.32,10.09 M7.23,12 L5.32,12 M7.23,14.86 L5.32,14.86 M9.14,16.77 L9.14,18.68 M12,16.77 L12,18.68 - M165.446 34.793c-23.17.023-45.634 12.97-54.612 36.323l-83.67 326.167c-12.673 94.537 81.04 88.742 137.957 65.396 81.422-33.396 181.723-29.213 263.244-8.26l6.45-17.218c-7.38-2.638-15.334-5.988-22.252-8.039.473-4.364.955-8.72 1.437-13.074l23.038 4.118 3.234-18.1c-8.074-1.441-16.147-2.885-24.221-4.328.615-5.403 1.238-10.799 1.87-16.189l22.134 3.278 2.693-18.186c-7.548-1.12-15.098-2.238-22.647-3.355.456-3.765.91-7.53 1.375-11.29 7.615 1.092 15.231 2.183 22.847 3.273l2.607-18.2-23.164-3.316c.46-3.593 1.29-9.988 1.76-13.577l22.781 2.55 2.045-17.57c-7.467-.834-14.935-1.671-22.402-2.508.783-5.767 1.917-11.182 2.728-16.943 7.67 1.12 15.341 2.244 23.012 3.368l2.31-17.139c-7.683-1.127-15.366-2.25-23.05-3.374.792-5.415 1.252-10.129 2.071-15.542 7.074 1.264 14.149 2.528 21.223 3.79l3.232-18.1-21.654-3.866c.736-4.676 1.473-9.35 2.23-14.026 6.978 1.673 13.955 3.347 20.932 5.022L465.276 208c-7.401-1.778-14.803-3.554-22.204-5.33a2809.25 2809.25 0 0 1 2.132-12.477c6.98 1.583 13.961 3.165 20.942 4.746l4.064-17.93c-7.271-1.65-14.543-3.298-21.815-4.946.769-4.267 1.55-8.535 2.342-12.805l20.742 5.151 4.431-17.843-21.751-5.405c.741-3.847 1.494-7.696 2.254-11.548l20.28 5.014 4.413-17.849-21.057-5.207a2444.47 2444.47 0 0 1 2.571-12.374c8.386 2.41 13.13 2.364 21.41 4.99L486 88.456c-83.808-26.776-179.25-33.22-244.192-6.453-24.337 114.036-37.305 221.4-68.032 338.64-3.407 13-14.47 21.89-27.342 28.064-27 11.608-64.033 13.778-84.63-4.91-10.971-10.34-16.174-27.036-12.467-47.579 2.303-12.762 10.883-21.986 20.834-26.378 19.749-7.074 43.492-4.25 58.893 7.95 12.463 9.302 12.318 38.283-3.882 31.82-9.639-6.17-1.964-11.851-8.615-17.378-11.6-7.428-26.42-10.872-38.972-5.57-5.564 2.455-8.887 5.737-10.166 12.822-2.94 16.29.685 24.996 6.985 30.933 18.333 13.49 45.279 10.495 64.068 1.712 10.045-4.82 16.277-11.436 17.511-16.147 30.538-116.518 43.443-224.123 68.293-339.964-11.796-28.344-35.67-41.247-58.84-41.225z + M 8 1 C 4.1399298 1 1 4.1399298 1 8 C 1 11.860116 4.1399344 15 8 15 C 11.860112 15 15 11.860112 15 8 C 15 4.1399344 11.860116 1 8 1 z M 8 2 L 8 4 L 12 4 L 12 3.5253906 C 12.16712 3.6748095 12.325192 3.8328792 12.474609 4 L 12 4 L 12 8 L 14 8 C 14 9.5386357 13.422975 10.939277 12.474609 12 L 12 12 L 12 12.474609 C 10.939277 13.422975 9.5386357 14 8 14 L 8 12 L 4 12 L 4 12.474609 C 3.8328792 12.325192 3.6748095 12.16712 3.5253906 12 L 4 12 L 4 8 L 2 8 C 2 6.4613913 2.5770174 5.0607284 3.5253906 4 L 4 4 L 4 3.5253906 C 5.0607284 2.5770174 6.4613913 2 8 2 z M 4 4 L 4 8 L 8 8 L 8 4 L 4 4 z M 8 8 L 8 12 L 12 12 L 12 8 L 8 8 z M 292.845 390.155 L 335.439 458.875 L 319.564 468.718 L 275.407 397.468 L 292.845 390.154 Z M 83.282 375.968 L 83.282 375.969 L 83.281 375.969 Z M 102.221 381.469 L 106.095 466.374 L 87.407 467.218 L 83.282 375.969 Z M 283.314 373.874 L 266.064 381.124 L 243.344 332.781 L 260.282 324.845 Z M 149.125 302.218 L 161.781 315.968 L 109.471 364.125 L 88.501 358.031 L 149.126 302.221 Z M 389.47 151.188 L 402.75 166.156 L 326.937 194.75 C 327.69 188.073 328.132 181.234 328.375 174.22 L 389.469 151.188 Z M 214.815 138.938 C 215.543 138.925 216.265 138.931 217.001 138.938 C 248.215 139.218 282.064 146.615 309.845 166.625 C 309.415 199.908 304.967 225.572 288.565 252.875 C 274.021 243.958 258.239 236.19 241.907 230.781 L 226.437 277.031 L 256.157 282.939 L 248.937 315.907 C 221.243 316.177 195.231 314.66 170.907 301.407 L 178.345 267.501 L 207.97 273.376 L 223.844 225.876 C 210.907 223.124 197.794 222.041 184.781 223.188 C 186.441 189.978 193.497 165.248 208.281 139.158 C 210.449 139.088 212.624 138.975 214.813 138.938 Z M 142.875 119.062 L 182.815 148.032 C 180.185 153.969 177.865 159.966 175.875 166.094 L 132.595 134.688 L 142.875 119.063 Z M 455.189 94.53 L 418.814 156.125 L 405.782 141.469 L 439.095 85.03 Z M 65.032 62.593 L 65.031 62.594 L 65.03 62.593 Z M 127.72 108.061 L 117.438 123.687 L 54.062 77.717 L 65.031 62.594 Z M 297.188 37.969 C 306.761 37.779 315.712 41.139 322.281 48.249 C 337.298 64.499 334.181 94.205 315.314 114.624 C 296.444 135.044 268.986 138.437 253.97 122.187 C 238.953 105.937 242.07 76.2 260.938 55.78 C 271.551 44.295 284.878 38.21 297.188 37.97 Z M129.593,64.314c23.543-30.833,44.788-45.063,54.751-45.063c1.37,0,2.507,0.258,3.386,0.775c5.324,3.076,6.332,16.619,2.766,34.505c5.686,1.086,11.14,2.326,16.335,3.722c5.583-26.958,1.861-45.619-10.649-52.856c-12.716-7.34-30.498-1.318-51.434,17.42c-12.018,10.754-24.622,25.416-36.339,42.062c-11.687,0.676-23.237,1.953-34.188,3.813c-7.913-26.6-7.343-44.886-0.783-48.667c0.879-0.517,2.016-0.775,3.386-0.775c7.289,0,19.255,7.237,32.023,19.385c3.618-4.471,7.263-8.736,10.907-12.742C97.657,5.036,78.246-2.253,65.013,5.397C52.297,12.712,48.626,31.114,54.39,58.64c0.901,4.301,2.036,8.788,3.376,13.409C25.626,79.809,2,93.278,2,111.935c0,15.378,16.231,28.637,45.696,37.322l1.241,0.362l0.362-1.215c1.344-4.42,2.869-8.917,4.523-13.388l0.465-1.292l-1.318-0.388c-20.392-5.97-34.065-14.577-34.065-21.4c0-7.721,16.139-17.594,44.084-24.042c3.821,10.43,8.516,21.254,13.893,32.034c-8.08,17.761-14.137,35.252-17.321,50.473c-5.764,27.5-2.094,45.903,10.623,53.217c3.463,2.016,7.366,3.024,11.605,3.024c10.571,0,23.468-6.384,37.606-18.532c-3.851-3.929-7.625-8.064-11.295-12.38c-10.519,8.891-19.979,14.06-26.105,14.06c-1.344,0-2.481-0.259-3.386-0.776c-8.213-4.751-7.064-32.19,8.403-70.244c24.572,42.417,63.859,87.871,92.371,87.871c4.239,0,8.141-1.008,11.605-3.024h0.026c26.285-15.146,10.054-73.998-16.516-123.493c-6.306-1.008-13.207-1.835-20.729-2.43l0.853,1.447c33.316,57.689,38.795,103.592,27.94,109.872c-0.905,0.517-2.042,0.776-3.386,0.776c-13.13,0-45.98-24.787-77.797-79.891c-2.015-3.492-3.924-6.939-5.738-10.338c3.243-6.601,6.866-13.421,10.907-20.419c3.659-6.338,7.331-12.256,10.986-17.8c3.423-0.101,6.903-0.163,10.466-0.163c66.606,0,109.122,18.222,109.122,30.757c0,6.436-12.199,14.448-30.731,20.367c2.042,5.324,3.903,10.623,5.531,15.843c27.164-8.684,42.078-21.452,42.078-36.21C254,81.266,190.199,64.601,129.593,64.314z M91.919,90.689c-1.915,3.32-3.771,6.67-5.566,10.036c-2.506-5.53-4.744-10.887-6.695-16.017c5.395-0.837,11.099-1.547,17.094-2.107C95.11,85.272,93.492,87.964,91.919,90.689z M111.783,114.85c0,10.231,8.324,18.555,18.555,18.555c10.231,0,18.555-8.324,18.555-18.555s-8.324-18.555-18.555-18.555C120.107,96.294,111.783,104.618,111.783,114.85z M11 1H3C1.9 1 1 1.9 1 3V15L4 12H9V11C9 8.8 10.79 7 13 7V3C13 1.9 12.1 1 11 1M11 4L9.5 4C9.16 5.19 8.54 6.3 7.68 7.26L7.66 7.28L8.92 8.53L8.55 9.54L7 8L4.5 10.5L3.81 9.77L6.34 7.28C5.72 6.59 5.22 5.82 4.86 5H5.85C6.16 5.6 6.54 6.17 7 6.68C7.72 5.88 8.24 4.97 8.57 4L3 4V3H6.5V2H7.5V3H11V4M21 9H13C11.9 9 11 9.9 11 11V18C11 19.1 11.9 20 13 20H20L23 23V11C23 9.9 22.1 9 21 9M19.63 19L18.78 16.75H15.22L14.38 19H12.88L16.25 10H17.75L21.13 19H19.63M17 12L18.22 15.25H15.79L17 12Z @@ -76,6 +76,7 @@ M10.5,5A8.5,8.5 0 0,0 2,13.5A8.5,8.5 0 0,0 10.5,22A8.5,8.5 0 0,0 19,13.5A8.5,8.5 0 0,0 10.5,5M13.5,13A2.5,2.5 0 0,1 11,10.5A2.5,2.5 0 0,1 13.5,8A2.5,2.5 0 0,1 16,10.5A2.5,2.5 0 0,1 13.5,13M19.5,2A2.5,2.5 0 0,0 17,4.5A2.5,2.5 0 0,0 19.5,7A2.5,2.5 0 0,0 22,4.5A2.5,2.5 0 0,0 19.5,2 M5,3H7V5H5V10A2,2 0 0,1 3,12A2,2 0 0,1 5,14V19H7V21H5C3.93,20.73 3,20.1 3,19V15A2,2 0 0,0 1,13H0V11H1A2,2 0 0,0 3,9V5A2,2 0 0,1 5,3M19,3A2,2 0 0,1 21,5V9A2,2 0 0,0 23,11H24V13H23A2,2 0 0,0 21,15V19A2,2 0 0,1 19,21H17V19H19V14A2,2 0 0,1 21,12A2,2 0 0,1 19,10V5H17V3H19M12,15A1,1 0 0,1 13,16A1,1 0 0,1 12,17A1,1 0 0,1 11,16A1,1 0 0,1 12,15M8,15A1,1 0 0,1 9,16A1,1 0 0,1 8,17A1,1 0 0,1 7,16A1,1 0 0,1 8,15M16,15A1,1 0 0,1 17,16A1,1 0 0,1 16,17A1,1 0 0,1 15,16A1,1 0 0,1 16,15Z M14,17H7V15H14M17,13H7V11H17M17,9H7V7H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z + M6 2h8l6 6v6.168l-5.013-4.205C13.684 8.869 11.7 9.795 11.7 11.5v9c0 .545.223 1.067.617 1.5H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2m7 1.5V9h5.5Zm4.684 19.382a.594.594 0 0 1-.798-.282l-1.308-2.844-1.506 1.212a.57.57 0 0 1-.372.132.6.6 0 0 1-.6-.6v-9a.6.6 0 0 1 .6-.6c.144 0 .282.054.384.138l.006-.006 6.894 5.784a.6.6 0 0 1-.264 1.05l-1.896.372 1.32 2.838a.58.58 0 0 1-.288.792z M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M6,20H15L18,20V12L14,16L12,14L6,20M8,9A2,2 0 0,0 6,11A2,2 0 0,0 8,13A2,2 0 0,0 10,11A2,2 0 0,0 8,9Z M608 0H160a32 32 0 0 0-32 32v96h160V64h192v320h128a32 32 0 0 0 32-32V32a32 32 0 0 0-32-32M232 103a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm352 208a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm-168 57H32a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32M96 224a32 32 0 1 1-32 32a32 32 0 0 1 32-32m288 224H64v-32l64-64l32 32l128-128l96 96z M 21.955078 6.001953 L 13.535156 1.269531 C 12.896484 0.912109 12.103516 0.912109 11.464844 1.269531 L 3.044922 6.001953 C 2.400391 6.363281 2 7.041016 2 7.767578 L 2 17.232422 C 2 17.958984 2.400391 18.636719 3.044922 18.998047 L 11.464844 23.730469 C 11.785156 23.910156 12.142578 24 12.5 24 C 12.857422 24 13.214844 23.910156 13.535156 23.730469 L 21.955078 18.998047 C 22.599609 18.636719 23 17.958984 23 17.232422 L 23 7.767578 C 23 7.041016 22.599609 6.363281 21.955078 6.001953 Z M 12.5 18.5 C 9.191406 18.5 6.5 15.808594 6.5 12.5 C 6.5 9.191406 9.191406 6.5 12.5 6.5 C 14.390625 6.5 16.136719 7.376953 17.271484 8.871094 L 15.080078 10.138672 C 14.421875 9.417969 13.486328 9 12.5 9 C 10.570313 9 9 10.570313 9 12.5 C 9 14.429688 10.570313 16 12.5 16 C 13.486328 16 14.421875 15.582031 15.080078 14.861328 L 17.271484 16.128906 C 16.136719 17.623047 14.390625 18.5 12.5 18.5 Z M 18.5 13 L 17.5 13 L 17.5 14 L 16.5 14 L 16.5 13 L 15.5 13 L 15.5 12 L 16.5 12 L 16.5 11 L 17.5 11 L 17.5 12 L 18.5 12 Z M 22 13 L 21 13 L 21 14 L 20 14 L 20 13 L 19 13 L 19 12 L 20 12 L 20 11 L 21 11 L 21 12 L 22 12 Z @@ -86,12 +87,12 @@ M 0 0 L 191 380 L 381 0 L 227 0 L 298 52 L 204 238 L 85 1 Z M9.96,11.31C10.82,8.1 11.5,6 13,6C14.5,6 15.18,8.1 16.04,11.31C17,14.92 18.1,19 22,19V17C19.8,17 19,14.54 17.97,10.8C17.08,7.46 16.15,4 13,4C9.85,4 8.92,7.46 8.03,10.8C7.03,14.54 6.2,17 4,17V2H2V22H22V20H4V19C7.9,19 9,14.92 9.96,11.31Z M15.6,5.29C14.5,5.19 13.53,6 13.43,7.11L13.18,10H16V12H13L12.56,17.07C12.37,19.27 10.43,20.9 8.23,20.7C6.92,20.59 5.82,19.86 5.17,18.83L6.67,17.33C6.91,18.07 7.57,18.64 8.4,18.71C9.5,18.81 10.47,18 10.57,16.89L11,12H8V10H11.17L11.44,6.93C11.63,4.73 13.57,3.1 15.77,3.3C17.08,3.41 18.18,4.14 18.83,5.17L17.33,6.67C17.09,5.93 16.43,5.36 15.6,5.29Z - M165.446 34.793c-23.17.023-45.634 12.97-54.612 36.323l-83.67 326.167c-12.673 94.537 81.04 88.742 137.957 65.396 81.422-33.396 181.723-29.213 263.244-8.26l6.45-17.218c-7.38-2.638-15.334-5.988-22.252-8.039.473-4.364.955-8.72 1.437-13.074l23.038 4.118 3.234-18.1c-8.074-1.441-16.147-2.885-24.221-4.328.615-5.403 1.238-10.799 1.87-16.189l22.134 3.278 2.693-18.186c-7.548-1.12-15.098-2.238-22.647-3.355.456-3.765.91-7.53 1.375-11.29 7.615 1.092 15.231 2.183 22.847 3.273l2.607-18.2-23.164-3.316c.46-3.593 1.29-9.988 1.76-13.577l22.781 2.55 2.045-17.57c-7.467-.834-14.935-1.671-22.402-2.508.783-5.767 1.917-11.182 2.728-16.943 7.67 1.12 15.341 2.244 23.012 3.368l2.31-17.139c-7.683-1.127-15.366-2.25-23.05-3.374.792-5.415 1.252-10.129 2.071-15.542 7.074 1.264 14.149 2.528 21.223 3.79l3.232-18.1-21.654-3.866c.736-4.676 1.473-9.35 2.23-14.026 6.978 1.673 13.955 3.347 20.932 5.022L465.276 208c-7.401-1.778-14.803-3.554-22.204-5.33a2809.25 2809.25 0 0 1 2.132-12.477c6.98 1.583 13.961 3.165 20.942 4.746l4.064-17.93c-7.271-1.65-14.543-3.298-21.815-4.946.769-4.267 1.55-8.535 2.342-12.805l20.742 5.151 4.431-17.843-21.751-5.405c.741-3.847 1.494-7.696 2.254-11.548l20.28 5.014 4.413-17.849-21.057-5.207a2444.47 2444.47 0 0 1 2.571-12.374c8.386 2.41 13.13 2.364 21.41 4.99L486 88.456c-83.808-26.776-179.25-33.22-244.192-6.453-24.337 114.036-37.305 221.4-68.032 338.64-3.407 13-14.47 21.89-27.342 28.064-27 11.608-64.033 13.778-84.63-4.91-10.971-10.34-16.174-27.036-12.467-47.579 2.303-12.762 10.883-21.986 20.834-26.378 19.749-7.074 43.492-4.25 58.893 7.95 12.463 9.302 12.318 38.283-3.882 31.82-9.639-6.17-1.964-11.851-8.615-17.378-11.6-7.428-26.42-10.872-38.972-5.57-5.564 2.455-8.887 5.737-10.166 12.822-2.94 16.29.685 24.996 6.985 30.933 18.333 13.49 45.279 10.495 64.068 1.712 10.045-4.82 16.277-11.436 17.511-16.147 30.538-116.518 43.443-224.123 68.293-339.964-11.796-28.344-35.67-41.247-58.84-41.225z M350 153.5c-13.2-1.2-25.8 8.4-27 21.2l-3 34.8h36v24h-36l-5.3 60.8c-2.3 26.4-25.6 45.9-52 43.4-15.7-1.3-28.9-10.1-36.7-22.4l18-18c2.9 8.9 10.8 15.7 20.7 16.5 13.2 1.2 25.8-8.4 27-21.2l5.2-58.9h-36v-24h38l3.3-36.8c2.3-26.4 25.6-45.9 52-43.4 15.7 1.3 28.9 10.1 36.7 22.4l-18 18c-2.9-8.9-10.8-15.7-20.7-16.5z + M9 7H7V11H9V7Z M7 11H3V11.5C2.8 11.4 2.7 11.2 2.5 11H3V7H1C1 5.5 1.6 4.1 2.5 3H3V2.5C4.1 1.6 5.5 1 7 1V3H11V2.5C11.2 2.6 11.3 2.8 11.5 3H11V5L12.8 3.2C11.6 1.3 9.4 0 7 0C3.1 0 0 3.1 0 7C0 10.9 3.1 14 7 14V13V11Z M7 3H3V7H7V3Z M13.9998 6.5C14.0998 6.3 14.1998 6.2 14.2998 6.2C14.3998 6.3 14.3998 6.4 14.4998 6.4C14.5998 6.5 14.5998 6.6 14.6998 6.7C14.7998 6.8 14.8998 6.9 14.9998 6.9C15.0998 7 15.1998 7 15.2998 7C15.4998 7 15.6998 6.9 15.7998 6.8C15.8998 6.6 15.9998 6.5 15.9998 6.3C15.9998 6.1 15.8998 6 15.8998 5.9C15.8998 5.8 15.7998 5.8 15.7998 5.7C15.7998 5.7 15.6998 5.7 15.6998 5.6C15.6998 5.6 15.5998 5.6 15.4998 5.5C15.4998 5.5 15.4998 5.5 15.3998 5.5C15.2998 5.5 15.1998 5.5 15.0998 5.5C14.7998 5.5 14.5998 5.6 14.2998 5.7C13.9998 5.8 13.7998 6 13.5998 6.2C13.3998 6.4 13.1998 6.7 12.9998 7C12.7998 7.3 12.6998 7.7 12.5998 8L12.4998 8.3H10.4998L10.3998 8.8H12.3998L11.4998 13.1C11.3998 13.7 11.1998 14.2 10.9998 14.5C10.7998 14.8 10.5998 15 10.2998 15C10.2998 14.9 10.1998 14.9 10.1998 14.8C10.1998 14.7 10.0998 14.5 10.0998 14.4C9.9998 14.2 9.9998 14.1 9.8998 14C9.7998 14.1 9.6998 14 9.4998 14C9.3998 13.9 9.1998 13.9 9.0998 13.9C8.7998 13.9 8.6998 14 8.4998 14.2C8.3998 14.4 8.2998 14.6 8.2998 14.8C8.2998 15.1 8.3998 15.3 8.5998 15.4C8.7998 15.6 9.0998 15.7 9.5998 15.7C9.6998 15.7 9.6998 15.7 9.6998 15.7H9.7998C10.2998 15.7 10.8998 15.5 11.3998 15C11.8998 14.5 12.1998 13.9 12.3998 13.2L13.2998 9.1H15.5998L15.6998 8.6H13.3998L13.4998 8.1C13.6998 7.3 13.7998 6.8 13.9998 6.5Z M21,16H3V4H21M21,2H3C1.89,2 1,2.89 1,4V16A2,2 0 0,0 3,18H10V20H8V22H16V20H14V18H21A2,2 0 0,0 23,16V4C23,2.89 22.1,2 21,2Z M60.131 21.423H35.659l24.279-2.656l1.878-.206l-.224-1.876l-1.53-12.849l-.183-1.524l-1.527-.12l-2.22-.173L55.888 2l-.24.044l-51.923 9.565L2 11.927l.207 1.744l.404 3.397v16.381l.477.029v16.524l1.473.32l52.982 11.516l.746.162l.646-.408l2.191-1.383l.874-.55V21.423h-1.869M55.985 3.884l2.22.174l1.37 11.494l-1.739-2.536l-6.791-8.222l4.94-.91M42.58 6.354l9.299 11.413l-8.489.929l-8.431-10.938l7.621-1.404M28.059 9.029l7.692 10.503l-6.908.756l-7.046-10.105l6.262-1.154m-11.981 2.206l6.482 9.74l-5.731.626l-5.988-9.401l5.237-.965m-5.461 15.844l-2.77-3.601l.096-.184h4.72l-2.046 3.785m1.064 3.165c0 .55-.393.973-.874.946c-.479-.027-.863-.488-.863-1.029s.385-.965.863-.945c.481.018.874.479.874 1.028M4.516 17.246l-.453-3.797l1.961-.361l5.554 9.089l-1.146.125l-2.766.303l-.588-1l-2.562-4.359M6.474 22.8c0 .525-.359.952-.799.957c-.437.002-.787-.414-.787-.931c0-.519.351-.945.787-.957c.439-.011.799.406.799.931m-.799 6.213c.439.018.799.457.799.982c0 .525-.359.929-.799.903c-.437-.024-.787-.463-.787-.98c0-.518.35-.922.787-.905m54.456 15.454l-1.867.482l-43.419-5.381v4.129l43.419 6.875l1.867-.797v1.365l-1.867.814l-53.307-8.87v-.948l8.956 1.414v-4.098l-8.956-1.11v-.948l53.307 6.174l1.867-.468v1.367m0-8.235l-1.867.311l-53.307-3.89v-.923l9.713.62l-1.161-1.51l4.27-7.546h5.096l-5.473 9.183l5.727.369l6.006-9.552h6.882l-6.614 9.957l6.905.445l7.319-10.402h8.458L43.94 34.189l8.485.547l5.937-7.888l1.769-3.007v12.391 M19 3H5C3.89 3 3 3.89 3 5V19C3 20.11 3.89 21 5 21H19C20.11 21 21 20.11 21 19V5C21 3.89 20.11 3 19 3M8 15H6.5L6 13L5.5 15H4L4.75 12L4 9H5.5L6 11L6.5 9H8L7.25 12L8 15M15.5 15H14V10.5H13V14H11.5V10.5H10.5V15H9V11C9 9.9 9.9 9 11 9H13.5C14.61 9 15.5 9.9 15.5 11V15M20 15H17V9H18.5V13.5H20V15Z m397.529,58.225c-37.359,0-72.27,11.235-100.957,32.49-25.401,18.819-44.228,44.84-51.653,71.391-8.498,30.386-1.593,57.841 18.431,75.96-6.892,12.102-13.298,24.592-18.372,36.707-4.66-11.592-10.865-21.973-17.882-31.224 9.949-15.808 11.327-35.12 3.511-54.911-7.36-18.635-22.266-35.818-41.974-48.386-21.258-13.556-46.288-20.721-72.383-20.721-33.485,0-67.836,12.078-99.338,34.928l-16.912,12.268 20.162,5.478c33.26,9.036 59.805,34.679 83.225,57.303 23.91,23.098 46.495,44.914 72.659,44.921 0.004,0 0.008,0 0.012,0 12.875,0 25.18-5.146 37.498-15.667 11.82,16.664 20.228,37.094 20.228,61.938v127h20c0,0 0.018-122.778 0.018-129.384 0-15.96 9.362-39.486 26.042-68.882 12.387,6.689 23.962,9.954 35.235,9.954 36.76,0 60.665-35.173 85.974-72.41 22.59-33.238 48.194-70.911 86.29-90.421l18.581-9.516-19.061-8.516c-30.153-13.47-60.209-20.3-89.334-20.3zm-221.471,196.203c-0.002,0-0.004,0-0.007,0-18.085-0.005-36.938-18.218-58.768-39.306-20.663-19.961-43.588-42.108-72.305-55.135 23.345-13.586 47.248-20.456 71.272-20.456 48.227,0 84.676,28.4 95.755,56.453 2.869,7.266 5.835,19.295 0.99,31.335-17.942-18.216-37.69-30.663-49.979-38.408-3.594-2.266-6.698-4.222-8.771-5.695l-11.59,16.299c2.526,1.797 5.85,3.892 9.697,6.316 12.659,7.979 31.868,20.09 48.451,37.523-8.638,7.436-16.76,11.074-24.745,11.074zm208.452-78.693c-23.213,34.155-43.261,63.652-69.432,63.652-7.676,0-15.897-2.358-24.996-7.165 0.894-1.439 1.797-2.886 2.722-4.348 19.815-31.329 39.938-56.696 40.139-56.949l-15.649-12.454c-1.715,2.155-22.828,28.846-43.394,61.905-12.095-13.03-15.666-31.622-9.72-52.884 6.252-22.354 22.397-44.482 44.298-60.708 17.584-13.028 47.309-28.56 89.051-28.56 20.458,0 41.53,3.779 62.861,11.258-32.716,22.745-55.46,56.209-75.88,86.253z - M165.446 34.793c-23.17.023-45.634 12.97-54.612 36.323l-83.67 326.167c-12.673 94.537 81.04 88.742 137.957 65.396 81.422-33.396 181.723-29.213 263.244-8.26l6.45-17.218c-7.38-2.638-15.334-5.988-22.252-8.039.473-4.364.955-8.72 1.437-13.074l23.038 4.118 3.234-18.1c-8.074-1.441-16.147-2.885-24.221-4.328.615-5.403 1.238-10.799 1.87-16.189l22.134 3.278 2.693-18.186c-7.548-1.12-15.098-2.238-22.647-3.355.456-3.765.91-7.53 1.375-11.29 7.615 1.092 15.231 2.183 22.847 3.273l2.607-18.2-23.164-3.316c.46-3.593 1.29-9.988 1.76-13.577l22.781 2.55 2.045-17.57c-7.467-.834-14.935-1.671-22.402-2.508.783-5.767 1.917-11.182 2.728-16.943 7.67 1.12 15.341 2.244 23.012 3.368l2.31-17.139c-7.683-1.127-15.366-2.25-23.05-3.374.792-5.415 1.252-10.129 2.071-15.542 7.074 1.264 14.149 2.528 21.223 3.79l3.232-18.1-21.654-3.866c.736-4.676 1.473-9.35 2.23-14.026 6.978 1.673 13.955 3.347 20.932 5.022L465.276 208c-7.401-1.778-14.803-3.554-22.204-5.33a2809.25 2809.25 0 0 1 2.132-12.477c6.98 1.583 13.961 3.165 20.942 4.746l4.064-17.93c-7.271-1.65-14.543-3.298-21.815-4.946.769-4.267 1.55-8.535 2.342-12.805l20.742 5.151 4.431-17.843-21.751-5.405c.741-3.847 1.494-7.696 2.254-11.548l20.28 5.014 4.413-17.849-21.057-5.207a2444.47 2444.47 0 0 1 2.571-12.374c8.386 2.41 13.13 2.364 21.41 4.99L486 88.456c-83.808-26.776-179.25-33.22-244.192-6.453-24.337 114.036-37.305 221.4-68.032 338.64-3.407 13-14.47 21.89-27.342 28.064-27 11.608-64.033 13.778-84.63-4.91-10.971-10.34-16.174-27.036-12.467-47.579 2.303-12.762 10.883-21.986 20.834-26.378 19.749-7.074 43.492-4.25 58.893 7.95 12.463 9.302 12.318 38.283-3.882 31.82-9.639-6.17-1.964-11.851-8.615-17.378-11.6-7.428-26.42-10.872-38.972-5.57-5.564 2.455-8.887 5.737-10.166 12.822-2.94 16.29.685 24.996 6.985 30.933 18.333 13.49 45.279 10.495 64.068 1.712 10.045-4.82 16.277-11.436 17.511-16.147 30.538-116.518 43.443-224.123 68.293-339.964-11.796-28.344-35.67-41.247-58.84-41.225z M341 395l-36 -40 -45 20 3 -13 24 -11c5,-2 9,-4 11,-5 -2,-2 -5,-5 -8,-8l-19 -21 2 -12 33 36 49 -22 -3 13 -33 15c-2,1 -4,2 -6,2 2,2 4,4 5,5l24 26 -3 13zm-15 -177l-10 54 -9 -2 10 -54 9 2zm25 5l-10 54 -9 -2 10 -54 9 2zm39 -76l-2 10 -64 -12c2,3 4,6 5,11 2,4 3,8 3,12l-10 -2c-2,-6 -4,-12 -7,-17 -3,-5 -6,-9 -9,-11l1 -6 82 16z + M7 11L10 8H11V7H7V11Z M7 3H3V7H7V3Z M3.2 12.8L5 11H3V11.5C2.8 11.4 2.7 11.2 2.5 11H3V7H1C1 5.5 1.6 4.1 2.5 3H3V2.5C4.1 1.6 5.5 1 7 1V3H11V2.5C11.2 2.6 11.3 2.8 11.5 3H11V7H13C13 7.3 13 7.7 12.9 8H13.9C14 7.7 14 7.3 14 7C14 3.1 10.9 0 7 0C3.1 0 0 3.1 0 7C0 9.4 1.3 11.6 3.2 12.8Z M8.0001 16L5.6001 13.3L6.4001 12.5L8.0001 14.5L11.4001 10H16.0001V11H11.9001L8.0001 16Z M14 13.4L14.9 12H16L14.7 14L16 16H14.9L14 14.6L13.1 16H12L13.4 14L12 12H13.1L14 13.4Z M4,3C2.89,3 2,3.89 2,5V15A2,2 0 0,0 4,17H12V22L15,19L18,22V17H20A2,2 0 0,0 22,15V8L22,6V5A2,2 0 0,0 20,3H16V3H4M12,5L15,7L18,5V8.5L21,10L18,11.5V15L15,13L12,15V11.5L9,10L12,8.5V5M4,5H9V7H4V5M4,9H7V11H4V9M4,13H9V15H4V13Z M289.718,1208.22 L283.795,1202.28 C283.404,1201.89 282.768,1201.89 282.376,1202.28 C281.984,1202.68 282,1203.35 282,1204 L282,1207 L266,1207 L266,1204 C266,1203.35 266.016,1202.68 265.624,1202.28 C265.232,1201.89 264.597,1201.89 264.205,1202.28 L258.282,1208.22 C258.073,1208.43 257.983,1208.71 257.998,1208.98 C257.983,1209.26 258.073,1209.54 258.282,1209.75 L264.205,1215.69 C264.597,1216.08 265.232,1216.08 265.624,1215.69 C266.016,1215.29 266,1214.39 266,1214 L266,1211 L282,1211 L282,1214 C282,1214.65 281.984,1215.29 282.376,1215.69 C282.768,1216.08 283.404,1216.08 283.795,1215.69 L289.718,1209.75 C289.927,1209.54 290.017,1209.26 290.002,1208.98 C290.017,1208.71 289.927,1208.43 289.718,1208.22 M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M6.12,15.5L9.86,19.24L11.28,17.83L8.95,15.5L11.28,13.17L9.86,11.76L6.12,15.5M17.28,15.5L13.54,11.76L12.12,13.17L14.45,15.5L12.12,17.83L13.54,19.24L17.28,15.5Z @@ -121,7 +122,8 @@ M12 21l-8 -4.5v-9l8 -4.5l8 4.5v4.5 M12 12l8 -4.5 M12 12v9 M12 12l-8 -4.5 M15 18h7 M19 15l3 3l-3 3 M3 8V3h5v2H5v3z M16 3h5v5h-2V5h-3z M3 16h2v3h3v2H3z M19 16h2v5h-5v-2h3z M7 16l3.5-4 2 2.4 1.5-1.7 3 3.3v1H7z M16 8a1.5 1.5 0 1 0 0 3 1.5 1.5 0 1 0 0-3z F1 M21.57 28.749 15.998 32l-5.571-3.251 5.57-3.251 5.571 3.251Zm8.144-20.75v16.004l-5.915 3.45a2.595 2.595 0 0 0-.934-.948l-12.437-7.253V17.3H21.57v1.95l-3.003 1.751 2.573 1.5 1.714-1.001a2.605 2.605 0 0 0 1.286-2.25v-6.5c0-.928-.49-1.786-1.286-2.251l-4.287-2.5 4.295-2.504c.395-.232.713-.561.933-.947h.003l5.915 3.451ZM8.2 4.548c.222.386.539.715.934.947l12.437 7.253V14.7H10.428v-1.952l3-1.749-2.572-1.5-1.714 1a2.606 2.606 0 0 0-1.286 2.251v6.5c0 .928.49 1.785 1.286 2.25l4.284 2.498-4.292 2.505a2.579 2.579 0 0 0-.934.947l-5.916-3.452V7.999L8.2 4.548ZM21.57 3.25 15.998 6.5l-5.571-3.249L15.999 0l5.57 3.251Z - + M7.25.25c-3.86 0-7 3.14-7 7s3.14 7 7 7v-3h-4v.475a6 6 0 0 1-.475-.475h.475v-4h-2c0-1.539.577-2.94 1.525-4h.475v-.475a5.98 5.98 0 0 1 4-1.525v2h4v-.475q.25.225.475.475h-.475v4h2c0 .518-.066 1.02-.19 1.5h1.026a7 7 0 0 0 .164-1.5c0-3.86-3.14-7-7-7m4 7h-4v4l2-2.5h2zm-4 0v-4h-4v4zm1.15 3.5h.55q.15 0 .15.15v3.2q0 .15-.15.15H8.4q-.15 0-.15-.15v-3.2q0-.15.15-.15m1.25-1h1.05q.25 0 .25.25v5q0 .25-.25.25H9.65q-.25 0-.25-.25v-5q0-.25.25-.25m1.6 2.05H13v1.4h-1.75Zm2.3-2.05h1.05q.25 0 .25.25v5q0 .25-.25.25h-1.05q-.25 0-.25-.25v-5q0-.25.25-.25m1.75 1h.55q.15 0 .15.15v3.2q0 .15-.15.15h-.55q-.15 0-.15-.15v-3.2q0-.15.15-.15 + M477.02.94h10.15l.46.74 5.58-.09 2.47-.07.53 1.16 5.57-.17 19.81 4.28c1.84 1.44 3.52 1.76 5.93 1.7 9.78 1.22 24.46 8.28 34.04 11.94 19.48 7.42 38.87 14.88 58.33 22.3 1.58.6 3.22.72 4.82 1.18 3.04.87 5.94 2.83 8.9 3.96 6.68 2.55 13.43 5.22 20.26 7.19 1.62.46 3.04 1.65 4.61 2.25 6.6 2.51 13.13 5.2 19.73 7.72 3.81 1.45 7.94 2.32 11.69 3.75 1.35.52 2.28 1.83 3.75 2.25 8.61 2.49 16.82 6.42 25.41 8.9 3.04.88 5.94 2.84 8.9 3.97 6.66 2.54 13.47 5.22 20.27 7.18 1.61.47 3.03 1.65 4.61 2.25 10.43 3.98 20.82 8.42 31.41 11.48 6.86 1.97 13.2 6.27 20.05 8.25 15.33 4.43 29.84 12.21 45.14 16.62 1.62.47 3.04 1.65 4.61 2.25 5.8 2.21 11.78 4.62 17.69 6.33 6.94 2 15.36 5.93 22.3 8.58 1.58.6 3 1.78 4.62 2.25 4.74 1.37 9.08 3.38 13.72 5.14 11.9 4.54 24.64 8.33 33.99 17.48 10.92 10.69 16.78 28.66 16.9 43.59l-.18 335.38c-4.12-.37-8.15-4.7-12.03-6.49l-.24-1.11-3.96-.97-13.72-4.79-.34-1.37-3.82.11-.46-1.08-4.24.32-9.49-1.78-.49-301.07c.26-2 .34-2.71-.97-4.18.02-2.94-1.45-4.82-2.24-7.56-3-10.4-12.87-16.47-23.05-18.98-2.86-.7-5.68-1.29-8.19-2.73l-.23-.67-4.18-.1-95.69-29.05-.48-.98-5.58-.83-114.13-34.27c-1.98-1.68-3.68-1.82-6.33-1.76-6.08-2.42-12.73-3.11-18.76-5.41a145 145 0 0 0-17.16-5.15c-21.86-5.39-52.7-24.27-67.06 4.45a33 33 0 0 0-3.02 11.17l-.78.41.02 5.58v585.84c-.31 2.35-.61 4.1.83 5.95 2.87 13.51 8.23 22.93 22.65 25.81 2.82.57 5.58 1.28 8.58.81 4.46-.7 8.98-2.18 13.32-3.5l4.12-.33.31-1.28 13.58-3.55 4.72-.69.46-1.13c9.67-3.28 19.63-5.71 29.4-8.53 12.37-3.57 24.35-8.05 36.88-11.15 1.92-.47 3.6-1.71 5.47-2.25 6.7-1.93 13.5-4.06 20.27-5.47 4.86-1.01 9.14-3.93 14.23-3.98l-.03 3.72 1.34.32c2.73 8.42 4.79 18.06 9.98 25.54.04 2.17.69 3.08 1.67 5.01l1.21.29c2.56 2.97 4.65 6.4 6.95 9.55 3.1 4.25 7.83 7.89 11.55 11.61-2.23 4.26-11.31 5.26-15.73 7.42-3.86 1.89-7.92 3.15-11.98 4.32-3.87 1.12-7.69 3.38-11.48 4.82-8.76 3.34-17.53 6.43-26.26 9.76l-72.05 27.45c-7.45 2.84-14.87 5.74-22.31 8.58-1.57.6-2.99 1.78-4.61 2.25-7.63 2.2-15.36 5.19-22.83 8.04-2.16.82-4.11 2.47-6.33 3.11-5.63 1.62-10.8 3.91-16.3 6-16.17 6.17-37.14 11.35-54.3 12.29h-14.59c-4.08-.22-8.8-.1-12.43-1.83l-1.36.23-.36-.89-3.86-.02c-6.15-.6-11.77-3.07-17.74-4.31a139 139 0 0 1-21.13-6.33c-1.57-.59-2.99-1.78-4.61-2.25-8.26-2.38-16.47-5.81-24.55-8.9-3.85-1.46-7.53-3.68-11.47-4.82-8.22-2.37-16.51-5.83-24.55-8.9-1.58-.6-3-1.79-4.61-2.25-5.98-1.73-11.85-4.1-17.7-6.33-3.78-1.44-7.6-3.7-11.47-4.82-10.56-3.05-21.09-7.54-31.41-11.47-1.58-.6-3-1.79-4.61-2.26-14.6-4.21-28.66-10.87-42.89-16.29a147 147 0 0 0-11.69-3.76c-1.47-.42-2.4-1.73-3.75-2.25-3.72-1.42-8.05-1.97-11.69-3.75a87 87 0 0 0-11.09-4.62l-.22-1.03-3.42-.19-91.37-34.99-.42-1.01-4.22-.74c-8.55-3.66-17.63-7.18-26.5-9.74-1.61-.47-3.04-1.66-4.61-2.25-7.47-2.85-14.81-5.73-22.3-8.58-12.42-4.74-26.67-9.38-34.98-20.78-7.65-10.47-11.81-23.1-12.6-35.99L1 652.66l-.24-6.77-.07-422.02.35-6.86.55-4.29.98-6.43-.2-1.24 1.21-.48-.2-3.86c.71-6.61 3.74-13.32 7.32-18.89 10.39-16.22 22.1-20.16 39.32-26.73 28.11-10.72 55.95-22.03 84.37-32.53 2.17.04 3.14.16 4.44-1.68l25.86-9.49c1.85-.08 2.32-.14 3.45-1.58l185.25-70.45 4.17-1.75c14.37-5.52 28.86-10.83 43.28-16.33 10.32-3.93 20.16-8.5 30.88-11.15 1.91-.47 3.59-1.71 5.47-2.25 6.08-1.75 12.37-2.52 18.54-3.75 2.34-.47 4.11-1.52 6.6-1.61l6.43.15.46-1.16 1.69.08 5.57.3zM876.86 808.1l-16.91-.03c-4.78-1.78-9.73.02-14.61-.95-1.22-.25-1.67-1.12-2.76-1.53-3.39-1.3-7.33-1.17-10.83-2.04a90 90 0 0 1-16.3-6c-8.23-4.02-17.01-8.61-24.58-14.02-3.44-2.46-6.07-6.03-9.49-8.52-3.44-2.52-12.9-11.58-14.95-15.07-.34-.57-.28-1.42-.65-1.93-.69-.97-2.02-1.34-2.78-2.36-3.3-4.42-6.94-9.69-9.44-14.58-.88-1.73-1.24-3.71-2.3-5.41-3.73-5.95-7.42-13.91-9.14-20.89-.89-3.58-1.16-7.26-2.04-10.82-.67-2.71-1.98-5.18-2.23-8.02-.19-2.32.1-4.34-.26-6.78l-.02-22.09c2.43-37.54 23.68-75.53 55.02-97.92 4.5-3.21 9.77-6.06 14.31-8.84 6.95-4.26 23.72-10.44 31.71-12.04 2.68-.53 5.66-.31 8.26-1.18.82-.27 1.21-1.12 2.04-1.39 4.15-1.35 9.23-.37 13.53-1.04 6.3-.99 14.11-1.82 20.59-.81 3.63.57 11.49.89 14.45 1.85.82.27 1.21 1.12 2.03 1.39 5.87 1.96 12.84 1.82 18.55 4.61 4.38 2.14 8.75 4.38 13.19 6.55 12.69 6.19 28.16 16.71 37.15 28.03 5.62 7.08 11.31 14.52 16.16 22.44 3.48 5.66 6.41 13.6 9.41 19.75 2.25 4.6 2.36 10.28 3.76 15.12.29 1.02 1.14 1.87 1.39 2.9.88 3.55 1.29 7.42 1.85 11.01.48 3.07-.43 6.32.05 9.38 1.33 8.46.6 23.1-1.04 31.61-.64 3.32-2.43 6.45-3.11 9.75-5.96 28.72-26.66 58.06-50.8 75.3a137 137 0 0 1-30.26 16.06c-2.45.93-4.62 2.47-7.18 3.1-4.45 1.1-8.98 1.81-13.41 2.9-1.02.25-1.87 1.15-2.89 1.39-5.11 1.22-10.42-.68-15.47 1.12Zm-3.24-203.39c-1.46 2.14-3.46 1.54-5.55 3.03-2.48 1.77-4.46 4.17-6.91 5.95-1.13.82-2.68 1.36-3.68 2.34-2.66 2.6-5.95 4.83-9.14 7.15-3.4 2.48-6.6 5.51-9.89 8.12-1.37 1.1-2.37 2.95-3.88 3.84-.58.34-1.42.28-1.93.64-2.93 2.09-8 8.25-11.5 9.09-10.77 2.57-29.34-4.97-36.7 5.33-3.06 4.28-2.17 10.88-2.17 15.84v29.17c0 7.15.8 14.56 8.31 17.42 6.91 2.64 16.49 1.02 23.85 1.02 3.72 0 7.87-.61 10.99 1.88 1.44 1.14 2.41 2.78 3.76 3.96 2.03 1.79 4.88 3.29 7.1 4.91 4.55 3.32 8.8 7.46 12.92 11.09 2.35 2.08 5.62 3.62 8.12 5.61 4.19 3.32 10.81 11.09 16.3 11.09 5.03 0 7.42-3.64 8.12-8.12.74-4.74-.28-9.91-.51-14.55-.18-3.77.19-7.31.54-11.15 1.07-11.75-1.16-23.28-.67-34.18.49-11.01.42-22.35 0-33.72-.04-1.07.57-2.18.67-3.3.4-4.39-.31-8.78-.67-13-.48-5.59 1.67-20.62-.65-25.14-1.19-2.33-4.73-3.26-6.83-4.32Zm92.26 88.31.68-.39.02-5.57-.01-18.01.21-4.72-.84-.52c-1.68-5.04-1.32-10.73-3.7-15.62-5.71-11.68-8.76-18.09-17-28.46-4.62-5.83-9.56-13.85-17.98-7.7-3.08 2.25-4.78 7.12-3.01 10.67.52 1.03 1.85 1.69 2.52 2.63 3.67 5.13 7.45 10.26 11.15 15.44 6.86 9.6 10.75 26.57 10.75 38.14 0 11.74-3.13 24.38-9.3 34.44-1.55 2.54-2.24 5.5-4.02 7.99-2.69 3.77-6.7 6.59-9.38 10.35-2.92 4.09-3.17 10.85 1.29 14.1 1.72 1.25 3.5 1.31 5.54 1.31 6.2 0 7.78-4.26 11.58-8.15 7.99-8.15 15.98-22.53 18.71-33.61.96-3.87 1.03-8.82 2.79-12.32Zm-58.81 24.06c3.16-1.58 6.28-3.12 8.85-5.74 1.57-1.6 2.13-3.54 3.19-5.38.49-.86 1.44-1.45 1.98-2.31 1.54-2.45 2.09-5.59 2.87-8.28 3.59-12.45 4.66-21.55 0-33.78-2.64-6.91-6.86-20.31-16.03-20.85-6.41-.38-10.1 6.81-8.98 12.41.55 2.73 3.42 4.91 4.66 7.35 1.56 3.04 3.33 7.33 3.86 10.72 1.09 6.92.05 14.7-1.85 21.25-1.9 6.6-6.95 7.87-6.7 15.6.08 2.51.84 4.89 3.01 6.44 1.52 1.09 3.5 1.54 5.14 2.57Z M284.07 238.36v6.85a37 37 0 0 1-4.43 13.2c-3.29 5.74-9.1 9.16-13.49 13.91-6.58 7.12-11.45 17.08-11.04 27 .58 14.19 9.93 16.64 18.41 25.12 5.54 5.54 7.78 12.02 9.58 19.4v8.21c-3.76 15.74-11.94 25.32-28.31 28.79l-9.58.02c-16.44-3.74-24.7-13.19-28.3-29.26l.01-7.31c1.65-7.51 4.01-14.2 9.57-19.83 8.33-8.45 19.25-12.01 18.36-26.51-.54-8.96-3.85-16.34-9.11-23.42-3.18-4.29-7.89-7.02-11.42-10.95a33.1 33.1 0 0 1-7.99-28.19c2.17-11.22 10.36-17.07 17.73-24.84 6.46-6.81 10.35-16.51 10.82-25.85.74-14.84-9.71-18.67-18.29-27.5-8.47-8.74-12.75-22.81-7.69-34.42 1.64-3.78 3.35-7.18 6.11-10.32 3.37-3.83 7.59-7.2 12.38-9.05 25.96-10.04 54.22 14.15 44.18 41.43-6.02 16.36-28.45 21-26.41 40.78.8 7.67 3.24 15.17 7.89 21.39 9.15 12.2 18.37 14.18 21.02 31.35Zm-118.94-93c15.72-3.34 30.52 9.92 29.83 25.64a24.3 24.3 0 0 1-7.69 16.49c-5.4 5.15-11.98 7.17-11.5 15.93.75 13.57 18.79 18.28 21.91 32.89 1.86 8.75-1.16 17.83-7.38 24.08-5.47 5.49-12.6 9.37-14.28 17.62-2.3 11.26 10.85 14.24 15.63 22.34 9.62 16.26-2.76 36.37-21.1 36.75-19.73.41-31.99-21.67-21.11-38.12 4.43-6.7 17.17-9.97 15.41-19.75-1.67-9.27-9.06-12.71-15.02-18.79-5.83-5.95-9.02-14.92-7.3-23.21 3.37-16.15 20.83-19.44 22.39-33.81 1.13-10.36-10.79-12.59-15.54-19.72-9.76-14.63-1.36-34.7 15.75-38.34Zm159.42.03c17.03-4.59 31.41 11.6 30.23 27.44-.5 6.72-5.01 12.76-10.17 16.75-5.21 4.03-10.12 6.27-9.75 13.84.62 12.67 19.31 17.86 22.65 33.35 1.81 8.39-1.27 16.99-6.98 23.13-5.83 6.27-13.45 9.67-15.36 18.88-2.11 10.11 10.82 13.37 15.37 20.21 10.74 16.16-.87 37.78-20.17 38.13-18.8.34-31.66-20.18-22.02-36.77 4.81-8.28 17.78-10.95 15.64-22.37-1.53-8.2-8.97-12.13-14.37-17.52a27 27 0 0 1-7.35-23.7c2.62-14.97 20.79-19.09 21.91-32.88.87-10.7-9.51-12.89-14.86-20.26-10.48-14.43-.76-33.92 15.23-38.23Zm55.8 99.82v-6.85c3.13-7.28 5.3-14.33 13.3-17.99 15.61-7.15 35.19 3.41 35.16 21.41-.03 16.74-18.25 27.76-33.4 21.91-8.87-3.41-11.62-10.61-15.06-18.48ZM90.87 218.17l9.59-.02c7.33 1.82 13.88 6.86 17.09 13.81.9 1.94 1.16 4.04 2.06 5.94l-.01 7.75c-3.65 6.86-3.34 10.88-10.83 15.87-24.2 16.1-51.95-18.88-29-37.7a29 29 0 0 1 11.1-5.65Zm301.5 110.66 6.72-.01c2.79.94 6.03.58 8.88 1.34 7.47 1.99 14.66 6.46 20.65 11.3 5.57 4.5 9.87 11.6 12.49 18.09 2.58 6.41 2.79 10.22 3.84 16.85.24 1.48.95 2.57.75 4.19-.82 6.78-2.02 14.58-5.2 20.88-11.55 22.87-37.17 35.57-61.96 27.54a52 52 0 0 1-19.92-11.59c-6.7-6.31-11.57-15.03-14.19-23.68-.85-2.8-.61-6.14-1.48-8.81l-.01-7.76c.39-1.19-.08-2.44.22-3.68.93-3.84 1.87-7.71 3.16-11.47 4-11.69 14.41-22.11 25.24-27.65a60 60 0 0 1 11.34-4.22c2.98-.78 6.56-.3 9.47-1.32Zm2.9 23.8c-3.17.33-15.64 11.68-18.93 14.31-3.54 2.84-9.31-.63-13.14.99-5.59 2.38-3.38 12.93-3.38 17.69 0 1.82-.43 4.36.35 6.05 3.18 6.91 12.45.83 17.16 4.72 4.1 3.38 8.44 6.44 12.49 9.91 1.51 1.28 3.75 3.8 5.84 3.83 5.37.08 3.4-8.91 3.46-12.18.22-11.7.19-23.46 0-35.16-.06-3.47 1.6-10.72-3.85-10.16Zm23.32 1.46a4.05 4.05 0 0 0-3.47 5.01c.59 2.12 3.21 4.23 4.45 6.06 3.05 4.51 5.26 10.39 5.22 15.89-.04 5.67-2.14 11.7-5.21 16.36-1.31 1.99-3.89 3.65-4.52 6.04-.66 2.48 1.49 4.78 3.89 4.75 3.79-.05 6.82-5.94 8.46-8.83 6.1-10.77 6.86-23.78.99-34.85-1.61-3.04-5.63-10.89-9.81-10.43Zm-9.93 23.54c1.34 2.37 1.34 4.37 0 6.84-1.17 1.75-3.67 5.81-3.5 7.97.27 3.43 3.98 4.67 6.43 2.5 5.96-5.28 6.18-14.61 3.76-21.48-.91-2.59-2.83-6.89-6.01-7.27-7.2-.86-2.6 9.01-.68 11.44Z diff --git a/FModel/Views/Resources/Resources.xaml b/FModel/Views/Resources/Resources.xaml index 9f839702..709a103e 100644 --- a/FModel/Views/Resources/Resources.xaml +++ b/FModel/Views/Resources/Resources.xaml @@ -824,6 +824,21 @@ + + + + + + + + + + + + + + @@ -2173,125 +2188,6 @@ - - - - - -