新版本构建

This commit is contained in:
Chen committed 2025-12-05 13:02:58 +08:00
1 parent b2c3ecc5ba
commit 204180b754
15 files changed
+131 -411

No files matched your search

+2 -1
View File
@@ -46,7 +46,8 @@ Knowledge base/
# 构建输出
dist/
.zip
flypic/
flypic.zip
# 测试数据
test-library/
-83
View File
@@ -1,83 +0,0 @@
# FlyPic 更新日志
## [0.2.0] - 2024-12-03
### 🎉 重大更新:代码架构重构
#### ✨ 新增
- **后端三层架构**:Config → Model → Service → Route
- 新增 `backend/src/config/` - 统一配置管理
- 新增 `backend/src/models/` - 数据访问层(Repository Pattern)
- 新增 `backend/src/services/` - 业务逻辑层
- 新增 `backend/src/routes/` - HTTP 接口层(薄层)
- 新增 `backend/src/middleware/` - 统一错误处理和验证
- 新增 `backend/src/utils/` - 工具函数(字段映射、日志)
- **前端模块化架构**:Store → Hooks → API → Components
- 新增 `frontend/src/stores/` - 状态管理拆分(4个独立Store)
- 新增 `frontend/src/api/` - HTTP 客户端(Fetch替代axios)
- 新增 `frontend/src/hooks/` - 自定义 Hooks
- 新增 `frontend/src/constants/` - 前端常量
#### 🔧 改进
- **代码质量**
- 代码行数减少 30%
- 代码重复率降低 50%
- 圈复杂度降低 40%
- **架构优化**
- 清晰的分层架构
- 统一的错误处理
- 规范的命名(全部 camelCase)
- 完整的 JSDoc 注释
- **可维护性**
- 业务逻辑集中在 Service 层
- 路由层只处理 HTTP
- 依赖注入设计
- 易于测试和扩展
#### 🗑️ 移除
- 移除重构过程中的临时文档
- 备份旧的 server.js 为 server-old-backup.js
#### 📝 文档
- 保留 `重构完成报告.md` 作为架构参考
- 保留 `README.md` 和 `飞牛打包部署指南.md`
---
## [1.0.0] - 2024-11-XX
### 初始版本
#### ✨ 功能
- 多素材库管理(添加/删除/切换)
- 智能扫描系统(全量扫描 + 增量同步)
- 缩略图生成(WebP格式,30-50KB)
- SQLite 数据库存储
- 多关键词搜索(AND逻辑)
- Google Photos 风格瀑布流布局
- 亮色/暗色主题切换
- 实时扫描进度显示
- 图片详情面板
#### 🛠️ 技术栈
- 后端:Node.js + Express + Sharp + better-sqlite3 + Socket.IO
- 前端:React + Vite + TailwindCSS + react-photo-view + zustand
---
## 版本说明
### 版本号规则
- 主版本号:重大架构变更
- 次版本号:新功能添加
- 修订号:Bug 修复和小改进
### 支持的格式
jpg, jpeg, png, webp, gif, bmp, tiff
### 端口配置
- 后端:15002
- 前端开发:5173
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "flypic-backend",
"version": "1.0.0",
"version": "1.0.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "flypic-backend",
"version": "1.0.0",
"version": "1.0.5",
"dependencies": {
"better-sqlite3": "^9.2.2",
"chokidar": "^3.6.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "flypic-backend",
"version": "1.0.0",
"version": "1.0.5",
"description": "FlyPic backend server",
"main": "server.js",
"scripts": {
@@ -1 +0,0 @@
.PhotoView-Portal{direction:ltr;height:100%;left:0;overflow:hidden;position:fixed;top:0;touch-action:none;width:100%;z-index:2000}@keyframes PhotoView__rotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes PhotoView__delayIn{0%,50%{opacity:0}to{opacity:1}}.PhotoView__Spinner{animation:PhotoView__delayIn .4s linear both}.PhotoView__Spinner svg{animation:PhotoView__rotate .6s linear infinite}.PhotoView__Photo{cursor:grab;max-width:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.PhotoView__Photo:active{cursor:grabbing}.PhotoView__icon{display:inline-block;left:0;position:absolute;top:0;transform:translate(-50%,-50%)}.PhotoView__PhotoBox,.PhotoView__PhotoWrap{bottom:0;direction:ltr;left:0;position:absolute;right:0;top:0;touch-action:none;width:100%}.PhotoView__PhotoWrap{overflow:hidden;z-index:10}.PhotoView__PhotoBox{transform-origin:left top}@keyframes PhotoView__fade{0%{opacity:0}to{opacity:1}}.PhotoView-Slider__clean .PhotoView-Slider__ArrowLeft,.PhotoView-Slider__clean .PhotoView-Slider__ArrowRight,.PhotoView-Slider__clean .PhotoView-Slider__BannerWrap,.PhotoView-Slider__clean .PhotoView-Slider__Overlay,.PhotoView-Slider__willClose .PhotoView-Slider__BannerWrap:hover{opacity:0}.PhotoView-Slider__Backdrop{background:#000;height:100%;left:0;position:absolute;top:0;transition-property:background-color;width:100%;z-index:-1}.PhotoView-Slider__fadeIn{animation:PhotoView__fade linear both;opacity:0}.PhotoView-Slider__fadeOut{animation:PhotoView__fade linear reverse both;opacity:0}.PhotoView-Slider__BannerWrap{align-items:center;background-color:#00000080;color:#fff;display:flex;height:44px;justify-content:space-between;left:0;position:absolute;top:0;transition:opacity .2s ease-out;width:100%;z-index:20}.PhotoView-Slider__BannerWrap:hover{opacity:1}.PhotoView-Slider__Counter{font-size:14px;opacity:.75;padding:0 10px}.PhotoView-Slider__BannerRight{align-items:center;display:flex;height:100%}.PhotoView-Slider__toolbarIcon{fill:#fff;box-sizing:border-box;cursor:pointer;opacity:.75;padding:10px;transition:opacity .2s linear}.PhotoView-Slider__toolbarIcon:hover{opacity:1}.PhotoView-Slider__ArrowLeft,.PhotoView-Slider__ArrowRight{align-items:center;bottom:0;cursor:pointer;display:flex;height:100px;justify-content:center;margin:auto;opacity:.75;position:absolute;top:0;transition:opacity .2s linear;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:70px;z-index:20}.PhotoView-Slider__ArrowLeft:hover,.PhotoView-Slider__ArrowRight:hover{opacity:1}.PhotoView-Slider__ArrowLeft svg,.PhotoView-Slider__ArrowRight svg{fill:#fff;background:#0000004d;box-sizing:content-box;height:24px;padding:10px;width:24px}.PhotoView-Slider__ArrowLeft{left:0}.PhotoView-Slider__ArrowRight{right:0}*,: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-painLine truncated
@@ -1,226 +0,0 @@
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var us=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Il(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _d={exports:{}},_o={},kd={exports:{}},we={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ns=Symbol.for("react.element"),sp=Symbol.for("react.portal"),op=Symbol.for("react.fragment"),ap=Symbol.for("react.strict_mode"),lp=Symbol.for("react.profiler"),up=Symbol.for("react.provider"),cp=Symbol.for("react.context"),dp=Symbol.for("react.forward_ref"),fp=Symbol.for("react.suspense"),hp=Symbol.for("react.memo"),pp=Symbol.for("react.lazy"),Ou=Symbol.iterator;function mp(e){return e===null||typeof e!="object"?null:(e=Ou&&e[Ou]||e["@@iterator"],typeof e=="function"?e:null)}var Sd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bd=Object.assign,Cd={};function ui(e,t,r){this.props=e,this.context=t,this.refs=Cd,this.updater=r||Sd}ui.prototype.isReactComponent={};ui.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ui.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ed(){}Ed.prototype=ui.prototype;function jl(e,t,r){this.props=e,this.context=t,this.refs=Cd,this.updater=r||Sd}var Ll=jl.prototype=new Ed;Ll.constructor=jl;bd(Ll,ui.prototype);Ll.isPureReactComponent=!0;var Au=Array.isArray,Nd=Object.prototype.hasOwnProperty,Ol={current:null},Rd={key:!0,ref:!0,__self:!0,__source:!0};function Td(e,t,r){var n,i={},s=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Nd.call(t,n)&&!Rd.hasOwnProperty(n)&&(i[n]=t[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1<a){for(var l=Array(a),h=0;h<a;h++)l[h]=arguments[h+2];i.children=l}if(e&&e.defaultProps)for(n in a=e.defaultProps,a)i[n]===void 0&&(i[n]=a[n]);return{$$typeof:ns,type:e,key:s,ref:o,props:i,_owner:Ol.current}}function gp(e,t){return{$$typeof:ns,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Al(e){return typeof e=="object"&&e!==null&&e.$$typeof===ns}function yp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Pu=/\/+/g;function Wo(e,t){return typeof e=="object"&&e!==null&&e.key!=null?yp(""+e.key):t.toString(36)}function Ls(e,t,r,n,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ns:case sp:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+Wo(o,0):n,Au(i)?(r="",e!=null&&(r=e.replace(Pu,"$&/")+"/"),Ls(i,t,r,"",function(h){return h})):i!=null&&(Al(i)&&(i=gp(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Pu,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Au(e))for(var a=0;a<e.length;a++){s=e[a];var l=n+Wo(s,a);o+=Ls(s,t,r,l,i)}else if(l=mp(e),typeof l=="function")for(e=l.call(e),a=0;!(s=e.next()).done;)s=s.value,l=n+Wo(s,a++),o+=Ls(s,t,r,l,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function cs(e,t,r){if(e==null)return e;var n=[],i=0;return Ls(e,n,"","",function(s){return t.call(r,s,i++)}),n}function vp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var lt={current:null},Os={transition:null},wp={ReactCurrentDispatcher:lt,ReactCurrentBatchConfig:Os,ReactCurrentOwner:Ol};function zd(){throw Error("act(...) is not supported in production builds of React.")}we.Children={map:cs,forEach:function(e,t,r){cs(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return cs(e,function(){t++}),t},toArray:function(e){return cs(e,function(t){return t})||[]},only:function(e){if(!Al(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};we.Component=ui;we.Fragment=op;we.Profiler=lp;we.PureComponent=jl;we.StrictMode=ap;we.Suspense=fp;we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wp;we.act=zd;we.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=bd({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Ol.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)Nd.call(t,l)&&!Rd.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){a=Array(l);for(var h=0;h<l;h++)a[h]=arguments[h+2];n.children=a}return{$$typeof:ns,type:e.type,key:i,ref:s,props:n,_owner:o}};we.createContext=function(e){return e={$$typeof:cp,_currentValue:e,_currentValue2:e,_threadCountLine truncated
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var xp=G,_p=Symbol.for("react.element"),kp=Symbol.for("react.fragment"),Sp=Object.prototype.hasOwnProperty,bp=xp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Cp={key:!0,ref:!0,__self:!0,__source:!0};function Id(e,t,r){var n,i={},s=null,o=null;r!==void 0&&(s=""+r),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)Sp.call(t,n)&&!Cp.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:_p,type:e,key:s,ref:o,props:i,_owner:bp.current}}_o.Fragment=kp;_o.jsx=Id;_o.jsxs=Id;_d.exports=_o;var k=_d.exports,ba={},jd={exports:{}},kt={},Ld={exports:{}},Od={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(Y,$){var J=Y.length;Y.push($);e:for(;0<J;){var M=J-1>>>1,A=Y[M];if(0<i(A,$))Y[M]=$,Y[J]=A,J=M;else break e}}function r(Y){return Y.length===0?null:Y[0]}function n(Y){if(Y.length===0)return null;var $=Y[0],J=Y.pop();if(J!==$){Y[0]=J;e:for(var M=0,A=Y.length,le=A>>>1;M<le;){var B=2*(M+1)-1,N=Y[B],V=B+1,j=Y[V];if(0>i(N,J))V<A&&0>i(j,N)?(Y[M]=j,Y[V]=J,M=V):(Y[M]=N,Y[B]=J,M=B);else if(V<A&&0>i(j,J))Y[M]=j,Y[V]=J,M=V;else break e}}return $}function i(Y,$){var J=Y.sortIndex-$.sortIndex;return J!==0?J:Y.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],h=[],w=1,y=null,v=3,p=!1,x=!1,u=!1,_=typeof setTimeout=="function"?setTimeout:null,c=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(Y){for(var $=r(h);$!==null;){if($.callback===null)n(h);else if($.startTime<=Y)n(h),$.sortIndex=$.expirationTime,t(l,$);else break;$=r(h)}}function S(Y){if(u=!1,g(Y),!x)if(r(l)!==null)x=!0,oe(b);else{var $=r(h);$!==null&&Q(S,$.startTime-Y)}}function b(Y,$){x=!1,u&&(u=!1,c(O),O=-1),p=!0;var J=v;try{for(g($),y=r(l);y!==null&&(!(y.expirationTime>$)||Y&&!re());){var M=y.callback;if(typeof M=="function"){y.callback=null,v=y.priorityLevel;var A=M(y.expirationTime<=$);$=e.unstable_now(),typeof A=="function"?y.callback=A:y===r(l)&&n(l),g($)}else n(l);y=r(l)}if(y!==null)var le=!0;else{var B=r(h);B!==null&&Q(S,B.startTime-$),le=!1}return le}finally{y=null,v=J,p=!1}}var R=!1,z=null,O=-1,I=5,P=-1;function re(){return!(e.unstable_now()-P<I)}function T(){if(z!==null){var Y=e.unstable_now();P=Y;var $=!0;try{$=z(!0,Y)}finally{$?H():(R=!1,z=null)}}else R=!1}var H;if(typeof d=="function")H=function(){d(T)};else if(typeof MessageChannel<"u"){var m=new MessageChannel,K=m.port2;m.port1.onmessage=T,H=function(){K.postMessage(null)}}else H=function(){_(T,0)};function oe(Y){z=Y,R||(R=!0,H())}function Q(Y,$){O=_(function(){Y(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Y){Y.callback=null},e.unstable_continueExecution=function(){x||p||(x=!0,oe(b))},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(Y){switch(v){case 1:case 2:case 3:var $=3;break;default:$=v}var J=v;v=$;try{return Y()}finally{v=J}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Y,$){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var J=v;v=Y;try{return $()}finally{v=J}},e.unstable_scheduleCallback=function(Y,$,J){var M=e.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?M+J:M):J=M,Y){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=J+A,Y={id:w++,callback:$,priorityLevel:Y,startTime:J,expirationTime:A,sortIndex:-1},J>M?(Y.sortIndex=J,t(h,Y),r(l)===null&&Y===r(h)&&(u?(c(O),O=-1):u=!0,Q(S,J-M))):(Y.sortIndex=A,t(l,Y),x||p||(x=!0,oe(b))),Y},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(Y){var $=v;return function(){var J=v;v=$;try{return Y.apply(this,arguments)}finally{v=J}}}})(Od);Ld.exports=Od;var Ep=Ld.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Np=G,_t=Ep;function se(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ad=new Set,Fi={};function kn(e,t){ei(e,t),ei(e+"Capture",t)}function ei(e,t){for(Fi[e]=t,e=0;e<t.length;e++)Ad.add(t[e])}var br=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ca=Object.prototype.hasOwnProperty,Rp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Mu={},Du={};function Tp(e){return Ca.call(Du,e)?!0:Ca.call(Mu,e)?!1:Rp.test(e)?Du[e]=!0:(Mu[e]=!0,!1)}function zp(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ip(e,t,r,n){if(t===null||typeof t>"u"||zp(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ut(e,t,r,n,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new ut(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new ut(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new ut(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new ut(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xe[e]=new ut(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new ut(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new ut(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new ut(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new ut(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pl=/[\-:]([a-z])/g;function Ml(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Pl,Ml);Xe[t]=new ut(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Pl,Ml);Xe[t]=new ut(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Pl,Ml);Xe[t]=new ut(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new ut(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new ut("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new ut(e,1,!1,e.toLowerCase(),null,!0,!0)});function Dl(e,t,r,n){var i=Xe.hasOwnProperty(t)?Xe[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!== Line truncated
`+Vo+e}var Ho=!1;function qo(e,t){if(!e||Ho)return"";Ho=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(h){var n=h}Reflect.construct(e,[],t)}else{try{t.call()}catch(h){n=h}e.call(t.prototype)}else{try{throw Error()}catch(h){n=h}e()}}catch(h){if(h&&n&&typeof h.stack=="string"){for(var i=h.stack.split(`
`),s=n.stack.split(`
`),o=i.length-1,a=s.length-1;1<=o&&0<=a&&i[o]!==s[a];)a--;for(;1<=o&&0<=a;o--,a--)if(i[o]!==s[a]){if(o!==1||a!==1)do if(o--,a--,0>a||i[o]!==s[a]){var l=`
`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=a);break}}}finally{Ho=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?bi(e):""}function jp(e){switch(e.tag){case 5:return bi(e.type);case 16:return bi("Lazy");case 13:return bi("Suspense");case 19:return bi("SuspenseList");case 0:case 2:case 15:return e=qo(e.type,!1),e;case 11:return e=qo(e.type.render,!1),e;case 1:return e=qo(e.type,!0),e;default:return""}}function Ta(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case An:return"Fragment";case On:return"Portal";case Ea:return"Profiler";case Fl:return"StrictMode";case Na:return"Suspense";case Ra:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Md:return(e.displayName||"Context")+".Consumer";case Pd:return(e._context.displayName||"Context")+".Provider";case Bl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ul:return t=e.displayName||null,t!==null?t:Ta(e.type)||"Memo";case Pr:t=e._payload,e=e._init;try{return Ta(e(t))}catch{}}return null}function Lp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ta(t);case 8:return t===Fl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Gr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Op(e){var t=Fd(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fs(e){e._valueTracker||(e._valueTracker=Op(e))}function Bd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Fd(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Zs(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function za(e,t){var r=t.checked;return Me({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Bu(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Gr(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Ud(e,t){t=t.checked,t!=null&&Dl(e,"checked",t,!1)}function Ia(e,t){Ud(e,t);var r=Gr(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ja(e,t.type,r):t.hasOwnProperty("defaultValue")&&ja(e,t.type,Gr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Uu(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function ja(e,t,r){(t!=="number"||Zs(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ci=Array.isArray;function Kn(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+Gr(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function La(e,t){if(t.dan Line truncated
`).replace(Vm,"")}function xs(e,t,r){if(t=cc(t),cc(e)!==t&&r)throw Error(se(425))}function no(){}var qa=null,Ka=null;function Ya(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Za=typeof setTimeout=="function"?setTimeout:void 0,Hm=typeof clearTimeout=="function"?clearTimeout:void 0,dc=typeof Promise=="function"?Promise:void 0,qm=typeof queueMicrotask=="function"?queueMicrotask:typeof dc<"u"?function(e){return dc.resolve(null).then(e).catch(Km)}:Za;function Km(e){setTimeout(function(){throw e})}function sa(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),Vi(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);Vi(t)}function qr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function fc(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var di=Math.random().toString(36).slice(2),tr="__reactFiber$"+di,Zi="__reactProps$"+di,Cr="__reactContainer$"+di,Xa="__reactEvents$"+di,Ym="__reactListeners$"+di,Zm="__reactHandles$"+di;function fn(e){var t=e[tr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Cr]||r[tr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=fc(e);e!==null;){if(r=e[tr])return r;e=fc(e)}return t}e=r,r=e.parentNode}return null}function os(e){return e=e[tr]||e[Cr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Fn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(se(33))}function Eo(e){return e[Zi]||null}var Qa=[],Bn=-1;function tn(e){return{current:e}}function je(e){0>Bn||(e.current=Qa[Bn],Qa[Bn]=null,Bn--)}function Ne(e,t){Bn++,Qa[Bn]=e.current,e.current=t}var Jr={},rt=tn(Jr),ft=tn(!1),yn=Jr;function ti(e,t){var r=e.type.contextTypes;if(!r)return Jr;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=t[s];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ht(e){return e=e.childContextTypes,e!=null}function io(){je(ft),je(rt)}function hc(e,t,r){if(rt.current!==Jr)throw Error(se(168));Ne(rt,t),Ne(ft,r)}function zf(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(se(108,Lp(e)||"Unknown",i));return Me({},r,n)}function so(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jr,yn=rt.current,Ne(rt,e),Ne(ft,ft.current),!0}function pc(e,t,r){var n=e.stateNode;if(!n)throw Error(se(169));r?(e=zf(e,t,yn),n.__reactInternalMemoizedMergedChildContext=e,je(ft),je(rt),Ne(rt,e)):je(ft),Ne(ft,r)}var wr=null,No=!1,oa=!1;function If(e){wr===null?wr=[e]:wr.push(e)}function Xm(e){No=!0,If(e)}function rn(){if(!oa&&wr!==null){oa=!0;var e=0,t=Ce;try{var r=wr;for(Ce=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}wr=null,No=!1}catch(i){throw wr!==null&&(wr=wr.slice(e+1)),tf(Wl,rn),i}finally{Ce=t,oa=!1}}return null}var Un=[],$n=0,oo=null,ao=0,Tt=[],zt=0,vn=null,_r=1,kr="";function ln(e,t){Un[$n++]=ao,Un[$n++]=oo,oo=e,ao=t}function jf(e,t,r){Tt[zt++]=_r,Tt[zt++]=kr,Tt[zt++]=vn,vn=e;var n=_r;e=kr;var i=32-Vt(n)-1;n&=~(1<<i),r+=1;var s=32-Vt(t)+i;if(30<s){var o=i-i%5;s=(n&(1<<o)-1).toString(32),n>>=o,i-=o,_r=1<<32-Vt(t)+i|r<<i|n,kr=s+e}else _r=1<<s|r<<i|n,kr=e}function Gl(e){e.return!==null&&(ln(e,1),jf(e,1,0))}function Jl(e){for(;e===oo;)oo=Un[--$n],Un[$n]=null,ao=Un[--$n],Un[$n]=null;for(;e===vn;)vn=Tt[--zt],Tt[zt]=null,kr=Tt[--zt],Tt[zt]=null,_r=Tt[--zt],Tt[zt]=null}var xt=null,wt=null,Oe=!1,Wt=null;function Lf(e,t){var r=Lt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function mc(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,xt=e,wt=qr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xt=e,wt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=vn!==null?{id:_r,overflow:kr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Lt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,xt=e,wt=null,!0):!1;default:return!1}}function Ga(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Ja(e){if(Oe){var t=wt;if(t){var r=t;if(!mc(e,t)){if(Ga(e))throw Error(se(418));t=qr(r.nextSibling);var n=xt;t&&mc(e,t)?Lf(n,r):(e.flags=e.flags&-4097|2,Oe=!1,xt=e)}}else{if(Ga(e))throw Error(se(418));e.flags=e.flags&-4097|2,Oe=!1,xt=e}}}function gc(e){ Line truncated
Error generating stack: `+s.message+`
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function da(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function nl(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var s0=typeof WeakMap=="function"?WeakMap:Map;function oh(e,t,r){r=Sr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){go||(go=!0,hl=n),nl(e,t)},r}function ah(e,t,r){r=Sr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){nl(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){nl(e,t),typeof n!="function"&&(Yr===null?Yr=new Set([this]):Yr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function bc(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new s0;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=w0.bind(null,e,t,r),t.then(e,e))}function Cc(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ec(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Sr(-1,1),t.tag=2,Kr(r,t,1))),r.lanes|=1),e)}var o0=Rr.ReactCurrentOwner,dt=!1;function ot(e,t,r,n){t.child=e===null?Pf(t,null,r,n):ni(t,e.child,r,n)}function Nc(e,t,r,n,i){r=r.render;var s=t.ref;return Qn(t,i),n=cu(e,t,r,n,s,i),r=du(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Nr(e,t,i)):(Oe&&r&&Gl(t),t.flags|=1,ot(e,t,n,i),t.child)}function Rc(e,t,r,n,i){if(e===null){var s=r.type;return typeof s=="function"&&!_u(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=s,lh(e,t,s,n,i)):(e=Vs(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:qi,r(o,n)&&e.ref===t.ref)return Nr(e,t,i)}return t.flags|=1,e=Xr(s,n),e.ref=t.ref,e.return=t,t.child=e}function lh(e,t,r,n,i){if(e!==null){var s=e.memoizedProps;if(qi(s,n)&&e.ref===t.ref)if(dt=!1,t.pendingProps=n=s,(e.lanes&i)!==0)e.flags&131072&&(dt=!0);else return t.lanes=e.lanes,Nr(e,t,i)}return il(e,t,r,n,i)}function uh(e,t,r){var n=t.pendingProps,i=n.children,s=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ne(Hn,vt),vt|=r;else{if(!(r&1073741824))return e=s!==null?s.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ne(Hn,vt),vt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,Ne(Hn,vt),vt|=n}else s!==null?(n=s.baseLanes|r,t.memoizedState=null):n=r,Ne(Hn,vt),vt|=n;return ot(e,t,i,r),t.child}function ch(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function il(e,t,r,n,i){var s=ht(r)?yn:rt.current;return s=ti(t,s),Qn(t,i),r=cu(e,t,r,n,s,i),n=du(),e!==null&&!dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Nr(e,t,i)):(Oe&&n&&Gl(t),t.flags|=1,ot(e,t,r,i),t.child)}function Tc(e,t,r,n,i){if(ht(r)){var s=!0;so(t)}else s=!1;if(Qn(t,i),t.stateNode===null)Us(e,t),sh(t,r,n),rl(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,a=t.memoizedProps;o.props=a;var l=o.context,h=r.contextType;typeof h=="object"&&h!==null?h=At(h):(h=ht(r)?yn:rt.current,h=ti(t,h));var w=r.getDerivedStateFromProps,y=typeof w=="function"||typeof o.getSnapshotBeforeUpdate=="function";y||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==h)&&Sc(t,o,n,h),Mr=!1;var v=t.memoizedState;o.state=v,co(t,n,o,i),l=t.memoizedState,a!==n||v!==l||ft.current||Mr?(typeof w=="function"&&(tl(t,r,w,n),l=t.memoizedState),(a=Mr||kc(t,r,a,n,v,l,h))?(y||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=h,n=a):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,Df(e,t),a=t.memoizedProps,h=t.type===t.elementType?a:Bt(t.type,a),o.props=h,y=t.pendingProps,v=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=At(l):(l=ht(r)?yn:rt.current,l=ti(t,l));var p=r.getDerivedStateFromProps;(w=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==y||v!==l)&&Sc(t,o,n,l),Mr=!1,v=t.memoizedState,o.state=v,co(t,n,o,i);var x=t.memoizedS Line truncated
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ai=G;function Cg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Eg=typeof Object.is=="function"?Object.is:Cg,Ng=ai.useState,Rg=ai.useEffect,Tg=ai.useLayoutEffect,zg=ai.useDebugValue;function Ig(e,t){var r=t(),n=Ng({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return Tg(function(){i.value=r,i.getSnapshot=t,va(i)&&s({inst:i})},[e,r,t]),Rg(function(){return va(i)&&s({inst:i}),e(function(){va(i)&&s({inst:i})})},[e]),zg(r),r}function va(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Eg(e,r)}catch{return!0}}function jg(e,t){return t()}var Lg=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?jg:Ig;Qh.useSyncExternalStore=ai.useSyncExternalStore!==void 0?ai.useSyncExternalStore:Lg;Xh.exports=Qh;var Og=Xh.exports;/**
* @license React
* use-sync-external-store-shim/with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Fo=G,Ag=Og;function Pg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mg=typeof Object.is=="function"?Object.is:Pg,Dg=Ag.useSyncExternalStore,Fg=Fo.useRef,Bg=Fo.useEffect,Ug=Fo.useMemo,$g=Fo.useDebugValue;Zh.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var s=Fg(null);if(s.current===null){var o={hasValue:!1,value:null};s.current=o}else o=s.current;s=Ug(function(){function l(p){if(!h){if(h=!0,w=p,p=n(p),i!==void 0&&o.hasValue){var x=o.value;if(i(x,p))return y=x}return y=p}if(x=y,Mg(w,p))return x;var u=n(p);return i!==void 0&&i(x,u)?(w=p,x):(w=p,y=u)}var h=!1,w,y,v=r===void 0?null:r;return[function(){return l(t())},v===null?void 0:function(){return l(v())}]},[t,r,n,i]);var a=Dg(e,s[0],s[1]);return Bg(function(){o.hasValue=!0,o.value=a},[a]),$g(a),a};Yh.exports=Zh;var Wg=Yh.exports;const Vg=Il(Wg),Gh={},{useDebugValue:Hg}=ye,{useSyncExternalStoreWithSelector:qg}=Vg;let Zc=!1;const Kg=e=>e;function Yg(e,t=Kg,r){(Gh?"production":void 0)!=="production"&&r&&!Zc&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Zc=!0);const n=qg(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,r);return Hg(n),n}const Xc=e=>{(Gh?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?bg(e):e,r=(n,i)=>Yg(t,n,i);return Object.assign(r,t),r},Bo=e=>e?Xc(e):Xc,yt=Bo(e=>({theme:"light",mobileView:"main",thumbnailHeight:200,isResizingPanels:!1,resizingSide:null,setTheme:t=>e({theme:t}),toggleTheme:()=>e(t=>({theme:t.theme==="light"?"dark":"light"})),setMobileView:t=>e({mobileView:t}),setThumbnailHeight:t=>e({thumbnailHeight:t}),setIsResizingPanels:t=>e({isResizingPanels:t}),setResizingSide:t=>e({resizingSide:t})})),rr=Bo((e,t)=>({libraries:[],currentLibraryId:null,setLibraries:r=>e({libraries:r}),setCurrentLibrary:r=>e({currentLibraryId:r}),addLibrary:r=>e(n=>({libraries:[...n.libraries,r]})),removeLibrary:r=>e(n=>({libraries:n.libraries.filter(i=>i.id!==r),currentLibraryId:n.currentLibraryId===r?null:n.currentLibraryId})),updateLibrary:(r,n)=>e(i=>({libraries:i.libraries.map(s=>s.id===r?{...s,...n}:s)})),getCurrentLibrary:()=>{const{libraries:r,currentLibraryId:n}=t();return r.find(i=>i.id===n)}})),_e=Bo((e,t)=>({images:[],selectedImage:null,selectedImages:[],totalImageCount:0,folders:[],selectedFolder:null,searchKeywords:"",filters:{formats:[],minSize:null,maxSize:null,startDate:null,endDate:null},imageLoadingState:{isLoading:!1,loadedCount:0,totalCount:0,hasMore:!1},setImages:r=>e({images:r}),appendImages:r=>e(n=>({images:[...n.images,...r]})),clearImages:()=>e({images:[]}),setSelectedImage:r=>e({selectedImage:r}),setSelectedImages:r=>e({selectedImages:r}),toggleImageSelection:r=>e(n=>({selectedImages:n.selectedImages.some(s=>s.path===r.path)?n.selectedImages.filter(s=>s.path!==r.path):[...n.selectedImages,r]})),clearSelection:()=>e({selectedImages:[],selectedImage:null}),setFolders:r=>e({folders:r}),setSelectedFolder:r=>e({selectedFolder:r}),setSearchKeywords:r=>e({searchKeywords:r}),setFilters:r=>e(n=>({filters:{...n.filters,...r}})),resetFilters:()=>e({searchKeywords:"",filters:{formats:[],minSize:null,maxSize:null,startDate:null,endDate:null}}),setTotalImageCount:r=>e({totalImageCount:r}),setImageLoadingState:r=>e(n=>({imageLoadingState:{...n.imageLoadingState,...r}}))})),cn=Bo((e,t)=>({scanProgress:null,scanStartTime:null,setScanProgress:r=>e(n=>r&&!n.scanStartTime&&r.current>0?{scanProgress:r,scanStartTime:Date.now()}:r?{scanProgress:r}:{scanProgress:null,scanStartTime:null}),clearScanProgress:()=>e({scanProgress:null,scanStartTime:null}),getEstimatedTimeLeft:()=>{const{scanProgress:r,scanStartTime:n}=t();if(!r||!n||r.current===0)return null;const i=Date.now()-n,s=r.current/i,o=r.total-r.current;return Math.ceil(o/s/1e3)},isScanning:()=>{const{scanProgress:r}=t();return r&&r.status!=="preparing"}})),Zg="/api";class wa extends Error{constructor(t,r,n){super(t),this.name="APIError",this.status=r,this.data=n}}async function Uo(e,t={}){var n;const r={headers:{"Content-Type":"application/json",...t.headers},...t};try{const i=await fetch(`${Zg}${e}`,r),s=await i.json();if(!i.ok)throw new wa(((n=s.error)==null?void 0:n.message)||s.error||"Request failed",i.status,s);return s.data!==void 0?s.data:s}catch(i){throw i instanceof wa?i:new wa(i.message||"Network error",0,null)}}function Xg(e,t={}){return Uo(e,{method:"GET",...t})}function Qg(e,t,r={}){return Uo(e,{method:"POST",body:JSON.stringify(t),...r})}function Gg(e,t,r={}){return Uo(e,{method:"PUT",body:JSON.stringify(t),...r})}function Jg(e,t={}){return Uo(e,{method:"DELETE",...t})}const Qe={get:Xg,post:Qg,put:Gg,delete:Jg};async function ey(){return Qe.get("/library")}async function ty(e,t){return Line truncated
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Sy={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const by=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Re=(e,t)=>{const r=G.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:a="",children:l,...h},w)=>G.createElement("svg",{ref:w,...Sy,width:i,height:i,stroke:n,strokeWidth:o?Number(s)*24/Number(i):s,className:["lucide",`lucide-${by(e)}`,a].join(" "),...h},[...t.map(([y,v])=>G.createElement(y,v)),...Array.isArray(l)?l:[l]]));return r.displayName=`${e}`,r};/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Cy=Re("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ey=Re("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qc=Re("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ny=Re("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ry=Re("ChevronsDown",[["path",{d:"m7 6 5 5 5-5",key:"1lc07p"}],["path",{d:"m7 13 5 5 5-5",key:"1d48rs"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ty=Re("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zy=Re("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Iy=Re("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const jy=Re("ExternalLink",[["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}],["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["line",{x1:"10",x2:"21",y1:"14",y2:"3",key:"18c3s4"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ly=Re("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Oy=Re("File",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gc=Re("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ay=Re("FolderDown",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"m15 13-3 3-3-3",key:"6j2sf0"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Di=Re("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Py=Re("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const My=Re("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Jc=Re("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Dy=Re("Music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fy=Re("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const By=Re("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ed=Re("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bl=Re("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const td=Re("Sliders",[["line",{x1:"4",x2:"4",y1:"21",y2:"14",key:"1p332r"}],["line",{x1:"4",x2:"4",y1:"10",y2:"3",key:"gb41h5"}],["line",{x1:"12",x2:"12",y1:"21",y2:"12",key:"hf2csr"}],["line",{x1:"12",x2:"12",y1:"8",y2:"3",key:"1kfi7u"}],["line",{x1:"20",x2:"20",y1:"21",y2:"16",key:"1lhrwl"}],["line",{x1:"20",x2:"20",y1:"12",y2:"3",key:"16vvfq"}],["line",{x1:"2",x2:"6",y1:"14",y2:"14",key:"1uebub"}],["line",{x1:"10",x2:"14",y1:"8",y2:"8",key:"1yglbp"}],["line",{x1:"18",x2:"22",y1:"16",y2:"16",key:"1jxqpz"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rd=Re("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Uy=Re("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
* @license lucide-react v0.300.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ep=Re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),rs={LIBRARY:"library",FOLDER:"folder",IMAGES:"images"};let nd=0;const $y=()=>(nd+=1,`req_${Date.now()}_${nd}`);class Wy{constructor(){this.activeRequests=new Map,this.requestContexts=new Map}createRequest(t){const r=$y(),n=new AbortController,i={id:r,type:t,createdAt:Date.now(),abortController:n,signal:n.signal,status:"pending",isActive:!0,cancel:()=>{if(i.isActive){i.isActive=!1,i.status="cancelled",n.abort(),this.requestContexts.delete(r);const s=this.activeRequests.get(t);s&&s.delete(r)}}};return this.requestContexts.set(r,i),this.activeRequests.has(t)||this.activeRequests.set(t,new Map),this.activeRequests.get(t).set(r,i),i}cancelAll(t){const r=this.activeRequests.get(t);if(r){for(const n of r.values())n.cancel();r.clear()}}cancelAllRequests(){for(const t of Object.values(rs))this.cancelAll(t)}isValid(t){const r=this.requestContexts.get(t);return r?r.isActive:!1}complete(t){const r=this.requestContexts.get(t);if(r&&r.isActive){r.status="completed",r.isActive=!1,this.requestContexts.delete(t);const n=this.activeRequests.get(r.type);n&&n.delete(t)}}error(t){const r=this.requestContexts.get(t);if(r&&r.isActive){r.status="error",r.isActive=!1,this.requestContexts.delete(t);const n=this.activeRequests.get(r.type);n&&n.delete(t)}}getActiveCount(t){const r=this.activeRequests.get(t);return r?r.size:0}hasActiveRequests(t){return this.getActiveCount(t)>0}}const jt=new Wy;function Cl(){jt.cancelAll(rs.IMAGES)}function Vy(e){e&&setTimeout(()=>{},300)}const Hy=async e=>{try{const t=await li.getStatus(e);return t.data||t}catch{return null}};function id(){const{libraries:e,currentLibraryId:t,setCurrentLibrary:r,addLibrary:n,removeLibrary:i}=rr(),{folders:s,selectedFolder:o,totalImageCount:a,setSelectedFolder:l}=_e(),{isScanning:h}=cn(),[w,y]=G.useState(!1),[v,p]=G.useState(""),[x,u]=G.useState(""),[_,c]=G.useState(""),[d,g]=G.useState(""),[S,b]=G.useState(new Set),[R,z]=G.useState(!1),[O,I]=G.useState(!1),P=G.useRef(null),re=B=>{g(B),P.current&&clearTimeout(P.current),P.current=setTimeout(()=>{c(B)},300)};G.useEffect(()=>()=>{P.current&&clearTimeout(P.current)},[]);const T=async()=>{var B,N;if(h()){alert("扫描进行中,请稍后再试或暂停扫描");return}if(!v.trim()){alert("请输入素材库名称");return}if(!x.trim()){alert("请输入文件夹路径");return}z(!0);try{console.log("📝 添加素材库...");const V=await xr.add(v.trim(),x.trim()),j=V.id,W=V.hasExistingIndex;if(n({id:j,name:v.trim(),path:x.trim()}),p(""),u(""),y(!1),z(!1),console.log("🔄 切换到新素材库..."),await xr.setCurrent(j),r(j),l(null),_e.getState().setImages([]),_e.getState().setFolders([]),_e.getState().setSelectedImage(null),_e.getState().setTotalImageCount(0),cn.getState().setScanProgress({libraryId:j,current:0,total:0,percent:0,status:"preparing"}),W){console.log("检测到已有索引,先加载现有数据...");try{const[q,X]=await Promise.all([Le.getFolders(j),Le.getCount(j)]);_e.getState().setFolders(q.folders),_e.getState().setTotalImageCount(X.count),console.log("✅ 已加载现有数据")}catch(q){console.warn("⚠️ 加载现有数据失败:",q)}}console.log("🔍 开始异步扫描..."),W?(console.log("执行增量同步,检测变化..."),li.sync(j,!1)):(console.log("首次添加,执行全量扫描..."),li.fullScan(j,!1)),console.log("✅ 扫描已启动,请等待进度显示...")}catch(V){console.error("❌ Error adding library:",V);let j=V.message||"未知错误";(N=(B=V.response)==null?void 0:B.data)!=null&&N.message&&(j=V.response.data.message),j.includes("无法访问")||j.includes("权限")||j.includes("数据共享")?alert(`⚠️ 文件夹权限不足
`+j+`
操作步骤:
1. 应用中心找到 FlyPic 应用
2. 点击 应用设置
3. 将该文件夹添加到 FlyPic 应用的读写权限`):alert("添加素材库失败: "+j),cn.getState().setScanProgress(null),z(!1)}},H=async B=>{if(B!==t){if(h()){alert("扫描进行中,请稍后再试或暂停扫描");return}I(!0);try{Cl(),jt.cancelAllRequests(),cn.getState().setScanProgress(null),_e.getState().setSelectedImage(null),_e.getState().setImages([]),_e.getState().setFolders([]),_e.getState().setImageLoadingState({isLoading:!1,loadedCount:0,totalCount:0}),l(null),await xr.setCurrent(B);const[N,V]=await Promise.all([Le.getFolders(B),Le.getCount(B)]);_e.getState().setFolders(N.folders),_e.getState().setTotalImageCount(V.count),r(B),Hy(B).then(j=>{j&&j.status==="scanning"&&cn.getState().setScanProgress(j.progress)}).catch(()=>{})}catch(N){console.error("Error setting current library:",N),alert("切换素材库失败: "+N.message),_e.getState().setImageLoadingState({isLoading:!1})}finally{I(!1)}}},m=async()=>{if(!t)return;if(h()){alert("扫描进行中,请稍后再试或暂停扫描");return}const B=e.find(V=>V.id===t);if(!(!B||!confirm(`确定要删除素材库"${B.name}"吗?
路径: ${B.path}
⚠️ 注意:
• 将删除索引数据并释放数据库连接
• 不会删除原始图片文件
• .flypic 文件夹将保留,您可以手动删除`)))try{await xr.remove(t),i(t),_e.getState().setImages([]),_e.getState().setFolders([]),_e.getState().setSelectedImage(null),_e.getState().setSelectedFolder(null);const V=e.filter(j=>j.id!==t);if(V.length>0){const j=V[0];await xr.setCurrent(j.id),r(j.id)}console.log(`✅ 素材库已删除: ${B.name}`),console.log(`数据库连接已释放,可手动删除: ${B.path}\\.flypic`)}catch(V){console.error("Error deleting library:",V),alert("删除素材库失败: "+V.message)}},K=B=>{const N=new Set(S);N.has(B)?N.delete(B):N.add(B),b(N)},oe=B=>{const N=[],V=j=>{j.forEach(W=>{W.children&&W.children.length>0&&(N.push(W.path),V(W.children))})};return V(B),N},Q=()=>{const B=oe(J.length>0?J:s);b(new Set(B))},Y=()=>{b(new Set)},$=()=>{const B=oe(J.length>0?J:s);return B.length>0&&B.every(N=>S.has(N))},J=G.useMemo(()=>{if(!_)return s;const B=_.trim().toLowerCase().split(/\s+/).filter(W=>W.length>0);if(B.length===0)return s;const N=[],V=W=>W.reduce((q,X)=>{const ne=X.name.toLowerCase(),ce=X.path.toLowerCase(),de=B.every(D=>ne.includes(D)),f=B.every(D=>ce.includes(D));let F=[];return X.children&&X.children.length>0&&(F=V(X.children)),(de||f||F.length>0)&&(q.push({...X,children:F}),F.length>0&&N.push(X.path)),q},[]),j=V(s);return N.length>0&&setTimeout(()=>{b(W=>{const q=new Set(W);return N.forEach(X=>q.add(X)),q})},0),j},[s,_]),M=(B,N)=>{B.stopPropagation(),K(N)},A=B=>{const N=B.children&&B.children.length>0;o!==B.path?(Cl(),l(B.path)):N&&K(B.path)},le=(B,N=0)=>B.map(V=>{const j=S.has(V.path),W=V.children&&V.children.length>0,q=o===V.path;return k.jsxs("div",{children:[k.jsxs("div",{className:`flex items-center px-3 py-2 cursor-pointer rounded-md transition-colors ${q?"bg-blue-50 dark:bg-blue-900":"hover:bg-gray-100 dark:hover:bg-gray-700"}`,style:{paddingLeft:`${N*16+12}px`},onClick:()=>A(V),children:[W?k.jsx("div",{className:"flex items-center justify-center w-5 h-5 mr-1 cursor-pointer hover:bg-gray-200 dark:hover:bg-gray-600 rounded",onClick:X=>M(X,V.path),children:j?k.jsx(Qc,{className:"w-4 h-4 text-gray-500"}):k.jsx(Ny,{className:"w-4 h-4 text-gray-500"})}):k.jsx("div",{className:"w-5 mr-1"}),k.jsx(Di,{className:"w-4 h-4 mr-2 text-gray-500 flex-shrink-0"}),k.jsx("span",{className:"text-sm text-gray-700 dark:text-gray-300 truncate flex-1",children:V.name}),k.jsx("span",{className:"text-xs text-gray-400 ml-2 flex-shrink-0",children:V.imageCount})]}),W&&j&&le(V.children,N+1)]},V.path)});return k.jsxs("div",{className:"w-full h-full border-r border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 flex flex-col",children:[k.jsxs("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700",children:[k.jsx("div",{className:"flex items-center justify-between mb-3",children:k.jsx("h2",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300",children:"素材库"})}),k.jsxs("div",{className:"flex gap-2",children:[k.jsxs("div",{className:"relative flex-1",children:[k.jsxs("select",{value:t||"",onChange:B=>{const N=B.target.value;if(N==="__add__"){if(h()){alert("扫描进行中,请稍后再试或暂停扫描");return}y(!0)}else N&&H(N)},disabled:O||h(),className:"w-full px-3 py-2 text-sm border border-gray-300 dark:border-gray-600 rounded-lg bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100 appearance-none cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",style:{paddingRight:"2rem"},children:[e.length===0&&k.jsx("option",{value:"",children:"暂无素材库"}),e.map(B=>k.jsx("option",{value:B.id,children:B.name},B.id)),k.jsx("option",{value:"__add__",style:{borderTop:"1px solid #ccc"},children:"+ 添加新素材库"})]}),k.jsx(Qc,{className:"absolute right-2 top-2.5 w-4 h-4 text-gray-400 pointer-events-none"})]}),t&&e.length>0&&k.jsx("button",{onClick:m,disabled:h(),className:"px-3 py-2 border border-red-300 dark:border-red-600 rounded-lg hover:bg-red-50 dark:hover:bg-red-900 text-red-600 dark:text-red-400 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",title:h()?"扫描进行中,无法删除":"删除当前素材库",children:k.jsx(Uy,{className:"w-4 h-4"})})]}),w&&k.jsxs("div",{className:"mt-3 p-3 border border-gray-300 dark:border-gray-600 rounded-lg bg-gray-50 dark:bg-gray-700",children:[k.jsxs("div",{className:"flex items-center justify-between mb-2",children:[k.jsx("h3",{className:"text-sm font-medium text-gray-700 dark:text-gray-300",children:"添加素材库"}),k.jsx("button",{onClick:()=>y(!1),className:"p-1 rounded hover:bg-gray-200 dark:hover:bg-gray-600",children:k.jsx(ep,{className:"w-4 h-4 text-gray-500"})})]}),k.jsxs("div",{className:"space-y-2",children:[k.jsx("input",{type:"text",placeholder:"素材库名称",value:v,onChange:B=>p(B.target.value),onKeyDown:B=>B.key==="Enter"&&T(),autoFocus:!0,className:"w-full px-2 py-1.5 text-sm border border-gray-300 dark:border-gray-600 rounded bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100"}),k.jsx("input",{type:"text",placeholder:"文件 Line truncated
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,i,s){function o(h,w){if(!i[h]){if(!n[h]){var y=typeof js=="function"&&js;if(!w&&y)return y(h,!0);if(a)return a(h,!0);var v=new Error("Cannot find module '"+h+"'");throw v.code="MODULE_NOT_FOUND",v}var p=i[h]={exports:{}};n[h][0].call(p.exports,function(x){var u=n[h][1][x];return o(u||x)},p,p.exports,r,n,i,s)}return i[h].exports}for(var a=typeof js=="function"&&js,l=0;l<s.length;l++)o(s[l]);return o}({1:[function(r,n,i){var s=r("./utils"),o=r("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(l){for(var h,w,y,v,p,x,u,_=[],c=0,d=l.length,g=d,S=s.getTypeOf(l)!=="string";c<l.length;)g=d-c,y=S?(h=l[c++],w=c<d?l[c++]:0,c<d?l[c++]:0):(h=l.charCodeAt(c++),w=c<d?l.charCodeAt(c++):0,c<d?l.charCodeAt(c++):0),v=h>>2,p=(3&h)<<4|w>>4,x=1<g?(15&w)<<2|y>>6:64,u=2<g?63&y:64,_.push(a.charAt(v)+a.charAt(p)+a.charAt(x)+a.charAt(u));return _.join("")},i.decode=function(l){var h,w,y,v,p,x,u=0,_=0,c="data:";if(l.substr(0,c.length)===c)throw new Error("Invalid base64 input, it looks like a data url.");var d,g=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===a.charAt(64)&&g--,l.charAt(l.length-2)===a.charAt(64)&&g--,g%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=o.uint8array?new Uint8Array(0|g):new Array(0|g);u<l.length;)h=a.indexOf(l.charAt(u++))<<2|(v=a.indexOf(l.charAt(u++)))>>4,w=(15&v)<<4|(p=a.indexOf(l.charAt(u++)))>>2,y=(3&p)<<6|(x=a.indexOf(l.charAt(u++))),d[_++]=h,p!==64&&(d[_++]=w),x!==64&&(d[_++]=y);return d}},{"./support":30,"./utils":32}],2:[function(r,n,i){var s=r("./external"),o=r("./stream/DataWorker"),a=r("./stream/Crc32Probe"),l=r("./stream/DataLengthProbe");function h(w,y,v,p,x){this.compressedSize=w,this.uncompressedSize=y,this.crc32=v,this.compression=p,this.compressedContent=x}h.prototype={getContentWorker:function(){var w=new o(s.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("data_length")),y=this;return w.on("end",function(){if(this.streamInfo.data_length!==y.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),w},getCompressedWorker:function(){return new o(s.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function(w,y,v){return w.pipe(new a).pipe(new l("uncompressedSize")).pipe(y.compressWorker(v)).pipe(new l("compressedSize")).withStreamInfo("compression",y)},n.exports=h},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,n,i){var s=r("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new s("STORE compression")},uncompressWorker:function(){return new s("STORE decompression")}},i.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,n,i){var s=r("./utils"),o=function(){for(var a,l=[],h=0;h<256;h++){a=h;for(var w=0;w<8;w++)a=1&a?3988292384^a>>>1:a>>>1;l[h]=a}return l}();n.exports=function(a,l){return a!==void 0&&a.length?s.getTypeOf(a)!=="string"?function(h,w,y,v){var p=o,x=v+y;h^=-1;for(var u=v;u<x;u++)h=h>>>8^p[255&(h^w[u])];return-1^h}(0|l,a,a.length,0):function(h,w,y,v){var p=o,x=v+y;h^=-1;for(var u=v;u<x;u++)h=h>>>8^p[255&(h^w.charCodeAt(u))];return-1^h}(0|l,a,a.length,0):0}},{"./utils":32}],5:[function(r,n,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(r,n,i){var s=null;s=typeof Promise<"u"?Promise:r("lie"),n.exports={Promise:s}},{lie:37}],7:[function(r,n,i){var s=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=r("pako"),a=r("./utils"),l=r("./stream/GenericWorker"),h=s?"uint8array":"array";function w(y,v){l.call(this,"FlateWorker/"+y),this._pako=null,this._pakoAction=y,this._pakoOptions=v,this.meta={}}i.magic="\b\0",a.inherits(w,l),w.prototype.processChunk=function(y){this.meta=y.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(h,y.data),!1)},w.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},w.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},w.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var y=this;this._pako.onData=function(v){y.push({data:v,meta:y.meta})}},i.compressWorker=function(y){return new w("Deflate",y)},i.uncompressWorker=function(){return new w("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,n,i){function s(p,x){var u,_="";for(u=0;u<x;u++)_+=String.fromCharCode(255&p),p>>>=8;return _}function o(p,x,u,_,c,d){var g,S,b=p.file,R=p.compression,z=d!==h.Line truncated
\0`,B+=s(M,2),B+=R.magic,B+=s(g,2),B+=s(S,2),B+=s(J.crc32,4),B+=s(J.compressedSize,4),B+=s(J.uncompressedSize,4),B+=s(O.length,2),B+=s(K.length,2),{fileRecord:y.LOCAL_FILE_HEADER+B+O+K,dirRecord:y.CENTRAL_FILE_HEADER+s(le,2)+B+s(re.length,2)+"\0\0\0\0"+s(A,4)+s(_,4)+O+K+re}}var a=r("../utils"),l=r("../stream/GenericWorker"),h=r("../utf8"),w=r("../crc32"),y=r("../signature");function v(p,x,u,_){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=x,this.zipPlatform=u,this.encodeFileName=_,this.streamFiles=p,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(v,l),v.prototype.push=function(p){var x=p.meta.percent||0,u=this.entriesCount,_=this._sources.length;this.accumulate?this.contentBuffer.push(p):(this.bytesWritten+=p.data.length,l.prototype.push.call(this,{data:p.data,meta:{currentFile:this.currentFile,percent:u?(x+100*(u-_-1))/u:100}}))},v.prototype.openedSource=function(p){this.currentSourceOffset=this.bytesWritten,this.currentFile=p.file.name;var x=this.streamFiles&&!p.file.dir;if(x){var u=o(p,x,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},v.prototype.closedSource=function(p){this.accumulate=!1;var x=this.streamFiles&&!p.file.dir,u=o(p,x,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),x)this.push({data:function(_){return y.DATA_DESCRIPTOR+s(_.crc32,4)+s(_.compressedSize,4)+s(_.uncompressedSize,4)}(p),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},v.prototype.flush=function(){for(var p=this.bytesWritten,x=0;x<this.dirRecords.length;x++)this.push({data:this.dirRecords[x],meta:{percent:100}});var u=this.bytesWritten-p,_=function(c,d,g,S,b){var R=a.transformTo("string",b(S));return y.CENTRAL_DIRECTORY_END+"\0\0\0\0"+s(c,2)+s(c,2)+s(d,4)+s(g,4)+s(R.length,2)+R}(this.dirRecords.length,u,p,this.zipComment,this.encodeFileName);this.push({data:_,meta:{percent:100}})},v.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},v.prototype.registerPrevious=function(p){this._sources.push(p);var x=this;return p.on("data",function(u){x.processChunk(u)}),p.on("end",function(){x.closedSource(x.previous.streamInfo),x._sources.length?x.prepareNextSource():x.end()}),p.on("error",function(u){x.error(u)}),this},v.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},v.prototype.error=function(p){var x=this._sources;if(!l.prototype.error.call(this,p))return!1;for(var u=0;u<x.length;u++)try{x[u].error(p)}catch{}return!0},v.prototype.lock=function(){l.prototype.lock.call(this);for(var p=this._sources,x=0;x<p.length;x++)p[x].lock()},n.exports=v},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,n,i){var s=r("../compressions"),o=r("./ZipFileWorker");i.generateWorker=function(a,l,h){var w=new o(l.streamFiles,h,l.platform,l.encodeFileName),y=0;try{a.forEach(function(v,p){y++;var x=function(d,g){var S=d||g,b=s[S];if(!b)throw new Error(S+" is not a valid compression method !");return b}(p.options.compression,l.compression),u=p.options.compressionOptions||l.compressionOptions||{},_=p.dir,c=p.date;p._compressWorker(x,u).withStreamInfo("file",{name:v,dir:_,date:c,comment:p.comment||"",unixPermissions:p.unixPermissions,dosPermissions:p.dosPermissions}).pipe(w)}),w.entriesCount=y}catch(v){w.error(v)}return w}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,n,i){function s(){if(!(this instanceof s))return new s;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var o=new s;for(var a in this)typeof this[a]!="function"&&(o[a]=this[a]);return o}}(s.prototype=r("./object")).loadAsync=r("./load"),s.support=r("./support"),s.defaults=r("./defaults"),s.version="3.10.1",s.loadAsync=function(o,a){return new s().loadAsync(o,a)},s.external=r("./external"),n.exports=s},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,n,i){var s=r("./utils"),o=r("./external"),a=r("./utf8"),l=r("./zipEntries"),h=r("./stream/Crc32Probe"),w=r("./nodejsUtils");function y(v){return new o.Promise(function(p,x){var u=v.decompressed.getContentWorker().pipe(new h);u.on("error",function(_){x(_)}).on("end",function(){u.streamInfo.crc32!==v.decompressed.crc32?x(new Error("Corrupted zip : CRC32 mismatch")):p()}).resume()})}n.exports=function(v,p){var x=thi Line truncated
(当前浏览器环境限制,无法直接复制图片)`)):alert(`复制失败,请手动复制图片链接:
`+N)}catch(N){console.error("复制图片失败:",N),alert("复制图片失败,请重试")}},Y=async N=>new Promise(async V=>{try{const j=document.createElement("div");j.setAttribute("contenteditable","true"),j.style.position="fixed",j.style.left="-9999px",j.style.top="-9999px",j.style.opacity="0",document.body.appendChild(j);for(const{url:ne,filename:ce}of N)try{const f=await(await fetch(ne)).blob(),F=new Image;F.crossOrigin="anonymous",await new Promise((Z,ee)=>{F.onload=Z,F.onerror=ee,F.src=URL.createObjectURL(f)});const D=document.createElement("canvas");D.width=F.width,D.height=F.height,D.getContext("2d").drawImage(F,0,0),URL.revokeObjectURL(F.src);const C=D.toDataURL("image/png"),L=document.createElement("img");L.src=C,L.alt=ce,L.style.display="block",L.style.marginBottom="10px",j.appendChild(L)}catch(de){console.error(`加载图片失败: ${ce}`,de)}await new Promise(ne=>setTimeout(ne,100));const W=document.createRange();W.selectNodeContents(j);const q=window.getSelection();q.removeAllRanges(),q.addRange(W);let X=!1;try{X=document.execCommand("copy")}catch(ne){console.error("execCommand copy 失败:",ne)}q.removeAllRanges(),document.body.removeChild(j),V(X)}catch(j){console.error("批量复制图片失败:",j),V(!1)}}),$=()=>r.length>0?t&&!r.some(N=>N.id===t.id)?[t,...r]:r:t?[t]:[],J=async()=>{try{const N=$();if(N.length===1){await Q();return}const V=N.map(X=>({url:Le.getOriginalUrl(e,X.path),filename:X.filename})),j=N.map(X=>X.filename).join(`
`);if(H())try{const ne=(await Promise.all(N.map(async ce=>{const de=Le.getOriginalUrl(e,ce.path),F=await(await fetch(de)).blob();return new Promise(D=>{const E=new FileReader;E.onloadend=()=>{D({dataUrl:E.result,filename:ce.filename})},E.readAsDataURL(F)})}))).map(({dataUrl:ce,filename:de})=>`<img src="${ce}" alt="${de}" style="display:block; margin:10px 0;">`).join(`
`);await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([ne],{type:"text/html"}),"text/plain":new Blob([j],{type:"text/plain"})})]),u(!0),setTimeout(()=>u(!1),2e3);return}catch(X){console.warn("Clipboard API 失败,尝试备用方案:",X)}if(console.log("尝试 contenteditable 批量复制方案..."),await Y(V)){u(!0),setTimeout(()=>u(!1),2e3);return}console.warn("批量图片复制失败,降级为复制文件名"),oe(j)?(u(!0),setTimeout(()=>u(!1),2e3),alert(`已复制 ${N.length} 个文件名到剪贴板
(当前环境限制,建议使用"导出"功能)`)):alert('复制失败,请使用"导出"功能下载图片')}catch(N){console.error("复制图片失败:",N),alert("复制图片失败,请重试")}},M=async()=>{c(!0);try{const N=$();if(N.length===1){const V=Le.getOriginalUrl(e,N[0].path),j=document.createElement("a");j.href=V,j.download=N[0].filename,j.target="_blank",document.body.appendChild(j),j.click(),document.body.removeChild(j)}else{const V=new vd,j=V.folder("images");g(0);for(let X=0;X<N.length;X++){const ne=N[X],ce=Le.getOriginalUrl(e,ne.path);try{const f=await(await fetch(ce)).blob();j.file(ne.filename,f);const F=Math.round((X+1)/N.length*90);g(F),console.log(`已添加: ${ne.filename} (${X+1}/${N.length})`)}catch(de){console.error(`下载失败: ${ne.filename}`,de)}}g(95),console.log("正在生成 ZIP 文件...");const W=await V.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:6}});g(100);const q=document.createElement("a");q.href=URL.createObjectURL(W),q.download=`FlyPic_导出_${N.length}张_${Date.now()}.zip`,document.body.appendChild(q),q.click(),document.body.removeChild(q),URL.revokeObjectURL(q.href),console.log("导出完成!")}}catch(N){console.error("导出失败:",N),alert("导出失败,请重试")}finally{c(!1)}},A=async()=>{if(!n){alert("请先选择一个文件夹");return}b(!0),z(0);try{const N=i.filter(ne=>ne.folder&&ne.folder.startsWith(n));if(N.length===0){alert("当前文件夹没有图片");return}const V=new vd,j=n.split("/").pop()||"images",W=V.folder(j);for(let ne=0;ne<N.length;ne++){const ce=N[ne],de=Le.getOriginalUrl(e,ce.path);try{const F=await(await fetch(de)).blob(),D=ce.folder.replace(n,"").replace(/^\//,""),E=D?`${D}/${ce.filename}`:ce.filename;W.file(E,F);const C=Math.round((ne+1)/N.length*90);z(C),console.log(`已添加: ${E} (${ne+1}/${N.length})`)}catch(f){console.error(`下载失败: ${ce.filename}`,f)}}z(95),console.log("正在生成 ZIP 文件...");const q=await V.generateAsync({type:"blob",compression:"DEFLATE",compressionOptions:{level:6}});z(100);const X=document.createElement("a");X.href=URL.createObjectURL(q),X.download=`${j}_${N.length}张_${Date.now()}.zip`,document.body.appendChild(X),X.click(),document.body.removeChild(X),URL.revokeObjectURL(X.href),console.log("文件夹导出完成!")}catch(N){console.error("导出文件夹失败:",N),alert("导出文件夹失败,请重试")}finally{b(!1)}},le=N=>N<1024?N+" B":N<1024*1024?(N/1024).toFixed(2)+" KB":(N/(1024*1024)).toFixed(2)+" MB",B=N=>new Date(N).toLocaleString("zh-CN");return k.jsxs("div",{className:"w-full border-l border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 flex flex-col h-full",children:[l&&k.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700 flex items-center",children:k.jsxs("button",{onClick:()=>s("main"),className:"flex items-center gap-2 text-gray-700 dark:text-gray-300 hover:text-blue-500",children:[k.jsx(Cy,{className:"w-5 h-5"}),k.jsx("span",{className:"text-sm font-medium",children:"返回"})]})}),k.jsx("div",{className:"p-4 border-b border-gray-200 dark:border-gray-700 flex-shrink-0",children:k.jsxs("div",{className:"w-full aspect-square bg-gray-100 dark:bg-gray-700 rounded-lg overflow-hidden relative",children:[k.jsx("img",{src:w,alt:P.filename,decoding:"async",className:`w-full h-full object-contain transition-opacity duration-300 ${v?"opacity-75":"opacity-100"}`}),v&&k.jsx("div",{className:"absolute top-2 right-2 bg-blue-500 text-white text-xs px-2 py-1 rounded",children:"加载原图中..."})]})}),k.jsx("div",{className:"flex-1 overflow-y-auto p-4 space-y-4 min-h-0",children:k.jsxs("div",{children:[k.jsx("h3",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2",children:"基本信息"}),k.jsxs("div",{className:"space-y-2 text-sm",children:[k.jsxs("div",{children:[k.jsx("span",{className:"text-gray-500 dark:text-gray-400",children:"文件名:"}),k.jsx("p",{className:"text-gray-900 dark:text-gray-100 break-all",children:t.filename})]}),k.jsxs("div",{children:[k.jsx("span",{className:"text-gray-500 dark:text-gray-400",children:"尺寸:"}),k.jsxs("p",{className:"text-gray-900 dark:text-gray-100",children:[t.width," × ",t.height]})]}),k.jsxs("div",{children:[k.jsx("span",{className:"text-gray-500 dark:text-gray-400",children:"大小:"}),k.jsx("p",{className:"text-gray-900 dark:text-gray-100",children:le(t.size)})]}),k.jsxs("div",{children:[k.jsx("span",{className:"text-gray-500 dark:text-gray-400",children:"格式:"}),k.jsx("p",{className:"text-gray-900 dark:text-gray-100 uppercase",children:t.format})]}),k.jsxs("div",{children:[k.jsx("span",{className:"text-gray-500 dark:text-gray-400",children:"创建时间:"}),k.jsx("p",{className:"text-gray-900 dark:text-gray-100",children:B(t.created_at)})]}),k.jsxs("div",{children:[k.jsx("span",{className:"text-gray-500 dark:text-gray-400",children:"修改时间:"}),k.jsx("p",{className:"text-gray-900 dark:text-gray-100",children:B(t.modified_at) Line truncated
+2 -2
View File
@@ -5,8 +5,8 @@
<link rel="icon" type="image/png" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>FlyPic 飞图 - 图片素材库管理</title>
<script type="module" crossorigin src="/assets/index-DWWYNoqs.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CcwAM3eE.css">
<script type="module" crossorigin src="/assets/index-B4Eh5nez.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BV-u5Ri4.css">
</head>
<body>
<div id="root"></div>␍
+24 -24
View File
@@ -41,6 +41,30 @@ router.post('/',
})
);
/**
* 更新偏好设置(必须在 /:id 之前,否则会被 /:id 匹配)
* PUT /api/library/preferences
* Body: { preferences }
*/
router.put('/preferences', asyncHandler(async (req, res) => {
const result = libraryService.updatePreferences(req.body);
res.json({ success: true, data: result });
}));
/**
* 更新主题(必须在 /:id 之前)
* PUT /api/library/theme
* Body: { theme }
*/
router.put('/theme',
validateRequired(['theme']),
asyncHandler(async (req, res) => {
const { theme } = req.body;
const result = libraryService.updateTheme(theme);
res.json({ success: true, data: result });
})
);
/**
* 更新素材库
* PUT /api/library/:id
@@ -72,30 +96,6 @@ router.post('/:id/set-current', asyncHandler(async (req, res) => {
res.json({ success: true, data: result });
}));
/**
* 更新偏好设置
* PUT /api/library/preferences
* Body: { preferences }
*/
router.put('/preferences', asyncHandler(async (req, res) => {
const result = libraryService.updatePreferences(req.body);
res.json({ success: true, data: result });
}));
/**
* 更新主题
* PUT /api/library/theme
* Body: { theme }
*/
router.put('/theme',
validateRequired(['theme']),
asyncHandler(async (req, res) => {
const { theme } = req.body;
const result = libraryService.updateTheme(theme);
res.json({ success: true, data: result });
})
);
/**
* 获取素材库统计
* GET /api/library/:id/stats
@@ -61,7 +61,7 @@ class LibraryService {
} catch (writeError) {
console.log(`[LibraryService] No write permission: ${normalizedPath}`);
throw new ValidationError(
'无法访问该文件夹。将此文件夹添加到 FlyPic 应用的访问权限。',
'无法访问该文件夹。请在飞牛 fnOS 的"数据共享"中将此文件夹添加到 FlyPic 应用的访问权限。',
'permission'
);
}
@@ -69,7 +69,7 @@ class LibraryService {
if (readError.code === 'EACCES' || readError.code === 'EPERM') {
console.log(`[LibraryService] No access permission: ${normalizedPath}`);
throw new ValidationError(
'无法访问该文件夹。将此文件夹添加到 FlyPic 应用的访问权限。',
'无法访问该文件夹。请在飞牛 fnOS 的"数据共享"中将此文件夹添加到 FlyPic 应用的访问权限。',
'permission'
);
}
+17 -1
View File
@@ -6,7 +6,8 @@ const {
getFileType,
calculateFileHash,
getImageMetadata,
generateImageThumbnails
generateImageThumbnails,
clearSharpCache
} = require('./thumbnail');
const scanManager = require('./scanManager');
@@ -489,6 +490,15 @@ async function scanLibrary(libraryPath, db, onProgress, libraryId = null, resume
// Update folder image counts
db.updateAllFolderCounts();
// 🎯 关键:扫描完成后清理 Sharp 缓存,释放内存
clearSharpCache();
// 强制 GC(如果可用)
if (global.gc) {
global.gc();
console.log('🧹 内存已清理');
}
// 标记扫描完成
if (libraryId) {
scanManager.completeScan(libraryId);
@@ -640,6 +650,9 @@ async function syncLibrary(libraryPath, db, forceRebuildFolders = false, onProgr
const totalTime = (Date.now() - startTime) / 1000;
console.log(`✅ 同步完成 (${totalTime.toFixed(1)}秒)`);
// 清理 Sharp 缓存
clearSharpCache();
return {
added: toAdd.length,
modified: modifiedCount,
@@ -647,6 +660,7 @@ async function syncLibrary(libraryPath, db, forceRebuildFolders = false, onProgr
};
} catch (error) {
console.error('❌ 同步失败:', error.message);
clearSharpCache();
throw error;
}
}
@@ -712,6 +726,8 @@ async function quickSync(libraryPath, db) {
const elapsed = Date.now() - startTime;
if (toAdd.length > 0 || toDelete.length > 0) {
console.log(`⚡ 快速同步: +${toAdd.length} -${toDelete.length} (${elapsed}ms)`);
// 有变化时清理 Sharp 缓存
clearSharpCache();
}
return { added: toAdd.length, deleted: toDelete.length };
+78 -65
View File
@@ -5,14 +5,24 @@ const crypto = require('crypto');
// 配置 Sharp 内存限制(防止内存泄漏)
sharp.cache({
memory: 50, // 最大缓存 50MB(默认 50MB)
files: 0, // 禁用文件缓存
items: 20 // 最多缓存 20 个操作
memory: 20, // 最大缓存 20MB(更激进)
files: 0, // 禁用文件缓存
items: 10 // 最多缓存 10 个操作
});
// 设置并发限制
sharp.concurrency(1); // 一次只处理 1 张图片
// 清理 Sharp 缓存的函数(扫描完成后调用)
function clearSharpCache() {
sharp.cache(false); // 完全禁用缓存
sharp.cache({ // 重新启用最小缓存
memory: 20,
files: 0,
items: 10
});
}
// 支持的文件格式(确定可以生成缩略图的)
const IMAGE_FORMATS = ['jpg', 'jpeg', 'png', 'webp', 'gif', 'bmp', 'tiff', 'tif', 'avif', 'heif', 'heic', 'svg'];
@@ -89,17 +99,20 @@ function isImageFile(filename) {
/**
* Calculate file hash for change detection
* 优化:使用文件大小+修改时间作为快速哈希,避免读取整个文件
*/
function calculateFileHash(filePath) {
let fileBuffer = fs.readFileSync(filePath);
const hashSum = crypto.createHash('md5');
hashSum.update(fileBuffer);
const hash = hashSum.digest('hex');
// 显式释放 Buffer
fileBuffer = null;
return hash;
try {
const stats = fs.statSync(filePath);
// 使用文件大小 + 修改时间作为快速哈希(足够检测变化)
const quickHash = `${stats.size}-${stats.mtimeMs}`;
const hashSum = crypto.createHash('md5');
hashSum.update(quickHash);
return hashSum.digest('hex');
} catch (error) {
// 回退到空哈希
return crypto.createHash('md5').update(filePath).digest('hex');
}
}
/**
@@ -366,37 +379,54 @@ async function generateImageThumbnails(imagePath, libraryPath) {
/**
* 从 PSD 文件提取嵌入的缩略图
* 优化:使用部分读取,避免加载整个 PSD 文件到内存
*/
async function extractPSDThumbnail(psdPath, outputPath) {
let fd = null;
try {
const buffer = fs.readFileSync(psdPath);
fd = fs.openSync(psdPath, 'r');
// 读取头部(前 100 字节足够获取基本信息)
const headerBuffer = Buffer.alloc(100);
fs.readSync(fd, headerBuffer, 0, 100, 0);
// PSD 文件格式:
// 前 4 字节: "8BPS" (签名)
// 偏移 26: Image Resources Section
// 查找 Resource ID 1036 (缩略图资源)
if (buffer.toString('utf8', 0, 4) !== '8BPS') {
// PSD 文件格式:前 4 字节: "8BPS" (签名)
if (headerBuffer.toString('utf8', 0, 4) !== '8BPS') {
throw new Error('Not a valid PSD file');
}
// 读取 Image Resources Section 长度
const colorModeLength = buffer.readUInt32BE(26);
// 读取 Color Mode Data 长度(偏移 26)
const colorModeLength = headerBuffer.readUInt32BE(26);
const imageResourcesOffset = 26 + 4 + colorModeLength;
const imageResourcesLength = buffer.readUInt32BE(imageResourcesOffset);
let offset = imageResourcesOffset + 4;
const endOffset = offset + imageResourcesLength;
// 读取 Image Resources Section 长度
const irLengthBuffer = Buffer.alloc(4);
fs.readSync(fd, irLengthBuffer, 0, 4, imageResourcesOffset);
const imageResourcesLength = irLengthBuffer.readUInt32BE(0);
// 限制读取大小(最多 2MB,缩略图通常在前面)
const maxReadSize = Math.min(imageResourcesLength, 2 * 1024 * 1024);
const resourcesBuffer = Buffer.alloc(maxReadSize);
fs.readSync(fd, resourcesBuffer, 0, maxReadSize, imageResourcesOffset + 4);
fs.closeSync(fd);
fd = null;
let offset = 0;
const endOffset = maxReadSize;
// 查找缩略图资源 (ID 1033 或 1036)
while (offset < endOffset) {
const signature = buffer.toString('utf8', offset, offset + 4);
while (offset < endOffset - 12) {
const signature = resourcesBuffer.toString('utf8', offset, offset + 4);
if (signature !== '8BIM') break;
const resourceId = buffer.readUInt16BE(offset + 4);
const nameLength = buffer.readUInt8(offset + 6);
const resourceId = resourcesBuffer.readUInt16BE(offset + 4);
const nameLength = resourcesBuffer.readUInt8(offset + 6);
const namePadding = nameLength % 2 === 0 ? nameLength + 2 : nameLength + 1;
const dataSize = buffer.readUInt32BE(offset + 6 + namePadding);
if (offset + 6 + namePadding + 4 > endOffset) break;
const dataSize = resourcesBuffer.readUInt32BE(offset + 6 + namePadding);
const dataPadding = dataSize % 2 === 0 ? dataSize : dataSize + 1;
// 1033 = 缩略图 (旧格式), 1036 = 缩略图 (新格式)
@@ -405,7 +435,13 @@ async function extractPSDThumbnail(psdPath, outputPath) {
// 跳过前 28 字节的头部信息
const jpegOffset = dataOffset + 28;
const jpegData = buffer.slice(jpegOffset, jpegOffset + dataSize - 28);
const jpegSize = dataSize - 28;
if (jpegOffset + jpegSize > endOffset) {
throw new Error('Thumbnail data exceeds buffer');
}
const jpegData = resourcesBuffer.slice(jpegOffset, jpegOffset + jpegSize);
// 先获取原始缩略图尺寸
const metadata = await sharp(jpegData).metadata();
@@ -415,43 +451,16 @@ async function extractPSDThumbnail(psdPath, outputPath) {
const targetHeight = 480;
const targetWidth = Math.round(targetHeight * aspectRatio);
// 根据原始尺寸调整处理策略
let resizeOptions, sharpenOptions, webpQuality;
if (metadata.width >= 1000 || metadata.height >= 1000) {
// 高分辨率缩略图(≥1000px):正常缩放
resizeOptions = {
fit: 'inside',
kernel: 'lanczos3',
withoutEnlargement: true
};
sharpenOptions = { sigma: 0.8, m1: 0.5, m2: 1.0 };
webpQuality = 95;
} else if (metadata.width >= 500 || metadata.height >= 500) {
// 中等分辨率(500-1000px):轻微放大 + 强锐化
resizeOptions = {
fit: 'inside',
kernel: 'lanczos3',
withoutEnlargement: false // 允许放大
};
sharpenOptions = { sigma: 1.2, m1: 1.0, m2: 2.0 }; // 强锐化
webpQuality = 96;
} else {
// 低分辨率(<500px):放大 + 超强锐化
resizeOptions = {
fit: 'inside',
kernel: 'lanczos3',
withoutEnlargement: false
};
sharpenOptions = { sigma: 1.5, m1: 1.2, m2: 2.5 }; // 超强锐化
webpQuality = 98; // 最高质量
}
// 简化处理策略
await sharp(jpegData)
.resize(targetWidth, targetHeight, resizeOptions)
.sharpen(sharpenOptions)
.resize(targetWidth, targetHeight, {
fit: 'inside',
kernel: 'lanczos3',
withoutEnlargement: metadata.width >= 500
})
.sharpen({ sigma: 1.0, m1: 0.8, m2: 1.5 })
.webp({
quality: webpQuality,
quality: 95,
effort: 4,
smartSubsample: false
})
@@ -471,6 +480,9 @@ async function extractPSDThumbnail(psdPath, outputPath) {
throw new Error('No thumbnail found in PSD');
} catch (error) {
if (fd !== null) {
try { fs.closeSync(fd); } catch (e) {}
}
console.warn(`Failed to extract PSD thumbnail: ${error.message}`);
return null;
}
@@ -631,6 +643,7 @@ module.exports = {
generateThumbnail,
getImageMetadata,
generateImageThumbnails,
clearSharpCache,
SUPPORTED_FORMATS,
ALL_FORMATS
};
+1 -1
View File
@@ -6,7 +6,7 @@
"type": "url",
"protocol": "http",
"port": "15002",
"allUsers": true,
"allUsers": false,
"control": {
"portPerm": "editable"
}
+1 -1
View File
@@ -1,5 +1,5 @@
appname=flypic
version=1.0.0
version=1.0.5
desc=飞图 - 专为飞牛 fnOS 设计的轻量、快速、稳定的图像素材检索浏览应用,支持数十万级别图片流畅浏览,非侵入式设计,100% 开源免费
arch=x86_64
display_name=FlyPic
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "flypic-frontend",
"version": "1.0.0",
"version": "1.0.5",
"private": true,
"type": "module",
"scripts": {