karin-plugin-kkk 2.11.4 → 2.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/lib/apps/admin.js +1 -1
- package/lib/apps/help.js +1 -1
- package/lib/apps/push.js +1 -1
- package/lib/apps/tools.js +1 -1
- package/lib/apps/update.js +1 -1
- package/lib/build-metadata.json +5 -5
- package/lib/core_chunk/{main-BQv4Jj_R.js → main-VpJ7L7Rf.js} +1 -1
- package/lib/index.js +1 -1
- package/lib/root.js +1 -1
- package/lib/web.config.js +1 -1
- package/lib/web_chunk/assets/{Combination-D6FIiEQM.js → Combination-9Z3vZ_qB.js} +1 -1
- package/lib/web_chunk/assets/{avatar-2RA3jG34.js → avatar-DCKZKMua.js} +1 -1
- package/lib/web_chunk/assets/{core-B_b8RHlG.js → core-Gs8avqc0.js} +1 -1
- package/lib/web_chunk/assets/{eye-C4fCFW2u.js → eye-CcwaLhDE.js} +1 -1
- package/lib/web_chunk/assets/{index-BoPchUH8.js → index-DdAGSRAR.js} +2 -2
- package/lib/web_chunk/assets/{jszip.min-CVn4GGc_.js → jszip.min-D_iVl8wF.js} +1 -1
- package/lib/web_chunk/assets/{page-B7K7O6f3.js → page-Cowml-bh.js} +2 -2
- package/lib/web_chunk/assets/{page-C4Zxqo2B.js → page-DkpX06Dm.js} +1 -1
- package/lib/web_chunk/assets/{page-Byuy7OAT.js → page-MMB_BSjZ.js} +4 -4
- package/lib/web_chunk/assets/{page-CEqg1Ksf.js → page-P63JbsyL.js} +1 -1
- package/lib/web_chunk/assets/{page-BdqDvPOw.js → page-Y-k61toL.js} +1 -1
- package/lib/web_chunk/assets/{parsers-Dwa8gykn.js → parsers-ClyIAubm.js} +1 -1
- package/lib/web_chunk/assets/{request-BwKDd0gx.js → request-CeqCIAeR.js} +1 -1
- package/lib/web_chunk/assets/{select-BY-t3eAh.js → select-ChvEL4Ce.js} +1 -1
- package/lib/web_chunk/assets/{separator-DdXrJjKD.js → separator-D-H2bJ1_.js} +1 -1
- package/lib/web_chunk/index.html +1 -1
- package/lib/web_chunk/sw.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [2.11.5](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.11.4...v2.11.5) (2025-11-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### 🐛 错误修复
|
|
9
|
+
|
|
10
|
+
* **douyin:** Handle special user states with optional chaining ([713a07e](https://github.com/ikenxuan/karin-plugin-kkk/commit/713a07ea2a89b4aab7711eec04d80078c21bdb67))
|
|
11
|
+
|
|
5
12
|
## [2.11.4](https://github.com/ikenxuan/karin-plugin-kkk/compare/v2.11.3...v2.11.4) (2025-11-13)
|
|
6
13
|
|
|
7
14
|
|
package/lib/apps/admin.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../core_chunk/vendor-4CM806JY.js";
|
|
2
|
-
import { C as removeAllFiles, E as task, S as dylogin, T as setdyck, w as setbilick, x as biLogin } from "../core_chunk/main-
|
|
2
|
+
import { C as removeAllFiles, E as task, S as dylogin, T as setdyck, w as setbilick, x as biLogin } from "../core_chunk/main-VpJ7L7Rf.js";
|
|
3
3
|
import "../core_chunk/template-CHODiQlc.js";
|
|
4
4
|
export { biLogin, dylogin, removeAllFiles, setbilick, setdyck, task };
|
package/lib/apps/help.js
CHANGED
package/lib/apps/push.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../core_chunk/vendor-4CM806JY.js";
|
|
2
|
-
import { _ as setdyPush, d as bilibiliPushList, f as changeBotID, g as setbiliPush, h as forcePush, m as douyinPushList, p as douyinPush, u as bilibiliPush, v as testDouyinPush } from "../core_chunk/main-
|
|
2
|
+
import { _ as setdyPush, d as bilibiliPushList, f as changeBotID, g as setbiliPush, h as forcePush, m as douyinPushList, p as douyinPush, u as bilibiliPush, v as testDouyinPush } from "../core_chunk/main-VpJ7L7Rf.js";
|
|
3
3
|
import "../core_chunk/template-CHODiQlc.js";
|
|
4
4
|
export { bilibiliPush, bilibiliPushList, changeBotID, douyinPush, douyinPushList, forcePush, setbiliPush, setdyPush, testDouyinPush };
|
package/lib/apps/tools.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../core_chunk/vendor-4CM806JY.js";
|
|
2
|
-
import { a as bilibiliAPP, c as prefix, l as xiaohongshuAPP, o as douyinAPP, s as kuaishouAPP } from "../core_chunk/main-
|
|
2
|
+
import { a as bilibiliAPP, c as prefix, l as xiaohongshuAPP, o as douyinAPP, s as kuaishouAPP } from "../core_chunk/main-VpJ7L7Rf.js";
|
|
3
3
|
import "../core_chunk/template-CHODiQlc.js";
|
|
4
4
|
export { bilibiliAPP, douyinAPP, kuaishouAPP, prefix, xiaohongshuAPP };
|
package/lib/apps/update.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../core_chunk/vendor-4CM806JY.js";
|
|
2
|
-
import { i as update, n as kkkUpdateCommand, r as kkkUpdateTest, t as kkkUpdate } from "../core_chunk/main-
|
|
2
|
+
import { i as update, n as kkkUpdateCommand, r as kkkUpdateTest, t as kkkUpdate } from "../core_chunk/main-VpJ7L7Rf.js";
|
|
3
3
|
import "../core_chunk/template-CHODiQlc.js";
|
|
4
4
|
export { kkkUpdate, kkkUpdateCommand, kkkUpdateTest, update };
|
package/lib/build-metadata.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.11.
|
|
3
|
-
"buildTime": "2025-11-
|
|
4
|
-
"buildTimestamp":
|
|
2
|
+
"version": "2.11.5",
|
|
3
|
+
"buildTime": "2025-11-13T05:08:38.805Z",
|
|
4
|
+
"buildTimestamp": 1763010518805,
|
|
5
5
|
"name": "karin-plugin-kkk",
|
|
6
6
|
"description": "Karin 的「抖音」「B 站」视频解析/动态推送插件",
|
|
7
7
|
"homepage": "https://github.com/ikenxuan/karin-plugin-kkk",
|
|
8
|
-
"commitHash": "
|
|
9
|
-
"shortCommitHash": "
|
|
8
|
+
"commitHash": "38789e89a2688dd15f686e438c1db0c1abcd6e1f",
|
|
9
|
+
"shortCommitHash": "38789e89"
|
|
10
10
|
}
|
|
@@ -6887,7 +6887,7 @@ var DouYinpush = class extends Base {
|
|
|
6887
6887
|
};
|
|
6888
6888
|
});
|
|
6889
6889
|
if (targets.length === 0) continue;
|
|
6890
|
-
if (userinfo.data.user
|
|
6890
|
+
if (userinfo.data.user?.special_state_info?.special_state === 1 && userinfo.data.user?.user_deleted === true) {
|
|
6891
6891
|
logger.warn(`${item.remark}(${sec_uid})${userinfo.data.user.special_state_info.title}`);
|
|
6892
6892
|
continue;
|
|
6893
6893
|
}
|
package/lib/index.js
CHANGED
package/lib/root.js
CHANGED
package/lib/web.config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./core_chunk/vendor-4CM806JY.js";
|
|
2
|
-
import { D as webConfig, O as web_config_default } from "./core_chunk/main-
|
|
2
|
+
import { D as webConfig, O as web_config_default } from "./core_chunk/main-VpJ7L7Rf.js";
|
|
3
3
|
import "./core_chunk/template-CHODiQlc.js";
|
|
4
4
|
export { web_config_default as default, webConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{B as Ce,F as le,J as we,P as Z,R as $,U as q,V as Re,a as A,ct as se,o as fe,rt as Me,s as Ae,x as Ne}from"./index-BoPchUH8.js";var ke=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Mt=we("check",ke),c=se(Me(),1),x=se(Re(),1),Te="Label",de=c.forwardRef((e,t)=>(0,x.jsx)(le.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));de.displayName=Te;var xe=de;function At({className:e,...t}){return(0,x.jsx)(xe,{"data-slot":"label",className:Ne("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function Nt(e){const t=e+"CollectionProvider",[n,r]=Ce(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=o=>{const{scope:u,children:v}=o,g=c.useRef(null),h=c.useRef(new Map).current;return(0,x.jsx)(i,{scope:u,itemMap:h,collectionRef:g,children:v})};d.displayName=t;const a=e+"CollectionSlot",b=$(a),y=c.forwardRef((o,u)=>{const{scope:v,children:g}=o;return(0,x.jsx)(b,{ref:q(u,l(a,v).collectionRef),children:g})});y.displayName=a;const S=e+"CollectionItemSlot",s="data-radix-collection-item",m=$(S),p=c.forwardRef((o,u)=>{const{scope:v,children:g,...h}=o,f=c.useRef(null),C=q(u,f),w=l(S,v);return c.useEffect(()=>(w.itemMap.set(f,{ref:f,...h}),()=>void w.itemMap.delete(f))),(0,x.jsx)(m,{[s]:"",ref:C,children:g})});p.displayName=S;function E(o){const u=l(e+"CollectionConsumer",o);return c.useCallback(()=>{const v=u.collectionRef.current;if(!v)return[];const g=Array.from(v.querySelectorAll(`[${s}]`));return Array.from(u.itemMap.values()).sort((h,f)=>g.indexOf(h.ref.current)-g.indexOf(f.ref.current))},[u.collectionRef,u.itemMap])}return[{Provider:d,Slot:y,ItemSlot:p},E,r]}var Le=c.createContext(void 0);function kt(e){const t=c.useContext(Le);return e||t||"ltr"}var U=0;function Tt(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Q()),document.body.insertAdjacentElement("beforeend",e[1]??Q()),U++,()=>{U===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),U--}},[])}function Q(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var j="focusScope.autoFocusOnMount",K="focusScope.autoFocusOnUnmount",J={bubbles:!1,cancelable:!0},Pe="FocusScope",Ie=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...d}=e,[a,b]=c.useState(null),y=Z(i),S=Z(l),s=c.useRef(null),m=q(t,o=>b(o)),p=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let o=function(h){if(p.paused||!a)return;const f=h.target;a.contains(f)?s.current=f:M(s.current,{select:!0})},u=function(h){if(p.paused||!a)return;const f=h.relatedTarget;f!==null&&(a.contains(f)||M(s.current,{select:!0}))},v=function(h){if(document.activeElement===document.body)for(const f of h)f.removedNodes.length>0&&M(a)};document.addEventListener("focusin",o),document.addEventListener("focusout",u);const g=new MutationObserver(v);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",o),document.removeEventListener("focusout",u),g.disconnect()}}},[r,a,p.paused]),c.useEffect(()=>{if(a){te.add(p);const o=document.activeElement;if(!a.contains(o)){const u=new CustomEvent(j,J);a.addEventListener(j,y),a.dispatchEvent(u),u.defaultPrevented||(Fe(Be(ve(a)),{select:!0}),document.activeElement===o&&M(a))}return()=>{a.removeEventListener(j,y),setTimeout(()=>{const u=new CustomEvent(K,J);a.addEventListener(K,S),a.dispatchEvent(u),u.defaultPrevented||M(o??document.body,{select:!0}),a.removeEventListener(K,S),te.remove(p)},0)}}},[a,y,S,p]);const E=c.useCallback(o=>{if(!n&&!r||p.paused)return;const u=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,v=document.activeElement;if(u&&v){const g=o.currentTarget,[h,f]=_e(g);h&&f?!o.shiftKey&&v===f?(o.preventDefault(),n&&M(h,{select:!0})):o.shiftKey&&v===h&&(o.preventDefault(),n&&M(f,{select:!0})):v===g&&o.preventDefault()}},[n,r,p.paused]);return(0,x.jsx)(le.div,{tabIndex:-1,...d,ref:m,onKeyDown:E})});Ie.displayName=Pe;function Fe(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(M(r,{select:t}),document.activeElement!==n)return}function _e(e){const t=ve(e);return[ee(t,e),ee(t.reverse(),e)]}function ve(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ee(e,t){for(const n of e)if(!Oe(n,{upTo:t}))return n}function Oe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function De(e){return e instanceof HTMLInputElement&&"select"in e}function M(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&De(e)&&t&&e.select()}}var te=We();function We(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ne(e,t),e.unshift(t)},remove(t){e=ne(e,t),e[0]?.resume()}}}function ne(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Be(e){return e.filter(t=>t.tagName!=="A")}var Ue=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},N=new WeakMap,I=new WeakMap,F={},V=0,me=function(e){return e&&(e.host||me(e.parentNode))},je=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=me(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ke=function(e,t,n,r){var i=je(t,Array.isArray(e)?e:[e]);F[n]||(F[n]=new WeakMap);var l=F[n],d=[],a=new Set,b=new Set(i),y=function(s){!s||a.has(s)||(a.add(s),y(s.parentNode))};i.forEach(y);var S=function(s){!s||b.has(s)||Array.prototype.forEach.call(s.children,function(m){if(a.has(m))S(m);else try{var p=m.getAttribute(r),E=p!==null&&p!=="false",o=(N.get(m)||0)+1,u=(l.get(m)||0)+1;N.set(m,o),l.set(m,u),d.push(m),o===1&&E&&I.set(m,!0),u===1&&m.setAttribute(n,"true"),E||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return S(t),a.clear(),V++,function(){d.forEach(function(s){var m=N.get(s)-1,p=l.get(s)-1;N.set(s,m),l.set(s,p),m||(I.has(s)||s.removeAttribute(r),I.delete(s)),p||s.removeAttribute(n)}),V--,V||(N=new WeakMap,N=new WeakMap,I=new WeakMap,F={})}},xt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||Ue(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),Ke(r,i,n,"aria-hidden")):function(){return null}},D="right-scroll-bar-position",W="width-before-scroll-bar",Ve="with-scroll-bars-hidden",Xe="--removed-body-scroll-bar-size";function X(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ye(e,t){var n=(0,c.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var He=typeof window<"u"?c.useLayoutEffect:c.useEffect,re=new WeakMap;function qe(e,t){var n=Ye(t||null,function(r){return e.forEach(function(i){return X(i,r)})});return He(function(){var r=re.get(n);if(r){var i=new Set(r),l=new Set(e),d=n.current;i.forEach(function(a){l.has(a)||X(a,null)}),l.forEach(function(a){i.has(a)||X(a,d)})}re.set(n,e)},[e]),n}function Ge(e){return e}function ze(e,t){t===void 0&&(t=Ge);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(d){return d!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(d){return i(d)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var d=n;n=[],d.forEach(i),l=n}var a=function(){var y=l;l=[],y.forEach(i)},b=function(){return Promise.resolve().then(a)};b(),n={push:function(y){l.push(y),b()},filter:function(y){return l=l.filter(y),n}}}}}function Ze(e){e===void 0&&(e={});var t=ze(null);return t.options=A({async:!0,ssr:!1},e),t}var he=function(e){var t=e.sideCar,n=fe(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,A({},n))};he.isSideCarExport=!0;function $e(e,t){return e.useMedium(t),he}var pe=Ze(),Y=function(){},B=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Y,onWheelCapture:Y,onTouchMoveCapture:Y}),i=r[0],l=r[1],d=e.forwardProps,a=e.children,b=e.className,y=e.removeScrollBar,S=e.enabled,s=e.shards,m=e.sideCar,p=e.noRelative,E=e.noIsolation,o=e.inert,u=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,h=e.gapMode,f=fe(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,w=qe([n,t]),R=A(A({},f),i);return c.createElement(c.Fragment,null,S&&c.createElement(C,{sideCar:pe,removeScrollBar:y,shards:s,noRelative:p,noIsolation:E,inert:o,setCallbacks:l,allowPinchZoom:!!u,lockRef:n,gapMode:h}),d?c.cloneElement(c.Children.only(a),A(A({},R),{ref:w})):c.createElement(g,A({},R,{className:b,ref:w}),a))});B.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};B.classNames={fullWidth:W,zeroRight:D};var oe,Qe=function(){if(oe)return oe;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Je(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qe();return t&&e.setAttribute("nonce",t),e}function et(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tt(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var nt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Je())&&(et(t,n),tt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rt=function(){var e=nt();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ge=function(){var e=rt(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},ot={left:0,top:0,right:0,gap:0},H=function(e){return parseInt(e||"",10)||0},at=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[H(n),H(r),H(i)]},ct=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ot;var t=at(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},it=ge(),L="data-scroll-locked",ut=function(e,t,n,r){var i=e.left,l=e.top,d=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
1
|
+
import{B as Ce,F as le,J as we,P as Z,R as $,U as q,V as Re,a as A,ct as se,o as fe,rt as Me,s as Ae,x as Ne}from"./index-DdAGSRAR.js";var ke=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Mt=we("check",ke),c=se(Me(),1),x=se(Re(),1),Te="Label",de=c.forwardRef((e,t)=>(0,x.jsx)(le.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));de.displayName=Te;var xe=de;function At({className:e,...t}){return(0,x.jsx)(xe,{"data-slot":"label",className:Ne("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function Nt(e){const t=e+"CollectionProvider",[n,r]=Ce(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=o=>{const{scope:u,children:v}=o,g=c.useRef(null),h=c.useRef(new Map).current;return(0,x.jsx)(i,{scope:u,itemMap:h,collectionRef:g,children:v})};d.displayName=t;const a=e+"CollectionSlot",b=$(a),y=c.forwardRef((o,u)=>{const{scope:v,children:g}=o;return(0,x.jsx)(b,{ref:q(u,l(a,v).collectionRef),children:g})});y.displayName=a;const S=e+"CollectionItemSlot",s="data-radix-collection-item",m=$(S),p=c.forwardRef((o,u)=>{const{scope:v,children:g,...h}=o,f=c.useRef(null),C=q(u,f),w=l(S,v);return c.useEffect(()=>(w.itemMap.set(f,{ref:f,...h}),()=>void w.itemMap.delete(f))),(0,x.jsx)(m,{[s]:"",ref:C,children:g})});p.displayName=S;function E(o){const u=l(e+"CollectionConsumer",o);return c.useCallback(()=>{const v=u.collectionRef.current;if(!v)return[];const g=Array.from(v.querySelectorAll(`[${s}]`));return Array.from(u.itemMap.values()).sort((h,f)=>g.indexOf(h.ref.current)-g.indexOf(f.ref.current))},[u.collectionRef,u.itemMap])}return[{Provider:d,Slot:y,ItemSlot:p},E,r]}var Le=c.createContext(void 0);function kt(e){const t=c.useContext(Le);return e||t||"ltr"}var U=0;function Tt(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Q()),document.body.insertAdjacentElement("beforeend",e[1]??Q()),U++,()=>{U===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),U--}},[])}function Q(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var j="focusScope.autoFocusOnMount",K="focusScope.autoFocusOnUnmount",J={bubbles:!1,cancelable:!0},Pe="FocusScope",Ie=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...d}=e,[a,b]=c.useState(null),y=Z(i),S=Z(l),s=c.useRef(null),m=q(t,o=>b(o)),p=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let o=function(h){if(p.paused||!a)return;const f=h.target;a.contains(f)?s.current=f:M(s.current,{select:!0})},u=function(h){if(p.paused||!a)return;const f=h.relatedTarget;f!==null&&(a.contains(f)||M(s.current,{select:!0}))},v=function(h){if(document.activeElement===document.body)for(const f of h)f.removedNodes.length>0&&M(a)};document.addEventListener("focusin",o),document.addEventListener("focusout",u);const g=new MutationObserver(v);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",o),document.removeEventListener("focusout",u),g.disconnect()}}},[r,a,p.paused]),c.useEffect(()=>{if(a){te.add(p);const o=document.activeElement;if(!a.contains(o)){const u=new CustomEvent(j,J);a.addEventListener(j,y),a.dispatchEvent(u),u.defaultPrevented||(Fe(Be(ve(a)),{select:!0}),document.activeElement===o&&M(a))}return()=>{a.removeEventListener(j,y),setTimeout(()=>{const u=new CustomEvent(K,J);a.addEventListener(K,S),a.dispatchEvent(u),u.defaultPrevented||M(o??document.body,{select:!0}),a.removeEventListener(K,S),te.remove(p)},0)}}},[a,y,S,p]);const E=c.useCallback(o=>{if(!n&&!r||p.paused)return;const u=o.key==="Tab"&&!o.altKey&&!o.ctrlKey&&!o.metaKey,v=document.activeElement;if(u&&v){const g=o.currentTarget,[h,f]=_e(g);h&&f?!o.shiftKey&&v===f?(o.preventDefault(),n&&M(h,{select:!0})):o.shiftKey&&v===h&&(o.preventDefault(),n&&M(f,{select:!0})):v===g&&o.preventDefault()}},[n,r,p.paused]);return(0,x.jsx)(le.div,{tabIndex:-1,...d,ref:m,onKeyDown:E})});Ie.displayName=Pe;function Fe(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(M(r,{select:t}),document.activeElement!==n)return}function _e(e){const t=ve(e);return[ee(t,e),ee(t.reverse(),e)]}function ve(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ee(e,t){for(const n of e)if(!Oe(n,{upTo:t}))return n}function Oe(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function De(e){return e instanceof HTMLInputElement&&"select"in e}function M(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&De(e)&&t&&e.select()}}var te=We();function We(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ne(e,t),e.unshift(t)},remove(t){e=ne(e,t),e[0]?.resume()}}}function ne(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Be(e){return e.filter(t=>t.tagName!=="A")}var Ue=function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},N=new WeakMap,I=new WeakMap,F={},V=0,me=function(e){return e&&(e.host||me(e.parentNode))},je=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=me(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Ke=function(e,t,n,r){var i=je(t,Array.isArray(e)?e:[e]);F[n]||(F[n]=new WeakMap);var l=F[n],d=[],a=new Set,b=new Set(i),y=function(s){!s||a.has(s)||(a.add(s),y(s.parentNode))};i.forEach(y);var S=function(s){!s||b.has(s)||Array.prototype.forEach.call(s.children,function(m){if(a.has(m))S(m);else try{var p=m.getAttribute(r),E=p!==null&&p!=="false",o=(N.get(m)||0)+1,u=(l.get(m)||0)+1;N.set(m,o),l.set(m,u),d.push(m),o===1&&E&&I.set(m,!0),u===1&&m.setAttribute(n,"true"),E||m.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",m,v)}})};return S(t),a.clear(),V++,function(){d.forEach(function(s){var m=N.get(s)-1,p=l.get(s)-1;N.set(s,m),l.set(s,p),m||(I.has(s)||s.removeAttribute(r),I.delete(s)),p||s.removeAttribute(n)}),V--,V||(N=new WeakMap,N=new WeakMap,I=new WeakMap,F={})}},xt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||Ue(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),Ke(r,i,n,"aria-hidden")):function(){return null}},D="right-scroll-bar-position",W="width-before-scroll-bar",Ve="with-scroll-bars-hidden",Xe="--removed-body-scroll-bar-size";function X(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Ye(e,t){var n=(0,c.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var He=typeof window<"u"?c.useLayoutEffect:c.useEffect,re=new WeakMap;function qe(e,t){var n=Ye(t||null,function(r){return e.forEach(function(i){return X(i,r)})});return He(function(){var r=re.get(n);if(r){var i=new Set(r),l=new Set(e),d=n.current;i.forEach(function(a){l.has(a)||X(a,null)}),l.forEach(function(a){i.has(a)||X(a,d)})}re.set(n,e)},[e]),n}function Ge(e){return e}function ze(e,t){t===void 0&&(t=Ge);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(d){return d!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(d){return i(d)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var d=n;n=[],d.forEach(i),l=n}var a=function(){var y=l;l=[],y.forEach(i)},b=function(){return Promise.resolve().then(a)};b(),n={push:function(y){l.push(y),b()},filter:function(y){return l=l.filter(y),n}}}}}function Ze(e){e===void 0&&(e={});var t=ze(null);return t.options=A({async:!0,ssr:!1},e),t}var he=function(e){var t=e.sideCar,n=fe(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,A({},n))};he.isSideCarExport=!0;function $e(e,t){return e.useMedium(t),he}var pe=Ze(),Y=function(){},B=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:Y,onWheelCapture:Y,onTouchMoveCapture:Y}),i=r[0],l=r[1],d=e.forwardProps,a=e.children,b=e.className,y=e.removeScrollBar,S=e.enabled,s=e.shards,m=e.sideCar,p=e.noRelative,E=e.noIsolation,o=e.inert,u=e.allowPinchZoom,v=e.as,g=v===void 0?"div":v,h=e.gapMode,f=fe(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=m,w=qe([n,t]),R=A(A({},f),i);return c.createElement(c.Fragment,null,S&&c.createElement(C,{sideCar:pe,removeScrollBar:y,shards:s,noRelative:p,noIsolation:E,inert:o,setCallbacks:l,allowPinchZoom:!!u,lockRef:n,gapMode:h}),d?c.cloneElement(c.Children.only(a),A(A({},R),{ref:w})):c.createElement(g,A({},R,{className:b,ref:w}),a))});B.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};B.classNames={fullWidth:W,zeroRight:D};var oe,Qe=function(){if(oe)return oe;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Je(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qe();return t&&e.setAttribute("nonce",t),e}function et(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tt(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}var nt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Je())&&(et(t,n),tt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rt=function(){var e=nt();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ge=function(){var e=rt(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},ot={left:0,top:0,right:0,gap:0},H=function(e){return parseInt(e||"",10)||0},at=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[H(n),H(r),H(i)]},ct=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ot;var t=at(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},it=ge(),L="data-scroll-locked",ut=function(e,t,n,r){var i=e.left,l=e.top,d=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
2
2
|
.`.concat(Ve,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as F,F as y,M as A,P as q,V as P,ct as E,it as j,rt as I,x as h}from"./index-
|
|
1
|
+
import{B as F,F as y,M as A,P as q,V as P,ct as E,it as j,rt as I,x as h}from"./index-DdAGSRAR.js";var V=j({"../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js":(t=>{var e=I();function o(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var n=typeof Object.is=="function"?Object.is:o,u=e.useState,a=e.useEffect,v=e.useLayoutEffect,i=e.useDebugValue;function c(r,s){var m=s(),g=u({inst:{value:m,getSnapshot:s}}),l=g[0].inst,x=g[1];return v(function(){l.value=m,l.getSnapshot=s,d(l)&&x({inst:l})},[r,m,s]),a(function(){return d(l)&&x({inst:l}),r(function(){d(l)&&x({inst:l})})},[r]),i(m),m}function d(r){var s=r.getSnapshot;r=r.value;try{var m=s();return!n(r,m)}catch{return!0}}function S(r,s){return s()}var _=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?S:c;t.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:_})}),$=j({"../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@19.2.0/node_modules/use-sync-external-store/shim/index.js":((t,e)=>{e.exports=V()})}),z=E($(),1);function T(){return(0,z.useSyncExternalStore)(B,()=>!0,()=>!1)}function B(){return()=>{}}var f=E(I(),1),p=E(P(),1),L="Avatar",[D,W]=F(L),[G,b]=D(L),C=f.forwardRef((t,e)=>{const{__scopeAvatar:o,...n}=t,[u,a]=f.useState("idle");return(0,p.jsx)(G,{scope:o,imageLoadingStatus:u,onImageLoadingStatusChange:a,children:(0,p.jsx)(y.span,{...n,ref:e})})});C.displayName=L;var R="AvatarImage",k=f.forwardRef((t,e)=>{const{__scopeAvatar:o,src:n,onLoadingStatusChange:u=()=>{},...a}=t,v=b(R,o),i=H(n,a),c=q(d=>{u(d),v.onImageLoadingStatusChange(d)});return A(()=>{i!=="idle"&&c(i)},[i,c]),i==="loaded"?(0,p.jsx)(y.img,{...a,ref:e,src:n}):null});k.displayName=R;var N="AvatarFallback",M=f.forwardRef((t,e)=>{const{__scopeAvatar:o,delayMs:n,...u}=t,a=b(N,o),[v,i]=f.useState(n===void 0);return f.useEffect(()=>{if(n!==void 0){const c=window.setTimeout(()=>i(!0),n);return()=>window.clearTimeout(c)}},[n]),v&&a.imageLoadingStatus!=="loaded"?(0,p.jsx)(y.span,{...u,ref:e}):null});M.displayName=N;function w(t,e){return t?e?(t.src!==e&&(t.src=e),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function H(t,{referrerPolicy:e,crossOrigin:o}){const n=T(),u=f.useRef(null),a=n?(u.current||(u.current=new window.Image),u.current):null,[v,i]=f.useState(()=>w(a,t));return A(()=>{i(w(a,t))},[a,t]),A(()=>{const c=_=>()=>{i(_)};if(!a)return;const d=c("loaded"),S=c("error");return a.addEventListener("load",d),a.addEventListener("error",S),e&&(a.referrerPolicy=e),typeof o=="string"&&(a.crossOrigin=o),()=>{a.removeEventListener("load",d),a.removeEventListener("error",S)}},[a,o,e]),v}var J=C,K=k,O=M;function Q({className:t,...e}){return(0,p.jsx)(J,{"data-slot":"avatar",className:h("relative flex size-8 shrink-0 overflow-hidden rounded-full",t),...e})}function X({className:t,...e}){return(0,p.jsx)(K,{"data-slot":"avatar-image",className:h("aspect-square size-full",t),...e})}function Y({className:t,...e}){return(0,p.jsx)(O,{"data-slot":"avatar-fallback",className:h("bg-muted flex size-full items-center justify-center rounded-full",t),...e})}export{Y as n,X as r,Q as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as s,Q as r,X as o,Y as e,Z as i}from"./index-
|
|
1
|
+
import{$ as s,Q as r,X as o,Y as e,Z as i}from"./index-DdAGSRAR.js";export{e as Resource,o as SERIALIZE_TO_IPC_FN,i as invoke,r as isTauri,s as transformCallback};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as e}from"./index-
|
|
1
|
+
import{J as e}from"./index-DdAGSRAR.js";var c=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],a=e("eye",c);export{a as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/page-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/page-Cowml-bh.js","assets/select-ChvEL4Ce.js","assets/Combination-9Z3vZ_qB.js","assets/separator-D-H2bJ1_.js","assets/request-CeqCIAeR.js","assets/eye-CcwaLhDE.js","assets/page-MMB_BSjZ.js","assets/parsers-ClyIAubm.js","assets/page-qIT1EIL9.css","assets/page-P63JbsyL.js","assets/avatar-DCKZKMua.js","assets/page-Y-k61toL.js","assets/page-DkpX06Dm.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var A_=Object.create,xd=Object.defineProperty,C_=Object.getOwnPropertyDescriptor,Cy=Object.getOwnPropertyNames,N_=Object.getPrototypeOf,R_=Object.prototype.hasOwnProperty,Rn=(n,a)=>function(){return a||(0,n[Cy(n)[0]])((a={exports:{}}).exports,a),a.exports},cz=n=>{let a={};for(var l in n)xd(a,l,{get:n[l],enumerable:!0});return a},O_=(n,a,l,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(var s=Cy(a),u=0,d=s.length,h;u<d;u++)h=s[u],!R_.call(n,h)&&h!==l&&xd(n,h,{get:(m=>a[m]).bind(null,h),enumerable:!(o=C_(a,h))||o.enumerable});return n},vi=(n,a,l)=>(l=n!=null?A_(N_(n)):{},O_(a||!n||!n.__esModule?xd(l,"default",{value:n,enumerable:!0}):l,n)),uz=n=>a=>vi(a.default,n),fz=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(a,l)=>(typeof require<"u"?require:a)[l]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Calling `require` for "'+n+"\" in an environment that doesn't expose the `require` function.")});(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function l(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function o(s){if(s.ep)return;s.ep=!0;const u=l(s);fetch(s.href,u)}})();var z_=Rn({"../../node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js":(n=>{function a(W,G){var M=W.length;W.push(G);e:for(;0<M;){var se=M-1>>>1,me=W[se];if(0<s(me,G))W[se]=G,W[M]=me,M=se;else break e}}function l(W){return W.length===0?null:W[0]}function o(W){if(W.length===0)return null;var G=W[0],M=W.pop();if(M!==G){W[0]=M;e:for(var se=0,me=W.length,Me=me>>>1;se<Me;){var N=2*(se+1)-1,q=W[N],J=N+1,te=W[J];if(0>s(q,M))J<me&&0>s(te,q)?(W[se]=te,W[J]=M,se=J):(W[se]=q,W[N]=M,se=N);else if(J<me&&0>s(te,M))W[se]=te,W[J]=M,se=J;else break e}}return G}function s(W,G){var M=W.sortIndex-G.sortIndex;return M!==0?M:W.id-G.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var m=[],p=[],g=1,y=null,_=3,S=!1,E=!1,R=!1,z=!1,O=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function V(W){for(var G=l(p);G!==null;){if(G.callback===null)o(p);else if(G.startTime<=W)o(p),G.sortIndex=G.expirationTime,a(m,G);else break;G=l(p)}}function F(W){if(R=!1,V(W),!E)if(l(m)!==null)E=!0,$||($=!0,ee());else{var G=l(p);G!==null&&Ae(F,G.startTime-W)}}var $=!1,I=-1,Z=5,ne=-1;function fe(){return z?!0:!(n.unstable_now()-ne<Z)}function de(){if(z=!1,$){var W=n.unstable_now();ne=W;var G=!0;try{e:{E=!1,R&&(R=!1,A(I),I=-1),S=!0;var M=_;try{t:{for(V(W),y=l(m);y!==null&&!(y.expirationTime>W&&fe());){var se=y.callback;if(typeof se=="function"){y.callback=null,_=y.priorityLevel;var me=se(y.expirationTime<=W);if(W=n.unstable_now(),typeof me=="function"){y.callback=me,V(W),G=!0;break t}y===l(m)&&o(m),V(W)}else o(m);y=l(m)}if(y!==null)G=!0;else{var Me=l(p);Me!==null&&Ae(F,Me.startTime-W),G=!1}}break e}finally{y=null,_=M,S=!1}G=void 0}}finally{G?ee():$=!1}}}var ee;if(typeof B=="function")ee=function(){B(de)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,xe=Se.port2;Se.port1.onmessage=de,ee=function(){xe.postMessage(null)}}else ee=function(){O(de,0)};function Ae(W,G){I=O(function(){W(n.unstable_now())},G)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(W){W.callback=null},n.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<W?Math.floor(1e3/W):5},n.unstable_getCurrentPriorityLevel=function(){return _},n.unstable_next=function(W){switch(_){case 1:case 2:case 3:var G=3;break;default:G=_}var M=_;_=G;try{return W()}finally{_=M}},n.unstable_requestPaint=function(){z=!0},n.unstable_runWithPriority=function(W,G){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var M=_;_=W;try{return G()}finally{_=M}},n.unstable_scheduleCallback=function(W,G,M){var se=n.unstable_now();switch(typeof M=="object"&&M!==null?(M=M.delay,M=typeof M=="number"&&0<M?se+M:se):M=se,W){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=M+me,W={id:g++,callback:G,priorityLevel:W,startTime:M,expirationTime:me,sortIndex:-1},M>se?(W.sortIndex=M,a(p,W),l(m)===null&&W===l(p)&&(R?(A(I),I=-1):R=!0,Ae(F,M-se))):(W.sortIndex=me,a(m,W),E||S||(E=!0,$||($=!0,ee()))),W},n.unstable_shouldYield=fe,n.unstable_wrapCallback=function(W){var G=_;return function(){var M=_;_=G;try{return W.apply(this,arguments)}finally{_=M}}}})}),k_=Rn({"../../node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/index.js":((n,a)=>{a.exports=z_()})}),M_=Rn({"../../node_modules/.pnpm/react@19.2.0/node_modules/react/cjs/react.production.js":(n=>{var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),S=Symbol.iterator;function E(N){return N===null||typeof N!="object"?null:(N=S&&N[S]||N["@@iterator"],typeof N=="function"?N:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z=Object.assign,O={};function A(N,q,J){this.props=N,this.context=q,this.refs=O,this.updater=J||R}A.prototype.isReactComponent={},A.prototype.setState=function(N,q){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,q,"setState")},A.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function B(){}B.prototype=A.prototype;function V(N,q,J){this.props=N,this.context=q,this.refs=O,this.updater=J||R}var F=V.prototype=new B;F.constructor=V,z(F,A.prototype),F.isPureReactComponent=!0;var $=Array.isArray;function I(){}var Z={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function fe(N,q,J){var te=J.ref;return{$$typeof:a,type:N,key:q,ref:te!==void 0?te:null,props:J}}function de(N,q){return fe(N.type,q,N.props)}function ee(N){return typeof N=="object"&&N!==null&&N.$$typeof===a}function Se(N){var q={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(J){return q[J]})}var xe=/\/+/g;function Ae(N,q){return typeof N=="object"&&N!==null&&N.key!=null?Se(""+N.key):q.toString(36)}function W(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(I,I):(N.status="pending",N.then(function(q){N.status==="pending"&&(N.status="fulfilled",N.value=q)},function(q){N.status==="pending"&&(N.status="rejected",N.reason=q)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function G(N,q,J,te,pe){var re=typeof N;(re==="undefined"||re==="boolean")&&(N=null);var Ce=!1;if(N===null)Ce=!0;else switch(re){case"bigint":case"string":case"number":Ce=!0;break;case"object":switch(N.$$typeof){case a:case l:Ce=!0;break;case y:return Ce=N._init,G(Ce(N._payload),q,J,te,pe)}}if(Ce)return pe=pe(N),Ce=te===""?"."+Ae(N,0):te,$(pe)?(J="",Ce!=null&&(J=Ce.replace(xe,"$&/")+"/"),G(pe,q,J,"",function(dn){return dn})):pe!=null&&(ee(pe)&&(pe=de(pe,J+(pe.key==null||N&&N.key===pe.key?"":(""+pe.key).replace(xe,"$&/")+"/")+Ce)),q.push(pe)),1;Ce=0;var Fe=te===""?".":te+":";if($(N))for(var Le=0;Le<N.length;Le++)te=N[Le],re=Fe+Ae(te,Le),Ce+=G(te,q,J,re,pe);else if(Le=E(N),typeof Le=="function")for(N=Le.call(N),Le=0;!(te=N.next()).done;)te=te.value,re=Fe+Ae(te,Le++),Ce+=G(te,q,J,re,pe);else if(re==="object"){if(typeof N.then=="function")return G(W(N),q,J,te,pe);throw q=String(N),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Ce}function M(N,q,J){if(N==null)return N;var te=[],pe=0;return G(N,te,"","",function(re){return q.call(J,re,pe++)}),te}function se(N){if(N._status===-1){var q=N._result;q=q(),q.then(function(J){(N._status===0||N._status===-1)&&(N._status=1,N._result=J)},function(J){(N._status===0||N._status===-1)&&(N._status=2,N._result=J)}),N._status===-1&&(N._status=0,N._result=q)}if(N._status===1)return N._result.default;throw N._result}var me=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},Me={map:M,forEach:function(N,q,J){M(N,function(){q.apply(this,arguments)},J)},count:function(N){var q=0;return M(N,function(){q++}),q},toArray:function(N){return M(N,function(q){return q})||[]},only:function(N){if(!ee(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};n.Activity=_,n.Children=Me,n.Component=A,n.Fragment=o,n.Profiler=u,n.PureComponent=V,n.StrictMode=s,n.Suspense=p,n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,n.__COMPILER_RUNTIME={__proto__:null,c:function(N){return Z.H.useMemoCache(N)}},n.cache=function(N){return function(){return N.apply(null,arguments)}},n.cacheSignal=function(){return null},n.cloneElement=function(N,q,J){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var te=z({},N.props),pe=N.key;if(q!=null)for(re in q.key!==void 0&&(pe=""+q.key),q)!ne.call(q,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&q.ref===void 0||(te[re]=q[re]);var re=arguments.length-2;if(re===1)te.children=J;else if(1<re){for(var Ce=Array(re),Fe=0;Fe<re;Fe++)Ce[Fe]=arguments[Fe+2];te.children=Ce}return fe(N.type,pe,te)},n.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:d,_context:N},N},n.createElement=function(N,q,J){var te,pe={},re=null;if(q!=null)for(te in q.key!==void 0&&(re=""+q.key),q)ne.call(q,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(pe[te]=q[te]);var Ce=arguments.length-2;if(Ce===1)pe.children=J;else if(1<Ce){for(var Fe=Array(Ce),Le=0;Le<Ce;Le++)Fe[Le]=arguments[Le+2];pe.children=Fe}if(N&&N.defaultProps)for(te in Ce=N.defaultProps,Ce)pe[te]===void 0&&(pe[te]=Ce[te]);return fe(N,re,pe)},n.createRef=function(){return{current:null}},n.forwardRef=function(N){return{$$typeof:m,render:N}},n.isValidElement=ee,n.lazy=function(N){return{$$typeof:y,_payload:{_status:-1,_result:N},_init:se}},n.memo=function(N,q){return{$$typeof:g,type:N,compare:q===void 0?null:q}},n.startTransition=function(N){var q=Z.T,J={};Z.T=J;try{var te=N(),pe=Z.S;pe!==null&&pe(J,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(I,me)}catch(re){me(re)}finally{q!==null&&J.types!==null&&(q.types=J.types),Z.T=q}},n.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},n.use=function(N){return Z.H.use(N)},n.useActionState=function(N,q,J){return Z.H.useActionState(N,q,J)},n.useCallback=function(N,q){return Z.H.useCallback(N,q)},n.useContext=function(N){return Z.H.useContext(N)},n.useDebugValue=function(){},n.useDeferredValue=function(N,q){return Z.H.useDeferredValue(N,q)},n.useEffect=function(N,q){return Z.H.useEffect(N,q)},n.useEffectEvent=function(N){return Z.H.useEffectEvent(N)},n.useId=function(){return Z.H.useId()},n.useImperativeHandle=function(N,q,J){return Z.H.useImperativeHandle(N,q,J)},n.useInsertionEffect=function(N,q){return Z.H.useInsertionEffect(N,q)},n.useLayoutEffect=function(N,q){return Z.H.useLayoutEffect(N,q)},n.useMemo=function(N,q){return Z.H.useMemo(N,q)},n.useOptimistic=function(N,q){return Z.H.useOptimistic(N,q)},n.useReducer=function(N,q,J){return Z.H.useReducer(N,q,J)},n.useRef=function(N){return Z.H.useRef(N)},n.useState=function(N){return Z.H.useState(N)},n.useSyncExternalStore=function(N,q,J){return Z.H.useSyncExternalStore(N,q,J)},n.useTransition=function(){return Z.H.useTransition()},n.version="19.2.0"})}),wd=Rn({"../../node_modules/.pnpm/react@19.2.0/node_modules/react/index.js":((n,a)=>{a.exports=M_()})}),D_=Rn({"../../node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/cjs/react-dom.production.js":(n=>{var a=wd();function l(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(l(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(p,g,y){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:_==null?null:""+_,children:p,containerInfo:g,implementation:y}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,n.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(l(299));return d(p,g,null,y)},n.flushSync=function(p){var g=h.T,y=s.p;try{if(h.T=null,s.p=2,p)return p()}finally{h.T=g,s.p=y,s.d.f()}},n.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(p,g))},n.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},n.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,_=m(y,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?s.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:_,integrity:S,fetchPriority:E}):y==="script"&&s.d.X(p,{crossOrigin:_,integrity:S,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},n.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=m(g.as,g.crossOrigin);s.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g??s.d.M(p)},n.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,_=m(y,g.crossOrigin);s.d.L(p,y,{crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},n.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=m(g.as,g.crossOrigin);s.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(p)},n.requestFormReset=function(p){s.d.r(p)},n.unstable_batchedUpdates=function(p,g){return p(g)},n.useFormState=function(p,g,y){return h.H.useFormState(p,g,y)},n.useFormStatus=function(){return h.H.useHostTransitionStatus()},n.version="19.2.0"})}),Ps=Rn({"../../node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/index.js":((n,a)=>{function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(o){console.error(o)}}l(),a.exports=D_()})}),j_=Rn({"../../node_modules/.pnpm/react-dom@19.2.0_react@19.2.0/node_modules/react-dom/cjs/react-dom-client.production.js":(n=>{var a=k_(),l=wd(),o=Ps();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}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."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(d(e)!==e)throw Error(s(188))}function g(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(s(188));return t!==e?null:e}for(var i=e,r=t;;){var c=i.return;if(c===null)break;var f=c.alternate;if(f===null){if(r=c.return,r!==null){i=r;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===i)return p(c),e;if(f===r)return p(c),t;f=f.sibling}throw Error(s(188))}if(i.return!==r.return)i=c,r=f;else{for(var v=!1,w=c.child;w;){if(w===i){v=!0,i=c,r=f;break}if(w===r){v=!0,r=c,i=f;break}w=w.sibling}if(!v){for(w=f.child;w;){if(w===i){v=!0,i=f,r=c;break}if(w===r){v=!0,r=f,i=c;break}w=w.sibling}if(!v)throw Error(s(189))}}if(i.alternate!==r)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var _=Object.assign,S=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),V=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function Se(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var xe=Symbol.for("react.client.reference");function Ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===xe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case z:return"Fragment";case A:return"Profiler";case O:return"StrictMode";case $:return"Suspense";case I:return"SuspenseList";case fe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case V:return e.displayName||"Context";case B:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:Ae(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return Ae(e(t))}catch{}}return null}var W=Array.isArray,G=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},me=[],Me=-1;function N(e){return{current:e}}function q(e){0>Me||(e.current=me[Me],me[Me]=null,Me--)}function J(e,t){Me++,me[Me]=e.current,e.current=t}var te=N(null),pe=N(null),re=N(null),Ce=N(null);function Fe(e,t){switch(J(re,t),J(pe,e),J(te,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ov(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ov(t),e=zv(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(te),J(te,e)}function Le(){q(te),q(pe),q(re)}function dn(e){e.memoizedState!==null&&J(Ce,e);var t=te.current,i=zv(t,e.type);t!==i&&(J(pe,e),J(te,i))}function hn(e){pe.current===e&&(q(te),q(pe)),Ce.current===e&&(q(Ce),gr._currentValue=se)}var ca,oh;function Ya(e){if(ca===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);ca=t&&t[1]||"",oh=-1<i.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+ca+e+oh}var uc=!1;function fc(e,t){if(!e||uc)return"";uc=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(H){var U=H}Reflect.construct(e,[],P)}else{try{P.call()}catch(H){U=H}e.call(P.prototype)}}else{try{throw Error()}catch(H){U=H}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(H){if(H&&U&&typeof H.stack=="string")return[H.stack,U.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=r.DetermineComponentFrameRoot(),v=f[0],w=f[1];if(v&&w){var T=v.split(`
|
|
@@ -219,7 +219,7 @@ If it's not possible to explain the root problem from this data, please ask me f
|
|
|
219
219
|
- less than the value passed to \`max\` (or ${lh} if no \`max\` prop is set)
|
|
220
220
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
221
221
|
|
|
222
|
-
Defaulting to \`null\`.`}var AR=Pb,CR=Jb;function NR({className:n,value:a,...l}){return(0,Q.jsx)(AR,{"data-slot":"progress",className:Pt("overflow-hidden relative w-full h-2 rounded-full bg-primary/20",n),...l,children:(0,Q.jsx)(CR,{"data-slot":"progress-indicator",className:"flex-1 w-full h-full transition-all bg-primary",style:{transform:`translateX(-${100-(a||0)}%)`}})})}const RR=()=>{const[n,a]=(0,x.useState)(0);return(0,x.useEffect)(()=>{const l=Date.now(),o=setInterval(()=>{const s=Date.now()-l,u=Math.min(s/150*100,100);a(u),u>=100&&clearInterval(o)},16);return()=>clearInterval(o)},[]),(0,Q.jsx)("div",{className:"flex justify-center items-center h-screen bg-background",children:(0,Q.jsxs)("div",{className:"flex flex-col items-center p-8 space-y-6 w-full max-w-md",children:[(0,Q.jsx)("img",{src:"/loading.svg",alt:"加载中",className:"w-96 h-96"}),(0,Q.jsxs)("div",{className:"space-y-2 text-center",children:[(0,Q.jsx)("h3",{className:"text-4xl font-semibold text-foreground",children:"加载中"}),(0,Q.jsx)("p",{className:"text-sm text-muted-foreground",children:"正在加载页面内容..."})]}),(0,Q.jsxs)("div",{className:"space-y-2 w-full",children:[(0,Q.jsx)(NR,{value:n,className:"w-full h-2"}),(0,Q.jsxs)("div",{className:"flex justify-between text-xs text-muted-foreground",children:[(0,Q.jsx)("span",{children:"加载中..."}),(0,Q.jsxs)("span",{children:[Math.round(n),"%"]})]})]}),(0,Q.jsxs)("div",{className:"flex space-x-2",children:[(0,Q.jsx)("div",{className:"w-2 h-2 rounded-full animate-bounce bg-primary",style:{animationDelay:"0ms"}}),(0,Q.jsx)("div",{className:"w-2 h-2 rounded-full animate-bounce bg-primary",style:{animationDelay:"150ms"}}),(0,Q.jsx)("div",{className:"w-2 h-2 rounded-full animate-bounce bg-primary",style:{animationDelay:"300ms"}})]})]})})};var OR="true",zR="false",gy=OR==="true",kR=zR==="true";function MR(n={}){const{immediate:a=!1,onNeedRefresh:l,onOfflineReady:o,onRegistered:s,onRegisteredSW:u,onRegisterError:d}=n;let h,m,p;const g=async(_=!0)=>{await m,gy||p?.()};async function y(){if("serviceWorker"in navigator){if(h=await gi(async()=>{const{Workbox:_}=await import("workbox-window");return{Workbox:_}},[]).then(({Workbox:_})=>new _("/kkk/sw.js",{scope:"/kkk/",type:"classic"})).catch(_=>{d?.(_)}),!h)return;if(p=()=>{h?.messageSkipWaiting()},!kR)if(gy)h.addEventListener("activated",_=>{(_.isUpdate||_.isExternal)&&window.location.reload()}),h.addEventListener("installed",_=>{_.isUpdate||o?.()});else{let _=!1;const S=()=>{_=!0,h?.addEventListener("controlling",E=>{E.isUpdate&&window.location.reload()}),l?.()};h.addEventListener("installed",E=>{typeof E.isUpdate>"u"?typeof E.isExternal<"u"&&E.isExternal?S():!_&&o?.():E.isUpdate||o?.()}),h.addEventListener("waiting",S)}h.register({immediate:a}).then(_=>{u?u("/kkk/sw.js",_):s?.(_)}).catch(_=>{d?.(_)})}}return m=y(),g}function DR(n={}){const{immediate:a=!0,onNeedRefresh:l,onOfflineReady:o,onRegistered:s,onRegisteredSW:u,onRegisterError:d}=n,[h,m]=(0,x.useState)(!1),[p,g]=(0,x.useState)(!1),[y]=(0,x.useState)(()=>MR({immediate:a,onOfflineReady(){g(!0),o?.()},onNeedRefresh(){m(!0),l?.()},onRegistered:s,onRegisteredSW:u,onRegisterError:d}));return{needRefresh:[h,m],offlineReady:[p,g],updateServiceWorker:y}}var yy=n=>typeof n=="boolean"?`${n}`:n===0?"0":n;const by=Ob,Kb=(n,a)=>l=>{var o;if(a?.variants==null)return by(n,l?.class,l?.className);const{variants:s,defaultVariants:u}=a,d=Object.keys(s).map(m=>{const p=l?.[m],g=u?.[m];if(p===null)return null;const y=yy(p)||yy(g);return s[m][y]}),h=l&&Object.entries(l).reduce((m,p)=>{let[g,y]=p;return y===void 0||(m[g]=y),m},{});return by(n,d,a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((m,p)=>{let{class:g,className:y,..._}=p;return Object.entries(_).every(S=>{let[E,R]=S;return Array.isArray(R)?R.includes({...u,...h}[E]):{...u,...h}[E]===R})?[...m,g,y]:m},[]),l?.class,l?.className)};var jR=Kb("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function LR({className:n,variant:a,...l}){return(0,Q.jsx)("div",{"data-slot":"alert",role:"alert",className:Pt(jR({variant:a}),n),...l})}function UR({className:n,...a}){return(0,Q.jsx)("div",{"data-slot":"alert-description",className:Pt("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",n),...a})}var HR=Kb("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function xy({className:n,variant:a,size:l,asChild:o=!1,...s}){return(0,Q.jsx)(o?fA:"button",{"data-slot":"button",className:Pt(HR({variant:a,size:l,className:n})),...s})}function BR({className:n,...a}){return(0,Q.jsx)("div",{"data-slot":"card",className:Pt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n),...a})}function Vz({className:n,...a}){return(0,Q.jsx)("div",{"data-slot":"card-header",className:Pt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",n),...a})}function Xz({className:n,...a}){return(0,Q.jsx)("div",{"data-slot":"card-title",className:Pt("leading-none font-semibold",n),...a})}function Qz({className:n,...a}){return(0,Q.jsx)("div",{"data-slot":"card-description",className:Pt("text-muted-foreground text-sm",n),...a})}function qR({className:n,...a}){return(0,Q.jsx)("div",{"data-slot":"card-content",className:Pt("px-6",n),...a})}function GR(){const[n,a]=(0,x.useState)(!1),[l,o]=(0,x.useState)(!1),[s,u]=(0,x.useState)(!1),{offlineReady:[d,h],needRefresh:[m,p],updateServiceWorker:g}=DR({onRegistered(R){console.log("SW Registered: ",R)},onRegisterError(R){console.log("SW registration error",R)}});(0,x.useEffect)(()=>{},[]),(0,x.useEffect)(()=>{m&&a(!0)},[m]);const y=()=>{g(!0),a(!1)},_=()=>{h(!1),p(!1),o(!1),u(!1),a(!1)},S=d||l,E=m||s;return!n&&!S?null:(0,Q.jsx)(BR,{className:"fixed right-4 bottom-4 z-50 w-80 shadow-lg",children:(0,Q.jsx)(qR,{className:"p-4",children:E&&(0,Q.jsxs)("div",{className:"space-y-3",children:[(0,Q.jsxs)(LR,{children:[(0,Q.jsx)(Qg,{className:"w-4 h-4"}),(0,Q.jsxs)(UR,{className:"text-blue-600",children:["发现新版本,是否立即更新?",!1]})]}),(0,Q.jsxs)("div",{className:"flex gap-2",children:[(0,Q.jsxs)(xy,{onClick:y,size:"sm",className:"flex-1",children:[(0,Q.jsx)(Qg,{className:"mr-2 w-4 h-4"}),"更新"]}),(0,Q.jsx)(xy,{variant:"outline",onClick:_,size:"sm",className:"flex-1",children:"稍后"})]})]})})})}const YR=()=>{const n=localStorage.getItem("accessToken"),a=localStorage.getItem("refreshToken"),l=localStorage.getItem("userId");return!!(n||a)&&!!l},VR=n=>{const a=n.component;return n.protected?YR()?(0,Q.jsx)(a,{}):(0,Q.jsx)(zS,{to:"/login",replace:!0}):(0,Q.jsx)(a,{})};var XR=function(n){return function(a,l){var o=(0,x.useRef)(!1);n(function(){return function(){o.current=!1}},[]),n(function(){if(!o.current)o.current=!0;else return a()},l)}},wy=function(){return wy=Object.assign||function(a){for(var l,o=1,s=arguments.length;o<s;o++){l=arguments[o];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(a[u]=l[u])}return a},wy.apply(this,arguments)};function Zz(n,a){var l={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&a.indexOf(o)<0&&(l[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(n);s<o.length;s++)a.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(n,o[s])&&(l[o[s]]=n[o[s]]);return l}function QR(n,a){var l=typeof Symbol=="function"&&n[Symbol.iterator];if(!l)return n;var o=l.call(n),s,u=[],d;try{for(;(a===void 0||a-- >0)&&!(s=o.next()).done;)u.push(s.value)}catch(h){d={error:h}}finally{try{s&&!s.done&&(l=o.return)&&l.call(o)}finally{if(d)throw d.error}}return u}function Pz(n,a,l){if(l||arguments.length===2)for(var o=0,s=a.length,u;o<s;o++)(u||!(o in a))&&(u||(u=Array.prototype.slice.call(a,0,o)),u[o]=a[o]);return n.concat(u||Array.prototype.slice.call(a))}var gd=function(n){return typeof n=="function"},ZR=function(n){return typeof n>"u"};var PR=function(n){var a=(0,x.useRef)(n);a.current=(0,x.useMemo)(function(){return n},[n]);var l=(0,x.useRef)(void 0);return l.current||(l.current=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return a.current.apply(this,o)}),l.current},WR=PR,JR=XR(x.useEffect);function FR(n,a){if(n===a)return!0;for(var l=0;l<n.length;l++)if(!Object.is(n[l],a[l]))return!1;return!0}var _y=FR;function KR(n){var a=(0,x.useRef)(n);return a.current=n,a}var Ib=KR,IR=function(n){var a=Ib(n);(0,x.useEffect)(function(){return function(){a.current()}},[])},$R=IR,eO=!!(typeof window<"u"&&window.document&&window.document.createElement),$b=eO;function ex(n,a){if($b){if(!n)return a;var l;return gd(n)?l=n():"current"in n?l=n.current:l=n,l}}var tO=function(n){var a=function(l,o,s){var u=(0,x.useRef)(!1),d=(0,x.useRef)([]),h=(0,x.useRef)([]),m=(0,x.useRef)(void 0);n(function(){var p,g=(Array.isArray(s)?s:[s]).map(function(y){return ex(y)});if(!u.current){u.current=!0,d.current=g,h.current=o,m.current=l();return}(g.length!==d.current.length||!_y(d.current,g)||!_y(h.current,o))&&((p=m.current)===null||p===void 0||p.call(m),d.current=g,h.current=o,m.current=l())}),$R(function(){var p;(p=m.current)===null||p===void 0||p.call(m),u.current=!1})};return a},nO=tO,aO=nO(x.useEffect),iO=aO;function lO(n,a,l){l===void 0&&(l={});var o=l.enable,s=o===void 0?!0:o,u=Ib(a);iO(function(){if(s){var d=ex(l.target,window);if(d?.addEventListener){var h=function(p){return u.current(p)},m=Array.isArray(n)?n:[n];return m.forEach(function(p){d.addEventListener(p,h,{capture:l.capture,once:l.once,passive:l.passive})}),function(){m.forEach(function(p){d.removeEventListener(p,h,{capture:l.capture})})}}}},[n,l.capture,l.once,l.passive,s],l.target)}var Sy=lO,Ey="AHOOKS_SYNC_STORAGE_EVENT_NAME";function rO(n){function a(l,o){o===void 0&&(o={});var s,u=o.listenStorageChange,d=u===void 0?!1:u,h=o.onError,m=h===void 0?function(A){console.error(A)}:h;try{s=n()}catch(A){m(A)}var p=function(A){return o.serializer?o.serializer(A):JSON.stringify(A)},g=function(A){return o.deserializer?o.deserializer(A):JSON.parse(A)};function y(){try{var A=s?.getItem(l);if(A)return g(A)}catch(B){m(B)}return gd(o.defaultValue)?o.defaultValue():o.defaultValue}var _=QR((0,x.useState)(y),2),S=_[0],E=_[1];JR(function(){E(y())},[l]);var R=function(A){var B=gd(A)?A(S):A;d||E(B);try{var V=void 0,F=s?.getItem(l);ZR(B)?(V=null,s?.removeItem(l)):(V=p(B),s?.setItem(l,V)),dispatchEvent(new CustomEvent(Ey,{detail:{key:l,newValue:V,oldValue:F,storageArea:s}}))}catch($){m($)}},z=function(A){A.key!==l||A.storageArea!==s||E(y())},O=function(A){z(A.detail)};return Sy("storage",z,{enable:d}),Sy(Ey,O,{enable:d}),[S,WR(R)]}return a}var oO=rO(function(){return $b?localStorage:void 0}),sO=oO,cO={token:"token",theme:"theme",sideBarCollapsed:"side-bar-collapsed",userId:"userId",accessToken:"accessToken",refreshToken:"refreshToken"},uO=cO,Pe={key:"theme",light:"light",dark:"dark",system:"system",inverse:"inverse"};const tx=n=>{const[a,l]=sO(uO.theme,{defaultValue:n??Pe.system}),o=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?Pe.dark:Pe.light,s=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?Pe.light:Pe.dark,u=(0,x.useMemo)(()=>a===Pe.system?o()===Pe.dark:s()===Pe.dark,[a]),d=(0,x.useMemo)(()=>a===Pe.system?o()===Pe.light:s()===Pe.light,[a]),h=(0,x.useCallback)(y=>{localStorage.setItem(Pe.key,y),document.documentElement.classList.remove(Pe.light,Pe.dark);const _=y===Pe.system?o():s();document.documentElement.classList.add(_),l(y)},[l]),m=()=>h(Pe.system),p=()=>h(Pe.inverse),g=()=>{a===Pe.system?p():m()};return(0,x.useEffect)(()=>{h(a??Pe.system);const y=window.matchMedia("(prefers-color-scheme: dark)"),_=()=>{const S=a===Pe.system?o():s();document.documentElement.classList.remove(Pe.light,Pe.dark),document.documentElement.classList.add(S)};return y.addEventListener("change",_),()=>y.removeEventListener("change",_)},[h,a]),{theme:a,isDark:u,isLight:d,setSystemTheme:m,setInverseTheme:p,toggleTheme:g,isSystem:a===Pe.system,isInverse:a===Pe.inverse}};var nx=(0,x.createContext)({theme:"system",isDark:!1,isLight:!0,setSystemTheme:()=>null,setInverseTheme:()=>null,toggleTheme:()=>null,isSystem:!0,isInverse:!1});function fO({children:n,defaultTheme:a="system",...l}){const o=tx(a);return(0,Q.jsx)(nx.Provider,{...l,value:o,children:n})}const Wz=()=>{const n=(0,x.useContext)(nx);if(n===void 0)throw new Error("useThemeContext must be used within a ThemeProvider");return n},dO=()=>{const[,n]=(0,x.useState)(!1);(0,x.useEffect)(()=>{const o=async()=>{n(await fl().isMaximized())};o();const s=fl().listen("tauri://resize",o);return()=>{s.then(u=>u())}},[]);const a=(0,x.useCallback)(async()=>{try{await fl().minimize()}catch(o){console.error("最小化窗口失败:",o)}},[]),l=(0,x.useCallback)(async()=>{try{await fl().close()}catch(o){console.error("关闭窗口失败:",o)}},[]);return(0,Q.jsxs)("div",{className:"fixed top-4 right-4 z-50 flex items-center bg-black/10 dark:bg-white/10 backdrop-blur-md rounded-md overflow-hidden shadow-sm",children:[(0,Q.jsx)("button",{onClick:a,className:"w-12 h-8 flex items-center justify-center text-default hover:bg-white/60 dark:hover:bg-black/40 transition-colors duration-200",children:(0,Q.jsx)(tA,{size:18,strokeWidth:3,absoluteStrokeWidth:!0})}),(0,Q.jsx)("button",{onClick:l,className:"w-12 h-8 flex items-center justify-center text-default hover:text-white hover:bg-red-500 transition-colors duration-200",children:(0,Q.jsx)(oA,{size:16,strokeWidth:3,absoluteStrokeWidth:!0})})]})};var hO=(0,x.lazy)(()=>gi(()=>import("./page-B7K7O6f3.js"),__vite__mapDeps([0,1,2,3,4,5]))),Ty=(0,x.lazy)(()=>gi(()=>import("./page-Byuy7OAT.js"),__vite__mapDeps([6,3,4,5,7,8]))),mO=(0,x.lazy)(()=>gi(()=>import("./page-CEqg1Ksf.js"),__vite__mapDeps([9,10,2,4,7]))),pO=(0,x.lazy)(()=>gi(()=>import("./page-BdqDvPOw.js"),__vite__mapDeps([11,1,2,10,4]))),vO=(0,x.lazy)(()=>gi(()=>import("./page-C4Zxqo2B.js"),__vite__mapDeps([12,3]))),gO=()=>{const n=fn().pathname!=="/login",a=[{path:"/crack",component:Ty,protected:!0},{path:"/database",component:mO,protected:!0},{path:"/about",component:pO,protected:!0},{path:"/",component:Ty,protected:!0},{path:"/login",component:hO,protected:!1},{path:"*",component:vO,protected:!1}];return(0,Q.jsxs)(fO,{defaultTheme:"system",children:[Vg()&&QT()==="windows"&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(bR,{}),(0,Q.jsx)(dO,{})]}),(0,Q.jsx)(x.Suspense,{fallback:(0,Q.jsx)(RR,{}),children:(0,Q.jsx)("div",{className:Vg()?"pt-10":"",children:(0,Q.jsx)(kS,{children:a.map(l=>(0,Q.jsx)(Hy,{path:l.path,element:VR(l)},l.path))})})}),n&&(0,Q.jsx)(hR,{}),(0,Q.jsx)(GR,{})]})},yO=gO,bO={data:""},xO=n=>{if(typeof window=="object"){let a=(n?n.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return a.nonce=window.__nonce__,a.parentNode||(n||document.head).appendChild(a),a.firstChild}return n||bO};var wO=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,_O=/\/\*[^]*?\*\/| +/g,Ay=/\n+/g,Ua=(n,a)=>{let l="",o="",s="";for(let u in n){let d=n[u];u[0]=="@"?u[1]=="i"?l=u+" "+d+";":o+=u[1]=="f"?Ua(d,u):u+"{"+Ua(d,u[1]=="k"?"":a)+"}":typeof d=="object"?o+=Ua(d,a?a.replace(/([^,])+/g,h=>u.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,m=>/&/.test(m)?m.replace(/&/g,h):h?h+" "+m:m)):u):d!=null&&(u=/^--/.test(u)?u:u.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=Ua.p?Ua.p(u,d):u+":"+d+";")}return l+(a&&s?a+"{"+s+"}":s)+o},na={},ax=n=>{if(typeof n=="object"){let a="";for(let l in n)a+=l+ax(n[l]);return a}return n},SO=(n,a,l,o,s)=>{let u=ax(n),d=na[u]||(na[u]=(m=>{let p=0,g=11;for(;p<m.length;)g=101*g+m.charCodeAt(p++)>>>0;return"go"+g})(u));if(!na[d]){let m=u!==n?n:(p=>{let g,y,_=[{}];for(;g=wO.exec(p.replace(_O,""));)g[4]?_.shift():g[3]?(y=g[3].replace(Ay," ").trim(),_.unshift(_[0][y]=_[0][y]||{})):_[0][g[1]]=g[2].replace(Ay," ").trim();return _[0]})(n);na[d]=Ua(s?{["@keyframes "+d]:m}:m,l?"":"."+d)}let h=l&&na.g?na.g:null;return l&&(na.g=na[d]),((m,p,g,y)=>{y?p.data=p.data.replace(y,m):p.data.indexOf(m)===-1&&(p.data=g?m+p.data:p.data+m)})(na[d],a,o,h),d},EO=(n,a,l)=>n.reduce((o,s,u)=>{let d=a[u];if(d&&d.call){let h=d(l),m=h&&h.props&&h.props.className||/^go/.test(h)&&h;d=m?"."+m:h&&typeof h=="object"?h.props?"":Ua(h,""):h===!1?"":h}return o+s+(d??"")},"");function sc(n){let a=this||{},l=n.call?n(a.p):n;return SO(l.unshift?l.raw?EO(l,[].slice.call(arguments,1),a.p):l.reduce((o,s)=>Object.assign(o,s&&s.call?s(a.p):s),{}):l,xO(a.target),a.g,a.o,a.k)}var ix,yd,bd,Jz=sc.bind({g:1}),sa=sc.bind({k:1});function TO(n,a,l,o){Ua.p=a,ix=n,yd=l,bd=o}function Ga(n,a){let l=this||{};return function(){let o=arguments;function s(u,d){let h=Object.assign({},u),m=h.className||s.className;l.p=Object.assign({theme:yd&&yd()},h),l.o=/ *go\d+/.test(m),h.className=sc.apply(l,o)+(m?" "+m:""),a&&(h.ref=d);let p=n;return n[0]&&(p=h.as||n,delete h.as),bd&&p[0]&&bd(h),ix(p,h)}return a?a(s):s}}var AO=n=>typeof n=="function",Zs=(n,a)=>AO(n)?n(a):n,CO=(()=>{let n=0;return()=>(++n).toString()})(),lx=(()=>{let n;return()=>{if(n===void 0&&typeof window<"u"){let a=matchMedia("(prefers-reduced-motion: reduce)");n=!a||a.matches}return n}})(),NO=20,rh="default",rx=(n,a)=>{let{toastLimit:l}=n.settings;switch(a.type){case 0:return{...n,toasts:[a.toast,...n.toasts].slice(0,l)};case 1:return{...n,toasts:n.toasts.map(d=>d.id===a.toast.id?{...d,...a.toast}:d)};case 2:let{toast:o}=a;return rx(n,{type:n.toasts.find(d=>d.id===o.id)?1:0,toast:o});case 3:let{toastId:s}=a;return{...n,toasts:n.toasts.map(d=>d.id===s||s===void 0?{...d,dismissed:!0,visible:!1}:d)};case 4:return a.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(d=>d.id!==a.toastId)};case 5:return{...n,pausedAt:a.time};case 6:let u=a.time-(n.pausedAt||0);return{...n,pausedAt:void 0,toasts:n.toasts.map(d=>({...d,pauseDuration:d.pauseDuration+u}))}}},Ms=[],ox={toasts:[],pausedAt:void 0,settings:{toastLimit:NO}},En={},sx=(n,a=rh)=>{En[a]=rx(En[a]||ox,n),Ms.forEach(([l,o])=>{l===a&&o(En[a])})},cx=n=>Object.keys(En).forEach(a=>sx(n,a)),RO=n=>Object.keys(En).find(a=>En[a].toasts.some(l=>l.id===n)),cc=(n=rh)=>a=>{sx(a,n)},OO={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},zO=(n={},a=rh)=>{let[l,o]=(0,x.useState)(En[a]||ox),s=(0,x.useRef)(En[a]);(0,x.useEffect)(()=>(s.current!==En[a]&&o(En[a]),Ms.push([a,o]),()=>{let d=Ms.findIndex(([h])=>h===a);d>-1&&Ms.splice(d,1)}),[a]);let u=l.toasts.map(d=>{var h,m,p;return{...n,...n[d.type],...d,removeDelay:d.removeDelay||((h=n[d.type])==null?void 0:h.removeDelay)||n?.removeDelay,duration:d.duration||((m=n[d.type])==null?void 0:m.duration)||n?.duration||OO[d.type],style:{...n.style,...(p=n[d.type])==null?void 0:p.style,...d.style}}});return{...l,toasts:u}},kO=(n,a="blank",l)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:a,ariaProps:{role:"status","aria-live":"polite"},message:n,pauseDuration:0,...l,id:l?.id||CO()}),Xr=n=>(a,l)=>{let o=kO(a,n,l);return cc(o.toasterId||RO(o.id))({type:2,toast:o}),o.id},ut=(n,a)=>Xr("blank")(n,a);ut.error=Xr("error");ut.success=Xr("success");ut.loading=Xr("loading");ut.custom=Xr("custom");ut.dismiss=(n,a)=>{let l={type:3,toastId:n};a?cc(a)(l):cx(l)};ut.dismissAll=n=>ut.dismiss(void 0,n);ut.remove=(n,a)=>{let l={type:4,toastId:n};a?cc(a)(l):cx(l)};ut.removeAll=n=>ut.remove(void 0,n);ut.promise=(n,a,l)=>{let o=ut.loading(a.loading,{...l,...l?.loading});return typeof n=="function"&&(n=n()),n.then(s=>{let u=a.success?Zs(a.success,s):void 0;return u?ut.success(u,{id:o,...l,...l?.success}):ut.dismiss(o),s}).catch(s=>{let u=a.error?Zs(a.error,s):void 0;u?ut.error(u,{id:o,...l,...l?.error}):ut.dismiss(o)}),n};var MO=1e3,DO=(n,a="default")=>{let{toasts:l,pausedAt:o}=zO(n,a),s=(0,x.useRef)(new Map).current,u=(0,x.useCallback)((y,_=MO)=>{if(s.has(y))return;let S=setTimeout(()=>{s.delete(y),d({type:4,toastId:y})},_);s.set(y,S)},[]);(0,x.useEffect)(()=>{if(o)return;let y=Date.now(),_=l.map(S=>{if(S.duration===1/0)return;let E=(S.duration||0)+S.pauseDuration-(y-S.createdAt);if(E<0){S.visible&&ut.dismiss(S.id);return}return setTimeout(()=>ut.dismiss(S.id,a),E)});return()=>{_.forEach(S=>S&&clearTimeout(S))}},[l,o,a]);let d=(0,x.useCallback)(cc(a),[a]),h=(0,x.useCallback)(()=>{d({type:5,time:Date.now()})},[d]),m=(0,x.useCallback)((y,_)=>{d({type:1,toast:{id:y,height:_}})},[d]),p=(0,x.useCallback)(()=>{o&&d({type:6,time:Date.now()})},[o,d]),g=(0,x.useCallback)((y,_)=>{let{reverseOrder:S=!1,gutter:E=8,defaultPosition:R}=_||{},z=l.filter(B=>(B.position||R)===(y.position||R)&&B.height),O=z.findIndex(B=>B.id===y.id),A=z.filter((B,V)=>V<O&&B.visible).length;return z.filter(B=>B.visible).slice(...S?[A+1]:[0,A]).reduce((B,V)=>B+(V.height||0)+E,0)},[l]);return(0,x.useEffect)(()=>{l.forEach(y=>{if(y.dismissed)u(y.id,y.removeDelay);else{let _=s.get(y.id);_&&(clearTimeout(_),s.delete(y.id))}})},[l,u]),{toasts:l,handlers:{updateHeight:m,startPause:h,endPause:p,calculateOffset:g}}},jO=sa`
|
|
222
|
+
Defaulting to \`null\`.`}var AR=Pb,CR=Jb;function NR({className:n,value:a,...l}){return(0,Q.jsx)(AR,{"data-slot":"progress",className:Pt("overflow-hidden relative w-full h-2 rounded-full bg-primary/20",n),...l,children:(0,Q.jsx)(CR,{"data-slot":"progress-indicator",className:"flex-1 w-full h-full transition-all bg-primary",style:{transform:`translateX(-${100-(a||0)}%)`}})})}const RR=()=>{const[n,a]=(0,x.useState)(0);return(0,x.useEffect)(()=>{const l=Date.now(),o=setInterval(()=>{const s=Date.now()-l,u=Math.min(s/150*100,100);a(u),u>=100&&clearInterval(o)},16);return()=>clearInterval(o)},[]),(0,Q.jsx)("div",{className:"flex justify-center items-center h-screen bg-background",children:(0,Q.jsxs)("div",{className:"flex flex-col items-center p-8 space-y-6 w-full max-w-md",children:[(0,Q.jsx)("img",{src:"/loading.svg",alt:"加载中",className:"w-96 h-96"}),(0,Q.jsxs)("div",{className:"space-y-2 text-center",children:[(0,Q.jsx)("h3",{className:"text-4xl font-semibold text-foreground",children:"加载中"}),(0,Q.jsx)("p",{className:"text-sm text-muted-foreground",children:"正在加载页面内容..."})]}),(0,Q.jsxs)("div",{className:"space-y-2 w-full",children:[(0,Q.jsx)(NR,{value:n,className:"w-full h-2"}),(0,Q.jsxs)("div",{className:"flex justify-between text-xs text-muted-foreground",children:[(0,Q.jsx)("span",{children:"加载中..."}),(0,Q.jsxs)("span",{children:[Math.round(n),"%"]})]})]}),(0,Q.jsxs)("div",{className:"flex space-x-2",children:[(0,Q.jsx)("div",{className:"w-2 h-2 rounded-full animate-bounce bg-primary",style:{animationDelay:"0ms"}}),(0,Q.jsx)("div",{className:"w-2 h-2 rounded-full animate-bounce bg-primary",style:{animationDelay:"150ms"}}),(0,Q.jsx)("div",{className:"w-2 h-2 rounded-full animate-bounce bg-primary",style:{animationDelay:"300ms"}})]})]})})};var OR="true",zR="false",gy=OR==="true",kR=zR==="true";function MR(n={}){const{immediate:a=!1,onNeedRefresh:l,onOfflineReady:o,onRegistered:s,onRegisteredSW:u,onRegisterError:d}=n;let h,m,p;const g=async(_=!0)=>{await m,gy||p?.()};async function y(){if("serviceWorker"in navigator){if(h=await gi(async()=>{const{Workbox:_}=await import("workbox-window");return{Workbox:_}},[]).then(({Workbox:_})=>new _("/kkk/sw.js",{scope:"/kkk/",type:"classic"})).catch(_=>{d?.(_)}),!h)return;if(p=()=>{h?.messageSkipWaiting()},!kR)if(gy)h.addEventListener("activated",_=>{(_.isUpdate||_.isExternal)&&window.location.reload()}),h.addEventListener("installed",_=>{_.isUpdate||o?.()});else{let _=!1;const S=()=>{_=!0,h?.addEventListener("controlling",E=>{E.isUpdate&&window.location.reload()}),l?.()};h.addEventListener("installed",E=>{typeof E.isUpdate>"u"?typeof E.isExternal<"u"&&E.isExternal?S():!_&&o?.():E.isUpdate||o?.()}),h.addEventListener("waiting",S)}h.register({immediate:a}).then(_=>{u?u("/kkk/sw.js",_):s?.(_)}).catch(_=>{d?.(_)})}}return m=y(),g}function DR(n={}){const{immediate:a=!0,onNeedRefresh:l,onOfflineReady:o,onRegistered:s,onRegisteredSW:u,onRegisterError:d}=n,[h,m]=(0,x.useState)(!1),[p,g]=(0,x.useState)(!1),[y]=(0,x.useState)(()=>MR({immediate:a,onOfflineReady(){g(!0),o?.()},onNeedRefresh(){m(!0),l?.()},onRegistered:s,onRegisteredSW:u,onRegisterError:d}));return{needRefresh:[h,m],offlineReady:[p,g],updateServiceWorker:y}}var yy=n=>typeof n=="boolean"?`${n}`:n===0?"0":n;const by=Ob,Kb=(n,a)=>l=>{var o;if(a?.variants==null)return by(n,l?.class,l?.className);const{variants:s,defaultVariants:u}=a,d=Object.keys(s).map(m=>{const p=l?.[m],g=u?.[m];if(p===null)return null;const y=yy(p)||yy(g);return s[m][y]}),h=l&&Object.entries(l).reduce((m,p)=>{let[g,y]=p;return y===void 0||(m[g]=y),m},{});return by(n,d,a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((m,p)=>{let{class:g,className:y,..._}=p;return Object.entries(_).every(S=>{let[E,R]=S;return Array.isArray(R)?R.includes({...u,...h}[E]):{...u,...h}[E]===R})?[...m,g,y]:m},[]),l?.class,l?.className)};var jR=Kb("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function LR({className:n,variant:a,...l}){return(0,Q.jsx)("div",{"data-slot":"alert",role:"alert",className:Pt(jR({variant:a}),n),...l})}function UR({className:n,...a}){return(0,Q.jsx)("div",{"data-slot":"alert-description",className:Pt("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",n),...a})}var HR=Kb("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function xy({className:n,variant:a,size:l,asChild:o=!1,...s}){return(0,Q.jsx)(o?fA:"button",{"data-slot":"button",className:Pt(HR({variant:a,size:l,className:n})),...s})}function BR({className:n,...a}){return(0,Q.jsx)("div",{"data-slot":"card",className:Pt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n),...a})}function Vz({className:n,...a}){return(0,Q.jsx)("div",{"data-slot":"card-header",className:Pt("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",n),...a})}function Xz({className:n,...a}){return(0,Q.jsx)("div",{"data-slot":"card-title",className:Pt("leading-none font-semibold",n),...a})}function Qz({className:n,...a}){return(0,Q.jsx)("div",{"data-slot":"card-description",className:Pt("text-muted-foreground text-sm",n),...a})}function qR({className:n,...a}){return(0,Q.jsx)("div",{"data-slot":"card-content",className:Pt("px-6",n),...a})}function GR(){const[n,a]=(0,x.useState)(!1),[l,o]=(0,x.useState)(!1),[s,u]=(0,x.useState)(!1),{offlineReady:[d,h],needRefresh:[m,p],updateServiceWorker:g}=DR({onRegistered(R){console.log("SW Registered: ",R)},onRegisterError(R){console.log("SW registration error",R)}});(0,x.useEffect)(()=>{},[]),(0,x.useEffect)(()=>{m&&a(!0)},[m]);const y=()=>{g(!0),a(!1)},_=()=>{h(!1),p(!1),o(!1),u(!1),a(!1)},S=d||l,E=m||s;return!n&&!S?null:(0,Q.jsx)(BR,{className:"fixed right-4 bottom-4 z-50 w-80 shadow-lg",children:(0,Q.jsx)(qR,{className:"p-4",children:E&&(0,Q.jsxs)("div",{className:"space-y-3",children:[(0,Q.jsxs)(LR,{children:[(0,Q.jsx)(Qg,{className:"w-4 h-4"}),(0,Q.jsxs)(UR,{className:"text-blue-600",children:["发现新版本,是否立即更新?",!1]})]}),(0,Q.jsxs)("div",{className:"flex gap-2",children:[(0,Q.jsxs)(xy,{onClick:y,size:"sm",className:"flex-1",children:[(0,Q.jsx)(Qg,{className:"mr-2 w-4 h-4"}),"更新"]}),(0,Q.jsx)(xy,{variant:"outline",onClick:_,size:"sm",className:"flex-1",children:"稍后"})]})]})})})}const YR=()=>{const n=localStorage.getItem("accessToken"),a=localStorage.getItem("refreshToken"),l=localStorage.getItem("userId");return!!(n||a)&&!!l},VR=n=>{const a=n.component;return n.protected?YR()?(0,Q.jsx)(a,{}):(0,Q.jsx)(zS,{to:"/login",replace:!0}):(0,Q.jsx)(a,{})};var XR=function(n){return function(a,l){var o=(0,x.useRef)(!1);n(function(){return function(){o.current=!1}},[]),n(function(){if(!o.current)o.current=!0;else return a()},l)}},wy=function(){return wy=Object.assign||function(a){for(var l,o=1,s=arguments.length;o<s;o++){l=arguments[o];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(a[u]=l[u])}return a},wy.apply(this,arguments)};function Zz(n,a){var l={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&a.indexOf(o)<0&&(l[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(n);s<o.length;s++)a.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(n,o[s])&&(l[o[s]]=n[o[s]]);return l}function QR(n,a){var l=typeof Symbol=="function"&&n[Symbol.iterator];if(!l)return n;var o=l.call(n),s,u=[],d;try{for(;(a===void 0||a-- >0)&&!(s=o.next()).done;)u.push(s.value)}catch(h){d={error:h}}finally{try{s&&!s.done&&(l=o.return)&&l.call(o)}finally{if(d)throw d.error}}return u}function Pz(n,a,l){if(l||arguments.length===2)for(var o=0,s=a.length,u;o<s;o++)(u||!(o in a))&&(u||(u=Array.prototype.slice.call(a,0,o)),u[o]=a[o]);return n.concat(u||Array.prototype.slice.call(a))}var gd=function(n){return typeof n=="function"},ZR=function(n){return typeof n>"u"};var PR=function(n){var a=(0,x.useRef)(n);a.current=(0,x.useMemo)(function(){return n},[n]);var l=(0,x.useRef)(void 0);return l.current||(l.current=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return a.current.apply(this,o)}),l.current},WR=PR,JR=XR(x.useEffect);function FR(n,a){if(n===a)return!0;for(var l=0;l<n.length;l++)if(!Object.is(n[l],a[l]))return!1;return!0}var _y=FR;function KR(n){var a=(0,x.useRef)(n);return a.current=n,a}var Ib=KR,IR=function(n){var a=Ib(n);(0,x.useEffect)(function(){return function(){a.current()}},[])},$R=IR,eO=!!(typeof window<"u"&&window.document&&window.document.createElement),$b=eO;function ex(n,a){if($b){if(!n)return a;var l;return gd(n)?l=n():"current"in n?l=n.current:l=n,l}}var tO=function(n){var a=function(l,o,s){var u=(0,x.useRef)(!1),d=(0,x.useRef)([]),h=(0,x.useRef)([]),m=(0,x.useRef)(void 0);n(function(){var p,g=(Array.isArray(s)?s:[s]).map(function(y){return ex(y)});if(!u.current){u.current=!0,d.current=g,h.current=o,m.current=l();return}(g.length!==d.current.length||!_y(d.current,g)||!_y(h.current,o))&&((p=m.current)===null||p===void 0||p.call(m),d.current=g,h.current=o,m.current=l())}),$R(function(){var p;(p=m.current)===null||p===void 0||p.call(m),u.current=!1})};return a},nO=tO,aO=nO(x.useEffect),iO=aO;function lO(n,a,l){l===void 0&&(l={});var o=l.enable,s=o===void 0?!0:o,u=Ib(a);iO(function(){if(s){var d=ex(l.target,window);if(d?.addEventListener){var h=function(p){return u.current(p)},m=Array.isArray(n)?n:[n];return m.forEach(function(p){d.addEventListener(p,h,{capture:l.capture,once:l.once,passive:l.passive})}),function(){m.forEach(function(p){d.removeEventListener(p,h,{capture:l.capture})})}}}},[n,l.capture,l.once,l.passive,s],l.target)}var Sy=lO,Ey="AHOOKS_SYNC_STORAGE_EVENT_NAME";function rO(n){function a(l,o){o===void 0&&(o={});var s,u=o.listenStorageChange,d=u===void 0?!1:u,h=o.onError,m=h===void 0?function(A){console.error(A)}:h;try{s=n()}catch(A){m(A)}var p=function(A){return o.serializer?o.serializer(A):JSON.stringify(A)},g=function(A){return o.deserializer?o.deserializer(A):JSON.parse(A)};function y(){try{var A=s?.getItem(l);if(A)return g(A)}catch(B){m(B)}return gd(o.defaultValue)?o.defaultValue():o.defaultValue}var _=QR((0,x.useState)(y),2),S=_[0],E=_[1];JR(function(){E(y())},[l]);var R=function(A){var B=gd(A)?A(S):A;d||E(B);try{var V=void 0,F=s?.getItem(l);ZR(B)?(V=null,s?.removeItem(l)):(V=p(B),s?.setItem(l,V)),dispatchEvent(new CustomEvent(Ey,{detail:{key:l,newValue:V,oldValue:F,storageArea:s}}))}catch($){m($)}},z=function(A){A.key!==l||A.storageArea!==s||E(y())},O=function(A){z(A.detail)};return Sy("storage",z,{enable:d}),Sy(Ey,O,{enable:d}),[S,WR(R)]}return a}var oO=rO(function(){return $b?localStorage:void 0}),sO=oO,cO={token:"token",theme:"theme",sideBarCollapsed:"side-bar-collapsed",userId:"userId",accessToken:"accessToken",refreshToken:"refreshToken"},uO=cO,Pe={key:"theme",light:"light",dark:"dark",system:"system",inverse:"inverse"};const tx=n=>{const[a,l]=sO(uO.theme,{defaultValue:n??Pe.system}),o=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?Pe.dark:Pe.light,s=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?Pe.light:Pe.dark,u=(0,x.useMemo)(()=>a===Pe.system?o()===Pe.dark:s()===Pe.dark,[a]),d=(0,x.useMemo)(()=>a===Pe.system?o()===Pe.light:s()===Pe.light,[a]),h=(0,x.useCallback)(y=>{localStorage.setItem(Pe.key,y),document.documentElement.classList.remove(Pe.light,Pe.dark);const _=y===Pe.system?o():s();document.documentElement.classList.add(_),l(y)},[l]),m=()=>h(Pe.system),p=()=>h(Pe.inverse),g=()=>{a===Pe.system?p():m()};return(0,x.useEffect)(()=>{h(a??Pe.system);const y=window.matchMedia("(prefers-color-scheme: dark)"),_=()=>{const S=a===Pe.system?o():s();document.documentElement.classList.remove(Pe.light,Pe.dark),document.documentElement.classList.add(S)};return y.addEventListener("change",_),()=>y.removeEventListener("change",_)},[h,a]),{theme:a,isDark:u,isLight:d,setSystemTheme:m,setInverseTheme:p,toggleTheme:g,isSystem:a===Pe.system,isInverse:a===Pe.inverse}};var nx=(0,x.createContext)({theme:"system",isDark:!1,isLight:!0,setSystemTheme:()=>null,setInverseTheme:()=>null,toggleTheme:()=>null,isSystem:!0,isInverse:!1});function fO({children:n,defaultTheme:a="system",...l}){const o=tx(a);return(0,Q.jsx)(nx.Provider,{...l,value:o,children:n})}const Wz=()=>{const n=(0,x.useContext)(nx);if(n===void 0)throw new Error("useThemeContext must be used within a ThemeProvider");return n},dO=()=>{const[,n]=(0,x.useState)(!1);(0,x.useEffect)(()=>{const o=async()=>{n(await fl().isMaximized())};o();const s=fl().listen("tauri://resize",o);return()=>{s.then(u=>u())}},[]);const a=(0,x.useCallback)(async()=>{try{await fl().minimize()}catch(o){console.error("最小化窗口失败:",o)}},[]),l=(0,x.useCallback)(async()=>{try{await fl().close()}catch(o){console.error("关闭窗口失败:",o)}},[]);return(0,Q.jsxs)("div",{className:"fixed top-4 right-4 z-50 flex items-center bg-black/10 dark:bg-white/10 backdrop-blur-md rounded-md overflow-hidden shadow-sm",children:[(0,Q.jsx)("button",{onClick:a,className:"w-12 h-8 flex items-center justify-center text-default hover:bg-white/60 dark:hover:bg-black/40 transition-colors duration-200",children:(0,Q.jsx)(tA,{size:18,strokeWidth:3,absoluteStrokeWidth:!0})}),(0,Q.jsx)("button",{onClick:l,className:"w-12 h-8 flex items-center justify-center text-default hover:text-white hover:bg-red-500 transition-colors duration-200",children:(0,Q.jsx)(oA,{size:16,strokeWidth:3,absoluteStrokeWidth:!0})})]})};var hO=(0,x.lazy)(()=>gi(()=>import("./page-Cowml-bh.js"),__vite__mapDeps([0,1,2,3,4,5]))),Ty=(0,x.lazy)(()=>gi(()=>import("./page-MMB_BSjZ.js"),__vite__mapDeps([6,3,4,5,7,8]))),mO=(0,x.lazy)(()=>gi(()=>import("./page-P63JbsyL.js"),__vite__mapDeps([9,10,2,4,7]))),pO=(0,x.lazy)(()=>gi(()=>import("./page-Y-k61toL.js"),__vite__mapDeps([11,1,2,10,4]))),vO=(0,x.lazy)(()=>gi(()=>import("./page-DkpX06Dm.js"),__vite__mapDeps([12,3]))),gO=()=>{const n=fn().pathname!=="/login",a=[{path:"/crack",component:Ty,protected:!0},{path:"/database",component:mO,protected:!0},{path:"/about",component:pO,protected:!0},{path:"/",component:Ty,protected:!0},{path:"/login",component:hO,protected:!1},{path:"*",component:vO,protected:!1}];return(0,Q.jsxs)(fO,{defaultTheme:"system",children:[Vg()&&QT()==="windows"&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(bR,{}),(0,Q.jsx)(dO,{})]}),(0,Q.jsx)(x.Suspense,{fallback:(0,Q.jsx)(RR,{}),children:(0,Q.jsx)("div",{className:Vg()?"pt-10":"",children:(0,Q.jsx)(kS,{children:a.map(l=>(0,Q.jsx)(Hy,{path:l.path,element:VR(l)},l.path))})})}),n&&(0,Q.jsx)(hR,{}),(0,Q.jsx)(GR,{})]})},yO=gO,bO={data:""},xO=n=>{if(typeof window=="object"){let a=(n?n.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return a.nonce=window.__nonce__,a.parentNode||(n||document.head).appendChild(a),a.firstChild}return n||bO};var wO=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,_O=/\/\*[^]*?\*\/| +/g,Ay=/\n+/g,Ua=(n,a)=>{let l="",o="",s="";for(let u in n){let d=n[u];u[0]=="@"?u[1]=="i"?l=u+" "+d+";":o+=u[1]=="f"?Ua(d,u):u+"{"+Ua(d,u[1]=="k"?"":a)+"}":typeof d=="object"?o+=Ua(d,a?a.replace(/([^,])+/g,h=>u.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,m=>/&/.test(m)?m.replace(/&/g,h):h?h+" "+m:m)):u):d!=null&&(u=/^--/.test(u)?u:u.replace(/[A-Z]/g,"-$&").toLowerCase(),s+=Ua.p?Ua.p(u,d):u+":"+d+";")}return l+(a&&s?a+"{"+s+"}":s)+o},na={},ax=n=>{if(typeof n=="object"){let a="";for(let l in n)a+=l+ax(n[l]);return a}return n},SO=(n,a,l,o,s)=>{let u=ax(n),d=na[u]||(na[u]=(m=>{let p=0,g=11;for(;p<m.length;)g=101*g+m.charCodeAt(p++)>>>0;return"go"+g})(u));if(!na[d]){let m=u!==n?n:(p=>{let g,y,_=[{}];for(;g=wO.exec(p.replace(_O,""));)g[4]?_.shift():g[3]?(y=g[3].replace(Ay," ").trim(),_.unshift(_[0][y]=_[0][y]||{})):_[0][g[1]]=g[2].replace(Ay," ").trim();return _[0]})(n);na[d]=Ua(s?{["@keyframes "+d]:m}:m,l?"":"."+d)}let h=l&&na.g?na.g:null;return l&&(na.g=na[d]),((m,p,g,y)=>{y?p.data=p.data.replace(y,m):p.data.indexOf(m)===-1&&(p.data=g?m+p.data:p.data+m)})(na[d],a,o,h),d},EO=(n,a,l)=>n.reduce((o,s,u)=>{let d=a[u];if(d&&d.call){let h=d(l),m=h&&h.props&&h.props.className||/^go/.test(h)&&h;d=m?"."+m:h&&typeof h=="object"?h.props?"":Ua(h,""):h===!1?"":h}return o+s+(d??"")},"");function sc(n){let a=this||{},l=n.call?n(a.p):n;return SO(l.unshift?l.raw?EO(l,[].slice.call(arguments,1),a.p):l.reduce((o,s)=>Object.assign(o,s&&s.call?s(a.p):s),{}):l,xO(a.target),a.g,a.o,a.k)}var ix,yd,bd,Jz=sc.bind({g:1}),sa=sc.bind({k:1});function TO(n,a,l,o){Ua.p=a,ix=n,yd=l,bd=o}function Ga(n,a){let l=this||{};return function(){let o=arguments;function s(u,d){let h=Object.assign({},u),m=h.className||s.className;l.p=Object.assign({theme:yd&&yd()},h),l.o=/ *go\d+/.test(m),h.className=sc.apply(l,o)+(m?" "+m:""),a&&(h.ref=d);let p=n;return n[0]&&(p=h.as||n,delete h.as),bd&&p[0]&&bd(h),ix(p,h)}return a?a(s):s}}var AO=n=>typeof n=="function",Zs=(n,a)=>AO(n)?n(a):n,CO=(()=>{let n=0;return()=>(++n).toString()})(),lx=(()=>{let n;return()=>{if(n===void 0&&typeof window<"u"){let a=matchMedia("(prefers-reduced-motion: reduce)");n=!a||a.matches}return n}})(),NO=20,rh="default",rx=(n,a)=>{let{toastLimit:l}=n.settings;switch(a.type){case 0:return{...n,toasts:[a.toast,...n.toasts].slice(0,l)};case 1:return{...n,toasts:n.toasts.map(d=>d.id===a.toast.id?{...d,...a.toast}:d)};case 2:let{toast:o}=a;return rx(n,{type:n.toasts.find(d=>d.id===o.id)?1:0,toast:o});case 3:let{toastId:s}=a;return{...n,toasts:n.toasts.map(d=>d.id===s||s===void 0?{...d,dismissed:!0,visible:!1}:d)};case 4:return a.toastId===void 0?{...n,toasts:[]}:{...n,toasts:n.toasts.filter(d=>d.id!==a.toastId)};case 5:return{...n,pausedAt:a.time};case 6:let u=a.time-(n.pausedAt||0);return{...n,pausedAt:void 0,toasts:n.toasts.map(d=>({...d,pauseDuration:d.pauseDuration+u}))}}},Ms=[],ox={toasts:[],pausedAt:void 0,settings:{toastLimit:NO}},En={},sx=(n,a=rh)=>{En[a]=rx(En[a]||ox,n),Ms.forEach(([l,o])=>{l===a&&o(En[a])})},cx=n=>Object.keys(En).forEach(a=>sx(n,a)),RO=n=>Object.keys(En).find(a=>En[a].toasts.some(l=>l.id===n)),cc=(n=rh)=>a=>{sx(a,n)},OO={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},zO=(n={},a=rh)=>{let[l,o]=(0,x.useState)(En[a]||ox),s=(0,x.useRef)(En[a]);(0,x.useEffect)(()=>(s.current!==En[a]&&o(En[a]),Ms.push([a,o]),()=>{let d=Ms.findIndex(([h])=>h===a);d>-1&&Ms.splice(d,1)}),[a]);let u=l.toasts.map(d=>{var h,m,p;return{...n,...n[d.type],...d,removeDelay:d.removeDelay||((h=n[d.type])==null?void 0:h.removeDelay)||n?.removeDelay,duration:d.duration||((m=n[d.type])==null?void 0:m.duration)||n?.duration||OO[d.type],style:{...n.style,...(p=n[d.type])==null?void 0:p.style,...d.style}}});return{...l,toasts:u}},kO=(n,a="blank",l)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:a,ariaProps:{role:"status","aria-live":"polite"},message:n,pauseDuration:0,...l,id:l?.id||CO()}),Xr=n=>(a,l)=>{let o=kO(a,n,l);return cc(o.toasterId||RO(o.id))({type:2,toast:o}),o.id},ut=(n,a)=>Xr("blank")(n,a);ut.error=Xr("error");ut.success=Xr("success");ut.loading=Xr("loading");ut.custom=Xr("custom");ut.dismiss=(n,a)=>{let l={type:3,toastId:n};a?cc(a)(l):cx(l)};ut.dismissAll=n=>ut.dismiss(void 0,n);ut.remove=(n,a)=>{let l={type:4,toastId:n};a?cc(a)(l):cx(l)};ut.removeAll=n=>ut.remove(void 0,n);ut.promise=(n,a,l)=>{let o=ut.loading(a.loading,{...l,...l?.loading});return typeof n=="function"&&(n=n()),n.then(s=>{let u=a.success?Zs(a.success,s):void 0;return u?ut.success(u,{id:o,...l,...l?.success}):ut.dismiss(o),s}).catch(s=>{let u=a.error?Zs(a.error,s):void 0;u?ut.error(u,{id:o,...l,...l?.error}):ut.dismiss(o)}),n};var MO=1e3,DO=(n,a="default")=>{let{toasts:l,pausedAt:o}=zO(n,a),s=(0,x.useRef)(new Map).current,u=(0,x.useCallback)((y,_=MO)=>{if(s.has(y))return;let S=setTimeout(()=>{s.delete(y),d({type:4,toastId:y})},_);s.set(y,S)},[]);(0,x.useEffect)(()=>{if(o)return;let y=Date.now(),_=l.map(S=>{if(S.duration===1/0)return;let E=(S.duration||0)+S.pauseDuration-(y-S.createdAt);if(E<0){S.visible&&ut.dismiss(S.id);return}return setTimeout(()=>ut.dismiss(S.id,a),E)});return()=>{_.forEach(S=>S&&clearTimeout(S))}},[l,o,a]);let d=(0,x.useCallback)(cc(a),[a]),h=(0,x.useCallback)(()=>{d({type:5,time:Date.now()})},[d]),m=(0,x.useCallback)((y,_)=>{d({type:1,toast:{id:y,height:_}})},[d]),p=(0,x.useCallback)(()=>{o&&d({type:6,time:Date.now()})},[o,d]),g=(0,x.useCallback)((y,_)=>{let{reverseOrder:S=!1,gutter:E=8,defaultPosition:R}=_||{},z=l.filter(B=>(B.position||R)===(y.position||R)&&B.height),O=z.findIndex(B=>B.id===y.id),A=z.filter((B,V)=>V<O&&B.visible).length;return z.filter(B=>B.visible).slice(...S?[A+1]:[0,A]).reduce((B,V)=>B+(V.height||0)+E,0)},[l]);return(0,x.useEffect)(()=>{l.forEach(y=>{if(y.dismissed)u(y.id,y.removeDelay);else{let _=s.get(y.id);_&&(clearTimeout(_),s.delete(y.id))}})},[l,u]),{toasts:l,handlers:{updateHeight:m,startPause:h,endPause:p,calculateOffset:g}}},jO=sa`
|
|
223
223
|
from {
|
|
224
224
|
transform: scale(0) rotate(45deg);
|
|
225
225
|
opacity: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{it as Et,ot as bt}from"./index-
|
|
1
|
+
import{it as Et,ot as bt}from"./index-DdAGSRAR.js";var At=Et({"../../node_modules/.pnpm/jszip@3.10.1/node_modules/jszip/dist/jszip.min.js":((xt,yt)=>{/*!
|
|
2
2
|
|
|
3
3
|
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
|
|
4
4
|
<http://stuartk.com/jszip>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/core-
|
|
2
|
-
import{s as et}from"./Combination-D6FIiEQM.js";import{a as Lt,i as Rt,n as It,o as Xt,r as vt,t as Yt}from"./select-BY-t3eAh.js";import{t as At}from"./eye-C4fCFW2u.js";import{J as ct,Q,V as Ut,Z as Dt,c as zt,ct as xt,d as Ft,et as qt,f as Ht,i as nt,l as Kt,n as I,p as mt,rt as Vt,tt as Zt,u as Bt}from"./index-BoPchUH8.js";import{t as Qt}from"./separator-DdXrJjKD.js";import{n as Gt,s as st,t as gt}from"./request-BwKDd0gx.js";var Jt=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Wt=ct("arrow-right",Jt),te=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ee=ct("eye-off",te),ae=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],re=ct("lock",ae),h=xt(Vt(),1);function it(){return it=Object.assign?Object.assign.bind():function(o){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(o[r]=a[r])}return o},it.apply(this,arguments)}var U=function(i,a){return i.querySelector(a)},oe=function(i,a){return i.querySelectorAll(a)},ne=function(i){i===void 0&&(i={});var a={};return Object.keys(i).forEach(function(r){typeof i[r]<"u"&&(a[r]=i[r])}),a},se={alwaysActive:!1,activeOffset:50,shadowOffset:50,shadowScale:1,duration:300,rotate:!0,rotateTouch:!0,rotateXMax:15,rotateYMax:15,rotateXInvert:!1,rotateYInvert:!1,stretchX:0,stretchY:0,stretchZ:0,commonOrigin:!0,shadow:!0,highlight:!0};function ie(o){o===void 0&&(o={});var i=o,a=i.el,r=i.eventsEl,b=o.isComponent,w,m={__atropos__:!0,params:it({},se,{onEnter:null,onLeave:null,onRotate:null},ne(o||{})),destroyed:!1,isActive:!1},t=m.params,C,O,X,$,k,f,d,L,A,g,N=[],R;(function p(){R=requestAnimationFrame(function(){N.forEach(function(e){if(typeof e=="function")e();else{var l=e.element,v=e.prop,x=e.value;l.style[v]=x}}),N.splice(0,N.length),p()})})();var T=function(e,l){N.push({element:e,prop:"transitionDuration",value:l})},P=function(e,l){N.push({element:e,prop:"transitionTimingFunction",value:l})},j=function(e,l){N.push({element:e,prop:"transform",value:l})},s=function(e,l){N.push({element:e,prop:"opacity",value:l})},c=function(e,l){N.push({element:e,prop:"transformOrigin",value:l})},u=function(e,l,v,x){return e.addEventListener(l,v,x)},E=function(e,l,v,x){return e.removeEventListener(l,v,x)},F=function(){var e;f=U(a,".atropos-shadow"),f||(f=document.createElement("span"),f.classList.add("atropos-shadow"),e=!0),j(f,"translate3d(0,0,-"+t.shadowOffset+"px) scale("+t.shadowScale+")"),e&&C.appendChild(f)},G=function(){var e;d=U(a,".atropos-highlight"),d||(d=document.createElement("span"),d.classList.add("atropos-highlight"),e=!0),j(d,"translate3d(0,0,0)"),e&&X.appendChild(d)},q=function(e){var l=e.rotateXPercentage,v=l===void 0?0:l,x=e.rotateYPercentage,y=x===void 0?0:x,M=e.duration,z=e.opacityOnly,K=e.easeOut,V=function(S){if(S.dataset.atroposOpacity&&typeof S.dataset.atroposOpacity=="string")return S.dataset.atroposOpacity.split(";").map(function(Y){return parseFloat(Y)})};oe(w,"[data-atropos-offset], [data-atropos-opacity]").forEach(function(_){T(_,M),P(_,K?"ease-out":"");var S=V(_);if(v===0&&y===0)z||j(_,"translate3d(0, 0, 0)"),S&&s(_,S[0]);else{var Y=parseFloat(_.dataset.atroposOffset)/100;if(!Number.isNaN(Y)&&!z&&j(_,"translate3d("+-y*-Y+"%, "+v*-Y+"%, 0)"),S){var W=S[0],rt=S[1],ot=Math.max(Math.abs(v),Math.abs(y));s(_,W+(rt-W)*ot/100)}}})},H=function(e,l){var v=a!==r;if($||($=a.getBoundingClientRect()),v&&!k&&(k=r.getBoundingClientRect()),typeof e>"u"&&typeof l>"u"){var x=v?k:$;e=x.left+x.width/2,l=x.top+x.height/2}var y=0,M=0,z=$,K=z.top,V=z.left,_=z.width,S=z.height,Y;if(v){var tt=k,pt=tt.top,ht=tt.left,jt=tt.width,Ct=tt.height,Ot=V-ht,Mt=K-pt,_t=_/2+Ot,St=S/2+Mt,bt=e-ht,Tt=l-pt;M=t.rotateYMax*(bt-_t)/(jt-_/2)*-1,y=t.rotateXMax*(Tt-St)/(Ct-S/2),Y=e-V+"px "+(l-K)+"px"}else{var W=_/2,rt=S/2,ot=e-V,Nt=l-K;M=t.rotateYMax*(ot-W)/(_/2)*-1,y=t.rotateXMax*(Nt-rt)/(S/2)}y=Math.min(Math.max(-y,-t.rotateXMax),t.rotateXMax),t.rotateXInvert&&(y=-y),M=Math.min(Math.max(-M,-t.rotateYMax),t.rotateYMax),t.rotateYInvert&&(M=-M);var Z=y/t.rotateXMax*100,B=M/t.rotateYMax*100,Pt=(v?B/100*t.stretchX:0)*(t.rotateYInvert?-1:1),Et=(v?Z/100*t.stretchY:0)*(t.rotateXInvert?-1:1),kt=v?Math.max(Math.abs(Z),Math.abs(B))/100*t.stretchZ:0;j(C,"translate3d("+Pt+"%, "+-Et+"%, "+-kt+"px) rotateX("+y+"deg) rotateY("+M+"deg)"),Y&&t.commonOrigin&&c(C,Y),d&&(T(d,t.duration+"ms"),P(d,"ease-out"),j(d,"translate3d("+-B*.25+"%, "+Z*.25+"%, 0)"),s(d,Math.max(Math.abs(Z),Math.abs(B))/100)),q({rotateXPercentage:Z,rotateYPercentage:B,duration:t.duration+"ms",easeOut:!0}),typeof t.onRotate=="function"&&t.onRotate(y,M)},lt=function(){N.push(function(){return a.classList.add("atropos-active")}),T(C,t.duration+"ms"),P(C,"ease-out"),j(O,"translate3d(0,0, "+t.activeOffset+"px)"),T(O,t.duration+"ms"),P(O,"ease-out"),f&&(T(f,t.duration+"ms"),P(f,"ease-out")),m.isActive=!0},J=function(e){if(L=void 0,!(e.type==="pointerdown"&&e.pointerType==="mouse")&&!(e.type==="pointerenter"&&e.pointerType!=="mouse")){if(e.type==="pointerdown"&&e.preventDefault(),A=e.clientX,g=e.clientY,t.alwaysActive){$=void 0,k=void 0;return}lt(),typeof t.onEnter=="function"&&t.onEnter()}},ut=function(e){L===!1&&e.cancelable&&e.preventDefault()},ft=function(e){if(!(!t.rotate||!m.isActive)){if(e.pointerType!=="mouse"){if(!t.rotateTouch)return;e.preventDefault()}var l=e.clientX,v=e.clientY,x=l-A,y=v-g;if(typeof t.rotateTouch=="string"&&(x!==0||y!==0)&&typeof L>"u"){if(x*x+y*y>=25){var M=Math.atan2(Math.abs(y),Math.abs(x))*180/Math.PI;L=t.rotateTouch==="scroll-y"?M>45:90-M>45}L===!1&&(a.classList.add("atropos-rotate-touch"),e.cancelable&&e.preventDefault())}e.pointerType!=="mouse"&&L||H(l,v)}},D=function(e){if($=void 0,k=void 0,!!m.isActive&&!(e&&e.type==="pointerup"&&e.pointerType==="mouse")&&!(e&&e.type==="pointerleave"&&e.pointerType!=="mouse")){if(typeof t.rotateTouch=="string"&&L&&a.classList.remove("atropos-rotate-touch"),t.alwaysActive){H(),typeof t.onRotate=="function"&&t.onRotate(0,0),typeof t.onLeave=="function"&&t.onLeave();return}N.push(function(){return a.classList.remove("atropos-active")}),T(O,t.duration+"ms"),P(O,""),j(O,"translate3d(0,0, 0px)"),f&&(T(f,t.duration+"ms"),P(f,"")),d&&(T(d,t.duration+"ms"),P(d,""),j(d,"translate3d(0, 0, 0)"),s(d,0)),T(C,t.duration+"ms"),P(C,""),j(C,"translate3d(0,0,0) rotateX(0deg) rotateY(0deg)"),q({duration:t.duration+"ms"}),m.isActive=!1,typeof t.onRotate=="function"&&t.onRotate(0,0),typeof t.onLeave=="function"&&t.onLeave()}},dt=function(e){var l=e.target;!r.contains(l)&&l!==r&&m.isActive&&D()},wt=function(){typeof a=="string"&&(a=U(document,a)),a&&(a.__atropos__||(typeof r<"u"?typeof r=="string"&&(r=U(document,r)):r=a,w=b?a.parentNode.host:a,Object.assign(m,{el:a}),C=U(a,".atropos-rotate"),O=U(a,".atropos-scale"),X=U(a,".atropos-inner"),a.__atropos__=m))},$t=function(){wt(),!(!a||!r)&&(t.shadow&&F(),t.highlight&&G(),t.rotateTouch&&(typeof t.rotateTouch=="string"?a.classList.add("atropos-rotate-touch-"+t.rotateTouch):a.classList.add("atropos-rotate-touch")),U(w,"[data-atropos-opacity]")&&q({opacityOnly:!0}),u(document,"click",dt),u(r,"pointerdown",J),u(r,"pointerenter",J),u(r,"pointermove",ft),u(r,"touchmove",ut),u(r,"pointerleave",D),u(r,"pointerup",D),u(r,"lostpointercapture",D),t.alwaysActive&&(lt(),H()))};return m.destroy=function(){m.destroyed=!0,cancelAnimationFrame(R),E(document,"click",dt),E(r,"pointerdown",J),E(r,"pointerenter",J),E(r,"pointermove",ft),E(r,"touchmove",ut),E(r,"pointerleave",D),E(r,"pointerup",D),E(r,"lostpointercapture",D),delete a.__atropos__},$t(),m}var ce=["component","children","rootChildren","scaleChildren","rotateChildren","className","scaleClassName","rotateClassName","innerClassName"];function at(){return at=Object.assign?Object.assign.bind():function(o){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(o[r]=a[r])}return o},at.apply(this,arguments)}function le(o,i){if(o==null)return{};var a={},r=Object.keys(o),b,w;for(w=0;w<r.length;w++)b=r[w],!(i.indexOf(b)>=0)&&(a[b]=o[b]);return a}var yt=["eventsEl","alwaysActive","activeOffset","shadowOffset","shadowScale","duration","rotate","rotateTouch","rotateXMax","rotateYMax","rotateXInvert","rotateYInvert","stretchX","stretchY","stretchZ","commonOrigin","shadow","highlight","onEnter","onLeave","onRotate"],ue=function(i){var a={};return Object.keys(i).forEach(function(r){yt.includes(r)||(a[r]=i[r])}),a},fe=function(i){var a={};return Object.keys(i).forEach(function(r){yt.includes(r)&&(a[r]=i[r])}),a};function de(o){var i=o.component,a=i===void 0?"div":i,r=o.children,b=o.rootChildren,w=o.scaleChildren,m=o.rotateChildren,t=o.className,C=t===void 0?"":t,O=o.scaleClassName,X=O===void 0?"":O,$=o.rotateClassName,k=$===void 0?"":$,f=o.innerClassName,d=f===void 0?"":f,L=le(o,ce),A=(0,h.useRef)(null),g=(0,h.useRef)(null),N=a,R=function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return c.filter(function(E){return!!E}).join(" ")},T=function(){g.current=ie(at({el:A.current},fe(o)))},P=function(){g.current&&(g.current.destroy(),g.current=null)};return(0,h.useEffect)(function(){return A.current&&T(),function(){P()}},[]),(0,h.useEffect)(function(){return g.current&&(g.current.params.onEnter=o.onEnter,g.current.params.onLeave=o.onLeave,g.current.params.onRotate=o.onRotate),function(){g.current&&(g.current.params.onEnter=null,g.current.params.onLeave=null,g.current.params.onRotate=null)}}),h.createElement(N,at({className:R("atropos",C)},ue(L),{ref:A}),h.createElement("span",{className:R("atropos-scale",X)},h.createElement("span",{className:R("atropos-rotate",k)},h.createElement("span",{className:R("atropos-inner",d)},r,(o.highlight||typeof o.highlight>"u")&&h.createElement("span",{className:"atropos-highlight"})),m,(o.shadow||typeof o.shadow>"u")&&h.createElement("span",{className:"atropos-shadow"})),w),b)}var pe=de,n=xt(Ut());function we(){const[o,i]=(0,h.useState)(!1),[a,r]=(0,h.useState)(""),[,b]=(0,h.useState)(""),[w,m]=(0,h.useState)("http"),[t,C]=(0,h.useState)(""),[O,X]=(0,h.useState)(""),[$,k]=(0,h.useState)(!1),[f,d]=(0,h.useState)(!1),L=qt(),A=()=>{const{protocol:s,hostname:c,port:u}=window.location;return u==="5173"?`${s}//${c}:7777`:u?`${s}//${c}:${u}`:`${s}//${c}`},g=s=>{try{const c=new URL(s);m(c.protocol==="https:"?"https":"http"),C(c.hostname),X(c.port||(c.protocol==="https:"?"443":"7777"))}catch{m("http"),C("localhost"),X("7777")}},N=(0,h.useCallback)(()=>t?`${w}://${t}:${O||(w==="https"?"443":"7777")}`:"",[w,t,O]);(0,h.useEffect)(()=>{if(Q()){const s=localStorage.getItem("serverUrl");if(s)b(s),g(s),Zt(async()=>{const{invoke:c}=await import("./core-B_b8RHlG.js");return{invoke:c}},__vite__mapDeps([0,1,2])).then(({invoke:c})=>{c("set_server_url",{url:s}).catch(console.error)});else{const c=A();b(c),g(c)}}},[]),(0,h.useEffect)(()=>{Q()&&t&&b(N())},[w,t,O,N]);const R=async()=>{if(!Q())return!0;if(!t.trim())return I.error("请输入服务器地址"),!1;const s=N();if(!s)return I.error("请输入服务器地址"),!1;try{new URL(s)}catch{return I.error("请输入有效的服务器地址"),!1}d(!0);try{return await Dt("set_server_url",{url:s}),(await gt.serverGet("/api/v1/ping",{timeout:5e3})).ping==="pong"?(localStorage.setItem("serverUrl",s),b(s),I.success("服务器连接成功"),!0):(I.error("无法连接到服务器,请检查地址是否正确"),!1)}catch{return I.error("连接测试失败,请检查服务器地址"),!1}finally{d(!1)}},T=async()=>{await R()},P=async()=>{if(!a.trim()){I.error("请输入密钥");return}if(await R()){k(!0);try{const s=Gt(a),c=await gt.serverPost("/api/v1/login",{authorization:s});if(!c||c===null){I.error("登录失败,密钥错误!");return}localStorage.setItem(nt.userId,c.userId),localStorage.setItem(nt.accessToken,c.accessToken),localStorage.setItem(nt.refreshToken,c.refreshToken),I.success("登录成功!");const u=localStorage.getItem("redirectPath");localStorage.removeItem("redirectPath"),u&&u!=="/kkk/login"?window.location.href=u:L("/crack",{replace:!0})}catch(s){console.error(s),I.error("登录失败,请检查密钥是否正确")}finally{k(!1)}}},j=s=>{s.stopPropagation();const c=s.currentTarget;setTimeout(()=>{c.focus()},0)};return(0,n.jsx)("div",{className:"flex justify-center items-center p-4 min-h-screen bg-background",children:(0,n.jsx)(pe,{className:"w-full max-w-lg pointer-events-none",activeOffset:40,shadowScale:1.05,rotateXMax:15,rotateYMax:15,duration:300,shadow:!0,children:(0,n.jsxs)(zt,{className:"w-full h-full","data-atropos-offset":"0",children:[(0,n.jsxs)(Ft,{className:"space-y-1","data-atropos-offset":"0",children:[(0,n.jsx)(Ht,{className:"text-2xl font-semibold tracking-tight",children:"kkk 插件登录"}),(0,n.jsx)(Bt,{children:Q()?"请先配置服务器地址,然后输入密钥登录":"请输入密钥登录"})]}),(0,n.jsx)(Kt,{"data-atropos-offset":"0",children:(0,n.jsxs)("form",{className:"space-y-4 pointer-events-auto",onSubmit:s=>{s.preventDefault(),P()},children:[Q()&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(et,{htmlFor:"serverConfig",children:"服务器地址"}),(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsxs)("div",{className:"flex items-center space-x-2 pointer-events-auto z-10","data-atropos-offset":"0",children:[(0,n.jsx)(et,{htmlFor:"protocol",className:"text-sm text-muted-foreground min-w-[40px]",children:"协议"}),(0,n.jsxs)(Yt,{value:w,onValueChange:s=>m(s),children:[(0,n.jsx)(Rt,{className:"w-[100px]","data-atropos-offset":"0",children:(0,n.jsx)(Lt,{})}),(0,n.jsxs)(It,{"data-atropos-offset":"0",children:[(0,n.jsx)(vt,{value:"http",children:"HTTP"}),(0,n.jsx)(vt,{value:"https",children:"HTTPS"})]})]})]}),(0,n.jsxs)("div",{className:"flex items-center space-x-2 pointer-events-auto z-10","data-atropos-offset":"0",children:[(0,n.jsx)(et,{htmlFor:"hostname",className:"text-sm text-muted-foreground min-w-[40px]",children:"地址"}),(0,n.jsxs)("div",{className:"relative flex-1 pointer-events-auto z-10","data-atropos-offset":"0",children:[(0,n.jsx)(Xt,{className:"absolute left-3 top-1/2 w-4 h-4 transform -translate-y-1/2 text-muted-foreground","data-atropos-offset":"0"}),(0,n.jsx)(st,{id:"hostname",type:"text",value:t,onChange:s=>{const c=s.target.value;if(c.includes("://")){const u=c.match(/(https?:\/\/[^\s]+)/);if(u){const E=u[1],F=new URL(E),G=F.protocol==="https:"?"https":"http",q=F.hostname,H=F.port||(G==="https"?"443":"7777");m(G),C(q),X(H);return}}C(c)},className:"pl-9",placeholder:"localhost 或粘贴完整URL",disabled:$||f,onTouchStart:j,"data-atropos-offset":"0"})]}),(0,n.jsxs)("div",{className:"flex items-center space-x-1 pointer-events-auto z-10","data-atropos-offset":"0",children:[(0,n.jsx)("span",{className:"text-sm text-muted-foreground",children:":"}),(0,n.jsx)(st,{id:"port",type:"number",value:O,onChange:s=>X(s.target.value),className:"w-[80px]",placeholder:w==="https"?"443":"7777",disabled:$||f,onTouchStart:j,min:"1",max:"65535","data-atropos-offset":"0"})]})]}),t&&(0,n.jsxs)("div",{className:"p-2 text-xs rounded border text-muted-foreground bg-muted/50 pointer-events-auto z-10","data-atropos-offset":"0",children:["地址预览: ",N()]})]}),(0,n.jsx)(mt,{type:"button",variant:"outline",onClick:T,disabled:f||!t.trim(),className:"w-full relative z-10 pointer-events-auto","data-atropos-offset":"0",children:f?"测试连接中...":"测试服务器连接"})]}),(0,n.jsx)(Qt,{"data-atropos-offset":"0"})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(et,{htmlFor:"token",children:"密钥"}),(0,n.jsxs)("div",{className:"relative z-10 pointer-events-auto","data-atropos-offset":"0",children:[(0,n.jsx)(re,{className:"absolute left-3 top-1/2 w-4 h-4 transform -translate-y-1/2 text-muted-foreground","data-atropos-offset":"0"}),(0,n.jsx)(st,{id:"token",type:o?"text":"password",value:a,onChange:s=>r(s.target.value),className:"pr-9 pl-9",placeholder:"请输入 HTTP 鉴权密钥",disabled:$,onTouchStart:j,"data-atropos-offset":"0"}),(0,n.jsx)("button",{type:"button",onClick:()=>i(!o),className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-muted-foreground hover:text-foreground pointer-events-auto",disabled:$||f,"data-atropos-offset":"0",children:o?(0,n.jsx)(ee,{className:"w-4 h-4"}):(0,n.jsx)(At,{className:"w-4 h-4"})})]})]}),(0,n.jsxs)(mt,{type:"submit",disabled:$,className:"relative z-10 pointer-events-auto w-full","data-atropos-offset":"0",children:[$?"登录中...":"登录",!$&&(0,n.jsx)(Wt,{className:"ml-2 w-4 h-4","data-atropos-offset":"0"})]})]})})]})})})}export{we as default};
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/core-Gs8avqc0.js","assets/index-DdAGSRAR.js","assets/index-DICd1U-F.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{s as et}from"./Combination-9Z3vZ_qB.js";import{a as Lt,i as Rt,n as It,o as Xt,r as vt,t as Yt}from"./select-ChvEL4Ce.js";import{t as At}from"./eye-CcwaLhDE.js";import{J as ct,Q,V as Ut,Z as Dt,c as zt,ct as xt,d as Ft,et as qt,f as Ht,i as nt,l as Kt,n as I,p as mt,rt as Vt,tt as Zt,u as Bt}from"./index-DdAGSRAR.js";import{t as Qt}from"./separator-D-H2bJ1_.js";import{n as Gt,s as st,t as gt}from"./request-CeqCIAeR.js";var Jt=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Wt=ct("arrow-right",Jt),te=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],ee=ct("eye-off",te),ae=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],re=ct("lock",ae),h=xt(Vt(),1);function it(){return it=Object.assign?Object.assign.bind():function(o){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(o[r]=a[r])}return o},it.apply(this,arguments)}var U=function(i,a){return i.querySelector(a)},oe=function(i,a){return i.querySelectorAll(a)},ne=function(i){i===void 0&&(i={});var a={};return Object.keys(i).forEach(function(r){typeof i[r]<"u"&&(a[r]=i[r])}),a},se={alwaysActive:!1,activeOffset:50,shadowOffset:50,shadowScale:1,duration:300,rotate:!0,rotateTouch:!0,rotateXMax:15,rotateYMax:15,rotateXInvert:!1,rotateYInvert:!1,stretchX:0,stretchY:0,stretchZ:0,commonOrigin:!0,shadow:!0,highlight:!0};function ie(o){o===void 0&&(o={});var i=o,a=i.el,r=i.eventsEl,b=o.isComponent,w,m={__atropos__:!0,params:it({},se,{onEnter:null,onLeave:null,onRotate:null},ne(o||{})),destroyed:!1,isActive:!1},t=m.params,C,O,X,$,k,f,d,L,A,g,N=[],R;(function p(){R=requestAnimationFrame(function(){N.forEach(function(e){if(typeof e=="function")e();else{var l=e.element,v=e.prop,x=e.value;l.style[v]=x}}),N.splice(0,N.length),p()})})();var T=function(e,l){N.push({element:e,prop:"transitionDuration",value:l})},P=function(e,l){N.push({element:e,prop:"transitionTimingFunction",value:l})},j=function(e,l){N.push({element:e,prop:"transform",value:l})},s=function(e,l){N.push({element:e,prop:"opacity",value:l})},c=function(e,l){N.push({element:e,prop:"transformOrigin",value:l})},u=function(e,l,v,x){return e.addEventListener(l,v,x)},E=function(e,l,v,x){return e.removeEventListener(l,v,x)},F=function(){var e;f=U(a,".atropos-shadow"),f||(f=document.createElement("span"),f.classList.add("atropos-shadow"),e=!0),j(f,"translate3d(0,0,-"+t.shadowOffset+"px) scale("+t.shadowScale+")"),e&&C.appendChild(f)},G=function(){var e;d=U(a,".atropos-highlight"),d||(d=document.createElement("span"),d.classList.add("atropos-highlight"),e=!0),j(d,"translate3d(0,0,0)"),e&&X.appendChild(d)},q=function(e){var l=e.rotateXPercentage,v=l===void 0?0:l,x=e.rotateYPercentage,y=x===void 0?0:x,M=e.duration,z=e.opacityOnly,K=e.easeOut,V=function(S){if(S.dataset.atroposOpacity&&typeof S.dataset.atroposOpacity=="string")return S.dataset.atroposOpacity.split(";").map(function(Y){return parseFloat(Y)})};oe(w,"[data-atropos-offset], [data-atropos-opacity]").forEach(function(_){T(_,M),P(_,K?"ease-out":"");var S=V(_);if(v===0&&y===0)z||j(_,"translate3d(0, 0, 0)"),S&&s(_,S[0]);else{var Y=parseFloat(_.dataset.atroposOffset)/100;if(!Number.isNaN(Y)&&!z&&j(_,"translate3d("+-y*-Y+"%, "+v*-Y+"%, 0)"),S){var W=S[0],rt=S[1],ot=Math.max(Math.abs(v),Math.abs(y));s(_,W+(rt-W)*ot/100)}}})},H=function(e,l){var v=a!==r;if($||($=a.getBoundingClientRect()),v&&!k&&(k=r.getBoundingClientRect()),typeof e>"u"&&typeof l>"u"){var x=v?k:$;e=x.left+x.width/2,l=x.top+x.height/2}var y=0,M=0,z=$,K=z.top,V=z.left,_=z.width,S=z.height,Y;if(v){var tt=k,pt=tt.top,ht=tt.left,jt=tt.width,Ct=tt.height,Ot=V-ht,Mt=K-pt,_t=_/2+Ot,St=S/2+Mt,bt=e-ht,Tt=l-pt;M=t.rotateYMax*(bt-_t)/(jt-_/2)*-1,y=t.rotateXMax*(Tt-St)/(Ct-S/2),Y=e-V+"px "+(l-K)+"px"}else{var W=_/2,rt=S/2,ot=e-V,Nt=l-K;M=t.rotateYMax*(ot-W)/(_/2)*-1,y=t.rotateXMax*(Nt-rt)/(S/2)}y=Math.min(Math.max(-y,-t.rotateXMax),t.rotateXMax),t.rotateXInvert&&(y=-y),M=Math.min(Math.max(-M,-t.rotateYMax),t.rotateYMax),t.rotateYInvert&&(M=-M);var Z=y/t.rotateXMax*100,B=M/t.rotateYMax*100,Pt=(v?B/100*t.stretchX:0)*(t.rotateYInvert?-1:1),Et=(v?Z/100*t.stretchY:0)*(t.rotateXInvert?-1:1),kt=v?Math.max(Math.abs(Z),Math.abs(B))/100*t.stretchZ:0;j(C,"translate3d("+Pt+"%, "+-Et+"%, "+-kt+"px) rotateX("+y+"deg) rotateY("+M+"deg)"),Y&&t.commonOrigin&&c(C,Y),d&&(T(d,t.duration+"ms"),P(d,"ease-out"),j(d,"translate3d("+-B*.25+"%, "+Z*.25+"%, 0)"),s(d,Math.max(Math.abs(Z),Math.abs(B))/100)),q({rotateXPercentage:Z,rotateYPercentage:B,duration:t.duration+"ms",easeOut:!0}),typeof t.onRotate=="function"&&t.onRotate(y,M)},lt=function(){N.push(function(){return a.classList.add("atropos-active")}),T(C,t.duration+"ms"),P(C,"ease-out"),j(O,"translate3d(0,0, "+t.activeOffset+"px)"),T(O,t.duration+"ms"),P(O,"ease-out"),f&&(T(f,t.duration+"ms"),P(f,"ease-out")),m.isActive=!0},J=function(e){if(L=void 0,!(e.type==="pointerdown"&&e.pointerType==="mouse")&&!(e.type==="pointerenter"&&e.pointerType!=="mouse")){if(e.type==="pointerdown"&&e.preventDefault(),A=e.clientX,g=e.clientY,t.alwaysActive){$=void 0,k=void 0;return}lt(),typeof t.onEnter=="function"&&t.onEnter()}},ut=function(e){L===!1&&e.cancelable&&e.preventDefault()},ft=function(e){if(!(!t.rotate||!m.isActive)){if(e.pointerType!=="mouse"){if(!t.rotateTouch)return;e.preventDefault()}var l=e.clientX,v=e.clientY,x=l-A,y=v-g;if(typeof t.rotateTouch=="string"&&(x!==0||y!==0)&&typeof L>"u"){if(x*x+y*y>=25){var M=Math.atan2(Math.abs(y),Math.abs(x))*180/Math.PI;L=t.rotateTouch==="scroll-y"?M>45:90-M>45}L===!1&&(a.classList.add("atropos-rotate-touch"),e.cancelable&&e.preventDefault())}e.pointerType!=="mouse"&&L||H(l,v)}},D=function(e){if($=void 0,k=void 0,!!m.isActive&&!(e&&e.type==="pointerup"&&e.pointerType==="mouse")&&!(e&&e.type==="pointerleave"&&e.pointerType!=="mouse")){if(typeof t.rotateTouch=="string"&&L&&a.classList.remove("atropos-rotate-touch"),t.alwaysActive){H(),typeof t.onRotate=="function"&&t.onRotate(0,0),typeof t.onLeave=="function"&&t.onLeave();return}N.push(function(){return a.classList.remove("atropos-active")}),T(O,t.duration+"ms"),P(O,""),j(O,"translate3d(0,0, 0px)"),f&&(T(f,t.duration+"ms"),P(f,"")),d&&(T(d,t.duration+"ms"),P(d,""),j(d,"translate3d(0, 0, 0)"),s(d,0)),T(C,t.duration+"ms"),P(C,""),j(C,"translate3d(0,0,0) rotateX(0deg) rotateY(0deg)"),q({duration:t.duration+"ms"}),m.isActive=!1,typeof t.onRotate=="function"&&t.onRotate(0,0),typeof t.onLeave=="function"&&t.onLeave()}},dt=function(e){var l=e.target;!r.contains(l)&&l!==r&&m.isActive&&D()},wt=function(){typeof a=="string"&&(a=U(document,a)),a&&(a.__atropos__||(typeof r<"u"?typeof r=="string"&&(r=U(document,r)):r=a,w=b?a.parentNode.host:a,Object.assign(m,{el:a}),C=U(a,".atropos-rotate"),O=U(a,".atropos-scale"),X=U(a,".atropos-inner"),a.__atropos__=m))},$t=function(){wt(),!(!a||!r)&&(t.shadow&&F(),t.highlight&&G(),t.rotateTouch&&(typeof t.rotateTouch=="string"?a.classList.add("atropos-rotate-touch-"+t.rotateTouch):a.classList.add("atropos-rotate-touch")),U(w,"[data-atropos-opacity]")&&q({opacityOnly:!0}),u(document,"click",dt),u(r,"pointerdown",J),u(r,"pointerenter",J),u(r,"pointermove",ft),u(r,"touchmove",ut),u(r,"pointerleave",D),u(r,"pointerup",D),u(r,"lostpointercapture",D),t.alwaysActive&&(lt(),H()))};return m.destroy=function(){m.destroyed=!0,cancelAnimationFrame(R),E(document,"click",dt),E(r,"pointerdown",J),E(r,"pointerenter",J),E(r,"pointermove",ft),E(r,"touchmove",ut),E(r,"pointerleave",D),E(r,"pointerup",D),E(r,"lostpointercapture",D),delete a.__atropos__},$t(),m}var ce=["component","children","rootChildren","scaleChildren","rotateChildren","className","scaleClassName","rotateClassName","innerClassName"];function at(){return at=Object.assign?Object.assign.bind():function(o){for(var i=1;i<arguments.length;i++){var a=arguments[i];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(o[r]=a[r])}return o},at.apply(this,arguments)}function le(o,i){if(o==null)return{};var a={},r=Object.keys(o),b,w;for(w=0;w<r.length;w++)b=r[w],!(i.indexOf(b)>=0)&&(a[b]=o[b]);return a}var yt=["eventsEl","alwaysActive","activeOffset","shadowOffset","shadowScale","duration","rotate","rotateTouch","rotateXMax","rotateYMax","rotateXInvert","rotateYInvert","stretchX","stretchY","stretchZ","commonOrigin","shadow","highlight","onEnter","onLeave","onRotate"],ue=function(i){var a={};return Object.keys(i).forEach(function(r){yt.includes(r)||(a[r]=i[r])}),a},fe=function(i){var a={};return Object.keys(i).forEach(function(r){yt.includes(r)&&(a[r]=i[r])}),a};function de(o){var i=o.component,a=i===void 0?"div":i,r=o.children,b=o.rootChildren,w=o.scaleChildren,m=o.rotateChildren,t=o.className,C=t===void 0?"":t,O=o.scaleClassName,X=O===void 0?"":O,$=o.rotateClassName,k=$===void 0?"":$,f=o.innerClassName,d=f===void 0?"":f,L=le(o,ce),A=(0,h.useRef)(null),g=(0,h.useRef)(null),N=a,R=function(){for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return c.filter(function(E){return!!E}).join(" ")},T=function(){g.current=ie(at({el:A.current},fe(o)))},P=function(){g.current&&(g.current.destroy(),g.current=null)};return(0,h.useEffect)(function(){return A.current&&T(),function(){P()}},[]),(0,h.useEffect)(function(){return g.current&&(g.current.params.onEnter=o.onEnter,g.current.params.onLeave=o.onLeave,g.current.params.onRotate=o.onRotate),function(){g.current&&(g.current.params.onEnter=null,g.current.params.onLeave=null,g.current.params.onRotate=null)}}),h.createElement(N,at({className:R("atropos",C)},ue(L),{ref:A}),h.createElement("span",{className:R("atropos-scale",X)},h.createElement("span",{className:R("atropos-rotate",k)},h.createElement("span",{className:R("atropos-inner",d)},r,(o.highlight||typeof o.highlight>"u")&&h.createElement("span",{className:"atropos-highlight"})),m,(o.shadow||typeof o.shadow>"u")&&h.createElement("span",{className:"atropos-shadow"})),w),b)}var pe=de,n=xt(Ut());function we(){const[o,i]=(0,h.useState)(!1),[a,r]=(0,h.useState)(""),[,b]=(0,h.useState)(""),[w,m]=(0,h.useState)("http"),[t,C]=(0,h.useState)(""),[O,X]=(0,h.useState)(""),[$,k]=(0,h.useState)(!1),[f,d]=(0,h.useState)(!1),L=qt(),A=()=>{const{protocol:s,hostname:c,port:u}=window.location;return u==="5173"?`${s}//${c}:7777`:u?`${s}//${c}:${u}`:`${s}//${c}`},g=s=>{try{const c=new URL(s);m(c.protocol==="https:"?"https":"http"),C(c.hostname),X(c.port||(c.protocol==="https:"?"443":"7777"))}catch{m("http"),C("localhost"),X("7777")}},N=(0,h.useCallback)(()=>t?`${w}://${t}:${O||(w==="https"?"443":"7777")}`:"",[w,t,O]);(0,h.useEffect)(()=>{if(Q()){const s=localStorage.getItem("serverUrl");if(s)b(s),g(s),Zt(async()=>{const{invoke:c}=await import("./core-Gs8avqc0.js");return{invoke:c}},__vite__mapDeps([0,1,2])).then(({invoke:c})=>{c("set_server_url",{url:s}).catch(console.error)});else{const c=A();b(c),g(c)}}},[]),(0,h.useEffect)(()=>{Q()&&t&&b(N())},[w,t,O,N]);const R=async()=>{if(!Q())return!0;if(!t.trim())return I.error("请输入服务器地址"),!1;const s=N();if(!s)return I.error("请输入服务器地址"),!1;try{new URL(s)}catch{return I.error("请输入有效的服务器地址"),!1}d(!0);try{return await Dt("set_server_url",{url:s}),(await gt.serverGet("/api/v1/ping",{timeout:5e3})).ping==="pong"?(localStorage.setItem("serverUrl",s),b(s),I.success("服务器连接成功"),!0):(I.error("无法连接到服务器,请检查地址是否正确"),!1)}catch{return I.error("连接测试失败,请检查服务器地址"),!1}finally{d(!1)}},T=async()=>{await R()},P=async()=>{if(!a.trim()){I.error("请输入密钥");return}if(await R()){k(!0);try{const s=Gt(a),c=await gt.serverPost("/api/v1/login",{authorization:s});if(!c||c===null){I.error("登录失败,密钥错误!");return}localStorage.setItem(nt.userId,c.userId),localStorage.setItem(nt.accessToken,c.accessToken),localStorage.setItem(nt.refreshToken,c.refreshToken),I.success("登录成功!");const u=localStorage.getItem("redirectPath");localStorage.removeItem("redirectPath"),u&&u!=="/kkk/login"?window.location.href=u:L("/crack",{replace:!0})}catch(s){console.error(s),I.error("登录失败,请检查密钥是否正确")}finally{k(!1)}}},j=s=>{s.stopPropagation();const c=s.currentTarget;setTimeout(()=>{c.focus()},0)};return(0,n.jsx)("div",{className:"flex justify-center items-center p-4 min-h-screen bg-background",children:(0,n.jsx)(pe,{className:"w-full max-w-lg pointer-events-none",activeOffset:40,shadowScale:1.05,rotateXMax:15,rotateYMax:15,duration:300,shadow:!0,children:(0,n.jsxs)(zt,{className:"w-full h-full","data-atropos-offset":"0",children:[(0,n.jsxs)(Ft,{className:"space-y-1","data-atropos-offset":"0",children:[(0,n.jsx)(Ht,{className:"text-2xl font-semibold tracking-tight",children:"kkk 插件登录"}),(0,n.jsx)(Bt,{children:Q()?"请先配置服务器地址,然后输入密钥登录":"请输入密钥登录"})]}),(0,n.jsx)(Kt,{"data-atropos-offset":"0",children:(0,n.jsxs)("form",{className:"space-y-4 pointer-events-auto",onSubmit:s=>{s.preventDefault(),P()},children:[Q()&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(et,{htmlFor:"serverConfig",children:"服务器地址"}),(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsxs)("div",{className:"flex items-center space-x-2 pointer-events-auto z-10","data-atropos-offset":"0",children:[(0,n.jsx)(et,{htmlFor:"protocol",className:"text-sm text-muted-foreground min-w-[40px]",children:"协议"}),(0,n.jsxs)(Yt,{value:w,onValueChange:s=>m(s),children:[(0,n.jsx)(Rt,{className:"w-[100px]","data-atropos-offset":"0",children:(0,n.jsx)(Lt,{})}),(0,n.jsxs)(It,{"data-atropos-offset":"0",children:[(0,n.jsx)(vt,{value:"http",children:"HTTP"}),(0,n.jsx)(vt,{value:"https",children:"HTTPS"})]})]})]}),(0,n.jsxs)("div",{className:"flex items-center space-x-2 pointer-events-auto z-10","data-atropos-offset":"0",children:[(0,n.jsx)(et,{htmlFor:"hostname",className:"text-sm text-muted-foreground min-w-[40px]",children:"地址"}),(0,n.jsxs)("div",{className:"relative flex-1 pointer-events-auto z-10","data-atropos-offset":"0",children:[(0,n.jsx)(Xt,{className:"absolute left-3 top-1/2 w-4 h-4 transform -translate-y-1/2 text-muted-foreground","data-atropos-offset":"0"}),(0,n.jsx)(st,{id:"hostname",type:"text",value:t,onChange:s=>{const c=s.target.value;if(c.includes("://")){const u=c.match(/(https?:\/\/[^\s]+)/);if(u){const E=u[1],F=new URL(E),G=F.protocol==="https:"?"https":"http",q=F.hostname,H=F.port||(G==="https"?"443":"7777");m(G),C(q),X(H);return}}C(c)},className:"pl-9",placeholder:"localhost 或粘贴完整URL",disabled:$||f,onTouchStart:j,"data-atropos-offset":"0"})]}),(0,n.jsxs)("div",{className:"flex items-center space-x-1 pointer-events-auto z-10","data-atropos-offset":"0",children:[(0,n.jsx)("span",{className:"text-sm text-muted-foreground",children:":"}),(0,n.jsx)(st,{id:"port",type:"number",value:O,onChange:s=>X(s.target.value),className:"w-[80px]",placeholder:w==="https"?"443":"7777",disabled:$||f,onTouchStart:j,min:"1",max:"65535","data-atropos-offset":"0"})]})]}),t&&(0,n.jsxs)("div",{className:"p-2 text-xs rounded border text-muted-foreground bg-muted/50 pointer-events-auto z-10","data-atropos-offset":"0",children:["地址预览: ",N()]})]}),(0,n.jsx)(mt,{type:"button",variant:"outline",onClick:T,disabled:f||!t.trim(),className:"w-full relative z-10 pointer-events-auto","data-atropos-offset":"0",children:f?"测试连接中...":"测试服务器连接"})]}),(0,n.jsx)(Qt,{"data-atropos-offset":"0"})]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(et,{htmlFor:"token",children:"密钥"}),(0,n.jsxs)("div",{className:"relative z-10 pointer-events-auto","data-atropos-offset":"0",children:[(0,n.jsx)(re,{className:"absolute left-3 top-1/2 w-4 h-4 transform -translate-y-1/2 text-muted-foreground","data-atropos-offset":"0"}),(0,n.jsx)(st,{id:"token",type:o?"text":"password",value:a,onChange:s=>r(s.target.value),className:"pr-9 pl-9",placeholder:"请输入 HTTP 鉴权密钥",disabled:$,onTouchStart:j,"data-atropos-offset":"0"}),(0,n.jsx)("button",{type:"button",onClick:()=>i(!o),className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-muted-foreground hover:text-foreground pointer-events-auto",disabled:$||f,"data-atropos-offset":"0",children:o?(0,n.jsx)(ee,{className:"w-4 h-4"}):(0,n.jsx)(At,{className:"w-4 h-4"})})]})]}),(0,n.jsxs)(mt,{type:"submit",disabled:$,className:"relative z-10 pointer-events-auto w-full","data-atropos-offset":"0",children:[$?"登录中...":"登录",!$&&(0,n.jsx)(Wt,{className:"ml-2 w-4 h-4","data-atropos-offset":"0"})]})]})})]})})})}export{we as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as r,V as i,c as n,ct as d,d as o,et as m,l as h,p as s,u as x}from"./index-
|
|
1
|
+
import{J as r,V as i,c as n,ct as d,d as o,et as m,l as h,p as s,u as x}from"./index-DdAGSRAR.js";import{t as u}from"./separator-D-H2bJ1_.js";var v=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],j=r("house",v),p=[["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"}]],N=r("refresh-cw",p),e=d(i()),f=()=>{const a=m(),t=()=>{a("/",{replace:!0})},c=()=>{a(-1)},l=()=>{window.location.reload()};return(0,e.jsx)("div",{className:"flex justify-center items-center p-4 min-h-screen bg-gradient-to-br from-background to-muted/20",children:(0,e.jsxs)(n,{className:"mx-auto w-full max-w-md shadow-lg",children:[(0,e.jsxs)(o,{className:"pb-4 text-center",children:[(0,e.jsx)("div",{className:"flex justify-center items-center mx-auto mb-4",children:(0,e.jsx)("img",{src:"/404.svg",className:"w-48 h-48"})}),(0,e.jsx)(x,{className:"text-lg",children:"页面未找到"})]}),(0,e.jsxs)(h,{className:"space-y-4",children:[(0,e.jsxs)("div",{className:"text-center text-muted-foreground",children:[(0,e.jsx)("p",{className:"mb-2",children:"抱歉,您访问的页面不存在。"}),(0,e.jsx)("p",{className:"text-sm",children:"可能是链接错误或页面已被移除。"})]}),(0,e.jsx)(u,{}),(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.jsxs)(s,{onClick:t,className:"w-full",size:"lg",children:[(0,e.jsx)(j,{className:"mr-2 w-4 h-4"}),"返回首页"]}),(0,e.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,e.jsx)(s,{onClick:c,variant:"outline",size:"sm",children:"返回上页"}),(0,e.jsxs)(s,{onClick:l,variant:"outline",size:"sm",children:[(0,e.jsx)(N,{className:"mr-1 w-3 h-3"}),"刷新"]})]})]})]})]})})},k=f;export{k as default};
|