From f3509a2bbf16531e09adc94a1d7769e8016749e3 Mon Sep 17 00:00:00 2001 From: FengWen <109639975+ccssu@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:33:50 +0800 Subject: [PATCH 1/6] Fix flux pixelwave lora (#254) --- src/bizyair/configs/models.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bizyair/configs/models.yaml b/src/bizyair/configs/models.yaml index 0305a1fc..a665046b 100644 --- a/src/bizyair/configs/models.yaml +++ b/src/bizyair/configs/models.yaml @@ -45,7 +45,7 @@ model_rules: - ^flux/ae.sft$ - mode_type: unet - base_model: FLUX + base_model: FLUX_PIXELWAVE describe: PixelWave Flux.1-dev 03 fine tuned! score: 3 route: /supernode/bizyair-flux1-dev-fp8-pixelwave From 5e99a0ad74c63be4f8e510740853ae7326476c2c Mon Sep 17 00:00:00 2001 From: Wanghanying <50873968+Wanghanying@users.noreply.github.com> Date: Tue, 3 Dec 2024 19:04:09 +0800 Subject: [PATCH 2/6] modify bizyair-flux1-tools-redux.json (#255) --- examples/bizyair-flux1-tools-redux.json | 307 ++++++++++++------------ 1 file changed, 156 insertions(+), 151 deletions(-) diff --git a/examples/bizyair-flux1-tools-redux.json b/examples/bizyair-flux1-tools-redux.json index bd1d231e..673afd1e 100644 --- a/examples/bizyair-flux1-tools-redux.json +++ b/examples/bizyair-flux1-tools-redux.json @@ -1,6 +1,6 @@ { - "last_node_id": 51, - "last_link_id": 50, + "last_node_id": 54, + "last_link_id": 59, "nodes": [ { "id": 10, @@ -120,8 +120,8 @@ "name": "BIZYAIR_STYLE_MODEL", "type": "BIZYAIR_STYLE_MODEL", "links": [ - 42, - 45 + 52, + 57 ] } ], @@ -225,7 +225,7 @@ "name": "BIZYAIR_CONDITIONING", "type": "BIZYAIR_CONDITIONING", "links": [ - 41 + 56 ] } ], @@ -277,98 +277,6 @@ 1280 ] }, - { - "id": 41, - "type": "BizyAir_StyleModelApply", - "pos": [ - 1148.638427734375, - 441.4420166015625 - ], - "size": [ - 493.8000183105469, - 66 - ], - "flags": {}, - "order": 17, - "mode": 0, - "inputs": [ - { - "name": "conditioning", - "type": "BIZYAIR_CONDITIONING", - "link": 41 - }, - { - "name": "style_model", - "type": "BIZYAIR_STYLE_MODEL", - "link": 42 - }, - { - "name": "clip_vision_output", - "type": "CLIP_VISION_OUTPUT", - "link": 43 - } - ], - "outputs": [ - { - "name": "BIZYAIR_CONDITIONING", - "type": "BIZYAIR_CONDITIONING", - "links": [ - 44 - ] - } - ], - "title": "☁️BizyAir StyleModelApply", - "properties": { - "Node name for S&R": "BizyAir_StyleModelApply" - }, - "widgets_values": [] - }, - { - "id": 44, - "type": "BizyAir_StyleModelApply", - "pos": [ - 1148.638427734375, - 579.442138671875 - ], - "size": [ - 493.8000183105469, - 66 - ], - "flags": {}, - "order": 18, - "mode": 0, - "inputs": [ - { - "name": "conditioning", - "type": "BIZYAIR_CONDITIONING", - "link": 44 - }, - { - "name": "style_model", - "type": "BIZYAIR_STYLE_MODEL", - "link": 45 - }, - { - "name": "clip_vision_output", - "type": "CLIP_VISION_OUTPUT", - "link": 46 - } - ], - "outputs": [ - { - "name": "BIZYAIR_CONDITIONING", - "type": "BIZYAIR_CONDITIONING", - "links": [ - 36 - ] - } - ], - "title": "☁️BizyAir StyleModelApply", - "properties": { - "Node name for S&R": "BizyAir_StyleModelApply" - }, - "widgets_values": [] - }, { "id": 50, "type": "BizyAir_LoadImageURL", @@ -431,7 +339,8 @@ "outputs": [], "properties": { "Node name for S&R": "PreviewImage" - } + }, + "widgets_values": [] }, { "id": 46, @@ -442,7 +351,7 @@ ], "size": [ 210, - 285.3046569824219 + 314 ], "flags": {}, "order": 7, @@ -501,7 +410,7 @@ "name": "CLIP_VISION_OUTPUT", "type": "CLIP_VISION_OUTPUT", "links": [ - 43 + 58 ] } ], @@ -542,7 +451,7 @@ "name": "CLIP_VISION_OUTPUT", "type": "CLIP_VISION_OUTPUT", "links": [ - 46 + 53 ] } ], @@ -613,7 +522,7 @@ { "name": "conditioning", "type": "BIZYAIR_CONDITIONING", - "link": 36 + "link": 54 } ], "outputs": [ @@ -859,6 +768,102 @@ 0, "fixed" ] + }, + { + "id": 54, + "type": "BizyAir_StyleModelApplySimple", + "pos": [ + 1134, + 421 + ], + "size": [ + 493.8000183105469, + 98 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [ + { + "name": "conditioning", + "type": "BIZYAIR_CONDITIONING", + "link": 56 + }, + { + "name": "style_model", + "type": "BIZYAIR_STYLE_MODEL", + "link": 57 + }, + { + "name": "clip_vision_output", + "type": "CLIP_VISION_OUTPUT", + "link": 58 + } + ], + "outputs": [ + { + "name": "BIZYAIR_CONDITIONING", + "type": "BIZYAIR_CONDITIONING", + "links": [ + 59 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "BizyAir_StyleModelApplySimple" + }, + "widgets_values": [ + "medium" + ] + }, + { + "id": 53, + "type": "BizyAir_StyleModelApplySimple", + "pos": [ + 1133, + 573 + ], + "size": [ + 493.8000183105469, + 98 + ], + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [ + { + "name": "conditioning", + "type": "BIZYAIR_CONDITIONING", + "link": 59 + }, + { + "name": "style_model", + "type": "BIZYAIR_STYLE_MODEL", + "link": 52 + }, + { + "name": "clip_vision_output", + "type": "CLIP_VISION_OUTPUT", + "link": 53 + } + ], + "outputs": [ + { + "name": "BIZYAIR_CONDITIONING", + "type": "BIZYAIR_CONDITIONING", + "links": [ + 54 + ], + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "BizyAir_StyleModelApplySimple" + }, + "widgets_values": [ + "medium" + ] } ], "links": [ @@ -950,14 +955,6 @@ 0, "BIZYAIR_MODEL" ], - [ - 36, - 44, - 0, - 22, - 1, - "BIZYAIR_CONDITIONING" - ], [ 37, 6, @@ -983,84 +980,92 @@ "CLIP_VISION" ], [ - 41, - 26, + 47, + 38, 0, - 41, + 45, 0, - "BIZYAIR_CONDITIONING" + "CLIP_VISION" ], [ - 42, - 42, + 48, + 46, 0, - 41, + 45, 1, - "BIZYAIR_STYLE_MODEL" + "IMAGE" ], [ - 43, - 39, + 49, + 50, 0, - 41, - 2, - "CLIP_VISION_OUTPUT" + 39, + 1, + "IMAGE" ], [ - 44, - 41, + 50, + 50, 0, - 44, + 51, 0, - "BIZYAIR_CONDITIONING" + "IMAGE" ], [ - 45, + 52, 42, 0, - 44, + 53, 1, "BIZYAIR_STYLE_MODEL" ], [ - 46, + 53, 45, 0, - 44, + 53, 2, "CLIP_VISION_OUTPUT" ], [ - 47, - 38, + 54, + 53, 0, - 45, + 22, + 1, + "BIZYAIR_CONDITIONING" + ], + [ + 56, + 26, 0, - "CLIP_VISION" + 54, + 0, + "BIZYAIR_CONDITIONING" ], [ - 48, - 46, + 57, + 42, 0, - 45, + 54, 1, - "IMAGE" + "BIZYAIR_STYLE_MODEL" ], [ - 49, - 50, - 0, + 58, 39, - 1, - "IMAGE" + 0, + 54, + 2, + "CLIP_VISION_OUTPUT" ], [ - 50, - 50, + 59, + 54, 0, - 51, + 53, 0, - "IMAGE" + "BIZYAIR_CONDITIONING" ] ], "groups": [ @@ -1133,10 +1138,10 @@ "config": {}, "extra": { "ds": { - "scale": 0.5644739300537778, + "scale": 0.5131581182307067, "offset": [ - 287.7704848918723, - 137.45132902052023 + -380.3470417116786, + -204.10702694005843 ] } }, From 464077414c69a8d77b8c0acf125b86a7c921f62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=B3=BB=E6=98=8E?= Date: Thu, 5 Dec 2024 16:56:40 +0800 Subject: [PATCH 3/6] add model community (#230) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [feat]optimize tailwind config * [feat]init shadcn vue * fix * query sort * fix * [feat]add model select component * fix * types * types * [feat]add model select dialog * [feat]show model select * [feat]add test * fix * fix * fix * [feat]fetch data with api * [feat]add parameter to model select component * fix * fix * [feat] optimize my code * like * base model types * [feat]add vditor editor * download * download * workflow * fix * [feat]custom full screen * [feat]custom vditor full screen * fix * disable vditor cache * [feat] fix single page used bugs * [feat]fix * fix * [feat]fix vditor can't fullscreen * fix * [feat]optimize model select component & +remove model & optimize filter * fix * fix * [feat]optimize alert dialog used * [feat]+ apply node model widge * [feat]optimize * [feat]add model detail * fix * [feat]optimize class * [feat]add debounce for node widget dbclick * [feat]optimize model detail * fix * lijing test * [feat]optimize node apply * reformat * [feat] fix editor preview image z-index * [feat]optimize * fix * fix * fix * [feat]optimize scrollbar style & detail apply modelversion & remove model * [feat] new version * fix * interrupt * fix * [feat]optimize * [feat] add edit * interrupt * [feat]optimize expandedModels & model select scrollbar * [feat]optimize filter * fix * [feat]update toast for big brother * [feat]add easy-markdown * interrupt * fix * [feat]add mini markdown editor * [feat]remove unused test code * fix * [feat]optimize scroll model version * fix * [feat]add scroll area for model detail * fix * [feat]codereview for myself * [feat]remove debug console.log * fix * status * fix * [fix]filter class & model detail scrollbar * fix * hash * [feat]optimize style * [feat]optimize tab * hash * [feat]fix filterbar bugs * [feat]replace frontend modelTypes Array * fix * [feat]delete unuse files * [feat]optimize preview md * [feat]release * [feat]optimize scroll * [feat]optimize model detail * fix * fix * [feat]code review * [feat]optimize APIClient requests to aiohttp * [feat]fix cancel update version fetch model list data error * [feat]optimize scroll style & add sekleton for table model * [feat]optimize model version scroll * [feat]remove unused code * fix * [fix]auto merge * [fix]code review * fix * fix * fix * remove useless code * [feat]optimize model list fetch nodata * Dev bbs patch 2 (#229) * Refine cn lora loader node * refine * add exec_info --------- Co-authored-by: Yao Chi * [feat]fix seach keywords no data bug * fix * add upload_id when upload error * fix * [feat]fix model list bug for page * [feat]release core js * fix * fix do_get * [feat] add loadding for model list * [feat]update core js * [feat]remove unused code * remove wrong env var * fix * [fix]tab style * [fix]resolve default css * [feat]relase new core js * [feat]relase * [feat]remove unusedcode * [feat]relase * fix * fix * Add biz_lib_frontend as a submodule(bizyair_frontend repo) (#237) * Add biz_lib_frontend as a submodule(bizyair_frontend repo) * checkou to dev_bbs branch * Dev bbs rename submodule (#238) * rename submoudle to bizyair_frontend * update gitmodules * reformat * add frontend submodule (#239) * use https url * [feat]fix filter bug * fix threading and session problems (#240) * fix * fix model_version_id_missing (#242) * refine * refine * update tow api in upload progress * add poc of js hash calculation * Update prompt_processor.py model_version_ids 修改为int数组 * fix * m1 * m1 * m1 * m1 * remove useless codes * timeout time to 2 seconds * reformat * [feat]optimize * Remove package.json and package-lock.json files as part of project cleanup * Remove unused biz_lib_frontend.js file and refactor bizyair_frontend.js for improved code organization and readability. * fix * fix * Update subproject reference and refactor bizyair_frontend.js to improve code structure and reduce size. * [feat]relase * Fix tags are selected by default (#256) Co-authored-by: Yao Chi * Refactor LoRA and ControlNet widget callbacks for improved error handling and functionality - Introduced a new `createSetWidgetCallback` function to streamline widget event handling for LoRA and ControlNet loaders. - Enhanced error handling during node creation and mouse event processing. - Removed redundant code related to mouse event handling, improving readability and maintainability. - Updated widget properties to ensure proper interaction and prevent default behaviors. This refactor aims to enhance the user experience by ensuring that model selection is more robust and error-free. * fix * fix * [feat]修复低版本无法弹出 * [feat]relase frontend * [feat]release opt z-index * fix * [feat]fix bug & relase frontend * [feat]fix bug & release frontend * fix * fix * add news * “fix” * fix * reformat --------- Co-authored-by: of-HaiQin <5372604@qq.com> Co-authored-by: dantegarden <761043617@qq.com> Co-authored-by: Your Name Co-authored-by: YaoChi Co-authored-by: FengWen Co-authored-by: FengWen <109639975+ccssu@users.noreply.github.com> --- .gitmodules | 3 + bizyair_frontend | 1 + docs/docs/bznews.json | 1 + js/apis.js | 26 +- js/bizyair_frontend.js | 653 ++++++++++++++++++ js/dialog/apiKey.js | 102 --- js/dialog/modelList.js | 281 -------- js/dialog/oauth.js | 13 - js/dialog/profilePage.js | 186 ----- js/dialog/uploadWithInputPage.js | 256 ------- js/itemButton/btnApiKey.js | 9 - js/itemButton/btnExample.js | 13 - js/itemButton/btnModel.js | 13 - js/itemButton/btnNews.js | 12 - js/itemButton/profile.js | 9 - js/menus.js | 72 +- js/model_apply.js | 134 ++++ js/subassembly/btnMenuFn.js | 79 --- js/subassembly/confirm.js | 71 -- js/subassembly/dialog.js | 18 +- js/subassembly/drawer.js | 84 --- js/subassembly/socket.js | 107 --- js/subassembly/styleDialog.js | 131 +--- js/subassembly/styleExample.js | 34 - js/subassembly/styleMenus.js | 26 - js/subassembly/styleProfile.js | 18 - js/subassembly/styleUploadFile.js | 442 ------------ js/subassembly/subscribers.js | 25 - js/subassembly/toast.js | 74 -- js/subassembly/tools.js | 18 + js/subassembly/tooltip.js | 63 -- js/vite.svg | 1 + nodes.py | 130 +++- showcase.py | 2 +- src/bizy_server/__init__.py | 8 +- src/bizy_server/api_client.py | 485 ++++++------- src/bizy_server/errno.py | 111 +-- src/bizy_server/execution.py | 15 +- src/bizy_server/oss.py | 78 ++- src/bizy_server/resp.py | 6 +- src/bizy_server/server.py | 632 ++++++++++------- src/bizy_server/templates/list_model.html | 97 --- src/bizy_server/templates/upload_model.html | 97 --- src/bizy_server/upload_manager.py | 201 ------ src/bizy_server/utils.py | 55 +- .../commands/processors/prompt_processor.py | 21 +- src/bizyair/commands/servers/prompt_server.py | 1 + src/bizyair/configs/conf.py | 6 +- src/bizyair/configs/models.yaml | 4 + src/bizyair/path_utils/path_manager.py | 31 +- 50 files changed, 1883 insertions(+), 3072 deletions(-) create mode 100644 .gitmodules create mode 160000 bizyair_frontend create mode 100644 js/bizyair_frontend.js delete mode 100644 js/dialog/apiKey.js delete mode 100644 js/dialog/modelList.js delete mode 100644 js/dialog/oauth.js delete mode 100644 js/dialog/profilePage.js delete mode 100644 js/dialog/uploadWithInputPage.js delete mode 100644 js/itemButton/btnApiKey.js delete mode 100644 js/itemButton/btnExample.js delete mode 100644 js/itemButton/btnModel.js delete mode 100644 js/itemButton/btnNews.js delete mode 100644 js/itemButton/profile.js create mode 100644 js/model_apply.js delete mode 100644 js/subassembly/btnMenuFn.js delete mode 100644 js/subassembly/confirm.js delete mode 100644 js/subassembly/drawer.js delete mode 100644 js/subassembly/socket.js delete mode 100644 js/subassembly/styleExample.js delete mode 100644 js/subassembly/styleProfile.js delete mode 100644 js/subassembly/styleUploadFile.js delete mode 100644 js/subassembly/subscribers.js delete mode 100644 js/subassembly/toast.js create mode 100644 js/subassembly/tools.js delete mode 100644 js/subassembly/tooltip.js create mode 100644 js/vite.svg delete mode 100644 src/bizy_server/templates/list_model.html delete mode 100644 src/bizy_server/templates/upload_model.html delete mode 100644 src/bizy_server/upload_manager.py diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..94ccb71c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "bizyair_frontend"] + path = bizyair_frontend + url = https://github.com/siliconflow/bizyair_frontend.git diff --git a/bizyair_frontend b/bizyair_frontend new file mode 160000 index 00000000..83459603 --- /dev/null +++ b/bizyair_frontend @@ -0,0 +1 @@ +Subproject commit 83459603843597dbacf7ea41bb8a9c304d00e196 diff --git a/docs/docs/bznews.json b/docs/docs/bznews.json index 9ae9b0b2..9e67e97c 100644 --- a/docs/docs/bznews.json +++ b/docs/docs/bznews.json @@ -1,4 +1,5 @@ { + "12/05 更新自定义模型上传和分享方式,原有上传方法不再支持,请尽快升级 BizyAir": "#", "09/19 更新模型上传功能,显示上传进度条,上传模型大小不受 ComfyUI 限制": "https://siliconflow.github.io/BizyAir/model-host/introduce.html", "09/06 发布 v0.2.0,支持使用自定义 LoRA,欢迎升级使用": "https://siliconflow.github.io/BizyAir/model-host/introduce.html" } diff --git a/js/apis.js b/js/apis.js index d147c5ca..af3ea156 100644 --- a/js/apis.js +++ b/js/apis.js @@ -11,7 +11,7 @@ function customFetch(url, options = {}) { } } fetchCache.set(url, now); - const host = `${window.location.origin}${window.location.pathname == '/' ? '' : window.location.pathname}` + const host = `${window.location.origin}${window.location.pathname === '/' ? '' : window.location.pathname}` return window.fetch(`${host}${url}`, options) .then(response => { if (response.status === 404) { @@ -79,8 +79,15 @@ export function set_api_key ( data ) { }) } -export function models_files ( data ) { - return customFetch(`/bizyair/modelhost/models/files?type=${data.type}&public=${data.public}`, {method: 'GET'}) +export function models_files ( params, data ) { + let actualParams = '' + for (const i in params) { + actualParams += `${i}=${params[i]}&` + } + return customFetch(`/bizyair/community/models/query?${actualParams}`, { + method: 'POST', + body: JSON.stringify(data) + }) } export function change_public ( data ) { @@ -88,7 +95,7 @@ export function change_public ( data ) { } export function model_types () { - return customFetch('/bizyair/modelhost/model_types', {method: 'GET'}) + return customFetch('/bizyair/community/model_types', {method: 'GET'}) } export function check_folder (url) { @@ -96,7 +103,7 @@ export function check_folder (url) { } export function submit_upload (data) { - return customFetch(`/bizyair/modelhost/submit_upload?clientId=${sessionStorage.getItem('clientId')}`, { + return customFetch(`/bizyair/community/submit_upload?clientId=${sessionStorage.getItem('clientId')}`, { method: 'POST', body: JSON.stringify(data) }) @@ -135,3 +142,12 @@ export function putDescription (data) { body: JSON.stringify(data) }) } + +export function uploadImage (file) { + const formData = new FormData(); + formData.append('file', file); + return customFetch('/bizyair/community/files/upload', { + method: 'POST', + body: formData + }) +} diff --git a/js/bizyair_frontend.js b/js/bizyair_frontend.js new file mode 100644 index 00000000..cff7f9b4 --- /dev/null +++ b/js/bizyair_frontend.js @@ -0,0 +1,653 @@ +(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`.shadcn-root *,.shadcn-root :before,.shadcn-root :after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-scroll-snap-strictness: proximity;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.shadcn-root ::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-scroll-snap-strictness: proximity;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000}.shadcn-root *,.shadcn-root :before,.shadcn-root :after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}.shadcn-root :before,.shadcn-root :after{--tw-content: ""}.shadcn-root html,.shadcn-root :host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}.shadcn-root body{margin:0;line-height:inherit}.shadcn-root hr{height:0;color:inherit;border-top-width:1px}.shadcn-root abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.shadcn-root h1,.shadcn-root h2,.shadcn-root h3,.shadcn-root h4,.shadcn-root h5,.shadcn-root h6{font-size:inherit;font-weight:inherit}.shadcn-root a{color:inherit;text-decoration:inherit}.shadcn-root b,.shadcn-root strong{font-weight:bolder}.shadcn-root code,.shadcn-root kbd,.shadcn-root samp,.shadcn-root pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}.shadcn-root small{font-size:80%}.shadcn-root sub,.shadcn-root sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.shadcn-root sub{bottom:-.25em}.shadcn-root sup{top:-.5em}.shadcn-root table{text-indent:0;border-color:inherit;border-collapse:collapse}.shadcn-root button,.shadcn-root input,.shadcn-root optgroup,.shadcn-root select,.shadcn-root textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit}.shadcn-root button[role=switch]{margin:0;padding:0}.shadcn-root button,.shadcn-root input:where([type=button]),.shadcn-root input:where([type=reset]),.shadcn-root input:where([type=submit]){-webkit-appearance:button;background-image:none}h3.shadcn-root button{background-color:transparent}.shadcn-root :-moz-focusring{outline:auto}.shadcn-root :-moz-ui-invalid{box-shadow:none}.shadcn-root progress{vertical-align:baseline}.shadcn-root ::-webkit-inner-spin-button,.shadcn-root ::-webkit-outer-spin-button{height:auto}.shadcn-root [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.shadcn-root ::-webkit-search-decoration{-webkit-appearance:none}.shadcn-root ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.shadcn-root summary{display:list-item}.shadcn-root blockquote,.shadcn-root dl,.shadcn-root dd,.shadcn-root h1,.shadcn-root h2,.shadcn-root h3,.shadcn-root h4,.shadcn-root h5,.shadcn-root h6,.shadcn-root hr,.shadcn-root figure,.shadcn-root p,.shadcn-root pre{margin:0}.shadcn-root fieldset{margin:0;padding:0}.shadcn-root legend{padding:0}.shadcn-root ol,.shadcn-root ul,.shadcn-root menu{list-style:none;margin:0;padding:0}.shadcn-root dialog{padding:0}.shadcn-root textarea{resize:vertical}.shadcn-root input::-moz-placeholder,.shadcn-root textarea::-moz-placeholder{opacity:1;color:#9ca3af}.shadcn-root input::placeholder,.shadcn-root textarea::placeholder{opacity:1;color:#9ca3af}.shadcn-root button,.shadcn-root [role=button]{cursor:pointer}.shadcn-root :disabled{cursor:default}.shadcn-root img,.shadcn-root svg,.shadcn-root video,.shadcn-root canvas,.shadcn-root audio,.shadcn-root iframe,.shadcn-root embed,.shadcn-root object{display:block;vertical-align:middle}.shadcn-root img,.shadcn-root video{max-width:100%;height:auto}.shadcn-root [hidden]:where(:not([hidden=until-found])){display:none}.shadcn-root :root{--background: 224 71% 4%;--foreground: 213 31% 91%;--muted: 223 47% 11%;--muted-foreground: 215.4 16.3% 56.9%;--accent: 216 34% 17%;--accent-foreground: 210 40% 98%;--popover: 224 71% 4%;--popover-foreground: 215 20.2% 65.1%;--border: 224 71% 4%;--input: 216 34% 17%;--card: 224 71% 4%;--card-foreground: 213 31% 91%;--primary: 262.1 83.3% 57.8%;--primary-foreground: 210 20% 98%;--secondary: 222.2 47.4% 11.2%;--secondary-foreground: 210 40% 98%;--destructive: 0 63% 31%;--destructive-foreground: 210 40% 98%;--ring: 216 34% 17%;--radius: .5rem}.shadcn-root *{border-color:hsl(var(--border))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }:root{--background: 224 71% 4%;--foreground: 213 31% 91%;--muted: 223 47% 11%;--muted-foreground: 215.4 16.3% 56.9%;--accent: 216 34% 17%;--accent-foreground: 210 40% 98%;--popover: 224 71% 4%;--popover-foreground: 215 20.2% 65.1%;--border: 224 71% 4%;--input: 216 34% 17%;--card: 224 71% 4%;--card-foreground: 213 31% 91%;--primary: 262.1 83.3% 57.8%;--primary-foreground: 210 20% 98%;--secondary: 222.2 47.4% 11.2%;--secondary-foreground: 210 40% 98%;--destructive: 0 63% 31%;--destructive-foreground: 210 40% 98%;--ring: 216 34% 17%;--radius: .5rem}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media (min-width: 1400px){.container{max-width:1400px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.left-2{left:.5rem}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.start-0{inset-inline-start:0px}.top-0{top:0}.top-1\\/2{top:50%}.top-2{top:.5rem}.top-3{top:.75rem}.top-4{top:1rem}.z-12000{z-index:12000}.z-15000{z-index:15000}.z-50{z-index:50}.z-8000{z-index:8000}.z-9000{z-index:9000}.z-\\[100\\]{z-index:100}.z-\\[5100\\]{z-index:5100}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-8{margin-top:2rem;margin-bottom:2rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-3\\.5{margin-top:.875rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1{height:.25rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\\.5{height:.625rem}.h-28{height:7rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-32{height:8rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[--radix-select-trigger-height\\]{height:var(--radix-select-trigger-height)}.h-\\[100vh\\]{height:100vh}.h-\\[400px\\]{height:400px}.h-\\[44px\\]{height:44px}.h-\\[80vh\\]{height:80vh}.h-\\[97px\\]{height:97px}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-screen{height:100vh}.max-h-96{max-height:24rem}.max-h-\\[100vh-120px\\]{max-height:100vh-120px}.max-h-\\[300px\\]{max-height:300px}.max-h-\\[78vh\\]{max-height:78vh}.max-h-\\[80vh\\]{max-height:80vh}.max-h-screen{max-height:100vh}.min-h-14{min-height:3.5rem}.min-h-20{min-height:5rem}.min-h-\\[650px\\]{min-height:650px}.min-h-\\[80vh\\]{min-height:80vh}.w-1{width:.25rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\\.5{width:.625rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-3\\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-96{width:24rem}.w-\\[100px\\]{width:100px}.w-\\[100vw\\]{width:100vw}.w-\\[124px\\]{width:124px}.w-\\[15\\%\\]{width:15%}.w-\\[150px\\]{width:150px}.w-\\[170px\\]{width:170px}.w-\\[200px\\]{width:200px}.w-\\[40\\%\\]{width:40%}.w-\\[44px\\]{width:44px}.w-\\[55\\%\\]{width:55%}.w-\\[65\\%\\]{width:65%}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0px}.min-w-32{min-width:8rem}.min-w-48{min-width:12rem}.min-w-\\[--radix-select-trigger-width\\]{min-width:var(--radix-select-trigger-width)}.min-w-\\[1000px\\]{min-width:1000px}.min-w-\\[200px\\]{min-width:200px}.min-w-\\[40px\\]{min-width:40px}.min-w-\\[560px\\]{min-width:560px}.min-w-\\[620px\\]{min-width:620px}.max-w-\\[200px\\]{max-width:200px}.max-w-\\[500px\\]{max-width:500px}.max-w-\\[600px\\]{max-width:600px}.max-w-\\[680px\\]{max-width:680px}.max-w-\\[70\\%\\]{max-width:70%}.max-w-\\[900px\\]{max-width:900px}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.animate-\\[pulse_1\\.2s_ease-in-out_0\\.2s_infinite\\]{animation:pulse 1.2s ease-in-out .2s infinite}.animate-\\[pulse_1\\.2s_ease-in-out_0\\.4s_infinite\\]{animation:pulse 1.2s ease-in-out .4s infinite}.animate-\\[pulse_1\\.2s_ease-in-out_0\\.6s_infinite\\]{animation:pulse 1.2s ease-in-out .6s infinite}.animate-\\[pulse_1\\.2s_ease-in-out_0\\.8s_infinite\\]{animation:pulse 1.2s ease-in-out .8s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\\[10px\\]{gap:10px}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-y-1\\.5{row-gap:.375rem}.gap-y-2{row-gap:.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.rounded-\\[6px\\]{border-radius:6px}.rounded-\\[9999px\\]{border-radius:9999px}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-tl-lg{border-top-left-radius:var(--radius)}.rounded-tr-lg{border-top-right-radius:var(--radius)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t,.border-t-\\[1px\\]{border-top-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.border-\\[\\#4e4e4e\\]{--tw-border-opacity: 1;border-color:rgb(78 78 78 / var(--tw-border-opacity))}.border-\\[\\#6b7280\\]{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-\\[\\#9CA3AF\\]{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-\\[\\#F9FAFB\\]\\/60{border-color:#f9fafb99}.border-\\[hsl\\(var\\(--primary\\)\\)\\]{border-color:hsl(var(--primary))}.border-\\[rgba\\(78\\,78\\,78\\,0\\.50\\)\\]{border-color:#4e4e4e80}.border-border{border-color:hsl(var(--border))}.border-destructive{border-color:hsl(var(--destructive))}.border-green-500\\/30{border-color:#22c55e4d}.border-input{border-color:hsl(var(--input))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}.border-red-500\\/30{border-color:#ef44444d}.border-transparent{border-color:transparent}.border-yellow-500\\/30{border-color:#eab3084d}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.\\!bg-\\[\\#6D28D9\\]{--tw-bg-opacity: 1 !important;background-color:rgb(109 40 217 / var(--tw-bg-opacity))!important}.bg-\\[\\#222\\]{--tw-bg-opacity: 1;background-color:rgb(34 34 34 / var(--tw-bg-opacity))}.bg-\\[\\#353535\\]{--tw-bg-opacity: 1;background-color:rgb(53 53 53 / var(--tw-bg-opacity))}.bg-\\[\\#3D3D3D\\]{--tw-bg-opacity: 1;background-color:rgb(61 61 61 / var(--tw-bg-opacity))}.bg-\\[\\#424242\\]{--tw-bg-opacity: 1;background-color:rgb(66 66 66 / var(--tw-bg-opacity))}.bg-\\[\\#4E4E4E80\\]{background-color:#4e4e4e80}.bg-\\[\\#4E4E4E\\],.bg-\\[\\#4e4e4e\\]{--tw-bg-opacity: 1;background-color:rgb(78 78 78 / var(--tw-bg-opacity))}.bg-\\[\\#6D28D933\\]{background-color:#6d28d933}.bg-\\[\\#6D28D9\\]{--tw-bg-opacity: 1;background-color:rgb(109 40 217 / var(--tw-bg-opacity))}.bg-\\[\\#9CA3AF\\]{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-\\[\\#F43F5E\\]{--tw-bg-opacity: 1;background-color:rgb(244 63 94 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-black\\/80{background-color:#000c}.bg-border{background-color:hsl(var(--border))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-green-500\\/30{background-color:#22c55e4d}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\\/50{background-color:hsl(var(--muted) / .5)}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-red-500\\/30{background-color:#ef44444d}.bg-secondary{background-color:hsl(var(--secondary))}.bg-slate-300{--tw-bg-opacity: 1;background-color:rgb(203 213 225 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-yellow-500\\/30{background-color:#eab3084d}.fill-current{fill:currentColor}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-px{padding:1px}.px-0{padding-left:0;padding-right:0}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\\[10px\\]{padding-left:10px;padding-right:10px}.px-\\[8px\\]{padding-left:8px;padding-right:8px}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\\[2px\\]{padding-top:2px;padding-bottom:2px}.pb-0{padding-bottom:0}.pb-12{padding-bottom:3rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-1\\.5{padding-left:.375rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-8{padding-left:2rem}.pr-1\\.5{padding-right:.375rem}.pr-2{padding-right:.5rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.text-left{text-align:left}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.font-\\[\\'Inter\\'\\]{font-family:Inter}.font-\\[\\'Inter-Regular\\'\\,_sans-serif\\]{font-family:Inter-Regular,sans-serif}.font-\\[\\'Inter-SemiBold\\'\\,_sans-serif\\]{font-family:Inter-SemiBold,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-5xl{font-size:3rem;line-height:1}.text-\\[18px\\]{font-size:18px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-8{line-height:2rem}.leading-\\[18px\\]{line-height:18px}.leading-none{line-height:1}.tracking-\\[-0\\.45px\\]{letter-spacing:-.45px}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.\\!text-\\[\\#F9FAFB\\]{--tw-text-opacity: 1 !important;color:rgb(249 250 251 / var(--tw-text-opacity))!important}.text-\\[\\#F9FAFB\\]{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/50{color:hsl(var(--foreground) / .5)}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0px_20px_40px_0px_rgba\\(0\\,0\\,0\\,0\\.25\\)\\]{--tw-shadow: 0px 20px 40px 0px rgba(0,0,0,.25);--tw-shadow-colored: 0px 20px 40px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.custom-scrollbar{scrollbar-width:thin;scrollbar-color:#222 #000}.custom-scrollbar::-webkit-scrollbar{width:8px;border-radius:4px}.custom-scrollbar::-webkit-scrollbar-thumb{background-color:#222;border-radius:4px}.custom-scrollbar::-webkit-scrollbar-track{background-color:#000;border-radius:4px;margin:10px 0}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:cursor-pointer:hover{cursor:pointer}.hover\\:border-2:hover{border-width:2px}.hover\\:border-\\[hsl\\(var\\(--primary\\)\\)\\]:hover{border-color:hsl(var(--primary))}.hover\\:border-white:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.hover\\:\\!bg-\\[\\#4E4E4E\\]:hover{--tw-bg-opacity: 1 !important;background-color:rgb(78 78 78 / var(--tw-bg-opacity))!important}.hover\\:\\!bg-\\[\\#6D28D9\\]:hover{--tw-bg-opacity: 1 !important;background-color:rgb(109 40 217 / var(--tw-bg-opacity))!important}.hover\\:\\!bg-inherit:hover{background-color:inherit!important}.hover\\:bg-\\[\\#222222\\]:hover{--tw-bg-opacity: 1;background-color:rgb(34 34 34 / var(--tw-bg-opacity))}.hover\\:bg-\\[\\#4A238E\\]:hover{--tw-bg-opacity: 1;background-color:rgb(74 35 142 / var(--tw-bg-opacity))}.hover\\:bg-\\[\\#4E4E4E\\]:hover{--tw-bg-opacity: 1;background-color:rgb(78 78 78 / var(--tw-bg-opacity))}.hover\\:bg-\\[\\#F43F5E\\]\\/90:hover{background-color:#f43f5ee6}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-destructive\\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:bg-muted\\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\\:bg-primary\\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:bg-transparent:hover{background-color:transparent}.hover\\:text-\\[\\#F9FAFB\\]:hover{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-foreground:hover{color:hsl(var(--foreground))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:opacity-80:hover{opacity:.8}.hover\\:brightness-150:hover{--tw-brightness: brightness(1.5);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:opacity-100:focus{opacity:1}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:visible{visibility:visible}.group:hover .group-hover\\:opacity-100{opacity:1}.group.destructive .group-\\[\\.destructive\\]\\:border-muted\\/40{border-color:hsl(var(--muted) / .4)}.group.toaster .group-\\[\\.toaster\\]\\:border-border{border-color:hsl(var(--border))}.group.toast .group-\\[\\.toast\\]\\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\\[\\.toast\\]\\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\\[\\.toaster\\]\\:bg-background{background-color:hsl(var(--background))}.group.destructive .group-\\[\\.destructive\\]\\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity))}.group.toast .group-\\[\\.toast\\]\\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\\[\\.toast\\]\\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\\[\\.toaster\\]\\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\\[\\.toaster\\]\\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:border-destructive\\/30:hover{border-color:hsl(var(--destructive) / .3)}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity))}.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-destructive:focus{--tw-ring-color: hsl(var(--destructive))}.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity))}.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.peer:disabled~.peer-disabled\\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\\:opacity-70{opacity:.7}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:translate-x-5[data-state=checked]{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[swipe\\=cancel\\]\\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[swipe\\=end\\]\\:translate-x-\\[--radix-toast-swipe-end-x\\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[swipe\\=move\\]\\:translate-x-\\[--radix-toast-swipe-move-x\\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\\[highlighted\\]\\:bg-accent[data-highlighted]{background-color:hsl(var(--accent))}.data-\\[state\\=active\\]\\:bg-\\[\\#7C3AED\\][data-state=active]{--tw-bg-opacity: 1;background-color:rgb(124 58 237 / var(--tw-bg-opacity))}.data-\\[state\\=active\\]\\:bg-\\[\\#9CA3AF\\][data-state=active]{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.data-\\[state\\=active\\]\\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[state\\=open\\]\\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\\[state\\=selected\\]\\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\\[highlighted\\]\\:text-accent-foreground[data-highlighted]{color:hsl(var(--accent-foreground))}.data-\\[state\\=active\\]\\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=active\\]\\:shadow-sm[data-state=active]{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\\[swipe\\=move\\]\\:transition-none[data-swipe=move]{transition-property:none}.data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{transition-duration:.3s}.data-\\[state\\=open\\]\\:duration-500[data-state=open]{transition-duration:.5s}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed],.data-\\[swipe\\=end\\]\\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=closed\\]\\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\\[state\\=closed\\]\\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\\[state\\=closed\\]\\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\\[state\\=closed\\]\\:slide-out-to-right[data-state=closed],.data-\\[state\\=closed\\]\\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\\[state\\=closed\\]\\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\\[state\\=open\\]\\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\\[state\\=open\\]\\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\\[state\\=open\\]\\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}.data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{animation-duration:.3s}.data-\\[state\\=open\\]\\:duration-500[data-state=open]{animation-duration:.5s}@media (min-width: 640px){.sm\\:bottom-0{bottom:0}.sm\\:right-0{right:0}.sm\\:top-auto{top:auto}.sm\\:mt-0{margin-top:0}.sm\\:max-w-sm{max-width:24rem}.sm\\:flex-row{flex-direction:row}.sm\\:flex-col{flex-direction:column}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.sm\\:rounded-lg{border-radius:var(--radius)}.sm\\:text-left{text-align:left}.data-\\[state\\=open\\]\\:sm\\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media (min-width: 768px){.md\\:w-full{width:100%}.md\\:max-w-\\[420px\\]{max-width:420px}}.\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]){padding-right:0}.\\[\\&\\:hover\\]\\:\\!bg-\\[\\#6D28D9\\]:hover{--tw-bg-opacity: 1 !important;background-color:rgb(109 40 217 / var(--tw-bg-opacity))!important}.\\[\\&\\:hover\\]\\:\\!text-\\[\\#F9FAFB\\]:hover{--tw-text-opacity: 1 !important;color:rgb(249 250 251 / var(--tw-text-opacity))!important}.\\[\\&\\>span\\]\\:truncate>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.\\[\\&\\>svg\\]\\:size-4>svg{width:1rem;height:1rem}.\\[\\&\\>svg\\]\\:shrink-0>svg{flex-shrink:0}.\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr{border-bottom-width:0px}.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:py-1\\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:font-medium [cmdk-group-heading]{font-weight:500}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\\[\\&_\\[cmdk-group\\]\\]\\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\\[\\&_\\[cmdk-input\\]\\]\\:h-12 [cmdk-input]{height:3rem}.\\[\\&_\\[cmdk-item\\]\\]\\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-item\\]\\]\\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:h-5 [cmdk-item] svg{height:1.25rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:w-5 [cmdk-item] svg{width:1.25rem}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child{border-width:0px}.\\[\\&_tr\\]\\:border-b tr{border-bottom-width:1px}@keyframes pulse-2877a399{0%,to{opacity:1}50%{opacity:0}}.file-box:hover p[data-v-34c51f7f]{color:hsl(var(--primary))}.file-box:hover svg path[data-v-34c51f7f]{stroke:hsl(var(--primary))}.md-editor .md-editor-preview{--md-theme-color: var(--md-color);--md-theme-color-reverse: #eee;--md-theme-color-hover: #eee;--md-theme-color-hover-inset: #ddd;--md-theme-link-color: #2d8cf0;--md-theme-link-hover-color: #73d13d;--md-theme-border-color: #e6e6e6;--md-theme-border-color-reverse: #bebebe;--md-theme-border-color-inset: #d6d6d6;--md-theme-bg-color: #fff;--md-theme-bg-color-inset: #ececec;--md-theme-bg-color-scrollbar-track: #e2e2e2;--md-theme-bg-color-scrollbar-thumb: rgba(0, 0, 0, .3019607843);--md-theme-bg-color-scrollbar-thumb-hover: rgba(0, 0, 0, .3490196078);--md-theme-bg-color-scrollbar-thumb-active: rgba(0, 0, 0, .3803921569);--md-theme-code-copy-tips-color: inherit;--md-theme-code-copy-tips-bg-color: #fff;--md-theme-code-active-color: #61aeee}.md-editor-dark .md-editor-preview{--md-theme-color: var(--md-color);--md-theme-color-reverse: #222;--md-theme-color-hover: #191919;--md-theme-color-hover-inset: #444;--md-theme-link-color: #2d8cf0;--md-theme-link-hover-color: #73d13d;--md-theme-border-color: #2d2d2d;--md-theme-border-color-reverse: #e6e6e6;--md-theme-border-color-inset: #5a5a5a;--md-theme-bg-color: #000;--md-theme-bg-color-inset: #111;--md-theme-bg-color-scrollbar-track: #0f0f0f;--md-theme-bg-color-scrollbar-thumb: #2d2d2d;--md-theme-bg-color-scrollbar-thumb-hover: #3a3a3a;--md-theme-bg-color-scrollbar-thumb-active: #3a3a3a;--md-theme-code-copy-tips-color: inherit;--md-theme-code-copy-tips-bg-color: #3a3a3a;--md-theme-code-active-color: #e6c07b}.md-editor .md-editor-admonition-note{--md-admonition-color: #448aff;--md-admonition-bg-color: #d5e2f9}.md-editor .md-editor-admonition-abstract{--md-admonition-color: #02b1ff;--md-admonition-bg-color: #d1eefb}.md-editor .md-editor-admonition-info{--md-admonition-color: #333;--md-admonition-bg-color: #e3e3e3}.md-editor .md-editor-admonition-tip{--md-admonition-color: #666;--md-admonition-bg-color: #e6e6e6}.md-editor .md-editor-admonition-success{--md-admonition-color: #00c852;--md-admonition-bg-color: #c1f1d5}.md-editor .md-editor-admonition-question{--md-admonition-color: #f0b400;--md-admonition-bg-color: #fff1dd}.md-editor .md-editor-admonition-warning{--md-admonition-color: #ff9104;--md-admonition-bg-color: #ffe9cc}.md-editor .md-editor-admonition-failure{--md-admonition-color: #c2185b;--md-admonition-bg-color: #ffd9d9}.md-editor .md-editor-admonition-danger{--md-admonition-color: #ff5252;--md-admonition-bg-color: #ffe4e4}.md-editor .md-editor-admonition-bug{--md-admonition-color: #f60357;--md-admonition-bg-color: #ffd3e2}.md-editor .md-editor-admonition-example{--md-admonition-color: #7c4dff;--md-admonition-bg-color: #e3d8ff}.md-editor .md-editor-admonition-quote{--md-admonition-color: #9e9e9e;--md-admonition-bg-color: #f0f0f0}.md-editor .md-editor-admonition-hint{--md-admonition-color: #009688;--md-admonition-bg-color: #cdf4f0}.md-editor .md-editor-admonition-caution{--md-admonition-color: #ffa726;--md-admonition-bg-color: #ffe7c4}.md-editor .md-editor-admonition-error{--md-admonition-color: #d32f2f;--md-admonition-bg-color: #ffd8d8}.md-editor .md-editor-admonition-attention{--md-admonition-color: #455a64;--md-admonition-bg-color: #cbefff}.md-editor-dark .md-editor-admonition-note{--md-admonition-color: #1262e7;--md-admonition-bg-color: #021d4c}.md-editor-dark .md-editor-admonition-abstract{--md-admonition-color: #058dc9;--md-admonition-bg-color: #002433}.md-editor-dark .md-editor-admonition-info{--md-admonition-color: #999;--md-admonition-bg-color: #212121}.md-editor-dark .md-editor-admonition-tip{--md-admonition-color: #888;--md-admonition-bg-color: #191818}.md-editor-dark .md-editor-admonition-success{--md-admonition-color: #00c551;--md-admonition-bg-color: #003014}.md-editor-dark .md-editor-admonition-question{--md-admonition-color: #cd9a00;--md-admonition-bg-color: #311d00}.md-editor-dark .md-editor-admonition-warning{--md-admonition-color: #ed8500;--md-admonition-bg-color: #3c2200}.md-editor-dark .md-editor-admonition-failure{--md-admonition-color: #d5125f;--md-admonition-bg-color: #3f0000}.md-editor-dark .md-editor-admonition-danger{--md-admonition-color: #d80505;--md-admonition-bg-color: #390000}.md-editor-dark .md-editor-admonition-bug{--md-admonition-color: #da0d54;--md-admonition-bg-color: #390013}.md-editor-dark .md-editor-admonition-example{--md-admonition-color: #7443ff;--md-admonition-bg-color: #140045}.md-editor-dark .md-editor-admonition-quote{--md-admonition-color: #9e9e9e;--md-admonition-bg-color: #2b2b2b}.md-editor-dark .md-editor-admonition-hint{--md-admonition-color: #00ae9e;--md-admonition-bg-color: #00423b}.md-editor-dark .md-editor-admonition-caution{--md-admonition-color: #db8609;--md-admonition-bg-color: #573300}.md-editor-dark .md-editor-admonition-error{--md-admonition-color: #df1a1a;--md-admonition-bg-color: #440000}.md-editor-dark .md-editor-admonition-attention{--md-admonition-color: #0f8bc7;--md-admonition-bg-color: #00354d}.md-editor-preview .md-editor-admonition{background-color:var(--md-admonition-bg-color);border:1px solid var(--md-admonition-color);border-radius:.5rem;color:var(--md-admonition-color);display:flow-root;font-size:14px;font-weight:400;margin:1rem 0;padding:1em 1em .5em;page-break-inside:avoid}.md-editor-preview .md-editor-admonition-title{border-top-left-radius:.5rem;border-top-right-radius:.5rem;margin:0;padding:0;position:relative;font-weight:700}.md-editor-preview .md-editor-admonition p{margin:.5em 0;padding:0}.md-editor-preview .md-editor-admonition p:first-of-type{margin-top:0}.md-editor-preview .md-editor-admonition+p:empty,.md-editor-preview .md-editor-admonition+p:empty+p:empty{display:none}.md-editor-preview .md-editor-mermaid{overflow:hidden;display:none;line-height:normal}.md-editor-preview [class=md-editor-mermaid][data-processed]{display:flex;justify-content:center;align-items:center;cursor:grab}.md-editor-preview [class=md-editor-mermaid][data-processed]:active{cursor:grabbing}.md-editor-preview [class=md-editor-mermaid][data-processed] svg{transform-origin:top left}.prefix-katex-block{text-align:center;margin:20px}.prefix-katex-inline,.prefix-katex-block{display:none}.prefix-katex-inline[data-processed]{display:initial}.prefix-katex-block[data-processed]{display:block}.md-editor .md-editor-preview{--md-theme-code-inline-color: #3594f7;--md-theme-code-inline-bg-color: rgba(59, 170, 250, .1);--md-theme-code-inline-radius: 2px;--md-theme-code-block-color: #a9b7c6;--md-theme-code-block-bg-color: #282c34;--md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color);--md-theme-code-block-radius: 5px}.md-editor-dark .md-editor-preview{--md-theme-code-inline-color: #3594f7;--md-theme-code-inline-bg-color: rgba(59, 170, 250, .1);--md-theme-code-inline-radius: 2px;--md-theme-code-block-color: #a9b7c6;--md-theme-code-block-bg-color: #1a1a1a;--md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color);--md-theme-code-block-radius: 5px}.md-editor-preview code{color:var(--md-theme-code-inline-color);background-color:var(--md-theme-code-inline-bg-color);border-radius:var(--md-theme-code-inline-radius);padding:0 4px;line-height:22px}.md-editor-preview .md-editor-code{color:var(--md-theme-code-block-color);font-size:12px;line-height:1;margin:20px 0;position:relative}.md-editor-preview .md-editor-code input[type=radio],.md-editor-preview .md-editor-code input[type=radio]+pre,.md-editor-preview .md-editor-code input[type=radio]+span.md-editor-code-lang{display:none}.md-editor-preview .md-editor-code input:checked+pre,.md-editor-preview .md-editor-code input:checked+span.md-editor-code-lang{display:block}.md-editor-preview .md-editor-code input:checked+label{border-bottom:1px solid;color:var(--md-theme-code-active-color)}.md-editor-preview .md-editor-code .md-editor-code-head{display:grid;grid-template:"1rf 1rf";justify-content:space-between;height:32px;width:100%;font-size:12px;background-color:var(--md-theme-code-before-bg-color);margin-bottom:0;border-top-left-radius:var(--md-theme-code-block-radius);border-top-right-radius:var(--md-theme-code-block-radius);-webkit-tap-highlight-color:rgba(0,0,0,0);list-style:none}.md-editor-preview .md-editor-code .md-editor-code-head::-webkit-details-marker{display:none}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag{margin-left:12px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag span{display:inline-block;width:10px;height:10px;border-radius:50%;margin-top:11px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag span:nth-of-type(1){background-color:#ec6a5e}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag span:nth-of-type(2){background-color:#f4bf4f}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag span:nth-of-type(3){background-color:#61c554}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag span+span{margin-left:4px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag ul.md-editor-codetab-label{box-sizing:border-box;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--md-theme-code-block-bg-color);margin-top:8px;padding:0}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag ul.md-editor-codetab-label li{line-height:1;list-style:none;display:inline-block;position:relative;vertical-align:super;margin:0}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag ul.md-editor-codetab-label li label{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:inline-block;font-size:14px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-flag ul.md-editor-codetab-label li+li{margin-left:12px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-action{display:flex;align-items:center}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-action>*{margin-right:10px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-code-lang{line-height:32px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button:not(data-is-icon){cursor:pointer;line-height:32px;position:initial}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button:not(data-is-icon) .md-editor-icon{width:15px;height:15px;display:inline-block;vertical-align:sub}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]{cursor:pointer;line-height:1;position:relative}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon] .md-editor-icon{width:15px;height:15px;display:inline-block;vertical-align:sub}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]:before{content:attr(data-tips);color:var(--md-theme-code-copy-tips-color);background-color:var(--md-theme-code-copy-tips-bg-color);position:absolute;font-size:12px;font-family:sans-serif;width:-moz-max-content;width:max-content;text-align:center;padding:4px;border-radius:2px;box-shadow:0 0 2px #0003;left:-10px;top:50%;transform:translate(-100%,-50%)}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]:after{content:"";color:var(--md-theme-code-copy-tips-bg-color);position:absolute;width:0;height:0;border:5px solid rgba(0,0,0,0);border-right-width:0;border-left-color:currentColor;left:-10px;top:50%;transform:translateY(-50%);filter:drop-shadow(4px 0 2px rgba(0,0,0,.2))}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]:before,.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]:after{visibility:hidden;transition:.3s}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]:hover:before,.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-copy-button[data-is-icon]:hover:after{visibility:visible}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-collapse-tips{margin-right:12px}.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-collapse-tips .md-editor-icon,.md-editor-preview .md-editor-code .md-editor-code-head .md-editor-collapse-tips .md-editor-iconfont{width:16px;height:16px;font-size:16px;display:inline-block;vertical-align:sub;transform:rotate(0);transition:transform .1s}.md-editor-preview .md-editor-code pre{position:relative;margin:0}.md-editor-preview .md-editor-code pre code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;color:var(--md-theme-code-block-color);background-color:var(--md-theme-code-before-bg-color);display:block;line-height:1.6;overflow:auto;padding:1em;position:relative;border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:var(--md-theme-code-block-radius);border-bottom-right-radius:var(--md-theme-code-block-radius)}.md-editor-preview .md-editor-code pre code .md-editor-code-block{display:inline-block;width:100%;overflow:auto;vertical-align:bottom;color:var(--md-theme-code-block-color)}.md-editor-preview details.md-editor-code .md-editor-code-head{cursor:pointer}.md-editor-preview details.md-editor-code:not(open) .md-editor-code-head{border-bottom-left-radius:var(--md-theme-code-block-radius);border-bottom-right-radius:var(--md-theme-code-block-radius)}.md-editor-preview details.md-editor-code[open] .md-editor-code-head{border-bottom-left-radius:0;border-bottom-right-radius:0}.md-editor-preview details.md-editor-code[open] .md-editor-code-head .md-editor-collapse-tips .md-editor-icon,.md-editor-preview details.md-editor-code[open] .md-editor-code-head .md-editor-collapse-tips .md-editor-iconfont{transform:rotate(-90deg)}.md-editor-scrn span[rn-wrapper]{position:absolute;pointer-events:none;top:1em;font-size:100%;left:0;width:3em;letter-spacing:-1px;-webkit-user-select:none;-moz-user-select:none;user-select:none;counter-reset:linenumber}.md-editor-scrn span[rn-wrapper]>span{display:block;pointer-events:none;counter-increment:linenumber}.md-editor-scrn span[rn-wrapper]>span:before{color:#999;display:block;padding-right:.5em;text-align:right;content:counter(linenumber)}.md-editor-scrn pre code{padding-left:3.5em!important}.md-editor-preview figure{margin:0 0 1em;display:inline-flex;flex-direction:column;text-align:center}.md-editor-preview figure figcaption{color:var(--md-theme-color);font-size:.875em;margin-top:5px}.md-editor .md-editor-preview,.md-editor-dark .md-editor-preview{--md-theme-heading-color: var(--md-theme-color);--md-theme-heading-border: none;--md-theme-heading-1-color: var(--md-theme-heading-color);--md-theme-heading-1-border: var(--md-theme-heading-border);--md-theme-heading-2-color: var(--md-theme-heading-color);--md-theme-heading-2-border: var(--md-theme-heading-border);--md-theme-heading-3-color: var(--md-theme-heading-color);--md-theme-heading-3-border: var(--md-theme-heading-border);--md-theme-heading-4-color: var(--md-theme-heading-color);--md-theme-heading-4-border: var(--md-theme-heading-border);--md-theme-heading-5-color: var(--md-theme-heading-color);--md-theme-heading-5-border: var(--md-theme-heading-border);--md-theme-heading-6-color: var(--md-theme-heading-color);--md-theme-heading-6-border: var(--md-theme-heading-border)}.md-editor-preview h1,.md-editor-preview h2,.md-editor-preview h3,.md-editor-preview h4,.md-editor-preview h5,.md-editor-preview h6{position:relative;word-break:break-all;margin:1.4em 0 .8em;font-weight:700}.md-editor-preview h1 a,.md-editor-preview h2 a,.md-editor-preview h3 a,.md-editor-preview h4 a,.md-editor-preview h5 a,.md-editor-preview h6 a,.md-editor-preview h1 a:hover,.md-editor-preview h2 a:hover,.md-editor-preview h3 a:hover,.md-editor-preview h4 a:hover,.md-editor-preview h5 a:hover,.md-editor-preview h6 a:hover{color:inherit}.md-editor-preview h1{color:var(--md-theme-heading-1-color);border-bottom:var(--md-theme-heading-1-border)}.md-editor-preview h2{color:var(--md-theme-heading-2-color);border-bottom:var(--md-theme-heading-2-border)}.md-editor-preview h3{color:var(--md-theme-heading-3-color);border-bottom:var(--md-theme-heading-3-border)}.md-editor-preview h4{color:var(--md-theme-heading-4-color);border-bottom:var(--md-theme-heading-4-border)}.md-editor-preview h5{color:var(--md-theme-heading-5-color);border-bottom:var(--md-theme-heading-5-border)}.md-editor-preview h6{color:var(--md-theme-heading-6-color);border-bottom:var(--md-theme-heading-6-border)}.md-editor-preview h1{font-size:2em}.md-editor-preview h2{font-size:1.5em}.md-editor-preview h3{font-size:1.25em}.md-editor-preview h4{font-size:1em}.md-editor-preview h5{font-size:.875em}.md-editor-preview h6{font-size:.85em}.md-editor-preview hr{height:1px;margin:10px 0;border:none;border-top:1px solid var(--md-theme-border-color)}.md-editor-preview a{color:var(--md-theme-link-color);text-decoration:none;transition:color .3s}.md-editor-preview a:hover{color:var(--md-theme-link-hover-color)}.md-editor-preview a:empty:before{content:attr(href)}.md-editor-preview ol,.md-editor-preview ul{padding-left:2.35em}.md-editor-preview ol .task-list-item,.md-editor-preview ul .task-list-item{list-style-type:none}.md-editor-preview ol .task-list-item input,.md-editor-preview ul .task-list-item input{margin-left:-1.5em;margin-right:.1em}.md-editor-preview img{max-width:100%}.md-editor-preview p:empty{display:none}.md-editor .md-editor-preview{--md-theme-quote-color: var(--md-theme-color);--md-theme-quote-border: none;--md-theme-quote-bg-color: inherit}.md-editor-preview blockquote{padding:0 1em;color:var(--md-theme-quote-color);border-left:var(--md-theme-quote-border);background-color:var(--md-theme-quote-bg-color)}.md-editor .md-editor-preview{--md-theme-table-stripe-color: #fafafa;--md-theme-table-tr-bg-color: inherit;--md-theme-table-td-border-color: var(--md-theme-border-color)}.md-editor-dark .md-editor-preview{--md-theme-table-stripe-color: #0c0c0c;--md-theme-table-tr-bg-color: inherit;--md-theme-table-td-border-color: var(--md-theme-border-color)}.md-editor-preview table tr{background-color:var(--md-theme-table-tr-bg-color)}.md-editor-preview table tr th,.md-editor-preview table tr td{border:1px solid var(--md-theme-table-td-border-color)}.md-editor-preview table tr:nth-child(2n){background-color:var(--md-theme-table-stripe-color)}.md-editor-preview{color:var(--md-theme-color)}.md-editor-preview ::-webkit-scrollbar{width:6px;height:6px}.md-editor-preview ::-webkit-scrollbar-corner,.md-editor-preview ::-webkit-scrollbar-track{background-color:var(--md-theme-bg-color-scrollbar-track);border-radius:2px}.md-editor-preview ::-webkit-scrollbar-thumb{border-radius:2px;background-color:var(--md-theme-bg-color-scrollbar-thumb)}.md-editor-preview ::-webkit-scrollbar-button:vertical{display:none}.md-editor-preview ::-webkit-scrollbar-thumb:vertical:hover{background-color:var(--md-theme-bg-color-scrollbar-thumb-hover)}.md-editor-preview ::-webkit-scrollbar-thumb:vertical:active{background-color:var(--md-theme-bg-color-scrollbar-thumb-active)}.md-editor div.default-theme{--md-theme-code-copy-tips-color: #141414}.md-editor-dark div.default-theme{--md-theme-code-copy-tips-color: inherit}div.default-theme .md-editor-code pre code{box-shadow:#0005 0 2px 2px}div.default-theme img{margin:0 auto;box-sizing:border-box;padding:5px;border:1px solid var(--md-theme-border-color);border-radius:3px}div.default-theme blockquote img{border-color:var(--md-theme-border-color-inset)}div.default-theme ol,div.default-theme ul{margin:.6em 0}div.default-theme ol li,div.default-theme ul li{line-height:1.6;margin:.5em 0}div.default-theme p{line-height:1.6;margin:.5rem 0}.md-editor div.default-theme{--md-theme-quote-border: 5px solid #35b378;--md-theme-quote-bg-color: var(--md-theme-bg-color-inset)}div.default-theme blockquote{margin:20px 0;padding:0 1.2em;line-height:2em;display:block;overflow:auto}.md-editor default-theme{--md-theme-table-stripe-color: #fafafa}.md-editor-dark default-theme{--md-theme-table-stripe-color: #0c0c0c}div.default-theme table{overflow:auto;border-spacing:0;border-collapse:collapse;margin-bottom:1em;margin-top:1em}div.default-theme table tr th,div.default-theme table tr td{word-wrap:break-word;padding:8px 14px}div.default-theme table tbody tr:hover{background-color:var(--md-theme-color-hover)}div.default-theme blockquote table{line-height:initial}div.default-theme blockquote table tr th,div.default-theme blockquote table tr td{border-color:var(--md-theme-border-color-inset)}div.default-theme blockquote table tbody tr:nth-child(n){background-color:inherit}div.default-theme blockquote table tbody tr:hover{background-color:var(--md-theme-color-hover-inset)}.md-editor div.vuepress-theme{--md-theme-code-inline-color: #d63200;--md-theme-code-inline-bg-color: #f8f8f8;--md-theme-code-block-color: #747384;--md-theme-code-block-bg-color: #f8f8f8;--md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color);--md-theme-code-block-radius: 2px}.md-editor-dark div.vuepress-theme{--md-theme-code-inline-color: #e06c75;--md-theme-code-inline-bg-color: #1a1a1a;--md-theme-code-block-color: #999;--md-theme-code-block-bg-color: #1a1a1a;--md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color);--md-theme-code-block-radius: 2px}div.vuepress-theme code{padding:3px 5px;margin:0 2px}div.vuepress-theme .md-editor-code pre{font-size:.875em;margin:0 0 1em}div.vuepress-theme .md-editor-code pre code{white-space:pre;padding:22px 1em;margin:0}div.vuepress-theme .md-editor-code pre code span[rn-wrapper]{top:22px}.md-editor div.vuepress-theme{--md-theme-heading-color: #273849;--md-theme-heading-2-border: 1px solid var(--md-theme-border-color)}.md-editor-dark div.vuepress-theme{--md-theme-heading-color: #999;--md-theme-heading-2-border: 1px solid var(--md-theme-border-color)}div.vuepress-theme h1,div.vuepress-theme h2,div.vuepress-theme h3,div.vuepress-theme h4,div.vuepress-theme h5,div.vuepress-theme h6{font-weight:600;line-height:1.45;position:relative;margin-top:1em}div.vuepress-theme h1{font-size:2.2em;margin:1em 0}div.vuepress-theme h2{font-size:1.65em;padding-bottom:.3em}div.vuepress-theme h3{line-height:1.35em}.md-editor div.vuepress-theme{--md-theme-link-color: #42b983}div.vuepress-theme a{font-weight:600}.vuepress-theme ul,.vuepress-theme ol{position:relative;line-height:1.4em;margin:1.2em 0;z-index:1}.vuepress-theme ul li,.vuepress-theme ol li{margin:1.2em 0}.vuepress-theme p{word-spacing:.05em;line-height:1.6em;margin:1.2em 0;position:relative}.md-editor div.vuepress-theme{--md-theme-quote-border: 4px solid #42b983}div.vuepress-theme blockquote{margin:2em 0;padding-left:20px}div.vuepress-theme blockquote p{margin-left:0;margin-top:1.2em;margin-bottom:0;padding:0}.md-editor div.vuepress-theme{--md-theme-table-td-border-color: #dfe2e5;--md-theme-table-stripe-color: #f6f8fa}.md-editor-dark div.vuepress-theme{--md-theme-table-td-border-color: #2d2d2d;--md-theme-table-stripe-color: #0c0c0c}div.vuepress-theme table{border-collapse:collapse;margin:1rem 0;display:block;overflow-x:auto}div.vuepress-theme table tr th,div.vuepress-theme table tr td{padding:.6em 1em}.md-editor .vuepress-theme{--md-theme-color: #304455}.md-editor-dark .vuepress-theme{--md-theme-color: #999}div.vuepress-theme{font-size:16px;color:var(--md-theme-color)}div.vuepress-theme em{color:#4f5959;padding:0 6px 0 4px}.md-editor div.github-theme{--md-theme-code-inline-color: inherit;--md-theme-code-inline-bg-color: #eff1f2;--md-theme-code-inline-radius: 6px;--md-theme-code-block-color: inherit;--md-theme-code-block-bg-color: #f6f8fa;--md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color);--md-theme-code-block-radius: 6px}.md-editor-dark div.github-theme{--md-theme-code-inline-color: #c9d1d9;--md-theme-code-inline-bg-color: #2d3339;--md-theme-code-inline-radius: 6px;--md-theme-code-block-color: #a9b7c6;--md-theme-code-block-bg-color: #161b22;--md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color);--md-theme-code-block-radius: 6px}div.github-theme code{padding:.2em .4em;margin:0}div.github-theme pre code{padding:22px 1em;margin-bottom:0;word-break:normal;letter-spacing:1px}.md-editor div.github-theme{--md-theme-heading-color: inherit;--md-theme-heading-6-color: #2d3339;--md-theme-heading-1-border: 1px solid #d9dee4;--md-theme-heading-2-border: 1px solid #d9dee4}.md-editor-dark div.github-theme{--md-theme-heading-color: #c9d1d9;--md-theme-heading-6-color: #768390;--md-theme-heading-1-border: 1px solid #373e47;--md-theme-heading-2-border: 1px solid #373e47}div.github-theme h1,div.github-theme h2,div.github-theme h3,div.github-theme h4,div.github-theme h5,div.github-theme h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}div.github-theme h1{padding-bottom:.3em;font-size:2em}div.github-theme h2{padding-bottom:.3em;font-size:1.5em}div.github-theme h3{font-size:1.25em}div.github-theme h4{font-size:1em}div.github-theme h5{font-size:.875em}div.github-theme h6{font-size:.85em}.md-editor div.github-theme{--md-theme-heading-bg-color: #fff}.md-editor-dark div.github-theme{--md-theme-heading-bg-color: #22272e}div.github-theme img{background-color:var(--md-theme-heading-bg-color)}.md-editor div.github-theme{--md-theme-link-color: #539bf5;--md-theme-link-hover-color: #539bf5}div.github-theme a:hover{text-decoration:underline}.github-theme ol li+li,.github-theme ul li+li{margin-top:.25em}.md-editor div.github-theme{--md-theme-quote-color: #57606a;--md-theme-quote-border: .25em solid #d0d7de}.md-editor-dark div.github-theme{--md-theme-quote-color: #8b949e;--md-theme-quote-border: .25em solid #444c56}div.github-theme blockquote{padding:0 1em}.md-editor div.github-theme{--md-theme-table-stripe-color: #f7f8fa;--md-theme-table-tr-bg-color: #fff;--md-theme-table-td-border-color: #d0d7de}.md-editor-dark div.github-theme{--md-theme-table-stripe-color: #161b22;--md-theme-table-tr-bg-color: transparent;--md-theme-table-td-border-color: #30363d}div.github-theme table{display:block;max-width:100%;overflow:auto;border-spacing:0;border-collapse:collapse}div.github-theme table tr th,div.github-theme table tr td{padding:6px 13px}.md-editor div.github-theme{--md-theme-color: #222}.md-editor-dark div.github-theme{--md-theme-color: #c9d1d9}div.github-theme{line-height:1.5;color:var(--md-theme-color)}div.github-theme p,div.github-theme blockquote,div.github-theme ul,div.github-theme ol,div.github-theme dl,div.github-theme table,div.github-theme pre,div.github-theme details{margin-top:0;margin-bottom:16px}.md-editor div.cyanosis-theme,.md-editor-dark div.cyanosis-theme{--md-theme-code-inline-color: var(--md-theme-code-color);--md-theme-code-inline-bg-color: var(--md-theme-code-bg-color);--md-theme-code-block-color: var(--md-theme-base-color);--md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color)}div.cyanosis-theme code{padding:.065em .4em;font-family:Menlo,Monaco,Consolas,Courier New,monospace;overflow-x:auto}div.cyanosis-theme code::-moz-selection{background-color:var(--md-theme-slct-codebg-color)}div.cyanosis-theme code::selection{background-color:var(--md-theme-slct-codebg-color)}div.cyanosis-theme .md-editor-code pre{font-family:Menlo,Monaco,Consolas,Courier New,monospace}div.cyanosis-theme .md-editor-code pre code{padding:11px 12px 22px;margin:0;word-break:normal;line-height:1.75}div.cyanosis-theme .md-editor-code pre code::-moz-selection{background-color:var(--md-theme-slct-prebg-color)}div.cyanosis-theme .md-editor-code pre code::selection{background-color:var(--md-theme-slct-prebg-color)}div.cyanosis-theme .md-editor-code pre code::-webkit-scrollbar{width:4px;height:4px}div.cyanosis-theme .md-editor-code pre code::-webkit-scrollbar-track{background-color:var(--md-theme-border-color)}div.cyanosis-theme .md-editor-code pre code::-webkit-scrollbar-thumb{background-color:var(--md-theme-strong-color);border-radius:10px}div.cyanosis-theme .md-editor-code pre code span[rn-wrapper]{top:11px}.md-editor div.cyanosis-theme{--md-theme-heading-color: var(--md-theme-title-color)}div.cyanosis-theme h1{padding-bottom:4px;margin-top:36px;margin-bottom:10px;font-size:30px;line-height:1.5;transition:color .35s}div.cyanosis-theme h2{position:relative;padding-left:10px;padding-right:10px;padding-bottom:10px;margin-top:36px;margin-bottom:10px;font-size:24px;line-height:1.5;border-bottom:1px solid var(--md-theme-border-color-2);transition:color .35s}div.cyanosis-theme h2:before{content:"「";position:absolute;top:-6px;left:-14px}div.cyanosis-theme h2:after{content:"」";position:relative;top:6px;right:auto}div.cyanosis-theme h3{position:relative;padding-bottom:0;margin-top:30px;margin-bottom:10px;font-size:20px;line-height:1.5;padding-left:6px;transition:color .35s}div.cyanosis-theme h3:before{content:"»";padding-right:6px;color:var(--md-theme-strong-color)}div.cyanosis-theme h4{padding-bottom:0;margin-top:24px;margin-bottom:10px;font-size:16px;line-height:1.5;padding-left:6px;transition:color .35s}div.cyanosis-theme h5{padding-bottom:0;margin-top:18px;margin-bottom:10px;font-size:14px;line-height:1.5;padding-left:6px;transition:color .35s}div.cyanosis-theme h6{padding-bottom:0;margin-top:12px;margin-bottom:10px;font-size:12px;line-height:1.5;padding-left:6px;transition:color .35s}div.cyanosis-theme h1::-moz-selection,div.cyanosis-theme h2::-moz-selection,div.cyanosis-theme h3::-moz-selection,div.cyanosis-theme h4::-moz-selection,div.cyanosis-theme h5::-moz-selection,div.cyanosis-theme h6::-moz-selection{color:var(--md-theme-slct-title-color);background-color:var(--md-theme-slct-titlebg-color)}div.cyanosis-theme h1::selection,div.cyanosis-theme h2::selection,div.cyanosis-theme h3::selection,div.cyanosis-theme h4::selection,div.cyanosis-theme h5::selection,div.cyanosis-theme h6::selection{color:var(--md-theme-slct-title-color);background-color:var(--md-theme-slct-titlebg-color)}@media (max-width: 720px){div.cyanosis-theme h1{font-size:24px}div.cyanosis-theme h2{font-size:20px}div.cyanosis-theme h3{font-size:18px}}.md-editor div.cyanosis-theme{--md-theme-link-color: var(--md-theme-link-color);--md-theme-link-hover-color: var(--md-theme-linkh-color)}div.cyanosis-theme a{position:relative;display:inline-block;text-decoration:none;border-bottom:1px solid var(--md-theme-border-color)}div.cyanosis-theme a:hover{border-bottom-color:var(--md-theme-linkh-color)}div.cyanosis-theme a:active{color:var(--md-theme-linkh-color)}div.cyanosis-theme a:after{position:absolute;content:"";top:100%;left:0;width:100%;opacity:0;border-bottom:1px solid var(--md-theme-border-color);transition:top .3s,opacity .3s;transform:translateZ(0)}div.cyanosis-theme a:hover:after{top:0;opacity:1;border-bottom-color:var(--md-theme-linkh-color)}.cyanosis-theme ol,.cyanosis-theme ul{margin:0}.cyanosis-theme ol li,.cyanosis-theme ul li{margin-bottom:0;list-style:inherit}.cyanosis-theme ol li .task-list-item,.cyanosis-theme ul li .task-list-item{list-style:none}.cyanosis-theme ol li .task-list-item ul,.cyanosis-theme ol li .task-list-item ol,.cyanosis-theme ul li .task-list-item ul,.cyanosis-theme ul li .task-list-item ol{margin-top:0}.cyanosis-theme ol ul,.cyanosis-theme ol ol,.cyanosis-theme ul ul,.cyanosis-theme ul ol{margin-top:4px}.cyanosis-theme ol li{padding-left:6px}.cyanosis-theme ol li::-moz-selection,.cyanosis-theme ul li::-moz-selection{color:var(--md-theme-slct-text-color);background-color:var(--md-theme-slct-bg-color)}.cyanosis-theme ol li::selection,.cyanosis-theme ul li::selection{color:var(--md-theme-slct-text-color);background-color:var(--md-theme-slct-bg-color)}.cyanosis-theme .task-list-item-checkbox{position:relative}.cyanosis-theme .contains-task-list input[type=checkbox]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;width:inherit;height:inherit;background:#f0f8ff;border:1px solid #add6ff;border-radius:2px;box-sizing:border-box;z-index:1}.cyanosis-theme .contains-task-list input[type=checkbox][checked]:after{content:"✓";position:absolute;top:-12px;left:0;right:0;bottom:0;width:0;height:0;color:#f55;font-size:20px;font-weight:700;z-index:2}.cyanosis-theme p{line-height:inherit;margin-top:16px;margin-bottom:16px}.cyanosis-theme p::-moz-selection{color:var(--md-theme-slct-text-color);background-color:var(--md-theme-slct-bg-color)}.cyanosis-theme p::selection{color:var(--md-theme-slct-text-color);background-color:var(--md-theme-slct-bg-color)}.md-editor div.cyanosis-theme{--md-theme-quote-color: var(--md-theme-blockquote-color);--md-theme-quote-border: 4px solid var(--md-theme-strong-color);--md-theme-quote-bg-color: var(--md-theme-blockquote-bg-color)}div.cyanosis-theme blockquote{padding:1px 20px;margin:22px 0;transition:color .35s}div.cyanosis-theme blockquote:after{display:block;content:""}div.cyanosis-theme blockquote>p{margin:10px 0}div.cyanosis-theme blockquote>b,div.cyanosis-theme blockquote>strong{color:var(--md-theme-strong-color)}.cyanosis-theme table{display:inline-block!important;width:auto;max-width:100%;overflow:auto;border:1px solid var(--md-theme-table-border-color);border-spacing:0;border-collapse:collapse}.cyanosis-theme table thead{color:#000;text-align:left;background:#f6f6f6}.cyanosis-theme table tr:nth-child(2n){background-color:var(--md-theme-table-tr-nc-color)}.cyanosis-theme table tr:hover{background-color:var(--md-theme-table-trh-color)}.cyanosis-theme table th,.cyanosis-theme table td{padding:12px 8px;line-height:24px;border:1px solid var(--md-theme-table-border-color)}.cyanosis-theme table th{color:var(--md-theme-table-tht-color);background-color:var(--md-theme-table-th-color)}.cyanosis-theme table td{min-width:120px}.cyanosis-theme table thead th::-moz-selection{background-color:#0000}.cyanosis-theme table thead th::selection{background-color:#0000}.cyanosis-theme table tbody td::-moz-selection{background-color:var(--md-theme-slct-bg-color)}.cyanosis-theme table tbody td::selection{background-color:var(--md-theme-slct-bg-color)}.md-editor div.cyanosis-theme{--md-theme-base-color:#353535;--md-theme-title-color:#005bb7;--md-theme-strong-color:#2196f3;--md-theme-em-color:#4fc3f7;--md-theme-del-color:#ccc;--md-theme-link-color:#3da8f5;--md-theme-linkh-color:#007fff;--md-theme-border-color:#bedcff;--md-theme-border-color-2:#ececec;--md-theme-bg-color:#fff;--md-theme-blockquote-color:#8c8c8c;--md-theme-blockquote-bg-color:#f0fdff;--md-theme-code-color:#c2185b;--md-theme-code-bg-color:#fff4f4;--md-theme-code-block-bg-color:#f8f8f8;--md-theme-table-border-color:#c3e0fd;--md-theme-table-th-color:#dff0ff;--md-theme-table-tht-color:#005bb7;--md-theme-table-tr-nc-color:#f7fbff;--md-theme-table-trh-color:#e0edf7;--md-theme-slct-title-color:#005bb7;--md-theme-slct-titlebg-color:rgba(175,207,247,.25);--md-theme-slct-text-color:#c80000;--md-theme-slct-bg-color:rgba(175,207,247,.25);--md-theme-slct-del-color:#999;--md-theme-slct-elbg-color:#e8ebec;--md-theme-slct-codebg-color:#ffeaeb;--md-theme-slct-prebg-color:rgba(160,200,255,.25)}.md-editor-dark div.cyanosis-theme{--md-theme-base-color:#cacaca;--md-theme-title-color:#ddd;--md-theme-strong-color:#fe9900;--md-theme-em-color:#ffd28e;--md-theme-del-color:#ccc;--md-theme-link-color:#ffb648;--md-theme-linkh-color:#fe9900;--md-theme-border-color:#ffe3ba;--md-theme-border-color-2:#ffcb7b;--md-theme-bg-color:#2f2f2f;--md-theme-blockquote-color:#c7c7c7;--md-theme-blockquote-bg-color:rgba(255,199,116,.1);--md-theme-code-color:#000;--md-theme-code-bg-color:#ffcb7b;--md-theme-code-block-bg-color:rgba(30,25,18,.5);--md-theme-table-border-color:#fe9900;--md-theme-table-th-color:#ffb648;--md-theme-table-tht-color:#000;--md-theme-table-tr-nc-color:#6d5736;--md-theme-table-trh-color:#947443;--md-theme-slct-title-color:#000;--md-theme-slct-titlebg-color:#fe9900;--md-theme-slct-text-color:#00c888;--md-theme-slct-bg-color:rgba(175,207,247,.25);--md-theme-slct-del-color:#999;--md-theme-slct-elbg-color:#000;--md-theme-slct-codebg-color:#ffcb7b;--md-theme-slct-prebg-color:rgba(160,200,255,.25)}div.cyanosis-theme{word-break:break-word;line-height:1.75;font-weight:400;overflow-x:hidden;color:var(--md-theme-base-color);transition:color .35s}div.cyanosis-theme hr{position:relative;width:98%;height:1px;margin-top:32px;margin-bottom:32px;background-image:linear-gradient(90deg,var(--md-theme-link-color),rgba(255,0,0,.3),rgba(37,163,65,.3),rgba(255,0,0,.3),var(--md-theme-link-color));border-width:0;overflow:visible}div.cyanosis-theme b,div.cyanosis-theme strong{color:var(--md-theme-strong-color)}div.cyanosis-theme i,div.cyanosis-theme em{color:var(--md-theme-em-color)}div.cyanosis-theme del{color:var(--md-theme-del-color)}div.cyanosis-theme details>summary{outline:none;color:var(--md-theme-title-color);font-size:20px;font-weight:bolder;border-bottom:1px solid var(--md-theme-border-color);cursor:pointer}div.cyanosis-theme details>p{padding:10px 20px;margin:10px 0 0;color:#666;background-color:var(--md-theme-blockquote-bg-color);border:2px dashed var(--md-theme-strong-color)}div.cyanosis-theme a::-moz-selection,div.cyanosis-theme b::-moz-selection,div.cyanosis-theme strong::-moz-selection,div.cyanosis-theme i::-moz-selection,div.cyanosis-theme em::-moz-selection{background-color:var(--md-theme-slct-elbg-color)}div.cyanosis-theme a::selection,div.cyanosis-theme b::selection,div.cyanosis-theme strong::selection,div.cyanosis-theme i::selection,div.cyanosis-theme em::selection{background-color:var(--md-theme-slct-elbg-color)}div.cyanosis-theme del::-moz-selection{color:var(--md-theme-slct-del-color);background-color:var(--md-theme-slct-elbg-color)}div.cyanosis-theme del::selection{color:var(--md-theme-slct-del-color);background-color:var(--md-theme-slct-elbg-color)}.md-editor div.mk-cute-theme,.md-editor-dark div.mk-cute-theme{--md-theme-code-inline-color: #4ec9b0;--md-theme-code-inline-bg-color: #282c34;--md-theme-code-block-color: #4ec9b0;--md-theme-code-block-bg-color: #282c34;--md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color);--md-theme-code-block-radius: 10px}div.mk-cute-theme code{font-family:Menlo,Monaco,Consolas,Courier New,monospace;overflow-x:auto;padding:.14em .46em;margin:0 4px}div.mk-cute-theme .md-editor-code pre code{font-family:Menlo,Monaco,Consolas,Courier New,monospace;padding:22px;margin:0;word-break:normal;line-height:1.75}div.mk-cute-theme .md-editor-code pre code span[rn-wrapper]{top:22px}.md-editor div.mk-cute-theme{--md-theme-heading-color: $theme-color}div.mk-cute-theme h1:before,div.mk-cute-theme h2:before,div.mk-cute-theme h3:before,div.mk-cute-theme h4:before,div.mk-cute-theme h5:before,div.mk-cute-theme h6:before{content:"";display:block;position:absolute;left:0;top:0;bottom:0;margin:auto;background-image:url(data:image/png;base64,iVBORw0KGg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:30px;padding:12px 38px;margin:30px 0}div.mk-cute-theme h1:before{width:30px;height:30px;background-size:30px 30px}div.mk-cute-theme h2{position:relative;font-size:24px;padding:12px 36px;margin:28px 0}div.mk-cute-theme h2:before{width:28px;height:28px;background-size:28px 28px}div.mk-cute-theme h3{position:relative;font-size:18px;padding:4px 32px;margin:26px 0}div.mk-cute-theme h3:before{width:24px;height:24px;background-size:24px 24px}div.mk-cute-theme h4{position:relative;padding:4px 28px;font-size:16px;margin:22px 0}div.mk-cute-theme h4:before{width:20px;height:20px;background-size:20px 20px}div.mk-cute-theme h5{position:relative;padding:4px 26px;font-size:15px;margin:20px 0}div.mk-cute-theme h5:before{width:18px;height:18px;background-size:18px 18px}div.mk-cute-theme h6{position:relative;padding:4px 22px;font-size:14px;margin:16px 0}div.mk-cute-theme h6:before{width:16px;height:16px;background-size:16px 16px}@media (max-width: 720px){div.mk-cute-theme h1{font-size:24px}div.mk-cute-theme h2{font-size:20px}div.mk-cute-theme h3{font-size:18px}}.md-editor div.mk-cute-theme{--md-theme-link-color: $link-color;--md-theme-link-hover-color: $link-active-color}div.mk-cute-theme a{display:inline-block;border-bottom:1px solid #409eff}div.mk-cute-theme a:hover,div.mk-cute-theme a:active{border-bottom:1px solid #007bff}.mk-cute-theme ol li,.mk-cute-theme ul li{margin-bottom:0;list-style:inherit}.mk-cute-theme ol li .task-list-item,.mk-cute-theme ul li .task-list-item{list-style:none}.mk-cute-theme ol li .task-list-item ul,.mk-cute-theme ol li .task-list-item ol,.mk-cute-theme ul li .task-list-item ul,.mk-cute-theme ul li .task-list-item ol{margin-top:0}.mk-cute-theme ol ul,.mk-cute-theme ol ol,.mk-cute-theme ul ul,.mk-cute-theme ul ol{margin-top:3px}.mk-cute-theme ol li{padding-left:6px}.mk-cute-theme p{line-height:inherit;margin-top:22px;margin-bottom:22px}.md-editor div.mk-cute-theme{--md-theme-quote-color: #fff;--md-theme-quote-border: 4px solid #409eff;--md-theme-quote-bg-color: rgba(54, 172, 225, .75)}.md-editor-dark div.mk-cute-theme{--md-theme-quote-color: inherit;--md-theme-quote-border: 4px solid #265d97;--md-theme-quote-bg-color: rgba(18, 80, 108, .75)}div.mk-cute-theme blockquote{position:relative;padding:8px 26px;margin:16px 0;border-radius:5px}div.mk-cute-theme blockquote:before{content:"❝";top:10px;left:8px;color:#409eff;font-size:20px;line-height:1;font-weight:700;position:absolute;opacity:.7}div.mk-cute-theme blockquote:after{content:"❞";font-size:20px;position:absolute;right:8px;bottom:0;color:#409eff;opacity:.7}div.mk-cute-theme blockquote>p,div.mk-cute-theme blockquote ul li,div.mk-cute-theme blockquote ol li{color:var(--md-theme-quote-color)}.md-editor div.mk-cute-theme{--md-theme-table-color: #000;--md-theme-table-border-color: #f6f6f6;--md-theme-table-thead-bg-color: #f6f6f6;--md-theme-table-stripe-color: #fcfcfc}.md-editor-dark div.mk-cute-theme{--md-theme-table-color: inherit;--md-theme-table-border-color: #1c1c1c;--md-theme-table-thead-bg-color: rgba(28, 28, 28, .631372549);--md-theme-table-stripe-color: rgba(28, 28, 28, .631372549)}div.mk-cute-theme table{display:inline-block;width:auto;max-width:100%;overflow:auto;border:solid 1px var(--md-theme-table-border-color)}div.mk-cute-theme table thead{background-color:var(--md-theme-table-thead-bg-color);color:var(--md-theme-table-color);text-align:left}div.mk-cute-theme table tr th,div.mk-cute-theme table tr td{padding:12px 7px;line-height:24px;border:none}div.mk-cute-theme table tr td{min-width:120px}div.mk-cute-theme blockquote table tbody{color:var(--md-theme-color)}div.mk-cute-theme blockquote table tr{background-color:var(--md-theme-table-stripe-color)}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.md-editor div.mk-cute-theme{--md-theme-color: #36ace1;background-image:linear-gradient(90deg,#323a4240 3%,#0000 3%),linear-gradient(360deg,#323a4240 3%,#0000 3%)}.md-editor-dark div.mk-cute-theme{background-image:linear-gradient(90deg,#d9eafb40 3%,#0000 3%),linear-gradient(360deg,#d9eafb40 3%,#0000 3%);--md-theme-bg-color-scrollbar-thumb: #4d4d4d}div.mk-cute-theme{word-break:break-word;line-height:1.75;font-weight:400;overflow-x:hidden;background-size:20px 20px;background-position:center center}div.mk-cute-theme hr{position:relative;width:98%;height:1px;border:none;margin-top:32px;margin-bottom:32px;background-image:linear-gradient(to right,#36ace1,#dff0fe,#36ace1);overflow:visible}div.mk-cute-theme del{color:#36ace1}.md-editor div.smart-blue-theme{--md-theme-code-inline-color: #d63200;--md-theme-code-inline-bg-color: #fff5f5;--md-theme-code-block-color: #333;--md-theme-code-block-bg-color: #f8f8f8;--md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color)}.md-editor-dark div.smart-blue-theme{--md-theme-code-inline-color: #e06c75;--md-theme-code-inline-bg-color: #1a1a1a;--md-theme-code-block-color: #999;--md-theme-code-block-bg-color: #1a1a1a;--md-theme-code-before-bg-color: var(--md-theme-code-block-bg-color)}div.smart-blue-theme code{overflow-x:auto;padding:.065em .4em}div.smart-blue-theme .md-editor-code pre{font-family:Menlo,Monaco,Consolas,Courier New,monospace}div.smart-blue-theme .md-editor-code pre code{padding:22px 12px;margin:0;word-break:normal}div.smart-blue-theme .md-editor-code pre code span[rn-wrapper]{top:22px}.md-editor div.smart-blue-theme{--md-theme-heading-color: #135ce0}div.smart-blue-theme h1,div.smart-blue-theme h2,div.smart-blue-theme h3,div.smart-blue-theme h4,div.smart-blue-theme h5,div.smart-blue-theme h6{padding:30px 0;margin:0}div.smart-blue-theme h1 a,div.smart-blue-theme h2 a,div.smart-blue-theme h3 a,div.smart-blue-theme h4 a,div.smart-blue-theme h5 a,div.smart-blue-theme h6 a{border:none}div.smart-blue-theme h1{position:relative;text-align:center;font-size:22px;margin:50px 0}div.smart-blue-theme h2{position:relative;font-size:20px;border-left:4px solid;padding:0 0 0 10px;margin:30px 0}div.smart-blue-theme h3{font-size:16px}.smart-blue-theme img{margin:0 auto}.md-editor div.smart-blue-theme{--md-theme-link-color: #036aca}.md-editor-dark div.smart-blue-theme{--md-theme-link-color: #2d7dc7}div.smart-blue-theme a{font-weight:400}.smart-blue-theme ul,.smart-blue-theme ol{margin-top:1em}.smart-blue-theme li{line-height:2;margin-bottom:0;list-style:inherit}.smart-blue-theme p{line-height:2;font-weight:400}.smart-blue-theme *+p{margin-top:16px}.md-editor div.smart-blue-theme{--md-theme-quote-color: #666;--md-theme-quote-bg-color: #fff9f9;--md-theme-quote-border-color: #b2aec5}.md-editor-dark div.smart-blue-theme{--md-theme-quote-color: #999;--md-theme-quote-bg-color: #2a2a2a;--md-theme-quote-border-color: #0063bb}div.smart-blue-theme blockquote{background-color:var(--md-theme-quote-bg-color);margin:2em 0;padding:2px 20px;border-left:4px solid var(--md-theme-quote-border-color)}div.smart-blue-theme blockquote p{color:var(--md-theme-quote-color);line-height:2}.md-editor div.smart-blue-theme{--md-theme-table-td-border-color: #dfe2e5;--md-theme-table-stripe-color: #f6f8fa}.md-editor-dark div.smart-blue-theme{--md-theme-table-td-border-color: #2d2d2d;--md-theme-table-stripe-color: #0c0c0c}div.smart-blue-theme table{border-collapse:collapse;margin:1rem 0;overflow-x:auto}div.smart-blue-theme table tr th,div.smart-blue-theme table tr td{padding:.6em 1em}div.smart-blue-theme blockquote table{line-height:initial}div.smart-blue-theme blockquote table tr th,div.smart-blue-theme blockquote table tr td{border-color:var(--md-theme-border-color-inset)}div.smart-blue-theme blockquote table tbody tr:nth-child(n){background-color:inherit}.md-editor .smart-blue-theme{--md-theme-color: #595959;background-image:linear-gradient(90deg,#3c0a1e0a 3%,#0000 3%),linear-gradient(360deg,#3c0a1e0a 3%,#0000 3%)}.md-editor-dark .smart-blue-theme{--md-theme-color: #999;background-image:linear-gradient(90deg,#cfcfcf0a 3%,#fff0 3%),linear-gradient(360deg,#cfcfcf0a 3%,#fff0 3%)}div.smart-blue-theme{color:var(--md-theme-color);font-family:-apple-system,system-ui,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif;background-size:20px 20px;background-position:center center}div.smart-blue-theme strong,div.smart-blue-theme em strong{color:#036aca}div.smart-blue-theme hr{border-top:1px solid #135ce0}.md-editor-checkbox{cursor:pointer;width:12px;height:12px;border:1px solid var(--md-border-color);background-color:var(--md-bk-color-outstand);border-radius:2px;line-height:1;text-align:center}.md-editor-checkbox:after{content:"";font-weight:700}.md-editor-checkbox-checked:after{content:"✓"}.md-editor-divider{position:relative;display:inline-block;width:1px;top:.1em;height:.9em;margin:0 8px;background-color:var(--md-border-color)}.md-editor-dropdown{overflow:hidden;box-sizing:border-box;position:absolute;transition:all .3s;opacity:1;z-index:10000;background-color:var(--md-bk-color)}.md-editor-dropdown-hidden{opacity:0;z-index:-10000}.md-editor-dropdown-overlay{margin-top:6px}.md-editor-modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20000;height:100%;background-color:var(--md-modal-mask)}.md-editor-modal{display:block;background-color:var(--md-bk-color);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;border-radius:3px;border:1px solid var(--md-border-color);position:fixed;z-index:20001;box-shadow:var(--md-modal-shadow)}.md-editor-modal-header{cursor:grab;display:flex;justify-content:space-between;padding:10px 24px;color:var(--md-color);font-weight:600;font-size:16px;line-height:22px;word-wrap:break-word;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-bottom:1px solid var(--md-border-color);position:relative}.md-editor-modal-body{padding:20px;font-size:14px;word-wrap:break-word;height:calc(100% - 43px);box-sizing:border-box}.md-editor-modal .md-editor-modal-func{position:absolute;top:10px;right:10px}.md-editor-modal .md-editor-modal-func .md-editor-modal-adjust,.md-editor-modal .md-editor-modal-func .md-editor-modal-close{cursor:pointer;width:24px;height:24px;line-height:24px;text-align:center;display:inline-block}.md-editor-modal .md-editor-modal-func .md-editor-modal-adjust{padding-right:10px}.animation{animation-duration:.15s;animation-fill-mode:forwards}@keyframes zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}.zoom-in{animation-name:zoomIn;animation-duration:.15s;animation-fill-mode:forwards}@keyframes zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}.zoom-out{animation-name:zoomOut;animation-duration:.15s;animation-fill-mode:forwards}.md-editor-content{position:relative;display:flex;flex:1;height:0;flex-shrink:0}.md-editor-resize-operate{position:absolute;width:2px;height:100%;background-color:var(--md-bk-color);z-index:1;cursor:col-resize}.md-editor-input-wrapper{box-sizing:border-box}.md-editor-html{font-size:16px;word-break:break-all}.md-editor-footer{height:24px;flex-shrink:0;font-size:12px;color:var(--md-color);border-top:1px solid var(--md-border-color);display:flex;justify-content:space-between}.md-editor-footer-item{display:inline-flex;align-items:center;height:100%;padding:0 10px}.md-editor-footer-item+.md-editor-footer-item{padding-left:0}.md-editor-footer-label{padding-right:5px;line-height:1}.md-editor-clip{position:relative;display:flex;height:calc(100% - 52px)}.md-editor-clip-main,.md-editor-clip-preview{width:50%;height:100%;border:1px solid var(--md-border-color)}.md-editor-clip-main{margin-right:1em}.md-editor-clip-main .md-editor-clip-cropper{position:relative;width:100%;height:100%}.md-editor-clip-main .md-editor-clip-cropper .md-editor-clip-delete{position:absolute;top:0;right:0;font-size:0;background-color:var(--md-bk-color-outstand);border-bottom-left-radius:4px;color:var(--md-color);cursor:pointer}.md-editor-clip-main .md-editor-clip-upload{display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:pointer}.md-editor-clip-main .md-editor-clip-upload .md-editor-icon,.md-editor-clip-main .md-editor-clip-upload .md-editor-iconfont{width:auto;height:40px;font-size:40px}.md-editor-clip-preview-target{width:100%;height:100%;overflow:hidden}.md-editor-form-item{margin-bottom:20px;text-align:center}.md-editor-form-item:last-of-type{margin-bottom:0}.md-editor-label{font-size:14px;color:var(--md-color);width:80px;text-align:center;display:inline-block}.md-editor-input{border-radius:4px;padding:4px 11px;color:var(--md-color);font-size:14px;line-height:1.5715;background-color:var(--md-bk-color);background-image:none;border:1px solid var(--md-border-color);transition:all .2s}.md-editor-input:focus,.md-editor-input:hover{border-color:var(--md-border-hover-color);outline:0}.md-editor-input:focus{border-color:var(--md-border-active-color)}.md-editor-btn{font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;border:1px solid var(--md-border-color);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;height:32px;padding:0 15px;font-size:14px;border-radius:4px;transition:all .2s linear;color:var(--md-color);background-color:var(--md-bk-color);border-color:var(--md-border-color);margin-left:10px}.md-editor-btn:first-of-type{margin-left:0}.md-editor-btn:hover{color:var(--md-hover-color);background-color:var(--md-bk-color);border-color:var(--md-border-hover-color)}.md-editor-btn-row{width:100%}@media (max-width: 688px){.md-editor-modal-clip .md-editor-modal{max-width:calc(100% - 20px);max-height:calc(100% - 20px);margin:10px;left:0!important}.md-editor-modal-clip .md-editor-clip{flex-direction:column}.md-editor-modal-clip .md-editor-clip-main,.md-editor-modal-clip .md-editor-clip-preview{width:100%;height:0;flex:1}.md-editor-modal-clip .md-editor-clip-main{margin-bottom:1em}}.md-editor-menu{margin:0;padding:0;border-radius:3px;border:1px solid var(--md-border-color);background-color:inherit}.md-editor-menu-item{list-style:none;font-size:12px;color:var(--md-color);padding:4px 10px;cursor:pointer;line-height:16px}.md-editor-menu-item:first-of-type{padding-top:8px}.md-editor-menu-item:last-of-type{padding-bottom:8px}.md-editor-menu-item:hover{background-color:var(--md-bk-hover-color)}.md-editor-table-shape{padding:4px;border-radius:3px;border:1px solid var(--md-border-color);display:flex;flex-direction:column}.md-editor-table-shape-row{display:flex}.md-editor-table-shape-col{padding:2px;cursor:pointer}.md-editor-table-shape-col-default{width:16px;height:16px;background-color:#e0e0e0;border-radius:3px;transition:all .2s}.md-editor-table-shape-col-include{background-color:#aaa}.md-editor-toolbar-wrapper{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;flex-shrink:0;padding:4px;border-bottom:1px solid var(--md-border-color)}.md-editor-toolbar-wrapper::-webkit-scrollbar{height:0!important}.md-editor-toolbar-wrapper .md-editor-toolbar{display:flex;justify-content:space-between;align-items:center;box-sizing:content-box}.md-editor-toolbar-wrapper .md-editor-toolbar-item{display:flex;flex-direction:column;align-items:center;margin:0 2px;padding:0 2px;transition:all .3s;border-radius:3px;cursor:pointer;list-style:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center}.md-editor-toolbar-wrapper .md-editor-toolbar-item-name{font-size:12px;word-break:keep-all;white-space:nowrap}.md-editor-toolbar-wrapper .md-editor-toolbar-item:hover,.md-editor-toolbar-wrapper .md-editor-toolbar-active{background-color:var(--md-bk-color-outstand)}.md-editor-toolbar-wrapper .md-editor-toolbar-left,.md-editor-toolbar-wrapper .md-editor-toolbar-right{padding:1px 0;display:flex;align-items:center}.md-editor-toolbar-wrapper .md-editor-stn .md-editor-toolbar-item{padding:0 6px}.md-editor-dark .md-editor-table-shape-col-default{background-color:#222}.md-editor-dark .md-editor-table-shape-col-include{background-color:#555}.md-editor .cm-editor{font-size:14px;height:100%}.md-editor .cm-editor.cm-focused{outline:none}.md-editor .cm-editor .cm-tooltip.cm-tooltip-autocomplete{border-radius:3px}.md-editor .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul{border-radius:3px;min-width:-moz-fit-content;min-width:fit-content;max-width:-moz-fit-content;max-width:fit-content}.md-editor .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul li{background-color:var(--md-bk-color);color:var(--md-color);padding:4px 10px;line-height:16px}.md-editor .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul li .cm-completionIcon{width:auto}.md-editor .cm-editor .cm-tooltip.cm-tooltip-autocomplete>ul li[aria-selected]{background-color:var(--md-bk-hover-color)}.md-editor .cm-editor .cm-tooltip.cm-tooltip-autocomplete .cm-completionInfo{margin-top:-2px;margin-left:3px;padding:4px 9px;border-radius:3px;overflow:hidden;background-color:var(--md-bk-hover-color);color:var(--md-color)}.md-editor .has-preview .cm-scroller{overflow-y:scroll}.md-editor .cm-scroller .cm-content[contenteditable=true]{margin:10px;min-height:calc(100% - 20px)}.md-editor .cm-scroller .cm-gutters+.cm-content[contenteditable=true]{margin:0;min-height:100%}.md-editor .cm-scroller .cm-line{line-height:inherit}.md-editor .ͼ1 .cm-scroller{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace;line-height:20px}.md-editor .cm-search .cm-textfield{border-radius:4px;padding:4px 11px;color:var(--md-color);font-size:10px;background-image:none;border:1px solid var(--md-border-color);transition:all .2s}.md-editor .cm-search .cm-textfield:focus,.md-editor .cm-search .cm-textfield:hover{border-color:var(--md-border-hover-color);outline:0}.md-editor .cm-search .cm-textfield:focus{border-color:var(--md-border-active-color)}.md-editor .cm-search .cm-button{font-weight:400;text-align:center;vertical-align:middle;cursor:pointer;border:1px solid var(--md-border-color);white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;height:20px;padding:0 15px;font-size:10px;border-radius:4px;transition:all .2s linear;color:var(--md-color);background-color:inherit;background-image:none;border-color:var(--md-border-color)}.md-editor .cm-search .cm-button:first-of-type{margin-left:0}.md-editor .cm-search .cm-button:hover{color:var(--md-hover-color);background-color:inherit;border-color:var(--md-border-hover-color)}.md-editor .cm-search input[type=checkbox]{vertical-align:sub}.md-editor .cm-search input[type=checkbox]:after{display:block;content:"";font-weight:700;cursor:pointer;width:12px;height:12px;border:1px solid var(--md-border-color);background-color:var(--md-bk-color-outstand);border-radius:2px;line-height:1;text-align:center}.md-editor .cm-search input[type=checkbox]:checked:after{content:"✓";color:var(--md-color)}.md-editor .cm-search button[name=close]{color:inherit;cursor:pointer;right:6px}.md-editor-catalog-editor{--md-color: #3f4a54;--md-hover-color: #000;--md-bk-color: #fff;--md-bk-color-outstand: #f2f2f2;--md-bk-hover-color: #f5f7fa;--md-border-color: #e6e6e6;--md-border-hover-color: #b9b9b9;--md-border-active-color: #999;--md-modal-mask: #00000073;--md-modal-shadow: 0px 6px 24px 2px #00000019;--md-scrollbar-bg-color: #e2e2e2;--md-scrollbar-thumb-color: #0000004d;--md-scrollbar-thumb-hover-color: #00000059;--md-scrollbar-thumb-active-color: #00000061;position:absolute;overflow:auto;top:0;right:0;height:100%;background-color:var(--md-bk-color-outstand);border-left:1px solid var(--md-border-color);width:200px;box-sizing:border-box;margin:0;padding:5px 10px;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:"tnum";z-index:2}.md-editor-catalog-indicator{height:18px;width:4px;background-color:#73d13d;position:absolute;border-radius:4px;transition:top .3s}.md-editor-catalog>.md-editor-catalog-link{padding:5px 8px}.md-editor-catalog-link{padding:5px 0 5px 1em;display:flex;flex-direction:column}.md-editor-catalog-link span{display:inline-block;width:100%;position:relative;overflow:hidden;color:var(--md-color);white-space:nowrap;text-overflow:ellipsis;transition:color .3s;cursor:pointer;line-height:18px}.md-editor-catalog-link span:hover{color:#73d13d}.md-editor-catalog-wrapper>.md-editor-catalog-link{padding-top:5px;padding-bottom:5px}.md-editor-catalog-wrapper>.md-editor-catalog-link:first-of-type{padding-top:10px}.md-editor-catalog-wrapper>.md-editor-catalog-link:last-of-type{padding-bottom:0}.md-editor-catalog-active>span{color:#73d13d}.md-editor-catalog-dark{--md-color: #999;--md-hover-color: #bbb;--md-bk-color: #000;--md-bk-color-outstand: #333;--md-bk-hover-color: #1b1a1a;--md-border-color: #2d2d2d;--md-border-hover-color: #636262;--md-border-active-color: #777;--md-modal-mask: #00000073;--md-modal-shadow: 0px 6px 24px 2px #00000066;--md-scrollbar-bg-color: #0f0f0f;--md-scrollbar-thumb-color: #2d2d2d;--md-scrollbar-thumb-hover-color: #3a3a3a;--md-scrollbar-thumb-active-color: #3a3a3a}.md-editor{--md-color: #3f4a54;--md-hover-color: #000;--md-bk-color: #fff;--md-bk-color-outstand: #f2f2f2;--md-bk-hover-color: #f5f7fa;--md-border-color: #e6e6e6;--md-border-hover-color: #b9b9b9;--md-border-active-color: #999;--md-modal-mask: #00000073;--md-modal-shadow: 0px 6px 24px 2px #00000019;--md-scrollbar-bg-color: #e2e2e2;--md-scrollbar-thumb-color: #0000004d;--md-scrollbar-thumb-hover-color: #00000059;--md-scrollbar-thumb-active-color: #00000061;color:var(--md-color);font-family:-apple-system,BlinkMacSystemFont,Segoe UI Variable,Segoe UI,system-ui,ui-sans-serif,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";width:100%;height:500px;position:relative;box-sizing:border-box;border:1px solid var(--md-border-color);display:flex;flex-direction:column;overflow:hidden;background-color:var(--md-bk-color)}.md-editor ::-webkit-scrollbar{width:6px;height:6px}.md-editor ::-webkit-scrollbar-corner,.md-editor ::-webkit-scrollbar-track{background-color:var(--md-scrollbar-bg-color)}.md-editor ::-webkit-scrollbar-thumb{border-radius:2px;background-color:var(--md-scrollbar-thumb-color)}.md-editor ::-webkit-scrollbar-button:vertical{display:none}.md-editor ::-webkit-scrollbar-thumb:vertical:hover{background-color:var(--md-scrollbar-thumb-hover-color)}.md-editor ::-webkit-scrollbar-thumb:vertical:active{background-color:var(--md-scrollbar-thumb-active-color)}.md-editor .md-editor-fullscreen{position:fixed!important;top:0;right:0;bottom:0;left:0;width:auto!important;height:auto!important;z-index:10000}svg.md-editor-icon{width:16px;height:16px;padding:4px;fill:none;overflow:hidden;display:block}.md-editor .lucide-list-icon,.md-editor .lucide-list-ordered-icon,.md-editor .lucide-list-todo-icon{width:18px;height:18px;padding:3px}.md-editor-preview-wrapper{position:relative;flex:1;box-sizing:border-box;overflow:auto;padding:10px 20px}.md-editor-preview{font-size:16px;word-break:break-all;overflow:hidden}.md-editor-modal-container{--md-color: #3f4a54;--md-hover-color: #000;--md-bk-color: #fff;--md-bk-color-outstand: #f2f2f2;--md-bk-hover-color: #f5f7fa;--md-border-color: #e6e6e6;--md-border-hover-color: #b9b9b9;--md-border-active-color: #999;--md-modal-mask: #00000073;--md-modal-shadow: 0px 6px 24px 2px #00000019;--md-scrollbar-bg-color: #e2e2e2;--md-scrollbar-thumb-color: #0000004d;--md-scrollbar-thumb-hover-color: #00000059;--md-scrollbar-thumb-active-color: #00000061;color:var(--md-color);font-family:-apple-system,BlinkMacSystemFont,Segoe UI Variable,Segoe UI,system-ui,ui-sans-serif,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}.md-editor-modal-container ::-webkit-scrollbar{width:6px;height:6px}.md-editor-modal-container ::-webkit-scrollbar-corner,.md-editor-modal-container ::-webkit-scrollbar-track{background-color:var(--md-scrollbar-bg-color)}.md-editor-modal-container ::-webkit-scrollbar-thumb{border-radius:2px;background-color:var(--md-scrollbar-thumb-color)}.md-editor-modal-container ::-webkit-scrollbar-button:vertical{display:none}.md-editor-modal-container ::-webkit-scrollbar-thumb:vertical:hover{background-color:var(--md-scrollbar-thumb-hover-color)}.md-editor-modal-container ::-webkit-scrollbar-thumb:vertical:active{background-color:var(--md-scrollbar-thumb-active-color)}.md-editor-modal-container .lucide-xicon{width:20px;height:20px;padding:2px}.md-editor-previewOnly{border:none;height:auto}.md-editor-previewOnly .md-editor-content{height:100%}.md-editor-previewOnly .md-editor-preview{padding:0}.md-editor-dark,.md-editor-modal-container[data-theme=dark]{--md-color: #999;--md-hover-color: #bbb;--md-bk-color: #000;--md-bk-color-outstand: #333;--md-bk-hover-color: #1b1a1a;--md-border-color: #2d2d2d;--md-border-hover-color: #636262;--md-border-active-color: #777;--md-modal-mask: #00000073;--md-modal-shadow: 0px 6px 24px 2px #00000066;--md-scrollbar-bg-color: #0f0f0f;--md-scrollbar-thumb-color: #2d2d2d;--md-scrollbar-thumb-hover-color: #3a3a3a;--md-scrollbar-thumb-active-color: #3a3a3a}.medium-zoom-overlay,.medium-zoom-image--opened{z-index:100001}.md-editor-fullscreen{position:fixed!important;top:0;right:0;bottom:0;left:0;width:auto!important;height:auto!important;z-index:10000}[data-v-071fa62a] .md-editor-toolbar-item svg.md-editor-icon{height:1.5rem;width:1.5rem}.button-disabled[data-v-654ff384]{opacity:.5;cursor:not-allowed}.pagination-button[data-v-654ff384]{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.pagination-button[data-v-654ff384]:hover{--tw-bg-opacity: 1;background-color:rgb(78 78 78 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}.page-button[data-v-654ff384]{height:2.5rem;width:2.5rem;padding:0}.md-editor-dark[data-v-1848d10c]{font-size:.875rem;line-height:1.25rem;--tw-bg-opacity: 1;background-color:rgb(53 53 53 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}[data-v-1848d10c] .md-editor-preview-wrapper,[data-v-1848d10c] .md-editor-preview,[data-v-1848d10c] .md-editor-preview p,[data-v-1848d10c] .md-editor-preview li,[data-v-1848d10c] .md-editor-preview table,[data-v-1848d10c] .md-editor-preview h1,[data-v-1848d10c] .md-editor-preview h2,[data-v-1848d10c] .md-editor-preview h3,[data-v-1848d10c] .md-editor-preview h4,[data-v-1848d10c] .md-editor-preview h5,[data-v-1848d10c] .md-editor-preview h6{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}[data-v-1848d10c] .md-editor-preview code{--tw-bg-opacity: 1;background-color:rgb(66 66 66 / var(--tw-bg-opacity))}[data-v-1848d10c] .md-editor-preview code{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}[data-v-1848d10c] .md-editor-preview blockquote{border-left-width:4px}[data-v-1848d10c] .md-editor-preview blockquote{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}[data-v-1848d10c] .md-editor-preview blockquote{--tw-text-opacity: 1;color:rgb(249 250 251 / var(--tw-text-opacity))}[data-v-1848d10c] [role=tablist]{display:inline-flex;min-width:-moz-min-content;min-width:min-content}[data-v-1848d10c] [data-radix-scroll-area-viewport]{width:100%}.Checkpoint[data-v-1848d10c]{background:#6d28d966}.LoRA[data-v-1848d10c]{background:#f43f5e66}.Controlnet[data-v-1848d10c]{background:#fff6}.VAE[data-v-1848d10c]{background:#eab30866}.Upscaler[data-v-1848d10c]{background:#45f43f66}.Embeddings[data-v-1848d10c]{background:#001aff66}.Workflow[data-v-1848d10c]{background:#00b2ff66}`)),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})(); +(function(Vt,sn){typeof exports=="object"&&typeof module<"u"?sn(exports):typeof define=="function"&&define.amd?define(["exports"],sn):(Vt=typeof globalThis<"u"?globalThis:Vt||self,sn(Vt.bizyAirLib={}))})(this,function(Vt){"use strict";var D8e=Object.defineProperty;var _H=Vt=>{throw TypeError(Vt)};var N8e=(Vt,sn,mn)=>sn in Vt?D8e(Vt,sn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):Vt[sn]=mn;var jt=(Vt,sn,mn)=>N8e(Vt,typeof sn!="symbol"?sn+"":sn,mn),qC=(Vt,sn,mn)=>sn.has(Vt)||_H("Cannot "+mn);var he=(Vt,sn,mn)=>(qC(Vt,sn,"read from private field"),mn?mn.call(Vt):sn.get(Vt)),on=(Vt,sn,mn)=>sn.has(Vt)?_H("Cannot add the same private member more than once"):sn instanceof WeakSet?sn.add(Vt):sn.set(Vt,mn),Et=(Vt,sn,mn,Yt)=>(qC(Vt,sn,"write to private field"),Yt?Yt.call(Vt,mn):sn.set(Vt,mn),mn),it=(Vt,sn,mn)=>(qC(Vt,sn,"access private method"),mn);var hS=(Vt,sn,mn,Yt)=>({set _($l){Et(Vt,sn,$l,mn)},get _(){return he(Vt,sn,Yt)}});var lH,bs,ff,cH,uH,To,da,wo,xo,pf,hf,yr,$o,fr,Cn,Ct,yi,Oa,si,Ar,Po,Ir,Ro,Qo,fa,ko,Cc,vi,Ze,GC,ld,El,km,pa,bH,cd,mf,Cm,Ic,Dc,ZC,mS,gS,An,HC,Dm,Nc,KC;var sn={};/** +* @vue/shared v3.5.12 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function mn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Yt=sn.NODE_ENV!=="production"?Object.freeze({}):{},$l=sn.NODE_ENV!=="production"?Object.freeze([]):[],pr=()=>{},EH=()=>!1,Sf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Nm=e=>e.startsWith("onUpdate:"),Bn=Object.assign,_S=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},TH=Object.prototype.hasOwnProperty,Jt=(e,t)=>TH.call(e,t),ut=Array.isArray,Mc=e=>Ef(e)==="[object Map]",Mm=e=>Ef(e)==="[object Set]",eA=e=>Ef(e)==="[object Date]",vt=e=>typeof e=="function",Tn=e=>typeof e=="string",Za=e=>typeof e=="symbol",en=e=>e!==null&&typeof e=="object",bS=e=>(en(e)||vt(e))&&vt(e.then)&&vt(e.catch),tA=Object.prototype.toString,Ef=e=>tA.call(e),yS=e=>Ef(e).slice(8,-1),nA=e=>Ef(e)==="[object Object]",vS=e=>Tn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Tf=mn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),wH=mn("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Lm=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},xH=/-(\w)/g,Dr=Lm(e=>e.replace(xH,(t,n)=>n?n.toUpperCase():"")),$H=/\B([A-Z])/g,Ss=Lm(e=>e.replace($H,"-$1").toLowerCase()),Lc=Lm(e=>e.charAt(0).toUpperCase()+e.slice(1)),Es=Lm(e=>e?`on${Lc(e)}`:""),Pl=(e,t)=>!Object.is(e,t),Od=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Xm=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let rA;const wf=()=>rA||(rA=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ei(e){if(ut(e)){const t={};for(let n=0;n{if(n){const r=n.split(RH);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function xt(e){let t="";if(Tn(e))t=e;else if(ut(e))for(let n=0;nzm(n,t))}const aA=e=>!!(e&&e.__v_isRef===!0),Ot=e=>Tn(e)?e:e==null?"":ut(e)||en(e)&&(e.toString===tA||!vt(e.toString))?aA(e)?Ot(e.value):JSON.stringify(e,oA,2):String(e),oA=(e,t)=>aA(t)?oA(e,t.value):Mc(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],a)=>(n[SS(r,a)+" =>"]=i,n),{})}:Mm(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>SS(n))}:Za(t)?SS(t):en(t)&&!ut(t)&&!nA(t)?String(t):t,SS=(e,t="")=>{var n;return Za(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};var On={};function _a(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let li;class sA{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=li,!t&&li&&(this.index=(li.scopes||(li.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if($f){let t=$f;for($f=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;xf;){let t=xf;for(xf=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function dA(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function OA(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),PS(r),zH(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function $S(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fA(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fA(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Pf))return;e.globalVersion=Pf;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!$S(e)){e.flags&=-3;return}const n=fn,r=Ha;fn=e,Ha=!0;try{dA(e);const i=e.fn(e._value);(t.version===0||Pl(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{fn=n,Ha=r,OA(e),e.flags&=-3}}function PS(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),On.NODE_ENV!=="production"&&n.subsHead===e&&(n.subsHead=i),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)PS(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function zH(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ha=!0;const pA=[];function Ts(){pA.push(Ha),Ha=!1}function ws(){const e=pA.pop();Ha=e===void 0?!0:e}function hA(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fn;fn=void 0;try{t()}finally{fn=n}}}let Pf=0,BH=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class Wm{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,On.NODE_ENV!=="production"&&(this.subsHead=void 0)}track(t){if(!fn||!Ha||fn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fn)n=this.activeLink=new BH(fn,this),fn.deps?(n.prevDep=fn.depsTail,fn.depsTail.nextDep=n,fn.depsTail=n):fn.deps=fn.depsTail=n,mA(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=fn.depsTail,n.nextDep=void 0,fn.depsTail.nextDep=n,fn.depsTail=n,fn.deps===n&&(fn.deps=r)}return On.NODE_ENV!=="production"&&fn.onTrack&&fn.onTrack(Bn({effect:fn},t)),n}trigger(t){this.version++,Pf++,this.notify(t)}notify(t){wS();try{if(On.NODE_ENV!=="production")for(let n=this.subsHead;n;n=n.nextSub)n.sub.onTrigger&&!(n.sub.flags&8)&&n.sub.onTrigger(Bn({effect:n.sub},t));for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{xS()}}}function mA(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)mA(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),On.NODE_ENV!=="production"&&e.dep.subsHead===void 0&&(e.dep.subsHead=e),e.dep.subs=e}}const Vm=new WeakMap,Uc=Symbol(On.NODE_ENV!=="production"?"Object iterate":""),RS=Symbol(On.NODE_ENV!=="production"?"Map keys iterate":""),Rf=Symbol(On.NODE_ENV!=="production"?"Array iterate":"");function hr(e,t,n){if(Ha&&fn){let r=Vm.get(e);r||Vm.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Wm),i.map=r,i.key=n),On.NODE_ENV!=="production"?i.track({target:e,type:t,key:n}):i.track()}}function Ao(e,t,n,r,i,a){const o=Vm.get(e);if(!o){Pf++;return}const s=l=>{l&&(On.NODE_ENV!=="production"?l.trigger({target:e,type:t,key:n,newValue:r,oldValue:i,oldTarget:a}):l.trigger())};if(wS(),t==="clear")o.forEach(s);else{const l=ut(e),c=l&&vS(n);if(l&&n==="length"){const u=Number(r);o.forEach((d,O)=>{(O==="length"||O===Rf||!Za(O)&&O>=u)&&s(d)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),c&&s(o.get(Rf)),t){case"add":l?c&&s(o.get("length")):(s(o.get(Uc)),Mc(e)&&s(o.get(RS)));break;case"delete":l||(s(o.get(Uc)),Mc(e)&&s(o.get(RS)));break;case"set":Mc(e)&&s(o.get(Uc));break}}xS()}function FH(e,t){const n=Vm.get(e);return n&&n.get(t)}function fd(e){const t=Qt(e);return t===e?t:(hr(t,"iterate",Rf),ci(e)?t:t.map(jr))}function Ym(e){return hr(e=Qt(e),"iterate",Rf),e}const WH={__proto__:null,[Symbol.iterator](){return QS(this,Symbol.iterator,jr)},concat(...e){return fd(this).concat(...e.map(t=>ut(t)?fd(t):t))},entries(){return QS(this,"entries",e=>(e[1]=jr(e[1]),e))},every(e,t){return xs(this,"every",e,t,void 0,arguments)},filter(e,t){return xs(this,"filter",e,t,n=>n.map(jr),arguments)},find(e,t){return xs(this,"find",e,t,jr,arguments)},findIndex(e,t){return xs(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return xs(this,"findLast",e,t,jr,arguments)},findLastIndex(e,t){return xs(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return xs(this,"forEach",e,t,void 0,arguments)},includes(...e){return kS(this,"includes",e)},indexOf(...e){return kS(this,"indexOf",e)},join(e){return fd(this).join(e)},lastIndexOf(...e){return kS(this,"lastIndexOf",e)},map(e,t){return xs(this,"map",e,t,void 0,arguments)},pop(){return Qf(this,"pop")},push(...e){return Qf(this,"push",e)},reduce(e,...t){return gA(this,"reduce",e,t)},reduceRight(e,...t){return gA(this,"reduceRight",e,t)},shift(){return Qf(this,"shift")},some(e,t){return xs(this,"some",e,t,void 0,arguments)},splice(...e){return Qf(this,"splice",e)},toReversed(){return fd(this).toReversed()},toSorted(e){return fd(this).toSorted(e)},toSpliced(...e){return fd(this).toSpliced(...e)},unshift(...e){return Qf(this,"unshift",e)},values(){return QS(this,"values",jr)}};function QS(e,t,n){const r=Ym(e),i=r[t]();return r!==e&&!ci(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=n(a.value)),a}),i}const VH=Array.prototype;function xs(e,t,n,r,i,a){const o=Ym(e),s=o!==e&&!ci(e),l=o[t];if(l!==VH[t]){const d=l.apply(e,a);return s?jr(d):d}let c=n;o!==e&&(s?c=function(d,O){return n.call(this,jr(d),O,e)}:n.length>2&&(c=function(d,O){return n.call(this,d,O,e)}));const u=l.call(o,c,r);return s&&i?i(u):u}function gA(e,t,n,r){const i=Ym(e);let a=n;return i!==e&&(ci(e)?n.length>3&&(a=function(o,s,l){return n.call(this,o,s,l,e)}):a=function(o,s,l){return n.call(this,o,jr(s),l,e)}),i[t](a,...r)}function kS(e,t,n){const r=Qt(e);hr(r,"iterate",Rf);const i=r[t](...n);return(i===-1||i===!1)&&kf(n[0])?(n[0]=Qt(n[0]),r[t](...n)):i}function Qf(e,t,n=[]){Ts(),wS();const r=Qt(e)[t].apply(e,n);return xS(),ws(),r}const YH=mn("__proto__,__v_isRef,__isVue"),_A=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Za));function jH(e){Za(e)||(e=String(e));const t=Qt(this);return hr(t,"has",e),t.hasOwnProperty(e)}class bA{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const i=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(i?a?xA:wA:a?TA:EA).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const o=ut(t);if(!i){let l;if(o&&(l=WH[n]))return l;if(n==="hasOwnProperty")return jH}const s=Reflect.get(t,n,ln(t)?t:r);return(Za(n)?_A.has(n):YH(n))||(i||hr(t,"get",n),a)?s:ln(s)?o&&vS(n)?s:s.value:en(s)?i?Zm(s):Hn(s):s}}class yA extends bA{constructor(t=!1){super(!1,t)}set(t,n,r,i){let a=t[n];if(!this._isShallow){const l=$s(a);if(!ci(r)&&!$s(r)&&(a=Qt(a),r=Qt(r)),!ut(t)&&ln(a)&&!ln(r))return l?!1:(a.value=r,!0)}const o=ut(t)&&vS(n)?Number(n)e,jm=e=>Reflect.getPrototypeOf(e);function KH(e,t,n){return function(...r){const i=this.__v_raw,a=Qt(i),o=Mc(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=i[e](...r),u=n?CS:t?AS:jr;return!t&&hr(a,"iterate",l?RS:Uc),{next(){const{value:d,done:O}=c.next();return O?{value:d,done:O}:{value:s?[u(d[0]),u(d[1])]:u(d),done:O}},[Symbol.iterator](){return this}}}}function qm(e){return function(...t){if(On.NODE_ENV!=="production"){const n=t[0]?`on key "${t[0]}" `:"";_a(`${Lc(e)} operation ${n}failed: target is readonly.`,Qt(this))}return e==="delete"?!1:e==="clear"?void 0:this}}function JH(e,t){const n={get(i){const a=this.__v_raw,o=Qt(a),s=Qt(i);e||(Pl(i,s)&&hr(o,"get",i),hr(o,"get",s));const{has:l}=jm(o),c=t?CS:e?AS:jr;if(l.call(o,i))return c(a.get(i));if(l.call(o,s))return c(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!e&&hr(Qt(i),"iterate",Uc),Reflect.get(i,"size",i)},has(i){const a=this.__v_raw,o=Qt(a),s=Qt(i);return e||(Pl(i,s)&&hr(o,"has",i),hr(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=Qt(s),c=t?CS:e?AS:jr;return!e&&hr(l,"iterate",Uc),s.forEach((u,d)=>i.call(a,c(u),c(d),o))}};return Bn(n,e?{add:qm("add"),set:qm("set"),delete:qm("delete"),clear:qm("clear")}:{add(i){!t&&!ci(i)&&!$s(i)&&(i=Qt(i));const a=Qt(this);return jm(a).has.call(a,i)||(a.add(i),Ao(a,"add",i,i)),this},set(i,a){!t&&!ci(a)&&!$s(a)&&(a=Qt(a));const o=Qt(this),{has:s,get:l}=jm(o);let c=s.call(o,i);c?On.NODE_ENV!=="production"&&SA(o,s,i):(i=Qt(i),c=s.call(o,i));const u=l.call(o,i);return o.set(i,a),c?Pl(a,u)&&Ao(o,"set",i,a,u):Ao(o,"add",i,a),this},delete(i){const a=Qt(this),{has:o,get:s}=jm(a);let l=o.call(a,i);l?On.NODE_ENV!=="production"&&SA(a,o,i):(i=Qt(i),l=o.call(a,i));const c=s?s.call(a,i):void 0,u=a.delete(i);return l&&Ao(a,"delete",i,void 0,c),u},clear(){const i=Qt(this),a=i.size!==0,o=On.NODE_ENV!=="production"?Mc(i)?new Map(i):new Set(i):void 0,s=i.clear();return a&&Ao(i,"clear",void 0,void 0,o),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=KH(i,e,t)}),n}function Gm(e,t){const n=JH(e,t);return(r,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Jt(n,i)&&i in r?n:r,i,a)}const eK={get:Gm(!1,!1)},tK={get:Gm(!1,!0)},nK={get:Gm(!0,!1)},rK={get:Gm(!0,!0)};function SA(e,t,n){const r=Qt(n);if(r!==n&&t.call(e,r)){const i=yS(e);_a(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const EA=new WeakMap,TA=new WeakMap,wA=new WeakMap,xA=new WeakMap;function iK(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function aK(e){return e.__v_skip||!Object.isExtensible(e)?0:iK(yS(e))}function Hn(e){return $s(e)?e:Hm(e,!1,qH,eK,EA)}function oK(e){return Hm(e,!1,ZH,tK,TA)}function Zm(e){return Hm(e,!0,GH,nK,wA)}function Yr(e){return Hm(e,!0,HH,rK,xA)}function Hm(e,t,n,r,i){if(!en(e))return On.NODE_ENV!=="production"&&_a(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=aK(e);if(o===0)return e;const s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Io(e){return $s(e)?Io(e.__v_raw):!!(e&&e.__v_isReactive)}function $s(e){return!!(e&&e.__v_isReadonly)}function ci(e){return!!(e&&e.__v_isShallow)}function kf(e){return e?!!e.__v_raw:!1}function Qt(e){const t=e&&e.__v_raw;return t?Qt(t):e}function Ps(e){return!Jt(e,"__v_skip")&&Object.isExtensible(e)&&Um(e,"__v_skip",!0),e}const jr=e=>en(e)?Hn(e):e,AS=e=>en(e)?Zm(e):e;function ln(e){return e?e.__v_isRef===!0:!1}function xe(e){return $A(e,!1)}function Rs(e){return $A(e,!0)}function $A(e,t){return ln(e)?e:new sK(e,t)}class sK{constructor(t,n){this.dep=new Wm,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Qt(t),this._value=n?t:jr(t),this.__v_isShallow=n}get value(){return On.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||ci(t)||$s(t);t=r?t:Qt(t),Pl(t,n)&&(this._rawValue=t,this._value=r?t:jr(t),On.NODE_ENV!=="production"?this.dep.trigger({target:this,type:"set",key:"value",newValue:t,oldValue:n}):this.dep.trigger())}}function D(e){return ln(e)?e.value:e}const lK={get:(e,t,n)=>t==="__v_raw"?e:D(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return ln(i)&&!ln(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function PA(e){return Io(e)?e:new Proxy(e,lK)}class cK{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Wm,{get:r,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function uK(e){return new cK(e)}function $n(e){On.NODE_ENV!=="production"&&!kf(e)&&_a("toRefs() expects a reactive object but received a plain one.");const t=ut(e)?new Array(e.length):{};for(const n in e)t[n]=RA(e,n);return t}class dK{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return FH(Qt(this._object),this._key)}}class OK{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ui(e,t,n){return ln(e)?e:vt(e)?new OK(e):en(e)&&arguments.length>1?RA(e,t,n):xe(e)}function RA(e,t,n){const r=e[t];return ln(r)?r:new dK(e,t,n)}class fK{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Wm(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pf-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&fn!==this)return uA(this,!0),!0}get value(){const t=On.NODE_ENV!=="production"?this.dep.track({target:this,type:"get",key:"value"}):this.dep.track();return fA(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter?this.setter(t):On.NODE_ENV!=="production"&&_a("Write operation failed: computed value is readonly")}}function pK(e,t,n=!1){let r,i;vt(e)?r=e:(r=e.get,i=e.set);const a=new fK(r,i,n);return On.NODE_ENV!=="production"&&t&&!n&&(a.onTrack=t.onTrack,a.onTrigger=t.onTrigger),a}const Km={},Jm=new WeakMap;let Xc;function hK(e,t=!1,n=Xc){if(n){let r=Jm.get(n);r||Jm.set(n,r=[]),r.push(e)}else On.NODE_ENV!=="production"&&!t&&_a("onWatcherCleanup() was called when there was no active watcher to associate with.")}function mK(e,t,n=Yt){const{immediate:r,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=n,c=v=>{(n.onWarn||_a)("Invalid watch source: ",v,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=v=>i?v:ci(v)||i===!1||i===0?Qs(v,1):Qs(v);let d,O,f,p,h=!1,m=!1;if(ln(e)?(O=()=>e.value,h=ci(e)):Io(e)?(O=()=>u(e),h=!0):ut(e)?(m=!0,h=e.some(v=>Io(v)||ci(v)),O=()=>e.map(v=>{if(ln(v))return v.value;if(Io(v))return u(v);if(vt(v))return l?l(v,2):v();On.NODE_ENV!=="production"&&c(v)})):vt(e)?t?O=l?()=>l(e,2):e:O=()=>{if(f){Ts();try{f()}finally{ws()}}const v=Xc;Xc=d;try{return l?l(e,3,[p]):e(p)}finally{Xc=v}}:(O=pr,On.NODE_ENV!=="production"&&c(e)),t&&i){const v=O,E=i===!0?1/0:i;O=()=>Qs(v(),E)}const g=Fm(),_=()=>{d.stop(),g&&_S(g.effects,d)};if(a&&t){const v=t;t=(...E)=>{v(...E),_()}}let b=m?new Array(e.length).fill(Km):Km;const y=v=>{if(!(!(d.flags&1)||!d.dirty&&!v))if(t){const E=d.run();if(i||h||(m?E.some((w,T)=>Pl(w,b[T])):Pl(E,b))){f&&f();const w=Xc;Xc=d;try{const T=[E,b===Km?void 0:m&&b[0]===Km?[]:b,p];l?l(t,3,T):t(...T),b=E}finally{Xc=w}}}else d.run()};return s&&s(y),d=new lA(O),d.scheduler=o?()=>o(y,!1):y,p=v=>hK(v,!1,d),f=d.onStop=()=>{const v=Jm.get(d);if(v){if(l)l(v,4);else for(const E of v)E();Jm.delete(d)}},On.NODE_ENV!=="production"&&(d.onTrack=n.onTrack,d.onTrigger=n.onTrigger),t?r?y(!0):b=d.run():o?o(y.bind(null,!0),!0):d.run(),_.pause=d.pause.bind(d),_.resume=d.resume.bind(d),_.stop=_,_}function Qs(e,t=1/0,n){if(t<=0||!en(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,ln(e))Qs(e.value,t,n);else if(ut(e))for(let r=0;r{Qs(r,t,n)});else if(nA(e)){for(const r in e)Qs(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Qs(e[r],t,n)}return e}var ke={};const zc=[];function eg(e){zc.push(e)}function tg(){zc.pop()}let IS=!1;function ze(e,...t){if(IS)return;IS=!0,Ts();const n=zc.length?zc[zc.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=gK();if(r)pd(r,n,11,[e+t.map(a=>{var o,s;return(s=(o=a.toString)==null?void 0:o.call(a))!=null?s:JSON.stringify(a)}).join(""),n&&n.proxy,i.map(({vnode:a})=>`at <${bg(n,a.type)}>`).join(` +`),i]);else{const a=[`[Vue warn]: ${e}`,...t];i.length&&a.push(` +`,..._K(i)),console.warn(...a)}ws(),IS=!1}function gK(){let e=zc[zc.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function _K(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[` +`],...bK(n))}),t}function bK({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${bg(e.component,e.type,r)}`,a=">"+n;return e.props?[i,...yK(e.props),a]:[i+a]}function yK(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...QA(r,e[r]))}),n.length>3&&t.push(" ..."),t}function QA(e,t,n){return Tn(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ln(t)?(t=QA(e,Qt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):vt(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Qt(t),n?t:[`${e}=`,t])}const DS={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function pd(e,t,n,r){try{return r?e(...r):e()}catch(i){Cf(i,t,n)}}function Do(e,t,n,r){if(vt(e)){const i=pd(e,t,n,r);return i&&bS(i)&&i.catch(a=>{Cf(a,t,n)}),i}if(ut(e)){const i=[];for(let a=0;a>>1,i=di[r],a=Af(i);a=Af(n)?di.push(e):di.splice(EK(t),0,e),e.flags|=1,CA()}}function CA(){ng||(ng=kA.then(NA))}function AA(e){ut(e)?hd.push(...e):Rl&&e.id===-1?Rl.splice(md+1,0,e):e.flags&1||(hd.push(e),e.flags|=1),CA()}function IA(e,t,n=No+1){for(ke.NODE_ENV!=="production"&&(t=t||new Map);nAf(n)-Af(r));if(hd.length=0,Rl){Rl.push(...t);return}for(Rl=t,ke.NODE_ENV!=="production"&&(e=e||new Map),md=0;mde.id==null?e.flags&2?-1:1/0:e.id;function NA(e){ke.NODE_ENV!=="production"&&(e=e||new Map);const t=ke.NODE_ENV!=="production"?n=>NS(e,n):pr;try{for(No=0;NoSK){const r=t.i,i=r&&uE(r.type);return Cf(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}let Ka=!1;const ig=new Map;ke.NODE_ENV!=="production"&&(wf().__VUE_HMR_RUNTIME__={createRecord:MS(MA),rerender:MS(xK),reload:MS($K)});const Bc=new Map;function TK(e){const t=e.type.__hmrId;let n=Bc.get(t);n||(MA(t,e.type),n=Bc.get(t)),n.instances.add(e)}function wK(e){Bc.get(e.type.__hmrId).instances.delete(e)}function MA(e,t){return Bc.has(e)?!1:(Bc.set(e,{initialDef:ag(t),instances:new Set}),!0)}function ag(e){return BI(e)?e.__vccOpts:e}function xK(e,t){const n=Bc.get(e);n&&(n.initialDef.render=t,[...n.instances].forEach(r=>{t&&(r.render=t,ag(r.type).render=t),r.renderCache=[],Ka=!0,r.update(),Ka=!1}))}function $K(e,t){const n=Bc.get(e);if(!n)return;t=ag(t),LA(n.initialDef,t);const r=[...n.instances];for(let i=0;i{Ka=!0,a.parent.update(),Ka=!1,s.delete(a)}):a.appContext.reload?a.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),a.root.ce&&a!==a.root&&a.root.ce._removeChildStyle(o)}AA(()=>{ig.clear()})}function LA(e,t){Bn(e,t);for(const n in e)n!=="__file"&&!(n in t)&&delete e[n]}function MS(e){return(t,n)=>{try{return e(t,n)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Mo,If=[],LS=!1;function Df(e,...t){Mo?Mo.emit(e,...t):LS||If.push({event:e,args:t})}function UA(e,t){var n,r;Mo=e,Mo?(Mo.enabled=!0,If.forEach(({event:i,args:a})=>Mo.emit(i,...a)),If=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{UA(a,t)}),setTimeout(()=>{Mo||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,LS=!0,If=[])},3e3)):(LS=!0,If=[])}function PK(e,t){Df("app:init",e,t,{Fragment:Pt,Text:Uf,Comment:qr,Static:Xf})}function RK(e){Df("app:unmount",e)}const QK=US("component:added"),XA=US("component:updated"),kK=US("component:removed"),CK=e=>{Mo&&typeof Mo.cleanupBuffer=="function"&&!Mo.cleanupBuffer(e)&&kK(e)};/*! #__NO_SIDE_EFFECTS__ */function US(e){return t=>{Df(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const AK=zA("perf:start"),IK=zA("perf:end");function zA(e){return(t,n,r)=>{Df(e,t.appContext.app,t.uid,t,n,r)}}function DK(e,t,n){Df("component:emit",e.appContext.app,e,t,n)}let Kn=null,BA=null;function og(e){const t=Kn;return Kn=e,BA=e&&e.type.__scopeId||null,t}function ce(e,t=Kn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&kI(-1);const a=og(t);let o;try{o=e(...i)}finally{og(a),r._d&&kI(1)}return ke.NODE_ENV!=="production"&&XA(t),o};return r._n=!0,r._c=!0,r._d=!0,r}function FA(e){wH(e)&&ze("Do not use built-in directive ids as custom directive id: "+e)}function Ja(e,t){if(Kn===null)return ke.NODE_ENV!=="production"&&ze("withDirectives can only be used inside render functions."),e;const n=_g(Kn),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,Wc=e=>e&&(e.disabled||e.disabled===""),MK=e=>e&&(e.defer||e.defer===""),VA=e=>typeof SVGElement<"u"&&e instanceof SVGElement,YA=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,XS=(e,t)=>{const n=e&&e.to;if(Tn(n))if(t){const r=t(n);return ke.NODE_ENV!=="production"&&!r&&!Wc(e)&&ze(`Failed to locate Teleport target with selector "${n}". Note the target element must exist before the component is mounted - i.e. the target cannot be rendered by the component itself, and ideally should be outside of the entire Vue component tree.`),r}else return ke.NODE_ENV!=="production"&&ze("Current renderer does not support string target for Teleports. (missing querySelector renderer option)"),null;else return ke.NODE_ENV!=="production"&&!n&&!Wc(e)&&ze(`Invalid Teleport target: ${n}`),n},LK={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,a,o,s,l,c){const{mc:u,pc:d,pbc:O,o:{insert:f,querySelector:p,createText:h,createComment:m}}=c,g=Wc(t.props);let{shapeFlag:_,children:b,dynamicChildren:y}=t;if(ke.NODE_ENV!=="production"&&Ka&&(l=!1,y=null),e==null){const v=t.el=ke.NODE_ENV!=="production"?m("teleport start"):h(""),E=t.anchor=ke.NODE_ENV!=="production"?m("teleport end"):h("");f(v,n,r),f(E,n,r);const w=(S,x)=>{_&16&&(i&&i.isCE&&(i.ce._teleportTarget=S),u(b,S,x,i,a,o,s,l))},T=()=>{const S=t.target=XS(t.props,p),x=jA(S,t,h,f);S?(o!=="svg"&&VA(S)?o="svg":o!=="mathml"&&YA(S)&&(o="mathml"),g||(w(S,x),lg(t,!1))):ke.NODE_ENV!=="production"&&!g&&ze("Invalid Teleport target on mount:",S,`(${typeof S})`)};g&&(w(n,E),lg(t,!0)),MK(t.props)?Ti(T,a):T()}else{t.el=e.el,t.targetStart=e.targetStart;const v=t.anchor=e.anchor,E=t.target=e.target,w=t.targetAnchor=e.targetAnchor,T=Wc(e.props),S=T?n:E,x=T?v:w;if(o==="svg"||VA(E)?o="svg":(o==="mathml"||YA(E))&&(o="mathml"),y?(O(e.dynamicChildren,y,S,i,a,o,s),Lf(e,t,!0)):l||d(e,t,S,x,i,a,o,s,!1),g)T?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):sg(t,n,v,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const $=t.target=XS(t.props,p);$?sg(t,$,null,c,0):ke.NODE_ENV!=="production"&&ze("Invalid Teleport target on update:",E,`(${typeof E})`)}else T&&sg(t,E,w,c,1);lg(t,g)}},remove(e,t,n,{um:r,o:{remove:i}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:c,targetAnchor:u,target:d,props:O}=e;if(d&&(i(c),i(u)),a&&i(l),o&16){const f=a||!Wc(O);for(let p=0;pFS(p,t&&(ut(t)?t[h]:t),n,r,i));return}if(_d(r)&&!i)return;const a=r.shapeFlag&4?_g(r.component):r.el,o=i?null:a,{i:s,r:l}=e;if(ke.NODE_ENV!=="production"&&!s){ze("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,u=s.refs===Yt?s.refs={}:s.refs,d=s.setupState,O=Qt(d),f=d===Yt?()=>!1:p=>ke.NODE_ENV!=="production"&&(Jt(O,p)&&!ln(O[p])&&ze(`Template ref "${p}" used on a non-ref value. It will not work in the production build.`),XK.has(O[p]))?!1:Jt(O,p);if(c!=null&&c!==l&&(Tn(c)?(u[c]=null,f(c)&&(d[c]=null)):ln(c)&&(c.value=null)),vt(l))pd(l,s,12,[o,u]);else{const p=Tn(l),h=ln(l);if(p||h){const m=()=>{if(e.f){const g=p?f(l)?d[l]:u[l]:l.value;i?ut(g)&&_S(g,a):ut(g)?g.includes(a)||g.push(a):p?(u[l]=[a],f(l)&&(d[l]=u[l])):(l.value=[a],e.k&&(u[e.k]=l.value))}else p?(u[l]=o,f(l)&&(d[l]=o)):h?(l.value=o,e.k&&(u[e.k]=o)):ke.NODE_ENV!=="production"&&ze("Invalid template ref type:",l,`(${typeof l})`)};o?(m.id=-1,Ti(m,n)):m()}else ke.NODE_ENV!=="production"&&ze("Invalid template ref type:",l,`(${typeof l})`)}}wf().requestIdleCallback,wf().cancelIdleCallback;const _d=e=>!!e.type.__asyncLoader,WS=e=>e.type.__isKeepAlive;function zK(e,t){GA(e,"a",t)}function BK(e,t){GA(e,"da",t)}function GA(e,t,n=rr){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(cg(t,r,n),n){let i=n.parent;for(;i&&i.parent;)WS(i.parent.vnode)&&FK(r,t,n,i),i=i.parent}}function FK(e,t,n,r){const i=cg(t,e,r,!0);zi(()=>{_S(r[t],i)},n)}function cg(e,t,n=rr,r=!1){if(n){const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{Ts();const s=Wf(n),l=Do(t,n,e,o);return s(),ws(),l});return r?i.unshift(a):i.push(a),a}else if(ke.NODE_ENV!=="production"){const i=Es(DS[e].replace(/ hook$/,""));ze(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const ks=e=>(t,n=rr)=>{(!Vf||e==="sp")&&cg(e,(...r)=>t(...r),n)},ZA=ks("bm"),ht=ks("m"),HA=ks("bu"),KA=ks("u"),Lo=ks("bum"),zi=ks("um"),WK=ks("sp"),VK=ks("rtg"),YK=ks("rtc");function jK(e,t=rr){cg("ec",e,t)}const VS="components",qK="directives",JA=Symbol.for("v-ndc");function bd(e){return Tn(e)?eI(VS,e,!1)||e:e||JA}function GK(e){return eI(qK,e)}function eI(e,t,n=!0,r=!1){const i=Kn||rr;if(i){const a=i.type;if(e===VS){const s=uE(a,!1);if(s&&(s===t||s===Dr(t)||s===Lc(Dr(t))))return a}const o=tI(i[e]||a[e],t)||tI(i.appContext[e],t);if(!o&&r)return a;if(ke.NODE_ENV!=="production"&&n&&!o){const s=e===VS?` +If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.`:"";ze(`Failed to resolve ${e.slice(0,-1)}: ${t}${s}`)}return o}else ke.NODE_ENV!=="production"&&ze(`resolve${Lc(e.slice(0,-1))} can only be used in render() or setup().`)}function tI(e,t){return e&&(e[t]||e[Dr(t)]||e[Lc(Dr(t))])}function Oi(e,t,n,r){let i;const a=n,o=ut(e);if(o||Tn(e)){const s=o&&Io(e);let l=!1;s&&(l=!ci(e),e=Ym(e)),i=new Array(e.length);for(let c=0,u=e.length;ct(s,l,void 0,a));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,c=s.length;l{const a=r.fn(...i);return a&&(a.key=r.key),a}:r.fn)}return e}function we(e,t,n={},r,i){if(Kn.ce||Kn.parent&&_d(Kn.parent)&&Kn.parent.ce)return t!=="default"&&(n.name=t),fe(),Se(Pt,null,[te("slot",n,r&&r())],64);let a=e[t];ke.NODE_ENV!=="production"&&a&&a.length>1&&(ze("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),a=()=>[]),a&&a._c&&(a._d=!1),fe();const o=a&&nI(a(n)),s=n.key||o&&o.key,l=Se(Pt,{key:(s&&!Za(s)?s:`_${t}`)+(!o&&r?"_fb":"")},o||(r?r():[]),o&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function nI(e){return e.some(t=>kl(t)?!(t.type===qr||t.type===Pt&&!nI(t.children)):!0)?e:null}function HK(e,t){const n={};if(ke.NODE_ENV!=="production"&&!en(e))return ze("v-on with no argument expects an object value."),n;for(const r in e)n[Es(r)]=e[r];return n}const YS=e=>e?MI(e)?_g(e):YS(e.parent):null,Vc=Bn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>ke.NODE_ENV!=="production"?Yr(e.props):e.props,$attrs:e=>ke.NODE_ENV!=="production"?Yr(e.attrs):e.attrs,$slots:e=>ke.NODE_ENV!=="production"?Yr(e.slots):e.slots,$refs:e=>ke.NODE_ENV!=="production"?Yr(e.refs):e.refs,$parent:e=>YS(e.parent),$root:e=>YS(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>HS(e),$forceUpdate:e=>e.f||(e.f=()=>{rg(e.update)}),$nextTick:e=>e.n||(e.n=bt.bind(e.proxy)),$watch:e=>CJ.bind(e)}),jS=e=>e==="_"||e==="$",qS=(e,t)=>e!==Yt&&!e.__isScriptSetup&&Jt(e,t),rI={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:a,accessCache:o,type:s,appContext:l}=e;if(ke.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const f=o[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return a[t]}else{if(qS(r,t))return o[t]=1,r[t];if(i!==Yt&&Jt(i,t))return o[t]=2,i[t];if((c=e.propsOptions[0])&&Jt(c,t))return o[t]=3,a[t];if(n!==Yt&&Jt(n,t))return o[t]=4,n[t];ZS&&(o[t]=0)}}const u=Vc[t];let d,O;if(u)return t==="$attrs"?(hr(e.attrs,"get",""),ke.NODE_ENV!=="production"&&pg()):ke.NODE_ENV!=="production"&&t==="$slots"&&hr(e,"get",t),u(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==Yt&&Jt(n,t))return o[t]=4,n[t];if(O=l.config.globalProperties,Jt(O,t))return O[t];ke.NODE_ENV!=="production"&&Kn&&(!Tn(t)||t.indexOf("__v")!==0)&&(i!==Yt&&jS(t[0])&&Jt(i,t)?ze(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===Kn&&ze(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,n){const{data:r,setupState:i,ctx:a}=e;return qS(i,t)?(i[t]=n,!0):ke.NODE_ENV!=="production"&&i.__isScriptSetup&&Jt(i,t)?(ze(`Cannot mutate - - diff --git a/src/bizy_server/templates/upload_model.html b/src/bizy_server/templates/upload_model.html deleted file mode 100644 index c993ac90..00000000 --- a/src/bizy_server/templates/upload_model.html +++ /dev/null @@ -1,97 +0,0 @@ - - - - - - Upload Model - - - -

BizyAir Model List

-
-
Lora
-
Checkpoints
-
-
- - - - diff --git a/src/bizy_server/upload_manager.py b/src/bizy_server/upload_manager.py deleted file mode 100644 index a5c9617c..00000000 --- a/src/bizy_server/upload_manager.py +++ /dev/null @@ -1,201 +0,0 @@ -import asyncio -import base64 -import hashlib -import os -import threading -import time - -import aiofiles -import crcmod -import oss2 - -from .errno import FILE_NOT_EXISTS_ERR, UPLOAD_ERR -from .error_handler import ErrorHandler -from .oss import AliOssStorageClient -from .utils import is_string_valid - - -class UploadManager: - def __init__(self, server): - self.error_handler = ErrorHandler() - self.upload_progresses_updated_at = dict() - self.server = server - - async def calculate_hash(self, file_path): - do_crc64 = crcmod.mkCrcFun( - 0x142F0E1EBA9EA3693, initCrc=0, xorOut=0xFFFFFFFFFFFFFFFF, rev=True - ) - crc64_signature = 0 - buf_size = 65536 * 16 - - async with aiofiles.open(file_path, "rb") as f: - while chunk := await f.read(buf_size): - crc64_signature = do_crc64(chunk, crc64_signature) - - md5_hash = hashlib.md5() - async with aiofiles.open(file_path, "rb") as file: - while chunk := await file.read(buf_size): - md5_hash.update(chunk) - md5_str = base64.b64encode(md5_hash.digest()).decode("utf-8") - - hasher = hashlib.sha256() - hasher.update(f"{md5_str}{crc64_signature}".encode("utf-8")) - hash_string = hasher.hexdigest() - - return hash_string - - async def do_upload(self, item): - sid = item["sid"] - upload_id = item["upload_id"] - self.server.send_sync( - event="status", - data={ - "status": "starting", - "upload_id": upload_id, - "message": f"start uploading", - }, - sid=sid, - ) - - root_dir = item["root"] - model_files = [] - for file in item["files"]: - filename = file["path"] - filepath = os.path.abspath(os.path.join(root_dir, filename)) - if not os.path.exists(filepath): - self.server.send_sync_error(err=FILE_NOT_EXISTS_ERR, sid=sid) - return - - sha256sum = await self.calculate_hash(filepath) - - sign_data, err = await self.server.api_client.sign(sha256sum) - file_record = sign_data.get("file") - if err is not None: - self.server.send_sync_error(err=err, sid=sid) - return - - if not is_string_valid(file_record.get("id")): - print(f"\033[94m[BizyAir]\033[0m Start uploading file: {filename}") - file_storage = sign_data.get("storage") - try: - self.upload_progresses_updated_at[upload_id] = 0 - - def updateProgress(consume_bytes, total_bytes): - current_time = time.time() - if ( - current_time - self.upload_progresses_updated_at[upload_id] - >= 1 - ): - self.upload_progresses_updated_at[upload_id] = current_time - - progress = ( - f"{consume_bytes / total_bytes * 100:.0f}%" - if consume_bytes / total_bytes * 100 - == int(consume_bytes / total_bytes * 100) - else "{:.2f}%".format(consume_bytes / total_bytes * 100) - ) - self.server.send_sync( - event="progress", - data={ - "upload_id": upload_id, - "path": filename, - "progress": progress, - }, - sid=sid, - ) - - oss_client = AliOssStorageClient( - endpoint=file_storage.get("endpoint"), - bucket_name=file_storage.get("bucket"), - access_key=file_record.get("access_key_id"), - secret_key=file_record.get("access_key_secret"), - security_token=file_record.get("security_token"), - onUploading=updateProgress, - ) - await oss_client.upload_file( - filepath, file_record.get("object_key") - ) - except oss2.exceptions.OssError as e: - print(f"\033[31m[BizyAir]\033[0m OSS err:{str(e)}") - self.server.send_sync_error(UPLOAD_ERR, sid) - return - - commit_data, err = await self.server.api_client.commit_file( - signature=sha256sum, object_key=file_record.get("object_key") - ) - if err is not None: - self.server.send_sync_error(err) - return - - print(f"\033[32m[BizyAir]\033[0m {filename} Already Uploaded") - self.server.send_sync( - event="progress", - data={"upload_id": upload_id, "path": filename, "progress": "100%"}, - sid=sid, - ) - - model_files.append({"sign": sha256sum, "path": filename}) - - commit_ret, err = await self.server.api_client.commit_model( - model_files=model_files, - model_name=item["name"], - model_type=item["type"], - overwrite=True, - ) - if err is not None: - self.server.send_sync_error(err, sid) - return - - print("\033[32m[BizyAir]\033[0m Uploaded successfully") - - self.server.send_sync( - event="status", - data={ - "status": "finish", - "upload_id": upload_id, - "message": f"uploading finished", - }, - sid=sid, - ) - - def check_sync_status(): - while True: - future = asyncio.run_coroutine_threadsafe( - self.server.api_client.get_models( - {"type": item["type"], "available": True} - ), - self.server.loop, - ) - - models, err = future.result(timeout=2) - - if err is not None: - self.server.send_sync( - event="error", - data={ - "message": err.message, - "code": err.code, - "data": err.data, - }, - sid=sid, - ) - return - # 遍历models, 看当前name的model是否存在 - for model in models: - if model["name"] == item["name"]: - self.server.send_sync( - event="synced", - data={ - "model_type": item["type"], - "model_name": item["name"], - }, - sid=sid, - ) - return - - time.sleep(5) - - threading.Thread( - target=check_sync_status, - daemon=True, - ).start() diff --git a/src/bizy_server/utils.py b/src/bizy_server/utils.py index 2f7441fe..c2f6bc2b 100644 --- a/src/bizy_server/utils.py +++ b/src/bizy_server/utils.py @@ -1,15 +1,36 @@ import os from pathlib import Path -from .errno import INVALID_TYPE +from .errno import errnos from .resp import ErrResponse TYPE_OPTIONS = { - "lora": "bizyair/lora", - "controlnet": "bizyair/controlnet", - # "other": "other", + "LoRA": "LoRA", + "Controlnet": "Controlnet", } + +BASE_MODEL_TYPE_OPTIONS = { + "Flux.1 D": "Flux.1 D", + "SDXL": "SDXL", + "SD 1.5": "SD 1.5", + "SD 3.5": "SD 3.5", + "Pony": "Pony", + "Kolors": "Kolors", + "Hunyuan 1": "Hunyuan 1", + "Other": "Other", +} + ALLOW_TYPES = list(TYPE_OPTIONS.values()) +ALLOW_BASE_MODEL_TYPES = list(BASE_MODEL_TYPE_OPTIONS.values()) +ALLOW_UPLOADABLE_EXT_NAMES = [ + ".safetensors", + ".pth", + ".bin", + ".pt", + ".ckpt", + ".gguf", + ".sft", +] current_path = os.path.abspath(os.path.dirname(__file__)) @@ -43,14 +64,32 @@ def check_str_param(json_data, param_name: str, err): def check_type(json_data): if "type" not in json_data: - return ErrResponse(INVALID_TYPE) - if not is_string_valid(json_data["type"]) or json_data["type"] not in ALLOW_TYPES: - return ErrResponse(INVALID_TYPE) + return ErrResponse(errnos.INVALID_TYPE) + if ( + not is_string_valid(json_data["type"]) + or json_data["type"] not in ALLOW_TYPES + or json_data["type"] == "Workflow" + ): + return ErrResponse(errnos.INVALID_TYPE) return None -def list_types(): +def types(): types = [] for k, v in TYPE_OPTIONS.items(): types.append({"label": k, "value": v}) return types + + +def base_model_types(): + base_model_types = [] + for k, v in BASE_MODEL_TYPE_OPTIONS.items(): + base_model_types.append({"label": k, "value": v}) + return base_model_types + + +def is_allow_ext_name(local_file_name): + if not os.path.isfile(local_file_name): + return False + _, ext = os.path.splitext(local_file_name) + return ext.lower() in ALLOW_UPLOADABLE_EXT_NAMES diff --git a/src/bizyair/commands/processors/prompt_processor.py b/src/bizyair/commands/processors/prompt_processor.py index 39697e62..4ddfc496 100644 --- a/src/bizyair/commands/processors/prompt_processor.py +++ b/src/bizyair/commands/processors/prompt_processor.py @@ -8,7 +8,7 @@ BIZYAIR_DEV_REQUEST_URL, BIZYAIR_SERVER_ADDRESS, ) -from bizyair.configs.conf import ModelRule +from bizyair.configs.conf import ModelRule, config_manager from bizyair.path_utils import ( convert_prompt_label_path_to_real_path, guess_url_from_node, @@ -83,14 +83,29 @@ def validate_input( class PromptProcessor(Processor): + def _exec_info(self, prompt: Dict[str, Dict[str, Any]]): + exec_info = { + "model_version_ids": [], + } + model_version_id_prefix = config_manager.get_model_version_id_prefix() + for node_id, node_data in prompt.items(): + for k, v in node_data.get("inputs", {}).items(): + if isinstance(v, str) and v.startswith(model_version_id_prefix): + model_version_id = int(v[len(model_version_id_prefix) :]) + exec_info["model_version_ids"].append(model_version_id) + return exec_info + def process( self, url: str, prompt: Dict[str, Dict[str, Any]], last_node_ids: List[str] ): - prompt = convert_prompt_label_path_to_real_path(prompt) return client.send_request( url=url, data=json.dumps( - {"prompt": prompt, "last_node_id": last_node_ids[0]} + { + "prompt": prompt, + "last_node_id": last_node_ids[0], + "exec_info": self._exec_info(prompt), + } ).encode("utf-8"), ) diff --git a/src/bizyair/commands/servers/prompt_server.py b/src/bizyair/commands/servers/prompt_server.py index a7c0f855..475bd7cf 100644 --- a/src/bizyair/commands/servers/prompt_server.py +++ b/src/bizyair/commands/servers/prompt_server.py @@ -21,6 +21,7 @@ def execute( *args, **kwargs, ): + prompt = encode_data(prompt) if BIZYAIR_DEBUG: debug_info = { diff --git a/src/bizyair/configs/conf.py b/src/bizyair/configs/conf.py index c8ed2468..d59bcbdb 100644 --- a/src/bizyair/configs/conf.py +++ b/src/bizyair/configs/conf.py @@ -77,8 +77,9 @@ def get_filenames(self, folder_name: str) -> List[str]: class ConfigManager: def __init__(self, model_path_config: str, model_rule_config: str): self.model_path_manager = ModelPathManager(config_path=model_path_config) + self.model_rule_config = load_config_file(model_rule_config) self.model_rules = ModelRuleManager( - model_rules=load_config_file(model_rule_config)["model_rules"] + model_rules=self.model_rule_config["model_rules"] ) def get_filenames(self, folder_name: str) -> List[str]: @@ -89,6 +90,9 @@ def get_rules(self, class_type: str) -> List[ModelRule]: class_type = class_type[8:] return self.model_rules.find_rules(class_type) + def get_model_version_id_prefix(self): + return self.model_rule_config["model_version_config"]["model_version_id_prefix"] + model_path_config = os.path.join(os.path.dirname(__file__), "models.json") model_rule_config = os.path.join(os.path.dirname(__file__), "models.yaml") diff --git a/src/bizyair/configs/models.yaml b/src/bizyair/configs/models.yaml index a665046b..43d8dc8f 100644 --- a/src/bizyair/configs/models.yaml +++ b/src/bizyair/configs/models.yaml @@ -1,4 +1,8 @@ # Common configuration +model_version_config: + model_version_id_prefix: "BIZYAIR_MODEL_VERSION_ID:" + + model_hub: find_model: route: /models/files diff --git a/src/bizyair/path_utils/path_manager.py b/src/bizyair/path_utils/path_manager.py index 791ce7a8..c7f9df94 100644 --- a/src/bizyair/path_utils/path_manager.py +++ b/src/bizyair/path_utils/path_manager.py @@ -188,21 +188,22 @@ def get_share_filename_list(folder_name, share_id, *, verbose=BIZYAIR_DEBUG): def get_filename_list(folder_name, *, verbose=BIZYAIR_DEBUG): global folder_names_and_paths - results = [] - if folder_name in models_config["model_types"]: - refresh = refresh_settings.get(folder_name, True) - results.extend( - cached_filename_list(folder_name, verbose=verbose, refresh=refresh) - ) - if folder_name in folder_names_and_paths: - results.extend(folder_names_and_paths[folder_name]) - if BIZYAIR_DEBUG: - try: - import folder_paths - - results.extend(folder_paths.get_filename_list(folder_name)) - except: - pass + results = folder_names_and_paths.get(folder_name, []) + # 社区node上线后移除 + # if folder_name in models_config["model_types"]: + # refresh = refresh_settings.get(folder_name, True) + # results.extend( + # cached_filename_list(folder_name, verbose=verbose, refresh=refresh) + # ) + # if folder_name in folder_names_and_paths: + # results.extend(folder_names_and_paths[folder_name]) + # if BIZYAIR_DEBUG: + # try: + # import folder_paths + # + # results.extend(folder_paths.get_filename_list(folder_name)) + # except: + # pass return results From 951c044416e0c9a7f659e5cf800bdb4224753ae5 Mon Sep 17 00:00:00 2001 From: Qin Hai <5372604@qq.com> Date: Fri, 6 Dec 2024 15:18:00 +0800 Subject: [PATCH 4/6] Fix/multiple same type nodes dragging (#262) * [fix]multiple load lorad node can't dragging * [fix]multiple load_lora node ,can't drag bug * [fix]control_net_name can't drag * [fix]control net node too choose model type error * [feat]fix type name --- bizyair_frontend | 2 +- js/bizyair_frontend.js | 2 +- js/model_apply.js | 96 +++++++++++++++++++++++++++++------------- 3 files changed, 69 insertions(+), 31 deletions(-) diff --git a/bizyair_frontend b/bizyair_frontend index 83459603..d1d677de 160000 --- a/bizyair_frontend +++ b/bizyair_frontend @@ -1 +1 @@ -Subproject commit 83459603843597dbacf7ea41bb8a9c304d00e196 +Subproject commit d1d677de4f3a611bfa056d96555f5f95f77b603d diff --git a/js/bizyair_frontend.js b/js/bizyair_frontend.js index cff7f9b4..da437f4f 100644 --- a/js/bizyair_frontend.js +++ b/js/bizyair_frontend.js @@ -641,7 +641,7 @@ $$ $$`,"title")},...["note","abstract","info","tip","success","question","warning","failure","danger","bug","example","quote","hint","caution","error","attention"].map(i=>({label:`!!! ${i}`,type:"text",apply:by("!!!",` ${i}`," Title",` !!!`,"title")}))]}};return zwe({override:e?[t,...e]:[t]})},FO=e=>{const t=new ts;return r=>(t.get(e.state)?e.dispatch({effects:t.reconfigure(r)}):e.dispatch({effects:Gt.appendConfig.of(t.of(r))}),!0)};class bRe{constructor(t){mc(this,"view"),mc(this,"maxLength",Number.MAX_SAFE_INTEGER),mc(this,"toggleTabSize"),mc(this,"togglePlaceholder"),mc(this,"setExtensions"),mc(this,"toggleDisabled"),mc(this,"toggleReadOnly"),mc(this,"toggleMaxlength"),this.view=t,this.toggleTabSize=FO(this.view),this.togglePlaceholder=FO(this.view),this.setExtensions=FO(this.view),this.toggleDisabled=FO(this.view),this.toggleReadOnly=FO(this.view),this.toggleMaxlength=FO(this.view)}getValue(){return this.view.state.doc.toString()}setValue(t,n=0,r=this.view.state.doc.length){this.view.dispatch({changes:{from:n,to:r,insert:t}})}getSelectedText(){const{from:t,to:n}=this.view.state.selection.main;return this.view.state.sliceDoc(t,n)}replaceSelectedText(t,n={select:!0,deviationStart:0,deviationEnd:0,replaceAll:!1},r){try{if(n.replaceAll){if(this.setValue(t),t.length>this.maxLength)throw new Error("The input text is too long");return}if(this.view.state.doc.length-this.getSelectedText().length+t.length>this.maxLength)throw new Error("The input text is too long");const{from:i}=this.view.state.selection.main;if(this.view.dispatch(this.view.state.replaceSelection(t)),n.select){const a=i+t.length+n.deviationEnd;this.view.dispatch({selection:{anchor:i+n.deviationStart,head:a}})}this.view.focus()}catch(i){if(i.message==="The input text is too long")Ye.emit(r,vu,{name:"overlength",message:i.message,data:t});else throw i}}setTabSize(t){this.toggleTabSize([Zt.tabSize.of(t),xO.of(" ".repeat(t))])}setPlaceholder(t){this.togglePlaceholder(L0e(t))}focus(t){if(this.view.focus(),!t)return;let n=0,r=0,i=0;switch(t){case"start":break;case"end":{n=r=i=this.getValue().length;break}default:n=t.rangeAnchor||t.cursorPos,r=t.rangeHead||t.cursorPos,i=t.cursorPos}this.view.dispatch({scrollIntoView:!0,selection:Me.create([Me.range(n,r),Me.cursor(i)],1)})}setDisabled(t){this.toggleDisabled([et.editable.of(!t)])}setReadOnly(t){this.toggleReadOnly([Zt.readOnly.of(t)])}setMaxLength(t){this.maxLength=t,this.toggleMaxlength([Zt.changeFilter.of(n=>n.newDoc.length<=t)])}}const yRe=(e,t)=>{const n=gt("editorId"),r=a=>{a instanceof Promise?a.then(o=>{Ye.emit(n,yn,"universal",{generate(){return{targetValue:o}}})}).catch(o=>{console.error(o)}):Ye.emit(n,yn,"universal",{generate(){return{targetValue:a}}})};return a=>{var o,s,l;if(!a.clipboardData)return;if(a.clipboardData.files.length>0){const{files:h}=a.clipboardData;Ye.emit(n,C_,Array.from(h).filter(m=>/image\/.*/.test(m.type))),a.preventDefault();return}const c=a.clipboardData.getData("text/plain"),u=((o=t.value)==null?void 0:o.view.state.selection.main.to)||0,d=((s=t.value)==null?void 0:s.view.state.doc.lineAt(u).from)||0,O=((l=t.value)==null?void 0:l.view.state.doc.sliceString(d,u))||"",f=/!\[.*\]\(\s*$/.test(O),p=/!\[.*\]\((.*)\s?.*\)/.test(c);if(f){const h=e.transformImgUrl(c);r(h),a.preventDefault();return}else if(p){const h=c.match(new RegExp(`(?<=!\\[.*\\]\\()([^)\\s]+)(?=\\s?["']?.*["']?\\))`,"g"));h?Promise.all(h.map(m=>e.transformImgUrl(m))).then(m=>{r(m.reduce((g,_,b)=>g.replace(h[b],_),c))}):r(c),a.preventDefault();return}if(e.autoDetectCode&&a.clipboardData.types.includes("vscode-editor-data")){const h=JSON.parse(a.clipboardData.getData("vscode-editor-data"));Ye.emit(n,yn,"code",{mode:h.mode,text:a.clipboardData.getData("text/plain")}),a.preventDefault();return}e.maxlength&&c.length+e.modelValue.length>e.maxlength&&Ye.emit(n,vu,{name:"overlength",message:"The input text is too long",data:c})}},vRe=(e,t)=>[{key:"Ctrl-b",mac:"Cmd-b",run:()=>(Ye.emit(e,yn,"bold"),!0)},{key:"Ctrl-d",mac:"Cmd-d",run:Q4,preventDefault:!0},{key:"Ctrl-s",mac:"Cmd-s",run:y=>(Ye.emit(e,Q_,y.state.doc.toString()),!0),shift:()=>(Ye.emit(e,yn,"strikeThrough"),!0)},{key:"Ctrl-u",mac:"Cmd-u",preventDefault:!0,run:()=>(Ye.emit(e,yn,"underline"),!0),shift:()=>(Ye.emit(e,yn,"unorderedList"),!0)},{key:"Ctrl-i",mac:"Cmd-i",preventDefault:!0,run:()=>(Ye.emit(e,yn,"italic"),!0),shift:()=>(Ye.emit(e,i$,"image"),!0)},{key:"Ctrl-1",mac:"Cmd-1",run:()=>(Ye.emit(e,yn,"h1"),!0)},{key:"Ctrl-2",mac:"Cmd-2",run:()=>(Ye.emit(e,yn,"h2"),!0)},{key:"Ctrl-3",mac:"Cmd-3",run:()=>(Ye.emit(e,yn,"h3"),!0)},{key:"Ctrl-4",mac:"Cmd-4",run:()=>(Ye.emit(e,yn,"h4"),!0)},{key:"Ctrl-5",mac:"Cmd-5",run:()=>(Ye.emit(e,yn,"h5"),!0)},{key:"Ctrl-6",mac:"Cmd-6",run:()=>(Ye.emit(e,yn,"h6"),!0)},{key:"Ctrl-ArrowUp",mac:"Cmd-ArrowUp",run:()=>(Ye.emit(e,yn,"sup"),!0)},{key:"Ctrl-ArrowDown",mac:"Cmd-ArrowDown",run:()=>(Ye.emit(e,yn,"sub"),!0)},{key:"Ctrl-o",mac:"Cmd-o",run:()=>(Ye.emit(e,yn,"orderedList"),!0)},{key:"Ctrl-c",mac:"Cmd-c",shift:()=>(Ye.emit(e,yn,"code"),!0),any(y,v){return(v.ctrlKey||v.metaKey)&&v.altKey&&v.code==="KeyC"?(Ye.emit(e,yn,"codeRow"),!0):!1}},{key:"Ctrl-l",mac:"Cmd-l",run:()=>(Ye.emit(e,i$,"link"),!0)},{key:"Ctrl-f",mac:"Cmd-f",shift:()=>t.noPrettier?!1:(Ye.emit(e,yn,"prettier"),!0)},{any:(y,v)=>(v.ctrlKey||v.metaKey)&&v.altKey&&v.shiftKey&&v.code==="KeyT"?(Ye.emit(e,yn,"table"),!0):!1},...iwe];et.EDIT_CONTEXT=!1;const SRe=e=>{const t=gt("tabWidth"),n=gt("editorId"),r=gt("theme"),i=xe(),a=Rs(),o=xe(!1),s=new ts,l=new ts,c=new ts,u=new ts,d=new ts,O=vRe(n,e),f=()=>[...O,...X1e,...ZTe,z1e],h={paste:yRe(e,a),blur:e.onBlur,focus:e.onFocus,drop:e.onDrop,compositionstart:()=>{o.value=!0},compositionend:(_,b)=>{o.value=!1,e.updateModelValue(b.state.doc.toString())},input:_=>{e.onInput&&e.onInput(_);const{data:b}=_;e.maxlength&&e.modelValue.length+b.length>e.maxlength&&Ye.emit(n,vu,{name:"overlength",message:"The input text is too long",data:b})}},m=[ah.of(f()),u.of(H6()),s.of(OY({codeLanguages:Wwe})),et.lineWrapping,et.updateListener.of(_=>{_.docChanged&&(e.onChange(_.state.doc.toString()),o.value||e.updateModelValue(_.state.doc.toString()))}),d.of(et.domEventHandlers(h)),A0e()],g=()=>{const _=[...m,l.of(r.value==="light"?TY:_Y),c.of(xY(e.completions))];return Jn.codeMirrorExtensions(r.value,_,f(),{editorId:n})};return ht(()=>{const _=new et({doc:e.modelValue,parent:i.value,extensions:[g()]}),b=new bRe(_);a.value=b,setTimeout(()=>{b.setTabSize(t),b.setDisabled(e.disabled),b.setReadOnly(e.readonly),e.placeholder&&b.setPlaceholder(e.placeholder),typeof e.maxlength=="number"&&b.setMaxLength(e.maxlength),e.autofocus&&_.focus()},0),Ye.on(n,{name:k5,callback(){GP(_)}}),Ye.on(n,{name:C5,callback(){Xb(_)}}),Ye.on(n,{name:yn,async callback(y,v={}){var E,w;if(y==="image"&&v.transform){const T=e.transformImgUrl(v.url);if(T instanceof Promise)T.then(async S=>{var x;const{text:$,options:Q}=await nQ(y,a.value,{...v,url:S});(x=a.value)==null||x.replaceSelectedText($,Q,n)}).catch(S=>{console.error(S)});else{const{text:S,options:x}=await nQ(y,a.value,{...v,url:T});(E=a.value)==null||E.replaceSelectedText(S,x,n)}}else{const{text:T,options:S}=await nQ(y,a.value,v);(w=a.value)==null||w.replaceSelectedText(T,S,n)}}}),Ye.on(n,{name:I5,callback:Yge(y=>{var v;const E={...h},w=Object.keys(h);for(const T in y){const S=T;w.includes(S)?E[S]=(x,$)=>{y[S](x,$),x.defaultPrevented||h[S](x,$)}:E[S]=y[S]}(v=a.value)==null||v.view.dispatch({effects:d.reconfigure(et.domEventHandlers(E))})})}),Ye.on(n,{name:D5,callback:(y,v)=>{const E=_.state.doc.line(y);_.dispatch(_.state.update({changes:{from:E.from,to:E.to,insert:v}}))}})}),Be(r,()=>{var _;(_=a.value)==null||_.view.dispatch({effects:l.reconfigure(r.value==="light"?TY:_Y)})},{deep:!0}),Be(()=>e.completions,()=>{var _;(_=a.value)==null||_.view.dispatch({effects:c.reconfigure(xY(e.completions))})},{deep:!0}),Be(()=>e.modelValue,()=>{var _,b;((_=a.value)==null?void 0:_.getValue())!==e.modelValue&&((b=a.value)==null||b.setValue(e.modelValue))}),Be(()=>e.placeholder,()=>{var _;(_=a.value)==null||_.setPlaceholder(e.placeholder)}),Be(()=>e.disabled,()=>{var _;(_=a.value)==null||_.setDisabled(e.disabled)}),Be(()=>e.readonly,()=>{var _;(_=a.value)==null||_.setDisabled(e.readonly)}),Be(()=>e.maxlength,()=>{var _;e.maxlength&&((_=a.value)==null||_.setMaxLength(e.maxlength))}),{inputWrapperRef:i,codeMirrorUt:a,resetHistory(){var _,b;(_=a.value)==null||_.view.dispatch({effects:u.reconfigure([])}),(b=a.value)==null||b.view.dispatch({effects:u.reconfigure(H6())})}}},ERe=(e,t,n)=>{const r=Hn({resizedWidth:e.inputBoxWidth}),i=Hn({width:e.inputBoxWidth}),a=Hn({left:e.inputBoxWidth,display:"initial"}),o=xe(e.setting.preview||e.setting.htmlPreview),s=u=>{var d,O,f;const p=((d=t.value)==null?void 0:d.offsetWidth)||0,h=((O=t.value)==null?void 0:O.getBoundingClientRect().x)||0;let m=u.x-h;mp-P_&&(m=p-P_);const g=`${m}px`;i.width=g,a.left=g,r.resizedWidth=g,(f=e.oninputBoxWidthChange)==null||f.call(e,g)},l=()=>{document.addEventListener("mousemove",s)},c=()=>{document.removeEventListener("mousemove",s)};return Be([n],()=>{var u,d;(u=n.value)==null||u.addEventListener("mousedown",l),(d=n.value)==null||d.addEventListener("mouseup",c)},{immediate:!0}),Lo(()=>{var u,d;(u=n.value)==null||u.removeEventListener("mousedown",l),(d=n.value)==null||d.removeEventListener("mouseup",c)}),Be(()=>e.inputBoxWidth,u=>{u&&(r.resizedWidth=u,i.width=u,a.left=u)}),Be([ui(e.setting,"htmlPreview"),ui(e.setting,"preview"),ui(e.setting,"previewOnly")],()=>{e.setting.previewOnly?(i.width="0%",a.display="none",o.value=!0):!e.setting.htmlPreview&&!e.setting.preview?(i.width="100%",a.display="none",o.value=!1):(i.width=r.resizedWidth,a.display="initial",o.value=!0)},{immediate:!0}),{inputWrapperStyle:i,resizeOperateStyle:a,showPreviewWrapper:o}},TRe=ve({name:"MDEditorContent",props:Mve,setup(e,t){const n=gt("editorId"),r=xe(""),i=xe(),a=xe(),{inputWrapperRef:o,codeMirrorUt:s,resetHistory:l}=SRe(e),{inputWrapperStyle:c,resizeOperateStyle:u,showPreviewWrapper:d}=ERe(e,i,a);return ZPe(e,r,s),t.expose({getSelectedText(){var O;return(O=s.value)==null?void 0:O.getSelectedText()},focus(O){var f;(f=s.value)==null||f.focus(O)},resetHistory:l,getEditorView(){var O;return(O=s.value)==null?void 0:O.view}}),()=>te("div",{class:`${be}-content${d.value?" has-preview":""}`,ref:i},[te("div",{class:`${be}-input-wrapper`,style:c,ref:o},null),(e.setting.htmlPreview||e.setting.preview)&&te("div",{class:`${be}-resize-operate`,style:u,ref:a},null),d.value&&te(zz,{modelValue:e.modelValue,onChange:e.onChange,setting:e.setting,onHtmlChanged:O=>{r.value=O,e.onHtmlChanged(O)},onGetCatalog:e.onGetCatalog,mdHeadingId:e.mdHeadingId,noMermaid:e.noMermaid,sanitize:e.sanitize,noKatex:e.noKatex,formatCopiedText:e.formatCopiedText,noHighlight:e.noHighlight,noImgZoomIn:e.noImgZoomIn,sanitizeMermaid:e.sanitizeMermaid,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold},null),e.catalogVisible&&te(Up,{theme:e.theme,class:`${be}-catalog-editor`,editorId:n,mdHeadingId:e.mdHeadingId,key:"internal-catalog",scrollElementOffsetTop:2},null)])}}),wRe=ve({props:{modelValue:{type:String,default:""}},setup(e){const t=gt("usedLanguageText");return()=>{var n,r;return te("div",{class:`${be}-footer-item`},[te("label",{class:`${be}-footer-label`},[`${(n=t.value.footer)==null?void 0:n.markdownTotal}:`]),te("span",null,[((r=e.modelValue)==null?void 0:r.length)||0])])}}}),xRe={checked:{type:Boolean,default:!1},onChange:{type:Function,default:()=>{}}},$Re=ve({name:`${be}-checkbox`,props:xRe,setup(e){return()=>te("div",{class:[`${be}-checkbox`,e.checked&&`${be}-checkbox-checked`],onClick:()=>{e.onChange(!e.checked)}},null)}}),PRe=ve({props:{scrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>{}}},setup(e){const t=gt("usedLanguageText");return()=>{var n;return te("div",{class:`${be}-footer-item`},[te("label",{class:`${be}-footer-label`,onClick:()=>{e.onScrollAutoChange(!e.scrollAuto)}},[(n=t.value.footer)==null?void 0:n.scrollAuto]),te($Re,{checked:e.scrollAuto,onChange:e.onScrollAutoChange},null)])}}}),RRe=ve({name:"MDEditorFooter",props:{modelValue:{type:String,default:""},footers:{type:Array,default:[]},scrollAuto:{type:Boolean},noScrollAuto:{type:Boolean},onScrollAutoChange:{type:Function,default:()=>{}},defFooters:{type:Object}},setup(e){const t=Ie(()=>{const r=e.footers.indexOf("="),i=r===-1?e.footers:e.footers.slice(0,r),a=r===-1?[]:e.footers.slice(r,Number.MAX_SAFE_INTEGER);return[i,a]}),n=r=>{if(S5.includes(r))switch(r){case"markdownTotal":return te(wRe,{modelValue:e.modelValue},null);case"scrollSwitch":return!e.noScrollAuto&&te(PRe,{scrollAuto:e.scrollAuto,onScrollAutoChange:e.onScrollAutoChange},null)}else return e.defFooters instanceof Array?e.defFooters[r]||"":e.defFooters&&e.defFooters.children instanceof Array&&e.defFooters.children[r]||""};return()=>{const r=t.value[0].map(a=>n(a)),i=t.value[1].map(a=>n(a));return te("div",{class:`${be}-footer`},[te("div",{class:`${be}-footer-left`},[r]),te("div",{class:`${be}-footer-right`},[i])])}}}),Mh=ve({name:"MdEditorV3",props:Yve,emits:jve,setup(e,t){const{noKatex:n,noMermaid:r,noPrettier:i,noUploadImg:a,noHighlight:o}=e,s=Hn({scrollAuto:e.scrollAuto}),l=xe(),c=xe(),{editorId:u}=Uve(e,l),[d,O]=Bve(e,t,{editorId:u}),f=Fve(e,{editorId:u});return Lve(e,t,{editorId:u}),Xve(e),zve(e,t,{editorId:u}),Wve(e,t,{editorId:u,catalogVisible:f,setting:d,updateSetting:O,codeRef:c}),Lo(()=>{Ye.clear(u)}),()=>{const p=ji({props:e,ctx:t},"defToolbars"),h=ji({props:e,ctx:t},"defFooters");return te("div",{id:u,class:[be,e.class,e.theme==="dark"&&`${be}-dark`,d.fullscreen||d.pageFullscreen?`${be}-fullscreen`:""],style:e.style,ref:l},[e.toolbars.length>0&&te(GPe,{noPrettier:i,toolbars:e.toolbars,toolbarsExclude:e.toolbarsExclude,setting:d,updateSetting:O,tableShape:e.tableShape,defToolbars:p,noUploadImg:a,showToolbarName:e.showToolbarName,catalogVisible:f.value,codeTheme:e.codeTheme},null),te(TRe,{ref:c,modelValue:e.modelValue,setting:d,mdHeadingId:e.mdHeadingId,noMermaid:r,noPrettier:i,sanitize:e.sanitize,placeholder:e.placeholder,noKatex:n,scrollAuto:s.scrollAuto,formatCopiedText:e.formatCopiedText,autofocus:e.autoFocus,disabled:e.disabled,readonly:e.readOnly,maxlength:e.maxLength,autoDetectCode:e.autoDetectCode,noHighlight:o,updateModelValue:m=>{t.emit("update:modelValue",m)},onChange:m=>{e.onChange&&e.onChange(m),t.emit("onChange",m)},onHtmlChanged:m=>{e.onHtmlChanged&&e.onHtmlChanged(m),t.emit("onHtmlChanged",m)},onGetCatalog:m=>{e.onGetCatalog&&e.onGetCatalog(m),t.emit("onGetCatalog",m)},onBlur:m=>{e.onBlur&&e.onBlur(m),t.emit("onBlur",m)},onFocus:m=>{e.onFocus&&e.onFocus(m),t.emit("onFocus",m)},onInput:m=>{e.onInput&&e.onInput(m),t.emit("onInput",m)},completions:e.completions,catalogVisible:f.value,theme:e.theme,noImgZoomIn:e.noImgZoomIn,onDrop:m=>{e.onDrop&&e.onDrop(m),t.emit("onDrop",m)},inputBoxWidth:e.inputBoxWidth,oninputBoxWidthChange:m=>{e.oninputBoxWidthChange&&e.oninputBoxWidthChange(m),t.emit("oninputBoxWidthChange",m)},sanitizeMermaid:e.sanitizeMermaid,transformImgUrl:e.transformImgUrl,codeFoldable:e.codeFoldable,autoFoldThreshold:e.autoFoldThreshold},null),e.footers.length>0&&te(RRe,{modelValue:e.modelValue,footers:e.footers,defFooters:h,noScrollAuto:!d.preview&&!d.htmlPreview||d.previewOnly,scrollAuto:s.scrollAuto,onScrollAutoChange:m=>s.scrollAuto=m},null)])}}});Mh.install=e=>(e.component(Mh.name,Mh),e.use(hc).use(R_).use(_y).use(Up).use(Lp),e);const aQ=ve({name:"NormalFooterToolbar",props:{onClick:{type:Function,default:void 0}},emits:["onClick"],setup(e,t){return()=>{const n=ji({props:e,ctx:t});return te("div",{class:`${be}-footer-item`,onClick:r=>{e.onClick instanceof Function?e.onClick(r):t.emit("onClick",r)}},[n])}}});aQ.install=e=>(e.component(aQ.name,aQ),e);var $Y={exports:{}},Mn={},oQ={exports:{}},Nu={};function PY(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function QRe(e,t,n){}function kRe(e,t,n){}var CRe=/javascript\s*\:/img;function ARe(e,t){return CRe.test(t)?"":t}Nu.whiteList=PY(),Nu.getDefaultWhiteList=PY,Nu.onAttr=QRe,Nu.onIgnoreAttr=kRe,Nu.safeAttrValue=ARe;var IRe={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n/g,GRe=/"/g,ZRe=/"/g,HRe=/&#([a-zA-Z0-9]*);?/gim,KRe=/:?/gim,JRe=/&newline;?/gim,Sy=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,IY=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,DY=/u\s*r\s*l\s*\(.*/gi;function NY(e){return e.replace(GRe,""")}function MY(e){return e.replace(ZRe,'"')}function LY(e){return e.replace(HRe,function(n,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function UY(e){return e.replace(KRe,":").replace(JRe," ")}function XY(e){for(var t="",n=0,r=e.length;n",r);if(i===-1)break;n=i+3}return t}function rQe(e){var t=e.split("");return t=t.filter(function(n){var r=n.charCodeAt(0);return r===127?!1:r<=31?r===10||r===13:!0}),t.join("")}Mn.whiteList=kY(),Mn.getDefaultWhiteList=kY,Mn.onTag=BRe,Mn.onIgnoreTag=FRe,Mn.onTagAttr=WRe,Mn.onIgnoreTagAttr=VRe,Mn.safeAttrValue=YRe,Mn.escapeHtml=AY,Mn.escapeQuote=NY,Mn.unescapeQuote=MY,Mn.escapeHtmlEntities=LY,Mn.escapeDangerHtml5Entities=UY,Mn.clearNonPrintableCharacter=XY,Mn.friendlyAttrValue=zY,Mn.escapeAttrValue=BY,Mn.onIgnoreTagStripAll=eQe,Mn.StripTagBody=tQe,Mn.stripCommentTag=nQe,Mn.stripBlankChar=rQe,Mn.attributeWrapSign='"',Mn.cssFilter=CY,Mn.getDefaultCSSWhiteList=zRe;var Ey={},gc=lQ;function iQe(e){var t=gc.spaceIndex(e),n;return t===-1?n=e.slice(1,-1):n=e.slice(1,t+1),n=gc.trim(n).toLowerCase(),n.slice(0,1)==="/"&&(n=n.slice(1)),n.slice(-1)==="/"&&(n=n.slice(0,-1)),n}function aQe(e){return e.slice(0,2)===""||s===l-1){r+=n(e.slice(i,a)),u=e.slice(a,s+1),c=iQe(u),r+=t(a,r.length,c,u,aQe(u)),i=s+1,a=!1;continue}if(d==='"'||d==="'")for(var O=1,f=e.charAt(s-O);f.trim()===""||f==="=";){if(f==="="){o=d;continue e}f=e.charAt(s-++O)}}else if(d===o){o=!1;continue}}return i0;t--){var n=e[t];if(n!==" ")return n==="="?t:-1}}function OQe(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function FY(e){return OQe(e)?e.substr(1,e.length-2):e}Ey.parseTag=oQe,Ey.parseAttr=lQe;var fQe=sQ.FilterCSS,Xa=Mn,WY=Ey,pQe=WY.parseTag,hQe=WY.parseAttr,Ty=lQ;function wy(e){return e==null}function mQe(e){var t=Ty.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Ty.trim(e.slice(t+1,-1));var n=e[e.length-1]==="/";return n&&(e=Ty.trim(e.slice(0,-1))),{html:e,closing:n}}function gQe(e){var t={};for(var n in e)t[n]=e[n];return t}function _Qe(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map(function(r){return r.toLowerCase()}):t[n.toLowerCase()]=e[n];return t}function VY(e){e=gQe(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Xa.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=_Qe(e.whiteList||e.allowList):e.whiteList=Xa.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":Xa.attributeWrapSign,e.onTag=e.onTag||Xa.onTag,e.onTagAttr=e.onTagAttr||Xa.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Xa.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Xa.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Xa.safeAttrValue,e.escapeHtml=e.escapeHtml||Xa.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new fQe(e.css))}VY.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,r=n.whiteList,i=n.onTag,a=n.onIgnoreTag,o=n.onTagAttr,s=n.onIgnoreTagAttr,l=n.safeAttrValue,c=n.escapeHtml,u=t.attributeWrapSign,d=t.cssFilter;n.stripBlankChar&&(e=Xa.stripBlankChar(e)),n.allowCommentTag||(e=Xa.stripCommentTag(e));var O=!1;n.stripIgnoreTagBody&&(O=Xa.StripTagBody(n.stripIgnoreTagBody,a),a=O.onIgnoreTag);var f=pQe(e,function(p,h,m,g,_){var b={sourcePosition:p,position:h,isClosing:_,isWhite:Object.prototype.hasOwnProperty.call(r,m)},y=i(m,g,b);if(!wy(y))return y;if(b.isWhite){if(b.isClosing)return"";var v=mQe(g),E=r[m],w=hQe(v.html,function(T,S){var x=Ty.indexOf(E,T)!==-1,$=o(m,T,S,x);return wy($)?x?(S=l(m,T,S,d),S?T+"="+u+S+u:T):($=s(m,T,S,x),wy($)?void 0:$):$});return g="<"+m,w&&(g+=" "+w),v.closing&&(g+=" /"),g+=">",g}else return y=a(m,g,b),wy(y)?c(g):y},c);return O&&(f=O.remove(f)),f};var bQe=VY;(function(e,t){var n=Mn,r=Ey,i=bQe;function a(s,l){var c=new i(l);return c.process(s)}t=e.exports=a,t.filterXSS=a,t.FilterXSS=i,function(){for(var s in n)t[s]=n[s];for(var l in r)t[l]=r[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function o(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}o()&&(self.filterXSS=e.exports)})($Y,$Y.exports);const yQe={class:"relative w-4 h-4 cursor-pointer"},vQe={class:"relative w-4 h-4"},SQe=20*1024*1024,EQe=3,TQe=dp({__name:"Index2",props:{editorId:String,modelValue:String,modelModifiers:Object,autoDetectCode:{type:Boolean,default:!0}},emits:["update:modelValue","isUploading"],setup(e,{emit:t}){const n=["r","q","w","n","m","s","o","g",",","=","+","-",".","p","c","b","m","`","f","Enter","Backspace"],r=["bold","italic","underline","title","-","quote","code","table",1,"-","mermaid","katex","-","=","preview",0],i=xe(null),a=xe(null),o=xe(!1),s=()=>{o.value=!o.value,o.value?(T0.request(),document.querySelectorAll('[role="dialog"]').forEach(y=>y.style.display="none"),document.querySelector("body").style["pointer-events"]="auto"):(T0.exit(),document.querySelectorAll('[role="dialog"]').forEach(y=>y.style.display="block"),document.querySelector("body").style["pointer-events"]="none")},c=xe(e.modelValue),u=t,d=()=>{u("update:modelValue",c)},O=y=>{n.includes(y.key)&&y.stopPropagation()},f=y=>{document.addEventListener("keydown",O,!0)},p=y=>{document.removeEventListener("keydown",O,!0)},h=["image/jpeg","image/png","image/gif","image/webp"],m=async(y,v=0)=>{var E;try{const w=await nce(y);if(!((E=w.data)!=null&&E.url))throw new Error("Upload response missing URL");return w.data.url}catch(w){if(console.error(`Upload attempt ${v+1} failed:`,w),vsetTimeout(T,1e3*(v+1))),m(y,v+1);throw w}},g=async y=>{b([y.target.files[0]],v=>{v.forEach(E=>{i.value.insert(()=>({targetValue:`![image](${E})`,select:!1,deviationStart:0,deviationEnd:0})),c.value+=`![image](${E})`,d()})})},_=async y=>{b([y.target.files[0]],v=>{v.forEach(E=>{a.value.insert(()=>({targetValue:`![image](${E})`,select:!1,deviationStart:0,deviationEnd:0})),c.value+=`![image](${E})`,d()})})},b=async(y,v)=>{if(y.filter(T=>!h.includes(T.type)).length>0){Ut.warning("Only image files allowed (jpg, png, gif, webp)");return}if(y.filter(T=>T.size>SQe).length>0){Ut.warning("Image size cannot exceed 20MB");return}try{u("isUploading",!0);const T=[];for(let S=0;S(fe(),qe(Pt,null,[te(D(Mh),{editorId:e.editorId,modelValue:c.value,"onUpdate:modelValue":v[0]||(v[0]=E=>c.value=E),theme:"dark",toolbars:r,ref_key:"editorRef",ref:i,autoDetectCode:!0,language:"en-US",preview:!1,onInput:d,style:{height:"200px"},onOnUploadImg:b,onOnFocus:f,onOnBlur:p},{defToolbars:ce(()=>[te(D(hc),{title:"fullscreen",onOnClick:s},{trigger:ce(()=>[te(D(IN),{class:"w-4 h-4 mt-1"})]),_:1}),te(D(hc),{title:"image"},{trigger:ce(()=>[$e("div",yQe,[$e("input",{onChange:g,type:"file",class:"absolute w-4 h-4 left-0 top-0 cursor-pointer opacity-0"},null,32),te(D(AN),{class:"w-4 h-4 cursor-pointer"})])]),_:1})]),_:1},8,["editorId","modelValue"]),o.value?(fe(),Se(gd,{key:0,to:"body"},[te(D(Mh),{modelValue:c.value,"onUpdate:modelValue":v[1]||(v[1]=E=>c.value=E),theme:"dark",autoDetectCode:!0,editorId:`full-${e.editorId}`,toolbars:r,ref_key:"editorRefFull",ref:a,language:"en-US",pageFullscreen:!0,class:"fixed top-0 left-0 w-[100vw] h-[100vh] z-12000",onInput:d,onOnUploadImg:b,onOnFocus:f,onOnBlur:p},{defToolbars:ce(()=>[te(D(hc),{title:"fullscreen",onOnClick:s},{trigger:ce(()=>[te(D(IN),{class:"w-4 h-4 mt-1"})]),_:1}),te(D(hc),{title:"image"},{trigger:ce(()=>[$e("div",vQe,[$e("input",{onChange:_,type:"file",class:"absolute w-4 h-4 left-0 top-0 cursor-pointer opacity-0"},null,32),te(D(AN),{class:"w-4 h-4"})])]),_:1})]),_:1},8,["modelValue","editorId"])])):kt("",!0)],64))}},[["__scopeId","data-v-071fa62a"]]),wQe={class:"px-6 pb-6"},xQe={class:"bg-[#353535] z-1 px-6 py-4 w-full rounded-tl-lg rounded-tr-lg custom-shadow border-t-[1px] flex justify-between relative"},$Qe={key:0},PQe={key:1},RQe={class:"bg-[#353535] px-6 pb-4"},QQe={class:"flex items-center space-x-2 mt-2"},kQe={class:"flex h-28 items-center justify-end relative"},CQe={key:0,class:"absolute top-2 left-1 text-xs"},AQe={key:1,class:"flex-1"},IQe={class:"text-center pt-2"},DQe={key:0,class:"pl-2"},NQe={class:"bg-[#353535] px-6 w-full h-14 rounded-tl-lg rounded-tr-lg custom-shadow border-t-[1px] flex justify-between items-center -mt-4"},MQe={key:0,class:"z-50 w-full h-full absolute left-0 top-0"},LQe=ve({__name:"index",setup(e){const t=lp(),n=su(),r=xe(!0),i=xe([{value:"",label:""}]),a=xe([{value:"",label:""}]),o=xe({...n.modelDetail}),s=xe(-1),l=xe(!1),c=S=>{s.value=S,r.value&&(r.value=!1)},u=Ie(()=>o.value.versions.map(x=>x.progress).some((x,$)=>x!==100&&o.value.versions[$].file_upload_id));function d(S,x){o.value.versions&&(o.value.versions[x].public=S)}let O;async function f(S){if(!await t_({title:"Are you sure you want to delete this version?",desc:"This action cannot be undone.",cancel:"No, Keep It",continue:"Yes, Delete It",z:"z-9000"}))return;const $={...o.value};s.value===$.versions.length-1&&(s.value=Number(s.value)-1),$.versions=$.versions||[],$.versions.splice(S,1),n.setModelDetail($),$.versions.length===1&&(s.value=0),$.versions.length===0&&(r.value=!0)}function p(){const S={...o.value};S.versions=S.versions||[],S.versions.push({version:"",base_model:"",intro:"",public:!1,filePath:"",sign:"",path:""}),n.setModelDetail(S),r.value=!1,s.value=S.versions.length-1}function h(){if(!o.value.name){Ut.error("Please enter the model name"),o.value.nameError=!0;return}if(!o.value.type){Ut.error("Please select the model type"),o.value.typeError=!0;return}o.value.versions.length?(s.value=0,r.value=!1):p()}function m(){const S={...o.value};S.versions=S.versions||[];for(let x=0;xx.version&&x.base_model&&x.sign)}const g=(S,x)=>{o.value.versions[x].progress=S},_=(S,x)=>{o.value.versions[x].path=S},b=S=>{o.value.versions[S].filePathError=!1},y=(S,x)=>{o.value.versions[x].sign=S.sha256sum,o.value.versions[x].filePathError=!1},v=S=>{o.value.versions[S].progress&&delete o.value.versions[S].progress},E=(S,x)=>{S.speed&&(o.value.versions[x].speed=S.speed),S.fileName&&(o.value.versions[x].fileName=S.fileName)};async function w(){if(!m())return;l.value=!0,setTimeout(()=>{l.value=!1},5e3);const S={...o.value};S.versions.forEach(x=>{delete x.baseModelError,delete x.filePath,delete x.filePathError,delete x.versionError,delete x.speed,delete x.fileName}),S.id?await oce(S):await ace(S),Ut.success("Model published successfully"),T()}const T=()=>{n.setDialogStatus(!1,0),n.clearModelDetail(),r.value=!0,l.value=!1,n.uploadModelDone()};return Be(()=>t.socketMessage,S=>{if(S.type=="progress"){const x=o.value.versions.findIndex($=>$.file_upload_id==S.data.upload_id);o.value.versions[x].progress=Number(S.data.progress.replace("%",""))}if(S.type=="status"&&S.data.status=="finish"){const x=o.value.versions.findIndex($=>$.file_upload_id==S.data.upload_id);o.value.versions[x]&&(o.value.versions[x].path=S.data.model_files[0].path,o.value.versions[x].sign=S.data.model_files[0].sign)}if(S.type=="interrupted"){Ut.success("Upload interrupted");const x=o.value.versions.findIndex($=>$.file_upload_id==S.data.upload_id);delete o.value.versions[x].progress,o.value.versions[x].filePath=""}if(S.type=="error"){Ut.error(S.data.message);const x=o.value.versions.findIndex($=>$.file_upload_id==S.data.upload_id);delete o.value.versions[x].progress,o.value.versions[x].filePath=""}if(S.type=="prepared"&&O.close(),S.type==="errors"&&S.data&&S.data.code===500101){O.close(),Ut.error(S.data.message);const x=o.value.versions.findIndex($=>$.file_upload_id==S.data.data.upload_id);o.value.versions[x].progress&&delete o.value.versions[x].progress,o.value.versions[x].filePath=""}},{deep:!0}),Be(()=>n.modelDetail,S=>{o.value=S},{deep:!0}),Be(()=>n.showVersionId,S=>{const x=o.value.versions.findIndex($=>$.id==S);setTimeout(()=>{s.value=x}),x!=-1&&(r.value=!1)},{deep:!0}),ht(async()=>{const S=await b2();i.value=S.data;const x=await _2();a.value=x.data}),(S,x)=>(fe(),qe(Pt,null,[$e("div",{onClick:x[0]||(x[0]=$=>D(n).setDialogStatus(!0)),class:"flex items-center hover:bg-[#4A238E] cursor-pointer relative px-3"},x[7]||(x[7]=[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24"},[$e("path",{fill:"none",stroke:"#ddd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M21 16.008V7.99a1.98 1.98 0 0 0-1-1.717l-7-4.008a2.02 2.02 0 0 0-2 0L4 6.273c-.619.355-1 1.01-1 1.718v8.018c0 .709.381 1.363 1 1.717l7 4.008a2.02 2.02 0 0 0 2 0l7-4.008c.619-.355 1-1.01 1-1.718M12 22V12m0 0l8.73-5.04m-17.46 0L12 12"})],-1),$e("span",{class:"block leading h-full leading-8 text-sm"},"Publish",-1)])),D(n).showDialog?(fe(),Se(n_,{key:0,open:D(n).showDialog,"onUpdate:open":x[6]||(x[6]=$=>D(n).showDialog=$),onOnClose:T,class:"px-0 overflow-hidden pb-0 z-9000",layoutClass:"z-9000",contentClass:"custom-scrollbar max-h-[80vh] overflow-y-auto w-full rounded-tl-lg rounded-tr-lg custom-shadow"},ZK({title:ce(()=>[$e("span",{class:"px-6 cursor-pointer",onClick:x[1]||(x[1]=$=>{s.value=-1,r.value=!0})},"Publish a Model")]),default:ce(()=>[Ja($e("div",wQe,[te(ou,{label:"Model Name"},{default:ce(()=>[te(D(cp),{onChange:x[2]||(x[2]=$=>o.value.nameError=!1),class:xt({"border-red-500":o.value.nameError}),type:"text",placeholder:"Enter Model Name","model-value":o.value.name,"onUpdate:modelValue":x[3]||(x[3]=$=>o.value.name=$)},null,8,["class","model-value"])]),_:1}),te(ou,{label:"Model Type"},{default:ce(()=>[te(u2,{"onUpdate:open":x[4]||(x[4]=$=>o.value.typeError=!1),class:xt({"border-red-500":o.value.typeError}),"model-value":o.value.type,"onUpdate:modelValue":x[5]||(x[5]=$=>o.value.type=$),placeholder:"Select Model Type"},{default:ce(()=>[(fe(!0),qe(Pt,null,Oi(i.value,($,Q)=>(fe(),Se(D(l2),{key:Q,value:$.value},{default:ce(()=>[ot(Ot($.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["class","model-value"])]),_:1}),te(D(Ur),{class:"w-full mt-3",onClick:h},{default:ce(()=>x[8]||(x[8]=[ot("Next Step")])),_:1})],512),[[Ds,r.value]]),te(Tle,{multiple:!0,activeIndex:s.value},{default:ce(()=>[(fe(!0),qe(Pt,null,Oi(o.value.versions,($,Q)=>(fe(),Se(wle,{key:Q,index:Q,onToggle:c},{title:ce(()=>[$e("div",xQe,[s.value!==Q&&$.version?(fe(),qe("span",$Qe,Ot($.version),1)):(fe(),qe("span",PQe,"Add Version")),o.value.versions.length!==1?(fe(),Se(D(Eoe),{key:2,class:"w-4 h-4",onClickCapture:Sr(k=>f(Q),["stop"])},null,8,["onClickCapture"])):kt("",!0),$.progress&&s.value&&s.value!==Q?(fe(),Se(D(c2),{key:3,"model-value":$.progress,class:"absolute w-full bottom-0 left-0 h-1"},null,8,["model-value"])):kt("",!0)])]),default:ce(()=>[$e("div",RQe,[te(ou,{label:"Version Name"},{default:ce(()=>[te(D(cp),{onChange:k=>$.versionError=!1,class:xt({"border-red-500":$.versionError}),type:"text",placeholder:"Version Name","model-value":$.version,"onUpdate:modelValue":k=>$.version=k},null,8,["onChange","class","model-value","onUpdate:modelValue"])]),_:2},1024),te(ou,{label:"Base Model"},{default:ce(()=>[te(u2,{"onUpdate:open":k=>$.baseModelError=!1,class:xt({"border-red-500":$.baseModelError}),"model-value":$.base_model,"onUpdate:modelValue":k=>$.base_model=k,placeholder:"Select Base Model"},{default:ce(()=>[(fe(!0),qe(Pt,null,Oi(a.value,(k,P)=>(fe(),Se(D(l2),{key:P,value:k.value},{default:ce(()=>[ot(Ot(k.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["onUpdate:open","class","model-value","onUpdate:modelValue"])]),_:2},1024),te(ou,{label:"Introduction"},{default:ce(()=>[te(TQe,{modelValue:$.intro,"onUpdate:modelValue":k=>$.intro=k,modelModifiers:{modelValue:!0},editorId:`myeditor${Q}`},null,8,["modelValue","onUpdate:modelValue","editorId"])]),_:2},1024),te(ou,{label:""},{default:ce(()=>[$e("div",QQe,[te(D(Ole),{id:"airplane-mode",checked:$.public,"onUpdate:checked":[k=>$.public=k,k=>{d(k,Q)}]},null,8,["checked","onUpdate:checked"]),te(D(dle),{for:"airplane-mode"},{default:ce(()=>x[9]||(x[9]=[ot("Publicly Visible")])),_:1})])]),_:2},1024),Ja(te(ou,{label:"File"},{default:ce(()=>[$e("div",kQe,[$.progress&&$.fileName?(fe(),qe("p",CQe,Ot($.fileName),1)):kt("",!0),$.progress?(fe(),qe("div",AQe,[te(D(c2),{"model-value":$.progress,class:"mt-4 h-3"},null,8,["model-value"]),$e("p",IQe,[ot(Ot($.progress)+"% Uploaded ",1),$.speed?(fe(),qe("span",DQe,"Speed: "+Ot($.speed),1)):kt("",!0)])])):kt("",!0),te(fce,{parallel:1,ref_for:!0,ref:$.ref,chunkSize:1,class:xt({"border-red-500":$.filePathError}),onPath:k=>_(k,Q),onStart:()=>b(Q),onSuccess:k=>y(k,Q),onError:()=>v(Q),onUploadInfo:k=>E(k,Q),onProgress:k=>g(k,Q)},null,8,["class","onPath","onStart","onSuccess","onError","onUploadInfo","onProgress"])])]),_:2},1536),[[Ds,!$.showUpload]])])]),_:2},1032,["index"]))),128))]),_:1},8,["activeIndex"]),l.value?(fe(),qe("div",MQe)):kt("",!0)]),_:2},[r.value?void 0:{name:"foot",fn:ce(()=>[$e("div",NQe,[te(D(Ur),{variant:"outline",class:"",onClick:p},{default:ce(()=>x[10]||(x[10]=[ot("Add Version")])),_:1}),te(D(Ur),{disabled:u.value,onClick:w},{default:ce(()=>x[11]||(x[11]=[ot("Publish")])),_:1},8,["disabled"])])]),key:"0"}]),1032,["open"])):kt("",!0)],64))}}),UQe=ve({__name:"index",setup(e){const t=xe({"Remote Folders":"1",Upload:"2"});return fetch("api/bizyair/news",{method:"GET"}).then(n=>n.json()).then(n=>{t.value=n}),(n,r)=>(fe(),Se(NN,{show_cases:t.value,buttonText:"News",icon:"book-open",isJson:!0},{default:ce(()=>r[0]||(r[0]=[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 32 32"},[$e("path",{fill:"#ddd",d:"M11 23a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2zm-1-3a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H11a1 1 0 0 1-1-1m1-5a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2zM5 5a3 3 0 0 1 3-3h10.172a3 3 0 0 1 2.12.879l5.83 5.828A3 3 0 0 1 27 10.828V27a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3zm3-1a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V12h-5a3 3 0 0 1-3-3V4zm12 6h4.586L19 4.414V9a1 1 0 0 0 1 1"})],-1)])),_:1},8,["show_cases"]))}}),XQe={class:"comfy-modal-content-sml"},zQe={class:"py-2"},BQe=ve({__name:"apiKeyDialog",setup(e){const t=lp(),n=xe(""),r=xe(!1),i=async c=>{const f=window.open("https://account.siliconflow.cn/oauth?client_id=SFaJLLq0y6CAMoyDm81aMu","oauthPopup","width=600,height=600");window.addEventListener("message",p=>{p.data.length>0&&p.data[0].secretKey!==void 0&&(c(p.data[0].secretKey),f&&f.close())})};function a(){r.value=!1}async function o(){if(!n.value)return r.value=!0,!1;const c=await hse(`api_key=${encodeURIComponent(n.value)}`);c.ok?(Ut("API Key set successfully!"),t.handleApiKeyDialog(!1),t.loginRefresh()):Ut.error(`Failed to set API Key: ${await c.text()}`)}function s(){t.handleApiKeyDialog(!1),n.value="",r.value=!1}function l(){i(c=>{n.value=c})}return(c,u)=>(fe(),Se(n_,{open:D(t).showApiKeyDialog,"onUpdate:open":u[1]||(u[1]=d=>D(t).showApiKeyDialog=d),layoutClass:"z-9000",class:"max-w-[680px] z-9000",onOnClose:u[2]||(u[2]=d=>D(t).handleApiKeyDialog(!1))},{title:ce(()=>u[3]||(u[3]=[ot("Set API Key")])),foot:ce(()=>[te(D(Ur),{type:"submit",onClick:o},{default:ce(()=>u[8]||(u[8]=[ot("Submit")])),_:1}),te(D(Ur),{variant:"outline",onClick:s},{default:ce(()=>u[9]||(u[9]=[ot("Close")])),_:1})]),default:ce(()=>[$e("div",XQe,[te(D(cp),{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=d=>n.value=d),type:"password",placeholder:"API Key",class:xt([{"border-red-500":r.value}]),onInput:a},null,8,["modelValue","class"]),$e("p",zQe,[u[4]||(u[4]=ot(" Please ")),$e("a",{class:"underline",href:"###",onClick:Sr(l,["prevent"])},"click to login"),u[5]||(u[5]=ot(" and autofill the key, "))]),u[6]||(u[6]=$e("p",{class:"py-2"},[ot(" or visit "),$e("a",{class:"underline",href:"https://cloud.siliconflow.cn",target:"_blank"},"https://cloud.siliconflow.cn"),ot(" to get your key and input manually. ")],-1)),u[7]||(u[7]=$e("p",{class:"py-2"},[ot(" Setting the API Key signifies agreement to the "),$e("a",{class:"underline",href:"https://docs.siliconflow.cn/docs/user-agreement",target:"_blank"},"User Agreement"),ot(" and "),$e("a",{class:"underline",href:"https://docs.siliconflow.cn/docs/privacy-policy",target:"_blank"},"Privacy Policy.")],-1))])]),_:1},8,["open"]))}}),FQe={class:"shadcn-root flex w-full"},WQe=ve({__name:"App",setup(e){const t=lp();return t.loginRefresh(),t.sendSocket(),(n,r)=>(fe(),qe("div",FQe,[te(Moe),D(t).isLogin?(fe(),Se(nle,{key:0})):(fe(),Se(Tse,{key:1})),te(LQe),te(UQe),te(BQe)]))}}),YY=ve({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=nn(e,t);return(a,o)=>(fe(),Se(D(vae),Nt(Lt(D(i))),{default:ce(()=>[we(a.$slots,"default")]),_:3},16))}}),VQe=ve({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(Eae),Ue({class:D(dt)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t.class)},n.value),{default:ce(()=>[we(r.$slots,"default")]),_:3},16,["class"]))}}),jY=ve({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(Sae),Ue(n.value,{class:D(dt)("inline-flex items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t.class)}),{default:ce(()=>[we(r.$slots,"default")]),_:3},16,["class"]))}}),YQe={class:"truncate"},qY=ve({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:i,...a}=t;return a}),r=Gr(n);return(i,a)=>(fe(),Se(D(Tae),Ue(D(r),{class:D(dt)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t.class)}),{default:ce(()=>[$e("span",YQe,[we(i.$slots,"default")])]),_:3},16,["class"]))}}),cQ=ve({__name:"Badge",props:{variant:{},class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("div",{class:xt(D(dt)(D(jQe)({variant:n.variant}),t.class))},[we(n.$slots,"default")],2))}}),jQe=g0("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),xy=ve({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const i=nn(e,t);return(a,o)=>(fe(),Se(D(Oie),Nt(Lt(D(i))),{default:ce(()=>[we(a.$slots,"default")]),_:3},16))}}),$y=ve({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{default:4},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=Ie(()=>{const{class:o,...s}=n;return s}),a=nn(i,r);return(o,s)=>(fe(),Se(D(pie),null,{default:ce(()=>[te(D(gie),Ue({...D(a),...o.$attrs},{class:D(dt)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:ce(()=>[we(o.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),Py=ve({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(fe(),Se(D(fie),Nt(Lt(t)),{default:ce(()=>[we(n.$slots,"default")]),_:3},16))}}),Ry=ve({__name:"Command",props:{modelValue:{default:""},defaultValue:{},open:{type:Boolean,default:!0},defaultOpen:{type:Boolean},searchTerm:{},selectedValue:{},multiple:{type:Boolean},disabled:{type:Boolean},name:{},dir:{},filterFunction:{},displayValue:{},resetSearchTermOnBlur:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["update:modelValue","update:open","update:searchTerm","update:selectedValue"],setup(e,{emit:t}){const n=e,r=t,i=Ie(()=>{const{class:o,...s}=n;return s}),a=nn(i,r);return(o,s)=>(fe(),Se(D(cre),Ue(D(a),{class:D(dt)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",n.class)}),{default:ce(()=>[we(o.$slots,"default")]),_:3},16,["class"]))}}),Uh=ve({__name:"CommandGroup",props:{asChild:{type:Boolean},as:{},class:{},heading:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(dre),Ue(n.value,{class:D(dt)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t.class)}),{default:ce(()=>[r.heading?(fe(),Se(D(Ore),{key:0,class:"px-2 py-1.5 text-xs font-medium text-muted-foreground"},{default:ce(()=>[ot(Ot(r.heading),1)]),_:1})):kt("",!0),we(r.$slots,"default")]),_:3},16,["class"]))}}),cl=ve({__name:"CommandItem",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,i=Ie(()=>{const{class:o,...s}=n;return s}),a=nn(i,r);return(o,s)=>(fe(),Se(D(_re),Ue(D(a),{class:D(dt)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n.class)}),{default:ce(()=>[we(o.$slots,"default")]),_:3},16,["class"]))}}),qQe={role:"presentation"},Qy=ve({__name:"CommandList",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},dismissable:{type:Boolean,default:!1},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(e,{emit:t}){const n=e,r=t,i=Ie(()=>{const{class:o,...s}=n;return s}),a=nn(i,r);return(o,s)=>(fe(),Se(D(hre),Ue(D(a),{class:D(dt)("max-h-[300px] overflow-y-auto overflow-x-hidden",n.class)}),{default:ce(()=>[$e("div",qQe,[we(o.$slots,"default")])]),_:3},16,["class"]))}}),uQ=ve({__name:"CommandSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(bre),Ue(n.value,{class:D(dt)("-mx-1 h-px bg-border",t.class)}),{default:ce(()=>[we(r.$slots,"default")]),_:3},16,["class"]))}}),GQe={class:"flex space-x-2 mb-4"},ZQe={class:"relative flex-1"},HQe={class:"flex flex-wrap gap-2"},KQe={class:"flex flex-wrap gap-2"},JQe=ve({__name:"ModelFilterBar",props:{showSortPopover:{type:Boolean}},emits:["update:showSortPopover","fetchData"],setup(e,{emit:t}){const n=su(),r=xe([]),i=t,a=c=>{n.filterState.sort=c,i("fetchData"),i("update:showSortPopover",!1)},o=c=>{if(n.selectedBaseModels.length!==0)return;const u=[...n.filterState.model_types],d=u.indexOf(c);d===-1?u.push(c):u.splice(d,1),n.filterState.model_types=u,i("fetchData"),i("update:showSortPopover",!1)},s=c=>{const u=[...n.filterState.base_models],d=u.indexOf(c);d===-1?u.push(c):u.splice(d,1),n.filterState.base_models=u,i("fetchData"),i("update:showSortPopover",!1)},l=()=>{n.modelListPathParams.current=1,i("fetchData"),i("update:showSortPopover",!1)};return ht(async()=>{n.selectedBaseModels&&(r.value=[...n.selectedBaseModels])}),(c,u)=>{const d=GK("debounce");return fe(),qe("div",GQe,[$e("div",ZQe,[Ja(te(D(cp),{modelValue:D(n).filterState.keyword,"onUpdate:modelValue":u[0]||(u[0]=O=>D(n).filterState.keyword=O),placeholder:"Filter by name",class:"h-[44px] border border-[#9CA3AF] w-full bg-[#222] rounded-lg pr-8 pl-8"},null,8,["modelValue"]),[[d,l]]),u[5]||(u[5]=$e("span",{class:"absolute start-0 inset-y-0 flex items-center justify-center px-2"},[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"hover:brightness-150 transition-all duration-300"},[$e("path",{d:"M14 14L11.1333 11.1333M12.6667 7.33333C12.6667 10.2789 10.2789 12.6667 7.33333 12.6667C4.38781 12.6667 2 10.2789 2 7.33333C2 4.38781 4.38781 2 7.33333 2C10.2789 2 12.6667 4.38781 12.6667 7.33333Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})])],-1))]),te(D(xy),{class:"bg-[#353535]",open:c.showSortPopover,"onUpdate:open":u[4]||(u[4]=O=>i("update:showSortPopover",O))},{default:ce(()=>[te(D(Py),{class:"bg-transparent"},{default:ce(()=>[te(D(Ur),{variant:"default",class:"w-[44px] h-[44px] hover:border-2 hover:border-white cursor-pointer group"},{default:ce(()=>u[6]||(u[6]=[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[$e("path",{d:"M2 10.6667L4.66667 13.3334M4.66667 13.3334L7.33333 10.6667M4.66667 13.3334V2.66675M7.33333 2.66675H14M7.33333 5.33341H12M7.33333 8.00008H10",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),_:1})]),_:1}),te(D($y),{side:"bottom",align:"end",class:"w-[150px] p-0 bg-[#353535] rounded-lg z-12000"},{default:ce(()=>[te(D(Ry),null,{default:ce(()=>[te(D(Qy),null,{default:ce(()=>[te(D(Uh),null,{default:ce(()=>[te(D(cl),{value:"recently",onClick:u[1]||(u[1]=O=>a("Recently")),class:xt(["px-2 py-1.5 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]",D(n).filterState.sort==="Recently"?"!bg-[#6D28D9] !text-[#F9FAFB]":""])},{default:ce(()=>u[7]||(u[7]=[ot(" Recently ")])),_:1},8,["class"]),["my","my_fork"].includes(D(n).mode)?kt("",!0):(fe(),Se(D(cl),{key:0,value:"most-forked",onClick:u[2]||(u[2]=O=>a("Most Forked")),class:xt(["px-2 py-1.5 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]",D(n).filterState.sort==="Most Forked"?"!bg-[#6D28D9] !text-[#F9FAFB]":""])},{default:ce(()=>u[8]||(u[8]=[ot(" Most Forked ")])),_:1},8,["class"])),["my","my_fork"].includes(D(n).mode)?kt("",!0):(fe(),Se(D(cl),{key:1,value:"most-used",onClick:u[3]||(u[3]=O=>a("Most Used")),class:xt(["px-2 py-1.5 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]",D(n).filterState.sort==="Most Used"?"!bg-[#6D28D9] !text-[#F9FAFB]":""])},{default:ce(()=>u[9]||(u[9]=[ot(" Most Used ")])),_:1},8,["class"]))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),te(D(xy),null,{default:ce(()=>[te(D(Py),{class:"bg-transparent"},{default:ce(()=>[te(D(Ur),{variant:"default",class:"w-[44px] h-[44px] hover:border-2 hover:border-white cursor-pointer"},{default:ce(()=>u[10]||(u[10]=[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"mr-2"},[$e("path",{d:"M14.6666 2H1.33325L6.66658 8.30667V12.6667L9.33325 14V8.30667L14.6666 2Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),_:1})]),_:1}),te(D($y),{side:"bottom",align:"end",class:"w-[200px] p-0 bg-[#222] rounded-lg z-12000"},{default:ce(()=>[te(D(Ry),null,{default:ce(()=>[te(D(Qy),null,{default:ce(()=>[te(D(Uh),null,{default:ce(()=>[u[11]||(u[11]=$e("div",{class:"p-2"},[$e("div",{class:"text-sm font-medium text-[#F9FAFB] mb-2"},"Model Types")],-1)),te(D(cl),{value:"model-types",class:"p-2"},{default:ce(()=>[$e("div",HQe,[(fe(!0),qe(Pt,null,Oi(D(n).modelTypes,O=>(fe(),Se(D(cQ),{variant:"secondary",key:O.value,onClick:f=>o(O.value),class:xt(["cursor-not-allowed hover:!bg-inherit",D(n).filterState.model_types.includes(O.value)?"bg-[#6D28D9] hover:!bg-[#6D28D9]":"bg-[#4E4E4E] hover:!bg-[#4E4E4E]"])},{default:ce(()=>[ot(Ot(O.label),1)]),_:2},1032,["onClick","class"]))),128))])]),_:1})]),_:1}),te(D(uQ)),te(D(Uh),null,{default:ce(()=>[u[12]||(u[12]=$e("div",{class:"p-2"},[$e("div",{class:"text-sm font-medium text-[#F9FAFB] mb-2"},"Base Models")],-1)),te(D(cl),{value:"base-models",class:"p-2"},{default:ce(()=>[$e("div",KQe,[(fe(!0),qe(Pt,null,Oi(D(n).baseModelTypes.filter(O=>{var f,p;return((f=D(n).selectedBaseModels)==null?void 0:f.length)===0||((p=D(n).selectedBaseModels)==null?void 0:p.includes(O.value))}),O=>(fe(),Se(D(cQ),{variant:"secondary",key:O.value,onClick:f=>s(O.value),class:xt(["cursor-pointer hover:!bg-inherit",D(n).filterState.base_models.includes(O.value)?"bg-[#6D28D9] hover:!bg-[#6D28D9]":"bg-[#4E4E4E] hover:!bg-[#4E4E4E]"])},{default:ce(()=>[ot(Ot(O.label),1)]),_:2},1032,["onClick","class"]))),128))])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])}}}),eke=ve({__name:"PaginationEllipsis",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(nie),Ue(n.value,{class:D(dt)("w-9 h-9 flex items-center justify-center",t.class)}),{default:ce(()=>[we(r.$slots,"default",{},()=>[te(D(yoe))])]),_:3},16,["class"]))}}),tke=ve({__name:"PaginationFirst",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(rie),Nt(Lt(n.value)),{default:ce(()=>[te(D(Ur),{class:xt(D(dt)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:ce(()=>[we(r.$slots,"default",{},()=>[te(D(moe),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),nke=ve({__name:"PaginationLast",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(iie),Nt(Lt(n.value)),{default:ce(()=>[te(D(Ur),{class:xt(D(dt)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:ce(()=>[we(r.$slots,"default",{},()=>[te(D(goe),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),rke=ve({__name:"PaginationNext",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(cie),Nt(Lt(n.value)),{default:ce(()=>[te(D(Ur),{class:xt(D(dt)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:ce(()=>[we(r.$slots,"default",{},()=>[te(D(CN),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),ike=ve({__name:"PaginationPrev",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(uie),Nt(Lt(n.value)),{default:ce(()=>[te(D(Ur),{class:xt(D(dt)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:ce(()=>[we(r.$slots,"default",{},()=>[te(D(poe),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),ake={key:0},oke=dp(ve({__name:"ModelPagination",setup(e){const t=su(),n=Ie(()=>t.modelListPathParams.total/t.modelListPathParams.page_size>1),r=i=>{t.updatePagination(i)};return(i,a)=>n.value?(fe(),qe("div",ake,[te(D(tie),{total:D(t).modelListPathParams.total,"items-per-page":D(t).modelListPathParams.page_size,"default-page":D(t).modelListPathParams.current,"sibling-count":1,"show-edges":"","onUpdate:page":r},{default:ce(({page:o})=>[te(D(sie),{class:"flex items-center gap-1"},{default:ce(({items:s})=>[te(D(tke),{class:"pagination-button"}),te(D(ike),{class:"pagination-button"}),(fe(!0),qe(Pt,null,Oi(s,(l,c)=>(fe(),qe(Pt,null,[l.type==="page"?(fe(),Se(D(lie),{key:c,value:l.value,"as-child":""},{default:ce(()=>[te(D(Ur),{class:"pagination-button page-button",variant:l.value===o?"default":"ghost"},{default:ce(()=>[ot(Ot(l.value),1)]),_:2},1032,["variant"])]),_:2},1032,["value"])):(fe(),Se(D(eke),{key:l.type,index:c,class:"pagination-button"},null,8,["index"]))],64))),256)),te(D(rke),{class:"pagination-button"}),te(D(nke),{class:"pagination-button"})]),_:2},1024)]),_:1},8,["total","items-per-page","default-page"])])):kt("",!0)}}),[["__scopeId","data-v-654ff384"]]),ske={class:"relative w-full overflow-auto"},lke=ve({__name:"Table",props:{class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("div",ske,[$e("table",{class:xt(D(dt)("w-full caption-bottom text-sm",t.class))},[we(n.$slots,"default")],2)]))}}),cke=ve({__name:"TableBody",props:{class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("tbody",{class:xt(D(dt)("[&_tr:last-child]:border-0",t.class))},[we(n.$slots,"default")],2))}}),Os=ve({__name:"TableCell",props:{class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("td",{class:xt(D(dt)("p-4 align-middle [&:has([role=checkbox])]:pr-0",t.class))},[we(n.$slots,"default")],2))}}),Xh=ve({__name:"TableRow",props:{class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("tr",{class:xt(D(dt)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t.class))},[we(n.$slots,"default")],2))}}),ky=ve({__name:"TableHead",props:{class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("th",{class:xt(D(dt)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t.class))},[we(n.$slots,"default")],2))}}),uke=ve({__name:"TableHeader",props:{class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("thead",{class:xt(D(dt)("[&_tr]:border-b",t.class))},[we(n.$slots,"default")],2))}}),GY=ve({__name:"ScrollBar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(Die),Ue(n.value,{class:D(dt)("flex touch-none select-none transition-colors",r.orientation==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",r.orientation==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",t.class)}),{default:ce(()=>[te(D(Nie),{class:"relative flex-1 rounded-full bg-border"})]),_:1},16,["class"]))}}),dke=ve({__name:"ScrollArea",props:{type:{},dir:{},scrollHideDelay:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(wie),Ue(n.value,{class:D(dt)("relative overflow-hidden",t.class)}),{default:ce(()=>[te(D(xie),{class:"h-full w-full rounded-[inherit]"},{default:ce(()=>[we(r.$slots,"default")]),_:3}),te(GY),te(D(Lie))]),_:3},16,["class"]))}}),Oke=ve({__name:"Avatar",props:{class:{},size:{default:"sm"},shape:{default:"circle"}},setup(e){const t=e;return(n,r)=>(fe(),Se(D(Hne),{class:xt(D(dt)(D(hke)({size:n.size,shape:n.shape}),t.class))},{default:ce(()=>[we(n.$slots,"default")]),_:3},8,["class"]))}}),fke=ve({__name:"AvatarFallback",props:{delayMs:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(fe(),Se(D(ere),Nt(Lt(t)),{default:ce(()=>[we(n.$slots,"default")]),_:3},16))}}),pke=ve({__name:"AvatarImage",props:{src:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(fe(),Se(D(Jne),Ue(t,{class:"h-full w-full object-cover"}),null,16))}}),hke=g0("inline-flex items-center justify-center font-normal text-foreground select-none shrink-0 bg-secondary overflow-hidden",{variants:{size:{sm:"h-10 w-10 text-xs",base:"h-16 w-16 text-2xl",lg:"h-32 w-32 text-5xl"},shape:{circle:"rounded-full",square:"rounded-md"}}}),mke={key:0,class:"p-6 pb-12 flex flex-col gap-4 items-start justify-start min-w-[1000px] relative shadow-[0px_20px_40px_0px_rgba(0,0,0,0.25)]"},gke={class:"flex flex-col gap-1.5 items-start justify-start self-stretch shrink-0 relative"},_ke={class:"flex flex-row gap-2 items-center justify-start self-stretch shrink-0 relative"},bke={class:"text-text-text-foreground text-left font-['Inter-SemiBold',_sans-serif] text-lg leading-[18px] font-semibold relative",style:{"letter-spacing":"-0.025em"}},yke={class:"flex flex-row gap-1 items-start justify-start shrink-0 relative"},vke={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},Ske={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},Eke={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},Tke={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},wke={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},xke={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},$ke={class:"flex flex-row gap-1 items-center justify-start self-stretch shrink-0 relative"},Pke={class:"bg-[#4e4e4e] rounded-lg p-1 flex flex-row gap-4 items-start justify-start self-stretch shrink-0 relative"},Rke={class:"min-w-[200px] max-w-[600px]"},Qke={class:"whitespace-nowrap"},kke={class:"flex gap-8"},Cke={class:"flex flex-row gap-4 items-start justify-start shrink-0 relative"},Ake={class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative"},Ike={class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative"},Dke={class:"flex flex-row gap-8 items-start justify-start self-stretch flex-1 relative"},Nke={class:"flex flex-col gap-4 items-start justify-start relative min-w-[620px] w-[65%] overflow-hidden"},Mke={class:"w-full min-h-[80vh]"},Lke={key:1,class:"w-full h-[80vh] bg-[#353535] rounded-tl-lg rounded-tr-lg"},Uke={class:"flex flex-col gap-6 items-start justify-start w-[40%] relative"},Xke={class:"pb-8 flex flex-col gap-6 items-start justify-start shrink-0 h-[97px] relative"},zke={class:"flex flex-row gap-2 items-center justify-start shrink-0 relative"},Bke={class:"flex flex-row gap-1.5 items-start justify-start self-stretch shrink-0 relative"},Fke={class:"rounded-[6px] border-solid border-[rgba(78,78,78,0.50)] border flex flex-col gap-0 items-start justify-start self-stretch shrink-0 relative text-[#F9FAFB] font-inter text-sm font-medium leading-5"},Wke={className:"flex w-full text-gray-300 text-sm"},Vke={className:"flex-1 p-4 border-b text-sm border-[rgba(78,78,78,0.50)]"},Yke={className:"flex w-full"},jke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)]"},qke={className:"flex w-full"},Gke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)]"},Zke={className:"flex w-full"},Hke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)] flex items-center gap-2"},Kke={className:"flex w-full"},Jke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)] flex flex-row gap-2"},eCe={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},tCe={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},nCe={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},rCe={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},iCe={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},aCe={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},oCe={class:"rounded-md border-solid border-[#4e4e4e] border flex flex-col gap-0 items-start justify-start self-stretch shrink-0 relative"},sCe={class:"flex px-[8px] py-4 items-center self-stretch text-[#F9FAFB] font-inter text-xs font-medium leading-5"},lCe=dp(ve({__name:"Index",props:{modelId:{},version:{}},setup(e){const t=su(),n=xe(),r=xe(),i=xe(!1),a=xe(null),o=e,s=async()=>{const b=await y2({id:o.modelId,source:t.mode});if(!b.data){Ut.error("Model not found."),t.closeAndReload();return}n.value=b.data,l()},l=()=>{var b;if(n.value&&n.value.versions&&n.value.versions.length>0)if((b=o.version)!=null&&b.id){const y=n.value.versions.find(v=>v.id===o.version.id);y&&(r.value={...y},bt(()=>{var v;p((v=o.version)==null?void 0:v.id)}))}else r.value={...n.value.versions[0]},bt(()=>{var y;(y=r.value)!=null&&y.id&&p(r.value.id)})};ht(async()=>{await s()});const c=b=>{var v,E;const y=(E=(v=n.value)==null?void 0:v.versions)==null?void 0:E.find(w=>w.id===b);y&&(r.value=y)},u=()=>{i.value=!i.value},d=async()=>{var b;await sce((b=r.value)==null?void 0:b.id),s()},O=async()=>{var b;await lce((b=r.value)==null?void 0:b.id),await s()},f=b=>{bt(()=>{setTimeout(()=>{if(!a.value)return;const y=a.value.$el.querySelector("[data-radix-scroll-area-viewport]"),v=y==null?void 0:y.querySelector('[role="tablist"]'),E=v==null?void 0:v.querySelector(`[role="tab"].version-tab-${b}`);if(!y||!E||!v)return;const T=Array.from(v.querySelectorAll('[role="tab"]')).reduce((k,P)=>k+P.offsetWidth,0);v.style.width=`${T}px`;const S=E.offsetLeft,x=y.clientWidth,$=E.offsetWidth,Q=Math.max(0,S-(x-$)/2);y.scrollTo({left:Q,behavior:"smooth"})},100)})},p=b=>{setTimeout(()=>{f(b)},200)},h=async(b,y)=>{var v,E,w;if(b==="edit"&&(t.setModelDetail(n),t.setDialogStatus(!0,Number((v=r.value)==null?void 0:v.id)),i.value=!1),b==="remove"){if(i.value=!1,!await t_({title:"Are you sure you want to delete this model?",desc:"This action cannot be undone.",cancel:"No, Keep It",continue:"Yes, Delete It",z:"z-9000"}))return;if((E=n.value)!=null&&E.versions&&((w=n.value)==null?void 0:w.versions.some(x=>x.public))){Ut.warning("Model has public version, cannot remove.");return}m(y)}},m=async b=>{try{await v2(b),Ut.success("Model removed successfully."),t.reload+=1}catch(y){Ut.error("Failed to remove model."),console.error("Error removing model:",y)}},g=()=>{r.value&&n.value&&t.setApplyObject(r.value,n.value)},_=async b=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(b||""),Ut.success("Copied successfully.");else{const y=document.createElement("input");y.value=b||"",document.body.appendChild(y),y.select(),document.execCommand("copy"),document.body.removeChild(y)}}catch{Ut.error("Copy failed.")}};return(b,y)=>{var v,E,w,T,S,x,$,Q,k,P,R,C,I,X,F,z,J,ne,re,Z,W,j,q,G,ie,le,ae,pe,K,A,N;return n.value?(fe(),qe("div",mke,[$e("div",gke,[$e("div",_ke,[$e("div",bke,Ot(D(pE)((v=n.value)==null?void 0:v.name,60)),1),$e("div",yke,[$e("div",vke,[y[3]||(y[3]=$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[$e("path",{d:"M3.33325 2L12.6666 8L3.33325 14V2Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$e("div",Ske,Ot(D(vd)((w=(E=n.value)==null?void 0:E.counter)==null?void 0:w.used_count)),1)])]),$e("div",Eke,[y[4]||(y[4]=$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[$e("path",{d:"M7.99992 1.33325L10.0599 5.50659L14.6666 6.17992L11.3333 9.42659L12.1199 14.0133L7.99992 11.8466L3.87992 14.0133L4.66659 9.42659L1.33325 6.17992L5.93992 5.50659L7.99992 1.33325Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$e("div",Tke,Ot(D(vd)((S=(T=n.value)==null?void 0:T.counter)==null?void 0:S.forked_count)),1)]),$e("div",wke,[y[5]||(y[5]=mg('',1)),$e("div",xke,Ot(D(vd)(($=(x=n.value)==null?void 0:x.counter)==null?void 0:$.liked_count)),1)])]),$e("div",$ke,[$e("div",Pke,[$e("div",Rke,[te(D(dke),{ref_key:"scrollViewportRef",ref:a,class:"rounded-md w-full"},{default:ce(()=>{var M,oe;return[$e("div",Qke,[te(D(YY),{defaultValue:(M=r.value)==null?void 0:M.id,value:(oe=r.value)==null?void 0:oe.id},{default:ce(()=>[te(D(jY),{class:"inline-flex h-12 bg-transparent text-sm text-white w-auto"},{default:ce(()=>{var se;return[(fe(!0),qe(Pt,null,Oi((se=n.value)==null?void 0:se.versions,V=>(fe(),Se(D(qY),{value:V.id,onClick:ee=>c(V.id),class:xt([["version-tab",`version-tab-${V.id}`],"text-sm t bg-[#9CA3AF] data-[state=active]:bg-[#7C3AED] h-10 px-3 py-2 mx-1"])},{default:ce(()=>[ot(Ot(V.version),1)]),_:2},1032,["value","onClick","class"]))),256))]}),_:1})]),_:1},8,["defaultValue","value"])]),te(D(GY),{orientation:"horizontal"})]}),_:1},512)])]),y[10]||(y[10]=$e("div",{class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative flex-1"},null,-1)),$e("div",kke,[(fe(),qe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"cursor-pointer",onClick:d,style:Ei({stroke:(Q=r.value)!=null&&Q.liked?"#6D28D9":"#F9FAFB",fill:(k=r.value)!=null&&k.liked?"#6D28D9":"none"})},y[6]||(y[6]=[$e("g",{"clip-path":"url(#clip0_440_1289)"},[$e("path",{d:"M4.66659 6.66658V14.6666M9.99992 3.91992L9.33325 6.66658H13.2199C13.4269 6.66658 13.6311 6.71478 13.8162 6.80735C14.0013 6.89992 14.1624 7.03432 14.2866 7.19992C14.4108 7.36551 14.4947 7.55775 14.5317 7.7614C14.5688 7.96506 14.5579 8.17454 14.4999 8.37325L12.9466 13.7066C12.8658 13.9835 12.6974 14.2268 12.4666 14.3999C12.2358 14.573 11.9551 14.6666 11.6666 14.6666H2.66659C2.31296 14.6666 1.97382 14.5261 1.72378 14.2761C1.47373 14.026 1.33325 13.6869 1.33325 13.3333V7.99992C1.33325 7.6463 1.47373 7.30716 1.72378 7.05711C1.97382 6.80706 2.31296 6.66658 2.66659 6.66658H4.50659C4.75464 6.66645 4.99774 6.59713 5.20856 6.4664C5.41937 6.33567 5.58953 6.14873 5.69992 5.92659L7.99992 1.33325C8.3143 1.33715 8.62374 1.41203 8.90512 1.55232C9.1865 1.6926 9.43254 1.89466 9.62486 2.14339C9.81717 2.39212 9.9508 2.68109 10.0157 2.98872C10.0807 3.29635 10.0753 3.61468 9.99992 3.91992Z","stroke-linecap":"round","stroke-linejoin":"round"})],-1),$e("defs",null,[$e("clipPath",{id:"clip0_440_1289"},[$e("rect",{width:"16",height:"16",fill:"white"})])],-1)]),4)),D(t).mode==="my"||D(t).mode==="my_fork"?(fe(),Se(D(xy),{key:0,class:"bg-[#353535]",open:i.value,"onUpdate:open":u},{default:ce(()=>[te(D(Py),{class:"bg-transparent"},{default:ce(()=>y[7]||(y[7]=[$e("div",{class:"flex justify-center items-center rounded-md w-8 relative z-50"},[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"cursor-pointer"},[$e("path",{d:"M8.66659 7.99992C8.66659 7.63173 8.36811 7.33325 7.99992 7.33325C7.63173 7.33325 7.33325 7.63173 7.33325 7.99992C7.33325 8.36811 7.63173 8.66659 7.99992 8.66659C8.36811 8.66659 8.66659 8.36811 8.66659 7.99992Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"}),$e("path",{d:"M8.66659 3.33325C8.66659 2.96506 8.36811 2.66658 7.99992 2.66658C7.63173 2.66658 7.33325 2.96506 7.33325 3.33325C7.33325 3.70144 7.63173 3.99992 7.99992 3.99992C8.36811 3.99992 8.66659 3.70144 8.66659 3.33325Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"}),$e("path",{d:"M8.66659 12.6666C8.66659 12.2984 8.36811 11.9999 7.99992 11.9999C7.63173 11.9999 7.33325 12.2984 7.33325 12.6666C7.33325 13.0348 7.63173 13.3333 7.99992 13.3333C8.36811 13.3333 8.66659 13.0348 8.66659 12.6666Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)])),_:1}),te(D($y),{side:"bottom",align:"end",class:"w-[150px] p-0 bg-[#353535] rounded-lg group-hover:visible z-15000"},{default:ce(()=>[te(D(Ry),null,{default:ce(()=>[te(D(Qy),null,{default:ce(()=>[te(D(Uh),null,{default:ce(()=>[te(D(cl),{value:"edit",onClick:y[0]||(y[0]=M=>{var oe;return h("edit",(oe=n.value)==null?void 0:oe.id)}),class:"px-2 py-1.5 mb-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:ce(()=>y[8]||(y[8]=[ot(" Edit ")])),_:1}),te(D(uQ)),te(D(cl),{value:"remove",onClick:y[1]||(y[1]=M=>{var oe;return h("remove",(oe=n.value)==null?void 0:oe.id)}),class:"px-2 py-1.5 mb-1 mt-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:ce(()=>y[9]||(y[9]=[ot(" Remove ")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])):kt("",!0)])]),$e("div",Cke,[$e("div",Ake," First Published: "+Ot((P=r.value)==null?void 0:P.created_at),1),$e("div",Ike," Last Updated: "+Ot((R=r.value)==null?void 0:R.updated_at),1)])]),$e("div",Dke,[$e("div",Nke,[$e("div",Mke,[(C=r.value)!=null&&C.intro?(fe(),Se(D(Lp),{key:0,id:"previewRef",modelValue:(I=r.value)==null?void 0:I.intro,noImgZoomIn:!0,preview:!0,theme:"dark",class:"bg-[#353535] w-full min-h-[80vh]"},null,8,["modelValue"])):(fe(),qe("div",Lke,y[11]||(y[11]=[$e("div",{class:"flex justify-center items-center h-full"},[$e("div",{class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative"}," No introduction yet ")],-1)])))])]),$e("div",Uke,[$e("div",Xke,[$e("div",zke,[te(D(Oke),null,{default:ce(()=>[te(D(pke),{src:"https://github.com/radix-vue.png",alt:"@radix-vue"}),te(D(fke),null,{default:ce(()=>{var M,oe;return[ot(Ot((oe=(M=n.value)==null?void 0:M.user_name)==null?void 0:oe.slice(0,2)),1)]}),_:1})]),_:1}),ot(" "+Ot((X=n.value)==null?void 0:X.user_name),1)]),$e("div",Bke,[D(t).mode==="publicity"?(fe(),Se(D(Ur),{key:0,variant:"default",class:"w-[124px] flex h-9 px-3 py-2 justify-center items-center gap-2 flex-1 rounded-md bg-[#6D28D9]",onClick:O,disabled:(F=r.value)==null?void 0:F.forked},{default:ce(()=>{var M;return[ot(Ot((M=r.value)!=null&&M.forked?"Forked":"Fork"),1)]}),_:1},8,["disabled"])):kt("",!0),te(D(Ur),{onClick:g,class:"flex w-[170px] px-8 py-2 justify-center items-center gap-2 bg-[#F43F5E] hover:bg-[#F43F5E]/90 rounded-[6px]"},{default:ce(()=>y[12]||(y[12]=[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},[$e("path",{d:"M6.49988 7.9999L7.83322 9.33324L10.4999 6.66657M3.06655 5.74657C2.96925 5.30825 2.98419 4.85246 3.10999 4.42146C3.23579 3.99046 3.46838 3.5982 3.7862 3.28105C4.10401 2.9639 4.49676 2.73213 4.92802 2.60723C5.35929 2.48233 5.81511 2.46835 6.25322 2.56657C6.49436 2.18944 6.82655 1.87907 7.21919 1.66409C7.61182 1.44911 8.05225 1.33643 8.49988 1.33643C8.94752 1.33643 9.38795 1.44911 9.78058 1.66409C10.1732 1.87907 10.5054 2.18944 10.7466 2.56657C11.1853 2.46792 11.6419 2.48184 12.0739 2.60704C12.5058 2.73225 12.8991 2.96466 13.2171 3.28267C13.5351 3.60068 13.7675 3.99395 13.8927 4.4259C14.0179 4.85786 14.0319 5.31446 13.9332 5.75324C14.3104 5.99437 14.6207 6.32657 14.8357 6.7192C15.0507 7.11183 15.1634 7.55227 15.1634 7.9999C15.1634 8.44754 15.0507 8.88797 14.8357 9.2806C14.6207 9.67323 14.3104 10.0054 13.9332 10.2466C14.0314 10.6847 14.0175 11.1405 13.8926 11.5718C13.7677 12.003 13.5359 12.3958 13.2187 12.7136C12.9016 13.0314 12.5093 13.264 12.0783 13.3898C11.6473 13.5156 11.1915 13.5305 10.7532 13.4332C10.5124 13.8118 10.1799 14.1235 9.78663 14.3394C9.39333 14.5554 8.9519 14.6686 8.50322 14.6686C8.05453 14.6686 7.6131 14.5554 7.2198 14.3394C6.8265 14.1235 6.49404 13.8118 6.25322 13.4332C5.81511 13.5315 5.35929 13.5175 4.92802 13.3926C4.49676 13.2677 4.10401 13.0359 3.7862 12.7188C3.46838 12.4016 3.23579 12.0093 3.10999 11.5783C2.98419 11.1473 2.96925 10.6916 3.06655 10.2532C2.68652 10.0127 2.37349 9.68002 2.15658 9.28605C1.93967 8.89207 1.82593 8.44964 1.82593 7.9999C1.82593 7.55016 1.93967 7.10773 2.15658 6.71376C2.37349 6.31979 2.68652 5.98707 3.06655 5.74657Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1),ot("Apply")])),_:1})])]),$e("div",Fke,[$e("div",Wke,[y[13]||(y[13]=$e("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 border-b border-[rgba(78,78,78,0.50)]"}," Type",-1)),$e("div",Vke,[$e("span",{class:xt(`${(z=n.value)==null?void 0:z.type} inline-flex px-[10px] py-[2px] items-start gap-[10px] rounded-[9999px] relative overflow-hidden`)},Ot((J=n.value)==null?void 0:J.type),3)])]),$e("div",Yke,[y[14]||(y[14]=$e("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 text-sm border-b border-[rgba(78,78,78,0.50)] whitespace-nowrap"}," Base Model",-1)),$e("div",jke,Ot((ne=r.value)==null?void 0:ne.base_model),1)]),$e("div",qke,[y[15]||(y[15]=$e("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 border-b border-[rgba(78,78,78,0.50)]"}," Published",-1)),$e("div",Gke,Ot((re=r.value)==null?void 0:re.created_at),1)]),$e("div",Zke,[y[17]||(y[17]=$e("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 border-b border-[rgba(78,78,78,0.50)]"}," Hash",-1)),$e("div",Hke,[$e("span",null,Ot((Z=r.value)!=null&&Z.sign?D(pE)((W=r.value)==null?void 0:W.sign,15):""),1),(j=r.value)!=null&&j.sign?(fe(),qe("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"cursor-pointer hover:opacity-80",onClick:y[2]||(y[2]=M=>{var oe;return _(((oe=r.value)==null?void 0:oe.sign)||"")})},y[16]||(y[16]=[$e("g",{"clip-path":"url(#clip0_315_3710)"},[$e("path",{d:"M2.66659 10.6666C1.93325 10.6666 1.33325 10.0666 1.33325 9.33325V2.66659C1.33325 1.93325 1.93325 1.33325 2.66659 1.33325H9.33325C10.0666 1.33325 10.6666 1.93325 10.6666 2.66659M6.66658 5.33325H13.3333C14.0696 5.33325 14.6666 5.93021 14.6666 6.66658V13.3333C14.6666 14.0696 14.0696 14.6666 13.3333 14.6666H6.66658C5.93021 14.6666 5.33325 14.0696 5.33325 13.3333V6.66658C5.33325 5.93021 5.93021 5.33325 6.66658 5.33325Z",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"})],-1),$e("defs",null,[$e("clipPath",{id:"clip0_315_3710"},[$e("rect",{width:"16",height:"16",fill:"white"})])],-1)]))):kt("",!0)])]),$e("div",Kke,[y[21]||(y[21]=$e("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 text-gray-300 border-b border-[rgba(78,78,78,0.50)]"}," Stats",-1)),$e("div",Jke,[$e("div",eCe,[y[18]||(y[18]=$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[$e("path",{d:"M3.33325 2L12.6666 8L3.33325 14V2Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$e("div",tCe,Ot(D(vd)((G=(q=r.value)==null?void 0:q.counter)==null?void 0:G.used_count)),1)]),$e("div",nCe,[y[19]||(y[19]=$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[$e("path",{d:"M7.99992 1.33325L10.0599 5.50659L14.6666 6.17992L11.3333 9.42659L12.1199 14.0133L7.99992 11.8466L3.87992 14.0133L4.66659 9.42659L1.33325 6.17992L5.93992 5.50659L7.99992 1.33325Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$e("div",rCe,Ot(D(vd)((le=(ie=r.value)==null?void 0:ie.counter)==null?void 0:le.forked_count)),1)]),$e("div",iCe,[y[20]||(y[20]=mg('',1)),$e("div",aCe,Ot(D(vd)((pe=(ae=r.value)==null?void 0:ae.counter)==null?void 0:pe.liked_count)),1)])])])]),$e("div",oCe,[y[22]||(y[22]=$e("div",{class:"bg-[#424242] rounded-md flex items-center justify-start self-stretch shrink-0 relative h-[44px] pl-2"}," File ",-1)),$e("div",sCe,Ot((K=r.value)!=null&&K.file_name?D(pE)((A=r.value)==null?void 0:A.file_name,20):"")+" ("+Ot(D(Cee)((N=r.value)==null?void 0:N.file_size))+") ",1)])])])])):kt("",!0)}}}),[["__scopeId","data-v-1848d10c"]]),cCe={class:"text-sm text-white-500 flex items-center min-w-0"},uCe={class:"truncate flex-1"},dCe={class:"flex-shrink-0 ml-2"},OCe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},fCe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},pCe=ve({__name:"ModelVersionRow",props:{version:{},model:{}},setup(e){const t=su(),n=xe(!1);Be(()=>t.reload,(a,o)=>{a!==o&&(n.value=!1)},{deep:!0});const r=(a,o)=>{t.setApplyObject(a,o)},i=()=>{n.value=!0};return(a,o)=>(fe(),qe(Pt,null,[te(D(Xh),{class:"bg-[#3D3D3D] hover:bg-[#4E4E4E] hover:cursor-pointer border-[#F9FAFB]/60 h-12",onClick:i},{default:ce(()=>[te(D(Os),{class:"pl-10 w-[55%] max-w-[200px]"},{default:ce(()=>[$e("div",cCe,[$e("span",uCe,Ot(a.version.version),1),$e("div",dCe,[a.version.public?(fe(),qe("svg",OCe,o[2]||(o[2]=[$e("path",{d:"M1.33325 8.49992C1.33325 8.49992 3.33325 3.83325 7.99992 3.83325C12.6666 3.83325 14.6666 8.49992 14.6666 8.49992C14.6666 8.49992 12.6666 13.1666 7.99992 13.1666C3.33325 13.1666 1.33325 8.49992 1.33325 8.49992Z",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),$e("path",{d:"M7.99992 10.4999C9.10449 10.4999 9.99992 9.60449 9.99992 8.49992C9.99992 7.39535 9.10449 6.49992 7.99992 6.49992C6.89535 6.49992 5.99992 7.39535 5.99992 8.49992C5.99992 9.60449 6.89535 10.4999 7.99992 10.4999Z",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(fe(),qe("svg",fCe,o[3]||(o[3]=[$e("path",{d:"M6.58658 7.08659C6.39009 7.26968 6.23248 7.49048 6.12317 7.73582C6.01386 7.98115 5.95508 8.24598 5.95034 8.51452C5.9456 8.78307 5.995 9.04981 6.09559 9.29884C6.19618 9.54788 6.3459 9.7741 6.53582 9.96402C6.72573 10.1539 6.95196 10.3037 7.20099 10.4042C7.45003 10.5048 7.71677 10.5542 7.98531 10.5495C8.25385 10.5448 8.51869 10.486 8.76402 10.3767C9.00935 10.2674 9.23015 10.1097 9.41325 9.91325M7.15325 3.88659C7.43412 3.85159 7.71687 3.83378 7.99992 3.83325C12.6666 3.83325 14.6666 8.49992 14.6666 8.49992C14.3685 9.138 13.9947 9.73787 13.5533 10.2866M4.40659 4.90659C3.08075 5.80967 2.01983 7.05009 1.33325 8.49992C1.33325 8.49992 3.33325 13.1666 7.99992 13.1666C9.27719 13.17 10.5271 12.7967 11.5933 12.0933M1.33325 1.83325L14.6666 15.1666",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))])])]),_:1}),te(D(Os),{class:"w-[15%]"},{default:ce(()=>[ot(Ot(a.version.base_model),1)]),_:1}),te(D(Os),{class:"w-[15%]"},{default:ce(()=>[ot(Ot(a.version.available?"Available":"Unavailable"),1)]),_:1}),te(D(Os),{class:"w-[15%] flex justify-start"},{default:ce(()=>[te(D(Ur),{variant:"default",onClick:o[0]||(o[0]=Sr(s=>r(a.version,a.model),["stop"])),disabled:!a.version.available,class:xt({"opacity-50":!a.version.available})},{default:ce(()=>o[4]||(o[4]=[ot(" Apply ")])),_:1},8,["disabled","class"])]),_:1})]),_:1}),te(n_,{open:n.value,"onUpdate:open":o[1]||(o[1]=s=>n.value=s),class:"max-w-full h-screen px-6 overflow-hidden pb-6 z-8000",layoutClass:"z-8000",contentClass:"custom-scrollbar max-h-[100vh-120px] overflow-y-auto w-full rounded-tl-lg rounded-tr-lg custom-shadow",title:a.model.name},{default:ce(()=>[te(D(lCe),{modelId:a.model.id,version:a.version},null,8,["modelId","version"])]),_:1},8,["open","title"])],64))}}),hCe={class:"flex items-center justify-center h-full"},mCe={class:"flex items-center space-x-2"},gCe={class:"text-sm"},_Ce={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},bCe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},yCe={class:"flex justify-end h-full"},vCe={key:1,class:"w-8 h-8"},SCe={class:"w-full flex justify-center mt-8"},ECe=ve({__name:"ModelTable",setup(e){const t=su(),n=xe(new Set),r=xe(""),i=Ie(()=>t.isLoading);Be(()=>t.models,l=>{l.length>0&&(n.value.clear(),n.value.add(l[0].name))},{deep:!0});const a=l=>{n.value.has(l)?n.value.delete(l):n.value.add(l)},o=async(l,c)=>{const{id:u,name:d,versions:O}=c;if(r.value=d,l==="edit"){const f=await y2({id:c.id,source:t.mode});t.setModelDetail(f.data),t.setDialogStatus(!0),r.value=""}if(l==="remove"){if(t.reloadModelSelectList=!1,!await t_({title:"Are you sure you want to delete this model?",desc:"This action cannot be undone.",cancel:"No, Keep It",continue:"Yes, Delete It",z:"z-9000"}))return;if(O&&O.some(h=>h.public)){Ut.warning("Model has public version, cannot remove.");return}s(u)}},s=async l=>{try{await v2(l),Ut.success("Model removed successfully."),t.reloadModelSelectList=!0}catch(c){Ut.error(`Failed to remove model. ${c}`)}};return(l,c)=>(fe(),qe("div",null,[te(D(lke),null,{default:ce(()=>[te(D(uke),null,{default:ce(()=>[te(D(Xh),{class:"hover:bg-transparent border-[#F9FAFB]/60"},{default:ce(()=>[te(D(ky),{class:"w-[55%]"},{default:ce(()=>c[0]||(c[0]=[ot("Name")])),_:1}),te(D(ky),{class:"w-[15%]"},{default:ce(()=>c[1]||(c[1]=[ot("Base Model")])),_:1}),te(D(ky),{class:"w-[15%]"},{default:ce(()=>c[2]||(c[2]=[ot("Status")])),_:1}),te(D(ky),{class:"w-[15%]"},{default:ce(()=>c[3]||(c[3]=[ot("Operate")])),_:1})]),_:1})]),_:1}),te(D(cke),null,{default:ce(()=>[i.value?(fe(),Se(D(Xh),{key:0,class:"bg-transparent hover:bg-transparent"},{default:ce(()=>[te(D(Os),{colspan:"4",class:"h-[400px]"},{default:ce(()=>[$e("div",hCe,[te(D(voe),{class:"h-8 w-8 animate-spin text-[#F9FAFB]"})])]),_:1})]),_:1})):(fe(),qe(Pt,{key:1},[!i.value&&D(t).models.length>0?(fe(!0),qe(Pt,{key:0},Oi(D(t).models,u=>(fe(),qe(Pt,{key:`${u.id}-${u.name}`},[te(D(Xh),{class:"group cursor-pointer border-[#F9FAFB]/60 hover:bg-transparent h-12"},{default:ce(()=>[te(D(Os),{class:"w-[55%]",onClick:d=>a(u.name)},{default:ce(()=>[$e("div",mCe,[$e("span",gCe,[n.value.has(u.name)?(fe(),qe("svg",_Ce,c[4]||(c[4]=[$e("path",{d:"M4 6L8 10L12 6",stroke:"#F9FAFB","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(fe(),qe("svg",bCe,c[5]||(c[5]=[$e("path",{d:"M6 4L10 8L6 12",stroke:"#F9FAFB","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),$e("span",null,Ot(u.name),1),te(D(cQ),{variant:"default"},{default:ce(()=>[ot(Ot(u.type),1)]),_:2},1024)])]),_:2},1032,["onClick"]),te(D(Os),{class:"w-[15%]"},{default:ce(()=>c[6]||(c[6]=[ot("-")])),_:1}),te(D(Os),{class:"w-[15%]"},{default:ce(()=>c[7]||(c[7]=[ot("-")])),_:1}),te(D(Os),{class:"w-[15%]"},{default:ce(()=>[$e("div",yCe,[D(t).mode==="my"||D(t).mode==="my_fork"?(fe(),Se(D(xy),{key:0,class:"bg-[#353535] z-[5100]mmm",open:r.value===u.name,"onUpdate:open":d=>d?r.value=u.name:r.value=""},{default:ce(()=>[te(D(Py),{class:"bg-transparent"},{default:ce(()=>c[8]||(c[8]=[$e("div",{class:"flex justify-center items-center hover:bg-[#222222] rounded-md w-8 h-8"},[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[$e("path",{fill:"white",d:"M12 16a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2"})])],-1)])),_:1}),te(D($y),{side:"bottom",align:"end",class:"w-[150px] p-0 bg-[#353535] rounded-lg group-hover:visible z-12000"},{default:ce(()=>[te(D(Ry),null,{default:ce(()=>[te(D(Qy),null,{default:ce(()=>[te(D(Uh),null,{default:ce(()=>[te(D(cl),{value:"edit",onClick:d=>o("edit",u),class:"px-2 py-1.5 mb-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:ce(()=>c[9]||(c[9]=[ot(" Edit ")])),_:2},1032,["onClick"]),te(D(uQ)),te(D(cl),{value:"remove",onClick:d=>o("remove",u),class:"px-2 py-1.5 mb-1 mt-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:ce(()=>c[10]||(c[10]=[ot(" Remove ")])),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["open","onUpdate:open"])):(fe(),qe("div",vCe))])]),_:2},1024)]),_:2},1024),n.value.has(u.name)&&u.versions?(fe(!0),qe(Pt,{key:0},Oi(u.versions,d=>(fe(),Se(pCe,{model:u,key:d.version,version:d},null,8,["model","version"]))),128)):kt("",!0)],64))),128)):(fe(),Se(D(Xh),{key:1,class:"hover:bg-transparent"},{default:ce(()=>[te(D(Os),{colspan:"4",class:"h-[400px]"},{default:ce(()=>c[11]||(c[11]=[$e("div",{class:"flex items-center justify-center h-full text-[#F9FAFB]"}," No available data ",-1)])),_:1})]),_:1}))],64))]),_:1})]),_:1}),$e("div",SCe,[i.value?kt("",!0):(fe(),Se(oke,{key:0}))])]))}}),TCe={class:"font-['Inter'] flex flex-col"},wCe={class:"flex flex-col min-h-[650px]"},xCe={class:"flex-1 relative"},$Ce={class:"h-full"},PCe=ve({__name:"Index",props:{modelType:{},selectedBaseModels:{}},emits:["apply"],setup(e,{emit:t}){const n=su(),r=e,i=["my","my_fork","publicity"],a={my:"My Models",my_fork:"My Forks",publicity:"Community Models"},o=async()=>{n.setIsLoading(!0),await ice(n.modelListPathParams,n.filterState).then(p=>{var h,m;p&&p.data?(n.modelListPathParams.total=((h=p==null?void 0:p.data)==null?void 0:h.total)||0,n.models=((m=p==null?void 0:p.data)==null?void 0:m.list)||[]):(n.modelListPathParams.total=0,n.models=[])}).catch(p=>{Ut.error(`Failed to fetch model list. ${p}`),n.modelListPathParams.total=0,n.models=[]}).finally(async()=>{n.setIsLoading(!1)})},s=xe(!1),l=xe(!1),c=async p=>{n.models=[],n.mode=String(p),n.modelListPathParams.mode=n.mode,n.modelListPathParams.current=1,n.mode!=="publicity"&&(n.filterState.sort="Recently"),await o()},u=()=>b2().then(p=>(n.setModelTypes(p!=null&&p.data?p.data:[]),_2())).then(p=>{n.setBaseModelTypes(p!=null&&p.data?p.data:[])}).catch(p=>{Ut.error(`Failed to fetch base model types${p}`),n.setModelTypes([]),n.setBaseModelTypes([])}),d=t;Be(()=>n.applyObject,p=>{p.version&&p.model&&d("apply",p.version,p.model.name)},{deep:!0,immediate:!0}),Be(()=>n.closeModelSelectDialog,(p,h)=>{p!==h&&(l.value=!1)},{deep:!0}),Be(()=>n.reload,async(p,h)=>{p!==h&&await o()},{deep:!0}),Be(()=>n.reloadModelSelectList,async(p,h)=>{p!==h&&await o()},{deep:!0}),Be(()=>n.modelListPathParams.current,async(p,h)=>{p!==h&&l.value&&await o()}),ht(async()=>{r.modelType&&(n.selectedModelTypes=r.modelType,n.filterState.model_types=r.modelType),r.selectedBaseModels&&(n.selectedBaseModels=r.selectedBaseModels,n.filterState.base_models=r.selectedBaseModels),await u(),l.value=!0}),Be(()=>l.value,async p=>{p?(r.modelType&&(n.selectedModelTypes=r.modelType,n.filterState.model_types=r.modelType),r.selectedBaseModels&&(n.selectedBaseModels=r.selectedBaseModels,n.filterState.base_models=r.selectedBaseModels),await o()):n.resetModelListPathParams()});const O=async()=>{await o()},f=()=>{l.value=!1};return(p,h)=>(fe(),Se(n_,{open:l.value,"onUpdate:open":h[1]||(h[1]=m=>l.value=m),class:"max-w-[70%] px-6 pb-6 overflow-hidden z-8000",layoutClass:"z-8000",onOnClose:f,contentClass:"custom-scrollbar max-h-[78vh] overflow-y-auto w-full rounded-tl-lg rounded-tr-lg custom-shadow"},{title:ce(()=>h[2]||(h[2]=[$e("span",{class:"text-[#F9FAFB] mb-4 text-[18px] font-semibold leading-[18px] tracking-[-0.45px]"}," Select Model ",-1)])),default:ce(()=>[$e("div",TCe,[te(D(YY),{defaultValue:D(n).mode,class:"h-full flex flex-col","onUpdate:modelValue":c},{default:ce(()=>[te(D(jY),{class:"grid w-full grid-cols-3 h-12 bg-[#4E4E4E] text-white text-sm shrink-0"},{default:ce(()=>[(fe(),qe(Pt,null,Oi(i,m=>te(D(qY),{key:m,value:m,class:"text-sm data-[state=active]:bg-[#9CA3AF] bg-[#4E4E4E] h-10 px-3 py-2 focus:outline-none focus-visible:outline-none"},{default:ce(()=>[ot(Ot(a[m]),1)]),_:2},1032,["value"])),64))]),_:1}),(fe(),qe(Pt,null,Oi(i,m=>(fe(),qe(Pt,{key:m},[D(n).mode===m?(fe(),Se(D(VQe),{key:0,value:m,class:"flex-1 flex flex-col overflow-hidden"},{default:ce(()=>[$e("div",wCe,[$e("div",xCe,[te(JQe,{"show-sort-popover":s.value,"onUpdate:showSortPopover":h[0]||(h[0]=g=>s.value=g),onFetchData:O,class:"shrink-0"},null,8,["show-sort-popover"]),$e("div",$Ce,[te(ECe)])]),h[3]||(h[3]=$e("div",{class:"h-4"},null,-1))])]),_:2},1032,["value"])):kt("",!0)],64))),64))]),_:1},8,["defaultValue"])])]),_:1},8,["open"]))}}),RCe=e=>{let t=!1;const n=document.getElementById("bizyair-model-select");n&&document.body.removeChild(n);const r=document.createElement("div");r.id="bizyair-model-select",document.body.appendChild(r);const i=jf(PCe,{...e,onClose:()=>{t&&(i.unmount(),t=!1),document.body.contains(r)&&document.body.removeChild(r)},onApply:(...o)=>{e!=null&&e.onApply&&(e.onApply(...o),t&&(i.unmount(),t=!1),document.body.contains(r)&&document.body.removeChild(r))}});i.directive("debounce",{mounted(o,s){let l=null;o.addEventListener("keyup",()=>{l&&clearTimeout(l),l=setTimeout(()=>{s.value()},s.arg||500)})},unmounted(o,s){s&&o.removeEventListener("keyup",s.value)}});const a=i.mount(r);return t=!0,{instance:a}};let zh=jf(WQe);zh.use(lse());function QCe(e,t){zh.provide("comfyUIApp",t),zh.mount(e)}function kCe(){zh&&zh.unmount()}const CCe=36,ZY=1,ACe=2,WO=3,dQ=4,ICe=5,DCe=6,NCe=7,MCe=8,LCe=9,UCe=10,XCe=11,zCe=12,BCe=13,FCe=14,WCe=15,VCe=16,YCe=17,HY=18,jCe=19,KY=20,JY=21,ej=22,qCe=23,GCe=24;function OQ(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function ZCe(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function Mu(e,t,n){for(let r=!1;;){if(e.next<0)return;if(e.next==t&&!r){e.advance();return}r=n&&!r&&e.next==92,e.advance()}}function HCe(e,t){e:for(;;){if(e.next<0)return;if(e.next==36){e.advance();for(let n=0;n)".charCodeAt(n);for(;;){if(e.next<0)return;if(e.next==r&&e.peek(1)==39){e.advance(2);return}e.advance()}}function fQ(e,t){for(;!(e.next!=95&&!OQ(e.next));)t!=null&&(t+=String.fromCharCode(e.next)),e.advance();return t}function JCe(e){if(e.next==39||e.next==34||e.next==96){let t=e.next;e.advance(),Mu(e,t,!1)}else fQ(e)}function tj(e,t){for(;e.next==48||e.next==49;)e.advance();t&&e.next==t&&e.advance()}function nj(e,t){for(;;){if(e.next==46){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(e.next==69||e.next==101)for(e.advance(),(e.next==43||e.next==45)&&e.advance();e.next>=48&&e.next<=57;)e.advance()}function rj(e){for(;!(e.next<0||e.next==10);)e.advance()}function Lu(e,t){for(let n=0;n/g,GRe=/"/g,ZRe=/"/g,HRe=/&#([a-zA-Z0-9]*);?/gim,KRe=/:?/gim,JRe=/&newline;?/gim,Sy=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,IY=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,DY=/u\s*r\s*l\s*\(.*/gi;function NY(e){return e.replace(GRe,""")}function MY(e){return e.replace(ZRe,'"')}function LY(e){return e.replace(HRe,function(n,r){return r[0]==="x"||r[0]==="X"?String.fromCharCode(parseInt(r.substr(1),16)):String.fromCharCode(parseInt(r,10))})}function UY(e){return e.replace(KRe,":").replace(JRe," ")}function XY(e){for(var t="",n=0,r=e.length;n",r);if(i===-1)break;n=i+3}return t}function rQe(e){var t=e.split("");return t=t.filter(function(n){var r=n.charCodeAt(0);return r===127?!1:r<=31?r===10||r===13:!0}),t.join("")}Mn.whiteList=kY(),Mn.getDefaultWhiteList=kY,Mn.onTag=BRe,Mn.onIgnoreTag=FRe,Mn.onTagAttr=WRe,Mn.onIgnoreTagAttr=VRe,Mn.safeAttrValue=YRe,Mn.escapeHtml=AY,Mn.escapeQuote=NY,Mn.unescapeQuote=MY,Mn.escapeHtmlEntities=LY,Mn.escapeDangerHtml5Entities=UY,Mn.clearNonPrintableCharacter=XY,Mn.friendlyAttrValue=zY,Mn.escapeAttrValue=BY,Mn.onIgnoreTagStripAll=eQe,Mn.StripTagBody=tQe,Mn.stripCommentTag=nQe,Mn.stripBlankChar=rQe,Mn.attributeWrapSign='"',Mn.cssFilter=CY,Mn.getDefaultCSSWhiteList=zRe;var Ey={},gc=lQ;function iQe(e){var t=gc.spaceIndex(e),n;return t===-1?n=e.slice(1,-1):n=e.slice(1,t+1),n=gc.trim(n).toLowerCase(),n.slice(0,1)==="/"&&(n=n.slice(1)),n.slice(-1)==="/"&&(n=n.slice(0,-1)),n}function aQe(e){return e.slice(0,2)===""||s===l-1){r+=n(e.slice(i,a)),u=e.slice(a,s+1),c=iQe(u),r+=t(a,r.length,c,u,aQe(u)),i=s+1,a=!1;continue}if(d==='"'||d==="'")for(var O=1,f=e.charAt(s-O);f.trim()===""||f==="=";){if(f==="="){o=d;continue e}f=e.charAt(s-++O)}}else if(d===o){o=!1;continue}}return i0;t--){var n=e[t];if(n!==" ")return n==="="?t:-1}}function OQe(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function FY(e){return OQe(e)?e.substr(1,e.length-2):e}Ey.parseTag=oQe,Ey.parseAttr=lQe;var fQe=sQ.FilterCSS,Xa=Mn,WY=Ey,pQe=WY.parseTag,hQe=WY.parseAttr,Ty=lQ;function wy(e){return e==null}function mQe(e){var t=Ty.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Ty.trim(e.slice(t+1,-1));var n=e[e.length-1]==="/";return n&&(e=Ty.trim(e.slice(0,-1))),{html:e,closing:n}}function gQe(e){var t={};for(var n in e)t[n]=e[n];return t}function _Qe(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map(function(r){return r.toLowerCase()}):t[n.toLowerCase()]=e[n];return t}function VY(e){e=gQe(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Xa.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=_Qe(e.whiteList||e.allowList):e.whiteList=Xa.whiteList,this.attributeWrapSign=e.singleQuotedAttributeValue===!0?"'":Xa.attributeWrapSign,e.onTag=e.onTag||Xa.onTag,e.onTagAttr=e.onTagAttr||Xa.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Xa.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Xa.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Xa.safeAttrValue,e.escapeHtml=e.escapeHtml||Xa.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new fQe(e.css))}VY.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,n=t.options,r=n.whiteList,i=n.onTag,a=n.onIgnoreTag,o=n.onTagAttr,s=n.onIgnoreTagAttr,l=n.safeAttrValue,c=n.escapeHtml,u=t.attributeWrapSign,d=t.cssFilter;n.stripBlankChar&&(e=Xa.stripBlankChar(e)),n.allowCommentTag||(e=Xa.stripCommentTag(e));var O=!1;n.stripIgnoreTagBody&&(O=Xa.StripTagBody(n.stripIgnoreTagBody,a),a=O.onIgnoreTag);var f=pQe(e,function(p,h,m,g,_){var b={sourcePosition:p,position:h,isClosing:_,isWhite:Object.prototype.hasOwnProperty.call(r,m)},y=i(m,g,b);if(!wy(y))return y;if(b.isWhite){if(b.isClosing)return"";var v=mQe(g),E=r[m],w=hQe(v.html,function(T,S){var x=Ty.indexOf(E,T)!==-1,$=o(m,T,S,x);return wy($)?x?(S=l(m,T,S,d),S?T+"="+u+S+u:T):($=s(m,T,S,x),wy($)?void 0:$):$});return g="<"+m,w&&(g+=" "+w),v.closing&&(g+=" /"),g+=">",g}else return y=a(m,g,b),wy(y)?c(g):y},c);return O&&(f=O.remove(f)),f};var bQe=VY;(function(e,t){var n=Mn,r=Ey,i=bQe;function a(s,l){var c=new i(l);return c.process(s)}t=e.exports=a,t.filterXSS=a,t.FilterXSS=i,function(){for(var s in n)t[s]=n[s];for(var l in r)t[l]=r[l]}(),typeof window<"u"&&(window.filterXSS=e.exports);function o(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}o()&&(self.filterXSS=e.exports)})($Y,$Y.exports);const yQe={class:"relative w-4 h-4 cursor-pointer"},vQe={class:"relative w-4 h-4"},SQe=20*1024*1024,EQe=3,TQe=dp({__name:"Index2",props:{editorId:String,modelValue:String,modelModifiers:Object,autoDetectCode:{type:Boolean,default:!0}},emits:["update:modelValue","isUploading"],setup(e,{emit:t}){const n=["r","q","w","n","m","s","o","g",",","=","+","-",".","p","c","b","m","`","f","Enter","Backspace"],r=["bold","italic","underline","title","-","quote","code","table",1,"-","mermaid","katex","-","=","preview",0],i=xe(null),a=xe(null),o=xe(!1),s=()=>{o.value=!o.value,o.value?(T0.request(),document.querySelectorAll('[role="dialog"]').forEach(y=>y.style.display="none"),document.querySelector("body").style["pointer-events"]="auto"):(T0.exit(),document.querySelectorAll('[role="dialog"]').forEach(y=>y.style.display="block"),document.querySelector("body").style["pointer-events"]="none")},c=xe(e.modelValue),u=t,d=()=>{u("update:modelValue",c)},O=y=>{n.includes(y.key)&&y.stopPropagation()},f=y=>{document.addEventListener("keydown",O,!0)},p=y=>{document.removeEventListener("keydown",O,!0)},h=["image/jpeg","image/png","image/gif","image/webp"],m=async(y,v=0)=>{var E;try{const w=await nce(y);if(!((E=w.data)!=null&&E.url))throw new Error("Upload response missing URL");return w.data.url}catch(w){if(console.error(`Upload attempt ${v+1} failed:`,w),vsetTimeout(T,1e3*(v+1))),m(y,v+1);throw w}},g=async y=>{b([y.target.files[0]],v=>{v.forEach(E=>{i.value.insert(()=>({targetValue:`![image](${E})`,select:!1,deviationStart:0,deviationEnd:0})),c.value+=`![image](${E})`,d()})})},_=async y=>{b([y.target.files[0]],v=>{v.forEach(E=>{a.value.insert(()=>({targetValue:`![image](${E})`,select:!1,deviationStart:0,deviationEnd:0})),c.value+=`![image](${E})`,d()})})},b=async(y,v)=>{if(y.filter(T=>!h.includes(T.type)).length>0){Ut.warning("Only image files allowed (jpg, png, gif, webp)");return}if(y.filter(T=>T.size>SQe).length>0){Ut.warning("Image size cannot exceed 20MB");return}try{u("isUploading",!0);const T=[];for(let S=0;S(fe(),qe(Pt,null,[te(D(Mh),{editorId:e.editorId,modelValue:c.value,"onUpdate:modelValue":v[0]||(v[0]=E=>c.value=E),theme:"dark",toolbars:r,ref_key:"editorRef",ref:i,autoDetectCode:!0,language:"en-US",preview:!1,onInput:d,style:{height:"200px"},onOnUploadImg:b,onOnFocus:f,onOnBlur:p},{defToolbars:ce(()=>[te(D(hc),{title:"fullscreen",onOnClick:s},{trigger:ce(()=>[te(D(IN),{class:"w-4 h-4 mt-1"})]),_:1}),te(D(hc),{title:"image"},{trigger:ce(()=>[$e("div",yQe,[$e("input",{onChange:g,type:"file",class:"absolute w-4 h-4 left-0 top-0 cursor-pointer opacity-0"},null,32),te(D(AN),{class:"w-4 h-4 cursor-pointer"})])]),_:1})]),_:1},8,["editorId","modelValue"]),o.value?(fe(),Se(gd,{key:0,to:"body"},[te(D(Mh),{modelValue:c.value,"onUpdate:modelValue":v[1]||(v[1]=E=>c.value=E),theme:"dark",autoDetectCode:!0,editorId:`full-${e.editorId}`,toolbars:r,ref_key:"editorRefFull",ref:a,language:"en-US",pageFullscreen:!0,class:"fixed top-0 left-0 w-[100vw] h-[100vh] z-12000",onInput:d,onOnUploadImg:b,onOnFocus:f,onOnBlur:p},{defToolbars:ce(()=>[te(D(hc),{title:"fullscreen",onOnClick:s},{trigger:ce(()=>[te(D(IN),{class:"w-4 h-4 mt-1"})]),_:1}),te(D(hc),{title:"image"},{trigger:ce(()=>[$e("div",vQe,[$e("input",{onChange:_,type:"file",class:"absolute w-4 h-4 left-0 top-0 cursor-pointer opacity-0"},null,32),te(D(AN),{class:"w-4 h-4"})])]),_:1})]),_:1},8,["modelValue","editorId"])])):kt("",!0)],64))}},[["__scopeId","data-v-071fa62a"]]),wQe={class:"px-6 pb-6"},xQe={class:"bg-[#353535] z-1 px-6 py-4 w-full rounded-tl-lg rounded-tr-lg custom-shadow border-t-[1px] flex justify-between relative"},$Qe={key:0},PQe={key:1},RQe={class:"bg-[#353535] px-6 pb-4"},QQe={class:"flex items-center space-x-2 mt-2"},kQe={class:"flex h-28 items-center justify-end relative"},CQe={key:0,class:"absolute top-2 left-1 text-xs"},AQe={key:1,class:"flex-1"},IQe={class:"text-center pt-2"},DQe={key:0,class:"pl-2"},NQe={class:"bg-[#353535] px-6 w-full h-14 rounded-tl-lg rounded-tr-lg custom-shadow border-t-[1px] flex justify-between items-center -mt-4"},MQe={key:0,class:"z-50 w-full h-full absolute left-0 top-0"},LQe=ve({__name:"index",setup(e){const t=lp(),n=su(),r=xe(!0),i=xe([{value:"",label:""}]),a=xe([{value:"",label:""}]),o=xe({...n.modelDetail}),s=xe(-1),l=xe(!1),c=S=>{s.value=S,r.value&&(r.value=!1)},u=Ie(()=>o.value.versions.map(x=>x.progress).some((x,$)=>x!==100&&o.value.versions[$].file_upload_id));function d(S,x){o.value.versions&&(o.value.versions[x].public=S)}let O;async function f(S){if(!await t_({title:"Are you sure you want to delete this version?",desc:"This action cannot be undone.",cancel:"No, Keep It",continue:"Yes, Delete It",z:"z-9000"}))return;const $={...o.value};s.value===$.versions.length-1&&(s.value=Number(s.value)-1),$.versions=$.versions||[],$.versions.splice(S,1),n.setModelDetail($),$.versions.length===1&&(s.value=0),$.versions.length===0&&(r.value=!0)}function p(){const S={...o.value};S.versions=S.versions||[],S.versions.push({version:"",base_model:"",intro:"",public:!1,filePath:"",sign:"",path:""}),n.setModelDetail(S),r.value=!1,s.value=S.versions.length-1}function h(){if(!o.value.name){Ut.error("Please enter the model name"),o.value.nameError=!0;return}if(!o.value.type){Ut.error("Please select the model type"),o.value.typeError=!0;return}o.value.versions.length?(s.value=0,r.value=!1):p()}function m(){const S={...o.value};S.versions=S.versions||[];for(let x=0;xx.version&&x.base_model&&x.sign)}const g=(S,x)=>{o.value.versions[x].progress=S},_=(S,x)=>{o.value.versions[x].path=S},b=S=>{o.value.versions[S].filePathError=!1},y=(S,x)=>{o.value.versions[x].sign=S.sha256sum,o.value.versions[x].filePathError=!1},v=S=>{o.value.versions[S].progress&&delete o.value.versions[S].progress},E=(S,x)=>{S.speed&&(o.value.versions[x].speed=S.speed),S.fileName&&(o.value.versions[x].fileName=S.fileName)};async function w(){if(!m())return;l.value=!0,setTimeout(()=>{l.value=!1},5e3);const S={...o.value};S.versions.forEach(x=>{delete x.baseModelError,delete x.filePath,delete x.filePathError,delete x.versionError,delete x.speed,delete x.fileName}),S.id?await oce(S):await ace(S),Ut.success("Model published successfully"),T()}const T=()=>{n.setDialogStatus(!1,0),n.clearModelDetail(),r.value=!0,l.value=!1,n.uploadModelDone()};return Be(()=>t.socketMessage,S=>{if(S.type=="progress"){const x=o.value.versions.findIndex($=>$.file_upload_id==S.data.upload_id);o.value.versions[x].progress=Number(S.data.progress.replace("%",""))}if(S.type=="status"&&S.data.status=="finish"){const x=o.value.versions.findIndex($=>$.file_upload_id==S.data.upload_id);o.value.versions[x]&&(o.value.versions[x].path=S.data.model_files[0].path,o.value.versions[x].sign=S.data.model_files[0].sign)}if(S.type=="interrupted"){Ut.success("Upload interrupted");const x=o.value.versions.findIndex($=>$.file_upload_id==S.data.upload_id);delete o.value.versions[x].progress,o.value.versions[x].filePath=""}if(S.type=="error"){Ut.error(S.data.message);const x=o.value.versions.findIndex($=>$.file_upload_id==S.data.upload_id);delete o.value.versions[x].progress,o.value.versions[x].filePath=""}if(S.type=="prepared"&&O.close(),S.type==="errors"&&S.data&&S.data.code===500101){O.close(),Ut.error(S.data.message);const x=o.value.versions.findIndex($=>$.file_upload_id==S.data.data.upload_id);o.value.versions[x].progress&&delete o.value.versions[x].progress,o.value.versions[x].filePath=""}},{deep:!0}),Be(()=>n.modelDetail,S=>{o.value=S},{deep:!0}),Be(()=>n.showVersionId,S=>{const x=o.value.versions.findIndex($=>$.id==S);setTimeout(()=>{s.value=x}),x!=-1&&(r.value=!1)},{deep:!0}),ht(async()=>{const S=await b2();i.value=S.data;const x=await _2();a.value=x.data}),(S,x)=>(fe(),qe(Pt,null,[$e("div",{onClick:x[0]||(x[0]=$=>D(n).setDialogStatus(!0)),class:"flex items-center hover:bg-[#4A238E] cursor-pointer relative px-3"},x[7]||(x[7]=[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 24 24"},[$e("path",{fill:"none",stroke:"#ddd","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1.5",d:"M21 16.008V7.99a1.98 1.98 0 0 0-1-1.717l-7-4.008a2.02 2.02 0 0 0-2 0L4 6.273c-.619.355-1 1.01-1 1.718v8.018c0 .709.381 1.363 1 1.717l7 4.008a2.02 2.02 0 0 0 2 0l7-4.008c.619-.355 1-1.01 1-1.718M12 22V12m0 0l8.73-5.04m-17.46 0L12 12"})],-1),$e("span",{class:"block leading h-full leading-8 text-sm"},"Publish",-1)])),D(n).showDialog?(fe(),Se(n_,{key:0,open:D(n).showDialog,"onUpdate:open":x[6]||(x[6]=$=>D(n).showDialog=$),onOnClose:T,class:"px-0 overflow-hidden pb-0 z-9000",layoutClass:"z-9000",contentClass:"custom-scrollbar max-h-[80vh] overflow-y-auto w-full rounded-tl-lg rounded-tr-lg custom-shadow"},ZK({title:ce(()=>[$e("span",{class:"px-6 cursor-pointer",onClick:x[1]||(x[1]=$=>{s.value=-1,r.value=!0})},"Publish a Model")]),default:ce(()=>[Ja($e("div",wQe,[te(ou,{label:"Model Name"},{default:ce(()=>[te(D(cp),{onChange:x[2]||(x[2]=$=>o.value.nameError=!1),class:xt({"border-red-500":o.value.nameError}),type:"text",placeholder:"Enter Model Name","model-value":o.value.name,"onUpdate:modelValue":x[3]||(x[3]=$=>o.value.name=$)},null,8,["class","model-value"])]),_:1}),te(ou,{label:"Model Type"},{default:ce(()=>[te(u2,{"onUpdate:open":x[4]||(x[4]=$=>o.value.typeError=!1),class:xt({"border-red-500":o.value.typeError}),"model-value":o.value.type,"onUpdate:modelValue":x[5]||(x[5]=$=>o.value.type=$),placeholder:"Select Model Type"},{default:ce(()=>[(fe(!0),qe(Pt,null,Oi(i.value,($,Q)=>(fe(),Se(D(l2),{key:Q,value:$.value},{default:ce(()=>[ot(Ot($.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["class","model-value"])]),_:1}),te(D(Ur),{class:"w-full mt-3",onClick:h},{default:ce(()=>x[8]||(x[8]=[ot("Next Step")])),_:1})],512),[[Ds,r.value]]),te(Tle,{multiple:!0,activeIndex:s.value},{default:ce(()=>[(fe(!0),qe(Pt,null,Oi(o.value.versions,($,Q)=>(fe(),Se(wle,{key:Q,index:Q,onToggle:c},{title:ce(()=>[$e("div",xQe,[s.value!==Q&&$.version?(fe(),qe("span",$Qe,Ot($.version),1)):(fe(),qe("span",PQe,"Add Version")),o.value.versions.length!==1?(fe(),Se(D(Eoe),{key:2,class:"w-4 h-4",onClickCapture:Sr(k=>f(Q),["stop"])},null,8,["onClickCapture"])):kt("",!0),$.progress&&s.value&&s.value!==Q?(fe(),Se(D(c2),{key:3,"model-value":$.progress,class:"absolute w-full bottom-0 left-0 h-1"},null,8,["model-value"])):kt("",!0)])]),default:ce(()=>[$e("div",RQe,[te(ou,{label:"Version Name"},{default:ce(()=>[te(D(cp),{onChange:k=>$.versionError=!1,class:xt({"border-red-500":$.versionError}),type:"text",placeholder:"Version Name","model-value":$.version,"onUpdate:modelValue":k=>$.version=k},null,8,["onChange","class","model-value","onUpdate:modelValue"])]),_:2},1024),te(ou,{label:"Base Model"},{default:ce(()=>[te(u2,{"onUpdate:open":k=>$.baseModelError=!1,class:xt({"border-red-500":$.baseModelError}),"model-value":$.base_model,"onUpdate:modelValue":k=>$.base_model=k,placeholder:"Select Base Model"},{default:ce(()=>[(fe(!0),qe(Pt,null,Oi(a.value,(k,P)=>(fe(),Se(D(l2),{key:P,value:k.value},{default:ce(()=>[ot(Ot(k.label),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["onUpdate:open","class","model-value","onUpdate:modelValue"])]),_:2},1024),te(ou,{label:"Introduction"},{default:ce(()=>[te(TQe,{modelValue:$.intro,"onUpdate:modelValue":k=>$.intro=k,modelModifiers:{modelValue:!0},editorId:`myeditor${Q}`},null,8,["modelValue","onUpdate:modelValue","editorId"])]),_:2},1024),te(ou,{label:""},{default:ce(()=>[$e("div",QQe,[te(D(Ole),{id:"airplane-mode",checked:$.public,"onUpdate:checked":[k=>$.public=k,k=>{d(k,Q)}]},null,8,["checked","onUpdate:checked"]),te(D(dle),{for:"airplane-mode"},{default:ce(()=>x[9]||(x[9]=[ot("Publicly Visible")])),_:1})])]),_:2},1024),Ja(te(ou,{label:"File"},{default:ce(()=>[$e("div",kQe,[$.progress&&$.fileName?(fe(),qe("p",CQe,Ot($.fileName),1)):kt("",!0),$.progress?(fe(),qe("div",AQe,[te(D(c2),{"model-value":$.progress,class:"mt-4 h-3"},null,8,["model-value"]),$e("p",IQe,[ot(Ot($.progress)+"% Uploaded ",1),$.speed?(fe(),qe("span",DQe,"Speed: "+Ot($.speed),1)):kt("",!0)])])):kt("",!0),te(fce,{parallel:1,ref_for:!0,ref:$.ref,chunkSize:1,class:xt({"border-red-500":$.filePathError}),onPath:k=>_(k,Q),onStart:()=>b(Q),onSuccess:k=>y(k,Q),onError:()=>v(Q),onUploadInfo:k=>E(k,Q),onProgress:k=>g(k,Q)},null,8,["class","onPath","onStart","onSuccess","onError","onUploadInfo","onProgress"])])]),_:2},1536),[[Ds,!$.showUpload]])])]),_:2},1032,["index"]))),128))]),_:1},8,["activeIndex"]),l.value?(fe(),qe("div",MQe)):kt("",!0)]),_:2},[r.value?void 0:{name:"foot",fn:ce(()=>[$e("div",NQe,[te(D(Ur),{variant:"outline",class:"",onClick:p},{default:ce(()=>x[10]||(x[10]=[ot("Add Version")])),_:1}),te(D(Ur),{disabled:u.value,onClick:w},{default:ce(()=>x[11]||(x[11]=[ot("Publish")])),_:1},8,["disabled"])])]),key:"0"}]),1032,["open"])):kt("",!0)],64))}}),UQe=ve({__name:"index",setup(e){const t=xe({"Remote Folders":"1",Upload:"2"});return fetch("api/bizyair/news",{method:"GET"}).then(n=>n.json()).then(n=>{t.value=n}),(n,r)=>(fe(),Se(NN,{show_cases:t.value,buttonText:"News",icon:"book-open",isJson:!0},{default:ce(()=>r[0]||(r[0]=[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 32 32"},[$e("path",{fill:"#ddd",d:"M11 23a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2zm-1-3a1 1 0 0 1 1-1h10a1 1 0 1 1 0 2H11a1 1 0 0 1-1-1m1-5a1 1 0 1 0 0 2h10a1 1 0 1 0 0-2zM5 5a3 3 0 0 1 3-3h10.172a3 3 0 0 1 2.12.879l5.83 5.828A3 3 0 0 1 27 10.828V27a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3zm3-1a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V12h-5a3 3 0 0 1-3-3V4zm12 6h4.586L19 4.414V9a1 1 0 0 0 1 1"})],-1)])),_:1},8,["show_cases"]))}}),XQe={class:"comfy-modal-content-sml"},zQe={class:"py-2"},BQe=ve({__name:"apiKeyDialog",setup(e){const t=lp(),n=xe(""),r=xe(!1),i=async c=>{const f=window.open("https://account.siliconflow.cn/oauth?client_id=SFaJLLq0y6CAMoyDm81aMu","oauthPopup","width=600,height=600");window.addEventListener("message",p=>{p.data.length>0&&p.data[0].secretKey!==void 0&&(c(p.data[0].secretKey),f&&f.close())})};function a(){r.value=!1}async function o(){if(!n.value)return r.value=!0,!1;const c=await hse(`api_key=${encodeURIComponent(n.value)}`);c.ok?(Ut("API Key set successfully!"),t.handleApiKeyDialog(!1),t.loginRefresh()):Ut.error(`Failed to set API Key: ${await c.text()}`)}function s(){t.handleApiKeyDialog(!1),n.value="",r.value=!1}function l(){i(c=>{n.value=c})}return(c,u)=>(fe(),Se(n_,{open:D(t).showApiKeyDialog,"onUpdate:open":u[1]||(u[1]=d=>D(t).showApiKeyDialog=d),layoutClass:"z-9000",class:"max-w-[680px] z-9000",onOnClose:u[2]||(u[2]=d=>D(t).handleApiKeyDialog(!1))},{title:ce(()=>u[3]||(u[3]=[ot("Set API Key")])),foot:ce(()=>[te(D(Ur),{type:"submit",onClick:o},{default:ce(()=>u[8]||(u[8]=[ot("Submit")])),_:1}),te(D(Ur),{variant:"outline",onClick:s},{default:ce(()=>u[9]||(u[9]=[ot("Close")])),_:1})]),default:ce(()=>[$e("div",XQe,[te(D(cp),{modelValue:n.value,"onUpdate:modelValue":u[0]||(u[0]=d=>n.value=d),type:"password",placeholder:"API Key",class:xt([{"border-red-500":r.value}]),onInput:a},null,8,["modelValue","class"]),$e("p",zQe,[u[4]||(u[4]=ot(" Please ")),$e("a",{class:"underline",href:"###",onClick:Sr(l,["prevent"])},"click to login"),u[5]||(u[5]=ot(" and autofill the key, "))]),u[6]||(u[6]=$e("p",{class:"py-2"},[ot(" or visit "),$e("a",{class:"underline",href:"https://cloud.siliconflow.cn",target:"_blank"},"https://cloud.siliconflow.cn"),ot(" to get your key and input manually. ")],-1)),u[7]||(u[7]=$e("p",{class:"py-2"},[ot(" Setting the API Key signifies agreement to the "),$e("a",{class:"underline",href:"https://docs.siliconflow.cn/docs/user-agreement",target:"_blank"},"User Agreement"),ot(" and "),$e("a",{class:"underline",href:"https://docs.siliconflow.cn/docs/privacy-policy",target:"_blank"},"Privacy Policy.")],-1))])]),_:1},8,["open"]))}}),FQe={class:"shadcn-root flex w-full"},WQe=ve({__name:"App",setup(e){const t=lp();return t.loginRefresh(),t.sendSocket(),(n,r)=>(fe(),qe("div",FQe,[te(Moe),D(t).isLogin?(fe(),Se(nle,{key:0})):(fe(),Se(Tse,{key:1})),te(LQe),te(UQe),te(BQe)]))}}),YY=ve({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},asChild:{type:Boolean},as:{}},emits:["update:modelValue"],setup(e,{emit:t}){const i=nn(e,t);return(a,o)=>(fe(),Se(D(vae),Nt(Lt(D(i))),{default:ce(()=>[we(a.$slots,"default")]),_:3},16))}}),VQe=ve({__name:"TabsContent",props:{value:{},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(Eae),Ue({class:D(dt)("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",t.class)},n.value),{default:ce(()=>[we(r.$slots,"default")]),_:3},16,["class"]))}}),jY=ve({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(Sae),Ue(n.value,{class:D(dt)("inline-flex items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",t.class)}),{default:ce(()=>[we(r.$slots,"default")]),_:3},16,["class"]))}}),YQe={class:"truncate"},qY=ve({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:i,...a}=t;return a}),r=Gr(n);return(i,a)=>(fe(),Se(D(Tae),Ue(D(r),{class:D(dt)("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",t.class)}),{default:ce(()=>[$e("span",YQe,[we(i.$slots,"default")])]),_:3},16,["class"]))}}),cQ=ve({__name:"Badge",props:{variant:{},class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("div",{class:xt(D(dt)(D(jQe)({variant:n.variant}),t.class))},[we(n.$slots,"default")],2))}}),jQe=g0("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),xy=ve({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const i=nn(e,t);return(a,o)=>(fe(),Se(D(Oie),Nt(Lt(D(i))),{default:ce(()=>[we(a.$slots,"default")]),_:3},16))}}),$y=ve({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},trapFocus:{type:Boolean},side:{},sideOffset:{default:4},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,r=t,i=Ie(()=>{const{class:o,...s}=n;return s}),a=nn(i,r);return(o,s)=>(fe(),Se(D(pie),null,{default:ce(()=>[te(D(gie),Ue({...D(a),...o.$attrs},{class:D(dt)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:ce(()=>[we(o.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),Py=ve({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(fe(),Se(D(fie),Nt(Lt(t)),{default:ce(()=>[we(n.$slots,"default")]),_:3},16))}}),Ry=ve({__name:"Command",props:{modelValue:{default:""},defaultValue:{},open:{type:Boolean,default:!0},defaultOpen:{type:Boolean},searchTerm:{},selectedValue:{},multiple:{type:Boolean},disabled:{type:Boolean},name:{},dir:{},filterFunction:{},displayValue:{},resetSearchTermOnBlur:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["update:modelValue","update:open","update:searchTerm","update:selectedValue"],setup(e,{emit:t}){const n=e,r=t,i=Ie(()=>{const{class:o,...s}=n;return s}),a=nn(i,r);return(o,s)=>(fe(),Se(D(cre),Ue(D(a),{class:D(dt)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",n.class)}),{default:ce(()=>[we(o.$slots,"default")]),_:3},16,["class"]))}}),Uh=ve({__name:"CommandGroup",props:{asChild:{type:Boolean},as:{},class:{},heading:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(dre),Ue(n.value,{class:D(dt)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",t.class)}),{default:ce(()=>[r.heading?(fe(),Se(D(Ore),{key:0,class:"px-2 py-1.5 text-xs font-medium text-muted-foreground"},{default:ce(()=>[ot(Ot(r.heading),1)]),_:1})):kt("",!0),we(r.$slots,"default")]),_:3},16,["class"]))}}),cl=ve({__name:"CommandItem",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["select"],setup(e,{emit:t}){const n=e,r=t,i=Ie(()=>{const{class:o,...s}=n;return s}),a=nn(i,r);return(o,s)=>(fe(),Se(D(_re),Ue(D(a),{class:D(dt)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n.class)}),{default:ce(()=>[we(o.$slots,"default")]),_:3},16,["class"]))}}),qQe={role:"presentation"},Qy=ve({__name:"CommandList",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},dismissable:{type:Boolean,default:!1},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},updatePositionStrategy:{},prioritizePosition:{type:Boolean},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(e,{emit:t}){const n=e,r=t,i=Ie(()=>{const{class:o,...s}=n;return s}),a=nn(i,r);return(o,s)=>(fe(),Se(D(hre),Ue(D(a),{class:D(dt)("max-h-[300px] overflow-y-auto overflow-x-hidden",n.class)}),{default:ce(()=>[$e("div",qQe,[we(o.$slots,"default")])]),_:3},16,["class"]))}}),uQ=ve({__name:"CommandSeparator",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(bre),Ue(n.value,{class:D(dt)("-mx-1 h-px bg-border",t.class)}),{default:ce(()=>[we(r.$slots,"default")]),_:3},16,["class"]))}}),GQe={class:"flex space-x-2 mb-4"},ZQe={class:"relative flex-1"},HQe={class:"flex flex-wrap gap-2"},KQe={class:"flex flex-wrap gap-2"},JQe=ve({__name:"ModelFilterBar",props:{showSortPopover:{type:Boolean}},emits:["update:showSortPopover","fetchData"],setup(e,{emit:t}){const n=su(),r=xe([]),i=t,a=c=>{n.filterState.sort=c,i("fetchData"),i("update:showSortPopover",!1)},o=c=>{if(n.selectedBaseModels.length!==0)return;const u=[...n.filterState.model_types],d=u.indexOf(c);d===-1?u.push(c):u.splice(d,1),n.filterState.model_types=u,i("fetchData"),i("update:showSortPopover",!1)},s=c=>{const u=[...n.filterState.base_models],d=u.indexOf(c);d===-1?u.push(c):u.splice(d,1),n.filterState.base_models=u,i("fetchData"),i("update:showSortPopover",!1)},l=()=>{n.modelListPathParams.current=1,i("fetchData"),i("update:showSortPopover",!1)};return ht(async()=>{n.selectedBaseModels&&(r.value=[...n.selectedBaseModels])}),(c,u)=>{const d=GK("debounce");return fe(),qe("div",GQe,[$e("div",ZQe,[Ja(te(D(cp),{modelValue:D(n).filterState.keyword,"onUpdate:modelValue":u[0]||(u[0]=O=>D(n).filterState.keyword=O),placeholder:"Filter by name",class:"h-[44px] border border-[#9CA3AF] w-full bg-[#222] rounded-lg pr-8 pl-8"},null,8,["modelValue"]),[[d,l]]),u[5]||(u[5]=$e("span",{class:"absolute start-0 inset-y-0 flex items-center justify-center px-2"},[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"hover:brightness-150 transition-all duration-300"},[$e("path",{d:"M14 14L11.1333 11.1333M12.6667 7.33333C12.6667 10.2789 10.2789 12.6667 7.33333 12.6667C4.38781 12.6667 2 10.2789 2 7.33333C2 4.38781 4.38781 2 7.33333 2C10.2789 2 12.6667 4.38781 12.6667 7.33333Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})])],-1))]),te(D(xy),{class:"bg-[#353535]",open:c.showSortPopover,"onUpdate:open":u[4]||(u[4]=O=>i("update:showSortPopover",O))},{default:ce(()=>[te(D(Py),{class:"bg-transparent"},{default:ce(()=>[te(D(Ur),{variant:"default",class:"w-[44px] h-[44px] hover:border-2 hover:border-white cursor-pointer group"},{default:ce(()=>u[6]||(u[6]=[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[$e("path",{d:"M2 10.6667L4.66667 13.3334M4.66667 13.3334L7.33333 10.6667M4.66667 13.3334V2.66675M7.33333 2.66675H14M7.33333 5.33341H12M7.33333 8.00008H10",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),_:1})]),_:1}),te(D($y),{side:"bottom",align:"end",class:"w-[150px] p-0 bg-[#353535] rounded-lg z-12000"},{default:ce(()=>[te(D(Ry),null,{default:ce(()=>[te(D(Qy),null,{default:ce(()=>[te(D(Uh),null,{default:ce(()=>[te(D(cl),{value:"recently",onClick:u[1]||(u[1]=O=>a("Recently")),class:xt(["px-2 py-1.5 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]",D(n).filterState.sort==="Recently"?"!bg-[#6D28D9] !text-[#F9FAFB]":""])},{default:ce(()=>u[7]||(u[7]=[ot(" Recently ")])),_:1},8,["class"]),["my","my_fork"].includes(D(n).mode)?kt("",!0):(fe(),Se(D(cl),{key:0,value:"most-forked",onClick:u[2]||(u[2]=O=>a("Most Forked")),class:xt(["px-2 py-1.5 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]",D(n).filterState.sort==="Most Forked"?"!bg-[#6D28D9] !text-[#F9FAFB]":""])},{default:ce(()=>u[8]||(u[8]=[ot(" Most Forked ")])),_:1},8,["class"])),["my","my_fork"].includes(D(n).mode)?kt("",!0):(fe(),Se(D(cl),{key:1,value:"most-used",onClick:u[3]||(u[3]=O=>a("Most Used")),class:xt(["px-2 py-1.5 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]",D(n).filterState.sort==="Most Used"?"!bg-[#6D28D9] !text-[#F9FAFB]":""])},{default:ce(()=>u[9]||(u[9]=[ot(" Most Used ")])),_:1},8,["class"]))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["open"]),te(D(xy),null,{default:ce(()=>[te(D(Py),{class:"bg-transparent"},{default:ce(()=>[te(D(Ur),{variant:"default",class:"w-[44px] h-[44px] hover:border-2 hover:border-white cursor-pointer"},{default:ce(()=>u[10]||(u[10]=[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"mr-2"},[$e("path",{d:"M14.6666 2H1.33325L6.66658 8.30667V12.6667L9.33325 14V8.30667L14.6666 2Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])),_:1})]),_:1}),te(D($y),{side:"bottom",align:"end",class:"w-[200px] p-0 bg-[#222] rounded-lg z-12000"},{default:ce(()=>[te(D(Ry),null,{default:ce(()=>[te(D(Qy),null,{default:ce(()=>[te(D(Uh),null,{default:ce(()=>[u[11]||(u[11]=$e("div",{class:"p-2"},[$e("div",{class:"text-sm font-medium text-[#F9FAFB] mb-2"},"Model Types")],-1)),te(D(cl),{value:"model-types",class:"p-2"},{default:ce(()=>[$e("div",HQe,[(fe(!0),qe(Pt,null,Oi(D(n).modelTypes,O=>(fe(),Se(D(cQ),{variant:"secondary",key:O.value,onClick:f=>o(O.value),class:xt(["cursor-not-allowed hover:!bg-inherit",D(n).filterState.model_types.includes(O.value)?"bg-[#6D28D9] hover:!bg-[#6D28D9]":"bg-[#4E4E4E] hover:!bg-[#4E4E4E]"])},{default:ce(()=>[ot(Ot(O.label),1)]),_:2},1032,["onClick","class"]))),128))])]),_:1})]),_:1}),te(D(uQ)),te(D(Uh),null,{default:ce(()=>[u[12]||(u[12]=$e("div",{class:"p-2"},[$e("div",{class:"text-sm font-medium text-[#F9FAFB] mb-2"},"Base Models")],-1)),te(D(cl),{value:"base-models",class:"p-2"},{default:ce(()=>[$e("div",KQe,[(fe(!0),qe(Pt,null,Oi(D(n).baseModelTypes.filter(O=>{var f,p;return((f=D(n).selectedBaseModels)==null?void 0:f.length)===0||((p=D(n).selectedBaseModels)==null?void 0:p.includes(O.value))}),O=>(fe(),Se(D(cQ),{variant:"secondary",key:O.value,onClick:f=>s(O.value),class:xt(["cursor-pointer hover:!bg-inherit",D(n).filterState.base_models.includes(O.value)?"bg-[#6D28D9] hover:!bg-[#6D28D9]":"bg-[#4E4E4E] hover:!bg-[#4E4E4E]"])},{default:ce(()=>[ot(Ot(O.label),1)]),_:2},1032,["onClick","class"]))),128))])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})])}}}),eke=ve({__name:"PaginationEllipsis",props:{asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(nie),Ue(n.value,{class:D(dt)("w-9 h-9 flex items-center justify-center",t.class)}),{default:ce(()=>[we(r.$slots,"default",{},()=>[te(D(yoe))])]),_:3},16,["class"]))}}),tke=ve({__name:"PaginationFirst",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(rie),Nt(Lt(n.value)),{default:ce(()=>[te(D(Ur),{class:xt(D(dt)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:ce(()=>[we(r.$slots,"default",{},()=>[te(D(moe),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),nke=ve({__name:"PaginationLast",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(iie),Nt(Lt(n.value)),{default:ce(()=>[te(D(Ur),{class:xt(D(dt)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:ce(()=>[we(r.$slots,"default",{},()=>[te(D(goe),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),rke=ve({__name:"PaginationNext",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(cie),Nt(Lt(n.value)),{default:ce(()=>[te(D(Ur),{class:xt(D(dt)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:ce(()=>[we(r.$slots,"default",{},()=>[te(D(CN),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),ike=ve({__name:"PaginationPrev",props:{asChild:{type:Boolean,default:!0},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(uie),Nt(Lt(n.value)),{default:ce(()=>[te(D(Ur),{class:xt(D(dt)("w-10 h-10 p-0",t.class)),variant:"outline"},{default:ce(()=>[we(r.$slots,"default",{},()=>[te(D(poe),{class:"h-4 w-4"})])]),_:3},8,["class"])]),_:3},16))}}),ake={key:0},oke=dp(ve({__name:"ModelPagination",setup(e){const t=su(),n=Ie(()=>t.modelListPathParams.total/t.modelListPathParams.page_size>1),r=i=>{t.updatePagination(i)};return(i,a)=>n.value?(fe(),qe("div",ake,[te(D(tie),{total:D(t).modelListPathParams.total,"items-per-page":D(t).modelListPathParams.page_size,"default-page":D(t).modelListPathParams.current,"sibling-count":1,"show-edges":"","onUpdate:page":r},{default:ce(({page:o})=>[te(D(sie),{class:"flex items-center gap-1"},{default:ce(({items:s})=>[te(D(tke),{class:"pagination-button"}),te(D(ike),{class:"pagination-button"}),(fe(!0),qe(Pt,null,Oi(s,(l,c)=>(fe(),qe(Pt,null,[l.type==="page"?(fe(),Se(D(lie),{key:c,value:l.value,"as-child":""},{default:ce(()=>[te(D(Ur),{class:"pagination-button page-button",variant:l.value===o?"default":"ghost"},{default:ce(()=>[ot(Ot(l.value),1)]),_:2},1032,["variant"])]),_:2},1032,["value"])):(fe(),Se(D(eke),{key:l.type,index:c,class:"pagination-button"},null,8,["index"]))],64))),256)),te(D(rke),{class:"pagination-button"}),te(D(nke),{class:"pagination-button"})]),_:2},1024)]),_:1},8,["total","items-per-page","default-page"])])):kt("",!0)}}),[["__scopeId","data-v-654ff384"]]),ske={class:"relative w-full overflow-auto"},lke=ve({__name:"Table",props:{class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("div",ske,[$e("table",{class:xt(D(dt)("w-full caption-bottom text-sm",t.class))},[we(n.$slots,"default")],2)]))}}),cke=ve({__name:"TableBody",props:{class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("tbody",{class:xt(D(dt)("[&_tr:last-child]:border-0",t.class))},[we(n.$slots,"default")],2))}}),Os=ve({__name:"TableCell",props:{class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("td",{class:xt(D(dt)("p-4 align-middle [&:has([role=checkbox])]:pr-0",t.class))},[we(n.$slots,"default")],2))}}),Xh=ve({__name:"TableRow",props:{class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("tr",{class:xt(D(dt)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",t.class))},[we(n.$slots,"default")],2))}}),ky=ve({__name:"TableHead",props:{class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("th",{class:xt(D(dt)("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",t.class))},[we(n.$slots,"default")],2))}}),uke=ve({__name:"TableHeader",props:{class:{}},setup(e){const t=e;return(n,r)=>(fe(),qe("thead",{class:xt(D(dt)("[&_tr]:border-b",t.class))},[we(n.$slots,"default")],2))}}),GY=ve({__name:"ScrollBar",props:{orientation:{default:"vertical"},forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(Die),Ue(n.value,{class:D(dt)("flex touch-none select-none transition-colors",r.orientation==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-px",r.orientation==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-px",t.class)}),{default:ce(()=>[te(D(Nie),{class:"relative flex-1 rounded-full bg-border"})]),_:1},16,["class"]))}}),dke=ve({__name:"ScrollArea",props:{type:{},dir:{},scrollHideDelay:{},asChild:{type:Boolean},as:{},class:{}},setup(e){const t=e,n=Ie(()=>{const{class:r,...i}=t;return i});return(r,i)=>(fe(),Se(D(wie),Ue(n.value,{class:D(dt)("relative overflow-hidden",t.class)}),{default:ce(()=>[te(D(xie),{class:"h-full w-full rounded-[inherit]"},{default:ce(()=>[we(r.$slots,"default")]),_:3}),te(GY),te(D(Lie))]),_:3},16,["class"]))}}),Oke=ve({__name:"Avatar",props:{class:{},size:{default:"sm"},shape:{default:"circle"}},setup(e){const t=e;return(n,r)=>(fe(),Se(D(Hne),{class:xt(D(dt)(D(hke)({size:n.size,shape:n.shape}),t.class))},{default:ce(()=>[we(n.$slots,"default")]),_:3},8,["class"]))}}),fke=ve({__name:"AvatarFallback",props:{delayMs:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(fe(),Se(D(ere),Nt(Lt(t)),{default:ce(()=>[we(n.$slots,"default")]),_:3},16))}}),pke=ve({__name:"AvatarImage",props:{src:{},asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,r)=>(fe(),Se(D(Jne),Ue(t,{class:"h-full w-full object-cover"}),null,16))}}),hke=g0("inline-flex items-center justify-center font-normal text-foreground select-none shrink-0 bg-secondary overflow-hidden",{variants:{size:{sm:"h-10 w-10 text-xs",base:"h-16 w-16 text-2xl",lg:"h-32 w-32 text-5xl"},shape:{circle:"rounded-full",square:"rounded-md"}}}),mke={key:0,class:"p-6 pb-12 flex flex-col gap-4 items-start justify-start min-w-[1000px] relative shadow-[0px_20px_40px_0px_rgba(0,0,0,0.25)]"},gke={class:"flex flex-col gap-1.5 items-start justify-start self-stretch shrink-0 relative"},_ke={class:"flex flex-row gap-2 items-center justify-start self-stretch shrink-0 relative"},bke={class:"text-text-text-foreground text-left font-['Inter-SemiBold',_sans-serif] text-lg leading-[18px] font-semibold relative",style:{"letter-spacing":"-0.025em"}},yke={class:"flex flex-row gap-1 items-start justify-start shrink-0 relative"},vke={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},Ske={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},Eke={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},Tke={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},wke={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},xke={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},$ke={class:"flex flex-row gap-1 items-center justify-start self-stretch shrink-0 relative"},Pke={class:"bg-[#4e4e4e] rounded-lg p-1 flex flex-row gap-4 items-start justify-start self-stretch shrink-0 relative"},Rke={class:"min-w-[200px] max-w-[600px]"},Qke={class:"whitespace-nowrap"},kke={class:"flex gap-8"},Cke={class:"flex flex-row gap-4 items-start justify-start shrink-0 relative"},Ake={class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative"},Ike={class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative"},Dke={class:"flex flex-row gap-8 items-start justify-start self-stretch flex-1 relative"},Nke={class:"flex flex-col gap-4 items-start justify-start relative min-w-[620px] w-[65%] overflow-hidden"},Mke={class:"w-full min-h-[80vh]"},Lke={key:1,class:"w-full h-[80vh] bg-[#353535] rounded-tl-lg rounded-tr-lg"},Uke={class:"flex flex-col gap-6 items-start justify-start w-[40%] relative"},Xke={class:"pb-8 flex flex-col gap-6 items-start justify-start shrink-0 h-[97px] relative"},zke={class:"flex flex-row gap-2 items-center justify-start shrink-0 relative"},Bke={class:"flex flex-row gap-1.5 items-start justify-start self-stretch shrink-0 relative"},Fke={class:"rounded-[6px] border-solid border-[rgba(78,78,78,0.50)] border flex flex-col gap-0 items-start justify-start self-stretch shrink-0 relative text-[#F9FAFB] font-inter text-sm font-medium leading-5"},Wke={className:"flex w-full text-gray-300 text-sm"},Vke={className:"flex-1 p-4 border-b text-sm border-[rgba(78,78,78,0.50)]"},Yke={className:"flex w-full"},jke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)]"},qke={className:"flex w-full"},Gke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)]"},Zke={className:"flex w-full"},Hke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)] flex items-center gap-2"},Kke={className:"flex w-full"},Jke={className:"flex-1 p-4 border-b border-[rgba(78,78,78,0.50)] flex flex-row gap-2"},eCe={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},tCe={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},nCe={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},rCe={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},iCe={class:"bg-[#6D28D933] rounded-radius-rounded-xl pr-1.5 pl-1.5 flex flex-row gap-1 items-center justify-center shrink-0 min-w-[40px] relative overflow-hidden"},aCe={class:"text-text-text-foreground text-left font-['Inter-Regular',_sans-serif] text-sm leading-5 font-normal relative flex-1"},oCe={class:"rounded-md border-solid border-[#4e4e4e] border flex flex-col gap-0 items-start justify-start self-stretch shrink-0 relative"},sCe={class:"flex px-[8px] py-4 items-center self-stretch text-[#F9FAFB] font-inter text-xs font-medium leading-5"},lCe=dp(ve({__name:"Index",props:{modelId:{},version:{}},setup(e){const t=su(),n=xe(),r=xe(),i=xe(!1),a=xe(null),o=e,s=async()=>{const b=await y2({id:o.modelId,source:t.mode});if(!b.data){Ut.error("Model not found."),t.closeAndReload();return}n.value=b.data,l()},l=()=>{var b;if(n.value&&n.value.versions&&n.value.versions.length>0)if((b=o.version)!=null&&b.id){const y=n.value.versions.find(v=>v.id===o.version.id);y&&(r.value={...y},bt(()=>{var v;p((v=o.version)==null?void 0:v.id)}))}else r.value={...n.value.versions[0]},bt(()=>{var y;(y=r.value)!=null&&y.id&&p(r.value.id)})};ht(async()=>{await s()});const c=b=>{var v,E;const y=(E=(v=n.value)==null?void 0:v.versions)==null?void 0:E.find(w=>w.id===b);y&&(r.value=y)},u=()=>{i.value=!i.value},d=async()=>{var b;await sce((b=r.value)==null?void 0:b.id),s()},O=async()=>{var b;await lce((b=r.value)==null?void 0:b.id),await s()},f=b=>{bt(()=>{setTimeout(()=>{if(!a.value)return;const y=a.value.$el.querySelector("[data-radix-scroll-area-viewport]"),v=y==null?void 0:y.querySelector('[role="tablist"]'),E=v==null?void 0:v.querySelector(`[role="tab"].version-tab-${b}`);if(!y||!E||!v)return;const T=Array.from(v.querySelectorAll('[role="tab"]')).reduce((k,P)=>k+P.offsetWidth,0);v.style.width=`${T}px`;const S=E.offsetLeft,x=y.clientWidth,$=E.offsetWidth,Q=Math.max(0,S-(x-$)/2);y.scrollTo({left:Q,behavior:"smooth"})},100)})},p=b=>{setTimeout(()=>{f(b)},200)},h=async(b,y)=>{var v,E,w;if(b==="edit"&&(t.setModelDetail(n),t.setDialogStatus(!0,Number((v=r.value)==null?void 0:v.id)),i.value=!1),b==="remove"){if(i.value=!1,!await t_({title:"Are you sure you want to delete this model?",desc:"This action cannot be undone.",cancel:"No, Keep It",continue:"Yes, Delete It",z:"z-9000"}))return;if((E=n.value)!=null&&E.versions&&((w=n.value)==null?void 0:w.versions.some(x=>x.public))){Ut.warning("Model has public version, cannot remove.");return}m(y)}},m=async b=>{try{await v2(b),Ut.success("Model removed successfully."),t.reload+=1}catch(y){Ut.error("Failed to remove model."),console.error("Error removing model:",y)}},g=()=>{r.value&&n.value&&t.setApplyObject(r.value,n.value)},_=async b=>{try{if(navigator.clipboard)await navigator.clipboard.writeText(b||""),Ut.success("Copied successfully.");else{const y=document.createElement("input");y.value=b||"",document.body.appendChild(y),y.select(),document.execCommand("copy"),document.body.removeChild(y)}}catch{Ut.error("Copy failed.")}};return(b,y)=>{var v,E,w,T,S,x,$,Q,k,P,R,C,I,X,F,z,J,ne,re,Z,W,j,q,G,ie,le,ae,pe,K,A,N;return n.value?(fe(),qe("div",mke,[$e("div",gke,[$e("div",_ke,[$e("div",bke,Ot(D(pE)((v=n.value)==null?void 0:v.name,60)),1),$e("div",yke,[$e("div",vke,[y[3]||(y[3]=$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[$e("path",{d:"M3.33325 2L12.6666 8L3.33325 14V2Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$e("div",Ske,Ot(D(vd)((w=(E=n.value)==null?void 0:E.counter)==null?void 0:w.used_count)),1)])]),$e("div",Eke,[y[4]||(y[4]=$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[$e("path",{d:"M7.99992 1.33325L10.0599 5.50659L14.6666 6.17992L11.3333 9.42659L12.1199 14.0133L7.99992 11.8466L3.87992 14.0133L4.66659 9.42659L1.33325 6.17992L5.93992 5.50659L7.99992 1.33325Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$e("div",Tke,Ot(D(vd)((S=(T=n.value)==null?void 0:T.counter)==null?void 0:S.forked_count)),1)]),$e("div",wke,[y[5]||(y[5]=mg('',1)),$e("div",xke,Ot(D(vd)(($=(x=n.value)==null?void 0:x.counter)==null?void 0:$.liked_count)),1)])]),$e("div",$ke,[$e("div",Pke,[$e("div",Rke,[te(D(dke),{ref_key:"scrollViewportRef",ref:a,class:"rounded-md w-full"},{default:ce(()=>{var M,oe;return[$e("div",Qke,[te(D(YY),{defaultValue:(M=r.value)==null?void 0:M.id,value:(oe=r.value)==null?void 0:oe.id},{default:ce(()=>[te(D(jY),{class:"inline-flex h-12 bg-transparent text-sm text-white w-auto"},{default:ce(()=>{var se;return[(fe(!0),qe(Pt,null,Oi((se=n.value)==null?void 0:se.versions,V=>(fe(),Se(D(qY),{value:V.id,onClick:ee=>c(V.id),class:xt([["version-tab",`version-tab-${V.id}`],"text-sm t bg-[#9CA3AF] data-[state=active]:bg-[#7C3AED] h-10 px-3 py-2 mx-1"])},{default:ce(()=>[ot(Ot(V.version),1)]),_:2},1032,["value","onClick","class"]))),256))]}),_:1})]),_:1},8,["defaultValue","value"])]),te(D(GY),{orientation:"horizontal"})]}),_:1},512)])]),y[10]||(y[10]=$e("div",{class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative flex-1"},null,-1)),$e("div",kke,[(fe(),qe("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"cursor-pointer",onClick:d,style:Ei({stroke:(Q=r.value)!=null&&Q.liked?"#6D28D9":"#F9FAFB",fill:(k=r.value)!=null&&k.liked?"#6D28D9":"none"})},y[6]||(y[6]=[$e("g",{"clip-path":"url(#clip0_440_1289)"},[$e("path",{d:"M4.66659 6.66658V14.6666M9.99992 3.91992L9.33325 6.66658H13.2199C13.4269 6.66658 13.6311 6.71478 13.8162 6.80735C14.0013 6.89992 14.1624 7.03432 14.2866 7.19992C14.4108 7.36551 14.4947 7.55775 14.5317 7.7614C14.5688 7.96506 14.5579 8.17454 14.4999 8.37325L12.9466 13.7066C12.8658 13.9835 12.6974 14.2268 12.4666 14.3999C12.2358 14.573 11.9551 14.6666 11.6666 14.6666H2.66659C2.31296 14.6666 1.97382 14.5261 1.72378 14.2761C1.47373 14.026 1.33325 13.6869 1.33325 13.3333V7.99992C1.33325 7.6463 1.47373 7.30716 1.72378 7.05711C1.97382 6.80706 2.31296 6.66658 2.66659 6.66658H4.50659C4.75464 6.66645 4.99774 6.59713 5.20856 6.4664C5.41937 6.33567 5.58953 6.14873 5.69992 5.92659L7.99992 1.33325C8.3143 1.33715 8.62374 1.41203 8.90512 1.55232C9.1865 1.6926 9.43254 1.89466 9.62486 2.14339C9.81717 2.39212 9.9508 2.68109 10.0157 2.98872C10.0807 3.29635 10.0753 3.61468 9.99992 3.91992Z","stroke-linecap":"round","stroke-linejoin":"round"})],-1),$e("defs",null,[$e("clipPath",{id:"clip0_440_1289"},[$e("rect",{width:"16",height:"16",fill:"white"})])],-1)]),4)),D(t).mode==="my"||D(t).mode==="my_fork"?(fe(),Se(D(xy),{key:0,class:"bg-[#353535]",open:i.value,"onUpdate:open":u},{default:ce(()=>[te(D(Py),{class:"bg-transparent"},{default:ce(()=>y[7]||(y[7]=[$e("div",{class:"flex justify-center items-center rounded-md w-8 relative z-50"},[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"cursor-pointer"},[$e("path",{d:"M8.66659 7.99992C8.66659 7.63173 8.36811 7.33325 7.99992 7.33325C7.63173 7.33325 7.33325 7.63173 7.33325 7.99992C7.33325 8.36811 7.63173 8.66659 7.99992 8.66659C8.36811 8.66659 8.66659 8.36811 8.66659 7.99992Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"}),$e("path",{d:"M8.66659 3.33325C8.66659 2.96506 8.36811 2.66658 7.99992 2.66658C7.63173 2.66658 7.33325 2.96506 7.33325 3.33325C7.33325 3.70144 7.63173 3.99992 7.99992 3.99992C8.36811 3.99992 8.66659 3.70144 8.66659 3.33325Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"}),$e("path",{d:"M8.66659 12.6666C8.66659 12.2984 8.36811 11.9999 7.99992 11.9999C7.63173 11.9999 7.33325 12.2984 7.33325 12.6666C7.33325 13.0348 7.63173 13.3333 7.99992 13.3333C8.36811 13.3333 8.66659 13.0348 8.66659 12.6666Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)])),_:1}),te(D($y),{side:"bottom",align:"end",class:"w-[150px] p-0 bg-[#353535] rounded-lg group-hover:visible z-15000"},{default:ce(()=>[te(D(Ry),null,{default:ce(()=>[te(D(Qy),null,{default:ce(()=>[te(D(Uh),null,{default:ce(()=>[te(D(cl),{value:"edit",onClick:y[0]||(y[0]=M=>{var oe;return h("edit",(oe=n.value)==null?void 0:oe.id)}),class:"px-2 py-1.5 mb-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:ce(()=>y[8]||(y[8]=[ot(" Edit ")])),_:1}),te(D(uQ)),te(D(cl),{value:"remove",onClick:y[1]||(y[1]=M=>{var oe;return h("remove",(oe=n.value)==null?void 0:oe.id)}),class:"px-2 py-1.5 mb-1 mt-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:ce(()=>y[9]||(y[9]=[ot(" Remove ")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["open"])):kt("",!0)])]),$e("div",Cke,[$e("div",Ake," First Published: "+Ot((P=r.value)==null?void 0:P.created_at),1),$e("div",Ike," Last Updated: "+Ot((R=r.value)==null?void 0:R.updated_at),1)])]),$e("div",Dke,[$e("div",Nke,[$e("div",Mke,[(C=r.value)!=null&&C.intro?(fe(),Se(D(Lp),{key:0,id:"previewRef",modelValue:(I=r.value)==null?void 0:I.intro,noImgZoomIn:!0,preview:!0,theme:"dark",class:"bg-[#353535] w-full min-h-[80vh]"},null,8,["modelValue"])):(fe(),qe("div",Lke,y[11]||(y[11]=[$e("div",{class:"flex justify-center items-center h-full"},[$e("div",{class:"text-text-text-muted-foreground text-left font-['Inter-Regular',_sans-serif] text-xs leading-5 font-normal relative"}," No introduction yet ")],-1)])))])]),$e("div",Uke,[$e("div",Xke,[$e("div",zke,[te(D(Oke),null,{default:ce(()=>[te(D(pke),{src:"https://github.com/radix-vue.png",alt:"@radix-vue"}),te(D(fke),null,{default:ce(()=>{var M,oe;return[ot(Ot((oe=(M=n.value)==null?void 0:M.user_name)==null?void 0:oe.slice(0,2)),1)]}),_:1})]),_:1}),ot(" "+Ot((X=n.value)==null?void 0:X.user_name),1)]),$e("div",Bke,[D(t).mode==="publicity"?(fe(),Se(D(Ur),{key:0,variant:"default",class:"w-[124px] flex h-9 px-3 py-2 justify-center items-center gap-2 flex-1 rounded-md bg-[#6D28D9]",onClick:O,disabled:(F=r.value)==null?void 0:F.forked},{default:ce(()=>{var M;return[ot(Ot((M=r.value)!=null&&M.forked?"Forked":"Fork"),1)]}),_:1},8,["disabled"])):kt("",!0),te(D(Ur),{onClick:g,class:"flex w-[170px] px-8 py-2 justify-center items-center gap-2 bg-[#F43F5E] hover:bg-[#F43F5E]/90 rounded-[6px]"},{default:ce(()=>y[12]||(y[12]=[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none"},[$e("path",{d:"M6.49988 7.9999L7.83322 9.33324L10.4999 6.66657M3.06655 5.74657C2.96925 5.30825 2.98419 4.85246 3.10999 4.42146C3.23579 3.99046 3.46838 3.5982 3.7862 3.28105C4.10401 2.9639 4.49676 2.73213 4.92802 2.60723C5.35929 2.48233 5.81511 2.46835 6.25322 2.56657C6.49436 2.18944 6.82655 1.87907 7.21919 1.66409C7.61182 1.44911 8.05225 1.33643 8.49988 1.33643C8.94752 1.33643 9.38795 1.44911 9.78058 1.66409C10.1732 1.87907 10.5054 2.18944 10.7466 2.56657C11.1853 2.46792 11.6419 2.48184 12.0739 2.60704C12.5058 2.73225 12.8991 2.96466 13.2171 3.28267C13.5351 3.60068 13.7675 3.99395 13.8927 4.4259C14.0179 4.85786 14.0319 5.31446 13.9332 5.75324C14.3104 5.99437 14.6207 6.32657 14.8357 6.7192C15.0507 7.11183 15.1634 7.55227 15.1634 7.9999C15.1634 8.44754 15.0507 8.88797 14.8357 9.2806C14.6207 9.67323 14.3104 10.0054 13.9332 10.2466C14.0314 10.6847 14.0175 11.1405 13.8926 11.5718C13.7677 12.003 13.5359 12.3958 13.2187 12.7136C12.9016 13.0314 12.5093 13.264 12.0783 13.3898C11.6473 13.5156 11.1915 13.5305 10.7532 13.4332C10.5124 13.8118 10.1799 14.1235 9.78663 14.3394C9.39333 14.5554 8.9519 14.6686 8.50322 14.6686C8.05453 14.6686 7.6131 14.5554 7.2198 14.3394C6.8265 14.1235 6.49404 13.8118 6.25322 13.4332C5.81511 13.5315 5.35929 13.5175 4.92802 13.3926C4.49676 13.2677 4.10401 13.0359 3.7862 12.7188C3.46838 12.4016 3.23579 12.0093 3.10999 11.5783C2.98419 11.1473 2.96925 10.6916 3.06655 10.2532C2.68652 10.0127 2.37349 9.68002 2.15658 9.28605C1.93967 8.89207 1.82593 8.44964 1.82593 7.9999C1.82593 7.55016 1.93967 7.10773 2.15658 6.71376C2.37349 6.31979 2.68652 5.98707 3.06655 5.74657Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1),ot("Apply")])),_:1})])]),$e("div",Fke,[$e("div",Wke,[y[13]||(y[13]=$e("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 border-b border-[rgba(78,78,78,0.50)]"}," Type",-1)),$e("div",Vke,[$e("span",{class:xt(`${(z=n.value)==null?void 0:z.type} inline-flex px-[10px] py-[2px] items-start gap-[10px] rounded-[9999px] relative overflow-hidden`)},Ot((J=n.value)==null?void 0:J.type),3)])]),$e("div",Yke,[y[14]||(y[14]=$e("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 text-sm border-b border-[rgba(78,78,78,0.50)] whitespace-nowrap"}," Base Model",-1)),$e("div",jke,Ot((ne=r.value)==null?void 0:ne.base_model),1)]),$e("div",qke,[y[15]||(y[15]=$e("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 border-b border-[rgba(78,78,78,0.50)]"}," Published",-1)),$e("div",Gke,Ot((re=r.value)==null?void 0:re.created_at),1)]),$e("div",Zke,[y[17]||(y[17]=$e("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 border-b border-[rgba(78,78,78,0.50)]"}," Hash",-1)),$e("div",Hke,[$e("span",null,Ot((Z=r.value)!=null&&Z.sign?D(pE)((W=r.value)==null?void 0:W.sign,15):""),1),(j=r.value)!=null&&j.sign?(fe(),qe("svg",{key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",class:"cursor-pointer hover:opacity-80",onClick:y[2]||(y[2]=M=>{var oe;return _(((oe=r.value)==null?void 0:oe.sign)||"")})},y[16]||(y[16]=[$e("g",{"clip-path":"url(#clip0_315_3710)"},[$e("path",{d:"M2.66659 10.6666C1.93325 10.6666 1.33325 10.0666 1.33325 9.33325V2.66659C1.33325 1.93325 1.93325 1.33325 2.66659 1.33325H9.33325C10.0666 1.33325 10.6666 1.93325 10.6666 2.66659M6.66658 5.33325H13.3333C14.0696 5.33325 14.6666 5.93021 14.6666 6.66658V13.3333C14.6666 14.0696 14.0696 14.6666 13.3333 14.6666H6.66658C5.93021 14.6666 5.33325 14.0696 5.33325 13.3333V6.66658C5.33325 5.93021 5.93021 5.33325 6.66658 5.33325Z",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"})],-1),$e("defs",null,[$e("clipPath",{id:"clip0_315_3710"},[$e("rect",{width:"16",height:"16",fill:"white"})])],-1)]))):kt("",!0)])]),$e("div",Kke,[y[21]||(y[21]=$e("div",{className:"w-[100px] bg-[#4E4E4E80] p-4 text-gray-300 border-b border-[rgba(78,78,78,0.50)]"}," Stats",-1)),$e("div",Jke,[$e("div",eCe,[y[18]||(y[18]=$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[$e("path",{d:"M3.33325 2L12.6666 8L3.33325 14V2Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$e("div",tCe,Ot(D(vd)((G=(q=r.value)==null?void 0:q.counter)==null?void 0:G.used_count)),1)]),$e("div",nCe,[y[19]||(y[19]=$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},[$e("path",{d:"M7.99992 1.33325L10.0599 5.50659L14.6666 6.17992L11.3333 9.42659L12.1199 14.0133L7.99992 11.8466L3.87992 14.0133L4.66659 9.42659L1.33325 6.17992L5.93992 5.50659L7.99992 1.33325Z",stroke:"#F9FAFB","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$e("div",rCe,Ot(D(vd)((le=(ie=r.value)==null?void 0:ie.counter)==null?void 0:le.forked_count)),1)]),$e("div",iCe,[y[20]||(y[20]=mg('',1)),$e("div",aCe,Ot(D(vd)((pe=(ae=r.value)==null?void 0:ae.counter)==null?void 0:pe.liked_count)),1)])])])]),$e("div",oCe,[y[22]||(y[22]=$e("div",{class:"bg-[#424242] rounded-md flex items-center justify-start self-stretch shrink-0 relative h-[44px] pl-2"}," File ",-1)),$e("div",sCe,Ot((K=r.value)!=null&&K.file_name?D(pE)((A=r.value)==null?void 0:A.file_name,20):"")+" ("+Ot(D(Cee)((N=r.value)==null?void 0:N.file_size))+") ",1)])])])])):kt("",!0)}}}),[["__scopeId","data-v-1848d10c"]]),cCe={class:"text-sm text-white-500 flex items-center min-w-0"},uCe={class:"truncate flex-1"},dCe={class:"flex-shrink-0 ml-2"},OCe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},fCe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},pCe=ve({__name:"ModelVersionRow",props:{version:{},model:{}},setup(e){const t=su(),n=xe(!1);Be(()=>t.reload,(a,o)=>{a!==o&&(n.value=!1)},{deep:!0});const r=(a,o)=>{t.setApplyObject(a,o)},i=()=>{n.value=!0};return(a,o)=>(fe(),qe(Pt,null,[te(D(Xh),{class:"bg-[#3D3D3D] hover:bg-[#4E4E4E] hover:cursor-pointer border-[#F9FAFB]/60 h-12",onClick:i},{default:ce(()=>[te(D(Os),{class:"pl-10 w-[55%] max-w-[200px]"},{default:ce(()=>[$e("div",cCe,[$e("span",uCe,Ot(a.version.version),1),$e("div",dCe,[a.version.public?(fe(),qe("svg",OCe,o[2]||(o[2]=[$e("path",{d:"M1.33325 8.49992C1.33325 8.49992 3.33325 3.83325 7.99992 3.83325C12.6666 3.83325 14.6666 8.49992 14.6666 8.49992C14.6666 8.49992 12.6666 13.1666 7.99992 13.1666C3.33325 13.1666 1.33325 8.49992 1.33325 8.49992Z",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),$e("path",{d:"M7.99992 10.4999C9.10449 10.4999 9.99992 9.60449 9.99992 8.49992C9.99992 7.39535 9.10449 6.49992 7.99992 6.49992C6.89535 6.49992 5.99992 7.39535 5.99992 8.49992C5.99992 9.60449 6.89535 10.4999 7.99992 10.4999Z",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(fe(),qe("svg",fCe,o[3]||(o[3]=[$e("path",{d:"M6.58658 7.08659C6.39009 7.26968 6.23248 7.49048 6.12317 7.73582C6.01386 7.98115 5.95508 8.24598 5.95034 8.51452C5.9456 8.78307 5.995 9.04981 6.09559 9.29884C6.19618 9.54788 6.3459 9.7741 6.53582 9.96402C6.72573 10.1539 6.95196 10.3037 7.20099 10.4042C7.45003 10.5048 7.71677 10.5542 7.98531 10.5495C8.25385 10.5448 8.51869 10.486 8.76402 10.3767C9.00935 10.2674 9.23015 10.1097 9.41325 9.91325M7.15325 3.88659C7.43412 3.85159 7.71687 3.83378 7.99992 3.83325C12.6666 3.83325 14.6666 8.49992 14.6666 8.49992C14.3685 9.138 13.9947 9.73787 13.5533 10.2866M4.40659 4.90659C3.08075 5.80967 2.01983 7.05009 1.33325 8.49992C1.33325 8.49992 3.33325 13.1666 7.99992 13.1666C9.27719 13.17 10.5271 12.7967 11.5933 12.0933M1.33325 1.83325L14.6666 15.1666",stroke:"#9CA3AF","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))])])]),_:1}),te(D(Os),{class:"w-[15%]"},{default:ce(()=>[ot(Ot(a.version.base_model),1)]),_:1}),te(D(Os),{class:"w-[15%]"},{default:ce(()=>[ot(Ot(a.version.available?"Available":"Unavailable"),1)]),_:1}),te(D(Os),{class:"w-[15%] flex justify-start"},{default:ce(()=>[te(D(Ur),{variant:"default",onClick:o[0]||(o[0]=Sr(s=>r(a.version,a.model),["stop"])),disabled:!a.version.available,class:xt({"opacity-50":!a.version.available})},{default:ce(()=>o[4]||(o[4]=[ot(" Apply ")])),_:1},8,["disabled","class"])]),_:1})]),_:1}),te(n_,{open:n.value,"onUpdate:open":o[1]||(o[1]=s=>n.value=s),class:"max-w-full h-screen px-6 overflow-hidden pb-6 z-8000",layoutClass:"z-8000",contentClass:"custom-scrollbar max-h-[100vh-120px] overflow-y-auto w-full rounded-tl-lg rounded-tr-lg custom-shadow",title:a.model.name},{default:ce(()=>[te(D(lCe),{modelId:a.model.id,version:a.version},null,8,["modelId","version"])]),_:1},8,["open","title"])],64))}}),hCe={class:"flex items-center justify-center h-full"},mCe={class:"flex items-center space-x-2"},gCe={class:"text-sm"},_Ce={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},bCe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},yCe={class:"flex justify-end h-full"},vCe={key:1,class:"w-8 h-8"},SCe={class:"w-full flex justify-center mt-8"},ECe=ve({__name:"ModelTable",setup(e){const t=su(),n=xe(new Set),r=xe(""),i=Ie(()=>t.isLoading);Be(()=>t.models,l=>{l.length>0&&(n.value.clear(),n.value.add(l[0].name))},{deep:!0});const a=l=>{n.value.has(l)?n.value.delete(l):n.value.add(l)},o=async(l,c)=>{const{id:u,name:d,versions:O}=c;if(r.value=d,l==="edit"){const f=await y2({id:c.id,source:t.mode});t.setModelDetail(f.data),t.setDialogStatus(!0),r.value=""}if(l==="remove"){if(t.reloadModelSelectList=!1,!await t_({title:"Are you sure you want to delete this model?",desc:"This action cannot be undone.",cancel:"No, Keep It",continue:"Yes, Delete It",z:"z-9000"}))return;if(O&&O.some(h=>h.public)){Ut.warning("Model has public version, cannot remove.");return}s(u)}},s=async l=>{try{await v2(l),Ut.success("Model removed successfully."),t.reloadModelSelectList=!0}catch(c){Ut.error(`Failed to remove model. ${c}`)}};return(l,c)=>(fe(),qe("div",null,[te(D(lke),null,{default:ce(()=>[te(D(uke),null,{default:ce(()=>[te(D(Xh),{class:"hover:bg-transparent border-[#F9FAFB]/60"},{default:ce(()=>[te(D(ky),{class:"w-[55%]"},{default:ce(()=>c[0]||(c[0]=[ot("Name")])),_:1}),te(D(ky),{class:"w-[15%]"},{default:ce(()=>c[1]||(c[1]=[ot("Base Model")])),_:1}),te(D(ky),{class:"w-[15%]"},{default:ce(()=>c[2]||(c[2]=[ot("Status")])),_:1}),te(D(ky),{class:"w-[15%]"},{default:ce(()=>c[3]||(c[3]=[ot("Operate")])),_:1})]),_:1})]),_:1}),te(D(cke),null,{default:ce(()=>[i.value?(fe(),Se(D(Xh),{key:0,class:"bg-transparent hover:bg-transparent"},{default:ce(()=>[te(D(Os),{colspan:"4",class:"h-[400px]"},{default:ce(()=>[$e("div",hCe,[te(D(voe),{class:"h-8 w-8 animate-spin text-[#F9FAFB]"})])]),_:1})]),_:1})):(fe(),qe(Pt,{key:1},[!i.value&&D(t).models.length>0?(fe(!0),qe(Pt,{key:0},Oi(D(t).models,u=>(fe(),qe(Pt,{key:`${u.id}-${u.name}`},[te(D(Xh),{class:"group cursor-pointer border-[#F9FAFB]/60 hover:bg-transparent h-12"},{default:ce(()=>[te(D(Os),{class:"w-[55%]",onClick:d=>a(u.name)},{default:ce(()=>[$e("div",mCe,[$e("span",gCe,[n.value.has(u.name)?(fe(),qe("svg",_Ce,c[4]||(c[4]=[$e("path",{d:"M4 6L8 10L12 6",stroke:"#F9FAFB","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))):(fe(),qe("svg",bCe,c[5]||(c[5]=[$e("path",{d:"M6 4L10 8L6 12",stroke:"#F9FAFB","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]),$e("span",null,Ot(u.name),1),te(D(cQ),{variant:"default"},{default:ce(()=>[ot(Ot(u.type),1)]),_:2},1024)])]),_:2},1032,["onClick"]),te(D(Os),{class:"w-[15%]"},{default:ce(()=>c[6]||(c[6]=[ot("-")])),_:1}),te(D(Os),{class:"w-[15%]"},{default:ce(()=>c[7]||(c[7]=[ot("-")])),_:1}),te(D(Os),{class:"w-[15%]"},{default:ce(()=>[$e("div",yCe,[D(t).mode==="my"||D(t).mode==="my_fork"?(fe(),Se(D(xy),{key:0,class:"bg-[#353535] z-[5100]mmm",open:r.value===u.name,"onUpdate:open":d=>d?r.value=u.name:r.value=""},{default:ce(()=>[te(D(Py),{class:"bg-transparent"},{default:ce(()=>c[8]||(c[8]=[$e("div",{class:"flex justify-center items-center hover:bg-[#222222] rounded-md w-8 h-8"},[$e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},[$e("path",{fill:"white",d:"M12 16a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2m0-6a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2a2 2 0 0 1 2-2"})])],-1)])),_:1}),te(D($y),{side:"bottom",align:"end",class:"w-[150px] p-0 bg-[#353535] rounded-lg group-hover:visible z-12000"},{default:ce(()=>[te(D(Ry),null,{default:ce(()=>[te(D(Qy),null,{default:ce(()=>[te(D(Uh),null,{default:ce(()=>[te(D(cl),{value:"edit",onClick:d=>o("edit",u),class:"px-2 py-1.5 mb-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:ce(()=>c[9]||(c[9]=[ot(" Edit ")])),_:2},1032,["onClick"]),te(D(uQ)),te(D(cl),{value:"remove",onClick:d=>o("remove",u),class:"px-2 py-1.5 mb-1 mt-1 text-[#F9FAFB] cursor-pointer [&:hover]:!bg-[#6D28D9] [&:hover]:!text-[#F9FAFB]"},{default:ce(()=>c[10]||(c[10]=[ot(" Remove ")])),_:2},1032,["onClick"])]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1032,["open","onUpdate:open"])):(fe(),qe("div",vCe))])]),_:2},1024)]),_:2},1024),n.value.has(u.name)&&u.versions?(fe(!0),qe(Pt,{key:0},Oi(u.versions,d=>(fe(),Se(pCe,{model:u,key:d.version,version:d},null,8,["model","version"]))),128)):kt("",!0)],64))),128)):(fe(),Se(D(Xh),{key:1,class:"hover:bg-transparent"},{default:ce(()=>[te(D(Os),{colspan:"4",class:"h-[400px]"},{default:ce(()=>c[11]||(c[11]=[$e("div",{class:"flex items-center justify-center h-full text-[#F9FAFB]"}," No available data ",-1)])),_:1})]),_:1}))],64))]),_:1})]),_:1}),$e("div",SCe,[i.value?kt("",!0):(fe(),Se(oke,{key:0}))])]))}}),TCe={class:"font-['Inter'] flex flex-col"},wCe={class:"flex flex-col min-h-[650px]"},xCe={class:"flex-1 relative"},$Ce={class:"h-full"},PCe=ve({__name:"Index",props:{modelType:{},selectedBaseModels:{}},emits:["apply"],setup(e,{emit:t}){const n=su(),r=e,i=["my","my_fork","publicity"],a={my:"My Models",my_fork:"My Forks",publicity:"Community Models"},o=async()=>{n.setIsLoading(!0),await ice(n.modelListPathParams,n.filterState).then(p=>{var h,m;p&&p.data?(n.modelListPathParams.total=((h=p==null?void 0:p.data)==null?void 0:h.total)||0,n.models=((m=p==null?void 0:p.data)==null?void 0:m.list)||[]):(n.modelListPathParams.total=0,n.models=[])}).catch(p=>{Ut.error(`Failed to fetch model list. ${p}`),n.modelListPathParams.total=0,n.models=[]}).finally(async()=>{n.setIsLoading(!1)})},s=xe(!1),l=xe(!1),c=async p=>{n.models=[],n.mode=String(p),n.modelListPathParams.mode=n.mode,n.modelListPathParams.current=1,n.mode!=="publicity"&&(n.filterState.sort="Recently"),await o()},u=()=>b2().then(p=>(n.setModelTypes(p!=null&&p.data?p.data:[]),_2())).then(p=>{n.setBaseModelTypes(p!=null&&p.data?p.data:[])}).catch(p=>{Ut.error(`Failed to fetch base model types${p}`),n.setModelTypes([]),n.setBaseModelTypes([])}),d=t;Be(()=>n.applyObject,p=>{p.version&&p.model&&d("apply",p.version,p.model.name)},{deep:!0}),Be(()=>n.closeModelSelectDialog,(p,h)=>{p!==h&&(l.value=!1)},{deep:!0}),Be(()=>n.reload,async(p,h)=>{p!==h&&await o()},{deep:!0}),Be(()=>n.reloadModelSelectList,async(p,h)=>{p!==h&&await o()},{deep:!0}),Be(()=>n.modelListPathParams.current,async(p,h)=>{p!==h&&l.value&&await o()}),ht(async()=>{r.modelType&&(n.selectedModelTypes=r.modelType,n.filterState.model_types=r.modelType),r.selectedBaseModels&&(n.selectedBaseModels=r.selectedBaseModels,n.filterState.base_models=r.selectedBaseModels),await u(),l.value=!0}),Be(()=>l.value,async p=>{p?(r.modelType&&(n.selectedModelTypes=r.modelType,n.filterState.model_types=r.modelType),r.selectedBaseModels&&(n.selectedBaseModels=r.selectedBaseModels,n.filterState.base_models=r.selectedBaseModels),await o()):n.resetModelListPathParams()});const O=async()=>{await o()},f=()=>{l.value=!1};return(p,h)=>(fe(),Se(n_,{open:l.value,"onUpdate:open":h[1]||(h[1]=m=>l.value=m),class:"max-w-[70%] px-6 pb-6 overflow-hidden z-8000",layoutClass:"z-8000",onOnClose:f,contentClass:"custom-scrollbar max-h-[78vh] overflow-y-auto w-full rounded-tl-lg rounded-tr-lg custom-shadow"},{title:ce(()=>h[2]||(h[2]=[$e("span",{class:"text-[#F9FAFB] mb-4 text-[18px] font-semibold leading-[18px] tracking-[-0.45px]"}," Select Model ",-1)])),default:ce(()=>[$e("div",TCe,[te(D(YY),{defaultValue:D(n).mode,class:"h-full flex flex-col","onUpdate:modelValue":c},{default:ce(()=>[te(D(jY),{class:"grid w-full grid-cols-3 h-12 bg-[#4E4E4E] text-white text-sm shrink-0"},{default:ce(()=>[(fe(),qe(Pt,null,Oi(i,m=>te(D(qY),{key:m,value:m,class:"text-sm data-[state=active]:bg-[#9CA3AF] bg-[#4E4E4E] h-10 px-3 py-2 focus:outline-none focus-visible:outline-none"},{default:ce(()=>[ot(Ot(a[m]),1)]),_:2},1032,["value"])),64))]),_:1}),(fe(),qe(Pt,null,Oi(i,m=>(fe(),qe(Pt,{key:m},[D(n).mode===m?(fe(),Se(D(VQe),{key:0,value:m,class:"flex-1 flex flex-col overflow-hidden"},{default:ce(()=>[$e("div",wCe,[$e("div",xCe,[te(JQe,{"show-sort-popover":s.value,"onUpdate:showSortPopover":h[0]||(h[0]=g=>s.value=g),onFetchData:O,class:"shrink-0"},null,8,["show-sort-popover"]),$e("div",$Ce,[te(ECe)])]),h[3]||(h[3]=$e("div",{class:"h-4"},null,-1))])]),_:2},1032,["value"])):kt("",!0)],64))),64))]),_:1},8,["defaultValue"])])]),_:1},8,["open"]))}}),RCe=e=>{let t=!1;const n=`bizyair-model-select-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,r=document.createElement("div");r.id=n,document.body.appendChild(r);const i=jf(PCe,{...e,onClose:()=>{t&&(i.unmount(),t=!1),document.body.contains(r)&&document.body.removeChild(r)},onApply:(...o)=>{e!=null&&e.onApply&&(e.onApply(...o),t&&(i.unmount(),t=!1),document.body.contains(r)&&document.body.removeChild(r))}});i.directive("debounce",{mounted(o,s){let l=null;o.addEventListener("keyup",()=>{l&&clearTimeout(l),l=setTimeout(()=>{s.value()},s.arg||500)})},unmounted(o,s){s&&o.removeEventListener("keyup",s.value)}});const a=i.mount(r);return t=!0,{instance:a}};let zh=jf(WQe);zh.use(lse());function QCe(e,t){zh.provide("comfyUIApp",t),zh.mount(e)}function kCe(){zh&&zh.unmount()}const CCe=36,ZY=1,ACe=2,WO=3,dQ=4,ICe=5,DCe=6,NCe=7,MCe=8,LCe=9,UCe=10,XCe=11,zCe=12,BCe=13,FCe=14,WCe=15,VCe=16,YCe=17,HY=18,jCe=19,KY=20,JY=21,ej=22,qCe=23,GCe=24;function OQ(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function ZCe(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function Mu(e,t,n){for(let r=!1;;){if(e.next<0)return;if(e.next==t&&!r){e.advance();return}r=n&&!r&&e.next==92,e.advance()}}function HCe(e,t){e:for(;;){if(e.next<0)return;if(e.next==36){e.advance();for(let n=0;n)".charCodeAt(n);for(;;){if(e.next<0)return;if(e.next==r&&e.peek(1)==39){e.advance(2);return}e.advance()}}function fQ(e,t){for(;!(e.next!=95&&!OQ(e.next));)t!=null&&(t+=String.fromCharCode(e.next)),e.advance();return t}function JCe(e){if(e.next==39||e.next==34||e.next==96){let t=e.next;e.advance(),Mu(e,t,!1)}else fQ(e)}function tj(e,t){for(;e.next==48||e.next==49;)e.advance();t&&e.next==t&&e.advance()}function nj(e,t){for(;;){if(e.next==46){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(e.next==69||e.next==101)for(e.advance(),(e.next==43||e.next==45)&&e.advance();e.next>=48&&e.next<=57;)e.advance()}function rj(e){for(;!(e.next<0||e.next==10);)e.advance()}function Lu(e,t){for(let n=0;n!=&|~^/",specialVar:"?",identifierQuotes:'"',caseInsensitiveIdentifiers:!1,words:ij(Xu,Uu)};function eAe(e,t,n,r){let i={};for(let a in hQ)i[a]=(e.hasOwnProperty(a)?e:hQ)[a];return t&&(i.words=ij(t,n||"",r)),i}function aj(e){return new $t(t=>{var n;let{next:r}=t;if(t.advance(),Lu(r,pQ)){for(;Lu(t.next,pQ);)t.advance();t.acceptToken(CCe)}else if(r==36&&e.doubleDollarQuotedStrings){let i=fQ(t,"");t.next==36&&(t.advance(),HCe(t,i),t.acceptToken(WO))}else if(r==39||r==34&&e.doubleQuotedStrings)Mu(t,r,e.backslashEscapes),t.acceptToken(WO);else if(r==35&&e.hashComments||r==47&&t.next==47&&e.slashComments)rj(t),t.acceptToken(ZY);else if(r==45&&t.next==45&&(!e.spaceAfterDashes||t.peek(1)==32))rj(t),t.acceptToken(ZY);else if(r==47&&t.next==42){t.advance();for(let i=1;;){let a=t.next;if(t.next<0)break;if(t.advance(),a==42&&t.next==47){if(i--,t.advance(),!i)break}else a==47&&t.next==42&&(i++,t.advance())}t.acceptToken(ACe)}else if((r==101||r==69)&&t.next==39)t.advance(),Mu(t,39,!0),t.acceptToken(WO);else if((r==110||r==78)&&t.next==39&&e.charSetCasts)t.advance(),Mu(t,39,e.backslashEscapes),t.acceptToken(WO);else if(r==95&&e.charSetCasts)for(let i=0;;i++){if(t.next==39&&i>1){t.advance(),Mu(t,39,e.backslashEscapes),t.acceptToken(WO);break}if(!OQ(t.next))break;t.advance()}else if(e.plsqlQuotingMechanism&&(r==113||r==81)&&t.next==39&&t.peek(1)>0&&!Lu(t.peek(1),pQ)){let i=t.peek(1);t.advance(2),KCe(t,i),t.acceptToken(WO)}else if(r==40)t.acceptToken(NCe);else if(r==41)t.acceptToken(MCe);else if(r==123)t.acceptToken(LCe);else if(r==125)t.acceptToken(UCe);else if(r==91)t.acceptToken(XCe);else if(r==93)t.acceptToken(zCe);else if(r==59)t.acceptToken(BCe);else if(e.unquotedBitLiterals&&r==48&&t.next==98)t.advance(),tj(t),t.acceptToken(ej);else if((r==98||r==66)&&(t.next==39||t.next==34)){const i=t.next;t.advance(),e.treatBitsAsBytes?(Mu(t,i,e.backslashEscapes),t.acceptToken(qCe)):(tj(t,i),t.acceptToken(ej))}else if(r==48&&(t.next==120||t.next==88)||(r==120||r==88)&&t.next==39){let i=t.next==39;for(t.advance();ZCe(t.next);)t.advance();i&&t.next==39&&t.advance(),t.acceptToken(dQ)}else if(r==46&&t.next>=48&&t.next<=57)nj(t,!0),t.acceptToken(dQ);else if(r==46)t.acceptToken(FCe);else if(r>=48&&r<=57)nj(t,!1),t.acceptToken(dQ);else if(Lu(r,e.operatorChars)){for(;Lu(t.next,e.operatorChars);)t.advance();t.acceptToken(WCe)}else if(Lu(r,e.specialVar))t.next==r&&t.advance(),JCe(t),t.acceptToken(YCe);else if(Lu(r,e.identifierQuotes))Mu(t,r,!1),t.acceptToken(jCe);else if(r==58||r==44)t.acceptToken(VCe);else if(OQ(r)){let i=fQ(t,String.fromCharCode(r));t.acceptToken(t.next==46||t.peek(-i.length-1)==46?HY:(n=e.words[i.toLowerCase()])!==null&&n!==void 0?n:HY)}})}const oj=aj(hQ),tAe=jn.deserialize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RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,nodeProps:[["isolate",-4,1,2,3,19,""]],skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,oj],topRules:{Script:[0,25]},tokenPrec:0});function mQ(e){let t=e.cursor().moveTo(e.from,-1);for(;/Comment/.test(t.name);)t.moveTo(t.from,-1);return t.node}function Bh(e,t){let n=e.sliceString(t.from,t.to),r=/^([`'"])(.*)\1$/.exec(n);return r?r[2]:n}function Cy(e){return e&&(e.name=="Identifier"||e.name=="QuotedIdentifier")}function nAe(e,t){if(t.name=="CompositeIdentifier"){let n=[];for(let r=t.firstChild;r;r=r.nextSibling)Cy(r)&&n.push(Bh(e,r));return n}return[Bh(e,t)]}function sj(e,t){for(let n=[];;){if(!t||t.name!=".")return n;let r=mQ(t);if(!Cy(r))return n;n.unshift(Bh(e,r)),t=mQ(r)}}function rAe(e,t){let n=_n(e).resolveInner(t,-1),r=aAe(e.doc,n);return n.name=="Identifier"||n.name=="QuotedIdentifier"||n.name=="Keyword"?{from:n.from,quoted:n.name=="QuotedIdentifier"?e.doc.sliceString(n.from,n.from+1):null,parents:sj(e.doc,mQ(n)),aliases:r}:n.name=="."?{from:t,quoted:null,parents:sj(e.doc,n),aliases:r}:{from:t,quoted:null,parents:[],empty:!0,aliases:r}}const iAe=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function aAe(e,t){let n;for(let i=t;!n;i=i.parent){if(!i)return null;i.name=="Statement"&&(n=i)}let r=null;for(let i=n.firstChild,a=!1,o=null;i;i=i.nextSibling){let s=i.name=="Keyword"?e.sliceString(i.from,i.to).toLowerCase():null,l=null;if(!a)a=s=="from";else if(s=="as"&&o&&Cy(i.nextSibling))l=Bh(e,i.nextSibling);else{if(s&&iAe.has(s))break;o&&Cy(i)&&(l=Bh(e,i))}l&&(r||(r=Object.create(null)),r[l]=nAe(e,o)),o=/Identifier$/.test(i.name)?i:null}return r}function oAe(e,t){return e?t.map(n=>Object.assign(Object.assign({},n),{label:n.label[0]==e?n.label:e+n.label+e,apply:void 0})):t}const sAe=/^\w*$/,lAe=/^[`'"]?\w*[`'"]?$/;function lj(e){return e.self&&typeof e.self.label=="string"}class gQ{constructor(t,n){this.idQuote=t,this.idCaseInsensitive=n,this.list=[],this.children=void 0}child(t){let n=this.children||(this.children=Object.create(null)),r=n[t];return r||(t&&!this.list.some(i=>i.label==t)&&this.list.push(cj(t,"type",this.idQuote,this.idCaseInsensitive)),n[t]=new gQ(this.idQuote,this.idCaseInsensitive))}maybeChild(t){return this.children?this.children[t]:null}addCompletion(t){let n=this.list.findIndex(r=>r.label==t.label);n>-1?this.list[n]=t:this.list.push(t)}addCompletions(t){for(let n of t)this.addCompletion(typeof n=="string"?cj(n,"property",this.idQuote,this.idCaseInsensitive):n)}addNamespace(t){Array.isArray(t)?this.addCompletions(t):lj(t)?this.addNamespace(t.children):this.addNamespaceObject(t)}addNamespaceObject(t){for(let n of Object.keys(t)){let r=t[n],i=null,a=n.replace(/\\?\./g,s=>s=="."?"\0":s).split("\0"),o=this;lj(r)&&(i=r.self,r=r.children);for(let s=0;s{let{parents:d,from:O,quoted:f,empty:p,aliases:h}=rAe(u.state,u.pos);if(p&&!u.explicit)return null;h&&d.length==1&&(d=h[d[0]]||d);let m=l;for(let b of d){for(;!m.children||!m.children[b];)if(m==l&&c)m=c;else if(m==c&&r)m=m.child(r);else return null;let y=m.maybeChild(b);if(!y)return null;m=y}let g=f&&u.state.sliceDoc(u.pos,u.pos+1)==f,_=m.list;return m==l&&h&&(_=_.concat(Object.keys(h).map(b=>({label:b,type:"constant"})))),{from:O,to:g?u.pos+1:void 0,options:oAe(f,_),validFor:f?lAe:sAe}}}function uAe(e){return e==JY?"type":e==KY?"keyword":"variable"}function dAe(e,t,n){let r=Object.keys(e).map(i=>n(t?i.toUpperCase():i,uAe(e[i])));return ey(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],bh(r))}let OAe=tAe.configure({props:[lr.add({Statement:Gn()}),cr.add({Statement(e,t){return{from:Math.min(e.from+100,t.doc.lineAt(e.from).to),to:e.to}},BlockComment(e){return{from:e.from+2,to:e.to-2}}}),Vn({Keyword:U.keyword,Type:U.typeName,Builtin:U.standard(U.name),Bits:U.number,Bytes:U.string,Bool:U.bool,Null:U.null,Number:U.number,String:U.string,Identifier:U.name,QuotedIdentifier:U.special(U.string),SpecialVar:U.special(U.name),LineComment:U.lineComment,BlockComment:U.blockComment,Operator:U.operator,"Semi Punctuation":U.punctuation,"( )":U.paren,"{ }":U.brace,"[ ]":U.squareBracket})]});class ho{constructor(t,n,r){this.dialect=t,this.language=n,this.spec=r}get extension(){return this.language.extension}static define(t){let n=eAe(t,t.keywords,t.types,t.builtin),r=Yn.define({name:"sql",parser:OAe.configure({tokenizers:[{from:oj,to:aj(n)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new ho(n,r,t)}}function fAe(e,t){return{label:e,type:t,boost:-1}}function uj(e,t=!1,n){return dAe(e.dialect.words,t,n||fAe)}function dj(e){return e.schema?cAe(e.schema,e.tables,e.schemas,e.defaultTable,e.defaultSchema,e.dialect||Ay):()=>null}function pAe(e){return e.schema?(e.dialect||Ay).language.data.of({autocomplete:dj(e)}):[]}function hAe(e={}){let t=e.dialect||Ay;return new Nn(t.language,[pAe(e),t.language.data.of({autocomplete:uj(t,e.upperCaseKeywords,e.keywordCompletion)})])}const Ay=ho.define({}),mAe=ho.define({charSetCasts:!0,doubleDollarQuotedStrings:!0,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:Xu+"abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:Uu+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"}),Oj="accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill",fj=Uu+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed",pj="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee",gAe=ho.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:Xu+"group_concat "+Oj,types:fj,builtin:pj}),_Ae=ho.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:Xu+"always generated groupby_concat hard persistent shutdown soft virtual "+Oj,types:fj,builtin:pj}),bAe=ho.define({keywords:Xu+"trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock pivot readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx unpivot updlock with",types:Uu+"bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id",operatorChars:"*+-%<>!=^&|/",specialVar:"@"}),yAe=ho.define({keywords:Xu+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:Uu+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"}),vAe=ho.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:Uu+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:!0}),SAe=ho.define({keywords:Xu+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:Uu+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:!0,charSetCasts:!0,plsqlQuotingMechanism:!0}),EAe=Object.freeze(Object.defineProperty({__proto__:null,Cassandra:vAe,MSSQL:bAe,MariaSQL:_Ae,MySQL:gAe,PLSQL:SAe,PostgreSQL:mAe,SQLDialect:ho,SQLite:yAe,StandardSQL:Ay,keywordCompletionSource:uj,schemaCompletionSource:dj,sql:hAe},Symbol.toStringTag,{value:"Module"})),hj=1,TAe=2,wAe=3,xAe=82,$Ae=76,PAe=117,RAe=85,QAe=97,kAe=122,CAe=65,AAe=90,IAe=95,_Q=48,mj=34,DAe=40,gj=41,NAe=32,_j=62,MAe=new $t(e=>{if(e.next==$Ae||e.next==RAe?e.advance():e.next==PAe&&(e.advance(),e.next==_Q+8&&e.advance()),e.next!=xAe||(e.advance(),e.next!=mj))return;e.advance();let t="";for(;e.next!=DAe;){if(e.next==NAe||e.next<=13||e.next==gj)return;t+=String.fromCharCode(e.next),e.advance()}for(e.advance();;){if(e.next<0)return e.acceptToken(hj);if(e.next==gj){let n=!0;for(let r=0;n&&r{if(e.next==_j)e.peek(1)==_j&&e.acceptToken(TAe,1);else{let t=!1,n=0;for(;;n++){if(e.next>=CAe&&e.next<=AAe)t=!0;else{if(e.next>=QAe&&e.next<=kAe)return;if(e.next!=IAe&&!(e.next>=_Q&&e.next<=_Q+9))break}e.advance()}t&&n>1&&e.acceptToken(wAe)}},{extend:!0}),UAe=Vn({"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based":U.definitionKeyword,"extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access":U.modifier,"if else switch for while do case default return break continue goto throw try catch":U.controlKeyword,"co_return co_yield co_await":U.controlKeyword,"new sizeof delete static_assert":U.operatorKeyword,"NULL nullptr":U.null,this:U.self,"True False":U.bool,"TypeSize PrimitiveType":U.standard(U.typeName),TypeIdentifier:U.typeName,FieldIdentifier:U.propertyName,"CallExpression/FieldExpression/FieldIdentifier":U.function(U.propertyName),"ModuleName/Identifier":U.namespace,PartitionName:U.labelName,StatementIdentifier:U.labelName,"Identifier DestructorName":U.variableName,"CallExpression/Identifier":U.function(U.variableName),"CallExpression/ScopedIdentifier/Identifier":U.function(U.variableName),"FunctionDeclarator/Identifier FunctionDeclarator/DestructorName":U.function(U.definition(U.variableName)),NamespaceIdentifier:U.namespace,OperatorName:U.operator,ArithOp:U.arithmeticOperator,LogicOp:U.logicOperator,BitOp:U.bitwiseOperator,CompareOp:U.compareOperator,AssignOp:U.definitionOperator,UpdateOp:U.updateOperator,LineComment:U.lineComment,BlockComment:U.blockComment,Number:U.number,String:U.string,"RawString SystemLibString":U.special(U.string),CharLiteral:U.character,EscapeSequence:U.escape,"UserDefinedLiteral/Identifier":U.literal,PreProcArg:U.meta,"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif":U.processingInstruction,MacroName:U.special(U.name),"( )":U.paren,"[ ]":U.squareBracket,"{ }":U.brace,"< >":U.angleBracket,". ->":U.derefOperator,", ;":U.separator}),XAe={__proto__:null,bool:34,char:34,int:34,float:34,double:34,void:34,size_t:34,ssize_t:34,intptr_t:34,uintptr_t:34,charptr_t:34,int8_t:34,int16_t:34,int32_t:34,int64_t:34,uint8_t:34,uint16_t:34,uint32_t:34,uint64_t:34,char8_t:34,char16_t:34,char32_t:34,char64_t:34,const:68,volatile:70,restrict:72,_Atomic:74,mutable:76,constexpr:78,constinit:80,consteval:82,struct:86,__declspec:90,final:148,override:148,public:152,private:152,protected:152,virtual:154,extern:160,static:162,register:164,inline:166,thread_local:168,__attribute__:172,__based:178,__restrict:180,__uptr:180,__sptr:180,_unaligned:180,__unaligned:180,noexcept:194,requires:198,TRUE:784,true:784,FALSE:786,false:786,typename:218,class:220,template:234,throw:248,__cdecl:256,__clrcall:256,__stdcall:256,__fastcall:256,__thiscall:256,__vectorcall:256,try:260,catch:264,export:282,import:286,case:296,default:298,if:308,else:314,switch:318,do:322,while:324,for:330,return:334,break:338,continue:342,goto:346,co_return:350,co_yield:354,using:362,typedef:366,namespace:380,new:398,delete:400,co_await:402,concept:406,enum:410,static_assert:414,friend:422,union:424,explicit:430,operator:444,module:456,signed:518,unsigned:518,long:518,short:518,decltype:528,auto:530,sizeof:566,NULL:572,nullptr:586,this:588},zAe={__proto__:null,"<":131},BAe={__proto__:null,">":135},FAe={__proto__:null,operator:388,new:576,delete:582},WAe=jn.deserialize({version:14,states:"$:|Q!QQVOOP'gOUOOO(XOWO'#CdO,RQUO'#CgO,]QUO'#FjO-sQbO'#CwO.UQUO'#CwO0TQUO'#KZO0[QUO'#CvO0gOpO'#DvO0oQ!dO'#D]OOQR'#JO'#JOO5XQVO'#GUO5fQUO'#JVOOQQ'#JV'#JVO8zQUO'#KmO{QVO'#E^O?]QUO'#E^OOQQ'#Ed'#EdOOQQ'#Ee'#EeO?bQVO'#EfO@XQVO'#EiOBUQUO'#FPOBvQUO'#FhOOQR'#Fj'#FjOB{QUO'#FjOOQR'#LQ'#LQOOQR'#LP'#LPOETQVO'#KQOFxQUO'#LVOGVQUO'#KqOGkQUO'#LVOH]QUO'#LXOOQR'#HU'#HUOOQR'#HV'#HVOOQR'#HW'#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l*q*r*v+W+Y+h+j+k,P,R,n,q,w-]-^-a-g.P.Q.U.}/Q/[/c/l/n/s/u0h0{1Q1a1b1l1p1z1|2c2f2i2u2z2}3i4O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fU%om%p7QQ&m!`Q(j#]d0P)}/|/}0O0R4}5O5P5S8QR7Q3Tb}Oaewx{!g&S*q&v$i[!W!X!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&W&b&f&x&y&|'O'P'b'i'j'y(`(b(i)l)r*h*i*l*r*v+W+Y+h+j+k,P,R,n,q,w-]-^-a-g.P.Q.U.}/Q/[/c/l/n/s/u0{1a1b1l1p1z1|2c2f2i2u2z2}3i4O4R4W4a5Y5e5q6_6c6f6h6j6t6v6{7b7j7m8e8g8m8s8t9R9V9]9_9l9o9p9{:O:U:W:]:b:fS%`f0h#d%jgnp|#O$g$|$}%S%d%h%i%w&s't'u(Q*Y*`*b*t+],l,v-_-p-w.f.m.o0]0y0z1O1S2_2j5a6g;W;X;Y;`;a;b;o;p;q;r;v;w;x;y MacroName LineComment BlockComment PreprocDirective #include String EscapeSequence SystemLibString Identifier ArgumentList ( ConditionalExpression AssignmentExpression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec ) Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",maxTerm:425,nodeProps:[["group",-35,1,8,11,14,15,16,18,71,72,100,101,102,104,191,208,229,242,243,270,271,272,277,280,281,282,284,285,286,287,290,292,293,294,295,296,"Expression",-13,17,24,25,26,42,255,256,257,258,262,263,265,266,"Type",-19,126,129,147,150,152,153,158,160,163,164,166,168,170,172,174,176,178,179,188,"Statement"],["isolate",-4,4,5,8,10,""]],propSources:[UAe],skippedNodes:[0,3,4,5,6,7,10,297,298,299,300,301,302,303,304,305,306,347,348],repeatNodeCount:41,tokenData:"&*r7ZR!UOX$eXY({YZ.gZ]$e]^+P^p$epq({qr.}rs0}st2ktu$euv!7dvw!9bwx!;exy!O{|!?R|}!AV}!O!BQ!O!P!DX!P!Q#+y!Q!R#Az!R![$(x![!]$Ag!]!^$Cc!^!_$D^!_!`%1W!`!a%2X!a!b%5_!b!c$e!c!n%6Y!n!o%7q!o!w%6Y!w!x%7q!x!}%6Y!}#O%:n#O#P%u#Y#]4Y#]#^NZ#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e4eb)ZW(pQ'f&j'm.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#o4Y#o;'S$e;'S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$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&)jb)ZW(pQdT'f&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![&)_![!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e",tokenizers:[MAe,LAe,0,1,2,3,4,5,6,7,8,9],topRules:{Program:[0,307]},dynamicPrecedences:{87:1,94:1,119:1,184:1,187:-10,240:-10,241:1,244:-1,246:-10,247:1,262:-1,267:2,268:2,306:-10,365:3,417:1,418:3,419:1,420:1},specialized:[{term:356,get:e=>XAe[e]||-1},{term:32,get:e=>zAe[e]||-1},{term:66,get:e=>BAe[e]||-1},{term:363,get:e=>FAe[e]||-1}],tokenPrec:24891}),bj=Yn.define({name:"cpp",parser:WAe.configure({props:[lr.add({IfStatement:Gn({except:/^\s*({|else\b)/}),TryStatement:Gn({except:/^\s*({|catch)\b/}),LabeledStatement:Lb,CaseStatement:e=>e.baseIndent+e.unit,BlockComment:()=>null,CompoundStatement:Ia({closing:"}"}),Statement:Gn({except:/^{/})}),cr.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":ea,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});function VAe(){return new Nn(bj)}const yj=Object.freeze(Object.defineProperty({__proto__:null,cpp:VAe,cppLanguage:bj},Symbol.toStringTag,{value:"Module"})),YAe=177,jAe=179,qAe=184,GAe=12,ZAe=13,HAe=17,KAe=20,JAe=25,eIe=53,tIe=95,nIe=142,rIe=144,iIe=145,aIe=148,oIe=10,sIe=13,lIe=32,cIe=9,vj=47,uIe=41,dIe=125,OIe=new $t((e,t)=>{for(let n=0,r=e.next;(t.context&&(r<0||r==oIe||r==sIe||r==vj&&e.peek(n+1)==vj)||r==uIe||r==dIe)&&e.acceptToken(YAe),!(r!=lIe&&r!=cIe);)r=e.peek(++n)},{contextual:!0});let fIe=new Set([tIe,qAe,KAe,GAe,HAe,rIe,iIe,nIe,aIe,ZAe,eIe,JAe]);const pIe=new Du({start:!1,shift:(e,t)=>t==jAe?e:fIe.has(t)}),hIe=Vn({"func interface struct chan map const type var":U.definitionKeyword,"import package":U.moduleKeyword,"switch for go select return break continue goto fallthrough case if else defer":U.controlKeyword,range:U.keyword,Bool:U.bool,String:U.string,Rune:U.character,Number:U.number,Nil:U.null,VariableName:U.variableName,DefName:U.definition(U.variableName),TypeName:U.typeName,LabelName:U.labelName,FieldName:U.propertyName,"FunctionDecl/DefName":U.function(U.definition(U.variableName)),"TypeSpec/DefName":U.definition(U.typeName),"CallExpr/VariableName":U.function(U.variableName),LineComment:U.lineComment,BlockComment:U.blockComment,LogicOp:U.logicOperator,ArithOp:U.arithmeticOperator,BitOp:U.bitwiseOperator,"DerefOp .":U.derefOperator,"UpdateOp IncDecOp":U.updateOperator,CompareOp:U.compareOperator,"= :=":U.definitionOperator,"<-":U.operator,'~ "*"':U.modifier,"; ,":U.separator,"... :":U.punctuation,"( )":U.paren,"[ ]":U.squareBracket,"{ }":U.brace}),mIe={__proto__:null,package:10,import:18,true:380,false:380,nil:383,struct:48,func:68,interface:78,chan:94,map:118,make:157,new:159,const:204,type:212,var:224,if:236,else:238,switch:242,case:248,default:250,for:260,range:266,go:270,select:274,return:284,break:288,continue:290,goto:292,fallthrough:296,defer:300},gIe=jn.deserialize({version:14,states:"!=xO#{QQOOP$SOQOOO&UQTO'#CbO&]QRO'#FlO]QQOOOOQP'#Cn'#CnOOQP'#Co'#CoO&eQQO'#C|O(kQQO'#C{O)]QRO'#GiO+tQQO'#D_OOQP'#Ge'#GeO+{QQO'#GeO.aQTO'#GaO.hQQO'#D`OOQP'#Gm'#GmO.mQRO'#GdO/hQQ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#`#a#b#c#e#h#i#j#k#n#u#v#y#|$P$Q$T$W$f$v$x%W%Y%a%c%x%y&O&W&]&`&g&m&s&x&y&|'P'R'T'U'W'X'Y']'a'b'e'o'r'w'|'}(S([(c(i(k(o(t(|)V)W)i)l)s)|*Q*`*h*k*l*n*o*p*r*w+R+g+j+l+|+},Q,R,S,T,U,V,W,X,Y,Z,[,],^,_,`,a,b,c,h,{,|,}-O-P-Q-U-V-W-X-Y-Z-[-]-^-_-dS&_#}&dW(S&S*S*|+^Q(e&bQ(o&lR*x*PS%U!t*`R+q+jR%S!qQ#PcQ(}&|Q)Z'YR+n+ghpOScw!U!V#O#k#n&|'Y+gQ$d!WQ$n!ZQ%g#VU%p#i'T,bU%q#j'U,cQ(j&gQ(u&sQ)Q'PQ)_']Q)y'wQ*_(kQ*a(tV-R'W)W*kT(U&S&l",nodeNames:"⚠ LineComment BlockComment SourceFile PackageClause package DefName ; ImportDecl import ImportSpec . String ) ( SpecList ExprStatement Number Bool Nil Rune VariableName TypedLiteral StructType struct } { StructBody FieldDecl FieldName , PointerType * FunctionType func Parameters Parameter ... InterfaceType interface InterfaceBody MethodElem UnderlyingType ~ TypeElem LogicOp ChannelType chan <- ParenthesizedType QualifiedType TypeName ParameterizedType ] [ TypeArgs ArrayType SliceType MapType map LiteralValue Element Key : Element Key ParenthesizedExpr FunctionLiteral Block Conversion SelectorExpr IndexExpr SliceExpr TypeAssertion CallExpr ParameterizedExpr Arguments CallExpr make new Arguments UnaryExp ArithOp LogicOp BitOp DerefOp BinaryExp ArithOp BitOp BitOp CompareOp LogicOp LogicOp SendStatement IncDecStatement IncDecOp Assignment = UpdateOp VarDecl := ConstDecl const ConstSpec SpecList TypeDecl type TypeSpec TypeParams TypeParam SpecList VarDecl var VarSpec SpecList LabeledStatement LabelName IfStatement if else SwitchStatement switch SwitchBlock Case case default TypeSwitchStatement SwitchBlock Case ForStatement for ForClause RangeClause range GoStatement go SelectStatement select SelectBlock Case ReceiveStatement ReturnStatement return GotoStatement break continue goto FallthroughStatement fallthrough DeferStatement defer FunctionDecl MethodDecl",maxTerm:218,context:pIe,nodeProps:[["isolate",-3,2,12,20,""],["group",-18,12,17,18,19,20,21,22,66,67,69,70,71,72,73,74,77,81,86,"Expr",-20,16,68,93,94,96,99,101,105,111,115,117,120,126,129,134,136,141,143,147,149,"Statement",-12,23,31,33,38,46,49,50,51,52,56,57,58,"Type"],["openedBy",13,"(",25,"{",53,"["],["closedBy",14,")",26,"}",54,"]"]],propSources:[hIe],skippedNodes:[0,1,2,153],repeatNodeCount:23,tokenData:":b~RvXY#iYZ#i]^#ipq#iqr#zrs$Xuv&Pvw&^wx&yxy(qyz(vz{({{|)T|})e}!O)j!O!P)u!P!Q+}!Q!R,y!R![-t![!]2^!]!^2k!^!_2p!_!`3]!`!a3e!c!}3x!}#O4j#P#Q4o#Q#R4t#R#S4|#S#T9X#T#o3x#o#p9q#p#q9v#q#r:W#r#s:]$g;'S3x;'S;=`4d<%lO3x~#nS$y~XY#iYZ#i]^#ipq#iU$PP%hQ!_!`$SS$XO!|S~$^W[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y<%lO$X~${O[~~%ORO;'S$X;'S;=`%X;=`O$X~%^X[~OY$XZr$Xrs$vs#O$X#O#P${#P;'S$X;'S;=`%y;=`<%l$X<%lO$X~%|P;=`<%l$X~&UP%l~!_!`&X~&^O#U~~&cR%j~vw&l!_!`&X#Q#R&q~&qO%p~~&vP%o~!_!`&X~'OWd~OY&yZw&ywx'hx#O&y#O#P'm#P;'S&y;'S;=`(k<%lO&y~'mOd~~'pRO;'S&y;'S;=`'y;=`O&y~(OXd~OY&yZw&ywx'hx#O&y#O#P'm#P;'S&y;'S;=`(k;=`<%l&y<%lO&y~(nP;=`<%l&y~(vO^~~({O]~~)QP%Y~!_!`&X~)YQ%f~{|)`!_!`&X~)eO#R~~)jOn~~)oQ%g~}!O)`!_!`&X~)zRZS!O!P*T!Q![*`#R#S+w~*WP!O!P*Z~*`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X3x#X#Y6k#Y#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~6pX%O~{|+T}!O+T!Q![7]!c!}3x#R#S8P#T#o3x$g;'S3x;'S;=`4d<%lO3x~7dXaQ%O~!Q![7]!c!}3x#R#S8P#T#]3x#]#^8k#^#o3x$g;'S3x;'S;=`4d<%lO3x~8UV%O~!Q![7]!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~8rVaQ%O~!Q![3x!c!}3x#R#S3x#T#o3x$g;'S3x;'S;=`4d<%lO3x~9[TO#S9X#S#T$v#T;'S9X;'S;=`9k<%lO9X~9nP;=`<%l9X~9vOj~~9{Q%`~!_!`&X#p#q:R~:WO%q~~:]Oi~~:bO{~",tokenizers:[OIe,1,2,new po("j~RQYZXz{^~^O$|~~aP!P!Qd~iO$}~~",25,181)],topRules:{SourceFile:[0,3]},dynamicPrecedences:{19:1,51:-1,55:2,69:-1,108:-1},specialized:[{term:184,get:e=>mIe[e]||-1}],tokenPrec:5451}),Sj=[Mt("func ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"declaration",type:"keyword"}),Mt("func (${receiver}) ${name}(${params}) ${type} {\n ${}\n}",{label:"func",detail:"method declaration",type:"keyword"}),Mt("var ${name} = ${value}",{label:"var",detail:"declaration",type:"keyword"}),Mt("type ${name} ${type}",{label:"type",detail:"declaration",type:"keyword"}),Mt("const ${name} = ${value}",{label:"const",detail:"declaration",type:"keyword"}),Mt("type ${name} = ${type}",{label:"type",detail:"alias declaration",type:"keyword"}),Mt("for ${init}; ${test}; ${update} {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Mt("for ${i} := range ${value} {\n ${}\n}",{label:"for",detail:"range",type:"keyword"}),Mt(`select { \${} }`,{label:"select",detail:"statement",type:"keyword"}),Mt("case ${}:\n${}",{label:"case",type:"keyword"}),Mt("switch ${} {\n ${}\n}",{label:"switch",detail:"statement",type:"keyword"}),Mt("switch ${}.(${type}) {\n ${}\n}",{label:"switch",detail:"type statement",type:"keyword"}),Mt("if ${} {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Mt(`if \${} { diff --git a/js/model_apply.js b/js/model_apply.js index 8e6fd619..f124a9aa 100644 --- a/js/model_apply.js +++ b/js/model_apply.js @@ -3,28 +3,43 @@ import { app } from "../../scripts/app.js"; import './bizyair_frontend.js' import { hideWidget } from './subassembly/tools.js' +const possibleWidgetNames=[ + "lora_name", + "control_net_name" +] function createSetWidgetCallback(modelType) { return function setWidgetCallback() { - const lora_name = this.widgets.find(widget => widget.name === "lora_name"); - const model_widget = this.widgets.find(widget => widget.name === "model_version_id"); - if (lora_name) { - const node = this; - lora_name.value = lora_name.value || "to choose" - lora_name.mouse = function(e, pos, canvas) { + const targetWidget = this.widgets.find(widget => possibleWidgetNames.includes(widget.name)); + if (targetWidget) { + targetWidget.value = targetWidget.value || "to choose" + targetWidget.mouse = function(e, pos, canvas) { try { if (e.type === "pointerdown" || e.type === "mousedown" || e.type === "click" || e.type === "pointerup") { e.preventDefault(); e.stopPropagation(); + e.widgetClick = true; + + const currentNode = this.node; + + if (!currentNode || !currentNode.widgets) { + console.warn("Node or widgets not available"); + return false; + } if (typeof bizyAirLib !== 'undefined' && typeof bizyAirLib.showModelSelect === 'function') { bizyAirLib.showModelSelect({ modelType: [modelType], selectedBaseModels: [], onApply: (version, model) => { - if (model && model_widget && version) { - lora_name.value = model; - model_widget.value = version.id; - node.setDirtyCanvas(true); + if (!currentNode || !currentNode.widgets) return; + + const currentLora = currentNode.widgets.find(widget => possibleWidgetNames.includes(widget.name)); + const currentModel = currentNode.widgets.find(w => w.name === "model_version_id"); + + if (model && currentModel && version) { + currentLora.value = model; + currentModel.value = version.id; + currentNode.setDirtyCanvas(true); } } }); @@ -37,23 +52,37 @@ function createSetWidgetCallback(modelType) { console.error("Error handling mouse event:", error); } }; - lora_name.options = lora_name.options || {}; - lora_name.options.values = () => []; - lora_name.options.editable = false; - lora_name.clickable = true; - lora_name.processMouse = true; + + targetWidget.node = this; + targetWidget.options = targetWidget.options || {}; + targetWidget.options.values = () => []; + targetWidget.options.editable = false; + targetWidget.clickable = true; + targetWidget.processMouse = true; } } } function setupNodeMouseBehavior(node, modelType) { hideWidget(node, "model_version_id"); - let lastClickTime = 0; - const DEBOUNCE_DELAY = 300; + + if (!node._bizyairState) { + node._bizyairState = { + lastClickTime: 0, + DEBOUNCE_DELAY: 300, + original_onMouseDown: node.onMouseDown + }; + } + node.onMouseDown = function(e, pos, canvas) { - const lora_name = this.widgets.find(widget => widget.name === "lora_name") - const model_widget = this.widgets.find(widget => widget.name === "model_version_id") // hidden - if (pos[1] - lora_name.last_y > 0 && pos[1] - lora_name.last_y < 20) { + if (e.widgetClick) { + return this._bizyairState.original_onMouseDown?.apply(this, arguments); + } + + + + const targetWidget = this.widgets.find(widget => possibleWidgetNames.includes(widget.name)); + if (targetWidget && pos[1] - targetWidget.last_y > 0 && pos[1] - targetWidget.last_y < 20) { const litecontextmenu = document.querySelector('.litegraph.litecontextmenu') if (litecontextmenu) { litecontextmenu.style.display = 'none' @@ -63,24 +92,33 @@ function setupNodeMouseBehavior(node, modelType) { if (e.button !== 0) { return false; } + const currentTime = new Date().getTime(); - if (currentTime - lastClickTime < DEBOUNCE_DELAY) { + if (currentTime - this._bizyairState.lastClickTime < this._bizyairState.DEBOUNCE_DELAY) { return false; } - lastClickTime = currentTime; + this._bizyairState.lastClickTime = currentTime; + + const currentNode = this; bizyAirLib.showModelSelect({ modelType: [modelType], selectedBaseModels: [], onApply: (version, model) => { - if (model && model_widget && lora_name && version) { - lora_name.value = model - model_widget.value = version.id + if (!currentNode || !currentNode.widgets) return; + + const currentLora = currentNode.widgets.find(widget => possibleWidgetNames.includes(widget.name)); + const currentModel = currentNode.widgets.find(w => w.name === "model_version_id"); + + if (model && currentModel && version) { + currentLora.value = model; + currentModel.value = version.id; + currentNode.setDirtyCanvas(true); } } - }) + }); return false; } else { - return original_onMouseDown?.apply(this, arguments); + return this._bizyairState.original_onMouseDown?.apply(this, arguments); } } } @@ -117,7 +155,7 @@ app.registerExtension({ nodeType.prototype.onNodeCreated = function() { try { const result = onNodeCreated?.apply(this, arguments); - createSetWidgetCallback("LoRA").call(this); + createSetWidgetCallback("Controlnet").call(this); return result; } catch (error) { console.error("Error in node creation:", error); @@ -128,7 +166,7 @@ app.registerExtension({ async nodeCreated(node) { if (node?.comfyClass === "BizyAir_ControlNetLoader") { - setupNodeMouseBehavior(node, "LoRA"); + setupNodeMouseBehavior(node, "Controlnet"); } } }) From c6f9351d2c02ce78c25547d9d56480661370f38a Mon Sep 17 00:00:00 2001 From: Yao Chi Date: Fri, 6 Dec 2024 17:18:48 +0800 Subject: [PATCH 5/6] fix shareid inference (#263) * try to fix * fix_infer_share_id (#266) * fix_infer_share_id * refine --------- Co-authored-by: FengWen <109639975+ccssu@users.noreply.github.com> --- nodes.py | 9 +++++++-- src/bizy_server/api_client.py | 29 +++++++++++++++++++++++++++++ src/bizy_server/errno.py | 3 +++ src/bizy_server/server.py | 18 ++++++++++++++++++ 4 files changed, 57 insertions(+), 2 deletions(-) diff --git a/nodes.py b/nodes.py index 5a90b2e7..09fdfd9a 100644 --- a/nodes.py +++ b/nodes.py @@ -956,10 +956,11 @@ def VALIDATE_INPUTS(cls, share_id: str, lora_name: str): def shared_load_lora( self, model, clip, lora_name, strength_model, strength_clip, **kwargs ): + resolved_path = folder_paths.filename_path_mapping["loras"][lora_name] return super().load_lora( model=model, clip=clip, - lora_name=lora_name, + lora_name=resolved_path, strength_model=strength_model, strength_clip=strength_clip, ) @@ -1155,10 +1156,14 @@ def VALIDATE_INPUTS(cls, share_id: str, control_net_name: str): raise ValueError( f"ControlNet {control_net_name} not found in share {share_id} with {outs}" ) + return True def load_controlnet(self, control_net_name, share_id, **kwargs): - return super().load_controlnet(control_net_name=control_net_name, **kwargs) + resolved_path = folder_paths.filename_path_mapping["controlnet"][ + control_net_name + ] + return super().load_controlnet(control_net_name=resolved_path, **kwargs) class CLIPVisionEncode(BizyAirBaseNode): diff --git a/src/bizy_server/api_client.py b/src/bizy_server/api_client.py index 2dff6ed6..098644c8 100644 --- a/src/bizy_server/api_client.py +++ b/src/bizy_server/api_client.py @@ -395,3 +395,32 @@ async def get_download_url( except Exception as e: print(f"\033[31m[BizyAir]\033[0m Fail to get download url: {str(e)}") return None, errnos.GET_DOWNLOAD_URL + + async def get_share_model_files(self, shareId, payload) -> (dict, ErrorNo): + server_url = f"{BIZYAIR_SERVER_ADDRESS}/{shareId}/models/files" + try: + + def callback(ret: dict): + if ret["code"] != errnos.OK.code: + return [], ErrorNo(500, ret["code"], None, f"{ret}") + if not ret or "data" not in ret or ret["data"] is None: + return [], None + + outputs = [ + x["label_path"] for x in ret["data"]["files"] if x["label_path"] + ] + outputs = bizyair.path_utils.filter_files_extensions( + outputs, + extensions=bizyair.path_utils.path_manager.supported_pt_extensions, + ) + return outputs, None + + ret = await bizyair.common.client.async_send_request( + method="GET", url=server_url, params=payload, callback=callback + ) + return ret[0], ret[1] + except Exception as e: + print( + f"\033[31m[BizyAir]\033[0m Fail to list share model files: response {ret} error {str(e)}" + ) + return [], errnos.LIST_SHARE_MODEL_FILE_ERR diff --git a/src/bizy_server/errno.py b/src/bizy_server/errno.py index 5f74aca8..696e4cc5 100644 --- a/src/bizy_server/errno.py +++ b/src/bizy_server/errno.py @@ -78,3 +78,6 @@ class errnos: TOGGLE_USER_LIKE = ErrorNo(500, 500125, None, "Failed to toggle user like") GET_DOWNLOAD_URL = ErrorNo(500, 500126, None, "Failed to get download url") DOWNLOAD_JSON = ErrorNo(500, 500127, None, "Failed to download json") + LIST_SHARE_MODEL_FILE_ERR = ErrorNo( + 500, 500128, None, "Failed to list share model file" + ) diff --git a/src/bizy_server/server.py b/src/bizy_server/server.py index ee4ae9e6..fda6e3bb 100644 --- a/src/bizy_server/server.py +++ b/src/bizy_server/server.py @@ -17,6 +17,7 @@ API_PREFIX = "bizyair" COMMUNITY_API = f"{API_PREFIX}/community" +MODEL_HOST_API = f"{API_PREFIX}/modelhost" USER_API = f"{API_PREFIX}/user" logging.basicConfig(level=logging.DEBUG) @@ -471,6 +472,23 @@ async def get_workflow_json(request): print(f"\033[31m[BizyAir]\033[0m Fail to download JSON: {str(e)}") return ErrResponse(errnos.DOWNLOAD_JSON) + @self.prompt_server.routes.get(f"/{MODEL_HOST_API}" + "/{shareId}/models/files") + async def list_share_model_files(request): + shareId = request.match_info["shareId"] + if not is_string_valid(shareId): + return ErrResponse("INVALID_SHARE_ID") + payload = {} + query_params = ["type", "name", "ext_name"] + for param in query_params: + if param in request.rel_url.query and request.rel_url.query[param]: + payload[param] = request.rel_url.query[param] + model_files, err = await self.api_client.get_share_model_files( + shareId=shareId, payload=payload + ) + if err is not None: + return ErrResponse(err) + return OKResponse(model_files) + async def send_json(self, event, data, sid=None): message = {"type": event, "data": data} From 20cce756db6ecafd411d3395ccc44e2ed3f00985 Mon Sep 17 00:00:00 2001 From: JiuyangWang Date: Mon, 9 Dec 2024 14:07:24 +0800 Subject: [PATCH 6/6] Fix check_sync_status (#261) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * query sort * fix * [feat]add model select component * fix * types * types * [feat]add model select dialog * [feat]show model select * [feat]add test * fix * fix * fix * [feat]fetch data with api * [feat]add parameter to model select component * fix * fix * [feat] optimize my code * like * base model types * [feat]add vditor editor * download * download * workflow * fix * [feat]custom full screen * [feat]custom vditor full screen * fix * disable vditor cache * [feat] fix single page used bugs * [feat]fix * fix * [feat]fix vditor can't fullscreen * fix * [feat]optimize model select component & +remove model & optimize filter * fix * fix * [feat]optimize alert dialog used * [feat]+ apply node model widge * [feat]optimize * [feat]add model detail * fix * [feat]optimize class * [feat]add debounce for node widget dbclick * [feat]optimize model detail * fix * lijing test * [feat]optimize node apply * reformat * [feat] fix editor preview image z-index * [feat]optimize * fix * fix * fix * [feat]optimize scrollbar style & detail apply modelversion & remove model * [feat] new version * fix * interrupt * fix * [feat]optimize * [feat] add edit * interrupt * [feat]optimize expandedModels & model select scrollbar * [feat]optimize filter * fix * [feat]update toast for big brother * [feat]add easy-markdown * interrupt * fix * [feat]add mini markdown editor * [feat]remove unused test code * fix * [feat]optimize scroll model version * fix * [feat]add scroll area for model detail * fix * [feat]codereview for myself * [feat]remove debug console.log * fix * status * fix * [fix]filter class & model detail scrollbar * fix * hash * [feat]optimize style * [feat]optimize tab * hash * [feat]fix filterbar bugs * [feat]replace frontend modelTypes Array * fix * [feat]delete unuse files * [feat]optimize preview md * [feat]release * [feat]optimize scroll * [feat]optimize model detail * fix * fix * [feat]code review * [feat]optimize APIClient requests to aiohttp * [feat]fix cancel update version fetch model list data error * [feat]optimize scroll style & add sekleton for table model * [feat]optimize model version scroll * [feat]remove unused code * fix * [fix]auto merge * [fix]code review * fix * fix * fix * remove useless code * [feat]optimize model list fetch nodata * Dev bbs patch 2 (#229) * Refine cn lora loader node * refine * add exec_info --------- Co-authored-by: Yao Chi * [feat]fix seach keywords no data bug * fix * add upload_id when upload error * fix * [feat]fix model list bug for page * [feat]release core js * fix * fix do_get * [feat] add loadding for model list * [feat]update core js * [feat]remove unused code * remove wrong env var * fix * [fix]tab style * [fix]resolve default css * [feat]relase new core js * [feat]relase * [feat]remove unusedcode * [feat]relase * fix * fix * Add biz_lib_frontend as a submodule(bizyair_frontend repo) (#237) * Add biz_lib_frontend as a submodule(bizyair_frontend repo) * checkou to dev_bbs branch * Dev bbs rename submodule (#238) * rename submoudle to bizyair_frontend * update gitmodules * reformat * add frontend submodule (#239) * use https url * [feat]fix filter bug * fix threading and session problems (#240) * fix * fix model_version_id_missing (#242) * refine * refine * update tow api in upload progress * add poc of js hash calculation * Update prompt_processor.py model_version_ids 修改为int数组 * fix * m1 * m1 * m1 * m1 * remove useless codes * timeout time to 2 seconds * reformat * [feat]optimize * Remove package.json and package-lock.json files as part of project cleanup * Remove unused biz_lib_frontend.js file and refactor bizyair_frontend.js for improved code organization and readability. * fix * fix * Update subproject reference and refactor bizyair_frontend.js to improve code structure and reduce size. * [feat]relase * Fix tags are selected by default (#256) Co-authored-by: Yao Chi * Refactor LoRA and ControlNet widget callbacks for improved error handling and functionality - Introduced a new `createSetWidgetCallback` function to streamline widget event handling for LoRA and ControlNet loaders. - Enhanced error handling during node creation and mouse event processing. - Removed redundant code related to mouse event handling, improving readability and maintainability. - Updated widget properties to ensure proper interaction and prevent default behaviors. This refactor aims to enhance the user experience by ensuring that model selection is more robust and error-free. * fix * fix * [feat]修复低版本无法弹出 * [feat]relase frontend * [feat]release opt z-index * fix * [feat]fix bug & relase frontend * [feat]fix bug & release frontend * fix * fix * add news * “fix” * fix * fix check_sync_status * update ci yml * format code --------- Co-authored-by: dantegarden <761043617@qq.com> Co-authored-by: linjm8780860 Co-authored-by: of-HaiQin <5372604@qq.com> Co-authored-by: Your Name Co-authored-by: YaoChi Co-authored-by: FengWen Co-authored-by: FengWen <109639975+ccssu@users.noreply.github.com> Co-authored-by: 王久扬 --- .github/workflows/workflow-ci.yml | 2 +- src/bizy_server/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/workflow-ci.yml b/.github/workflows/workflow-ci.yml index 6827e043..78a75ad0 100644 --- a/.github/workflows/workflow-ci.yml +++ b/.github/workflows/workflow-ci.yml @@ -58,7 +58,7 @@ jobs: with: repository: comfyanonymous/ComfyUI path: ComfyUI - ref: v0.2.7 + ref: v0.3.7 - name: Checkout plugin repository uses: actions/checkout@v4 diff --git a/src/bizy_server/server.py b/src/bizy_server/server.py index fda6e3bb..7cbe407b 100644 --- a/src/bizy_server/server.py +++ b/src/bizy_server/server.py @@ -527,8 +527,8 @@ def send_sync_error(self, err: ErrorNo, sid=None): ) def check_sync_status(self, bizy_model_id: str, version_ids: list, sid=None): + removed = [] while True: - removed = [] # 从version_ids中移除removed中的version_id version_ids = [ version_id for version_id in version_ids if version_id not in removed