rssany 0.1.5 → 0.2.0
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/README.md +1 -5
- package/app/plugins/builtin/agi-eval-evaluation.rssany.js +1 -1
- package/app/plugins/builtin/brightdata-blog.rssany.js +1 -1
- package/app/plugins/builtin/five-radar.rssany.js +1 -1
- package/app/plugins/builtin/google-deepmind-research.rssany.js +1 -1
- package/app/plugins/builtin/opendrivelab-publications.rssany.js +1 -1
- package/app/plugins/builtin/pjlab-adg-publications.rssany.js +1 -1
- package/app/plugins/builtin/theinformation-briefings.rssany.js +150 -0
- package/app/plugins/builtin/x.rssany.js +192 -23
- package/app/plugins/builtin/zhipu-research.rssany.js +2 -2
- package/app/plugins/site.rssany.js +1 -0
- package/dist/index.js +347 -255
- package/dist/index.js.map +1 -1
- package/init/config.json +1 -1
- package/package.json +8 -8
- package/webui/build/200.html +6 -6
- package/webui/build/_app/immutable/assets/12.DfJcfUWl.css +1 -0
- package/webui/build/_app/immutable/assets/5.B-dPiwB7.css +1 -0
- package/webui/build/_app/immutable/assets/6.B27N7pdA.css +1 -0
- package/webui/build/_app/immutable/assets/8.Cgji2b15.css +1 -0
- package/webui/build/_app/immutable/assets/9.BsCIAvn3.css +1 -0
- package/webui/build/_app/immutable/assets/homeFeedPanelStore.CSvlNcpm.css +1 -0
- package/webui/build/_app/immutable/chunks/5LVkDJzw.js +1 -0
- package/webui/build/_app/immutable/chunks/Bns1MuyM.js +36 -0
- package/webui/build/_app/immutable/chunks/{D6VIKef0.js → Bu9HsS-V.js} +1 -1
- package/webui/build/_app/immutable/chunks/{Dbqx2mXq.js → CmjOpds-.js} +1 -1
- package/webui/build/_app/immutable/chunks/bvuf_jZd.js +36 -0
- package/webui/build/_app/immutable/entry/{app.XPso7q7g.js → app.BVkrDt5l.js} +2 -2
- package/webui/build/_app/immutable/entry/start.D3Q-BMMd.js +1 -0
- package/webui/build/_app/immutable/nodes/{0.BKTQePmA.js → 0.I1lQdWMl.js} +1 -1
- package/webui/build/_app/immutable/nodes/{1.BS3_Rfxm.js → 1.BiQQfx2j.js} +1 -1
- package/webui/build/_app/immutable/nodes/{10.CyyxDCIS.js → 10.CvfUsqsw.js} +1 -1
- package/webui/build/_app/immutable/nodes/{11.CtYgIaGj.js → 11.B4LHPNL6.js} +1 -1
- package/webui/build/_app/immutable/nodes/12.DVFJuIWI.js +1 -0
- package/webui/build/_app/immutable/nodes/{14.D5OEGPR2.js → 14.DfaAf0f8.js} +1 -1
- package/webui/build/_app/immutable/nodes/{15.B4dFN1Gk.js → 15.CMzkX9OK.js} +1 -1
- package/webui/build/_app/immutable/nodes/{16.M7ZII7tl.js → 16.zPgTQNze.js} +1 -1
- package/webui/build/_app/immutable/nodes/{18.Ba_qJjp6.js → 18.BIzqhTqv.js} +1 -1
- package/webui/build/_app/immutable/nodes/{3.7r8v7qkm.js → 3.B8Viux9S.js} +1 -1
- package/webui/build/_app/immutable/nodes/5.B6fR3n6J.js +2 -0
- package/webui/build/_app/immutable/nodes/{6.BDBqx-GY.js → 6.j2O5Mwjv.js} +1 -1
- package/webui/build/_app/immutable/nodes/{7.D5czsDmz.js → 7.Bd2USIrl.js} +1 -1
- package/webui/build/_app/immutable/nodes/{8.pjVNsCdV.js → 8.Bw_d63B_.js} +1 -1
- package/webui/build/_app/immutable/nodes/{9.CsARv1BH.js → 9.pMMi5PP6.js} +1 -1
- package/webui/build/_app/version.json +1 -1
- package/app/plugins/builtin/google.rssany.js +0 -187
- package/webui/build/_app/immutable/assets/12.Ct59LCqW.css +0 -1
- package/webui/build/_app/immutable/assets/5.ClehBQ0g.css +0 -1
- package/webui/build/_app/immutable/assets/6.DSJfjJwx.css +0 -1
- package/webui/build/_app/immutable/assets/8.Ba5_jYIY.css +0 -1
- package/webui/build/_app/immutable/assets/9.m-LCx_kl.css +0 -1
- package/webui/build/_app/immutable/assets/homeFeedPanelStore.iOmfP2qL.css +0 -1
- package/webui/build/_app/immutable/chunks/CZD-YNDw.js +0 -31
- package/webui/build/_app/immutable/chunks/DeX-oq5W.js +0 -41
- package/webui/build/_app/immutable/chunks/dhB8G5Is.js +0 -1
- package/webui/build/_app/immutable/entry/start.Db4snNCd.js +0 -1
- package/webui/build/_app/immutable/nodes/12.Cg8AeCSH.js +0 -1
- package/webui/build/_app/immutable/nodes/5.CHIzoGrb.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Ye,f as Kt,t as wi}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{at as fh,au as uh,aC as al,aD as Qu,az as vi,i as B,d as ku,z as Dt,a5 as xe,$ as wu,av as Xe,ax as Le,aw as gn,u as vu,U as $u}from"../chunks/BbWUOQ_m.js";import{s as Pu,a as Tu}from"../chunks/DjNLq3TF.js";import{s as $i,e as Cu}from"../chunks/DMWEh-Ek.js";import{i as yn}from"../chunks/Dt2CddFe.js";import{k as Zu}from"../chunks/Cihqbfi5.js";import{h as Au}from"../chunks/DEDI7Ecm.js";import{i as Mu}from"../chunks/CVzlFH44.js";import{P as Ru}from"../chunks/B2Q1a1-H.js";import{a as hl}from"../chunks/CBY2biv-.js";import{p as Xu}from"../chunks/
|
|
1
|
+
import{a as Ye,f as Kt,t as wi}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{at as fh,au as uh,aC as al,aD as Qu,az as vi,i as B,d as ku,z as Dt,a5 as xe,$ as wu,av as Xe,ax as Le,aw as gn,u as vu,U as $u}from"../chunks/BbWUOQ_m.js";import{s as Pu,a as Tu}from"../chunks/DjNLq3TF.js";import{s as $i,e as Cu}from"../chunks/DMWEh-Ek.js";import{i as yn}from"../chunks/Dt2CddFe.js";import{k as Zu}from"../chunks/Cihqbfi5.js";import{h as Au}from"../chunks/DEDI7Ecm.js";import{i as Mu}from"../chunks/CVzlFH44.js";import{P as Ru}from"../chunks/B2Q1a1-H.js";import{a as hl}from"../chunks/CBY2biv-.js";import{p as Xu}from"../chunks/Bu9HsS-V.js";import{s as cl}from"../chunks/tB7QMF3U.js";import{o as Lu}from"../chunks/Bp63qm3L.js";import{b as Du}from"../chunks/Xy_fhzQq.js";import{p as fl}from"../chunks/xtNWTdbD.js";import{B as Wu}from"../chunks/CmjOpds-.js";let kr=[],dh=[];(()=>{let n="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<n.length;e++)(e%2?dh:kr).push(t=t+n[e])})();function Eu(n){if(n<768)return!1;for(let e=0,t=kr.length;;){let i=e+t>>1;if(n<kr[i])t=i;else if(n>=dh[i])e=i+1;else return!0;if(e==t)return!1}}function ul(n){return n>=127462&&n<=127487}const dl=8205;function _u(n,e,t=!0,i=!0){return(t?Oh:zu)(n,e,i)}function Oh(n,e,t){if(e==n.length)return e;e&&ph(n.charCodeAt(e))&&mh(n.charCodeAt(e-1))&&e--;let i=qs(n,e);for(e+=Ol(i);e<n.length;){let s=qs(n,e);if(i==dl||s==dl||t&&Eu(s))e+=Ol(s),i=s;else if(ul(s)){let r=0,o=e-2;for(;o>=0&&ul(qs(n,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function zu(n,e,t){for(;e>0;){let i=Oh(n,e-2,t);if(i<e)return i;e--}return 0}function qs(n,e){let t=n.charCodeAt(e);if(!mh(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return ph(i)?(t-55296<<10)+(i-56320)+65536:t}function ph(n){return n>=56320&&n<57344}function mh(n){return n>=55296&&n<56320}function Ol(n){return n<65536?1:2}class Y{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=di(this,e,t);let s=[];return this.decompose(0,e,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(t,this.length,s,1),rt.from(s,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=di(this,e,t);let i=[];return this.decompose(e,t,i,0),rt.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),s=new Wi(this),r=new Wi(e);for(let o=t,l=t;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(e=1){return new Wi(this,e)}iterRange(e,t=this.length){return new gh(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let s=this.line(e).from;i=this.iterRange(s,Math.max(s,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new yh(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Y.empty:e.length<=32?new ee(e):rt.from(ee.split(e,[]))}}class ee extends Y{constructor(e,t=Yu(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((t?i:l)>=e)return new Bu(s,l,i,o);s=l+1,i++}}decompose(e,t,i,s){let r=e<=0&&t>=this.length?this:new ee(pl(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(s&1){let o=i.pop(),l=Bn(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new ee(l,o.length+r.length));else{let a=l.length>>1;i.push(new ee(l.slice(0,a)),new ee(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof ee))return super.replace(e,t,i);[e,t]=di(this,e,t);let s=Bn(this.text,Bn(i.text,pl(this.text,0,e)),t),r=this.length+i.length-(t-e);return s.length<=32?new ee(s,r):rt.from(ee.split(s,[]),r)}sliceString(e,t=this.length,i=`
|
|
2
2
|
`){[e,t]=di(this,e,t);let s="";for(let r=0,o=0;r<=t&&o<this.text.length;o++){let l=this.text[o],a=r+l.length;r>e&&o&&(s+=i),e<a&&t>r&&(s+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return s}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],s=-1;for(let r of e)i.push(r),s+=r.length+1,i.length==32&&(t.push(new ee(i,s)),i=[],s=-1);return s>-1&&t.push(new ee(i,s)),t}}class rt extends Y{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,s);s=l+1,i=a+1}}decompose(e,t,i,s){for(let r=0,o=0;o<=t&&r<this.children.length;r++){let l=this.children[r],a=o+l.length;if(e<=a&&t>=o){let h=s&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!h?i.push(l):l.decompose(e-o,t-o,i,h)}o=a+1}}replace(e,t,i){if([e,t]=di(this,e,t),i.lines<this.lines)for(let s=0,r=0;s<this.children.length;s++){let o=this.children[s],l=r+o.length;if(e>=r&&t<=l){let a=o.replace(e-r,t-r,i),h=this.lines-o.lines+a.lines;if(a.lines<h>>4&&a.lines>h>>6){let c=this.children.slice();return c[s]=a,new rt(c,this.length-(t-e)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
|
|
3
3
|
`){[e,t]=di(this,e,t);let s="";for(let r=0,o=0;r<this.children.length&&o<=t;r++){let l=this.children[r],a=o+l.length;o>e&&r&&(s+=i),e<a&&t>o&&(s+=l.sliceString(e-o,t-o,i)),o=a+1}return s}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof rt))return 0;let i=0,[s,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;s+=t,r+=t){if(s==o||r==l)return i;let a=this.children[s],h=e.children[r];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let O of e)O.flatten(d);return new ee(d,t)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],a=0,h=-1,c=[];function f(d){let O;if(d.lines>r&&d instanceof rt)for(let p of d.children)f(p);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof ee&&a&&(O=c[c.length-1])instanceof ee&&d.lines+O.lines<=32?(a+=d.lines,h+=d.length+1,c[c.length-1]=new ee(O.text.concat(d.text),O.length+1+d.length)):(a+d.lines>s&&u(),a+=d.lines,h+=d.length+1,c.push(d))}function u(){a!=0&&(l.push(c.length==1?c[0]:rt.from(c,h)),h=-1,a=c.length=0)}for(let d of e)f(d);return u(),l.length==1?l[0]:new rt(l,t)}}Y.empty=new ee([""],0);function Yu(n){let e=-1;for(let t of n)e+=t.length+1;return e}function Bn(n,e,t=0,i=1e9){for(let s=0,r=0,o=!0;r<n.length&&s<=i;r++){let l=n[r],a=s+l.length;a>=t&&(a>i&&(l=l.slice(0,i-s)),s<t&&(l=l.slice(t-s)),o?(e[e.length-1]+=l,o=!1):e.push(l)),s=a+1}return e}function pl(n,e,t){return Bn(n,[""],e,t)}class Wi{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof ee?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof ee?s.text.length:s.children.length;if(o==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
|
|
4
4
|
`,this;e--}else if(s instanceof ee){let a=s.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=s.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof ee?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class gh{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Wi(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:s}=this.cursor.next(e);return this.pos+=(s.length+e)*t,this.value=s.length<=i?s:t<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class yh{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:s}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Y.prototype[Symbol.iterator]=function(){return this.iter()},Wi.prototype[Symbol.iterator]=gh.prototype[Symbol.iterator]=yh.prototype[Symbol.iterator]=function(){return this});class Bu{constructor(e,t,i,s){this.from=e,this.to=t,this.number=i,this.text=s}get length(){return this.to-this.from}}function di(n,e,t){return e=Math.max(0,Math.min(n.length,e)),[e,Math.max(e,Math.min(n.length,t))]}function he(n,e,t=!0,i=!0){return _u(n,e,t,i)}function qu(n){return n>=56320&&n<57344}function Vu(n){return n>=55296&&n<56320}function ve(n,e){let t=n.charCodeAt(e);if(!Vu(t)||e+1==n.length)return t;let i=n.charCodeAt(e+1);return qu(i)?(t-55296<<10)+(i-56320)+65536:t}function bo(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function ot(n){return n<65536?1:2}const wr=/\r\n?|\n/;var de=(function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n})(de||(de={}));class ut{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,s=0;t<this.sections.length;){let r=this.sections[t++],o=this.sections[t++];o<0?(e(i,s,r),s+=r):s+=o,i+=r}}iterChangedRanges(e,t=!1){vr(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];s<0?e.push(i,s):e.push(s,i)}return new ut(e)}composeDesc(e){return this.empty?e:e.empty?this:xh(this,e)}mapDesc(e,t=!1){return e.empty?this:$r(this,e,t)}mapPos(e,t=-1,i=de.Simple){let s=0,r=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],a=this.sections[o++],h=s+l;if(a<0){if(h>e)return r+(e-s);r+=l}else{if(i!=de.Simple&&h>=e&&(i==de.TrackDel&&s<e&&h>e||i==de.TrackBefore&&s<e||i==de.TrackAfter&&h>e))return null;if(h>e||h==e&&t<0&&!l)return e==s||t<0?r:r+a;r+=a}s=h}if(e>s)throw new RangeError(`Position ${e} is out of range for changeset of length ${s}`);return r}touchesRange(e,t=e){for(let i=0,s=0;i<this.sections.length&&s<=t;){let r=this.sections[i++],o=this.sections[i++],l=s+r;if(o>=0&&s<=t&&l>=e)return s<e&&l>t?"cover":!0;s=l}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],s=this.sections[t++];e+=(e?" ":"")+i+(s>=0?":"+s:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new ut(e)}static create(e){return new ut(e)}}class oe extends ut{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return vr(this,(t,i,s,r,o)=>e=e.replace(s,s+(i-t),o),!1),e}mapDesc(e,t=!1){return $r(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let s=0,r=0;s<t.length;s+=2){let o=t[s],l=t[s+1];if(l>=0){t[s]=l,t[s+1]=o;let a=s>>1;for(;i.length<a;)i.push(Y.empty);i.push(o?e.slice(r,r+o):Y.empty)}r+=o}return new oe(t,i)}compose(e){return this.empty?e:e.empty?this:xh(this,e,!0)}map(e,t=!1){return e.empty?this:$r(this,e,t,!0)}iterChanges(e,t=!1){vr(this,e,t)}get desc(){return ut.create(this.sections)}filter(e){let t=[],i=[],s=[],r=new Vi(this);e:for(let o=0,l=0;;){let a=o==e.length?1e9:e[o++];for(;l<a||l==a&&r.len==0;){if(r.done)break e;let c=Math.min(r.len,a-l);me(s,c,-1);let f=r.ins==-1?-1:r.off==0?r.ins:0;me(t,c,f),f>0&&vt(i,t,r.text),r.forward(c),l+=c}let h=e[o++];for(;l<h;){if(r.done)break e;let c=Math.min(r.len,h-l);me(t,c,-1),me(s,c,r.ins==-1?-1:r.off==0?r.ins:0),r.forward(c),l+=c}}return{changes:new oe(t,i),filtered:ut.create(s)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],s=this.sections[t+1];s<0?e.push(i):s==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let s=[],r=[],o=0,l=null;function a(c=!1){if(!c&&!s.length)return;o<t&&me(s,t-o,-1);let f=new oe(s,r);l=l?l.compose(f.map(l)):f,s=[],r=[],o=0}function h(c){if(Array.isArray(c))for(let f of c)h(f);else if(c instanceof oe){if(c.length!=t)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${t})`);a(),l=l?l.compose(c.map(l)):c}else{let{from:f,to:u=f,insert:d}=c;if(f>u||f<0||u>t)throw new RangeError(`Invalid change range ${f} to ${u} (in doc of length ${t})`);let O=d?typeof d=="string"?Y.of(d.split(i||wr)):d:Y.empty,p=O.length;if(f==u&&p==0)return;f<o&&a(),f>o&&me(s,f-o,-1),me(s,u-f,p),vt(r,s,O),o=u}}return h(e),a(!l),l}static empty(e){return new oe(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let s=0;s<e.length;s++){let r=e[s];if(typeof r=="number")t.push(r,-1);else{if(!Array.isArray(r)||typeof r[0]!="number"||r.some((o,l)=>l&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length<s;)i.push(Y.empty);i[s]=Y.of(r.slice(1)),t.push(r[0],i[s].length)}}}return new oe(t,i)}static createSet(e,t){return new oe(e,t)}}function me(n,e,t,i=!1){if(e==0&&t<=0)return;let s=n.length-2;s>=0&&t<=0&&t==n[s+1]?n[s]+=e:s>=0&&e==0&&n[s]==0?n[s+1]+=t:i?(n[s]+=e,n[s+1]+=t):n.push(e,t)}function vt(n,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<n.length)n[n.length-1]=n[n.length-1].append(t);else{for(;n.length<i;)n.push(Y.empty);n.push(t)}}function vr(n,e,t){let i=n.inserted;for(let s=0,r=0,o=0;o<n.sections.length;){let l=n.sections[o++],a=n.sections[o++];if(a<0)s+=l,r+=l;else{let h=s,c=r,f=Y.empty;for(;h+=l,c+=a,a&&i&&(f=f.append(i[o-2>>1])),!(t||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],a=n.sections[o++];e(s,h,r,c,f),s=h,r=c}}}function $r(n,e,t,i=!1){let s=[],r=i?[]:null,o=new Vi(n),l=new Vi(e);for(let a=-1;;){if(o.done&&l.len||l.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);me(s,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len<o.len||l.len==o.len&&!t))){let h=l.len;for(me(s,l.ins,-1);h;){let c=Math.min(o.len,h);o.ins>=0&&a<o.i&&o.len<=c&&(me(s,0,o.ins),r&&vt(r,s,o.text),a=o.i),o.forward(c),h-=c}l.next()}else if(o.ins>=0){let h=0,c=o.len;for(;c;)if(l.ins==-1){let f=Math.min(c,l.len);h+=f,c-=f,l.forward(f)}else if(l.ins==0&&l.len<c)c-=l.len,l.next();else break;me(s,h,a<o.i?o.ins:0),r&&a<o.i&&vt(r,s,o.text),a=o.i,o.forward(o.len-c)}else{if(o.done&&l.done)return r?oe.createSet(s,r):ut.create(s);throw new Error("Mismatched change set lengths")}}}function xh(n,e,t=!1){let i=[],s=t?[]:null,r=new Vi(n),o=new Vi(e);for(let l=!1;;){if(r.done&&o.done)return s?oe.createSet(i,s):ut.create(i);if(r.ins==0)me(i,r.len,0,l),r.next();else if(o.len==0&&!o.done)me(i,0,o.ins,l),s&&vt(s,i,o.text),o.next();else{if(r.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(r.len2,o.len),h=i.length;if(r.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;me(i,a,c,l),s&&c&&vt(s,i,o.text)}else o.ins==-1?(me(i,r.off?0:r.len,a,l),s&&vt(s,i,r.textBit(a))):(me(i,r.off?0:r.len,o.off?0:o.ins,l),s&&!o.off&&vt(s,i,o.text));l=(r.ins>a||o.ins>=0&&o.len>a)&&(l||i.length>h),r.forward2(a),o.forward(a)}}}}class Vi{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?Y.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?Y.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Yt{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,s;return this.empty?i=s=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),s=e.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new Yt(i,s,this.flags)}extend(e,t=e,i=0){if(e<=this.anchor&&t>=this.anchor)return x.range(e,t,void 0,void 0,i);let s=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return x.range(this.anchor,s,void 0,void 0,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return x.range(e.anchor,e.head)}static create(e,t,i){return new Yt(e,t,i)}}class x{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:x.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new x([this.main],0)}addRange(e,t=!0){return x.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,x.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new x(e.ranges.map(t=>Yt.fromJSON(t)),e.main)}static single(e,t=e){return new x([x.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;s<e.length;s++){let r=e[s];if(r.empty?r.from<=i:r.from<i)return x.normalized(e.slice(),t);i=r.to}return new x(e,t)}static cursor(e,t=0,i,s){return Yt.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(s??16777215)<<6)}static range(e,t,i,s,r){let o=(i??16777215)<<6|(s==null?7:Math.min(6,s));return!r&&e!=t&&(r=t<e?1:-1),t<e?Yt.create(t,e,48|o):Yt.create(e,t,(r?r<0?8:16:0)|o)}static normalized(e,t=0){let i=e[t];e.sort((s,r)=>s.from-r.from),t=e.indexOf(i);for(let s=1;s<e.length;s++){let r=e[s],o=e[s-1];if(r.empty?r.from<=o.to:r.from<o.to){let l=o.from,a=Math.max(r.to,o.to);s<=t&&t--,e.splice(--s,2,r.anchor>r.head?x.range(a,l):x.range(l,a))}}return new x(e,t)}}function bh(n,e){for(let t of n.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let So=0;class P{constructor(e,t,i,s,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=s,this.id=So++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(e={}){return new P(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:Qo),!!e.static,e.enables)}of(e){return new qn([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new qn(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new qn(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function Qo(n,e){return n==e||n.length==e.length&&n.every((t,i)=>t===e[i])}class qn{constructor(e,t,i,s){this.dependencies=e,this.facet=t,this.type=i,this.value=s,this.id=So++}dynamicSlot(e){var t;let i=this.value,s=this.facet.compareInput,r=this.id,o=e[r]>>1,l=this.type==2,a=!1,h=!1,c=[];for(let f of this.dependencies)f=="doc"?a=!0:f=="selection"?h=!0:(((t=e[f.id])!==null&&t!==void 0?t:1)&1)==0&&c.push(e[f.id]);return{create(f){return f.values[o]=i(f),1},update(f,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||Pr(f,c)){let d=i(f);if(l?!ml(d,f.values[o],s):!s(d,f.values[o]))return f.values[o]=d,1}return 0},reconfigure:(f,u)=>{let d,O=u.config.address[r];if(O!=null){let p=Jn(u,O);if(this.dependencies.every(g=>g instanceof P?u.facet(g)===f.facet(g):g instanceof pe?u.field(g,!1)==f.field(g,!1):!0)||(l?ml(d=i(f),p,s):s(d=i(f),p)))return f.values[o]=p,0}else d=i(f);return f.values[o]=d,1}}}}function ml(n,e,t){if(n.length!=e.length)return!1;for(let i=0;i<n.length;i++)if(!t(n[i],e[i]))return!1;return!0}function Pr(n,e){let t=!1;for(let i of e)Ei(n,i)&1&&(t=!0);return t}function Iu(n,e,t){let i=t.map(a=>n[a.id]),s=t.map(a=>a.type),r=i.filter(a=>!(a&1)),o=n[e.id]>>1;function l(a){let h=[];for(let c=0;c<i.length;c++){let f=Jn(a,i[c]);if(s[c]==2)for(let u of f)h.push(u);else h.push(f)}return e.combine(h)}return{create(a){for(let h of i)Ei(a,h);return a.values[o]=l(a),1},update(a,h){if(!Pr(a,r))return 0;let c=l(a);return e.compare(c,a.values[o])?0:(a.values[o]=c,1)},reconfigure(a,h){let c=Pr(a,i),f=h.config.facets[e.id],u=h.facet(e);if(f&&!c&&Qo(t,f))return a.values[o]=u,0;let d=l(a);return e.compare(d,u)?(a.values[o]=u,0):(a.values[o]=d,1)}}}const xn=P.define({static:!0});class pe{constructor(e,t,i,s,r){this.id=e,this.createF=t,this.updateF=i,this.compareF=s,this.spec=r,this.provides=void 0}static define(e){let t=new pe(So++,e.create,e.update,e.compare||((i,s)=>i===s),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(xn).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,s)=>{let r=i.values[t],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,s)=>{let r=i.facet(xn),o=s.facet(xn),l;return(l=r.find(a=>a.field==this))&&l!=o.find(a=>a.field==this)?(i.values[t]=l.create(i),1):s.config.address[this.id]!=null?(i.values[t]=s.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,xn.of({field:this,create:e})]}get extension(){return this}}const _t={lowest:4,low:3,default:2,high:1,highest:0};function Pi(n){return e=>new Sh(e,n)}const Xt={highest:Pi(_t.highest),high:Pi(_t.high),default:Pi(_t.default),low:Pi(_t.low),lowest:Pi(_t.lowest)};class Sh{constructor(e,t){this.inner=e,this.prec=t}}class Ps{of(e){return new Tr(this,e)}reconfigure(e){return Ps.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Tr{constructor(e,t){this.compartment=e,this.inner=t}}class Kn{constructor(e,t,i,s,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let s=[],r=Object.create(null),o=new Map;for(let u of ju(e,t,o))u instanceof pe?s.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of s)l[u.id]=h.length<<1,h.push(d=>u.slot(d));let c=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],O=d[0].facet,p=c&&c[u]||[];if(d.every(g=>g.type==0))if(l[O.id]=a.length<<1|1,Qo(p,d))a.push(i.facet(O));else{let g=O.combine(d.map(y=>y.value));a.push(i&&O.compare(g,i.facet(O))?i.facet(O):g)}else{for(let g of d)g.type==0?(l[g.id]=a.length<<1|1,a.push(g.value)):(l[g.id]=h.length<<1,h.push(y=>g.dynamicSlot(y)));l[O.id]=h.length<<1,h.push(g=>Iu(g,O,d))}}let f=h.map(u=>u(l));return new Kn(e,o,f,l,a,r)}}function ju(n,e,t){let i=[[],[],[],[],[]],s=new Map;function r(o,l){let a=s.get(o);if(a!=null){if(a<=l)return;let h=i[a].indexOf(o);h>-1&&i[a].splice(h,1),o instanceof Tr&&t.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let h of o)r(h,l);else if(o instanceof Tr){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;t.set(o.compartment,h),r(h,l)}else if(o instanceof Sh)r(o.inner,o.prec);else if(o instanceof pe)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof qn)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,_t.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,l)}}return r(n,_t.default),i.reduce((o,l)=>o.concat(l))}function Ei(n,e){if(e&1)return 2;let t=e>>1,i=n.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[t]=4;let s=n.computeSlot(n,n.config.dynamicSlots[t]);return n.status[t]=2|s}function Jn(n,e){return e&1?n.config.staticValues[e>>1]:n.values[e>>1]}const Qh=P.define(),Cr=P.define({combine:n=>n.some(e=>e),static:!0}),kh=P.define({combine:n=>n.length?n[0]:void 0,static:!0}),wh=P.define(),vh=P.define(),$h=P.define(),Ph=P.define({combine:n=>n.length?n[0]:!1});class St{constructor(e,t){this.type=e,this.value=t}static define(){return new Nu}}class Nu{of(e){return new St(this,e)}}class Gu{constructor(e){this.map=e}of(e){return new R(this,e)}}class R{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new R(this.type,t)}is(e){return this.type==e}static define(e={}){return new Gu(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let s of e){let r=s.map(t);r&&i.push(r)}return i}}R.reconfigure=R.define();R.appendConfig=R.define();class ne{constructor(e,t,i,s,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&bh(i,t.newLength),r.some(l=>l.type==ne.time)||(this.annotations=r.concat(ne.time.of(Date.now())))}static create(e,t,i,s,r,o){return new ne(e,t,i,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ne.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}ne.time=St.define();ne.userEvent=St.define();ne.addToHistory=St.define();ne.remote=St.define();function Uu(n,e){let t=[];for(let i=0,s=0;;){let r,o;if(i<n.length&&(s==e.length||e[s]>=n[i]))r=n[i++],o=n[i++];else if(s<e.length)r=e[s++],o=e[s++];else return t;!t.length||t[t.length-1]<r?t.push(r,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function Th(n,e,t){var i;let s,r,o;return t?(s=e.changes,r=oe.empty(e.changes.length),o=n.changes.compose(e.changes)):(s=e.changes.map(n.changes),r=n.changes.mapDesc(e.changes,!0),o=n.changes.compose(s)),{changes:o,selection:e.selection?e.selection.map(r):(i=n.selection)===null||i===void 0?void 0:i.map(s),effects:R.mapEffects(n.effects,s).concat(R.mapEffects(e.effects,r)),annotations:n.annotations.length?n.annotations.concat(e.annotations):e.annotations,scrollIntoView:n.scrollIntoView||e.scrollIntoView}}function Zr(n,e,t){let i=e.selection,s=oi(e.annotations);return e.userEvent&&(s=s.concat(ne.userEvent.of(e.userEvent))),{changes:e.changes instanceof oe?e.changes:oe.of(e.changes||[],t,n.facet(kh)),selection:i&&(i instanceof x?i:x.single(i.anchor,i.head)),effects:oi(e.effects),annotations:s,scrollIntoView:!!e.scrollIntoView}}function Ch(n,e,t){let i=Zr(n,e.length?e[0]:{},n.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let r=1;r<e.length;r++){e[r].filter===!1&&(t=!1);let o=!!e[r].sequential;i=Th(i,Zr(n,e[r],o?i.changes.newLength:n.doc.length),o)}let s=ne.create(n,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return Hu(t?Fu(s):s)}function Fu(n){let e=n.startState,t=!0;for(let s of e.facet(wh)){let r=s(n);if(r===!1){t=!1;break}Array.isArray(r)&&(t=t===!0?r:Uu(t,r))}if(t!==!0){let s,r;if(t===!1)r=n.changes.invertedDesc,s=oe.empty(e.doc.length);else{let o=n.changes.filter(t);s=o.changes,r=o.filtered.mapDesc(o.changes).invertedDesc}n=ne.create(e,s,n.selection&&n.selection.map(r),R.mapEffects(n.effects,r),n.annotations,n.scrollIntoView)}let i=e.facet(vh);for(let s=i.length-1;s>=0;s--){let r=i[s](n);r instanceof ne?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof ne?n=r[0]:n=Ch(e,oi(r),!1)}return n}function Hu(n){let e=n.startState,t=e.facet($h),i=n;for(let s=t.length-1;s>=0;s--){let r=t[s](n);r&&Object.keys(r).length&&(i=Th(i,Zr(e,r,n.changes.newLength),!0))}return i==n?n:ne.create(e,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const Ku=[];function oi(n){return n==null?Ku:Array.isArray(n)?n:[n]}var H=(function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n})(H||(H={}));const Ju=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Ar;try{Ar=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function ed(n){if(Ar)return Ar.test(n);for(let e=0;e<n.length;e++){let t=n[e];if(/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||Ju.test(t)))return!0}return!1}function td(n){return e=>{if(!/\S/.test(e))return H.Space;if(ed(e))return H.Word;for(let t=0;t<n.length;t++)if(e.indexOf(n[t])>-1)return H.Word;return H.Other}}class q{constructor(e,t,i,s,r,o){this.config=e,this.doc=t,this.selection=i,this.values=s,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)Ei(this,l<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return Ei(this,i),Jn(this,i)}update(...e){return Ch(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:s}=t;for(let l of e.effects)l.is(Ps.reconfigure)?(t&&(s=new Map,t.compartments.forEach((a,h)=>s.set(h,a)),t=null),s.set(l.value.compartment,l.value.extension)):l.is(R.reconfigure)?(t=null,i=l.value):l.is(R.appendConfig)&&(t=null,i=oi(i).concat(l.value));let r;t?r=e.startState.values.slice():(t=Kn.resolve(i,s,this),r=new q(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,h)=>h.reconfigure(a,this),null).values);let o=e.startState.facet(Cr)?e.newSelection:e.newSelection.asSingle();new q(t,e.newDoc,o,r,(l,a)=>a.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:x.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),s=this.changes(i.changes),r=[i.range],o=oi(i.effects);for(let l=1;l<t.ranges.length;l++){let a=e(t.ranges[l]),h=this.changes(a.changes),c=h.map(s);for(let u=0;u<l;u++)r[u]=r[u].map(c);let f=s.mapDesc(h,!0);r.push(a.range.map(f)),s=s.compose(c),o=R.mapEffects(o,c).concat(R.mapEffects(oi(a.effects),f))}return{changes:s,selection:x.create(r,t.mainIndex),effects:o}}changes(e=[]){return e instanceof oe?e:oe.of(e,this.doc.length,this.facet(q.lineSeparator))}toText(e){return Y.of(e.split(this.facet(q.lineSeparator)||wr))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Ei(this,t),Jn(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let s=e[i];s instanceof pe&&this.config.address[s.id]!=null&&(t[i]=s.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(i){for(let r in i)if(Object.prototype.hasOwnProperty.call(e,r)){let o=i[r],l=e[r];s.push(o.init(a=>o.spec.fromJSON(l,a)))}}return q.create({doc:e.doc,selection:x.fromJSON(e.selection),extensions:t.extensions?s.concat([t.extensions]):s})}static create(e={}){let t=Kn.resolve(e.extensions||[],new Map),i=e.doc instanceof Y?e.doc:Y.of((e.doc||"").split(t.staticFacet(q.lineSeparator)||wr)),s=e.selection?e.selection instanceof x?e.selection:x.single(e.selection.anchor,e.selection.head):x.single(0);return bh(s,i.length),t.staticFacet(Cr)||(s=s.asSingle()),new q(t,i,s,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(q.tabSize)}get lineBreak(){return this.facet(q.lineSeparator)||`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o}from"../chunks/hp4PFHFv.js";function r({params:e}){throw e.sub,o(302,"/")}const
|
|
1
|
+
import{r as o}from"../chunks/hp4PFHFv.js";function r({params:e}){throw e.sub,o(302,"/")}const a=Object.freeze(Object.defineProperty({__proto__:null,load:r},Symbol.toStringTag,{value:"Module"}));export{a as universal};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t,f as r}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{d as m,$ as s}from"../chunks/BbWUOQ_m.js";import{h as p}from"../chunks/DEDI7Ecm.js";import{S as n}from"../chunks/
|
|
1
|
+
import{a as t,f as r}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{d as m,$ as s}from"../chunks/BbWUOQ_m.js";import{h as p}from"../chunks/DEDI7Ecm.js";import{S as n}from"../chunks/bvuf_jZd.js";import{P as f}from"../chunks/B2Q1a1-H.js";var i=r('<meta name="description" content="Subscribed sources: labels, counts, pull and manage feeds."/>');function S(e){p("1uha8ag",o=>{var a=i();m(()=>{s.title=`Sources — ${f}`}),t(o,a)}),n(e,{})}export{S as component};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as p,f as d}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as Y}from"../chunks/Bp63qm3L.js";import{at as Z,az as ee,au as te,d as se,i as s,z as h,av as o,aw as c,$ as ae,ax as r,ay as P,a5 as a,f as C}from"../chunks/BbWUOQ_m.js";import{e as J,s as x}from"../chunks/DMWEh-Ek.js";import{i as N}from"../chunks/Dt2CddFe.js";import{h as oe}from"../chunks/DEDI7Ecm.js";import{P as re,r as R}from"../chunks/B2Q1a1-H.js";import{b as A}from"../chunks/Dw782Tjs.js";import{i as ie}from"../chunks/CVzlFH44.js";import{B as ne}from"../chunks/CmjOpds-.js";import{b as S}from"../chunks/CBY2biv-.js";import{s as m}from"../chunks/tB7QMF3U.js";var ce=d('<p class="hint svelte-bhaf7m">加载中…</p>'),le=d('<input type="url" class="url-input svelte-bhaf7m" placeholder="https://agidaily.cc/api/gateway"/> <p class="hint svelte-bhaf7m">保存后生效;测试仅向 <code>…/test</code> 发一条合并的连通性请求(示例 items + 当前 sources),不写本地库。</p>',1),me=d('<p class="hint svelte-bhaf7m">加载中…</p>'),fe=d('<input type="password" class="url-input svelte-bhaf7m" placeholder="与下游 token.txt 内容一致,留空则不发送 Authorization" autocomplete="off"/> <p class="hint svelte-bhaf7m">非空时出站请求携带 Bearer。清空并保存可从配置中移除 token 字段。</p>',1),ve=d(`<div class="feed-wrap svelte-bhaf7m"><div class="feed-col svelte-bhaf7m"><div class="body svelte-bhaf7m"><!> <p class="intro svelte-bhaf7m">填写<strong>Gateway 基址</strong>(到 <code class="svelte-bhaf7m">/api/gateway</code> 为止,不要带 <code class="svelte-bhaf7m">/items</code>)。非空时:入库与 Pipeline
|
|
2
|
+
完成后会 <code class="svelte-bhaf7m"> </code>(体为 <code class="svelte-bhaf7m">sourceRef</code> + <code class="svelte-bhaf7m">items</code>);<code class="svelte-bhaf7m">sources.json</code> 变更后会 <code class="svelte-bhaf7m">POST …/sources</code>(正文与本地信源文件一致)。下游按固定路径接收即可。</p> <section class="form-section svelte-bhaf7m"><h3 class="section-title svelte-bhaf7m">Gateway 基址</h3> <!></section> <section class="form-section svelte-bhaf7m"><h3 class="section-title svelte-bhaf7m">Gateway 令牌(可选)</h3> <!></section> <section class="form-section svelte-bhaf7m"><div class="btn-row svelte-bhaf7m"><button type="button" class="btn btn-primary svelte-bhaf7m"> </button> <button type="button" class="btn btn-secondary svelte-bhaf7m"> </button></div></section></div></div></div>`);function Se(M,U){Z(U,!1);let i=h(""),n=h(""),l=h(!0),b=h(!1),u=h(!1);async function $(){a(l,!0);try{const e=await S("/api/deliver");a(i,(e==null?void 0:e.gateway)??""),a(n,(e==null?void 0:e.token)??"")}catch{a(i,""),a(n,"")}finally{a(l,!1)}}async function D(){a(b,!0);try{const e=await S("/api/deliver",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({gateway:s(i).trim(),token:s(n).trim()})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"保存失败");a(i,(e==null?void 0:e.gateway)??s(i)),a(n,(e==null?void 0:e.token)??s(n)),m("已保存","success")}catch(e){m("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{a(b,!1)}}async function F(){const e=s(i).trim();if(!e){m("请先填写 Gateway 基址","error");return}a(u,!0);try{const t=await S("/api/deliver/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({gateway:e,token:s(n).trim()})});t!=null&&t.ok?m("Gateway 测试投递成功(POST …/test)","success"):m("测试失败: "+((t==null?void 0:t.message)??"未知错误"),"error")}catch(t){m("测试失败: "+(t instanceof Error?t.message:String(t)),"error")}finally{a(u,!1)}}Y($),ie();var _=ve();oe("bhaf7m",e=>{se(()=>{ae.title=`投递 - ${re}`})});var O=o(_),G=o(O),E=o(G);ne(E,{});var g=c(E,2),j=c(o(g),7),q=o(j);r(j),P(9),r(g);var w=c(g,2),H=c(o(w),2);{var I=e=>{var t=ce();p(e,t)},K=e=>{var t=le(),v=C(t);R(v),P(2),A(v,()=>s(i),T=>a(i,T)),p(e,t)};N(H,e=>{s(l)?e(I):e(K,-1)})}r(w);var k=c(w,2),L=c(o(k),2);{var Q=e=>{var t=me();p(e,t)},V=e=>{var t=fe(),v=C(t);R(v),P(2),A(v,()=>s(n),T=>a(n,T)),p(e,t)};N(L,e=>{s(l)?e(Q):e(V,-1)})}r(k);var z=c(k,2),B=o(z),f=o(B),W=o(f,!0);r(f);var y=c(f,2),X=o(y,!0);r(y),r(B),r(z),r(G),r(O),r(_),ee(e=>{x(q,`POST ${(s(i)||"…")??""}/items`),f.disabled=s(b)||s(l),x(W,s(b)?"保存中…":"保存"),y.disabled=e,x(X,s(u)?"测试中…":"测试 Gateway")},[()=>s(u)||s(l)||!s(i).trim()]),J("click",f,D),J("click",y,F),p(M,_),te()}export{Se as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as v,f as p,t as ve}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as ce}from"../chunks/Bp63qm3L.js";import{at as pe,az as R,au as me,d as fe,av as i,aw as n,$ as de,i as o,ax as l,a5 as s,z as c,f as ue,ay as j}from"../chunks/BbWUOQ_m.js";import{e as z,s as $}from"../chunks/DMWEh-Ek.js";import{i as b}from"../chunks/Dt2CddFe.js";import{h as ge}from"../chunks/DEDI7Ecm.js";import{P as _e,r as U,s as E}from"../chunks/B2Q1a1-H.js";import{b as O}from"../chunks/Dw782Tjs.js";import{i as ye}from"../chunks/CVzlFH44.js";import{B as he}from"../chunks/
|
|
1
|
+
import{a as v,f as p,t as ve}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as ce}from"../chunks/Bp63qm3L.js";import{at as pe,az as R,au as me,d as fe,av as i,aw as n,$ as de,i as o,ax as l,a5 as s,z as c,f as ue,ay as j}from"../chunks/BbWUOQ_m.js";import{e as z,s as $}from"../chunks/DMWEh-Ek.js";import{i as b}from"../chunks/Dt2CddFe.js";import{h as ge}from"../chunks/DEDI7Ecm.js";import{P as _e,r as U,s as E}from"../chunks/B2Q1a1-H.js";import{b as O}from"../chunks/Dw782Tjs.js";import{i as ye}from"../chunks/CVzlFH44.js";import{B as he}from"../chunks/CmjOpds-.js";import{b as C}from"../chunks/CBY2biv-.js";import{s as w}from"../chunks/tB7QMF3U.js";var be=p('<p class="hint svelte-1a0dvmg">加载中…</p>'),we=p('<input type="url" class="text-input svelte-1a0dvmg" placeholder="https://api.openai.com/v1" autocomplete="off"/>'),xe=p('<input type="text" class="text-input svelte-1a0dvmg" placeholder="gpt-4o-mini" autocomplete="off"/>'),Ke=p('<p class="hint svelte-1a0dvmg">加载中…</p>'),Pe=p("当前<strong>可用</strong>(文件或环境变量)。",1),Ae=p("未检测到 Key,请填写或设置 <code>OPENAI_API_KEY</code>。",1),Ie=p('<input type="password" class="text-input svelte-1a0dvmg" autocomplete="new-password"/> <p class="hint svelte-1a0dvmg"><!> <!></p>',1),ke=p('<div class="feed-wrap svelte-1a0dvmg"><div class="feed-col svelte-1a0dvmg"><div class="body svelte-1a0dvmg"><!> <p class="intro svelte-1a0dvmg">与 OpenAI 兼容的 Chat Completions API,用于列表解析、正文提取、Pipeline 打标签与翻译等。</p> <section class="form-section svelte-1a0dvmg"><h3 class="section-title svelte-1a0dvmg">API Base URL</h3> <!></section> <section class="form-section svelte-1a0dvmg"><h3 class="section-title svelte-1a0dvmg">模型</h3> <!></section> <section class="form-section svelte-1a0dvmg"><h3 class="section-title svelte-1a0dvmg">API Key</h3> <!></section> <section class="form-section svelte-1a0dvmg"><div class="btn-row svelte-1a0dvmg"><button type="button" class="btn btn-primary svelte-1a0dvmg"> </button> <button type="button" class="btn btn-secondary svelte-1a0dvmg"> </button></div></section></div></div></div>');function je(D,Y){pe(Y,!1);let m=c(""),f=c(""),u=c(""),g=c(!1),_=c(!1),d=c(!0),x=c(!1),K=c(!1);async function q(){s(d,!0);try{const e=await C("/api/llm");s(m,(e==null?void 0:e.baseUrl)??""),s(f,(e==null?void 0:e.model)??""),s(g,!!(e!=null&&e.hasApiKey)),s(_,!!(e!=null&&e.apiKeyInFile)),s(u,"")}catch{s(m,""),s(f,""),s(g,!1),s(_,!1)}finally{s(d,!1)}}async function G(){s(x,!0);try{const e={baseUrl:o(m).trim(),model:o(f).trim()},a=o(u).trim();a&&(e.apiKey=a);const t=await C("/api/llm",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!(t!=null&&t.ok))throw new Error((t==null?void 0:t.message)??"保存失败");s(m,(t==null?void 0:t.baseUrl)??o(m)),s(f,(t==null?void 0:t.model)??o(f)),s(g,!!(t!=null&&t.hasApiKey)),s(_,!!(t!=null&&t.apiKeyInFile)),s(u,""),w("已保存","success")}catch(e){w("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{s(x,!1)}}async function H(){s(K,!0);try{const e=await C("/api/llm/test",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({})});if(e!=null&&e.ok){const a=typeof e.reply=="string"?e.reply.trim():"";w(a?`连接成功:${a.slice(0,120)}${a.length>120?"…":""}`:"连接成功","success")}else w("测试失败: "+((e==null?void 0:e.message)??"未知错误"),"error")}catch(e){w("测试失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{s(K,!1)}}ce(q),ye();var A=ke();ge("1a0dvmg",e=>{fe(()=>{de.title=`LLM - ${_e}`})});var S=i(A),F=i(S),N=i(F);he(N,{});var I=n(N,4),Q=n(i(I),2);{var V=e=>{var a=be();v(e,a)},W=e=>{var a=we();U(a),O(a,()=>o(m),t=>s(m,t)),v(e,a)};b(Q,e=>{o(d)?e(V):e(W,-1)})}l(I);var k=n(I,2),X=n(i(k),2);{var Z=e=>{var a=xe();U(a),E(a,"spellcheck",!1),O(a,()=>o(f),t=>s(f,t)),v(e,a)};b(X,e=>{o(d)||e(Z)})}l(k);var T=n(k,2),ee=n(i(T),2);{var te=e=>{var a=Ke();v(e,a)},se=e=>{var a=Ie(),t=ue(a);U(t),E(t,"spellcheck",!1);var L=n(t,2),M=i(L);{var re=r=>{var h=Pe();j(2),v(r,h)},ie=r=>{var h=Ae();j(2),v(r,h)};b(M,r=>{o(g)?r(re):r(ie,-1)})}var le=n(M,2);{var ne=r=>{var h=ve("已写入配置文件。");v(r,h)};b(le,r=>{o(_)&&r(ne)})}l(L),R(()=>E(t,"placeholder",o(_)?"已保存在配置中,留空表示不修改":"sk-...")),O(t,()=>o(u),r=>s(u,r)),v(e,a)};b(ee,e=>{o(d)?e(te):e(se,-1)})}l(T);var B=n(T,2),J=i(B),y=i(J),ae=i(y,!0);l(y);var P=n(y,2),oe=i(P,!0);l(P),l(J),l(B),l(F),l(S),l(A),R(()=>{y.disabled=o(x)||o(d),$(ae,o(x)?"保存中…":"保存"),P.disabled=o(K)||o(d)||!o(g),$(oe,o(K)?"测试中…":"测试连接")}),z("click",y,G),z("click",P,H),v(D,A),me()}export{je as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,f as m}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as i}from"../chunks/Bp63qm3L.js";import{at as f,au as n}from"../chunks/BbWUOQ_m.js";import{s as l,a as u}from"../chunks/DjNLq3TF.js";import{i as c}from"../chunks/CVzlFH44.js";import{g}from"../chunks/
|
|
1
|
+
import{a as e,f as m}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as i}from"../chunks/Bp63qm3L.js";import{at as f,au as n}from"../chunks/BbWUOQ_m.js";import{s as l,a as u}from"../chunks/DjNLq3TF.js";import{i as c}from"../chunks/CVzlFH44.js";import{g}from"../chunks/5LVkDJzw.js";import{p as $}from"../chunks/Bu9HsS-V.js";var v=m('<p class="muted svelte-1w6l7vk">正在跳转…</p>');function b(o,t){f(t,!1);const a=()=>u($,"$page",r),[r,s]=l();i(()=>{g("/logs"+a().url.search,{replaceState:!0})}),c();var p=v();e(o,p),n(),s()}export{b as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as w,f as O}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{at as M,az as T,i as s,au as W,d as X,av as t,a5 as o,z as d,$ as Y,ay as I,ax as r,aw as v}from"../chunks/BbWUOQ_m.js";import{e as F,s as S}from"../chunks/DMWEh-Ek.js";import{i as J}from"../chunks/Dt2CddFe.js";import{h as G}from"../chunks/DEDI7Ecm.js";import{P as K,r as q}from"../chunks/B2Q1a1-H.js";import{b as C}from"../chunks/Dw782Tjs.js";import{p as Q}from"../chunks/Bfc47y5P.js";import{i as V}from"../chunks/CVzlFH44.js";import{B as Z}from"../chunks/
|
|
1
|
+
import{a as w,f as O}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{at as M,az as T,i as s,au as W,d as X,av as t,a5 as o,z as d,$ as Y,ay as I,ax as r,aw as v}from"../chunks/BbWUOQ_m.js";import{e as F,s as S}from"../chunks/DMWEh-Ek.js";import{i as J}from"../chunks/Dt2CddFe.js";import{h as G}from"../chunks/DEDI7Ecm.js";import{P as K,r as q}from"../chunks/B2Q1a1-H.js";import{b as C}from"../chunks/Dw782Tjs.js";import{p as Q}from"../chunks/Bfc47y5P.js";import{i as V}from"../chunks/CVzlFH44.js";import{B as Z}from"../chunks/CmjOpds-.js";var ee=O('<div class="result-error svelte-1x680s0" role="alert"> </div>'),se=O('<div class="result-wrap svelte-1x680s0"><p class="result-label svelte-1x680s0">解析结果(与下方接口一致)</p> <pre class="result-json svelte-1x680s0"> </pre></div>'),te=O('<div class="feed-wrap svelte-1x680s0"><div class="feed-col svelte-1x680s0"><div class="feed-header svelte-1x680s0"><!> <h2 class="svelte-1x680s0">Parse</h2> <p class="page-desc svelte-1x680s0">从列表页解析条目结构,返回 JSON,用于调试插件 Parser 规则</p></div> <div class="body svelte-1x680s0"><form><div class="url-row svelte-1x680s0"><input type="url" placeholder="输入列表页地址…" required="" autocomplete="url" class="svelte-1x680s0"/> <button type="submit" class="svelte-1x680s0"> </button></div> <div class="proxy-row svelte-1x680s0"><input type="text" placeholder="代理(可选),如 http://127.0.0.1:7890 — 覆盖信源与 HTTP_PROXY" autocomplete="off" spellcheck="false" class="svelte-1x680s0"/></div></form> <!> <!> <div class="info-box svelte-1x680s0"><p class="svelte-1x680s0">抓取在<strong>服务端</strong>执行,默认<strong>有头</strong> Chrome(与信源同一套 Puppeteer),会弹出可见窗口;本页 <code class="svelte-1x680s0">fetch</code> 仅用于展示 JSON。需要无头时在 URL 加 <code class="svelte-1x680s0">?headless=true</code>。</p> <p class="info-note svelte-1x680s0">返回中的 <code class="svelte-1x680s0">effectiveProxy</code> 为本次抓取实际选用的代理。若需在看得到的窗口里验证出口 IP,请在该 Puppeteer 窗口内打开 <code class="svelte-1x680s0">api.ipify.org</code> 等(勿用本机普通浏览器标签测代理)。</p></div></div></div></div>');function ue(z,B){M(B,!1);let i=d(""),m=d(""),n=d(!1),c=d(""),p=d("");async function D(){if(s(i).trim()){o(n,!0),o(c,""),o(p,"");try{const e=s(i).startsWith("http")?s(i):"https://"+s(i),a=new URLSearchParams,l=s(m).trim();l&&a.set("proxy",l);const u=a.toString(),b=await fetch("/admin/parse/"+encodeURIComponent(e)+(u?"?"+u:""),{credentials:"include"}),P=await b.text();if(!b.ok){o(c,P||`HTTP ${b.status}`);return}try{o(p,JSON.stringify(JSON.parse(P),null,2))}catch{o(p,P)}}catch(e){o(c,e instanceof Error?e.message:String(e))}finally{o(n,!1)}}}V();var x=te();G("1x680s0",e=>{X(()=>{Y.title=`Parse - ${K}`})});var R=t(x),_=t(R),E=t(_);Z(E,{}),I(4),r(_);var $=v(_,2),f=t($),h=t(f),g=t(h);q(g);var y=v(g,2),H=t(y,!0);r(y),r(h);var N=v(h,2),U=t(N);q(U),r(N),r(f);var k=v(f,2);{var L=e=>{var a=ee(),l=t(a,!0);r(a),T(()=>S(l,s(c))),w(e,a)};J(k,e=>{s(c)&&e(L)})}var j=v(k,2);{var A=e=>{var a=se(),l=v(t(a),2),u=t(l,!0);r(l),r(a),T(()=>S(u,s(p))),w(e,a)};J(j,e=>{s(p)&&e(A)})}I(2),r($),r(R),r(x),T(()=>{y.disabled=s(n),S(H,s(n)?"解析中…":"解析")}),C(g,()=>s(i),e=>o(i,e)),C(U,()=>s(m),e=>o(m,e)),F("submit",f,Q(D)),w(z,x),W()}export{ue as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as u,f as g}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as se}from"../chunks/Bp63qm3L.js";import{at as te,au as re,d as le,av as o,$ as ie,ay as B,ax as i,aw as c,i as a,a5 as r,z as b,az as T,aA as oe}from"../chunks/BbWUOQ_m.js";import{s as I,e as f}from"../chunks/DMWEh-Ek.js";import{i as O}from"../chunks/Dt2CddFe.js";import{e as ne,i as de}from"../chunks/BQqoDzLx.js";import{h as ve}from"../chunks/DEDI7Ecm.js";import{P as ce,r as fe,a as pe,b as me}from"../chunks/B2Q1a1-H.js";import{i as ue}from"../chunks/CVzlFH44.js";import{B as be}from"../chunks/
|
|
1
|
+
import{a as u,f as g}from"../chunks/BK3WtZwv.js";import"../chunks/lk5LaiqA.js";import{o as se}from"../chunks/Bp63qm3L.js";import{at as te,au as re,d as le,av as o,$ as ie,ay as B,ax as i,aw as c,i as a,a5 as r,z as b,az as T,aA as oe}from"../chunks/BbWUOQ_m.js";import{s as I,e as f}from"../chunks/DMWEh-Ek.js";import{i as O}from"../chunks/Dt2CddFe.js";import{e as ne,i as de}from"../chunks/BQqoDzLx.js";import{h as ve}from"../chunks/DEDI7Ecm.js";import{P as ce,r as fe,a as pe,b as me}from"../chunks/B2Q1a1-H.js";import{i as ue}from"../chunks/CVzlFH44.js";import{B as be}from"../chunks/CmjOpds-.js";import{b as $}from"../chunks/CBY2biv-.js";import{s as z}from"../chunks/tB7QMF3U.js";var ge=g('<div class="state svelte-jqd85f">加载中…</div>'),_e=g('<div role="listitem" draggable="true"><span class="drag-handle svelte-jqd85f" title="拖拽排序">⋮⋮</span> <label class="toggle-wrap svelte-jqd85f"><input type="checkbox" class="svelte-jqd85f"/> <span class="toggle-slider svelte-jqd85f"></span></label> <span class="step-label svelte-jqd85f"> </span></div>'),he=g('<button type="button" class="btn-add svelte-jqd85f">+ 添加步骤</button>'),je=g('<div class="body svelte-jqd85f"><section class="pipeline-section svelte-jqd85f"><h3 class="section-title svelte-jqd85f">Pipeline(入库前)</h3> <p class="hint svelte-jqd85f">对每条新入库条目执行,顺序由上到下。</p> <div class="step-list svelte-jqd85f" role="list"></div> <!></section> <div class="save-row svelte-jqd85f"><button type="button" class="btn btn-primary svelte-jqd85f"> </button></div></div>'),qe=g('<div class="feed-wrap svelte-jqd85f"><div class="feed-col svelte-jqd85f"><div class="feed-header svelte-jqd85f"><!> <h2 class="svelte-jqd85f">Pipeline</h2> <p class="page-desc svelte-jqd85f">入库前处理(打标签、翻译),可调整顺序与开关。</p></div> <!></div></div>');function $e(C,F){te(F,!1);const J={qualityFilter:"质量过滤",tagger:"打标签",translator:"翻译"};let t=b([]),_=b([]),q=b(!0),p=b(!1),m=b(null);async function L(){r(q,!0);try{const e=await $("/api/pipeline");r(t,(e==null?void 0:e.steps)??[]),r(_,(e==null?void 0:e.availableIds)??[])}catch{r(t,[]),r(_,[])}finally{r(q,!1)}}async function M(){r(p,!0);try{const e=await $("/api/pipeline",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({steps:a(t)})});if(!(e!=null&&e.ok))throw new Error((e==null?void 0:e.message)??"保存失败");r(t,(e==null?void 0:e.steps)??a(t)),z("已保存","success")}catch(e){z("保存失败: "+(e instanceof Error?e.message:String(e)),"error")}finally{r(p,!1)}}function N(e){r(t,a(t).map((s,l)=>l===e?{...s,enabled:!s.enabled}:s))}function R(e){r(m,e)}function U(e){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="move")}function G(e){if(a(m)==null)return;const s=[...a(t)],[l]=s.splice(a(m),1);s.splice(e,0,l),r(t,s),r(m,null)}function H(){const e=new Set(a(t).map(l=>l.id)),s=a(_).find(l=>!e.has(l));s&&r(t,[...a(t),{id:s,enabled:!1}])}se(L),ue();var y=qe();ve("jqd85f",e=>{le(()=>{ie.title=`Pipeline - ${ce}`})});var k=o(y),w=o(k),K=o(w);be(K,{}),B(4),i(w);var Q=c(w,2);{var V=e=>{var s=ge();u(e,s)},W=e=>{var s=je(),l=o(s),x=c(o(l),4);ne(x,5,()=>a(t),de,(d,n,j)=>{var v=_e();let D;var P=c(o(v),2),S=o(P);fe(S),B(2),i(P);var A=c(P,2),ae=o(A,!0);i(A),i(v),T(()=>{D=pe(v,1,"step-row svelte-jqd85f",null,D,{dragging:a(m)===j}),me(S,a(n).enabled),I(ae,J[a(n).id]??a(n).id)}),f("change",S,()=>N(j)),f("dragstart",v,()=>R(j)),f("dragover",v,U),f("drop",v,()=>G(j)),u(d,v)}),i(x);var X=c(x,2);{var Y=d=>{var n=he();T(()=>n.disabled=a(p)),f("click",n,H),u(d,n)},Z=oe(()=>a(_).some(d=>!a(t).some(n=>n.id===d)));O(X,d=>{a(Z)&&d(Y)})}i(l);var E=c(l,2),h=o(E),ee=o(h,!0);i(h),i(E),i(s),T(()=>{h.disabled=a(p),I(ee,a(p)?"保存中…":"保存")}),f("click",h,M),u(e,s)};O(Q,e=>{a(q)?e(V):e(W,-1)})}i(k),i(y),u(C,y),re()}export{$e as component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1776565808782"}
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
let _deps;
|
|
2
|
-
|
|
3
|
-
// Google Search 插件:将搜索结果页转换为 FeedItem 列表(不含 enrich)
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function normalizeText(text) {
|
|
7
|
-
return (text ?? "").replace(/\s+/g, " ").trim();
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function isGoogleHost(hostname) {
|
|
11
|
-
return /^([a-z0-9-]+\.)*google\.[a-z.]+$/i.test(hostname);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function resolveResultLink(rawHref, pageUrl) {
|
|
15
|
-
if (!rawHref) return null;
|
|
16
|
-
const href = rawHref.trim();
|
|
17
|
-
if (!href || href.startsWith("#") || href.startsWith("javascript:")) return null;
|
|
18
|
-
|
|
19
|
-
let url;
|
|
20
|
-
try {
|
|
21
|
-
url = new URL(href, pageUrl);
|
|
22
|
-
} catch {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
if (isGoogleHost(url.hostname) && url.pathname === "/url") {
|
|
27
|
-
const q = url.searchParams.get("q") ?? url.searchParams.get("url");
|
|
28
|
-
if (!q) return null;
|
|
29
|
-
try {
|
|
30
|
-
const target = new URL(q);
|
|
31
|
-
return /^https?:$/i.test(target.protocol) ? target.href : null;
|
|
32
|
-
} catch {
|
|
33
|
-
return null;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
if (!/^https?:$/i.test(url.protocol)) return null;
|
|
38
|
-
if (isGoogleHost(url.hostname)) return null;
|
|
39
|
-
return url.href;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
function closestAnchor(node) {
|
|
43
|
-
let cur = node;
|
|
44
|
-
while (cur) {
|
|
45
|
-
if (cur.tagName?.toLowerCase() === "a") return cur;
|
|
46
|
-
cur = cur.parentNode ?? null;
|
|
47
|
-
}
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
function extractSnippet(startNode) {
|
|
52
|
-
const snippetSelectors = [".VwiC3b", ".IsZvec", ".MUxGbd", ".lyLwlc"];
|
|
53
|
-
let cur = startNode;
|
|
54
|
-
for (let i = 0; i < 6 && cur; i += 1) {
|
|
55
|
-
for (const sel of snippetSelectors) {
|
|
56
|
-
const el = cur.querySelector?.(sel);
|
|
57
|
-
const text = normalizeText(el?.textContent);
|
|
58
|
-
if (text) return text;
|
|
59
|
-
}
|
|
60
|
-
cur = cur.parentNode ?? null;
|
|
61
|
-
}
|
|
62
|
-
return "";
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function looksLikeBlockedPage(root, html, finalUrl) {
|
|
66
|
-
const text = normalizeText(root.textContent).toLowerCase();
|
|
67
|
-
const body = (html ?? "").toLowerCase();
|
|
68
|
-
if (finalUrl.includes("/sorry/")) return true;
|
|
69
|
-
if (root.querySelector("#captcha-form, #recaptcha, .g-recaptcha")) return true;
|
|
70
|
-
if (body.includes("/httpservice/retry/enablejs")) return true;
|
|
71
|
-
if (body.includes("id=\"yvlrue\"") || body.includes("if you're having trouble accessing google search")) return true;
|
|
72
|
-
if (body.includes("sg_rel")) return true;
|
|
73
|
-
return text.includes("about this page") || text.includes("unusual traffic") || text.includes("captcha");
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
async function checkAuth(page, _url) {
|
|
77
|
-
try {
|
|
78
|
-
const currentUrl = page.url() || "";
|
|
79
|
-
if (currentUrl.includes("/sorry/") || currentUrl.includes("/httpservice/retry/enablejs")) return false;
|
|
80
|
-
|
|
81
|
-
const blockedDom = await page.$("#captcha-form, #recaptcha, .g-recaptcha, #yvlrue");
|
|
82
|
-
if (blockedDom) return false;
|
|
83
|
-
|
|
84
|
-
const bodyText = await page.evaluate(() => (document.body?.innerText ?? "").toLowerCase());
|
|
85
|
-
if (
|
|
86
|
-
bodyText.includes("unusual traffic") ||
|
|
87
|
-
bodyText.includes("about this page") ||
|
|
88
|
-
bodyText.includes("captcha") ||
|
|
89
|
-
bodyText.includes("if you're having trouble accessing google search")
|
|
90
|
-
) {
|
|
91
|
-
return false;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// 首页或搜索页出现 q 输入框即可认为当前会话可用;若被风控会在上面的分支提前返回 false。
|
|
95
|
-
const searchBox = await page.$('textarea[name="q"], input[name="q"]');
|
|
96
|
-
return !!searchBox;
|
|
97
|
-
} catch {
|
|
98
|
-
return false;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function parseFromResultBlocks(root, pageUrl) {
|
|
103
|
-
const resultBlocks = root.querySelectorAll("#rso .MjjYud .A6K0A, #rso .MjjYud .tF2Cxc");
|
|
104
|
-
const seen = new Set();
|
|
105
|
-
const items = [];
|
|
106
|
-
|
|
107
|
-
for (const block of resultBlocks) {
|
|
108
|
-
const anchor =
|
|
109
|
-
block.querySelector('a[jsname="UWckNb"][href]') ??
|
|
110
|
-
block.querySelector(".yuRUbf a[href]") ??
|
|
111
|
-
block.querySelector("a[href]");
|
|
112
|
-
const link = resolveResultLink(anchor?.getAttribute("href"), pageUrl);
|
|
113
|
-
if (!link || seen.has(link)) continue;
|
|
114
|
-
|
|
115
|
-
const titleNode =
|
|
116
|
-
block.querySelector("h3.LC20lb, h3.DKV0Md, h3.MBeuO, h3") ??
|
|
117
|
-
anchor?.querySelector?.("h3");
|
|
118
|
-
const title = normalizeText(titleNode?.textContent);
|
|
119
|
-
if (!title) continue;
|
|
120
|
-
|
|
121
|
-
seen.add(link);
|
|
122
|
-
const summary = extractSnippet(block) || extractSnippet(titleNode ?? block) || title;
|
|
123
|
-
items.push({
|
|
124
|
-
guid: _deps.createHash("sha256").update(link).digest("hex"),
|
|
125
|
-
title,
|
|
126
|
-
link,
|
|
127
|
-
pubDate: new Date(),
|
|
128
|
-
author: "Google Search",
|
|
129
|
-
summary,
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return items;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
function parseFromHeadingFallback(root, pageUrl) {
|
|
137
|
-
const seen = new Set();
|
|
138
|
-
const items = [];
|
|
139
|
-
const titles = root.querySelectorAll("h3");
|
|
140
|
-
for (const h3 of titles) {
|
|
141
|
-
const title = normalizeText(h3.textContent);
|
|
142
|
-
if (!title) continue;
|
|
143
|
-
const anchor = closestAnchor(h3);
|
|
144
|
-
const link = resolveResultLink(anchor?.getAttribute("href"), pageUrl);
|
|
145
|
-
if (!link || seen.has(link)) continue;
|
|
146
|
-
seen.add(link);
|
|
147
|
-
const summary = extractSnippet(h3) || title;
|
|
148
|
-
items.push({
|
|
149
|
-
guid: _deps.createHash("sha256").update(link).digest("hex"),
|
|
150
|
-
title,
|
|
151
|
-
link,
|
|
152
|
-
pubDate: new Date(),
|
|
153
|
-
author: "Google Search",
|
|
154
|
-
summary,
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
return items;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
async function fetchItems(sourceId, ctx) {
|
|
161
|
-
_deps = ctx.deps;
|
|
162
|
-
const { html, finalUrl } = await ctx.fetchHtml(sourceId, { waitMs: 2500 });
|
|
163
|
-
const root = _deps.parseHtml(html);
|
|
164
|
-
const pageUrl = new URL(finalUrl);
|
|
165
|
-
|
|
166
|
-
const fromBlocks = parseFromResultBlocks(root, pageUrl);
|
|
167
|
-
const items = fromBlocks.length > 0 ? fromBlocks : parseFromHeadingFallback(root, pageUrl);
|
|
168
|
-
|
|
169
|
-
if (items.length === 0) {
|
|
170
|
-
if (looksLikeBlockedPage(root, html, finalUrl)) {
|
|
171
|
-
throw new Error("[google] 命中 Google 验证页(reCAPTCHA/风控),当前会话无法稳定抓取搜索结果");
|
|
172
|
-
}
|
|
173
|
-
throw new Error("[google] 未解析到搜索结果,页面结构可能已变化");
|
|
174
|
-
}
|
|
175
|
-
return items;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
export default {
|
|
179
|
-
id: "google-search",
|
|
180
|
-
listUrlPattern: /^https?:\/\/(www\.)?google\.[^/]+\/search(\?.*)?$/i,
|
|
181
|
-
fetchItems,
|
|
182
|
-
checkAuth,
|
|
183
|
-
loginUrl: "https://www.google.com/",
|
|
184
|
-
domain: "google.com",
|
|
185
|
-
loginTimeoutMs: 5 * 60 * 1000,
|
|
186
|
-
pollIntervalMs: 2000,
|
|
187
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.feed-wrap.svelte-1s5glru{margin-top:calc(-1 * var(--main-padding-top));width:100%;max-width:100%;display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.feed-col.svelte-1s5glru{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;background:transparent}.feed-toolbar-block.svelte-1s5glru{flex-shrink:0;padding-top:var(--main-padding-top);padding-bottom:var(--feed-sticky-gap-after)}.feed-body-scroll.svelte-1s5glru{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.body.svelte-1s5glru{flex:1;overflow:visible;padding:1rem 0}.section-title.svelte-1s5glru{font-size:.8125rem;font-weight:600;color:var(--color-muted-foreground);margin:0 0 .5rem}.tags-section.svelte-1s5glru,.suggested-section.svelte-1s5glru{margin-bottom:1.25rem}.empty-hint.svelte-1s5glru{font-size:.8125rem;color:var(--color-muted-foreground-soft);margin:0}.tag-list.svelte-1s5glru{display:flex;flex-wrap:wrap;gap:.5rem}.tag-badge.svelte-1s5glru{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .5rem;background:var(--color-muted);border-radius:var(--radius-sm);font-size:.8125rem}.tag-name.svelte-1s5glru{color:var(--color-foreground);text-decoration:none}.tag-name.svelte-1s5glru:hover{color:var(--color-primary)}.tag-meta.svelte-1s5glru{font-size:.7rem;color:var(--color-muted-foreground-soft)}.tag-remove.svelte-1s5glru,.tag-add.svelte-1s5glru{padding:0 .2rem;font-size:1rem;line-height:1;color:var(--color-muted-foreground-soft);background:none;border:none;cursor:pointer;border-radius:2px}.tag-remove.svelte-1s5glru:hover:not(:disabled),.tag-add.svelte-1s5glru:hover:not(:disabled){color:var(--color-destructive);background:color-mix(in srgb,var(--color-destructive) 16%,transparent)}.tag-add.svelte-1s5glru:hover:not(:disabled){color:var(--color-success);background:color-mix(in srgb,var(--color-success) 18%,transparent)}.tag-badge.suggested.svelte-1s5glru{background:color-mix(in srgb,var(--color-primary) 14%,transparent)}.context-menu.svelte-1s5glru{position:fixed;z-index:100;min-width:180px;padding:.25rem 0;background:var(--color-card-elevated);border:1px solid var(--color-border);border-radius:var(--radius-sm);box-shadow:var(--shadow-panel)}.context-menu-item.svelte-1s5glru{display:block;width:100%;padding:.4rem .75rem;font-size:.8125rem;text-align:left;color:var(--color-foreground);background:none;border:none;cursor:pointer}.context-menu-item.svelte-1s5glru:hover:not(:disabled){background:var(--color-muted)}.context-menu-item.svelte-1s5glru:disabled{opacity:.5;cursor:not-allowed}.state.svelte-1s5glru{text-align:center;padding:4rem;color:var(--color-muted-foreground-soft);font-size:.875rem}@media(max-width:600px){.feed-wrap.svelte-1s5glru{max-width:100%}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.feed-wrap.svelte-bhaf7m{width:100%;max-width:100%;margin:0;display:flex;flex-direction:column;overflow:visible;min-height:auto}.feed-col.svelte-bhaf7m{display:flex;flex-direction:column;overflow:visible;min-height:auto;background:transparent}.body.svelte-bhaf7m{flex:1;overflow:visible;padding:1rem 0}.intro.svelte-bhaf7m{color:var(--color-muted-foreground-strong);margin:0 0 1.25rem;line-height:1.5;font-size:.875rem}.intro.svelte-bhaf7m code:where(.svelte-bhaf7m){font-size:.8125rem}.section-title.svelte-bhaf7m{font-size:.8125rem;font-weight:600;color:var(--color-muted-foreground);margin:0 0 .5rem}.form-section.svelte-bhaf7m{margin-bottom:1.25rem}.url-input.svelte-bhaf7m{width:100%;padding:.5rem .75rem;font-size:.875rem;border:1px solid var(--color-input);border-radius:var(--radius-sm);background:var(--color-card-elevated);color:var(--color-foreground)}.url-input.svelte-bhaf7m::placeholder{color:var(--color-muted-foreground-soft)}.hint.svelte-bhaf7m{font-size:.75rem;color:var(--color-muted-foreground-soft);margin:.5rem 0 0}.btn-row.svelte-bhaf7m{display:flex;gap:.75rem}.btn.svelte-bhaf7m{padding:.5rem 1rem;font-size:.875rem;border-radius:6px;cursor:pointer;border:none}.btn-primary.svelte-bhaf7m{background:var(--color-primary);color:var(--color-primary-foreground)}.btn-primary.svelte-bhaf7m:hover:not(:disabled){background:var(--color-primary-hover)}.btn-secondary.svelte-bhaf7m{background:var(--color-muted);color:var(--color-foreground);border:1px solid var(--color-border)}.btn-secondary.svelte-bhaf7m:hover:not(:disabled){background:var(--color-accent)}.btn.svelte-bhaf7m:disabled{opacity:.6;cursor:not-allowed}@media(max-width:600px){.feed-wrap.svelte-bhaf7m{max-width:100%}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.feed-wrap.svelte-1a0dvmg{width:100%;max-width:100%;margin:0;display:flex;flex-direction:column;overflow:visible;min-height:auto}.feed-col.svelte-1a0dvmg{display:flex;flex-direction:column;overflow:visible;min-height:auto;background:transparent}.body.svelte-1a0dvmg{flex:1;overflow:visible;padding:1rem 0}.intro.svelte-1a0dvmg{color:var(--color-muted-foreground-strong);margin:0 0 1.25rem;line-height:1.5;font-size:.875rem}.section-title.svelte-1a0dvmg{font-size:.8125rem;font-weight:600;color:var(--color-muted-foreground);margin:0 0 .5rem}.form-section.svelte-1a0dvmg{margin-bottom:1.25rem}.text-input.svelte-1a0dvmg{width:100%;box-sizing:border-box;padding:.5rem .75rem;font-size:.875rem;border:1px solid var(--color-input);border-radius:var(--radius-sm);background:var(--color-card-elevated);color:var(--color-foreground)}.text-input.svelte-1a0dvmg::placeholder{color:var(--color-muted-foreground-soft)}.hint.svelte-1a0dvmg{font-size:.75rem;color:var(--color-muted-foreground-soft);margin:.5rem 0 0;line-height:1.45}.btn-row.svelte-1a0dvmg{display:flex;gap:.75rem}.btn.svelte-1a0dvmg{padding:.5rem 1rem;font-size:.875rem;border-radius:6px;cursor:pointer;border:none}.btn-primary.svelte-1a0dvmg{background:var(--color-primary);color:var(--color-primary-foreground)}.btn-primary.svelte-1a0dvmg:hover:not(:disabled){background:var(--color-primary-hover)}.btn-secondary.svelte-1a0dvmg{background:var(--color-muted);color:var(--color-foreground);border:1px solid var(--color-border)}.btn-secondary.svelte-1a0dvmg:hover:not(:disabled){background:var(--color-accent)}.btn.svelte-1a0dvmg:disabled{opacity:.6;cursor:not-allowed}@media(max-width:600px){.feed-wrap.svelte-1a0dvmg{max-width:100%}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.feed-wrap.svelte-1x680s0{width:100%;max-width:100%;margin:0;display:flex;flex-direction:column;overflow:visible;min-height:auto}.feed-col.svelte-1x680s0{display:flex;flex-direction:column;overflow:visible;min-height:auto;background:transparent}.feed-header.svelte-1x680s0{padding:.875rem 0;flex-shrink:0;border-bottom:1px solid var(--color-border-muted)}.feed-header.svelte-1x680s0 h2:where(.svelte-1x680s0){font-size:.9375rem;font-weight:600;margin:0 0 .25rem;color:var(--color-foreground)}.page-desc.svelte-1x680s0{font-size:.75rem;color:var(--color-muted-foreground-soft);margin:0;line-height:1.5}.body.svelte-1x680s0{flex:1;overflow:visible;padding:1rem 0}.url-row.svelte-1x680s0{display:flex;gap:.5rem;margin-bottom:.75rem}.url-row.svelte-1x680s0 input:where(.svelte-1x680s0){flex:1;padding:.65rem 1rem;border:1px solid var(--color-input);border-radius:var(--radius-md);font-size:.9375rem;outline:none;transition:border .15s,box-shadow .15s;min-width:0;background:var(--color-card-elevated);color:var(--color-foreground);font-family:inherit}.url-row.svelte-1x680s0 input:where(.svelte-1x680s0):focus{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-primary-light)}.url-row.svelte-1x680s0 button:where(.svelte-1x680s0){padding:.65rem 1.375rem;background:var(--color-primary);color:var(--color-primary-foreground);border:none;border-radius:8px;cursor:pointer;font-size:.9rem;font-family:inherit;white-space:nowrap;transition:background .15s}.url-row.svelte-1x680s0 button:where(.svelte-1x680s0):hover:not(:disabled){background:var(--color-primary-hover)}.url-row.svelte-1x680s0 button:where(.svelte-1x680s0):disabled{opacity:.65;cursor:not-allowed}.result-error.svelte-1x680s0{margin-top:1rem;width:100%;padding:.75rem 1rem;border-radius:var(--radius-md);background:color-mix(in srgb,var(--color-destructive, #c00) 12%,transparent);color:var(--color-foreground);font-size:.8125rem;white-space:pre-wrap;word-break:break-word}.result-wrap.svelte-1x680s0{margin-top:1rem;width:100%}.result-label.svelte-1x680s0{font-size:.75rem;font-weight:600;color:var(--color-muted-foreground);margin:0 0 .4rem}.result-json.svelte-1x680s0{margin:0;padding:1rem;max-height:min(70vh,520px);overflow:auto;font-size:.75rem;line-height:1.45;border-radius:var(--radius-md);border:1px solid var(--color-input);background:var(--color-muted);color:var(--color-foreground)}.proxy-row.svelte-1x680s0{margin-bottom:.75rem}.proxy-row.svelte-1x680s0 input:where(.svelte-1x680s0){width:100%;box-sizing:border-box;padding:.55rem 1rem;border:1px solid var(--color-input);border-radius:var(--radius-md);font-size:.8125rem;outline:none;transition:border .15s,box-shadow .15s;background:var(--color-card-elevated);color:var(--color-foreground);font-family:ui-monospace,monospace}.proxy-row.svelte-1x680s0 input:where(.svelte-1x680s0):focus{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-primary-light)}.info-box.svelte-1x680s0{margin-top:2rem;width:100%;background:var(--color-primary-light);border:1px solid color-mix(in srgb,var(--color-primary) 38%,transparent);border-radius:var(--radius-md);padding:.875rem 1.125rem;font-size:.8rem;color:var(--color-muted-foreground-strong);line-height:1.7}.info-box.svelte-1x680s0 p:where(.svelte-1x680s0){margin:0 0 .65rem}.info-box.svelte-1x680s0 p:where(.svelte-1x680s0):last-child{margin-bottom:0}.info-note.svelte-1x680s0{color:var(--color-muted-foreground);font-size:.78rem}.info-box.svelte-1x680s0 code:where(.svelte-1x680s0){background:var(--color-muted);padding:.1rem .35rem;border-radius:3px;font-family:monospace}@media(max-width:600px){.feed-wrap.svelte-1x680s0{max-width:100%}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.feed-wrap.svelte-jqd85f{width:100%;max-width:100%;margin:0;display:flex;flex-direction:column;overflow:visible;min-height:auto}.feed-col.svelte-jqd85f{display:flex;flex-direction:column;overflow:visible;min-height:auto;background:transparent}.feed-header.svelte-jqd85f{padding:.875rem 0;flex-shrink:0;border-bottom:1px solid var(--color-border-muted)}.feed-header.svelte-jqd85f h2:where(.svelte-jqd85f){font-size:.9375rem;font-weight:600;margin:0 0 .25rem;color:var(--color-foreground)}.page-desc.svelte-jqd85f{font-size:.75rem;color:var(--color-muted-foreground-soft);margin:0}.state.svelte-jqd85f{padding:2rem;text-align:center;color:var(--color-muted-foreground);font-size:.875rem}.body.svelte-jqd85f{flex:1;overflow:visible;padding:1rem 0}.section-title.svelte-jqd85f{font-size:.8125rem;font-weight:600;color:var(--color-muted-foreground);margin:0 0 .25rem}.hint.svelte-jqd85f{font-size:.75rem;color:var(--color-muted-foreground-soft);margin:0 0 .5rem}.pipeline-section.svelte-jqd85f{margin-bottom:1.5rem}.step-list.svelte-jqd85f{display:flex;flex-direction:column;gap:0;border:1px solid var(--color-border);border-radius:var(--radius-sm);overflow:hidden}.step-row.svelte-jqd85f{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:var(--color-card);border-bottom:1px solid var(--color-border);cursor:grab}.step-row.svelte-jqd85f:last-child{border-bottom:none}.step-row.dragging.svelte-jqd85f{opacity:.5;cursor:grabbing}.drag-handle.svelte-jqd85f{color:var(--color-muted-foreground-soft);font-size:.875rem;cursor:grab;-webkit-user-select:none;user-select:none}.toggle-wrap.svelte-jqd85f{display:flex;align-items:center;cursor:pointer}.toggle-wrap.svelte-jqd85f input:where(.svelte-jqd85f){position:absolute;opacity:0;width:0;height:0}.toggle-slider.svelte-jqd85f{width:36px;height:20px;background:var(--color-input);border-radius:10px;transition:background .2s}.toggle-slider.svelte-jqd85f:after{content:"";display:block;width:16px;height:16px;background:var(--color-card-elevated);border-radius:50%;margin:2px 0 0 2px;transition:transform .2s;box-shadow:0 1px 2px #00000059}.toggle-wrap.svelte-jqd85f input:where(.svelte-jqd85f):checked+.toggle-slider:where(.svelte-jqd85f){background:var(--color-success)}.toggle-wrap.svelte-jqd85f input:where(.svelte-jqd85f):checked+.toggle-slider:where(.svelte-jqd85f):after{transform:translate(16px)}.step-label.svelte-jqd85f{flex:1;font-size:.875rem;min-width:0;color:var(--color-foreground)}.btn-add.svelte-jqd85f{margin-top:.5rem;padding:.35rem .75rem;font-size:.8125rem;color:var(--color-muted-foreground);background:var(--color-muted);border:1px solid var(--color-border);border-radius:4px;cursor:pointer}.btn-add.svelte-jqd85f:hover:not(:disabled){background:var(--color-accent)}.save-row.svelte-jqd85f{margin-top:1rem}.btn.svelte-jqd85f{padding:.5rem 1rem;font-size:.875rem;border-radius:var(--radius-sm);cursor:pointer;border:none}.btn-primary.svelte-jqd85f{background:var(--color-primary);color:var(--color-primary-foreground)}.btn-primary.svelte-jqd85f:hover:not(:disabled){background:var(--color-primary-hover)}.btn.svelte-jqd85f:disabled{opacity:.6;cursor:not-allowed}@media(max-width:600px){.feed-wrap.svelte-jqd85f{max-width:100%}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@keyframes svelte-ypseth-source-sheet-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes svelte-ypseth-source-sheet-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes svelte-ypseth-source-sheet-panel-in{0%{opacity:.92;transform:translate3d(100%,0,0)}to{opacity:1;transform:translateZ(0)}}@keyframes svelte-ypseth-source-sheet-panel-out{0%{opacity:1;transform:translateZ(0)}to{opacity:.92;transform:translate3d(100%,0,0)}}.source-sheet-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:110}.source-sheet-overlay[data-state=open]{animation:svelte-ypseth-source-sheet-overlay-in .28s cubic-bezier(.32,.72,0,1) both}.source-sheet-overlay[data-state=closed]{animation:svelte-ypseth-source-sheet-overlay-out .22s cubic-bezier(.36,0,.2,1) both}.source-sheet-panel{position:fixed;top:0;right:0;bottom:0;width:min(28rem,100vw);max-width:100%;z-index:111;display:flex;flex-direction:column;background:var(--color-card-elevated);border-left:1px solid var(--color-border);box-shadow:-8px 0 40px #00000059;outline:none;will-change:transform,opacity;backface-visibility:hidden}.source-sheet-panel[data-state=open]{animation:svelte-ypseth-source-sheet-panel-in .34s cubic-bezier(.32,.72,0,1) both}.source-sheet-panel[data-state=closed]{animation:svelte-ypseth-source-sheet-panel-out .28s cubic-bezier(.36,0,.2,1) both}@media(prefers-reduced-motion:reduce){.source-sheet-overlay[data-state=open],.source-sheet-overlay[data-state=closed],.source-sheet-panel[data-state=open],.source-sheet-panel[data-state=closed]{animation-duration:.01ms;animation-iteration-count:1}}.source-feed-panel-inline.svelte-ypseth{box-sizing:border-box;flex:1 1 auto;min-width:0;width:100%;max-width:none;display:flex;flex-direction:column;min-height:0;background:transparent;border-left:none;border-right:none}.source-sheet-inline-empty.svelte-ypseth{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:.5rem 1rem 1.25rem;text-align:center}.source-sheet-inline-empty-title.svelte-ypseth{margin:0;font-size:.875rem;font-weight:600;color:var(--color-muted-foreground-strong)}.source-sheet-inline-empty-hint.svelte-ypseth{margin:0;font-size:.78rem;line-height:1.45;color:var(--color-muted-foreground-soft);max-width:16rem}.source-feed-panel-inline.svelte-ypseth .source-sheet-header-inline:where(.svelte-ypseth){padding:0 .85rem .75rem 1rem;align-items:flex-start}.source-feed-panel-inline.svelte-ypseth h2.source-sheet-title:where(.svelte-ypseth){font-size:.9375rem;font-weight:600;margin:0;color:var(--color-foreground);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-sheet-pull-status.svelte-ypseth{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;margin:-.1rem 0 0;color:var(--color-primary)}.source-sheet-pull-status.svelte-ypseth svg{animation:svelte-ypseth-source-sheet-spin .8s linear infinite}@keyframes svelte-ypseth-source-sheet-spin{to{transform:rotate(360deg)}}@media(max-width:720px){.source-feed-panel-inline.svelte-ypseth{flex:1 1 auto;max-width:none;min-width:0;min-height:12rem;max-height:min(42vh,22rem);border-left:none;border-right:none;border-top:none}}.source-sheet-header.svelte-ypseth{flex-shrink:0;display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:1rem 1rem .75rem 1.25rem;border-bottom:1px solid var(--color-border-muted)}.source-sheet-title-wrap.svelte-ypseth{flex:1 1 auto;min-width:0}.source-sheet-title-row.svelte-ypseth{min-width:0}.source-sheet-title-cluster.svelte-ypseth{display:flex;align-items:center;gap:.35rem;min-width:0;max-width:100%}.source-sheet-title-cluster.svelte-ypseth .source-sheet-title,.source-sheet-title-cluster.svelte-ypseth h2.source-sheet-title:where(.svelte-ypseth){flex:1 1 0%;min-width:0}.source-sheet-header-icons.svelte-ypseth{flex-shrink:0;display:inline-flex;align-items:center;gap:.3rem;line-height:0}.source-sheet-meta-icon.svelte-ypseth{display:inline-flex;align-items:center;color:var(--color-muted-foreground-soft)}.source-sheet-meta-icon-svg{opacity:.92}.source-sheet-proxy.svelte-ypseth{flex-shrink:0;display:inline-flex;align-items:center;line-height:0;color:var(--color-muted-foreground-soft)}.source-sheet-proxy-globe{opacity:.9}.source-sheet-title{font-size:.9375rem;font-weight:600;margin:0;color:var(--color-foreground);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-sheet-sub.svelte-ypseth{margin:.35rem 0 0;font-size:.72rem;color:var(--color-muted-foreground-soft);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-sheet-sub.source-sheet-sub-desc.svelte-ypseth{white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;word-break:break-word;text-overflow:unset}.source-sheet-close{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;padding:.35rem;color:var(--color-muted-foreground);background:transparent;border:none;border-radius:var(--radius-sm);cursor:pointer;transition:color .15s,background .15s}.source-sheet-close:hover{color:var(--color-foreground);background:var(--color-muted)}.source-sheet-body.svelte-ypseth{flex:1;min-height:0;overflow-y:auto;padding:.5rem 0 1rem}.source-sheet-body.svelte-ypseth::-webkit-scrollbar{width:5px}.source-sheet-body.svelte-ypseth::-webkit-scrollbar-thumb{background:var(--color-scrollbar-thumb);border-radius:4px}.source-sheet-state.svelte-ypseth{padding:2rem 1.25rem;text-align:center;font-size:.875rem;color:var(--color-muted-foreground)}.source-sheet-state.err.svelte-ypseth{color:var(--color-destructive)}.source-feed-list.svelte-ypseth{list-style:none;margin:0;padding:0}.source-feed-row.svelte-ypseth{border-bottom:1px solid var(--color-border-muted)}.source-feed-row.svelte-ypseth:last-child{border-bottom:none}.source-feed-link.svelte-ypseth{display:flex;flex-direction:column;align-items:stretch;gap:.25rem;padding:.65rem 1.25rem;min-width:0;text-decoration:none;color:inherit;transition:background .12s}.source-feed-link.svelte-ypseth:hover{background:var(--color-muted)}.source-feed-title.svelte-ypseth{font-size:.8125rem;font-weight:500;color:var(--color-foreground);line-height:1.4;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-feed-link.svelte-ypseth:hover .source-feed-title:where(.svelte-ypseth){color:var(--color-primary)}.source-feed-meta.svelte-ypseth{display:inline-flex;align-items:center;align-self:flex-start;gap:.35rem;flex-shrink:0;font-size:.7rem;color:var(--color-muted-foreground-soft);font-variant-numeric:tabular-nums}.source-feed-ext.svelte-ypseth{opacity:.65;flex-shrink:0}
|