Files
CloudSearch/source_clean/frontend/assets/SearchResult-yqH3re1K.js
2026-05-18 05:11:57 +08:00

9 lines
57 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{d as ht,o as nn,l as zn,i as d,c as f,m as we,a as g,n as ut,t as p,j as Oe,b as A,F as $,r as oe,p as Gt,g as E,q as J,_ as vt,v as Qt,e as z,w as K,f as Xt,x as Me,k as G,y as Hn,h as le,s as Kn,z as On,A as xn,E as Re,u as Jn,B as Wn}from"./index-YG2DI6K3.js";import{C as sn,a as Ae,b as on}from"./index-Bn7NwETH.js";import{a as Yn,b as jn,s as Gn,c as Qn,d as Xn,q as Zn,e as $n,f as es}from"./index-DUo11ZWB.js";var Ne={},ts=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},an={},se={};let mt;const ns=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];se.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};se.getSymbolTotalCodewords=function(t){return ns[t]};se.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};se.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');mt=t};se.isKanjiModeEnabled=function(){return typeof mt<"u"};se.toSJIS=function(t){return mt(t)};var We={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(a){if(typeof a!="string")throw new Error("Param is not a string");switch(a.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+a)}}e.isValid=function(s){return s&&typeof s.bit<"u"&&s.bit>=0&&s.bit<4},e.from=function(s,n){if(e.isValid(s))return s;try{return t(s)}catch{return n}}})(We);function ln(){this.buffer=[],this.length=0}ln.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let a=0;a<t;a++)this.putBit((e>>>t-a-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var ss=ln;function Le(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Le.prototype.set=function(e,t,a,s){const n=e*this.size+t;this.data[n]=a,s&&(this.reservedBit[n]=!0)};Le.prototype.get=function(e,t){return this.data[e*this.size+t]};Le.prototype.xor=function(e,t,a){this.data[e*this.size+t]^=a};Le.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var os=Le,rn={};(function(e){const t=se.getSymbolSize;e.getRowColCoords=function(s){if(s===1)return[];const n=Math.floor(s/7)+2,o=t(s),r=o===145?26:Math.ceil((o-13)/(2*n-2))*2,i=[o-7];for(let u=1;u<n-1;u++)i[u]=i[u-1]-r;return i.push(6),i.reverse()},e.getPositions=function(s){const n=[],o=e.getRowColCoords(s),r=o.length;for(let i=0;i<r;i++)for(let u=0;u<r;u++)i===0&&u===0||i===0&&u===r-1||i===r-1&&u===0||n.push([o[i],o[u]]);return n}})(rn);var un={};const as=se.getSymbolSize,Zt=7;un.getPositions=function(t){const a=as(t);return[[0,0],[a-Zt,0],[0,a-Zt]]};var cn={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const o=n.size;let r=0,i=0,u=0,v=null,h=null;for(let D=0;D<o;D++){i=u=0,v=h=null;for(let T=0;T<o;T++){let y=n.get(D,T);y===v?i++:(i>=5&&(r+=t.N1+(i-5)),v=y,i=1),y=n.get(T,D),y===h?u++:(u>=5&&(r+=t.N1+(u-5)),h=y,u=1)}i>=5&&(r+=t.N1+(i-5)),u>=5&&(r+=t.N1+(u-5))}return r},e.getPenaltyN2=function(n){const o=n.size;let r=0;for(let i=0;i<o-1;i++)for(let u=0;u<o-1;u++){const v=n.get(i,u)+n.get(i,u+1)+n.get(i+1,u)+n.get(i+1,u+1);(v===4||v===0)&&r++}return r*t.N2},e.getPenaltyN3=function(n){const o=n.size;let r=0,i=0,u=0;for(let v=0;v<o;v++){i=u=0;for(let h=0;h<o;h++)i=i<<1&2047|n.get(v,h),h>=10&&(i===1488||i===93)&&r++,u=u<<1&2047|n.get(h,v),h>=10&&(u===1488||u===93)&&r++}return r*t.N3},e.getPenaltyN4=function(n){let o=0;const r=n.data.length;for(let u=0;u<r;u++)o+=n.data[u];return Math.abs(Math.ceil(o*100/r/5)-10)*t.N4};function a(s,n,o){switch(s){case e.Patterns.PATTERN000:return(n+o)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return o%3===0;case e.Patterns.PATTERN011:return(n+o)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(o/3))%2===0;case e.Patterns.PATTERN101:return n*o%2+n*o%3===0;case e.Patterns.PATTERN110:return(n*o%2+n*o%3)%2===0;case e.Patterns.PATTERN111:return(n*o%3+(n+o)%2)%2===0;default:throw new Error("bad maskPattern:"+s)}}e.applyMask=function(n,o){const r=o.size;for(let i=0;i<r;i++)for(let u=0;u<r;u++)o.isReserved(u,i)||o.xor(u,i,a(n,u,i))},e.getBestMask=function(n,o){const r=Object.keys(e.Patterns).length;let i=0,u=1/0;for(let v=0;v<r;v++){o(v),e.applyMask(v,n);const h=e.getPenaltyN1(n)+e.getPenaltyN2(n)+e.getPenaltyN3(n)+e.getPenaltyN4(n);e.applyMask(v,n),h<u&&(u=h,i=v)}return i}})(cn);var Ye={};const he=We,ze=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],He=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Ye.getBlocksCount=function(t,a){switch(a){case he.L:return ze[(t-1)*4+0];case he.M:return ze[(t-1)*4+1];case he.Q:return ze[(t-1)*4+2];case he.H:return ze[(t-1)*4+3];default:return}};Ye.getTotalCodewordsCount=function(t,a){switch(a){case he.L:return He[(t-1)*4+0];case he.M:return He[(t-1)*4+1];case he.Q:return He[(t-1)*4+2];case he.H:return He[(t-1)*4+3];default:return}};var dn={},je={};const Se=new Uint8Array(512),xe=new Uint8Array(256);(function(){let t=1;for(let a=0;a<255;a++)Se[a]=t,xe[t]=a,t<<=1,t&256&&(t^=285);for(let a=255;a<512;a++)Se[a]=Se[a-255]})();je.log=function(t){if(t<1)throw new Error("log("+t+")");return xe[t]};je.exp=function(t){return Se[t]};je.mul=function(t,a){return t===0||a===0?0:Se[xe[t]+xe[a]]};(function(e){const t=je;e.mul=function(s,n){const o=new Uint8Array(s.length+n.length-1);for(let r=0;r<s.length;r++)for(let i=0;i<n.length;i++)o[r+i]^=t.mul(s[r],n[i]);return o},e.mod=function(s,n){let o=new Uint8Array(s);for(;o.length-n.length>=0;){const r=o[0];for(let u=0;u<n.length;u++)o[u]^=t.mul(n[u],r);let i=0;for(;i<o.length&&o[i]===0;)i++;o=o.slice(i)}return o},e.generateECPolynomial=function(s){let n=new Uint8Array([1]);for(let o=0;o<s;o++)n=e.mul(n,new Uint8Array([1,t.exp(o)]));return n}})(dn);const fn=dn;function pt(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}pt.prototype.initialize=function(t){this.degree=t,this.genPoly=fn.generateECPolynomial(this.degree)};pt.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(t.length+this.degree);a.set(t);const s=fn.mod(a,this.genPoly),n=this.degree-s.length;if(n>0){const o=new Uint8Array(this.degree);return o.set(s,n),o}return s};var ls=pt,gn={},ve={},yt={};yt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var re={};const hn="[0-9]+",rs="[A-Z $%*+\\-./:]+";let Pe="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Pe=Pe.replace(/u/g,"\\u");const is="(?:(?![A-Z0-9 $%*+\\-./:]|"+Pe+`)(?:.|[\r
]))+`;re.KANJI=new RegExp(Pe,"g");re.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");re.BYTE=new RegExp(is,"g");re.NUMERIC=new RegExp(hn,"g");re.ALPHANUMERIC=new RegExp(rs,"g");const us=new RegExp("^"+Pe+"$"),cs=new RegExp("^"+hn+"$"),ds=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");re.testKanji=function(t){return us.test(t)};re.testNumeric=function(t){return cs.test(t)};re.testAlphanumeric=function(t){return ds.test(t)};(function(e){const t=yt,a=re;e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(o,r){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!t.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?o.ccBits[0]:r<27?o.ccBits[1]:o.ccBits[2]},e.getBestModeForData=function(o){return a.testNumeric(o)?e.NUMERIC:a.testAlphanumeric(o)?e.ALPHANUMERIC:a.testKanji(o)?e.KANJI:e.BYTE},e.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},e.isValid=function(o){return o&&o.bit&&o.ccBits};function s(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+n)}}e.from=function(o,r){if(e.isValid(o))return o;try{return s(o)}catch{return r}}})(ve);(function(e){const t=se,a=Ye,s=We,n=ve,o=yt,r=7973,i=t.getBCHDigit(r);function u(T,y,R){for(let I=1;I<=40;I++)if(y<=e.getCapacity(I,R,T))return I}function v(T,y){return n.getCharCountIndicator(T,y)+4}function h(T,y){let R=0;return T.forEach(function(I){const F=v(I.mode,y);R+=F+I.getBitsLength()}),R}function D(T,y){for(let R=1;R<=40;R++)if(h(T,R)<=e.getCapacity(R,y,n.MIXED))return R}e.from=function(y,R){return o.isValid(y)?parseInt(y,10):R},e.getCapacity=function(y,R,I){if(!o.isValid(y))throw new Error("Invalid QR Code version");typeof I>"u"&&(I=n.BYTE);const F=t.getSymbolTotalCodewords(y),_=a.getTotalCodewordsCount(y,R),C=(F-_)*8;if(I===n.MIXED)return C;const w=C-v(I,y);switch(I){case n.NUMERIC:return Math.floor(w/10*3);case n.ALPHANUMERIC:return Math.floor(w/11*2);case n.KANJI:return Math.floor(w/13);case n.BYTE:default:return Math.floor(w/8)}},e.getBestVersionForData=function(y,R){let I;const F=s.from(R,s.M);if(Array.isArray(y)){if(y.length>1)return D(y,F);if(y.length===0)return 1;I=y[0]}else I=y;return u(I.mode,I.getLength(),F)},e.getEncodedBits=function(y){if(!o.isValid(y)||y<7)throw new Error("Invalid QR Code version");let R=y<<12;for(;t.getBCHDigit(R)-i>=0;)R^=r<<t.getBCHDigit(R)-i;return y<<12|R}})(gn);var vn={};const ct=se,mn=1335,fs=21522,$t=ct.getBCHDigit(mn);vn.getEncodedBits=function(t,a){const s=t.bit<<3|a;let n=s<<10;for(;ct.getBCHDigit(n)-$t>=0;)n^=mn<<ct.getBCHDigit(n)-$t;return(s<<10|n)^fs};var pn={};const gs=ve;function ke(e){this.mode=gs.NUMERIC,this.data=e.toString()}ke.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};ke.prototype.getLength=function(){return this.data.length};ke.prototype.getBitsLength=function(){return ke.getBitsLength(this.data.length)};ke.prototype.write=function(t){let a,s,n;for(a=0;a+3<=this.data.length;a+=3)s=this.data.substr(a,3),n=parseInt(s,10),t.put(n,10);const o=this.data.length-a;o>0&&(s=this.data.substr(a),n=parseInt(s,10),t.put(n,o*3+1))};var hs=ke;const vs=ve,st=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function be(e){this.mode=vs.ALPHANUMERIC,this.data=e}be.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};be.prototype.getLength=function(){return this.data.length};be.prototype.getBitsLength=function(){return be.getBitsLength(this.data.length)};be.prototype.write=function(t){let a;for(a=0;a+2<=this.data.length;a+=2){let s=st.indexOf(this.data[a])*45;s+=st.indexOf(this.data[a+1]),t.put(s,11)}this.data.length%2&&t.put(st.indexOf(this.data[a]),6)};var ms=be;const ps=ve;function Ce(e){this.mode=ps.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}Ce.getBitsLength=function(t){return t*8};Ce.prototype.getLength=function(){return this.data.length};Ce.prototype.getBitsLength=function(){return Ce.getBitsLength(this.data.length)};Ce.prototype.write=function(e){for(let t=0,a=this.data.length;t<a;t++)e.put(this.data[t],8)};var ys=Ce;const _s=ve,ws=se;function Ee(e){this.mode=_s.KANJI,this.data=e}Ee.getBitsLength=function(t){return t*13};Ee.prototype.getLength=function(){return this.data.length};Ee.prototype.getBitsLength=function(){return Ee.getBitsLength(this.data.length)};Ee.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let a=ws.toSJIS(this.data[t]);if(a>=33088&&a<=40956)a-=33088;else if(a>=57408&&a<=60351)a-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
Make sure your charset is UTF-8`);a=(a>>>8&255)*192+(a&255),e.put(a,13)}};var ks=Ee,yn={exports:{}};(function(e){var t={single_source_shortest_paths:function(a,s,n){var o={},r={};r[s]=0;var i=t.PriorityQueue.make();i.push(s,0);for(var u,v,h,D,T,y,R,I,F;!i.empty();){u=i.pop(),v=u.value,D=u.cost,T=a[v]||{};for(h in T)T.hasOwnProperty(h)&&(y=T[h],R=D+y,I=r[h],F=typeof r[h]>"u",(F||I>R)&&(r[h]=R,i.push(h,R),o[h]=v))}if(typeof n<"u"&&typeof r[n]>"u"){var _=["Could not find a path from ",s," to ",n,"."].join("");throw new Error(_)}return o},extract_shortest_path_from_predecessor_list:function(a,s){for(var n=[],o=s;o;)n.push(o),a[o],o=a[o];return n.reverse(),n},find_path:function(a,s,n){var o=t.single_source_shortest_paths(a,s,n);return t.extract_shortest_path_from_predecessor_list(o,n)},PriorityQueue:{make:function(a){var s=t.PriorityQueue,n={},o;a=a||{};for(o in s)s.hasOwnProperty(o)&&(n[o]=s[o]);return n.queue=[],n.sorter=a.sorter||s.default_sorter,n},default_sorter:function(a,s){return a.cost-s.cost},push:function(a,s){var n={value:a,cost:s};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(yn);var bs=yn.exports;(function(e){const t=ve,a=hs,s=ms,n=ys,o=ks,r=re,i=se,u=bs;function v(_){return unescape(encodeURIComponent(_)).length}function h(_,C,w){const k=[];let L;for(;(L=_.exec(w))!==null;)k.push({data:L[0],index:L.index,mode:C,length:L[0].length});return k}function D(_){const C=h(r.NUMERIC,t.NUMERIC,_),w=h(r.ALPHANUMERIC,t.ALPHANUMERIC,_);let k,L;return i.isKanjiModeEnabled()?(k=h(r.BYTE,t.BYTE,_),L=h(r.KANJI,t.KANJI,_)):(k=h(r.BYTE_KANJI,t.BYTE,_),L=[]),C.concat(w,k,L).sort(function(V,b){return V.index-b.index}).map(function(V){return{data:V.data,mode:V.mode,length:V.length}})}function T(_,C){switch(C){case t.NUMERIC:return a.getBitsLength(_);case t.ALPHANUMERIC:return s.getBitsLength(_);case t.KANJI:return o.getBitsLength(_);case t.BYTE:return n.getBitsLength(_)}}function y(_){return _.reduce(function(C,w){const k=C.length-1>=0?C[C.length-1]:null;return k&&k.mode===w.mode?(C[C.length-1].data+=w.data,C):(C.push(w),C)},[])}function R(_){const C=[];for(let w=0;w<_.length;w++){const k=_[w];switch(k.mode){case t.NUMERIC:C.push([k,{data:k.data,mode:t.ALPHANUMERIC,length:k.length},{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.ALPHANUMERIC:C.push([k,{data:k.data,mode:t.BYTE,length:k.length}]);break;case t.KANJI:C.push([k,{data:k.data,mode:t.BYTE,length:v(k.data)}]);break;case t.BYTE:C.push([{data:k.data,mode:t.BYTE,length:v(k.data)}])}}return C}function I(_,C){const w={},k={start:{}};let L=["start"];for(let B=0;B<_.length;B++){const V=_[B],b=[];for(let N=0;N<V.length;N++){const q=V[N],j=""+B+N;b.push(j),w[j]={node:q,lastCount:0},k[j]={};for(let W=0;W<L.length;W++){const O=L[W];w[O]&&w[O].node.mode===q.mode?(k[O][j]=T(w[O].lastCount+q.length,q.mode)-T(w[O].lastCount,q.mode),w[O].lastCount+=q.length):(w[O]&&(w[O].lastCount=q.length),k[O][j]=T(q.length,q.mode)+4+t.getCharCountIndicator(q.mode,C))}}L=b}for(let B=0;B<L.length;B++)k[L[B]].end=0;return{map:k,table:w}}function F(_,C){let w;const k=t.getBestModeForData(_);if(w=t.from(C,k),w!==t.BYTE&&w.bit<k.bit)throw new Error('"'+_+'" cannot be encoded with mode '+t.toString(w)+`.
Suggested mode is: `+t.toString(k));switch(w===t.KANJI&&!i.isKanjiModeEnabled()&&(w=t.BYTE),w){case t.NUMERIC:return new a(_);case t.ALPHANUMERIC:return new s(_);case t.KANJI:return new o(_);case t.BYTE:return new n(_)}}e.fromArray=function(C){return C.reduce(function(w,k){return typeof k=="string"?w.push(F(k,null)):k.data&&w.push(F(k.data,k.mode)),w},[])},e.fromString=function(C,w){const k=D(C,i.isKanjiModeEnabled()),L=R(k),B=I(L,w),V=u.find_path(B.map,"start","end"),b=[];for(let N=1;N<V.length-1;N++)b.push(B.table[V[N]].node);return e.fromArray(y(b))},e.rawSplit=function(C){return e.fromArray(D(C,i.isKanjiModeEnabled()))}})(pn);const Ge=se,ot=We,Cs=ss,Es=os,Ts=rn,Is=un,dt=cn,ft=Ye,Bs=ls,Je=gn,Ms=vn,Rs=ve,at=pn;function As(e,t){const a=e.size,s=Is.getPositions(t);for(let n=0;n<s.length;n++){const o=s[n][0],r=s[n][1];for(let i=-1;i<=7;i++)if(!(o+i<=-1||a<=o+i))for(let u=-1;u<=7;u++)r+u<=-1||a<=r+u||(i>=0&&i<=6&&(u===0||u===6)||u>=0&&u<=6&&(i===0||i===6)||i>=2&&i<=4&&u>=2&&u<=4?e.set(o+i,r+u,!0,!0):e.set(o+i,r+u,!1,!0))}}function Ss(e){const t=e.size;for(let a=8;a<t-8;a++){const s=a%2===0;e.set(a,6,s,!0),e.set(6,a,s,!0)}}function Ps(e,t){const a=Ts.getPositions(t);for(let s=0;s<a.length;s++){const n=a[s][0],o=a[s][1];for(let r=-2;r<=2;r++)for(let i=-2;i<=2;i++)r===-2||r===2||i===-2||i===2||r===0&&i===0?e.set(n+r,o+i,!0,!0):e.set(n+r,o+i,!1,!0)}}function Ns(e,t){const a=e.size,s=Je.getEncodedBits(t);let n,o,r;for(let i=0;i<18;i++)n=Math.floor(i/3),o=i%3+a-8-3,r=(s>>i&1)===1,e.set(n,o,r,!0),e.set(o,n,r,!0)}function lt(e,t,a){const s=e.size,n=Ms.getEncodedBits(t,a);let o,r;for(o=0;o<15;o++)r=(n>>o&1)===1,o<6?e.set(o,8,r,!0):o<8?e.set(o+1,8,r,!0):e.set(s-15+o,8,r,!0),o<8?e.set(8,s-o-1,r,!0):o<9?e.set(8,15-o-1+1,r,!0):e.set(8,15-o-1,r,!0);e.set(s-8,8,1,!0)}function Ls(e,t){const a=e.size;let s=-1,n=a-1,o=7,r=0;for(let i=a-1;i>0;i-=2)for(i===6&&i--;;){for(let u=0;u<2;u++)if(!e.isReserved(n,i-u)){let v=!1;r<t.length&&(v=(t[r]>>>o&1)===1),e.set(n,i-u,v),o--,o===-1&&(r++,o=7)}if(n+=s,n<0||a<=n){n-=s,s=-s;break}}}function Ds(e,t,a){const s=new Cs;a.forEach(function(u){s.put(u.mode.bit,4),s.put(u.getLength(),Rs.getCharCountIndicator(u.mode,e)),u.write(s)});const n=Ge.getSymbolTotalCodewords(e),o=ft.getTotalCodewordsCount(e,t),r=(n-o)*8;for(s.getLengthInBits()+4<=r&&s.put(0,4);s.getLengthInBits()%8!==0;)s.putBit(0);const i=(r-s.getLengthInBits())/8;for(let u=0;u<i;u++)s.put(u%2?17:236,8);return Us(s,e,t)}function Us(e,t,a){const s=Ge.getSymbolTotalCodewords(t),n=ft.getTotalCodewordsCount(t,a),o=s-n,r=ft.getBlocksCount(t,a),i=s%r,u=r-i,v=Math.floor(s/r),h=Math.floor(o/r),D=h+1,T=v-h,y=new Bs(T);let R=0;const I=new Array(r),F=new Array(r);let _=0;const C=new Uint8Array(e.buffer);for(let V=0;V<r;V++){const b=V<u?h:D;I[V]=C.slice(R,R+b),F[V]=y.encode(I[V]),R+=b,_=Math.max(_,b)}const w=new Uint8Array(s);let k=0,L,B;for(L=0;L<_;L++)for(B=0;B<r;B++)L<I[B].length&&(w[k++]=I[B][L]);for(L=0;L<T;L++)for(B=0;B<r;B++)w[k++]=F[B][L];return w}function Vs(e,t,a,s){let n;if(Array.isArray(e))n=at.fromArray(e);else if(typeof e=="string"){let v=t;if(!v){const h=at.rawSplit(e);v=Je.getBestVersionForData(h,a)}n=at.fromString(e,v||40)}else throw new Error("Invalid data");const o=Je.getBestVersionForData(n,a);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=o;else if(t<o)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+o+`.
`);const r=Ds(t,a,n),i=Ge.getSymbolSize(t),u=new Es(i);return As(u,t),Ss(u),Ps(u,t),lt(u,a,0),t>=7&&Ns(u,t),Ls(u,r),isNaN(s)&&(s=dt.getBestMask(u,lt.bind(null,u,a))),dt.applyMask(s,u),lt(u,a,s),{modules:u,version:t,errorCorrectionLevel:a,maskPattern:s,segments:n}}an.create=function(t,a){if(typeof t>"u"||t==="")throw new Error("No input text");let s=ot.M,n,o;return typeof a<"u"&&(s=ot.from(a.errorCorrectionLevel,ot.M),n=Je.from(a.version),o=dt.from(a.maskPattern),a.toSJISFunc&&Ge.setToSJISFunction(a.toSJISFunc)),Vs(t,n,s,o)};var _n={},_t={};(function(e){function t(a){if(typeof a=="number"&&(a=a.toString()),typeof a!="string")throw new Error("Color should be defined as hex string");let s=a.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+a);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(o){return[o,o]}))),s.length===6&&s.push("F","F");const n=parseInt(s.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+s.slice(0,6).join("")}}e.getOptions=function(s){s||(s={}),s.color||(s.color={});const n=typeof s.margin>"u"||s.margin===null||s.margin<0?4:s.margin,o=s.width&&s.width>=21?s.width:void 0,r=s.scale||4;return{width:o,scale:o?4:r,margin:n,color:{dark:t(s.color.dark||"#000000ff"),light:t(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},e.getScale=function(s,n){return n.width&&n.width>=s+n.margin*2?n.width/(s+n.margin*2):n.scale},e.getImageWidth=function(s,n){const o=e.getScale(s,n);return Math.floor((s+n.margin*2)*o)},e.qrToImageData=function(s,n,o){const r=n.modules.size,i=n.modules.data,u=e.getScale(r,o),v=Math.floor((r+o.margin*2)*u),h=o.margin*u,D=[o.color.light,o.color.dark];for(let T=0;T<v;T++)for(let y=0;y<v;y++){let R=(T*v+y)*4,I=o.color.light;if(T>=h&&y>=h&&T<v-h&&y<v-h){const F=Math.floor((T-h)/u),_=Math.floor((y-h)/u);I=D[i[F*r+_]?1:0]}s[R++]=I.r,s[R++]=I.g,s[R++]=I.b,s[R]=I.a}}})(_t);(function(e){const t=_t;function a(n,o,r){n.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=r,o.width=r,o.style.height=r+"px",o.style.width=r+"px"}function s(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(o,r,i){let u=i,v=r;typeof u>"u"&&(!r||!r.getContext)&&(u=r,r=void 0),r||(v=s()),u=t.getOptions(u);const h=t.getImageWidth(o.modules.size,u),D=v.getContext("2d"),T=D.createImageData(h,h);return t.qrToImageData(T.data,o,u),a(D,v,h),D.putImageData(T,0,0),v},e.renderToDataURL=function(o,r,i){let u=i;typeof u>"u"&&(!r||!r.getContext)&&(u=r,r=void 0),u||(u={});const v=e.render(o,r,u),h=u.type||"image/png",D=u.rendererOpts||{};return v.toDataURL(h,D.quality)}})(_n);var wn={};const Fs=_t;function en(e,t){const a=e.a/255,s=t+'="'+e.hex+'"';return a<1?s+" "+t+'-opacity="'+a.toFixed(2).slice(1)+'"':s}function rt(e,t,a){let s=e+t;return typeof a<"u"&&(s+=" "+a),s}function qs(e,t,a){let s="",n=0,o=!1,r=0;for(let i=0;i<e.length;i++){const u=Math.floor(i%t),v=Math.floor(i/t);!u&&!o&&(o=!0),e[i]?(r++,i>0&&u>0&&e[i-1]||(s+=o?rt("M",u+a,.5+v+a):rt("m",n,0),n=0,o=!1),u+1<t&&e[i+1]||(s+=rt("h",r),r=0)):n++}return s}wn.render=function(t,a,s){const n=Fs.getOptions(a),o=t.modules.size,r=t.modules.data,i=o+n.margin*2,u=n.color.light.a?"<path "+en(n.color.light,"fill")+' d="M0 0h'+i+"v"+i+'H0z"/>':"",v="<path "+en(n.color.dark,"stroke")+' d="'+qs(r,o,n.margin)+'"/>',h='viewBox="0 0 '+i+" "+i+'"',T='<svg xmlns="http://www.w3.org/2000/svg" '+(n.width?'width="'+n.width+'" height="'+n.width+'" ':"")+h+' shape-rendering="crispEdges">'+u+v+`</svg>
`;return typeof s=="function"&&s(null,T),T};const zs=ts,gt=an,kn=_n,Hs=wn;function wt(e,t,a,s,n){const o=[].slice.call(arguments,1),r=o.length,i=typeof o[r-1]=="function";if(!i&&!zs())throw new Error("Callback required as last argument");if(i){if(r<2)throw new Error("Too few arguments provided");r===2?(n=a,a=t,t=s=void 0):r===3&&(t.getContext&&typeof n>"u"?(n=s,s=void 0):(n=s,s=a,a=t,t=void 0))}else{if(r<1)throw new Error("Too few arguments provided");return r===1?(a=t,t=s=void 0):r===2&&!t.getContext&&(s=a,a=t,t=void 0),new Promise(function(u,v){try{const h=gt.create(a,s);u(e(h,t,s))}catch(h){v(h)}})}try{const u=gt.create(a,s);n(null,e(u,t,s))}catch(u){n(u)}}Ne.create=gt.create;Ne.toCanvas=wt.bind(null,kn.render);Ne.toDataURL=wt.bind(null,kn.renderToDataURL);Ne.toString=wt.bind(null,function(e,t,a){return Hs.render(e,a)});const Ks={class:"card-cover"},Os=["src","alt"],xs=["src"],Js={class:"placeholder-icon"},Ws=["src"],Ys={key:1},js={class:"card-body"},Gs=["title"],Qs={class:"card-time"},Xs={key:0,class:"meta-size"},Zs={key:0,class:"card-tags"},$s={class:"card-bottom-row"},eo={class:"bottom-left"},to=["title"],no={class:"bottom-right"},so=1e4,oo=ht({__name:"ResultCard",props:{data:{},fallbackTags:{},fallbackImage:{},loggedIn:{type:Boolean},cloudTypeMap:{}},emits:["save"],setup(e,{emit:t}){const a=e,s=t,n=E(!1),o=E(!1),r=E(!1);let i=null;nn(()=>{if(a.data.cover&&!n.value){r.value=!0;const b=new Image;let N=!1;i=setTimeout(()=>{N||(N=!0,r.value=!1)},so),b.onload=()=>{N||(N=!0,n.value=!0,r.value=!1,i&&clearTimeout(i))},b.onerror=()=>{N||(N=!0,r.value=!1,i&&clearTimeout(i))},b.src=a.data.cover}}),zn(()=>{i&&clearTimeout(i)});function u(){n.value=!1}function v(){o.value=!0}const h=J(()=>{var N,q;return((q=(N=a.cloudTypeMap)==null?void 0:N[a.data.cloud_type])==null?void 0:q.icon)||on[a.data.cloud_type]||"📁"}),D=J(()=>({quark:"linear-gradient(135deg, #e8f5e9, #c8e6c9)",baidu:"linear-gradient(135deg, #e3f2fd, #bbdefb)",aliyun:"linear-gradient(135deg, #fff3e0, #ffe0b2)",115:"linear-gradient(135deg, #f3e5f5, #e1bee7)",xunlei:"linear-gradient(135deg, #e8f5e9, #a5d6a7)",magnet:"linear-gradient(135deg, #e8eaf6, #c5cae9)"})[a.data.cloud_type]||"linear-gradient(135deg, #f5f5f5, #e0e0e0)");function T(b){if(!b)return"";const N=Date.now(),q=new Date(b);if(isNaN(q.getTime()))return b.slice(0,10);const j=N-q.getTime();if(j<0)return b.slice(0,10);const W=Math.floor(j/1e3);if(W<60)return"刚刚";const O=Math.floor(W/60);if(O<60)return`${O} 分钟前`;const ee=Math.floor(O/60);if(ee<24)return`${ee} 小时前`;const Q=Math.floor(ee/24);return Q<30?`${Q} 天前`:Q<365?`${Math.floor(Q/30)} 个月前`:`${Math.floor(Q/365)} 年前`}const y=J(()=>T(a.data.update_time||a.data.datetime)),R=J(()=>{const b=a.data.source||"";return b?b.startsWith("tg:")?"@"+b.slice(3):b.startsWith("plugin:")?b.slice(7):b:""}),I=J(()=>{const b=a.data.source||"";return b.startsWith("tg:")?"📢":b.startsWith("plugin:")?"🔌":"📎"}),F=[/^\[夸克网盘\][:]?\s*/,/^【#电影名称:】\s*/,/^【#电影名称[:]】\s*/,/^【[^】]*[网盘|分享|电影|下载|资源]】[:]?\s*/,/^\[[^\]]*[网盘|分享|电影|下载|资源]\]\s*/,/^[#]电影名称[:]?\s*/,/^[#]资源名称[:]?\s*/,/^[#]标题[:]?\s*/,/^【[^】]*资源名称[^】]*】\s*/,/^【影片名称】\s*/,/^【资源名称】\s*/,/^【标题】\s*/],_=J(()=>{let b=a.data.title||"";for(const N of F)b=b.replace(N,"");return b=b.replace(/【[^】]+】/g,"").trim(),b||a.data.title}),C=new Set(["4K","1080P","2160P","720P","480P","HDR","HDR10","HDR10+","DV","杜比视界","杜比全景声","高码率","BluRay","REMUX","HEVC","x264","x265","AVC","内封简繁英字幕","内嵌中英字幕","内封简繁","内嵌字幕","字幕","中文字幕","简繁字幕","中英字幕","内封字幕","臻彩","高清","WEB-DL","WEBRip","蓝光"]),w=[/\b(4K)\b/,/\b(1080[Pp])\b/,/\b(2160[Pp])\b/,/\b(720[Pp])\b/,/\b(HDR10?\+?)\b/i,/\b(DV)\b/i,/\b(BluRay|蓝光)\b/i,/\b(REMUX)\b/i,/\b(HEVC)\b/i,/\b(x264)\b/i,/\b(x265)\b/i,/\b(WEB-DL)\b/i,/\b(WEBRip)\b/i],k=J(()=>{const b=a.data.title||"",N=[],q=b.matchAll(/【([^】]+)】/g);for(const W of q){const ee=W[1].split(/[.·、,,\/\\|]/);for(const Q of ee){const ie=Q.trim();ie&&C.has(ie)&&!N.includes(ie)&&N.push(ie)}}for(const W of w){const O=b.match(W);if(O){const ee=O[1];N.includes(ee)||N.push(ee)}}const j=["杜比视界","杜比全景声","高码率","内封简繁英字幕","内嵌中英字幕","内封简繁","内嵌字幕","中文字幕","简繁字幕","中英字幕","内封字幕","臻彩"];for(const W of j)b.includes(W)&&!N.includes(W)&&N.push(W);return N.length===0&&a.fallbackTags&&a.fallbackTags.length>0?a.fallbackTags.slice(0,6):N.slice(0,10)});function L(b){return["4K","1080P","2160P","720P","480P","HDR","HDR10","HDR10+","DV","杜比视界","BluRay","REMUX","HEVC","x264","x265","臻彩","高清","WEB-DL","WEBRip"].includes(b)?"quality":b.includes("字幕")||b==="杜比全景声"||b==="高码率"?"subtitle":"default"}function B(){s("save",a.data)}function V(){a.data.share_url&&window.open(a.data.share_url,"_blank")}return(b,N)=>(d(),f("div",{class:we(["result-card",{clickable:e.loggedIn}]),onClick:N[0]||(N[0]=q=>e.loggedIn&&V())},[g("div",Ks,[n.value?(d(),f("img",{key:0,src:e.data.cover,alt:e.data.title,onError:u,loading:"lazy",fetchpriority:"low"},null,40,Os)):e.fallbackImage&&!o.value?(d(),f("img",{key:1,src:e.fallbackImage,alt:"cover",class:"fallback-img",onError:v},null,40,xs)):(d(),f("div",{key:2,class:"cover-placeholder",style:ut({background:D.value})},[g("span",Js,[h.value.startsWith("data:")||h.value.startsWith("http")||h.value.startsWith("/")?(d(),f("img",{key:0,src:h.value,style:{width:"36px",height:"36px"}},null,8,Ws)):(d(),f("span",Ys,p(h.value),1))])],4)),g("span",{class:"cover-tag",style:ut({background:Oe(sn)[e.data.cloud_type]})},p(Oe(Ae)[e.data.cloud_type]),5)]),g("div",js,[g("div",{class:"card-title",title:e.data.title},p(_.value),9,Gs),g("div",Qs,[g("span",null,"🕐 "+p(y.value),1),e.data.file_size?(d(),f("span",Xs,"📦 "+p(e.data.file_size),1)):A("",!0)]),k.value.length>0?(d(),f("div",Zs,[(d(!0),f($,null,oe(k.value,(q,j)=>(d(),f("span",{key:j,class:we(["tag","tag-"+L(q)])},p(q),3))),128))])):A("",!0),g("div",$s,[g("div",eo,[R.value?(d(),f("span",{key:0,class:"meta-source",title:e.data.source},p(I.value)+" "+p(R.value),9,to)):A("",!0)]),g("div",no,[e.data.share_url&&!e.loggedIn?(d(),f("button",{key:0,class:"action-btn get-link-btn",onClick:Gt(B,["stop"])}," 🔗 获取分享链接 ")):A("",!0),e.data.share_url&&e.loggedIn?(d(),f("button",{key:1,class:"action-btn open-link-btn",onClick:Gt(V,["stop"])}," 🔗 打开链接 ")):A("",!0)])])])],2))}}),tn=vt(oo,[["__scopeId","data-v-862af59b"]]),ao={class:"video-card"},lo={class:"video-cover"},ro=["src","alt"],io={class:"platform-tag"},uo={class:"video-info"},co={key:0,class:"video-author"},fo={key:1,class:"video-desc"},go=ht({__name:"VideoResultCard",props:{data:{}},emits:["save"],setup(e,{emit:t}){const a=e,s=t;function n(){s("save",a.data)}return(o,r)=>(d(),f("div",ao,[g("div",lo,[g("img",{src:e.data.cover,alt:e.data.title},null,8,ro),r[0]||(r[0]=g("div",{class:"play-icon"},"▶",-1)),g("span",io,p(e.data.platform),1)]),g("div",uo,[g("h4",null,p(e.data.title),1),e.data.author?(d(),f("p",co,"👤 "+p(e.data.author),1)):A("",!0),e.data.description?(d(),f("p",fo,p(e.data.description),1)):A("",!0)]),g("div",{class:"video-actions"},[g("button",{class:"save-btn",onClick:n},"📥 保存到云盘并获取下载链接")])]))}}),ho=vt(go,[["__scopeId","data-v-c6df203e"]]),vo={class:"search-result-page"},mo={class:"top-search-bar"},po={class:"search-bar-inner"},yo=["src","alt"],_o={key:1,class:"logo-text-only"},wo={key:2,class:"logo-icon"},ko={class:"search-box-inner"},bo={class:"top-right-user"},Co={class:"user-badge"},Eo={key:0,class:"marquee-bar"},To={class:"marquee-track"},Io={class:"marquee-text"},Bo={class:"result-content"},Mo={key:0,class:"result-info-bar"},Ro={class:"info-left"},Ao={key:0,class:"info-item info-count"},So={key:1,class:"info-item info-type"},Po={key:2,class:"filter-badge"},No={key:3,class:"skip-badge"},Lo={class:"info-right"},Do={key:0,class:"info-item info-time"},Uo={key:1,class:"info-hasmore"},Vo={key:1,class:"loading-section"},Fo={class:"progress-track"},qo={class:"progress-label"},zo={key:0},Ho={key:1},Ko={key:0,class:"validate-count"},Oo={key:2},xo={class:"progress-time"},Jo={key:2,class:"cloud-tabs"},Wo=["onClick"],Yo=["src"],jo={key:1,class:"tab-icon"},Go={key:2,class:"tab-count"},Qo={key:3,class:"media-strip"},Xo=["href"],Zo={key:0,class:"strip-thumb"},$o=["src"],ea={key:1,class:"strip-thumb strip-thumb-fallback"},ta={class:"strip-title"},na={key:2,class:"strip-year"},sa={key:3,class:"strip-rating"},oa={key:4,class:"strip-genres"},aa={key:5,class:"strip-tags"},la={key:1,class:"media-strip-inner"},ra={key:0,class:"strip-thumb"},ia=["src"],ua={key:1,class:"strip-thumb strip-thumb-fallback"},ca={class:"strip-title"},da={key:2,class:"strip-year"},fa={key:3,class:"strip-rating"},ga={key:4,class:"strip-genres"},ha={key:5,class:"strip-tags"},va={key:0,class:"result-list flat-list"},ma={key:0,class:"load-more-inline"},pa={key:1,class:"result-list channel-list"},ya={class:"channel-header"},_a=["src"],wa={key:1,class:"channel-icon"},ka={class:"channel-label"},ba={class:"channel-total-badge"},Ca={key:2,class:"channel-time"},Ea=["onClick"],Ta={class:"channel-load-more-text"},Ia={key:2,class:"no-match-tip"},Ba={key:5,class:"result-list"},Ma={key:6,class:"empty-wrapper"},Ra={class:"empty-hint"},Aa={key:0,class:"empty-tips"},Sa={key:7,class:"load-more"},Pa={class:"dialog-title-bold"},Na={class:"result-dialog-content"},La={key:0,class:"progress-flow"},Da={class:"step-dot"},Ua={key:0,class:"step-check"},Va={key:1,class:"step-num"},Fa={class:"step-body"},qa={class:"step-title"},za={key:0,class:"step-status loading"},Ha={key:1,class:"step-status done"},Ka={class:"step-dot"},Oa={key:0,class:"step-check"},xa={key:1,class:"step-num"},Ja={class:"step-body"},Wa={key:0,class:"step-status loading"},Ya={key:1,class:"step-status done"},ja={key:2,class:"step-status pending"},Ga={class:"step-dot"},Qa={key:0,class:"step-check"},Xa={key:1,class:"step-num"},Za={class:"step-body"},$a={key:0,class:"step-status loading"},el={key:1,class:"step-status done"},tl={key:2,class:"step-status pending"},nl={key:1,class:"save-error"},sl={key:2,class:"rename-info-bar"},ol={style:{"font-size":"13px"}},al={key:3,class:"share-result"},ll={class:"share-layout"},rl={class:"qr-left"},il={class:"qr-hint"},ul={class:"link-right"},cl={class:"success-header"},dl={class:"success-text"},fl={class:"link-row"},gl={key:0,class:"share-pwd-row"},hl={class:"share-tip"},vl={class:"share-tip-text"},ml={class:"dialog-actions"},pl={key:0,class:"login-error"},yl={key:0,class:"site-footer"},_l={class:"footer-inner"},wl={class:"footer-actions"},it=30,Ke=20,kl=ht({__name:"SearchResult",setup(e){const t=Hn(),a=Jn(),s=E(""),n=E(!1),o=E(!1),r=E(null),i=E([]),u=E([]),v=E([]),h=E([]),D=E(0),T=E(0),y=E(!1),R=E(1),I=E(0),F=E(0),_=E(""),C=E(0),w=E("search"),k=E(0),L=E(0),B=E(null),V=E([]),b=J(()=>N.value||q.value||""),N=E(""),q=E(""),j=E(""),W=E(""),O=E(""),ee=E(!1),Q=E(null),ie=E(!1),kt=E(),ue=xn({username:"",password:""}),Qe=E(!1),De=E(""),bn={username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},Xe=E(new Map),Ze=E([]),Te=E(it),me=E({}),Ue=E({});function bt(c){var l;return((l=Ue.value[c])==null?void 0:l.icon)||on[c]||"📁"}async function Cn(){try{const c=await Qn(),l={};for(const M of c.types)l[M.type]={label:M.label,icon:M.icon};Ue.value=l}catch{}}nn(async()=>{try{const M=await Yn();M.site_logo&&(q.value=M.site_logo),M.site_name&&(j.value=M.site_name),M.site_disclaimer&&(W.value=M.site_disclaimer),M.site_marquee&&(O.value=M.site_marquee)}catch{}const c=t.query.q||"";c&&(s.value=c,qe(c));const l=await jn().catch(()=>({loggedIn:!1}));l.loggedIn&&l.username&&(Q.value={username:l.username}),Cn()});async function Ct(){var l,M,P;if(await((l=kt.value)==null?void 0:l.validate().catch(()=>!1))){Qe.value=!0,De.value="";try{const S=await Xn(ue.username,ue.password);localStorage.setItem("admin_token",S.token),Q.value={username:ue.username},ie.value=!1,ue.password="",Re.success("登录成功")}catch(S){De.value=((P=(M=S==null?void 0:S.response)==null?void 0:M.data)==null?void 0:P.error)||(S==null?void 0:S.message)||"登录失败"}finally{Qe.value=!1}}}function En(){localStorage.removeItem("admin_token"),Q.value=null,Re.success("已退出")}const $e=J(()=>{const c={};for(const H of i.value){const ne=H.cloud_type||"others";c[ne]=(c[ne]||0)+1}const l=[];l.push({type:"",label:"全部",count:i.value.length,icon:"📋"});const M={quark:1,baidu:2,aliyun:3,115:4,tianyi:5,"123pan":6,uc:7,xunlei:8,pikpak:9,magnet:10,ed2k:11,others:12},S=Object.keys(Ae).sort((H,ne)=>(M[H]??99)-(M[ne]??99));for(const H of S)l.push({type:H,label:Ae[H],count:c[H]||0,icon:bt(H)});return l}),Et=J(()=>$e.value.filter(c=>c.count>0));function Tn(){const c=$e.value.find(l=>l.type===_.value);return(c==null?void 0:c.label)||_.value||""}const et=J(()=>{const c=[];for(const l of h.value)c.push(...l.items);return c.sort((l,M)=>{const P=l.update_time||l.datetime||"",S=M.update_time||M.datetime||"";return!P&&!S?0:P?S?S.localeCompare(P):-1:1})}),Tt=J(()=>et.value.slice(0,Te.value)),In=J(()=>Te.value<et.value.length),Bn=J(()=>{const c=s.value.trim();return c?c.length<2?`${c}」太短了,试试输入更完整的关键词`:c.length>30?"关键词太长啦,试试用几个核心词代替整句话":(c.match(/[\u4e00-\u9fff]/g)||[]).length===0?"网盘资源通常以中文命名,试试用中文搜索":`${c}」暂时没找到匹配的资源`:"请输入关键词进行搜索"}),It=J(()=>{const c=s.value.trim();if(!c)return["输入电视剧/电影/文件名称试试"];const l=[];c.length<2&&l.push("输入至少 2 个字符,试试完整的资源名称"),c.length>30&&l.push("缩短到 2-10 个字,用核心关键词搜索更精准");const M=(c.match(/[\u4e00-\u9fff]/g)||[]).length;return M===0&&l.push("国内网盘资源标题大多是中文,试试转换为中文名称"),M>0&&M<c.length*.5&&c.length>=2&&l.push("混合了太多非中文字符,提取核心中文关键词试试"),(c.includes(" ")||c.includes(" "))&&l.push("搜索词中包含了空格,试试去掉空格连续输入"),["的","了","是","在","有","我","他","她","它","这","那","和","与","及","或","但","而","且"].filter(ne=>c.includes(ne)).length>=2&&c.length>6&&l.push("看起来像是一句话,试着只保留资源核心名称(去掉「的」「了」「我」等词)"),(c.match(/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~`《》【】!@#¥%……&*()——+]/g)||[]).length>2&&l.push("特殊符号过多,试试只用中英文和数字"),c.length===1&&M===1&&l.push("单个汉字过于宽泛,试试完整的剧名或文件名"),l.length===0&&(l.push("试试更换关键词或减短搜索词"),l.push("检查一下是否输入了正确的资源名称")),l.slice(0,4)});function Mn(){Te.value+=it}function Bt(c){const l=me.value[c.cloud_type]||Ke;return(c.items||[]).slice(0,l)}function Rn(c){const l=me.value[c.cloud_type]||Ke;return(c.items||[]).length>l}function An(c){me.value={...me.value,[c]:(me.value[c]||Ke)+Ke}}function Sn(){me.value={}}const Mt=J(()=>{let c=h.value;return _.value&&(c=c.filter(l=>l.cloud_type===_.value)),c}),Pn=J(()=>I.value<=0?1:Math.ceil(I.value/20)),Rt=J(()=>$e.value.filter(c=>c.type!==""&&c.count>0).length);function Nn(){s.value.trim()&&qe(s.value.trim())}function Ln(){C.value=0,w.value="search";const c=Date.now();F.value=0;const l=setInterval(()=>{if(!n.value){C.value=100,clearInterval(l);return}F.value=Date.now()-c,C.value<60?C.value+=1+Math.random()*3:C.value<85?(w.value="validate",C.value+=.5+Math.random()*1):C.value<98&&(C.value+=.2+Math.random()*.5)},200);return l}function tt(c){const l=c.map(M=>M.update_time||M.datetime||"").filter(Boolean).sort().reverse();return l.length===0?"":Dn(l[0])}function Dn(c){if(!c)return"";const l=Date.now(),M=new Date(c);if(isNaN(M.getTime()))return c.slice(0,10);const P=l-M.getTime();if(P<0)return c.slice(0,10);const S=Math.floor(P/6e4);if(S<60)return S<=1?"刚刚":`${S} 分钟前`;const H=Math.floor(S/60);if(H<24)return`${H} 小时前`;const ne=Math.floor(H/24);return ne<30?`${ne} 天前`:`${Math.floor(ne/30)} 个月前`}function Ie(c){return bt(c)}Qt(()=>t.query.q,c=>{c&&c!==s.value&&(s.value=c,qe(c))});const pe=E(!1),Ve=E(null),ye=E(!1),ce=E(!1),fe=E(null),ae=E(""),Be=E(""),_e=E([]),nt=E(null),Y=E(0),Fe=J(()=>{var l;const c=((l=Ve.value)==null?void 0:l.cloud_type)||"quark";return Ae[c]||"夸克网盘"}),Un=J(()=>{var M;const c=((M=Ve.value)==null?void 0:M.title)||"";return c.replace(/【[^】]+】/g,"").trim()||c||"资源"});async function qe(c){n.value=!0;const l=Date.now();Te.value=it,R.value=1,i.value=[],u.value=[],v.value=[],h.value=[],Ze.value=[],Xe.value=new Map,D.value=0,T.value=0,y.value=!1,_.value="",F.value=0,ee.value=!1,O.value="",Sn();const M=Ln();try{r.value="SEARCH";let P=0,S=0;const H=new Map;let ne=!1;await Gn(c,{onStats:U=>{if(F.value=Date.now()-l,I.value=U.total,B.value=U.content_info||null,V.value=U.content_tags||[],U.fallback_image){N.value=U.fallback_image;const X=new Image;X.onload=()=>{},X.onerror=()=>{N.value=""},X.src=U.fallback_image}if(U.site_logo&&(q.value=U.site_logo),U.site_name&&(j.value=U.site_name),U.site_disclaimer&&(W.value=U.site_disclaimer),U.site_marquee&&(O.value=U.site_marquee),w.value="validate",U.channels){const X=new Map,te=[];for(const x of U.channels)for(const de of x.items||[])X.set(de.id,de),te.push(de);Xe.value=X,v.value=te}U.link_validation&&(k.value=U.total)},onResult:(U,X)=>{if(P++,L.value=P,F.value=Date.now()-l,X){const te=Xe.value.get(U);te&&(Ze.value.push(te),i.value=[...Ze.value],h.value=At(i.value).map(x=>({...x,newestTime:tt(x.items)})))}},onComplete:U=>{F.value=Date.now()-l;const X=U.results||[];I.value=X.length,D.value=U.filtered||0,T.value=U.skipped||0,y.value=!1,L.value=k.value,i.value=X,h.value=(U.channels||[]).map(x=>({...x,newestTime:tt(x.items)}));const te={};for(const x of X){const de=x.cloud_type||"others";te[de]||(te[de]=[]),te[de].push(x)}h.value=h.value.map(x=>({...x,count:(te[x.cloud_type]||[]).length,items:te[x.cloud_type]||[]})).filter(x=>x.count>0),v.value=X,n.value=!1,w.value="done",C.value=100,clearInterval(M)},onError:U=>{console.error("搜索失败",U),n.value=!1,w.value="done",C.value=100,clearInterval(M)}})}catch(P){console.error("搜索异常",P),n.value=!1,w.value="done",C.value=100,clearInterval(M)}}function At(c){const l={},M={quark:1,baidu:2,aliyun:3,115:4,tianyi:5,"123pan":6,uc:7,xunlei:8,pikpak:9,magnet:10,ed2k:11,others:12};for(const P of c){const S=P.cloud_type||"others";l[S]||(l[S]=[]),l[S].push(P)}return Object.entries(l).sort((P,S)=>(M[P[0]]??99)-(M[S[0]]??99)).map(([P,S])=>({cloud_type:P,label:Ae[P]||P,color:sn[P]||"#95a5a6",count:S.length,items:S,newestTime:tt(S)}))}async function St(){o.value=!0,R.value++;try{const c=await Zn(s.value,R.value),l=c.results;i.value.push(...l),I.value=c.total,y.value=c.total>i.value.length,D.value+=c.filtered||0,h.value=At(i.value)}catch(c){console.error("加载更多失败",c)}finally{o.value=!1}}function Pt(){const c=s.value.trim();c&&(a.replace("/search?q="+encodeURIComponent(c)),qe(c))}async function Nt(c){var M;Ve.value=c,ce.value=!1,fe.value=null,ae.value="",Be.value="",_e.value=[],pe.value=!0,ye.value=!0,Y.value=1;const l=c.cloud_type||"quark";try{const P=await $n({type:"search",source:c,target_cloud:l});fe.value=P,ce.value=P.success,P.success&&(((M=P.renamed)==null?void 0:M.length)>0&&(_e.value=P.renamed),Y.value=2,await new Promise(S=>setTimeout(S,600)),Y.value=3,await new Promise(S=>setTimeout(S,400)),P.share_url&&(ae.value=P.share_url,Be.value=P.share_pwd||P.sharePwd||"",await new Promise(S=>setTimeout(S,300))),Y.value=4)}catch(P){fe.value={success:!1,share_url:"",file_name:"",file_size:"",message:P.message||"保存请求失败"},ce.value=!1}finally{pe.value=!1}}async function Vn(c){Ve.value=c,ce.value=!1,fe.value=null,ae.value="",Be.value="",_e.value=[],pe.value=!0,ye.value=!0;try{const l=await es({video_url:c.video_url,title:c.title,target_cloud:"quark"});fe.value=l,ce.value=l.success,l.success&&l.share_url&&(ae.value=l.share_url)}catch(l){fe.value={success:!1,share_url:"",file_name:"",file_size:"",message:l.message||"保存请求失败"},ce.value=!1}finally{pe.value=!1}}Qt([ae,pe],async([c,l])=>{c&&!l&&ye.value&&(await Wn(),nt.value&&Ne.toCanvas(nt.value,c,{width:180,margin:1}))});function Fn(){if(!ae.value)return;const c=ae.value;navigator.clipboard&&navigator.clipboard.writeText?navigator.clipboard.writeText(c).then(()=>{Re.success("链接已复制")}).catch(()=>{Dt(c)}):Dt(c)}function Lt(){window.open("/disclaimer/","_blank")}function Dt(c){const l=document.createElement("textarea");l.value=c,l.style.position="fixed",l.style.left="-9999px",l.style.top="-9999px",l.style.opacity="0",document.body.appendChild(l),l.select();try{document.execCommand("copy"),Re.success("链接已复制")}catch{Re.warning("复制失败,请手动复制链接")}document.body.removeChild(l)}return(c,l)=>{var Ut,Vt,Ft,qt,zt,Ht,Kt,Ot,xt,Jt,Wt,Yt,jt;const M=le("router-link"),P=le("el-icon"),S=le("el-input"),H=le("el-button"),ne=le("el-skeleton"),U=le("el-alert"),X=le("el-tag"),te=le("el-dialog"),x=le("el-form-item"),de=le("el-form");return d(),f($,null,[g("div",vo,[g("div",mo,[g("div",po,[z(M,{to:"/",class:"logo-link",title:"返回首页"},{default:K(()=>[q.value?(d(),f("img",{key:0,src:q.value,alt:j.value||"首页",class:"logo-img",onError:l[0]||(l[0]=m=>m.target.style.display="none")},null,40,yo)):j.value?(d(),f("div",_o,p(j.value),1)):(d(),f("div",wo,[...l[11]||(l[11]=[g("svg",{viewBox:"0 0 28 28",width:"28",height:"28",fill:"none"},[g("circle",{cx:"14",cy:"14",r:"13",stroke:"var(--primary-color)","stroke-width":"2"}),g("path",{d:"M8 14l4 4 8-8",stroke:"var(--primary-color)","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]))]),_:1}),g("div",ko,[z(S,{modelValue:s.value,"onUpdate:modelValue":l[1]||(l[1]=m=>s.value=m),placeholder:"搜索网盘资源,或粘贴视频/网盘链接...",size:"large",clearable:"",onKeyup:Xt(Pt,["enter"])},{prefix:K(()=>[z(P,null,{default:K(()=>[z(Oe(Kn))]),_:1})]),_:1},8,["modelValue"]),z(H,{type:"primary",size:"large",onClick:Pt,class:"result-search-btn"},{default:K(()=>[...l[12]||(l[12]=[G("搜 索",-1)])]),_:1})])]),g("div",bo,[Q.value?(d(),f($,{key:0},[g("span",Co,p(Q.value.username),1),z(H,{size:"small",text:"",onClick:En},{default:K(()=>[...l[13]||(l[13]=[G("退出",-1)])]),_:1})],64)):(d(),Me(H,{key:1,size:"small",onClick:l[2]||(l[2]=m=>ie.value=!0)},{default:K(()=>[...l[14]||(l[14]=[G("登录",-1)])]),_:1}))])]),O.value?(d(),f("div",Eo,[l[15]||(l[15]=g("span",{class:"marquee-icon marquee-icon-left"},"📢",-1)),g("div",To,[g("span",Io,p(O.value),1)]),l[16]||(l[16]=g("span",{class:"marquee-icon marquee-icon-right"},"📢",-1))])):A("",!0),g("div",Bo,[r.value==="SEARCH"&&!n.value?(d(),f("div",Mo,[g("div",Ro,[I.value>0?(d(),f("span",Ao,"已为您挑选到最符合 "+p(I.value)+" 条结果",1)):A("",!0),Rt.value>0?(d(),f("span",So,"📂 "+p(Rt.value)+" 个网盘",1)):A("",!0),D.value>0?(d(),f("span",Po,"❌ 失效 "+p(D.value),1)):A("",!0),T.value>0?(d(),f("span",No,"⏭ 跳过 "+p(T.value),1)):A("",!0)]),g("div",Lo,[F.value>0?(d(),f("span",Do,"⏱ "+p(F.value)+"ms",1)):A("",!0),y.value?(d(),f("span",Uo,"📄 第 "+p(R.value)+" 页",1)):A("",!0),g("button",{class:"refresh-btn",onClick:Nn,title:"强制刷新"},"🔄 刷新")])])):A("",!0),n.value?(d(),f("div",Vo,[g("div",Fo,[g("div",{class:"progress-bar",style:ut({width:C.value+"%"})},null,4)]),g("div",qo,[w.value==="search"?(d(),f("span",zo,"🔍 正在搜索中...")):w.value==="validate"?(d(),f("span",Ho,[l[17]||(l[17]=G(" ✅ 正在验证链接有效性 ",-1)),k.value>0?(d(),f("span",Ko," ("+p(L.value)+" / "+p(k.value)+") ",1)):A("",!0)])):(d(),f("span",Oo,"⏳ 加载中...")),g("span",xo,"⏱ "+p(F.value)+"ms",1)]),z(ne,{rows:3,animated:"",class:"loading-skeleton"})])):A("",!0),r.value==="SEARCH"&&Et.value.length>0&&!n.value?(d(),f("div",Jo,[(d(!0),f($,null,oe(Et.value,m=>(d(),f("div",{key:m.type||"all",class:we(["cloud-tab",{active:_.value===(m.type||"")}]),onClick:Z=>_.value=m.type||""},[m.icon&&(m.icon.startsWith("data:")||m.icon.startsWith("http")||m.icon.startsWith("/"))?(d(),f("img",{key:0,src:m.icon,class:"tab-icon-img"},null,8,Yo)):m.icon?(d(),f("span",jo,p(m.icon),1)):A("",!0),G(" "+p(m.label)+" ",1),m.count>0?(d(),f("span",Go,p(m.count),1)):A("",!0)],10,Wo))),128))])):A("",!0),!n.value&&(B.value||V.value.length>0)&&r.value==="SEARCH"?(d(),f("div",Qo,[(Ut=B.value)!=null&&Ut.tmdb_url?(d(),f("a",{key:0,href:B.value.tmdb_url,target:"_blank",class:"media-strip-inner",rel:"noopener"},[(Vt=B.value)!=null&&Vt.cover&&!ee.value?(d(),f("span",Zo,[g("img",{src:B.value.cover,onError:l[3]||(l[3]=m=>ee.value=!0)},null,40,$o)])):(d(),f("span",ea,"🎬")),g("span",ta,p(((Ft=B.value)==null?void 0:Ft.title)||s.value),1),(qt=B.value)!=null&&qt.year?(d(),f("span",na,p(B.value.year),1)):A("",!0),(zt=B.value)!=null&&zt.rating?(d(),f("span",sa,"⭐ "+p(B.value.rating),1)):A("",!0),(Kt=(Ht=B.value)==null?void 0:Ht.genres)!=null&&Kt.length?(d(),f("span",oa,[(d(!0),f($,null,oe(B.value.genres.slice(0,3),(m,Z)=>(d(),f("span",{key:Z,class:"strip-genre"},p(m),1))),128))])):A("",!0),V.value.length>0?(d(),f("span",aa,[(d(!0),f($,null,oe(V.value.slice(0,3),m=>(d(),f("span",{key:m,class:"strip-tag"},p(m),1))),128))])):A("",!0),l[18]||(l[18]=g("span",{class:"strip-right"},"信息来源 TMDB · 更多详情 →",-1))],8,Xo)):(d(),f("div",la,[(Ot=B.value)!=null&&Ot.cover&&!ee.value?(d(),f("span",ra,[g("img",{src:B.value.cover,onError:l[4]||(l[4]=m=>ee.value=!0)},null,40,ia)])):(d(),f("span",ua,"🎬")),g("span",ca,p(((xt=B.value)==null?void 0:xt.title)||s.value),1),(Jt=B.value)!=null&&Jt.year?(d(),f("span",da,p(B.value.year),1)):A("",!0),(Wt=B.value)!=null&&Wt.rating?(d(),f("span",fa,"⭐ "+p(B.value.rating),1)):A("",!0),(jt=(Yt=B.value)==null?void 0:Yt.genres)!=null&&jt.length?(d(),f("span",ga,[(d(!0),f($,null,oe(B.value.genres.slice(0,3),(m,Z)=>(d(),f("span",{key:Z,class:"strip-genre"},p(m),1))),128))])):A("",!0),V.value.length>0?(d(),f("span",ha,[(d(!0),f($,null,oe(V.value.slice(0,3),m=>(d(),f("span",{key:m,class:"strip-tag"},p(m),1))),128))])):A("",!0),l[19]||(l[19]=g("span",{class:"strip-right"},"信息来源 TMDB · 更多详情 →",-1))]))])):A("",!0),!n.value&&r.value==="SEARCH"?(d(),f($,{key:4},[!_.value&&Tt.value.length>0?(d(),f("div",va,[(d(!0),f($,null,oe(Tt.value,(m,Z)=>(d(),Me(tn,{key:"flat-"+Z,data:m,fallbackTags:V.value,fallbackImage:b.value,loggedIn:Q.value!==null,cloudTypeMap:Ue.value,onSave:Nt},null,8,["data","fallbackTags","fallbackImage","loggedIn","cloudTypeMap"]))),128)),In.value?(d(),f("div",ma,[z(H,{onClick:Mn,loading:o.value,class:"load-more-btn"},{default:K(()=>[G(" 加载更多 (已显示 "+p(Te.value)+" / "+p(et.value.length)+") ",1)]),_:1},8,["loading"])])):A("",!0)])):_.value&&Mt.value.length>0?(d(),f("div",pa,[(d(!0),f($,null,oe(Mt.value,(m,Z)=>(d(),f("div",{key:"ch-"+m.cloud_type,class:"channel-section"},[g("span",ya,[Ie(m.cloud_type).startsWith("data:")||Ie(m.cloud_type).startsWith("http")||Ie(m.cloud_type).startsWith("/")?(d(),f("img",{key:0,src:Ie(m.cloud_type),class:"channel-icon-img"},null,8,_a)):(d(),f("span",wa,p(Ie(m.cloud_type)),1)),g("span",ka,p(m.label),1),g("span",ba,p(m.count)+" 条资源",1),m.newestTime?(d(),f("span",Ca,"🕐 "+p(m.newestTime),1)):A("",!0)]),(d(!0),f($,null,oe(Bt(m),(ge,qn)=>(d(),Me(tn,{key:"ch-"+Z+"-"+qn,data:ge,fallbackTags:V.value,fallbackImage:b.value,loggedIn:Q.value!==null,cloudTypeMap:Ue.value,onSave:Nt},null,8,["data","fallbackTags","fallbackImage","loggedIn","cloudTypeMap"]))),128)),Rn(m)?(d(),f("div",{key:0,class:"channel-load-more",onClick:ge=>An(m.cloud_type)},[g("span",Ta," 展开更多 (已显示 "+p(Bt(m).length)+" / "+p(m.count)+") ",1)],8,Ea)):A("",!0)]))),128))])):I.value>0&&_.value?(d(),f("div",Ia,[g("span",null,"当前页暂无「"+p(Tn())+"」资源",1),y.value?(d(),Me(H,{key:0,size:"small",onClick:St,loading:o.value},{default:K(()=>[...l[20]||(l[20]=[G(" 加载更多试试 ",-1)])]),_:1},8,["loading"])):A("",!0)])):A("",!0)],64)):!n.value&&r.value==="VIDEO_PARSE"?(d(),f("div",Ba,[(d(!0),f($,null,oe(u.value,(m,Z)=>(d(),Me(ho,{key:Z,data:m,onSave:Vn},null,8,["data"]))),128))])):A("",!0),!n.value&&!o.value&&I.value===0&&v.value.length===0?(d(),f("div",Ma,[l[21]||(l[21]=g("div",{class:"empty-icon"},"🔍",-1)),l[22]||(l[22]=g("div",{class:"empty-title"},"没有找到相关资源",-1)),g("div",Ra,p(Bn.value),1),It.value.length>0?(d(),f("div",Aa,[(d(!0),f($,null,oe(It.value,(m,Z)=>(d(),f("div",{key:Z,class:"empty-tip-item"},"💡 "+p(m),1))),128))])):A("",!0)])):A("",!0),y.value&&r.value==="SEARCH"&&!n.value?(d(),f("div",Sa,[z(H,{loading:o.value,onClick:St},{default:K(()=>[G("加载更多 ("+p(R.value)+"/"+p(Pn.value)+")",1)]),_:1},8,["loading"])])):A("",!0)]),z(te,{modelValue:ye.value,"onUpdate:modelValue":l[7]||(l[7]=m=>ye.value=m),width:"650px","close-on-click-modal":!1,class:"save-dialog"},{header:K(()=>[g("strong",Pa,p(Un.value),1)]),default:K(()=>{var m,Z;return[g("div",Na,[pe.value?(d(),f("div",La,[g("div",{class:we(["progress-step",{active:Y.value>=1,done:Y.value>1}])},[g("div",Da,[Y.value>1?(d(),f("span",Ua,"✓")):(d(),f("span",Va,"1"))]),g("div",Fa,[g("span",qa,"正在转存到"+p(Fe.value)+"...",1),Y.value===1?(d(),f("span",za,"进行中")):(d(),f("span",Ha,"已完成"))])],2),g("div",{class:we(["progress-step",{active:Y.value>=2,done:Y.value>2}])},[g("div",Ka,[Y.value>2?(d(),f("span",Oa,"✓")):(d(),f("span",xa,"2"))]),g("div",Ja,[l[23]||(l[23]=g("span",{class:"step-title"},"正在重命名文件(防和谐)...",-1)),Y.value===2?(d(),f("span",Wa,"进行中")):Y.value>2?(d(),f("span",Ya,"已完成")):(d(),f("span",ja,"等待中"))])],2),g("div",{class:we(["progress-step",{active:Y.value>=3,done:Y.value>3}])},[g("div",Ga,[Y.value>3?(d(),f("span",Qa,"✓")):(d(),f("span",Xa,"3"))]),g("div",Za,[l[24]||(l[24]=g("span",{class:"step-title"},"正在生成分享链接...",-1)),Y.value===3?(d(),f("span",$a,"进行中")):Y.value>3?(d(),f("span",el,"已完成")):(d(),f("span",tl,"等待中"))])],2)])):ce.value?A("",!0):(d(),f("div",nl,[z(U,{type:"error",title:((m=fe.value)==null?void 0:m.message)||((Z=fe.value)==null?void 0:Z.error)||"保存失败","show-icon":"",closable:!1},null,8,["title"])])),ce.value&&_e.value.length>0&&ae.value?(d(),f("div",sl,[z(U,{type:"warning",closable:!1,"show-icon":""},{title:K(()=>[g("span",ol,"已对 "+p(_e.value.length)+" 个文件执行防和谐重命名",1)]),default:K(()=>[(d(!0),f($,null,oe(_e.value,ge=>(d(),f("div",{key:ge,class:"rename-item"},p(ge),1))),128))]),_:1})])):A("",!0),ce.value&&ae.value?(d(),f("div",al,[g("div",ll,[g("div",rl,[g("canvas",{ref_key:"qrCanvasRef",ref:nt,class:"qr-canvas"},null,512),g("p",il,p(Fe.value)+"APP扫码转存",1),l[25]||(l[25]=g("p",{class:"qr-subhint"},"保存到你自己网盘",-1)),l[26]||(l[26]=g("div",{class:"qr-disclaimer-short"},[g("span",null,"⚠️ 本站资源仅供学习交流请于24h内删除")],-1))]),g("div",ul,[g("div",cl,[z(P,{class:"success-icon",size:20,color:"#67c23a"},{default:K(()=>[z(Oe(On))]),_:1}),g("span",dl,[G("【"+p(Fe.value)+"】",1),l[27]||(l[27]=g("strong",null,"分享链接已生成!",-1))])]),g("div",fl,[z(S,{modelValue:ae.value,"onUpdate:modelValue":l[5]||(l[5]=ge=>ae.value=ge),readonly:"",class:"share-input"},null,8,["modelValue"])]),Be.value?(d(),f("div",gl,[l[28]||(l[28]=g("span",{class:"pwd-label"},"🔑 提取密码:",-1)),z(X,{type:"warning"},{default:K(()=>[G(p(Be.value),1)]),_:1}),l[29]||(l[29]=g("span",{class:"pwd-hint"},"打开链接后需输入密码",-1))])):A("",!0),g("div",hl,[l[34]||(l[34]=g("span",{class:"share-tip-warn"},"⚠️",-1)),g("div",vl,[l[30]||(l[30]=g("strong",null,"请尽快复制链接到浏览器打开",-1)),l[31]||(l[31]=G(" 或 ",-1)),g("strong",null,"用"+p(Fe.value)+"APP扫码",1),l[32]||(l[32]=g("br",null,null,-1)),l[33]||(l[33]=g("strong",null,"转存至您的网盘,以免资源被官方和谐",-1))])]),l[38]||(l[38]=g("div",{class:"warnings-box"},[g("p",{class:"warning-item"},"郑重警告一:网盘内除您所需资源外,不要打开任何不相关内容。"),g("p",{class:"warning-item"},"郑重警告二:网盘内除您所需资源外,不要打开任何不相关内容。"),g("p",{class:"warning-item"},"郑重警告三:网盘内除您所需资源外,不要打开任何不相关内容。"),g("p",{class:"warning-item"},"郑重警告四:以上警告说三遍,你还要明知故犯吗?")],-1)),g("div",ml,[z(H,{class:"disclaimer-btn",onClick:Lt},{default:K(()=>[...l[35]||(l[35]=[G("📜 免责声明",-1)])]),_:1}),z(H,{onClick:l[6]||(l[6]=ge=>ye.value=!1)},{default:K(()=>[...l[36]||(l[36]=[G("关闭",-1)])]),_:1}),z(H,{type:"primary",onClick:Fn},{default:K(()=>[...l[37]||(l[37]=[G("一键复制链接",-1)])]),_:1})])])])])):A("",!0)])]}),_:1},8,["modelValue"])]),z(te,{modelValue:ie.value,"onUpdate:modelValue":l[10]||(l[10]=m=>ie.value=m),title:"登录",width:"380px","close-on-click-modal":!1,top:"25vh"},{default:K(()=>[z(de,{ref_key:"loginFormRef",ref:kt,model:ue,rules:bn,"label-width":"0",onKeyup:Xt(Ct,["enter"])},{default:K(()=>[z(x,{prop:"username"},{default:K(()=>[z(S,{modelValue:ue.username,"onUpdate:modelValue":l[8]||(l[8]=m=>ue.username=m),placeholder:"用户名","prefix-icon":"User"},null,8,["modelValue"])]),_:1}),z(x,{prop:"password"},{default:K(()=>[z(S,{modelValue:ue.password,"onUpdate:modelValue":l[9]||(l[9]=m=>ue.password=m),type:"password",placeholder:"密码","prefix-icon":"Lock","show-password":""},null,8,["modelValue"])]),_:1}),z(x,null,{default:K(()=>[z(H,{type:"primary",loading:Qe.value,style:{width:"100%"},onClick:Ct},{default:K(()=>[...l[39]||(l[39]=[G("登录",-1)])]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"]),De.value?(d(),f("p",pl,p(De.value),1)):A("",!0)]),_:1},8,["modelValue"]),W.value?(d(),f("div",yl,[g("div",_l,p(W.value),1),g("div",wl,[z(H,{class:"footer-disclaimer-btn",size:"small",onClick:Lt},{default:K(()=>[...l[40]||(l[40]=[G("📜 免责声明",-1)])]),_:1})])])):A("",!0)],64)}}}),Tl=vt(kl,[["__scopeId","data-v-fd3e5f15"]]);export{Tl as default};