PageSourceSearch

https://kevinwang676-neucosvc-colab.hf.space/assets/index-e6c4aae1.js

js kevinwang676-neucosvc-colab.hf.space collected 2026-10-03 10:20:26 UTC 12,524 bytes, 6 lines download raw bytes

1import{S as M,e as V,s as H,J as R,K as k,p as _,M as v,n as w,A as m,N as y,O as T,U as Z,u as B,v as b,y as C,z as d,P as h,R as A,m as L,G as E,V as Y,Q as q,k as O,o as N,x as S,ah as W,Z as X,$ as x,B as ee,E as te,ad as le,q as ne,r as ie}from"./index-0b47fbf5.js";import{f as se,B as oe}from"./Button-3c1b6276.js";import{C as re,a as ce}from"./Copy-9330cb23.js";import{E as ae}from"./Empty-b6d8e654.js";import{B as fe}from"./BlockLabel-5615836a.js";import"./Blocks-737fc154.js";function ue(a){let e,t;return{c(){e=R("svg"),t=R("path"),k(t,"fill","currentColor"),k(t,"d","M5 3h2v2H5v5a2 2 0 0 1-2 2a2 2 0 0 1 2 2v5h2v2H5c-1.07-.27-2-.9-2-2v-4a2 2 0 0 0-2-2H0v-2h1a2 2 0 0 0 2-2V5a2 2 0 0 1 2-2m14 0a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h1v2h-1a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2h-2v-2h2v-5a2 2 0 0 1 2-2a2 2 0 0 1-2-2V5h-2V3h2m-7 12a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m-4 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1m8 0a1 1 0 0 1 1 1a1 1 0 0 1-1 1a1 1 0 0 1-1-1a1 1 0 0 1 1-1Z"),k(e,"xmlns","http://www.w3.org/2000/svg"),k(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),k(e,"aria-hidden","true"),k(e,"role","img"),k(e,"class","iconify iconify--mdi"),k(e,"width","100%"),k(e,"height","100%"),k(e,"preserveAspectRatio","xMidYMid meet"),k(e,"viewBox","0 0 24 24")},m(l,i){_(l,e,i),v(e,t)},p:w,i:w,o:w,d(l){l&&m(e)}}}let F=class extends M{constructor(e){super(),V(this,e,null,ue,H,{})}};function $(a,e,t){const l=a.slice();return l[5]=e[t],l[7]=t,l}function z(a,e,t){const l=a.slice();return l[5]=e[t],l[7]=t,l}function _e(a){let e,t;return{c(){e=y("div"),t=h(a[1]),k(e,"class","json-item svelte-1kspdo")},m(l,i){_(l,e,i),v(e,t)},p(l,i){i&2&&A(t,l[1])},i:w,o:w,d(l){l&&m(e)}}}function me(a){let e,t;return{c(){e=y("div"),t=h(a[1]),k(e,"class","json-item number svelte-1kspdo")},m(l,i){_(l,e,i),v(e,t)},p(l,i){i&2&&A(t,l[1])},i:w,o:w,d(l){l&&m(e)}}}function de(a){let e,t=a[1].toLocaleString()+"",l;return{c(){e=y("div"),l=h(t),k(e,"class","json-item bool svelte-1kspdo")},m(i,r){_(i,e,r),v(e,l)},p(i,r){r&2&&t!==(t=i[1].toLocaleString()+"")&&A(l,t)},i:w,o:w,d(i){i&&m(e)}}}function be(a){let e,t,l,i;return{c(){e=y("div"),t=h('"'),l=h(a[1]),i=h('"'),k(e,"class","json-item string svelte-1kspdo")},m(r,o){_(r,e,o),v(e,t),v(e,l),v(e,i)},p(r,o){o&2&&A(l,r[1])},i:w,o:w,d(r){r&&m(e)}}}function pe(a){let e;return{c(){e=y("div"),e.textContent="null",k(e,"class","json-item null svelte-1kspdo")},m(t,l){_(t,e,l)},p:w,i:w,o:w,d(t){t&&m(e)}}}function ke(a){let e,t,l,i;const r=[ge,ve],o=[];function f(n,s){return n[0]?0:1}return e=f(a),t=o[e]=r[e](a),{c(){t.c(),l=L()},m(n,s){o[e].m(n,s),_(n,l,s),i=!0},p(n,s){let c=e;e=f(n),e===c?o[e].p(n,s):(B(),b(o[c],1,1,()=>{o[c]=null}),C(),t=o[e],t?t.p(n,s):(t=o[e]=r[e](n),t.c()),d(t,1),t.m(l.parentNode,l))},i(n){i||(d(t),i=!0)},o(n){b(t),i=!1},d(n){n&&m(l),o[e].d(n)}}}function he(a){let e,t,l,i;const r=[ye,we],o=[];function f(n,s){return n[0]?0:1}return e=f(a),t=o[e]=r[e](a),{c(){t.c(),l=L()},m(n,s){o[e].m(n,s),_(n,l,s),i=!0},p(n,s){let c=e;e=f(n),e===c?o[e].p(n,s):(B(),b(o[c],1,1,()=>{o[c]=null}),C(),t=o[e],t?t.p(n,s):(t=o[e]=r[e](n),t.c()),d(t,1),t.m(l.parentNode,l))},i(n){i||(d(t),i=!0)},o(n){b(t),i=!1},d(n){n&&m(l),o[e].d(n)}}}function ve(a){let e,t,l,i,r=E(Object.entries(a[1])),o=[];for(let n=0;n<r.length;n+=1)o[n]=I($(a,r,n));const f=n=>b(o[n],1,1,()=>{o[n]=null});return{c(){e=h(`{
2			`),t=y("div");for(let n=0;n<o.length;n+=1)o[n].c();l=h(`
3			}`),k(t,"class","children svelte-1kspdo")},m(n,s){_(n,e,s),_(n,t,s);for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(t,null);_(n,l,s),i=!0},p(n,s){if(s&6){r=E(Object.entries(n[1]));let c;for(c=0;c<r.length;c+=1){const u=$(n,r,c);o[c]?(o[c].p(u,s),d(o[c],1)):(o[c]=I(u),o[c].c(),d(o[c],1),o[c].m(t,null))}for(B(),c=r.length;c<o.length;c+=1)f(c);C()}},i(n){if(!i){for(let s=0;s<r.length;s+=1)d(o[s]);i=!0}},o(n){o=o.filter(Boolean);for(let s=0;s<o.length;s+=1)b(o[s]);i=!1},d(n){n&&(m(e),m(t),m(l)),Y(o,n)}}}function ge(a){let e,t,l=Object.keys(a[1]).length+"",i,r,o,f;return{c(){e=y("button"),t=h("{+"),i=h(l),r=h(" items}")},m(n,s){_(n,e,s),v(e,t),v(e,i),v(e,r),o||(f=q(e,"click",a[4]),o=!0)},p(n,s){s&2&&l!==(l=Object.keys(n[1]).length+"")&&A(i,l)},i:w,o:w,d(n){n&&m(e),o=!1,f()}}}function G(a){let e;return{c(){e=h(",")},m(t,l){_(t,e,l)},d(t){t&&m(e)}}}function I(a){let e,t=a[5][0]+"",l,i,r,o=a[7]!==Object.keys(a[1]).length-1,f,n;r=new D({props:{value:a[5][1],depth:a[2]+1,key:a[7]}});let s=o&&G();return{c(){e=y("div"),l=h(t),i=h(": "),O(r.$$.fragment),s&&s.c(),f=T()},m(c,u){_(c,e,u),v(e,l),v(e,i),N(r,e,null),s&&s.m(e,null),v(e,f),n=!0},p(c,u){(!n||u&2)&&t!==(t=c[5][0]+"")&&A(l,t);const j={};u&2&&(j.value=c[5][1]),u&4&&(j.depth=c[2]+1),r.$set(j),u&2&&(o=c[7]!==Object.keys(c[1]).length-1),o?s||(s=G(),s.c(),s.m(e,f)):s&&(s.d(1),s=null)},i(c){n||(d(r.$$.fragment,c),n=!0)},o(c){b(r.$$.fragment,c),n=!1},d(c){c&&m(e),S(r),s&&s.d()}}}function we(a){let e,t,l,i,r=E(a[1]),o=[];for(let n=0;n<r.length;n+=1)o[n]=Q(z(a,r,n));const f=n=>
3b(o[n],1,1,()=>{o[n]=null});return{c(){e=h(`[
4			`),t=y("div");for(let n=0;n<o.length;n+=1)o[n].c();l=h(`
5			]`),k(t,"class","children svelte-1kspdo")},m(n,s){_(n,e,s),_(n,t,s);for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(t,null);_(n,l,s),i=!0},p(n,s){if(s&6){r=E(n[1]);let c;for(c=0;c<r.length;c+=1){const u=z(n,r,c);o[c]?(o[c].p(u,s),d(o[c],1)):(o[c]=Q(u),o[c].c(),d(o[c],1),o[c].m(t,null))}for(B(),c=r.length;c<o.length;c+=1)f(c);C()}},i(n){if(!i){for(let s=0;s<r.length;s+=1)d(o[s]);i=!0}},o(n){o=o.filter(Boolean);for(let s=0;s<o.length;s+=1)b(o[s]);i=!1},d(n){n&&(m(e),m(t),m(l)),Y(o,n)}}}function ye(a){let e,t,l,i=a[1].length+"",r,o,f,n;return{c(){e=y("button"),t=y("span"),l=h("expand "),r=h(i),o=h(" children"),k(t,"class","expand-array svelte-1kspdo")},m(s,c){_(s,e,c),v(e,t),v(t,l),v(t,r),v(t,o),f||(n=q(e,"click",a[3]),f=!0)},p(s,c){c&2&&i!==(i=s[1].length+"")&&A(r,i)},i:w,o:w,d(s){s&&m(e),f=!1,n()}}}function K(a){let e;return{c(){e=h(",")},m(t,l){_(t,e,l)},d(t){t&&m(e)}}}function Q(a){let e,t,l,i,r,o,f;i=new D({props:{value:a[5],depth:a[2]+1}});let n=a[7]!==a[1].length-1&&K();return{c(){e=y("div"),t=h(a[7]),l=h(": "),O(i.$$.fragment),r=T(),n&&n.c(),o=T()},m(s,c){_(s,e,c),v(e,t),v(e,l),N(i,e,null),v(e,r),n&&n.m(e,null),v(e,o),f=!0},p(s,c){const u={};c&2&&(u.value=s[5]),c&4&&(u.depth=s[2]+1),i.$set(u),s[7]!==s[1].length-1?n||(n=K(),n.c(),n.m(e,o)):n&&(n.d(1),n=null)},i(s){f||(d(i.$$.fragment,s),f=!0)},o(s){b(i.$$.fragment,s),f=!1},d(s){s&&m(e),S(i),n&&n.d()}}}function je(a){let e,t,l,i,r,o;const f=[he,ke,pe,be,de,me,_e],n=[];function s(c,u){return c[1]instanceof Array?0:c[1]instanceof Object?1:c[1]===null?2:typeof c[1]=="string"?3:typeof c[1]=="boolean"?4:typeof c[1]=="number"?5:6}return i=s(a),r=n[i]=f[i](a),{c(){e=y("span"),t=T(),l=y("div"),r.c(),k(e,"class","spacer svelte-1kspdo"),Z(e,"mt-10",a[2]===0),k(l,"class","json-node svelte-1kspdo")},m(c,u){_(c,e,u),_(c,t,u),_(c,l,u),n[i].m(l,null),o=!0},p(c,[u]){(!o||u&4)&&Z(e,"mt-10",c[2]===0);let j=i;i=s(c),i===j?n[i].p(c,u):(B(),b(n[j],1,1,()=>{n[j]=null}),C(),r=n[i],r?r.p(c,u):(r=n[i]=f[i](c),r.c()),d(r,1),r.m(l,null))},i(c){o||(d(r),o=!0)},o(c){b(r),o=!1},d(c){c&&(m(e),m(t),m(l)),n[i].d()}}}function Oe(a,e,t){let{value:l}=e,{depth:i}=e,{collapsed:r=i>4}=e;const o=()=>{t(0,r=!1)},f=()=>{t(0,r=!1)};return a.$$set=n=>{"value"in n&&t(1,l=n.value),"depth"in n&&t(2,i=n.depth),"collapsed"in n&&t(0,r=n.collapsed)},[r,l,i,o,f]}class D extends M{constructor(e){super(),V(this,e,Oe,je,H,{value:1,depth:2,collapsed:0})}}function Ne(a){let e,t;return e=new ae({props:{$$slots:{default:[Je]},$$scope:{ctx:a}}}),{c(){O(e.$$.fragment)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i&32&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(d(e.$$.fragment,l),t=!0)},o(l){b(e.$$.fragment,l),t=!1},d(l){S(e,l)}}}function Se(a){let e,t,l,i,r,o,f,n,s;const c=[Ce,Be],u=[];function j(g,J){return g[1]?0:1}return t=j(a),l=u[t]=c[t](a),o=new D({props:{value:a[0],depth:0}}),{c(){e=y("button"),l.c(),i=T(),r=y("div"),O(o.$$.fragment),k(e,"class","svelte-1trjy9a"),k(r,"class","json-holder svelte-1trjy9a")},m(g,J){_(g,e,J),u[t].m(e,null),_(g,i,J),_(g,r,J),N(o,r,null),f=!0,n||(s=q(e,"click",a[2]),n=!0)},p(g,J){let p=t;t=j(g),t!==p&&(B(),b(u[p],1,1,()=>{u[p]=null}),C(),l=u[t],l||(l=u[t]=c[t](g),l.c()),d(l,1),l.m(e,null));const P={};J&1&&(P.value=g[0]),o.$set(P)},i(g){f||(d(l),d(o.$$.fragment,g),f=!0)},o(g){b(l),b(o.$$.fragment,g),f=!1},d(g){g&&(m(e),m(i),m(r)),u[t].d(),S(o),n=!1,s()}}}function Je(a){let e,t;return e=new F({}),{c(){O(e.$$.fragment)},m(l,i){N(e,l,i),t=!0},i(l){t||(d(e.$$.fragment,l),t=!0)},o(l){b(e.$$.fragment,l),t=!1},d(l){S(e,l)}}}function Be(a){let e,t,l;return t=new re({}),{c(){e=y("span"),O(t.$$.fragment),k(e,"class","copy-text")},m(i,r){_(i,e,r),N(t,e,null),l=!0},i(i){l||(d(t.$$.fragment,i),l=!0)},o(i){b(t.$$.fragment,i),l=!1},d(i){i&&m(e),S(t)}}}function Ce(a){let e,t,l,i;return t=new ce({}),{c(){e=y("span"),O(t.$$.fragment)},m(r,o){_(r,e,o),N(t,e,null),i=!0},i(r){i||(d(t.$$.fragment,r),r&&(l||X(()=>{l=x(e,se,{duration:300}),l.start()})),i=!0)},o(r){b(t.$$.fragment,r),i=!1},d(r){r&&m(e),S(t)}}}function Te(a){let e,t,l,i,r;const o=[Se,Ne],f=[];function n(s,c){return c&1&&(e=null),e==null&&(e=!!(s[0]&&s[0]!=='""'&&!Ae(s[0]))),e?0:1}return t=n(a,-1),l=f[t]=o[t](a),{c(){l.c(),i=L()},m(s,c){f[t].m(s,c),_(s,i,c),r=!0},p(s,[c]){let u=t;t=n(s,c),t===u?f[t].p(s,c):(B(),b(f[u],1,1,()=>{f[u]=null}),C(),l=f[t],l?l.p(s,c):(l=f[t]=o[t](s),l.c()),d(l,1),l.m(i.parentNode,i))},i(s){r||(d(l),r=!0)},o(s){b(l),r=!1},d(s){s&&m(i),f[t].d(s)}}}function Ae(a){return a&&Object.keys(a).length===0&&Object.getPrototypeOf(a)===Object.prototype}function Ee(a,e,t){let{value:l={}}=e,i=!1,r;function o(){t(1,i=!0),r&&clearTimeout(r),r=setTimeout(()=>{t(1,i=!1)},1e3)}async function f(){"clipboard"in navigator&&(await navigator.clipboard.writeText(JSON.stringify(l,null,2)),o())}return W(()=>{r&&clearTimeout(r)}),a.$$set=n=>{"value"in n&&t(0,l=n.value)},[l,i,f]}class Me extends M{constructor(e){super(),V(this,e,Ee,Te,H,{value:0})}}function U(a){let e,t;return e=new fe({props:{Icon:F,show_label:a[6],label:a[5],float:!1,disable:a[7]===!1}}),{c(){O(e.$$.fragment)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i&64&&(r.show_label=l[6]),i&32&&(r.label=l[5]),i&128&&(r.disable=l[7]===!1),e.$set(r)},i(l){t||(d(e.$$.fragment,l),t=!0)},o(l){b(e.$$.fragment,l),t=!1}
5,d(l){S(e,l)}}}function Ve(a){let e,t,l,i,r,o=a[5]&&U(a);const f=[a[4]];let n={};for(let s=0;s<f.length;s+=1)n=te(n,f[s]);return t=new le({props:n}),i=new Me({props:{value:a[3]}}),{c(){o&&o.c(),e=T(),O(t.$$.fragment),l=T(),O(i.$$.fragment)},m(s,c){o&&o.m(s,c),_(s,e,c),N(t,s,c),_(s,l,c),N(i,s,c),r=!0},p(s,c){s[5]?o?(o.p(s,c),c&32&&d(o,1)):(o=U(s),o.c(),d(o,1),o.m(e.parentNode,e)):o&&(B(),b(o,1,1,()=>{o=null}),C());const u=c&16?ne(f,[ie(s[4])]):{};t.$set(u);const j={};c&8&&(j.value=s[3]),i.$set(j)},i(s){r||(d(o),d(t.$$.fragment,s),d(i.$$.fragment,s),r=!0)},o(s){b(o),b(t.$$.fragment,s),b(i.$$.fragment,s),r=!1},d(s){s&&(m(e),m(l)),o&&o.d(s),S(t,s),S(i,s)}}}function He(a){let e,t;return e=new oe({props:{visible:a[2],test_id:"json",elem_id:a[0],elem_classes:a[1],container:a[7],scale:a[8],min_width:a[9],padding:!1,$$slots:{default:[Ve]},$$scope:{ctx:a}}}),{c(){O(e.$$.fragment)},m(l,i){N(e,l,i),t=!0},p(l,[i]){const r={};i&4&&(r.visible=l[2]),i&1&&(r.elem_id=l[0]),i&2&&(r.elem_classes=l[1]),i&128&&(r.container=l[7]),i&256&&(r.scale=l[8]),i&512&&(r.min_width=l[9]),i&4344&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(d(e.$$.fragment,l),t=!0)},o(l){b(e.$$.fragment,l),t=!1},d(l){S(e,l)}}}function Le(a,e,t){let{elem_id:l=""}=e,{elem_classes:i=[]}=e,{visible:r=!0}=e,{value:o}=e,f,{loading_status:n}=e,{label:s}=e,{show_label:c}=e,{container:u=!1}=e,{scale:j=null}=e,{min_width:g=void 0}=e;const J=ee();return a.$$set=p=>{"elem_id"in p&&t(0,l=p.elem_id),"elem_classes"in p&&t(1,i=p.elem_classes),"visible"in p&&t(2,r=p.visible),"value"in p&&t(3,o=p.value),"loading_status"in p&&t(4,n=p.loading_status),"label"in p&&t(5,s=p.label),"show_label"in p&&t(6,c=p.show_label),"container"in p&&t(7,u=p.container),"scale"in p&&t(8,j=p.scale),"min_width"in p&&t(9,g=p.min_width)},a.$$.update=()=>{a.$$.dirty&1032&&o!==f&&(t(10,f=o),J("change"))},[l,i,r,o,n,s,c,u,j,g,f]}class qe extends M{constructor(e){super(),V(this,e,Le,He,H,{elem_id:0,elem_classes:1,visible:2,value:3,loading_status:4,label:5,show_label:6,container:7,scale:8,min_width:9})}}const Ie=qe,Ke=["static"],Qe=a=>({type:{payload:"Object | Array"},description:{payload:"JSON object"}});export{Ie as Component,Qe as document,Ke as modes};
6//# sourceMappingURL=index-e6c4aae1.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.