-
-## 图像搜索
-
-在第一次使用时,你需要点击等待索引的生成,我2万张图像的情况下大概需要15秒(配置是amd 5600x和pcie ssd)。后续使用他会检查文件夹是否发生变化,如果发生变化则需要重新生成索引,通常这个过程极快。
-
-图像搜索支持翻译,具体看这个 https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/39 。
-
-## 图像比较
-
-
-
-## 全屏预览 (并排布局)
-
-
-## 全屏预览
-
-
-在全屏预览下同样可以查看图片信息和进行上下文菜单上的的操作,支持拖拽/调整/展开收起
-
-https://user-images.githubusercontent.com/25872019/235327735-bfb50ea7-7682-4e50-b303-38159456e527.mp4
-
-
-如果你和我一样不需要查看生成信息,你可以选择直接缩小这个面板,所有上下文操作仍然可用
-
-
-
-也可以通过右上角的图标来触发
-
-
-
diff --git a/extensions/sd-webui-infinite-image-browsing/README.md b/extensions/sd-webui-infinite-image-browsing/README.md
deleted file mode 100644
index b154eaeeac2e3d70ca9cde44c49651253fa7d5e3..0000000000000000000000000000000000000000
--- a/extensions/sd-webui-infinite-image-browsing/README.md
+++ /dev/null
@@ -1,178 +0,0 @@
-> 🌍 i18n Advisory: Some translations may be incomplete or inaccurate. Pull requests are welcome for improvements!
-
-> 🌐 Try our application online at: http://39.105.110.128:0721. This is my idle 2c2g3m cloud server without CDN.
-
-[中文文档](./README-zh.md)
-[Change log](https://github.com/zanllp/sd-webui-infinite-image-browsing/wiki/Change-log)
-[Installation / Running](#installation--running)
-
-
-# Stable Diffusion webui Infinite Image Browsing
-
-### Software Support and Development Progress Overview
-| Software | Support | Provided by |
-| ---------------------- | ---------------- | ----------- |
-| Stable Diffusion web UI| Supported | Built-in |
-| Stable Diffusion web UI (Stealth)| Supported ([default: disabled](https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/.env.example#L49)) | Built-in |
-| ComfyUI | Partially supported | Built-in |
-| Fooocus | Supported | Built-in |
-| NovelAI | Supported | Built-in |
-| StableSwarmUI | Supported | Built-in |
-| Invoke.AI | Supported | Built-in |
-| Pixiv | Supported | [pixiv_iib_plugin](https://github.com/zanllp/pixiv_iib_plugin) |
-
-If you would like to support more software, please refer to: [parsers](https://github.com/zanllp/sd-webui-infinite-image-browsing/tree/main/scripts/iib/parsers) or [pixiv_iib_plugin](https://github.com/zanllp/pixiv_iib_plugin)
-
-## Key Features
-
-### 🔥 Excellent Performance
-- Once caching is generated, images can be displayed in just a few milliseconds.
-- Images are displayed with thumbnails by default, with a default size of 512 pixels. You can adjust the thumbnail resolution on the global settings page.
-- You can also control the width of the grid images, allowing them to be displayed in widths ranging from 64px to 1024px.
-- Supports pre-generating thumbnails and video covers to improve performance using `--generate_video_cover` and `--generate_image_cache`.
-- Supports specifying the cache directory through the `IIB_CACHE_DIR` environment variable.
-
-### 🔍 Image Search & Favorite
-- The prompt, model, Lora, and other information will be converted into tags and sorted by frequency of use for precise searching.
-- Supports tag autocomplete, [auto-translation](https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/39), and customization.
-- Image favorite can be achieved by toggling custom tags for images in the right-click menu.
-- Support for advanced search similar to Google
-- Also supports fuzzy search, you can search by a part of the filename or generated information.
-- Support adding custom search paths for easy management of folders created by the user.
-
-### 🖼️ View Images/Videos & `Send To`
-- Supports viewing image generation information. Also supported in full-screen preview mode.
-- Supports sending images to other tabs and third-party extensions such as ControlNet , openOutpaint.
-- Support full-screen preview and enable custom shortcut key operations while in full-screen preview mode.
-- Support navigating to the previous or next image in full-screen preview mode by pressing arrow keys or clicking buttons.
-- Support playing video files from a remote server.
-
-### 💻 Multiple Usage Methods
-- You can install it as an extension on SD-webui.
-- You can run it independently using Python.
-- The desktop app version is also available.
-- Supports multiple popular AI software.
-
-
-### 🚶♀️ Walk Mode
-- Automatically load the next folder `(similar to os.walk)`, allowing you to browse all images without paging.
-- Tested to work properly with over 27,000 files.
-- When there are folders, you can switch to walk mode from other modes by clicking the walk button in the upper right corner. It will flatten all the folders, avoiding the tedious operation of going in and out of folders.
-
-### 🌳 Preview based on File Tree Structure & File operations
-- Supports file tree-based preview.
-- Supports automatic refreshing.
-- Supports basic file operations, such as multiple selection for deleting/moving/copying, and creating new folders.
-- Hold down the Ctrl, Shift, or Cmd key to select multiple items.
- - Supported multi-select operations include: delete, move, copy, pack download, add tags, remove tags, move to another folder, copy to another folder, drag and drop.
- - You can keep the multi-select state by clicking the "Keep Multi-Select" button in the lower right corner, allowing you to perform multiple operations on the selected file collection conveniently.
-
-### 🆚 image comparison (similar to Imgsli)
-- Provides a side-by-side comparison of two images.
-- Provides a comparison of image generation information at the same time.
-
-### 🌐 Multilingual Support
-- Currently supports Simplified Chinese/Traditional Chinese/English/German.
-- If you would like to add a new language, please refer to [i18n.ts](https://github.com/zanllp/sd-webui-infinite-image-browsing/blob/main/vue/src/i18n/zh-hans.ts) and submit the relevant code.
-
-### 🔐 Privacy and Security
-- Supports custom secret key for authentication.
-- Supports configuring access control for the file system, which will be enabled by default when the service allows public access (Only when used as an extension of sd-webui).
-- Supports customizing the allowed paths for access control.
-- Supports controlling access permissions. You can run IIB in read-only mode.
-- [Click here to see details](.env.example)
-
-
-### 📦 Packaging/Batch Download
-- Allows you to download multiple images at once.
-- The data source can be search results, a regular image grid view page, walk mode, etc. Images can be added to the processing list through drag-and-drop or "Send To".
-### ⌨️ Keyboard Shortcuts
-- Allows for deleting and adding/removing tags, with customizable trigger buttons in the global settings page.
-
-
-If you like this project and find it helpful, please consider giving it a ⭐️. This would be very important for me to continue developing and maintaining this project. If you have any suggestions or ideas, please feel free to raise them in the issue section, and I will respond as soon as possible. Thank you again for your support!
-
-
-
-
-## Image Search
-
-During the first use, you need to click and wait for the index generation. For my case with 20,000 images, it took about 45 seconds (with an AMD 5600X CPU and PCIe SSD). For subsequent uses, it will check whether there are changes in the folder, and if so, it needs to regenerate the index. Usually, this process is very fast.
-
-Image search supports translation, see https://github.com/zanllp/sd-webui-infinite-image-browsing/issues/39 for more detail. Feel free to share files for other languages to facilitate everyone's use.
-
-
-## Full Screen Preview (Side-by-Side Layout)
-
-
-## Full Screen Preview
-
-
-
-In full-screen preview mode, you can also view image information and perform operations on the context menu. It supports dragging, resizing and expanding/collapsing .
-
-https://user-images.githubusercontent.com/25872019/235327735-bfb50ea7-7682-4e50-b303-38159456e527.mp4
-
-If you, like me, don't need to view the generation information, you can choose to simply minimize this panel, and all contextual operations will still be available.
-
-
-
-You can also trigger it by hovering your mouse over the icon in the top right corner.
-
-
diff --git a/extensions/sd-webui-infinite-image-browsing/app.py b/extensions/sd-webui-infinite-image-browsing/app.py
deleted file mode 100644
index 8088ceb638fd015bb382fb39635b4a023281be49..0000000000000000000000000000000000000000
--- a/extensions/sd-webui-infinite-image-browsing/app.py
+++ /dev/null
@@ -1,299 +0,0 @@
-import codecs
-from typing import List
-from fastapi import FastAPI, Response
-from fastapi.responses import FileResponse
-import uvicorn
-import os
-from scripts.iib.api import infinite_image_browsing_api, index_html_path, DEFAULT_BASE
-from scripts.iib.tool import (
- get_sd_webui_conf,
- get_valid_img_dirs,
- sd_img_dirs,
- normalize_paths,
-)
-from scripts.iib.db.datamodel import DataBase, Image, ExtraPath
-from scripts.iib.db.update_image_data import update_image_data
-import argparse
-from typing import Optional, Coroutine
-import json
-
-tag = "\033[31m[warn]\033[0m"
-
-default_port = 8000
-default_host = "127.0.0.1"
-
-def get_all_img_dirs(sd_webui_config: str, relative_to_config: bool):
- dirs = get_valid_img_dirs(
- get_sd_webui_conf(
- sd_webui_config=sd_webui_config,
- sd_webui_path_relative_to_config=relative_to_config,
- )
- )
- dirs += list(map(lambda x: x.path, ExtraPath.get_extra_paths(DataBase.get_conn())))
- return dirs
-
-
-def sd_webui_paths_check(sd_webui_config: str, relative_to_config: bool):
- conf = {}
- with codecs.open(sd_webui_config, "r", "utf-8") as f:
- conf = json.loads(f.read())
- if relative_to_config:
- for dir in sd_img_dirs:
- if not os.path.isabs(conf[dir]):
- conf[dir] = os.path.normpath(
- os.path.join(sd_webui_config, "../", conf[dir])
- )
- paths = [conf.get(key) for key in sd_img_dirs]
- paths_check(paths)
-
-
-def paths_check(paths):
- for path in paths:
- if not path or len(path.strip()) == 0:
- continue
- if os.path.isabs(path):
- abs_path = path
- else:
- abs_path = os.path.normpath(os.path.join(os.getcwd(), path))
- if not os.path.exists(abs_path):
- print(f"{tag} The path '{abs_path}' will be ignored (value: {path}).")
-
-
-def do_update_image_index(sd_webui_config: str, relative_to_config=False):
- dirs = get_all_img_dirs(sd_webui_config, relative_to_config)
- if not len(dirs):
- return print(f"{tag} no valid image directories, skipped")
- conn = DataBase.get_conn()
- update_image_data(dirs)
- if Image.count(conn=conn) == 0:
- return print(f"{tag} it appears that there is some issue")
- print("update image index completed. ✨")
-
-
-class AppUtils:
- def __init__(
- self,
- sd_webui_config: Optional[str] = None,
- update_image_index: bool = False,
- extra_paths: List[str] = [],
- sd_webui_path_relative_to_config=False,
- allow_cors=False,
- enable_shutdown=False,
- sd_webui_dir: Optional[str] = None,
- base: Optional[str] = None,
- export_fe_fn=False,
- **args: dict,
- ):
- """
- Parameter definitions can be found by running the `python app.py -h `command or by examining the setup_parser() function.
- """
- self.sd_webui_config = sd_webui_config
- self.update_image_index = update_image_index
- self.extra_paths = extra_paths
- self.sd_webui_path_relative_to_config = sd_webui_path_relative_to_config
- self.allow_cors = allow_cors
- self.enable_shutdown = enable_shutdown
- self.sd_webui_dir = sd_webui_dir
- if base and not base.startswith("/"):
- base = "/" + base
- self.base = base
- self.export_fe_fn = export_fe_fn
- if sd_webui_dir:
- DataBase.path = os.path.join(
- sd_webui_dir, "extensions/sd-webui-infinite-image-browsing/iib.db"
- )
- self.sd_webui_config = os.path.join(sd_webui_dir, "config.json")
- self.sd_webui_path_relative_to_config = True
-
- def set_params(self, *args, **kwargs) -> None:
- """改变参数,与__init__的行为一致"""
- self.__init__(*args, **kwargs)
-
- @staticmethod
- def async_run(
- app: FastAPI, port: int = default_port, host=default_host
- ) -> Coroutine:
- """
- 用于从异步运行的 FastAPI,在 Jupyter Notebook 环境中非常有用
- """
- # 不建议改成 async def,并且用 await 替换 return,
- # 因为这样会失去对 server.serve() 的控制。
- config = uvicorn.Config(app, host=host, port=port)
- server = uvicorn.Server(config)
- return server.serve()
-
- def wrap_app(self, app: FastAPI) -> None:
- """
- 为传递的app挂载上infinite_image_browsing后端
- """
- sd_webui_config = self.sd_webui_config
- update_image_index = self.update_image_index
- extra_paths = self.extra_paths
-
- if sd_webui_config:
- sd_webui_paths_check(sd_webui_config, self.sd_webui_path_relative_to_config)
- if update_image_index:
- do_update_image_index(
- sd_webui_config, self.sd_webui_path_relative_to_config
- )
- paths_check(extra_paths)
-
- infinite_image_browsing_api(
- app,
- sd_webui_config=sd_webui_config,
- extra_paths_cli=normalize_paths(extra_paths, os.getcwd()),
- sd_webui_path_relative_to_config=self.sd_webui_path_relative_to_config,
- allow_cors=self.allow_cors,
- enable_shutdown=self.enable_shutdown,
- launch_mode="server",
- base=self.base,
- export_fe_fn=self.export_fe_fn,
- )
-
- def get_root_browser_app(self) -> FastAPI:
- """
- 获取首页挂载在"/"上的infinite_image_browsing FastAPI实例
- """
- app = FastAPI()
-
- # 用于在首页显示
- @app.get("/")
- def index():
- if isinstance(self.base, str):
- with open(index_html_path, "r", encoding="utf-8") as file:
- content = file.read().replace(DEFAULT_BASE, self.base)
- return Response(content=content, media_type="text/html")
- return FileResponse(index_html_path)
-
- self.wrap_app(app)
- return app
-
-
-def setup_parser() -> argparse.ArgumentParser:
- parser = argparse.ArgumentParser(
- description="A fast and powerful image/video browser with infinite scrolling and advanced search capabilities. It also supports parsing/viewing image information generated by multiple AI software."
- )
- parser.add_argument(
- "--host", type=str, default=default_host, help="The host to use"
- )
- parser.add_argument(
- "--port", type=int, help="The port to use", default=default_port
- )
- parser.add_argument(
- "--sd_webui_config", type=str, default=None, help="The path to the config file"
- )
- parser.add_argument(
- "--update_image_index", action="store_true", help="Update the image index"
- )
- parser.add_argument(
- "--generate_video_cover",
- action="store_true",
- help="Pre-generate video cover images to speed up browsing.",
- )
- parser.add_argument(
- "--generate_image_cache",
- action="store_true",
- help="Pre-generate image cache to speed up browsing. By default, only the extra paths added by the user are processed, not the paths in sd_webui_config. If you need to process paths in sd_webui_config, you must use the --sd_webui_config and --sd_webui_path_relative_to_config parameters.",
- )
- parser.add_argument(
- "--generate_image_cache_size",
- type=str,
- default="512x512",
- help="The size of the image cache to generate. Default is 512x512",
- )
- parser.add_argument(
- "--gen_cache_verbose",
- action="store_true",
- help="Verbose mode for cache generation.",
- )
- parser.add_argument(
- "--extra_paths",
- nargs="+",
- help="Extra paths to use, these paths will be added to the homepage but the images in these paths will not be indexed. They are only used for browsing. If you need to index them, please add them via the '+ Add' button on the homepage.",
- default=[],
- )
- parser.add_argument(
- "--sd_webui_path_relative_to_config",
- action="store_true",
- help="Use the file path of the sd_webui_config file as the base for all relative paths provided within the sd_webui_config file.",
- )
- parser.add_argument(
- "--allow_cors",
- action="store_true",
- help="Allow Cross-Origin Resource Sharing (CORS) for the API.",
- )
- parser.add_argument(
- "--enable_shutdown",
- action="store_true",
- help="Enable the shutdown endpoint.",
- )
- parser.add_argument(
- "--sd_webui_dir",
- type=str,
- default=None,
- help="The path to the sd_webui folder. When specified, the sd_webui's configuration will be used and the extension must be installed within the sd_webui. Data will be shared between the two.",
- )
- parser.add_argument(
- "--export_fe_fn",
- default=True,
- action="store_true",
- help="Export front-end functions to enable external access through iframe.",
- )
- parser.add_argument("--base", type=str, help="The base URL for the IIB Api.")
- return parser
-
-
-def launch_app(
- port: int = default_port, host: str = default_host, *args, **kwargs: dict
-) -> None:
- """
- Launches the application on the specified port.
-
- Args:
- **kwargs (dict): Optional keyword arguments that can be used to configure the application.
- These can be viewed by running 'python app.py -h' or by checking the setup_parser() function.
- """
- app_utils = AppUtils(*args, **kwargs)
- app = app_utils.get_root_browser_app()
- uvicorn.run(app, host=host, port=port)
-
-
-async def async_launch_app(
- port: int = default_port, host: str = default_host, *args, **kwargs: dict
-) -> None:
- """
- Asynchronously launches the application on the specified port.
-
- Args:
- **kwargs (dict): Optional keyword arguments that can be used to configure the application.
- These can be viewed by running 'python app.py -h' or by checking the setup_parser() function.
- """
- app_utils = AppUtils(*args, **kwargs)
- app = app_utils.get_root_browser_app()
- await app_utils.async_run(app, host=host, port=port)
-
-
-if __name__ == "__main__":
- parser = setup_parser()
- args = parser.parse_args()
- args_dict = vars(args)
-
- if args_dict.get("generate_video_cover"):
- from scripts.iib.video_cover_gen import generate_video_covers
-
- conn = DataBase.get_conn()
- generate_video_covers(
- dirs = map(lambda x: x.path, ExtraPath.get_extra_paths(conn)),
- verbose=args.gen_cache_verbose,
- )
- exit(0)
- if args_dict.get("generate_image_cache"):
- from scripts.iib.img_cache_gen import generate_image_cache
- generate_image_cache(
- dirs = get_all_img_dirs(args.sd_webui_config, args.sd_webui_path_relative_to_config),
- size = args.generate_image_cache_size,
- verbose = args.gen_cache_verbose
- )
- exit(0)
-
- launch_app(**vars(args))
\ No newline at end of file
diff --git a/extensions/sd-webui-infinite-image-browsing/install.py b/extensions/sd-webui-infinite-image-browsing/install.py
deleted file mode 100644
index a0acdf9723dfcbdf7a5ad4bf0bc7a39b11a14b4b..0000000000000000000000000000000000000000
--- a/extensions/sd-webui-infinite-image-browsing/install.py
+++ /dev/null
@@ -1,28 +0,0 @@
-import launch
-import os
-import pkg_resources
-
-req_file = os.path.join(os.path.dirname(os.path.realpath(__file__)), "requirements.txt")
-
-def dist2package(dist: str):
- return ({
- "python-dotenv": "dotenv",
- "Pillow": "PIL",
- "pillow-avif-plugin": "pillow_avif"
- }).get(dist, dist)
-
-# copy from controlnet, thanks
-with open(req_file) as file:
- for package in file:
- try:
- package = package.strip()
- if '==' in package:
- package_name, package_version = package.split('==')
- installed_version = pkg_resources.get_distribution(package_name).version
- if installed_version != package_version:
- launch.run_pip(f"install {package}", f"sd-webui-infinite-image-browsing requirement: changing {package_name} version from {installed_version} to {package_version}")
- elif not launch.is_installed(dist2package(package)):
- launch.run_pip(f"install {package}", f"sd-webui-infinite-image-browsing requirement: {package}")
- except Exception as e:
- print(e)
- print(f'Warning: Failed to install {package}, something may not work.')
diff --git a/extensions/sd-webui-infinite-image-browsing/javascript/index.js b/extensions/sd-webui-infinite-image-browsing/javascript/index.js
deleted file mode 100644
index 0b5f8b6fa19145ac99de506aaa460ecbe6d4e67a..0000000000000000000000000000000000000000
--- a/extensions/sd-webui-infinite-image-browsing/javascript/index.js
+++ /dev/null
@@ -1,186 +0,0 @@
-/* eslint-disable no-undef */
-Promise.resolve().then(async () => {
- /**
- * This is a file generated using `yarn build`.
- * If you want to make changes, please modify `index.tpl.js` and run the command to generate it again.
- */
- const html = `
-
-
-
-
-
-
-
- MFrGXJqNrOUPCPqPrQ|]@`+`2h1lBlZnXp*r;rWrkz9{4{B}x-#c-#y-$;-$l-$y-%Q-%n-(i-(x-)i-/!-3*-5B-9V",wan:"#=$0&o.]0F4@5X5b6*628u9p -+b-+(-(_-(.-&h-#%{@wGuWs}s|rJrDlaWTV}V+NAMvKfIgGKFX9a7c,7&]&+%~",bie:"-/A-/;fGe2`#M'M!$!#I",pao:"-/>-+i-'^~o|2w=hA]$[P?.4J4H3d06.M'^%A!S",geng:"-/7-&A{TzHlrh=ZIOlK4IX=X2p&M",shua:"-//-%j",cuo:"-.y-.p-*5wukWkSh!ZKY&WuV4(o$j$'",kei:"-.woU",la:"-.v-%3-$n~L|8[RXFXEWnUEU2R`MOI6DT:T0['o$A",pou:"-.l-'_-&[{]twtO]+]&Z+YGJS/<",tuan:"-.I~!}~}K}HyPy&f7`>[}XIVmGLE;;.:m8t2[,F%v%p",zuan:"-.)XOTt",keng:"-,x-([|t|kvIZCXlVgBF/C",gao:"-,Z-(I-(>wRlpWjNHGxGwGdG>E~E3Dm,)!y!t",lang:"-,V-&J-$~{Jy[r{llgiSeOIOHO;KRHHG4Cp=[3Y,z*%(s",weng:"-,@-#oyxv{kfU!Pd9o'N'&",tao:"-+m-)E-'+-%DwPwMw*r}i/fl`j[oYBWXL,JkGtE?><=)ZYZZ]U_6_9d9fYj6j~lWm)mep)rQrbrctvwkxc{y|U}6~?~C~`~m-!Z-*'-+R-/j-0j-3i-4/-4@-5,-5f-6j-6s-7)-9G-9W-9X",tuo:"%U%V&z0L2J4v?{@$F_H6MUTbT~Y'Yc^QdHdQnVq+r`x1{{|;|<-&d-(.-(z-({-)1-)J-)K-*:-*e-*p-+$-+3-.b-/%-/[-0b-3O-4,-6_-8}-9$-9?",zhe:"#'%+%E'P2f2|
}I-*S-+S-0~-2b-5X-8{",cou:"@ThJiK",chuang:"'_,H,L,q{+{E",piao:"$+).1D7a:;
lMi@i$fDf@b1`Y_4XyW6TMMzJ$I:GOD{=#
{let t=0,n=1;for(let a=e.length;a--;)t+=n*oa.indexOf(e.charAt(a)),n*=91;return t},St=(e,t)=>{let n,a,i,u,b;for(n in e)if(e.hasOwnProperty(n))for(a=e[n].match(ia),i=0;i
');continue}const Z=N[D];z||(z=Z.includes("("));const ue=["tag"];z&&ue.push("has-parentheses"),Z.length<32&&ue.push("short-tag"),c.push(`${Z}`),z&&(z=!Z.includes(")"))}return c.join(a.showCommaInInfoPanel?",":" ")}ve("load",o=>{const c=o.target;c.className==="ant-image-preview-img"&&(O.value=`${c.naturalWidth} x ${c.naturalHeight}`)},{capture:!0});const G=Q(()=>{const o=[{name:P("fileSize"),val:n.file.size}];return O.value&&o.push({name:P("resolution"),val:O.value}),o}),se=()=>{const o="Negative prompt:",c=T.value.includes(o)?T.value.split(o)[0]:W.value[0]??"";de(Fe(c.trim()))},R=()=>document.body.requestFullscreen(),$e=o=>{de(typeof o=="object"?JSON.stringify(o,null,4):o)},d=o=>{o.key.startsWith("Arrow")?(o.stopPropagation(),o.preventDefault(),document.dispatchEvent(new KeyboardEvent("keydown",o))):o.key==="Escape"&&document.fullscreenElement&&document.exitFullscreen()};ve("dblclick",o=>{var c;((c=o.target)==null?void 0:c.className)==="ant-image-preview-img"&&ze()});const v=Q(()=>p.value||A.value.expanded),q=be(qe+"contextShowFullPath",!1),F=Q(()=>q.value?n.file.fullpath:n.file.name),ge=be(qe+"tagA2ZClassify",!1),Me=Q(()=>{var ne;const o=(ne=a.conf)==null?void 0:ne.all_custom_tags.map(N=>{var D,Z;return{char:((D=N.display_name)==null?void 0:D[0])||((Z=N.name)==null?void 0:Z[0]),...N}}).reduce((N,z)=>{var Z;let D="#";if(/[a-z]/i.test(z.char))D=z.char.toUpperCase();else if(/[\u4e00-\u9fa5]/.test(z.char))try{D=((Z=/^\[?(\w)/.exec(da(z.char)+""))==null?void 0:Z[1])??"#"}catch(ue){console.log("err",ue)}return D=D.toUpperCase(),N[D]||(N[D]=[]),N[D].push(z),N},{});return Object.entries(o??{}).sort((N,z)=>N[0].charCodeAt(0)-z[0].charCodeAt(0))});return(o,c)=>{var lt;const ne=wn,N=he,z=tn,D=nn,Z=an,ue=ln,Ft=he,nt=bn,Pt=vn,Tt=on,at=sn,It=un;return $(),_("div",{ref_key:"el",ref:u,class:Se(["full-screen-menu",{"unset-size":!r(A).expanded,lr:r(p),"always-on":r(m),"mouse-in":B.value}]),onWheelCapture:c[13]||(c[13]=en(()=>{},["stop"])),onKeydownCapture:d},[r(p)?($(),_("div",ga)):H("",!0),k("div",pa,[k("div",ha,[r(p)?H("",!0):($(),_("div",{key:0,ref_key:"dragHandle",ref:h,class:"icon",style:{cursor:"grab"},title:r(P)("dragToMovePanel")},[s(r(Pn))],8,fa)),r(p)?H("",!0):($(),_("div",{key:1,class:"icon",style:{cursor:"pointer"},onClick:c[0]||(c[0]=f=>r(A).expanded=!r(A).expanded),title:r(P)("clickToToggleMaximizeMinimize")},[v.value?($(),ae(r(Dn),{key:0})):($(),ae(r(Un),{key:1}))],8,va)),k("div",{style:{display:"flex","flex-direction":"column","align-items":"center",cursor:"grab"},class:"icon",title:r(P)("fullscreenview"),onClick:R},[k("img",{src:r(Qn),style:{width:"21px",height:"21px","padding-bottom":"2px"},alt:""},null,8,$a)],8,ma),s(ne,{"get-popup-container":j},{overlay:w(()=>[s(pn,{file:o.file,idx:o.idx,"selected-tag":b.value,onContextMenuClick:c[1]||(c[1]=(f,J,te)=>t("contextMenuClick",f,J,te))},null,8,["file","idx","selected-tag"])]),default:w(()=>[r(A).expanded?H("",!0):($(),_("div",ya,[s(r(ct))]))]),_:1}),v.value?($(),_("div",ba)):H("",!0),v.value?($(),_("div",wa,[s(ne,{trigger:["hover"],"get-popup-container":j},{overlay:w(()=>[s(ue,{onClick:c[2]||(c[2]=f=>t("contextMenuClick",f,o.file,o.idx))},{default:w(()=>{var f;return[((f=r(a).conf)==null?void 0:f.launch_mode)!=="server"?($(),_(K,{key:0},[s(z,{key:"send2txt2img"},{default:w(()=>[C(y(o.$t("sendToTxt2img")),1)]),_:1}),s(z,{key:"send2img2img"},{default:w(()=>[C(y(o.$t("sendToImg2img")),1)]),_:1}),s(z,{key:"send2inpaint"},{default:w(()=>[C(y(o.$t("sendToInpaint")),1)]),_:1}),s(z,{key:"send2extras"},{default:w(()=>[C(y(o.$t("sendToExtraFeatures")),1)]),_:1}),s(D,{key:"sendToThirdPartyExtension",title:o.$t("sendToThirdPartyExtension")},{default:w(()=>[s(z,{key:"send2controlnet-txt2img"},{default:w(()=>[C("ControlNet - "+y(o.$t("t2i")),1)]),_:1}),s(z,{key:"send2controlnet-img2img"},{default:w(()=>[C("ControlNet - "+y(o.$t("i2i")),1)]),_:1}),s(z,{key:"send2outpaint"},{default:w(()=>[C("openOutpaint")]),_:1})]),_:1},8,["title"])],64)):H("",!0),s(z,{key:"send2BatchDownload"},{default:w(()=>[C(y(o.$t("sendToBatchDownload")),1)]),_:1}),s(D,{key:"copy2target",title:o.$t("copyTo")},{default:w(()=>[($(!0),_(K,null,re(r(a).quickMovePaths,J=>($(),ae(z,{key:`copy-to-${J.dir}`},{default:w(()=>[C(y(J.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),s(D,{key:"move2target",title:o.$t("moveTo")},{default:w(()=>[($(!0),_(K,null,re(r(a).quickMovePaths,J=>($(),ae(z,{key:`move-to-${J.dir}`},{default:w(()=>[C(y(J.zh),1)]),_:2},1024))),128))]),_:1},8,["title"]),s(Z),s(z,{key:"deleteFiles"},{default:w(()=>[C(y(o.$t("deleteSelected")),1)]),_:1}),s(z,{key:"previewInNewWindow"},{default:w(()=>[C(y(o.$t("previewInNewWindow")),1)]),_:1}),s(z,{key:"copyPreviewUrl"},{default:w(()=>[C(y(o.$t("copySourceFilePreviewLink")),1)]),_:1}),s(z,{key:"copyFilePath"},{default:w(()=>[C(y(o.$t("copyFilePath")),1)]),_:1})]}),_:1})]),default:w(()=>[s(N,null,{default:w(()=>[C(y(r(P)("openContextMenu")),1)]),_:1})]),_:1}),s(Ft,{onClick:c[3]||(c[3]=f=>t("contextMenuClick",{key:"download"},n.file,n.idx))},{default:w(()=>[C(y(o.$t("download")),1)]),_:1}),T.value?($(),ae(N,{key:0,onClick:c[4]||(c[4]=f=>r(de)(T.value))},{default:w(()=>[C(y(o.$t("copyPrompt")),1)]),_:1})):H("",!0),T.value?($(),ae(N,{key:1,onClick:se},{default:w(()=>[C(y(o.$t("copyPositivePrompt")),1)]),_:1})):H("",!0)])):H("",!0)]),v.value?($(),_("div",_a,[k("div",ka,[k("span",Oa,[k("span",La,y(o.$t("fileName")),1),k("span",{class:"value",title:F.value,onDblclick:c[5]||(c[5]=f=>r(de)(F.value))},y(F.value),41,xa),k("span",{style:{margin:"0 8px",cursor:"pointer"},title:"Click to expand full path",onClick:c[6]||(c[6]=f=>q.value=!r(q))},[s(r(ct))])]),($(!0),_(K,null,re(G.value,f=>($(),_("span",{class:"info-tag",key:f.name},[k("span",za,y(f.name),1),k("span",{class:"value",title:f.val,onDblclick:J=>r(de)(f.val)},y(f.val),41,Ea)]))),128))]),(lt=r(a).conf)!=null&<.all_custom_tags?($(),_("div",Ma,[k("div",{class:"sort-tag-switch",onClick:c[7]||(c[7]=f=>ge.value=!r(ge))},[r(ge)?($(),ae(r(Ln),{key:1})):($(),ae(r(Kn),{key:0}))]),k("div",{class:"tag",onClick:c[8]||(c[8]=(...f)=>r(Be)&&r(Be)(...f)),style:Ce({"--tag-color":"var(--zp-luminous)"})},"+ "+y(o.$t("add")),5),r(ge)?($(!0),_(K,{key:0},re(Me.value,([f,J])=>($(),_("div",{key:f,class:"tag-alpha-item"},[k("h4",Ca,y(f)+" : ",1),k("div",null,[($(!0),_(K,null,re(J,te=>($(),_("div",{class:Se(["tag",{selected:b.value.some(ot=>ot.id===te.id)}]),onClick:ot=>t("contextMenuClick",{key:`toggle-tag-${te.id}`},o.file,o.idx),key:te.id,style:Ce({"--tag-color":r(i).getColor(te)})},y(te.name),15,Sa))),128))])]))),128)):($(!0),_(K,{key:1},re(r(a).conf.all_custom_tags,f=>($(),_("div",{class:Se(["tag",{selected:b.value.some(J=>J.id===f.id)}]),onClick:J=>t("contextMenuClick",{key:`toggle-tag-${f.id}`},o.file,o.idx),key:f.id,style:Ce({"--tag-color":r(i).getColor(f)})},y(f.name),15,Fa))),128))])):H("",!0),k("div",Pa,[k("div",Ta,[C(y(o.$t("experimentalLRLayout"))+": ",1),s(nt,{checked:r(p),"onUpdate:checked":c[9]||(c[9]=f=>_e(p)?p.value=f:null),size:"small"},null,8,["checked"])]),r(p)?($(),_(K,{key:0},[k("div",Ia,[C(y(o.$t("width"))+": ",1),s(Pt,{value:r(l),"onUpdate:value":c[10]||(c[10]=f=>_e(l)?l.value=f:null),style:{width:"64px"},step:16,min:128,max:1024},null,8,["value"])]),s(Tt,{title:o.$t("alwaysOnTooltipInfo")},{default:w(()=>[k("div",Aa,[C(y(o.$t("alwaysOn"))+": ",1),s(nt,{checked:r(m),"onUpdate:checked":c[11]||(c[11]=f=>_e(m)?m.value=f:null),size:"small"},null,8,["checked"])])]),_:1},8,["title"])],64)):H("",!0)]),s(It,{activeKey:r(L),"onUpdate:activeKey":c[12]||(c[12]=f=>_e(L)?L.value=f:null)},{default:w(()=>[s(at,{key:"structedData",tab:o.$t("structuredData")},{default:w(()=>[k("div",null,[S.value.prompt?($(),_(K,{key:0},[Da,ja,k("code",{innerHTML:Y(S.value.prompt??"")},null,8,Wa)],64)):H("",!0),S.value.negativePrompt?($(),_(K,{key:1},[qa,Ua,k("code",{innerHTML:Y(S.value.negativePrompt??"")},null,8,Na)],64)):H("",!0)]),Object.keys(I.value).length?($(),_(K,{key:0},[Ba,Ha,k("table",null,[($(!0),_(K,null,re(I.value,(f,J)=>($(),_("tr",{key:J,class:"gen-info-frag"},[k("td",Xa,y(J),1),typeof f=="object"?($(),_("td",{key:0,style:{cursor:"pointer"},onDblclick:te=>$e(f)},[k("code",null,y(f),1)],40,Ja)):($(),_("td",{key:1,style:{cursor:"pointer"},onDblclick:te=>$e(r(Fe)(f))},y(r(Fe)(f)),41,Va))]))),128))])],64)):H("",!0)]),_:1},8,["tab"]),s(at,{key:"sourceText",tab:o.$t("sourceText")},{default:w(()=>[k("code",null,y(T.value),1)]),_:1},8,["tab"])]),_:1},8,["activeKey"])])):H("",!0)]),r(A).expanded&&!r(p)?($(),_("div",{key:1,class:"mouse-sensor",ref_key:"resizeHandle",ref:g,title:r(P)("dragToResizePanel")},[s(r(Mn))],8,Ya)):H("",!0)],34)}}});const gl=zt(Ga,[["__scopeId","data-v-9ad72ee9"]]),Za={key:0,class:"float-panel"},Ka={key:0,class:"select-actions"},Qa={key:1},Ra=xt({__name:"MultiSelectKeep",props:{show:{type:Boolean}},emits:["selectAll","reverseSelect","clearAllSelected"],setup(e,{emit:t}){const n=Je(),a=()=>{t("clearAllSelected"),n.keepMultiSelect=!1},i=()=>{n.keepMultiSelect=!0};return(u,b)=>{const O=he;return u.show?($(),_("div",Za,[r(n).keepMultiSelect?($(),_("div",Ka,[s(O,{size:"small",onClick:b[0]||(b[0]=E=>t("selectAll"))},{default:w(()=>[C(y(u.$t("select-all")),1)]),_:1}),s(O,{size:"small",onClick:b[1]||(b[1]=E=>t("reverseSelect"))},{default:w(()=>[C(y(u.$t("rerverse-select")),1)]),_:1}),s(O,{size:"small",onClick:b[2]||(b[2]=E=>t("clearAllSelected"))},{default:w(()=>[C(y(u.$t("clear-all-selected")),1)]),_:1}),s(O,{size:"small",onClick:a},{default:w(()=>[C(y(u.$t("exit")),1)]),_:1})])):($(),_("div",Qa,[s(O,{size:"small",type:"primary",onClick:i},{default:w(()=>[C(y(u.$t("keep-multi-selected")),1)]),_:1})]))])):H("",!0)}}});const pl=zt(Ra,[["__scopeId","data-v-b04c3508"]]);export{sl as L,ul as R,pl as _,cl as a,dl as b,rl as c,gl as f,ve as u};
diff --git a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/SubstrSearch-60fc08a8.js b/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/SubstrSearch-60fc08a8.js
deleted file mode 100644
index be5bd5e0e0f382452dd1a52f24eb2bfeb25c2661..0000000000000000000000000000000000000000
--- a/extensions/sd-webui-infinite-image-browsing/vue/dist/assets/SubstrSearch-60fc08a8.js
+++ /dev/null
@@ -1 +0,0 @@
-import{c as s,A as ze,d as Me,r as k,o as De,c7 as X,m as Fe,B as Ve,ax as Be,y as Ue,z as Ee,C as Y,c8 as He,$ as Pe,S as g,T as A,a1 as t,a2 as e,U as u,V as i,W as o,a0 as b,Y as h,a3 as V,cj as Te,ae as R,a4 as Z,J as Ge,ad as Ne,X as je,R as ee,ah as Je,ai as te,cc as Ke,ag as Le,aN as qe,aO as We,ck as Qe,ce as Xe,Z as Ye}from"./index-5b5fdd56.js";import{S as Ze}from"./index-b9a282d1.js";/* empty css */import"./index-2869601c.js";import{c as et,d as tt,F as st}from"./FileItem-b2542180.js";import{_ as at,L as lt,R as nt,f as ot}from"./MultiSelectKeep-72e9597f.js";import{c as it,u as rt}from"./hook-ba2adfba.js";import{f as O,H as se,_ as dt,a as ut}from"./searchHistory-6e606991.js";import"./functionalCallableComp-51195a3e.js";/* empty css */import"./_isIterateeCall-c830f443.js";import"./index-b6f2a43c.js";import"./shortcut-bdce38ed.js";import"./Checkbox-5fa7cbf6.js";import"./index-a0e30b33.js";import"./useGenInfoDiff-3e61c6d2.js";var ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"}},{tag:"path",attrs:{d:"M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"}}]},name:"aim",theme:"outlined"};const pt=ct;function ae(c){for(var p=1;p
If that doesn't work, click on FAQ for help