@vis3/kit 1.1.10 → 1.1.11

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/dist/index.mjs CHANGED
@@ -88377,7 +88377,7 @@ function jue({ className: t, name: e, value: r, extraTail: n, titleExtra: i }) {
88377
88377
  } catch (V) {
88378
88378
  return l && l.length > 0 && h(V.toString()), l;
88379
88379
  }
88380
- }, [l]), [x] = n5(y), O = Ce(() => y ? Object.keys(y) : [], [y]), v = Ce(() => Hue.validate(y).length === 0, [y]), L = Ce(() => Eue.validate(y).length === 0, [y]), b = Ce(() => _ue.validate(y).length === 0, [y]), S = Et((V) => {
88380
+ }, [l]), [x] = n5(y), O = Ce(() => y ? typeof y != "object" ? [] : Object.keys(y) : [], [y]), v = Ce(() => Hue.validate(y).length === 0, [y]), L = Ce(() => Eue.validate(y).length === 0, [y]), b = Ce(() => _ue.validate(y).length === 0, [y]), S = Et((V) => {
88381
88381
  if (V) {
88382
88382
  const _ = O.filter((D) => v ? Cue.includes(D) : L ? Aue.includes(D) : b ? Mue.includes(D) : Pue.includes(D)).map((D) => ({
88383
88383
  id: Ra(),
package/dist/index.umd.js CHANGED
@@ -405,7 +405,7 @@ Valid keys: `+JSON.stringify(Object.keys(_),null," "));var I=le(G,ne,re,oe,ae+"
405
405
  `,T7e=Ee.div`
406
406
  background-color: #f0f0f0;
407
407
  border-radius: 0.25rem;
408
- `;function f7e({className:e,name:t,value:r,extraTail:n,titleExtra:i}){const{id:a,path:o,onKeyClick:s}=f4(),[l,u]=W.useState(r),[c,{wrap:Q}]=n5(),T=W.useRef(null),[f,h]=W.useState(""),p=W.useRef(null),[g,d]=W.useState([]),{t:m}=Jt(),y=W.useMemo(()=>{try{return h(""),JSON.parse(l??"")}catch(V){return l&&l.length>0&&h(V.toString()),l}},[l]),[x]=M6(y),O=W.useMemo(()=>y?Object.keys(y):[],[y]),v=W.useMemo(()=>Kse.validate(y).length===0,[y]),L=W.useMemo(()=>Yse.validate(y).length===0,[y]),b=W.useMemo(()=>Jse.validate(y).length===0,[y]),S=W.useCallback(V=>{if(V){const _=O.filter(D=>v?t7e.includes(D):L?r7e.includes(D):b?n7e.includes(D):i7e.includes(D)).map(D=>({id:Wi(),field:D,value:x5(y,D)??y,renderAs:e7e[D]??"raw"}));d(D=>D.length===0?[{id:"whole",field:"__whole__",renderAs:"json"},..._]:D)}},[b,v,L,O,y]),[E,{preview:C},A]=P6(!1,S),w=W.useRef({__root__:new p8("")});W.useEffect(()=>{u(r)},[r]),W.useEffect(()=>{const V=_=>{const D=_.detail.field,Z=_.detail.blockId,k=_.detail.parentField??"__whole__",re=`${Z}-${D}`,oe=`${Z}-${k}`,ae=w.current[oe],G=new p8(D,ae),X=Fk(D,_.detail.value);if(w.current[re]=G,a===Z){try{g.length===0?d([{id:"whole",field:"__whole__",renderAs:"json"},{id:Wi(),field:G.fullPath,renderAs:X}]):g.find(ee=>ee.field===D)||d(ee=>[...ee,{id:Wi(),field:G.fullPath,renderAs:X}])}catch(ee){console.error("error",ee)}A(!0),s?.(G.fullPath,x5(y,G.fullPath)??"")}};return document.addEventListener(q0,V),()=>{document.removeEventListener(q0,V)}},[a,g,y,A,s,o]);const M=jk(T.current),P=W.useMemo(()=>({wrap:Q??!1,value:l,onChange:u}),[Q,l]),N=W.useMemo(()=>({value:y,path:o}),[y,o]),j=W.useMemo(()=>{if(!T.current)return;const V=g.length??1,_=Math.floor(96/V),D=Math.floor(M.height/4);return g.map((Z,k)=>({i:Z.id,x:_*k,y:0,w:_,h:D}))},[g,M.height]),R=W.useCallback(V=>{d(_=>_.filter(D=>D.id!==V))},[]);return B.jsx(Yb.Provider,{value:N,children:B.jsx(_n.Provider,{value:P,children:B.jsx(Y1,{className:e,name:t,ref:p,titleExtra:i,extra:B.jsxs(o7e,{children:[!C&&c,E,B.jsx(K2,{elementRef:p}),x,n]}),children:B.jsxs("div",{ref:T,children:[f&&B.jsx(l7e,{children:B.jsx(u7e,{children:f})}),B.jsx(Q7e,{visible:C,children:B.jsx(s7e,{height:M.height,children:B.jsx(Dm,{layout:j,cols:96,rowHeight:4,draggableHandle:".field-name",width:M.width,margin:[0,0],className:"draggable-layout",resizeHandles:["nw","se","ne","sw"],children:g.map(V=>B.jsx(T7e,{children:B.jsx(a7e,{renderAs:V.renderAs,name:V.field,value:V.field==="__whole__"?y:x5(y,V.field),extraTail:V.field!=="__whole__"&&B.jsx(B.Fragment,{children:B.jsx(we.Tooltip,{title:m("renderer.close"),children:B.jsx(we.Button,{size:"small",type:"text",icon:B.jsx(Qs,{}),onClick:()=>R?.(V.id)})})})})},V.id))})})}),B.jsx(c7e,{visible:!C})]})})})})}const h7e={textLikePreviewer:"_textLikePreviewer_7q5wf_1"};function d7e({name:e,type:t,className:r,extraTail:n,titleExtra:i}){const{data:a,onNext:o,onPrev:s,prevable:l,nextable:u}=f4(),[c,Q]=W.useState(void 0),{t:T}=Jt();W.useEffect(()=>{Q(a?.content)},[a]);const f=["jsonl","json","csv","txt"].includes(t)?B.jsxs(we.Space.Compact,{children:[B.jsx(we.Tooltip,{title:T("textPreviewer.prevSection"),children:B.jsx(we.Button,{size:"small",type:"text",disabled:!l,onClick:s,icon:B.jsx(R8,{})})}),B.jsx(we.Tooltip,{title:T("textPreviewer.nextSection"),children:B.jsx(we.Button,{size:"small",type:"text",disabled:!u,onClick:o,icon:B.jsx(B8,{})})})]}):null;let h=null;return t==="jsonl"?h=f7e:h=wf(t)?.renderer??Pi.raw.renderer,h?B.jsx(h,{name:e,className:$d(r,h7e.textLikePreviewer),value:c,titleExtra:B.jsxs(B.Fragment,{children:[i,f]}),extraTail:n}):null}const Cf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm6,10H18v8a4,4,0,1,1-4-4,3.9588,3.9588,0,0,1,2,.55475V8h6Z",style:{fill:"#ef5350"}})),qk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#fdd835",d:"M18.23 11.21q-.045-.24-1.32-1.65c-.02-.19.29-.45.9-.8l1.74-1.55c.39-.5.62-1.28.69-2.38l-.02-.26c-.07-.78-.63-1.4-1.69-1.89-.63-.42-1.76-.65-3.38-.68-1.35.11-3.11.59-5.28 1.43-.6.43-1.28.86-2.04 1.28l.01.14.21-.08c.08-.01.13.03.14.11l.13-.07.07-.01.01.06c0 .07-.47.44-1.76 1.35l-.06.12c-.31.02-.61.25-.91.67l.08.12.25-.09.18.24c.32-.33.66-.62 1.03-.87.19.05.29.11.44.16 1.02-.75 2.03-1.3 3.04-1.64l.01.14c-.2.27-.32.42-.38.42l.1.23c.01.19-2.55 7-6.66 14.44l.08.19c.35-.08.58-.17.75-.26l.01.13.4-.03-.67 1.76.14.06c.57-.64 1-1.29 1.3-1.88 1.67-.49 2.94-.97 3.82-1.44.88-.08 1.56-.31 2.02-.7l.92-.47c1.27-.98 2.22-1.67 2.87-2.08 1.33-.98 2.2-1.93 2.6-2.85zm-3.46 2.31L13 14.91c-1.29.85-2 1.3-2.09 1.3-2.07 1.13-3.36 1.72-3.86 1.76l-.05.01c.04-.23.96-2.12 2.75-5.67.78-.06 2.02-.43 3.71-1.1l.41-.03c.85-.08 1.49.09 1.91.49l.03.26c-.31.9-.67 1.44-1.04 1.59m1.09-5.78q-.27.33-1.5 1.11c-.27.03-1.27.42-3.01 1.18l-.28-.05-.01-.12c-.02-.25.09-.57.34-.95.13-.7.28-1.12.44-1.2l1.45-3.28c-.02-.22.29-.35.93-.46l.21-.02.01.18 1.16-.16c1.15-.1 1.75.14 1.8.7l.13-.02-.03-.32.15-.02c.35.19.52.4.54.68.02.18-.08.41-.29.68-.09.01-.14-.06-.15-.18l-.14.01-.03.4c-.58.87-1.01 1.31-1.27 1.34z"})),p7e=e=>K.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},K.createElement("path",{d:"M8.03243 3.33325C8.25344 3.33325 8.4654 3.42105 8.62168 3.57733L9.80019 4.75584C9.95647 4.91212 10.1684 4.99992 10.3894 4.99992H17.5443C18.0045 4.99992 18.3776 5.37301 18.3776 5.83325V15.8333C18.3776 16.2935 18.0045 16.6666 17.5443 16.6666H2.54427C2.08403 16.6666 1.71094 16.2935 1.71094 15.8333V4.16659C1.71094 3.70635 2.08403 3.33325 2.54427 3.33325H8.03243Z",fill:"#FFBA52"}),K.createElement("path",{d:"M3.37793 8.75C3.37793 8.05964 3.93757 7.5 4.62793 7.5H15.4613C16.1516 7.5 16.7113 8.05964 16.7113 8.75H3.37793Z",fill:"white"})),m7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#7e57c2",d:"M20 18h-2v-2h-2v2c0 .193 0 .703 1.254 1.033A3.345 3.345 0 0 1 20 22h2v2h2v-2c0-.388-.562-.851-1.254-1.034C20.356 20.34 20 18.84 20 18m-3.254 2.966C14.356 20.34 14 18.84 14 18h-2v-2h-2v8h2v-2h4v2h2v-2c0-.388-.562-.851-1.254-1.034"}),K.createElement("path",{fill:"#7e57c2",d:"M24 4H4v20a4 4 0 0 0 4 4h16.16A3.84 3.84 0 0 0 28 24.16V8a4 4 0 0 0-4-4m2 14h-2v-2h-2v2c0 .193 0 .703 1.254 1.033A3.345 3.345 0 0 1 26 22v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2 2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2 2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 2 2 0 0 1 2-2h2a2 2 0 0 1 2 2Z"})),Zk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ffca28",d:"M16 24c-5.525 0-10-.9-10-2v4c0 1.1 4.475 2 10 2s10-.9 10-2v-4c0 1.1-4.475 2-10 2m0-8c-5.525 0-10-.9-10-2v4c0 1.1 4.475 2 10 2s10-.9 10-2v-4c0 1.1-4.475 2-10 2m0-12C10.477 4 6 4.895 6 6v4c0 1.1 4.475 2 10 2s10-.9 10-2V6c0-1.105-4.477-2-10-2"})),Af=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#0288D1",d:"M21.81 10.25c-.06-.04-.56-.43-1.64-.43-.28 0-.56.03-.84.08-.21-1.4-1.38-2.11-1.43-2.14l-.29-.17-.18.27c-.24.36-.43.77-.51 1.19-.2.8-.08 1.56.33 2.21-.49.28-1.29.35-1.46.35H2.62c-.34 0-.62.28-.62.63 0 1.15.18 2.3.58 3.38.45 1.19 1.13 2.07 2 2.61.98.6 2.59.94 4.42.94.79 0 1.61-.07 2.42-.22 1.12-.2 2.2-.59 3.19-1.16A8.3 8.3 0 0 0 16.78 16c1.05-1.17 1.67-2.5 2.12-3.65h.19c1.14 0 1.85-.46 2.24-.85.26-.24.45-.53.59-.87l.08-.24zm-17.96.99h1.76c.08 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H3.85c-.09 0-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.43 0h1.76c.08 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H6.28c-.09 0-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.47 0h1.75c.1 0 .17-.07.17-.16V9.5c0-.08-.06-.16-.17-.16H8.75c-.08 0-.15.07-.15.16v1.58c0 .09.06.16.15.16m2.44 0h1.77c.08 0 .15-.07.15-.16V9.5c0-.08-.06-.16-.15-.16h-1.77c-.08 0-.15.07-.15.16v1.58c0 .09.07.16.15.16M6.28 9h1.76c.08 0 .16-.09.16-.18V7.25c0-.09-.07-.16-.16-.16H6.28c-.09 0-.16.06-.16.16v1.57c.01.09.07.18.16.18m2.47 0h1.75c.1 0 .17-.09.17-.18V7.25c0-.09-.06-.16-.17-.16H8.75c-.08 0-.15.06-.15.16v1.57c0 .09.06.18.15.18m2.44 0h1.77c.08 0 .15-.09.15-.18V7.25c0-.09-.07-.16-.15-.16h-1.77c-.08 0-.15.06-.15.16v1.57c0 .09.07.18.15.18m0-2.28h1.77c.08 0 .15-.07.15-.16V5c0-.1-.07-.17-.15-.17h-1.77c-.08 0-.15.06-.15.17v1.56c0 .08.07.16.15.16m2.46 4.52h1.76c.09 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16h-1.76c-.08 0-.15.07-.15.16v1.58c0 .09.07.16.15.16"})),Mf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#3f51b5",d:"M22.713 4H9.287a.5.5 0 0 0-.432.248l-6.708 11.5a.5.5 0 0 0 0 .504l6.708 11.5a.5.5 0 0 0 .432.248h13.426a.5.5 0 0 0 .432-.248l6.708-11.5a.5.5 0 0 0 0-.504l-6.708-11.5A.5.5 0 0 0 22.713 4m-6.937 20.888-7.5-3.75A.5.5 0 0 1 8 20.691v-9.382a.5.5 0 0 1 .276-.447l7.5-3.75a.5.5 0 0 1 .448 0l7.5 3.75a.5.5 0 0 1 .276.447v9.382a.5.5 0 0 1-.276.447l-7.5 3.75a.5.5 0 0 1-.448 0"}),K.createElement("path",{fill:"#7986cb",d:"M22 19.441v-6.882a.5.5 0 0 0-.276-.447l-5.5-2.75a.5.5 0 0 0-.448 0l-5.5 2.75a.5.5 0 0 0-.276.447v6.882a.5.5 0 0 0 .276.447l5.5 2.75a.5.5 0 0 0 .448 0l5.5-2.75a.5.5 0 0 0 .276-.447"})),g7e=e=>K.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},K.createElement("path",{d:"M8.03243 3.33325C8.25344 3.33325 8.4654 3.42105 8.62168 3.57733L9.80019 4.75584C9.95647 4.91212 10.1684 4.99992 10.3894 4.99992H17.5443C18.0045 4.99992 18.3776 5.37301 18.3776 5.83325V15.8333C18.3776 16.2935 18.0045 16.6666 17.5443 16.6666H2.54427C2.08403 16.6666 1.71094 16.2935 1.71094 15.8333V4.16659C1.71094 3.70635 2.08403 3.33325 2.54427 3.33325H8.03243Z",fill:"#3477EB"}),K.createElement("path",{d:"M3.37695 8.75C3.37695 8.05964 3.9366 7.5 4.62695 7.5H15.4603C16.1506 7.5 16.7103 8.05964 16.7103 8.75H3.37695Z",fill:"white"})),O7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#e64a19",d:"M13.172 2.828 11.78 4.22l1.91 1.91 2 2A2.986 2.986 0 0 1 20 10.81a3.25 3.25 0 0 1-.31 1.31l2.06 2a2.68 2.68 0 0 1 3.37.57 2.86 2.86 0 0 1 .88 2.117 3.02 3.02 0 0 1-.856 2.109A2.9 2.9 0 0 1 23 19.81a2.93 2.93 0 0 1-2.13-.87 2.694 2.694 0 0 1-.56-3.38l-2-2.06a3 3 0 0 1-.31.12V20a3 3 0 0 1 1.44 1.09 2.92 2.92 0 0 1 .56 1.72 2.88 2.88 0 0 1-.878 2.128 2.98 2.98 0 0 1-2.048.871 2.981 2.981 0 0 1-2.514-4.719A3 3 0 0 1 16 20v-6.38a2.96 2.96 0 0 1-1.44-1.09 2.9 2.9 0 0 1-.56-1.72 2.9 2.9 0 0 1 .31-1.31l-3.9-3.9-7.579 7.572a4 4 0 0 0-.001 5.658l10.342 10.342a4 4 0 0 0 5.656 0l10.344-10.344a4 4 0 0 0 0-5.656L18.828 2.828a4 4 0 0 0-5.656 0"})),y7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#00acc1",d:"M2 12h4v2H2zm-2 4h6v2H0zm4 4h2v2H4zm16.954-5H14v3h3.239a4.42 4.42 0 0 1-3.531 2 2.65 2.65 0 0 1-2.053-.858 2.86 2.86 0 0 1-.628-2.28A4.515 4.515 0 0 1 15.292 13a2.73 2.73 0 0 1 1.749.584l2.962-1.185A5.6 5.6 0 0 0 15.292 10a7.526 7.526 0 0 0-7.243 6.5 5.614 5.614 0 0 0 5.659 6.5 7.526 7.526 0 0 0 7.243-6.5 6.4 6.4 0 0 0 .003-1.5"}),K.createElement("path",{fill:"#00acc1",d:"M26.292 10a7.526 7.526 0 0 0-7.243 6.5 5.614 5.614 0 0 0 5.659 6.5 7.526 7.526 0 0 0 7.243-6.5 5.614 5.614 0 0 0-5.659-6.5m2.681 6.137A4.515 4.515 0 0 1 24.708 20a2.65 2.65 0 0 1-2.053-.858 2.86 2.86 0 0 1-.628-2.28A4.515 4.515 0 0 1 26.292 13a2.65 2.65 0 0 1 2.053.858 2.86 2.86 0 0 1 .628 2.28Z"})),zk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ec407a",d:"M6 20h20v2H6z"}),K.createElement("circle",{cx:7,cy:21,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:16,cy:27,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:25,cy:21,r:3,fill:"#ec407a"}),K.createElement("path",{fill:"#ec407a",d:"M6 10h20v2H6z"}),K.createElement("circle",{cx:7,cy:11,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:16,cy:5,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:25,cy:11,r:3,fill:"#ec407a"}),K.createElement("path",{fill:"#ec407a",d:"M6 12h2v10H6zm18-2h2v12h-2z"}),K.createElement("path",{fill:"#ec407a",d:"m5.014 19.41 11.674 6.866L15.674 28 4 21.134z"}),K.createElement("path",{fill:"#ec407a",d:"M26.688 21.724 15.014 28.59 14 26.866 25.674 20zM5.124 10.382l11.415-7.29 1.077 1.686L6.2 12.068z"}),K.createElement("path",{fill:"#ec407a",d:"m25.798 12.067-11.415-7.29 1.077-1.685 11.415 7.29zM6.2 19.932l11.416 7.29-1.077 1.686-11.415-7.29z"}),K.createElement("path",{fill:"#ec407a",d:"m26.875 21.619-11.415 7.29-1.077-1.687 11.415-7.289zM5.877 22.6 16.04 3.686l1.762.946L7.638 23.546z"}),K.createElement("path",{fill:"#ec407a",d:"M24.361 23.545 14.197 4.633l1.761-.947 10.165 18.913z"})),Xk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M4,4,6,26l10,2,10-2L28,4Zm19.72,7H11.28l.29,3H23.43l-.80243,9.335L15.99,25,9.35522,23.3537,8.93,19h3.02l.19,2,3.86.77L19.84,21l.29-4H8.84L8,8H24Z",style:{fill:"#e44d26"}})),ki=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11ZM11,12a3,3,0,1,1-3,3A3,3,0,0,1,11,12ZM24,28H8l6-8,4,4,6-6ZM16,12V4l8,8Z",style:{fill:"#26a69a"}})),Pf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#f44336",d:"M4 26h24v2H4zM28 4H7a1 1 0 0 0-1 1v13a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-4h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 8h-4V6h4Z"})),v7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#ffca28",d:"M2 2v12h12V2zm6 6h1v4a1.003 1.003 0 0 1-1 1H7a1.003 1.003 0 0 1-1-1v-1h1v1h1zm3 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1"})),Uk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",...e},K.createElement("path",{fill:"#f9a825",d:"M560-160v-80h120q17 0 28.5-11.5T720-280v-80q0-38 22-69t58-44v-14q-36-13-58-44t-22-69v-80q0-17-11.5-28.5T680-720H560v-80h120q50 0 85 35t35 85v80q0 17 11.5 28.5T840-560h40v160h-40q-17 0-28.5 11.5T800-360v80q0 50-35 85t-85 35H560Zm-280 0q-50 0-85-35t-35-85v-80q0-17-11.5-28.5T120-400H80v-160h40q17 0 28.5-11.5T160-600v-80q0-50 35-85t85-35h120v80H280q-17 0-28.5 11.5T240-680v80q0 38-22 69t-58 44v14q36 13 58 44t22 69v80q0 17 11.5 28.5T280-240h120v80H280Z"})),x7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#0277bd",d:"M8 3a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2H3v2h1a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h2v-2H8v-5a2 2 0 0 0-2-2 2 2 0 0 0 2-2V5h2V3m6 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-2 2 2 0 0 1-2-2V5h-2V3z"})),Wk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("g",null,K.createElement("polygon",{points:"14 10 10 13.5 6 10 4 10 4 22 8 22 8 16 10 18 12 16 12 22 16 22 16 10 14 10",style:{fill:"#42a5f5"}}),K.createElement("polygon",{points:"26 16 26 10 22 10 22 16 18 16 24 24 30 16 26 16",style:{fill:"#42a5f5"}}))),m8=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#E53935",d:"M4 4v24h24V4Zm20 20h-4V12h-4v12H8V8h16Z"})),L7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("g",null,K.createElement("path",{d:"M14.32349,17.105l.18066-.92578.03387-.18066a1.57265,1.57265,0,0,0-.10162-1.242l-.16937-.05646-.079.1355a4.08291,4.08291,0,0,0,.079,2.31452Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M8.94891,27.20966c.50812-.16932,1.17426-.91449,1.90821-2.258l-.542.35A4.16944,4.16944,0,0,0,8.94891,27.20966Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M14.35736,19.80334a16.72025,16.72025,0,0,1-1.14038,2.7096l-.56458,1.17419.12421-.04516a21.30419,21.30419,0,0,1,3.77124-1.05l-.46289-.36127A6.93668,6.93668,0,0,1,14.35736,19.80334Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11Zm4.67407,22.10486a1.33172,1.33172,0,0,1-1.02746.33874,8.368,8.368,0,0,1-3.38739-.83551,23.68313,23.68313,0,0,0-4.55036.84681l-.20324.079C11.10553,26.92743,10.06671,28,9.15216,28l-.49683-.12421-.542-.35-.03387-.05646a1.02534,1.02534,0,0,1-.05646-.60968,4.42139,4.42139,0,0,1,2.12274-2.39349l1.005-.55323,1.08392-2.03222a19.08765,19.08765,0,0,0,1.21948-3.308V18.5614a5.572,5.572,0,0,1-.24841-3.69189,1.07706,1.07706,0,0,1,.892-.86933h.271a.96338.96338,0,0,1,.68878.27094c.74524.74518.39521,2.56286.02259,4.06445l-.04517.15808A6.66531,6.66531,0,0,0,16.84143,21.384l.98236.65479,1.45654-.079c1.40015,0,2.247.24841,2.57441.779a.90834.90834,0,0,1,.13549.621A1.091,1.091,0,0,1,21.67407,24.10486ZM16,12V4l8,8Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M19.0658,22.90814a.266.266,0,0,0-.25971.11286,6.04074,6.04074,0,0,0,2.14533.5758l.21453-.02258h.04517c.05646-.02258.09033-.03388.10162-.14673l-.10162-.12421C21.09821,23.19037,20.64661,22.90814,19.0658,22.90814Z",style:{fill:"#ef5350"}}))),b7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#1E88E5",d:"M12 18.08c-6.63 0-12-2.72-12-6.08s5.37-6.08 12-6.08S24 8.64 24 12s-5.37 6.08-12 6.08m-5.19-7.95c.54 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.58 1.09q-.42.33-1.29.33h-.87l.53-2.76zm-3.5 5.55h1.44l.34-1.75h1.23c.54 0 .98-.06 1.33-.17.35-.12.67-.31.96-.58.24-.22.43-.46.58-.73.15-.26.26-.56.31-.88.16-.78.05-1.39-.33-1.82-.39-.44-.99-.65-1.82-.65H4.59zm7.25-8.33-1.28 6.58h1.42l.74-3.77h1.14c.36 0 .6.06.71.18s.13.34.07.66l-.57 2.93h1.45l.59-3.07c.13-.62.03-1.07-.27-1.36-.3-.27-.85-.4-1.65-.4h-1.27L12 7.35zM18 10.13c.55 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.57 1.09-.29.22-.72.33-1.3.33h-.85l.5-2.76zm-3.5 5.55h1.44l.34-1.75h1.22c.55 0 1-.06 1.35-.17.35-.12.65-.31.95-.58.24-.22.44-.46.58-.73.15-.26.26-.56.32-.88.15-.78.04-1.39-.34-1.82-.36-.44-.99-.65-1.82-.65h-2.75z"})),Gk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#F44336",d:"M2 8h4v1H2zm0 6h4v1H2zm9-10h3v1h-3zM2 2h3v1H2z"}),K.createElement("path",{fill:"#F9A825",d:"M9 2h3v1H9zm1 4h4v1h-4zm-5 6h1v1H5zm-3-2h6v1H2z"}),K.createElement("path",{fill:"#26A69A",d:"M2 12h3v1H2zm7-4h5v1H9zM2 4h4v1H2zm3-2h4v1H5z"}),K.createElement("path",{fill:"#BA68C8",d:"M2 6h3v1H2zm7-2h2v1H9zm-1 6h4v1H8z"})),Yk=e=>K.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},K.createElement("path",{d:"M9.86 2A2.86 2.86 0 0 0 7 4.86v1.68h4.29c.39 0 .71.57.71.96H4.86A2.86 2.86 0 0 0 2 10.36v3.781a2.86 2.86 0 0 0 2.86 2.86h1.18v-2.68a2.85 2.85 0 0 1 2.85-2.86h5.25c1.58 0 2.86-1.271 2.86-2.851V4.86A2.86 2.86 0 0 0 14.14 2zm-.72 1.61c.4 0 .72.12.72.71s-.32.891-.72.891c-.39 0-.71-.3-.71-.89s.32-.711.71-.711z",fill:"#3c78aa"}),K.createElement("path",{d:"M17.959 7v2.68a2.85 2.85 0 0 1-2.85 2.859H9.86A2.85 2.85 0 0 0 7 15.389v3.75a2.86 2.86 0 0 0 2.86 2.86h4.28A2.86 2.86 0 0 0 17 19.14v-1.68h-4.291c-.39 0-.709-.57-.709-.96h7.14A2.86 2.86 0 0 0 22 13.64V9.86A2.86 2.86 0 0 0 19.14 7zM8.32 11.513l-.004.004c.012-.002.025-.001.038-.004zm6.54 7.276c.39 0 .71.3.71.89a.71.71 0 0 1-.71.71c-.4 0-.72-.12-.72-.71s.32-.89.72-.89z",fill:"#fdd835"})),Kk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#00bcd4",d:"M16 12c7.444 0 12 2.59 12 4s-4.556 4-12 4-12-2.59-12-4 4.556-4 12-4m0-2c-7.732 0-14 2.686-14 6s6.268 6 14 6 14-2.686 14-6-6.268-6-14-6"}),K.createElement("path",{fill:"#00bcd4",d:"M16 14a2 2 0 1 0 2 2 2 2 0 0 0-2-2"}),K.createElement("path",{fill:"#00bcd4",d:"M10.458 5.507c2.017 0 5.937 3.177 9.006 8.493 3.722 6.447 3.757 11.687 2.536 12.392a.9.9 0 0 1-.457.1c-2.017 0-5.938-3.176-9.007-8.492C8.814 11.553 8.779 6.313 10 5.608a.9.9 0 0 1 .458-.1m-.001-2A2.87 2.87 0 0 0 9 3.875C6.13 5.532 6.938 12.304 10.804 19c3.284 5.69 7.72 9.493 10.74 9.493A2.87 2.87 0 0 0 23 28.124c2.87-1.656 2.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z"}),K.createElement("path",{fill:"#00bcd4",d:"M21.543 5.507a.9.9 0 0 1 .457.1c1.221.706 1.186 5.946-2.536 12.393-3.07 5.316-6.99 8.493-9.007 8.493a.9.9 0 0 1-.457-.1C8.779 25.686 8.814 20.446 12.536 14c3.07-5.316 6.99-8.493 9.007-8.493m0-2c-3.02 0-7.455 3.804-10.74 9.493C6.939 19.696 6.13 26.468 9 28.124a2.87 2.87 0 0 0 1.457.369c3.02 0 7.455-3.804 10.74-9.493C25.061 12.304 25.87 5.532 23 3.876a2.87 2.87 0 0 0-1.457-.369"})),S7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ff7043",d:"m30 12-4-2V6h-4l-2-4-4 2-4-2-2 4H6v4l-4 2 2 4-2 4 4 2v4h4l2 4 4-2 4 2 2-4h4v-4l4-2-2-4ZM6 16a9.9 9.9 0 0 1 .842-4H10v8H6.842A9.9 9.9 0 0 1 6 16m10 10a9.98 9.98 0 0 1-7.978-4H16v-2h-2v-2h4c.819.819.297 2.308 1.179 3.37a1.89 1.89 0 0 0 1.46.63h3.34A9.98 9.98 0 0 1 16 26m-2-12v-2h4a1 1 0 0 1 0 2Zm11.158 6H24a2.006 2.006 0 0 1-2-2 2 2 0 0 0-2-2 3 3 0 0 0 3-3q0-.08-.004-.161A3.115 3.115 0 0 0 19.83 10H8.022a9.986 9.986 0 0 1 17.136 10"})),Jk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ec407a",d:"M27.837 5.673a4.33 4.33 0 0 0-2.293-2.701c-2.362-1.261-6.11-1.298-9.548-.092a26.3 26.3 0 0 0-8.76 4.966c-2.752 2.542-3.438 4.925-3.189 6.194.523 2.668 3.274 4.539 5.485 6.042.418.284.822.559 1.175.816-1.429.76-4.261 2.444-5.088 4.248a3.88 3.88 0 0 0-.118 3.332A2.37 2.37 0 0 0 6.869 29.8a5.6 5.6 0 0 0 1.49.2 6.35 6.35 0 0 0 5.19-2.856 6.74 6.74 0 0 0 .864-5.382 7.3 7.3 0 0 1 2.044-.03 3.92 3.92 0 0 1 2.816 1.311 1.82 1.82 0 0 1 .423 1.262 1.55 1.55 0 0 1-.772 1.05c-.234.14-.586.355-.504.803.036.194.198.633.894.512a2.93 2.93 0 0 0 2.145-2.651 4 4 0 0 0-1.197-2.904 5.94 5.94 0 0 0-4.396-1.626 10.6 10.6 0 0 0-2.672.304 20 20 0 0 0-2.203-1.846c-1.712-1.3-3.33-2.529-3.235-4.26.125-2.263 2.468-4.532 6.964-6.744 4.016-1.976 7.254-2.037 8.944-1.438a2 2 0 0 1 1.204.883 2.77 2.77 0 0 1-.36 2.47 9.71 9.71 0 0 1-7.425 4.304 3.86 3.86 0 0 1-3.238-.757c-.278-.302-.593-.645-1.074-.383q-.565.31-.225 1.189a3.9 3.9 0 0 0 2.407 1.92 11.7 11.7 0 0 0 7.128-.671c3.527-1.35 6.681-5.202 5.756-8.787M11.895 24.475a4 4 0 0 1-.192.468 4.5 4.5 0 0 1-.753 1.081 2.83 2.83 0 0 1-2.533 1.107c-.056-.032-.078-.146-.085-.193a3.28 3.28 0 0 1 1.076-2.284 11.3 11.3 0 0 1 2.644-1.933 3.85 3.85 0 0 1-.157 1.754"})),kf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11Zm7,16H22.44189l-4.60968,3.00812L22.41693,24H24v4H18V24h.75739l-2.755-1.79779L13.2475,24H14v4H8V24H9.58783l4.58478-2.99188L9.563,18H8V14h6v4h-.77734l2.77972,1.814L18.78223,18H18V14h6Zm-8-6V4l8,8Z",style:{fill:"#8bc34a"}})),i5=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#42a5f5",d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"})),E7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#cfd8dc",d:"M4 6V4h8v2H9v7H7V6z"}),K.createElement("path",{fill:"#ef5350",d:"M4 1v1H2v12h2v1H1V1zm8 0v1h2v12h-2v1h3V1z"})),H7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#757575",d:"M15 2H6a2.006 2.006 0 0 0-2 2v22a2.006 2.006 0 0 0 2 2h6v-4H6v-2h6v-2H6v-2h6v-2H6v-2h6v-2h2V4l8 8h2v-1Z","data-mit-no-recolor":"true"}),K.createElement("path",{fill:"#0288d1",d:"M12 12v18h18V12Zm8 6h-2v8h-2v-8h-2v-2h6Zm8 0h-4v2h2a2.006 2.006 0 0 1 2 2v2a2.006 2.006 0 0 1-2 2h-4v-2h4v-2h-2a2.006 2.006 0 0 1-2-2v-2a2.006 2.006 0 0 1 2-2h4Z"})),_7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#0288d1",d:"M2 2v12h12V2zm4 6h3v1H8v4H7V9H6zm5 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1"})),os=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M24,6l2,6H22L20,6H17l2,6H15L13,6H10l2,6H8L6,6H5A3,3,0,0,0,2,9V23a3,3,0,0,0,3,3H27a3,3,0,0,0,3-3V6Z",style:{fill:"#ff9800"}})),eD=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ffab00",d:"M10 2v16h4v12l9-16h-6l5-12Z"})),w7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#41b883",d:"M1.791 3.851 12 21.471 22.209 3.936V3.85H18.24l-6.18 10.616L5.906 3.851z"}),K.createElement("path",{fill:"#35495e",d:"m5.907 3.851 6.152 10.617L18.24 3.851h-3.723L12.084 8.03 9.66 3.85z"})),C7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#FAFAFA",fillOpacity:.785,d:"m19.376 15.988-7.708 4.45-7.709-4.45v-8.9l7.709-4.451 7.708 4.45z"}),K.createElement("path",{fill:"#90CAF9",d:"M12.286 1.98c-.21 0-.41.059-.57.179l-7.9 4.44c-.32.17-.53.5-.53.88v9c0 .38.21.711.53.881l7.9 4.44c.16.12.36.18.57.18s.41-.06.57-.18l7.9-4.44c.32-.17.53-.5.53-.88v-9c0-.38-.21-.712-.53-.882l-7.9-4.44a.95.95 0 0 0-.57-.179zm0 2.15 7 3.94v2.103h-.016v5.177h.016v.54l-7 3.939-7-3.94V8.07zm0 2.08-4.9 2.83 4.9 2.83 4.9-2.83zm-5 5.08v3.58l4 2.309v-3.58l-4-2.31zm10 0-4 2.308v3.58l4-2.308z"}),K.createElement("path",{fill:"#0277BD",d:"m12.286 6.21-4.9 2.83 4.9 2.83 4.9-2.83zm-5 5.08v3.58l4 2.309v-3.58l-4-2.31zm10 0-4 2.308v3.58l4-2.308z"})),Df=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#01579b",d:"M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2m7 1.5V9h5.5zM7 13l1.5 7h2l1.5-3 1.5 3h2l1.5-7h1v-2h-4v2h1l-.9 4.2L13 15h-2l-1.1 2.2L9 13h1v-2H6v2z"})),A7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11ZM14.97656,26.10535,12.90942,28,8,22l4.90942-6,2.06714,1.89459L11.61749,22ZM19.09058,28l-2.06714-1.89465L20.38251,22l-3.35907-4.10541L19.09058,16,24,22ZM16,12V4l8,8Z",style:{fill:"#8bc34a"}})),tD=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#FF5252",d:"M13 9h5.5L13 3.5zM6 2h8l6 6v12c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2m12 16v-2H9v2zm-4-4v-2H6v2z"})),a5=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M27,4H5A1,1,0,0,0,4,5V27a1,1,0,0,0,1,1H27a1,1,0,0,0,1-1V5A1,1,0,0,0,27,4ZM20,14H16v4h4v4H16V18H12V14h4V10H12V6h4v4h4Z",style:{fill:"#afb42b"}}));Ee.div`
408
+ `;function f7e({className:e,name:t,value:r,extraTail:n,titleExtra:i}){const{id:a,path:o,onKeyClick:s}=f4(),[l,u]=W.useState(r),[c,{wrap:Q}]=n5(),T=W.useRef(null),[f,h]=W.useState(""),p=W.useRef(null),[g,d]=W.useState([]),{t:m}=Jt(),y=W.useMemo(()=>{try{return h(""),JSON.parse(l??"")}catch(V){return l&&l.length>0&&h(V.toString()),l}},[l]),[x]=M6(y),O=W.useMemo(()=>y?typeof y!="object"?[]:Object.keys(y):[],[y]),v=W.useMemo(()=>Kse.validate(y).length===0,[y]),L=W.useMemo(()=>Yse.validate(y).length===0,[y]),b=W.useMemo(()=>Jse.validate(y).length===0,[y]),S=W.useCallback(V=>{if(V){const _=O.filter(D=>v?t7e.includes(D):L?r7e.includes(D):b?n7e.includes(D):i7e.includes(D)).map(D=>({id:Wi(),field:D,value:x5(y,D)??y,renderAs:e7e[D]??"raw"}));d(D=>D.length===0?[{id:"whole",field:"__whole__",renderAs:"json"},..._]:D)}},[b,v,L,O,y]),[E,{preview:C},A]=P6(!1,S),w=W.useRef({__root__:new p8("")});W.useEffect(()=>{u(r)},[r]),W.useEffect(()=>{const V=_=>{const D=_.detail.field,Z=_.detail.blockId,k=_.detail.parentField??"__whole__",re=`${Z}-${D}`,oe=`${Z}-${k}`,ae=w.current[oe],G=new p8(D,ae),X=Fk(D,_.detail.value);if(w.current[re]=G,a===Z){try{g.length===0?d([{id:"whole",field:"__whole__",renderAs:"json"},{id:Wi(),field:G.fullPath,renderAs:X}]):g.find(ee=>ee.field===D)||d(ee=>[...ee,{id:Wi(),field:G.fullPath,renderAs:X}])}catch(ee){console.error("error",ee)}A(!0),s?.(G.fullPath,x5(y,G.fullPath)??"")}};return document.addEventListener(q0,V),()=>{document.removeEventListener(q0,V)}},[a,g,y,A,s,o]);const M=jk(T.current),P=W.useMemo(()=>({wrap:Q??!1,value:l,onChange:u}),[Q,l]),N=W.useMemo(()=>({value:y,path:o}),[y,o]),j=W.useMemo(()=>{if(!T.current)return;const V=g.length??1,_=Math.floor(96/V),D=Math.floor(M.height/4);return g.map((Z,k)=>({i:Z.id,x:_*k,y:0,w:_,h:D}))},[g,M.height]),R=W.useCallback(V=>{d(_=>_.filter(D=>D.id!==V))},[]);return B.jsx(Yb.Provider,{value:N,children:B.jsx(_n.Provider,{value:P,children:B.jsx(Y1,{className:e,name:t,ref:p,titleExtra:i,extra:B.jsxs(o7e,{children:[!C&&c,E,B.jsx(K2,{elementRef:p}),x,n]}),children:B.jsxs("div",{ref:T,children:[f&&B.jsx(l7e,{children:B.jsx(u7e,{children:f})}),B.jsx(Q7e,{visible:C,children:B.jsx(s7e,{height:M.height,children:B.jsx(Dm,{layout:j,cols:96,rowHeight:4,draggableHandle:".field-name",width:M.width,margin:[0,0],className:"draggable-layout",resizeHandles:["nw","se","ne","sw"],children:g.map(V=>B.jsx(T7e,{children:B.jsx(a7e,{renderAs:V.renderAs,name:V.field,value:V.field==="__whole__"?y:x5(y,V.field),extraTail:V.field!=="__whole__"&&B.jsx(B.Fragment,{children:B.jsx(we.Tooltip,{title:m("renderer.close"),children:B.jsx(we.Button,{size:"small",type:"text",icon:B.jsx(Qs,{}),onClick:()=>R?.(V.id)})})})})},V.id))})})}),B.jsx(c7e,{visible:!C})]})})})})}const h7e={textLikePreviewer:"_textLikePreviewer_7q5wf_1"};function d7e({name:e,type:t,className:r,extraTail:n,titleExtra:i}){const{data:a,onNext:o,onPrev:s,prevable:l,nextable:u}=f4(),[c,Q]=W.useState(void 0),{t:T}=Jt();W.useEffect(()=>{Q(a?.content)},[a]);const f=["jsonl","json","csv","txt"].includes(t)?B.jsxs(we.Space.Compact,{children:[B.jsx(we.Tooltip,{title:T("textPreviewer.prevSection"),children:B.jsx(we.Button,{size:"small",type:"text",disabled:!l,onClick:s,icon:B.jsx(R8,{})})}),B.jsx(we.Tooltip,{title:T("textPreviewer.nextSection"),children:B.jsx(we.Button,{size:"small",type:"text",disabled:!u,onClick:o,icon:B.jsx(B8,{})})})]}):null;let h=null;return t==="jsonl"?h=f7e:h=wf(t)?.renderer??Pi.raw.renderer,h?B.jsx(h,{name:e,className:$d(r,h7e.textLikePreviewer),value:c,titleExtra:B.jsxs(B.Fragment,{children:[i,f]}),extraTail:n}):null}const Cf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm6,10H18v8a4,4,0,1,1-4-4,3.9588,3.9588,0,0,1,2,.55475V8h6Z",style:{fill:"#ef5350"}})),qk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#fdd835",d:"M18.23 11.21q-.045-.24-1.32-1.65c-.02-.19.29-.45.9-.8l1.74-1.55c.39-.5.62-1.28.69-2.38l-.02-.26c-.07-.78-.63-1.4-1.69-1.89-.63-.42-1.76-.65-3.38-.68-1.35.11-3.11.59-5.28 1.43-.6.43-1.28.86-2.04 1.28l.01.14.21-.08c.08-.01.13.03.14.11l.13-.07.07-.01.01.06c0 .07-.47.44-1.76 1.35l-.06.12c-.31.02-.61.25-.91.67l.08.12.25-.09.18.24c.32-.33.66-.62 1.03-.87.19.05.29.11.44.16 1.02-.75 2.03-1.3 3.04-1.64l.01.14c-.2.27-.32.42-.38.42l.1.23c.01.19-2.55 7-6.66 14.44l.08.19c.35-.08.58-.17.75-.26l.01.13.4-.03-.67 1.76.14.06c.57-.64 1-1.29 1.3-1.88 1.67-.49 2.94-.97 3.82-1.44.88-.08 1.56-.31 2.02-.7l.92-.47c1.27-.98 2.22-1.67 2.87-2.08 1.33-.98 2.2-1.93 2.6-2.85zm-3.46 2.31L13 14.91c-1.29.85-2 1.3-2.09 1.3-2.07 1.13-3.36 1.72-3.86 1.76l-.05.01c.04-.23.96-2.12 2.75-5.67.78-.06 2.02-.43 3.71-1.1l.41-.03c.85-.08 1.49.09 1.91.49l.03.26c-.31.9-.67 1.44-1.04 1.59m1.09-5.78q-.27.33-1.5 1.11c-.27.03-1.27.42-3.01 1.18l-.28-.05-.01-.12c-.02-.25.09-.57.34-.95.13-.7.28-1.12.44-1.2l1.45-3.28c-.02-.22.29-.35.93-.46l.21-.02.01.18 1.16-.16c1.15-.1 1.75.14 1.8.7l.13-.02-.03-.32.15-.02c.35.19.52.4.54.68.02.18-.08.41-.29.68-.09.01-.14-.06-.15-.18l-.14.01-.03.4c-.58.87-1.01 1.31-1.27 1.34z"})),p7e=e=>K.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},K.createElement("path",{d:"M8.03243 3.33325C8.25344 3.33325 8.4654 3.42105 8.62168 3.57733L9.80019 4.75584C9.95647 4.91212 10.1684 4.99992 10.3894 4.99992H17.5443C18.0045 4.99992 18.3776 5.37301 18.3776 5.83325V15.8333C18.3776 16.2935 18.0045 16.6666 17.5443 16.6666H2.54427C2.08403 16.6666 1.71094 16.2935 1.71094 15.8333V4.16659C1.71094 3.70635 2.08403 3.33325 2.54427 3.33325H8.03243Z",fill:"#FFBA52"}),K.createElement("path",{d:"M3.37793 8.75C3.37793 8.05964 3.93757 7.5 4.62793 7.5H15.4613C16.1516 7.5 16.7113 8.05964 16.7113 8.75H3.37793Z",fill:"white"})),m7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#7e57c2",d:"M20 18h-2v-2h-2v2c0 .193 0 .703 1.254 1.033A3.345 3.345 0 0 1 20 22h2v2h2v-2c0-.388-.562-.851-1.254-1.034C20.356 20.34 20 18.84 20 18m-3.254 2.966C14.356 20.34 14 18.84 14 18h-2v-2h-2v8h2v-2h4v2h2v-2c0-.388-.562-.851-1.254-1.034"}),K.createElement("path",{fill:"#7e57c2",d:"M24 4H4v20a4 4 0 0 0 4 4h16.16A3.84 3.84 0 0 0 28 24.16V8a4 4 0 0 0-4-4m2 14h-2v-2h-2v2c0 .193 0 .703 1.254 1.033A3.345 3.345 0 0 1 26 22v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2 2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2 2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 2 2 0 0 1 2-2h2a2 2 0 0 1 2 2Z"})),Zk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ffca28",d:"M16 24c-5.525 0-10-.9-10-2v4c0 1.1 4.475 2 10 2s10-.9 10-2v-4c0 1.1-4.475 2-10 2m0-8c-5.525 0-10-.9-10-2v4c0 1.1 4.475 2 10 2s10-.9 10-2v-4c0 1.1-4.475 2-10 2m0-12C10.477 4 6 4.895 6 6v4c0 1.1 4.475 2 10 2s10-.9 10-2V6c0-1.105-4.477-2-10-2"})),Af=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#0288D1",d:"M21.81 10.25c-.06-.04-.56-.43-1.64-.43-.28 0-.56.03-.84.08-.21-1.4-1.38-2.11-1.43-2.14l-.29-.17-.18.27c-.24.36-.43.77-.51 1.19-.2.8-.08 1.56.33 2.21-.49.28-1.29.35-1.46.35H2.62c-.34 0-.62.28-.62.63 0 1.15.18 2.3.58 3.38.45 1.19 1.13 2.07 2 2.61.98.6 2.59.94 4.42.94.79 0 1.61-.07 2.42-.22 1.12-.2 2.2-.59 3.19-1.16A8.3 8.3 0 0 0 16.78 16c1.05-1.17 1.67-2.5 2.12-3.65h.19c1.14 0 1.85-.46 2.24-.85.26-.24.45-.53.59-.87l.08-.24zm-17.96.99h1.76c.08 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H3.85c-.09 0-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.43 0h1.76c.08 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16H6.28c-.09 0-.16.07-.16.16v1.58c.01.09.07.16.16.16m2.47 0h1.75c.1 0 .17-.07.17-.16V9.5c0-.08-.06-.16-.17-.16H8.75c-.08 0-.15.07-.15.16v1.58c0 .09.06.16.15.16m2.44 0h1.77c.08 0 .15-.07.15-.16V9.5c0-.08-.06-.16-.15-.16h-1.77c-.08 0-.15.07-.15.16v1.58c0 .09.07.16.15.16M6.28 9h1.76c.08 0 .16-.09.16-.18V7.25c0-.09-.07-.16-.16-.16H6.28c-.09 0-.16.06-.16.16v1.57c.01.09.07.18.16.18m2.47 0h1.75c.1 0 .17-.09.17-.18V7.25c0-.09-.06-.16-.17-.16H8.75c-.08 0-.15.06-.15.16v1.57c0 .09.06.18.15.18m2.44 0h1.77c.08 0 .15-.09.15-.18V7.25c0-.09-.07-.16-.15-.16h-1.77c-.08 0-.15.06-.15.16v1.57c0 .09.07.18.15.18m0-2.28h1.77c.08 0 .15-.07.15-.16V5c0-.1-.07-.17-.15-.17h-1.77c-.08 0-.15.06-.15.17v1.56c0 .08.07.16.15.16m2.46 4.52h1.76c.09 0 .16-.07.16-.16V9.5c0-.08-.07-.16-.16-.16h-1.76c-.08 0-.15.07-.15.16v1.58c0 .09.07.16.15.16"})),Mf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#3f51b5",d:"M22.713 4H9.287a.5.5 0 0 0-.432.248l-6.708 11.5a.5.5 0 0 0 0 .504l6.708 11.5a.5.5 0 0 0 .432.248h13.426a.5.5 0 0 0 .432-.248l6.708-11.5a.5.5 0 0 0 0-.504l-6.708-11.5A.5.5 0 0 0 22.713 4m-6.937 20.888-7.5-3.75A.5.5 0 0 1 8 20.691v-9.382a.5.5 0 0 1 .276-.447l7.5-3.75a.5.5 0 0 1 .448 0l7.5 3.75a.5.5 0 0 1 .276.447v9.382a.5.5 0 0 1-.276.447l-7.5 3.75a.5.5 0 0 1-.448 0"}),K.createElement("path",{fill:"#7986cb",d:"M22 19.441v-6.882a.5.5 0 0 0-.276-.447l-5.5-2.75a.5.5 0 0 0-.448 0l-5.5 2.75a.5.5 0 0 0-.276.447v6.882a.5.5 0 0 0 .276.447l5.5 2.75a.5.5 0 0 0 .448 0l5.5-2.75a.5.5 0 0 0 .276-.447"})),g7e=e=>K.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},K.createElement("path",{d:"M8.03243 3.33325C8.25344 3.33325 8.4654 3.42105 8.62168 3.57733L9.80019 4.75584C9.95647 4.91212 10.1684 4.99992 10.3894 4.99992H17.5443C18.0045 4.99992 18.3776 5.37301 18.3776 5.83325V15.8333C18.3776 16.2935 18.0045 16.6666 17.5443 16.6666H2.54427C2.08403 16.6666 1.71094 16.2935 1.71094 15.8333V4.16659C1.71094 3.70635 2.08403 3.33325 2.54427 3.33325H8.03243Z",fill:"#3477EB"}),K.createElement("path",{d:"M3.37695 8.75C3.37695 8.05964 3.9366 7.5 4.62695 7.5H15.4603C16.1506 7.5 16.7103 8.05964 16.7103 8.75H3.37695Z",fill:"white"})),O7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#e64a19",d:"M13.172 2.828 11.78 4.22l1.91 1.91 2 2A2.986 2.986 0 0 1 20 10.81a3.25 3.25 0 0 1-.31 1.31l2.06 2a2.68 2.68 0 0 1 3.37.57 2.86 2.86 0 0 1 .88 2.117 3.02 3.02 0 0 1-.856 2.109A2.9 2.9 0 0 1 23 19.81a2.93 2.93 0 0 1-2.13-.87 2.694 2.694 0 0 1-.56-3.38l-2-2.06a3 3 0 0 1-.31.12V20a3 3 0 0 1 1.44 1.09 2.92 2.92 0 0 1 .56 1.72 2.88 2.88 0 0 1-.878 2.128 2.98 2.98 0 0 1-2.048.871 2.981 2.981 0 0 1-2.514-4.719A3 3 0 0 1 16 20v-6.38a2.96 2.96 0 0 1-1.44-1.09 2.9 2.9 0 0 1-.56-1.72 2.9 2.9 0 0 1 .31-1.31l-3.9-3.9-7.579 7.572a4 4 0 0 0-.001 5.658l10.342 10.342a4 4 0 0 0 5.656 0l10.344-10.344a4 4 0 0 0 0-5.656L18.828 2.828a4 4 0 0 0-5.656 0"})),y7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#00acc1",d:"M2 12h4v2H2zm-2 4h6v2H0zm4 4h2v2H4zm16.954-5H14v3h3.239a4.42 4.42 0 0 1-3.531 2 2.65 2.65 0 0 1-2.053-.858 2.86 2.86 0 0 1-.628-2.28A4.515 4.515 0 0 1 15.292 13a2.73 2.73 0 0 1 1.749.584l2.962-1.185A5.6 5.6 0 0 0 15.292 10a7.526 7.526 0 0 0-7.243 6.5 5.614 5.614 0 0 0 5.659 6.5 7.526 7.526 0 0 0 7.243-6.5 6.4 6.4 0 0 0 .003-1.5"}),K.createElement("path",{fill:"#00acc1",d:"M26.292 10a7.526 7.526 0 0 0-7.243 6.5 5.614 5.614 0 0 0 5.659 6.5 7.526 7.526 0 0 0 7.243-6.5 5.614 5.614 0 0 0-5.659-6.5m2.681 6.137A4.515 4.515 0 0 1 24.708 20a2.65 2.65 0 0 1-2.053-.858 2.86 2.86 0 0 1-.628-2.28A4.515 4.515 0 0 1 26.292 13a2.65 2.65 0 0 1 2.053.858 2.86 2.86 0 0 1 .628 2.28Z"})),zk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ec407a",d:"M6 20h20v2H6z"}),K.createElement("circle",{cx:7,cy:21,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:16,cy:27,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:25,cy:21,r:3,fill:"#ec407a"}),K.createElement("path",{fill:"#ec407a",d:"M6 10h20v2H6z"}),K.createElement("circle",{cx:7,cy:11,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:16,cy:5,r:3,fill:"#ec407a"}),K.createElement("circle",{cx:25,cy:11,r:3,fill:"#ec407a"}),K.createElement("path",{fill:"#ec407a",d:"M6 12h2v10H6zm18-2h2v12h-2z"}),K.createElement("path",{fill:"#ec407a",d:"m5.014 19.41 11.674 6.866L15.674 28 4 21.134z"}),K.createElement("path",{fill:"#ec407a",d:"M26.688 21.724 15.014 28.59 14 26.866 25.674 20zM5.124 10.382l11.415-7.29 1.077 1.686L6.2 12.068z"}),K.createElement("path",{fill:"#ec407a",d:"m25.798 12.067-11.415-7.29 1.077-1.685 11.415 7.29zM6.2 19.932l11.416 7.29-1.077 1.686-11.415-7.29z"}),K.createElement("path",{fill:"#ec407a",d:"m26.875 21.619-11.415 7.29-1.077-1.687 11.415-7.289zM5.877 22.6 16.04 3.686l1.762.946L7.638 23.546z"}),K.createElement("path",{fill:"#ec407a",d:"M24.361 23.545 14.197 4.633l1.761-.947 10.165 18.913z"})),Xk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M4,4,6,26l10,2,10-2L28,4Zm19.72,7H11.28l.29,3H23.43l-.80243,9.335L15.99,25,9.35522,23.3537,8.93,19h3.02l.19,2,3.86.77L19.84,21l.29-4H8.84L8,8H24Z",style:{fill:"#e44d26"}})),ki=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11ZM11,12a3,3,0,1,1-3,3A3,3,0,0,1,11,12ZM24,28H8l6-8,4,4,6-6ZM16,12V4l8,8Z",style:{fill:"#26a69a"}})),Pf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#f44336",d:"M4 26h24v2H4zM28 4H7a1 1 0 0 0-1 1v13a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-4h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 8h-4V6h4Z"})),v7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#ffca28",d:"M2 2v12h12V2zm6 6h1v4a1.003 1.003 0 0 1-1 1H7a1.003 1.003 0 0 1-1-1v-1h1v1h1zm3 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1"})),Uk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 -960 960 960",...e},K.createElement("path",{fill:"#f9a825",d:"M560-160v-80h120q17 0 28.5-11.5T720-280v-80q0-38 22-69t58-44v-14q-36-13-58-44t-22-69v-80q0-17-11.5-28.5T680-720H560v-80h120q50 0 85 35t35 85v80q0 17 11.5 28.5T840-560h40v160h-40q-17 0-28.5 11.5T800-360v80q0 50-35 85t-85 35H560Zm-280 0q-50 0-85-35t-35-85v-80q0-17-11.5-28.5T120-400H80v-160h40q17 0 28.5-11.5T160-600v-80q0-50 35-85t85-35h120v80H280q-17 0-28.5 11.5T240-680v80q0 38-22 69t-58 44v14q36 13 58 44t22 69v80q0 17 11.5 28.5T280-240h120v80H280Z"})),x7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#0277bd",d:"M8 3a2 2 0 0 0-2 2v4a2 2 0 0 1-2 2H3v2h1a2 2 0 0 1 2 2v4a2 2 0 0 0 2 2h2v-2H8v-5a2 2 0 0 0-2-2 2 2 0 0 0 2-2V5h2V3m6 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-2 2 2 0 0 1-2-2V5h-2V3z"})),Wk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("g",null,K.createElement("polygon",{points:"14 10 10 13.5 6 10 4 10 4 22 8 22 8 16 10 18 12 16 12 22 16 22 16 10 14 10",style:{fill:"#42a5f5"}}),K.createElement("polygon",{points:"26 16 26 10 22 10 22 16 18 16 24 24 30 16 26 16",style:{fill:"#42a5f5"}}))),m8=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#E53935",d:"M4 4v24h24V4Zm20 20h-4V12h-4v12H8V8h16Z"})),L7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("g",null,K.createElement("path",{d:"M14.32349,17.105l.18066-.92578.03387-.18066a1.57265,1.57265,0,0,0-.10162-1.242l-.16937-.05646-.079.1355a4.08291,4.08291,0,0,0,.079,2.31452Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M8.94891,27.20966c.50812-.16932,1.17426-.91449,1.90821-2.258l-.542.35A4.16944,4.16944,0,0,0,8.94891,27.20966Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M14.35736,19.80334a16.72025,16.72025,0,0,1-1.14038,2.7096l-.56458,1.17419.12421-.04516a21.30419,21.30419,0,0,1,3.77124-1.05l-.46289-.36127A6.93668,6.93668,0,0,1,14.35736,19.80334Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11Zm4.67407,22.10486a1.33172,1.33172,0,0,1-1.02746.33874,8.368,8.368,0,0,1-3.38739-.83551,23.68313,23.68313,0,0,0-4.55036.84681l-.20324.079C11.10553,26.92743,10.06671,28,9.15216,28l-.49683-.12421-.542-.35-.03387-.05646a1.02534,1.02534,0,0,1-.05646-.60968,4.42139,4.42139,0,0,1,2.12274-2.39349l1.005-.55323,1.08392-2.03222a19.08765,19.08765,0,0,0,1.21948-3.308V18.5614a5.572,5.572,0,0,1-.24841-3.69189,1.07706,1.07706,0,0,1,.892-.86933h.271a.96338.96338,0,0,1,.68878.27094c.74524.74518.39521,2.56286.02259,4.06445l-.04517.15808A6.66531,6.66531,0,0,0,16.84143,21.384l.98236.65479,1.45654-.079c1.40015,0,2.247.24841,2.57441.779a.90834.90834,0,0,1,.13549.621A1.091,1.091,0,0,1,21.67407,24.10486ZM16,12V4l8,8Z",style:{fill:"#ef5350"}}),K.createElement("path",{d:"M19.0658,22.90814a.266.266,0,0,0-.25971.11286,6.04074,6.04074,0,0,0,2.14533.5758l.21453-.02258h.04517c.05646-.02258.09033-.03388.10162-.14673l-.10162-.12421C21.09821,23.19037,20.64661,22.90814,19.0658,22.90814Z",style:{fill:"#ef5350"}}))),b7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#1E88E5",d:"M12 18.08c-6.63 0-12-2.72-12-6.08s5.37-6.08 12-6.08S24 8.64 24 12s-5.37 6.08-12 6.08m-5.19-7.95c.54 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.58 1.09q-.42.33-1.29.33h-.87l.53-2.76zm-3.5 5.55h1.44l.34-1.75h1.23c.54 0 .98-.06 1.33-.17.35-.12.67-.31.96-.58.24-.22.43-.46.58-.73.15-.26.26-.56.31-.88.16-.78.05-1.39-.33-1.82-.39-.44-.99-.65-1.82-.65H4.59zm7.25-8.33-1.28 6.58h1.42l.74-3.77h1.14c.36 0 .6.06.71.18s.13.34.07.66l-.57 2.93h1.45l.59-3.07c.13-.62.03-1.07-.27-1.36-.3-.27-.85-.4-1.65-.4h-1.27L12 7.35zM18 10.13c.55 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.57 1.09-.29.22-.72.33-1.3.33h-.85l.5-2.76zm-3.5 5.55h1.44l.34-1.75h1.22c.55 0 1-.06 1.35-.17.35-.12.65-.31.95-.58.24-.22.44-.46.58-.73.15-.26.26-.56.32-.88.15-.78.04-1.39-.34-1.82-.36-.44-.99-.65-1.82-.65h-2.75z"})),Gk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#F44336",d:"M2 8h4v1H2zm0 6h4v1H2zm9-10h3v1h-3zM2 2h3v1H2z"}),K.createElement("path",{fill:"#F9A825",d:"M9 2h3v1H9zm1 4h4v1h-4zm-5 6h1v1H5zm-3-2h6v1H2z"}),K.createElement("path",{fill:"#26A69A",d:"M2 12h3v1H2zm7-4h5v1H9zM2 4h4v1H2zm3-2h4v1H5z"}),K.createElement("path",{fill:"#BA68C8",d:"M2 6h3v1H2zm7-2h2v1H9zm-1 6h4v1H8z"})),Yk=e=>K.createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e},K.createElement("path",{d:"M9.86 2A2.86 2.86 0 0 0 7 4.86v1.68h4.29c.39 0 .71.57.71.96H4.86A2.86 2.86 0 0 0 2 10.36v3.781a2.86 2.86 0 0 0 2.86 2.86h1.18v-2.68a2.85 2.85 0 0 1 2.85-2.86h5.25c1.58 0 2.86-1.271 2.86-2.851V4.86A2.86 2.86 0 0 0 14.14 2zm-.72 1.61c.4 0 .72.12.72.71s-.32.891-.72.891c-.39 0-.71-.3-.71-.89s.32-.711.71-.711z",fill:"#3c78aa"}),K.createElement("path",{d:"M17.959 7v2.68a2.85 2.85 0 0 1-2.85 2.859H9.86A2.85 2.85 0 0 0 7 15.389v3.75a2.86 2.86 0 0 0 2.86 2.86h4.28A2.86 2.86 0 0 0 17 19.14v-1.68h-4.291c-.39 0-.709-.57-.709-.96h7.14A2.86 2.86 0 0 0 22 13.64V9.86A2.86 2.86 0 0 0 19.14 7zM8.32 11.513l-.004.004c.012-.002.025-.001.038-.004zm6.54 7.276c.39 0 .71.3.71.89a.71.71 0 0 1-.71.71c-.4 0-.72-.12-.72-.71s.32-.89.72-.89z",fill:"#fdd835"})),Kk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#00bcd4",d:"M16 12c7.444 0 12 2.59 12 4s-4.556 4-12 4-12-2.59-12-4 4.556-4 12-4m0-2c-7.732 0-14 2.686-14 6s6.268 6 14 6 14-2.686 14-6-6.268-6-14-6"}),K.createElement("path",{fill:"#00bcd4",d:"M16 14a2 2 0 1 0 2 2 2 2 0 0 0-2-2"}),K.createElement("path",{fill:"#00bcd4",d:"M10.458 5.507c2.017 0 5.937 3.177 9.006 8.493 3.722 6.447 3.757 11.687 2.536 12.392a.9.9 0 0 1-.457.1c-2.017 0-5.938-3.176-9.007-8.492C8.814 11.553 8.779 6.313 10 5.608a.9.9 0 0 1 .458-.1m-.001-2A2.87 2.87 0 0 0 9 3.875C6.13 5.532 6.938 12.304 10.804 19c3.284 5.69 7.72 9.493 10.74 9.493A2.87 2.87 0 0 0 23 28.124c2.87-1.656 2.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z"}),K.createElement("path",{fill:"#00bcd4",d:"M21.543 5.507a.9.9 0 0 1 .457.1c1.221.706 1.186 5.946-2.536 12.393-3.07 5.316-6.99 8.493-9.007 8.493a.9.9 0 0 1-.457-.1C8.779 25.686 8.814 20.446 12.536 14c3.07-5.316 6.99-8.493 9.007-8.493m0-2c-3.02 0-7.455 3.804-10.74 9.493C6.939 19.696 6.13 26.468 9 28.124a2.87 2.87 0 0 0 1.457.369c3.02 0 7.455-3.804 10.74-9.493C25.061 12.304 25.87 5.532 23 3.876a2.87 2.87 0 0 0-1.457-.369"})),S7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ff7043",d:"m30 12-4-2V6h-4l-2-4-4 2-4-2-2 4H6v4l-4 2 2 4-2 4 4 2v4h4l2 4 4-2 4 2 2-4h4v-4l4-2-2-4ZM6 16a9.9 9.9 0 0 1 .842-4H10v8H6.842A9.9 9.9 0 0 1 6 16m10 10a9.98 9.98 0 0 1-7.978-4H16v-2h-2v-2h4c.819.819.297 2.308 1.179 3.37a1.89 1.89 0 0 0 1.46.63h3.34A9.98 9.98 0 0 1 16 26m-2-12v-2h4a1 1 0 0 1 0 2Zm11.158 6H24a2.006 2.006 0 0 1-2-2 2 2 0 0 0-2-2 3 3 0 0 0 3-3q0-.08-.004-.161A3.115 3.115 0 0 0 19.83 10H8.022a9.986 9.986 0 0 1 17.136 10"})),Jk=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ec407a",d:"M27.837 5.673a4.33 4.33 0 0 0-2.293-2.701c-2.362-1.261-6.11-1.298-9.548-.092a26.3 26.3 0 0 0-8.76 4.966c-2.752 2.542-3.438 4.925-3.189 6.194.523 2.668 3.274 4.539 5.485 6.042.418.284.822.559 1.175.816-1.429.76-4.261 2.444-5.088 4.248a3.88 3.88 0 0 0-.118 3.332A2.37 2.37 0 0 0 6.869 29.8a5.6 5.6 0 0 0 1.49.2 6.35 6.35 0 0 0 5.19-2.856 6.74 6.74 0 0 0 .864-5.382 7.3 7.3 0 0 1 2.044-.03 3.92 3.92 0 0 1 2.816 1.311 1.82 1.82 0 0 1 .423 1.262 1.55 1.55 0 0 1-.772 1.05c-.234.14-.586.355-.504.803.036.194.198.633.894.512a2.93 2.93 0 0 0 2.145-2.651 4 4 0 0 0-1.197-2.904 5.94 5.94 0 0 0-4.396-1.626 10.6 10.6 0 0 0-2.672.304 20 20 0 0 0-2.203-1.846c-1.712-1.3-3.33-2.529-3.235-4.26.125-2.263 2.468-4.532 6.964-6.744 4.016-1.976 7.254-2.037 8.944-1.438a2 2 0 0 1 1.204.883 2.77 2.77 0 0 1-.36 2.47 9.71 9.71 0 0 1-7.425 4.304 3.86 3.86 0 0 1-3.238-.757c-.278-.302-.593-.645-1.074-.383q-.565.31-.225 1.189a3.9 3.9 0 0 0 2.407 1.92 11.7 11.7 0 0 0 7.128-.671c3.527-1.35 6.681-5.202 5.756-8.787M11.895 24.475a4 4 0 0 1-.192.468 4.5 4.5 0 0 1-.753 1.081 2.83 2.83 0 0 1-2.533 1.107c-.056-.032-.078-.146-.085-.193a3.28 3.28 0 0 1 1.076-2.284 11.3 11.3 0 0 1 2.644-1.933 3.85 3.85 0 0 1-.157 1.754"})),kf=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11Zm7,16H22.44189l-4.60968,3.00812L22.41693,24H24v4H18V24h.75739l-2.755-1.79779L13.2475,24H14v4H8V24H9.58783l4.58478-2.99188L9.563,18H8V14h6v4h-.77734l2.77972,1.814L18.78223,18H18V14h6Zm-8-6V4l8,8Z",style:{fill:"#8bc34a"}})),i5=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#42a5f5",d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"})),E7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#cfd8dc",d:"M4 6V4h8v2H9v7H7V6z"}),K.createElement("path",{fill:"#ef5350",d:"M4 1v1H2v12h2v1H1V1zm8 0v1h2v12h-2v1h3V1z"})),H7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#757575",d:"M15 2H6a2.006 2.006 0 0 0-2 2v22a2.006 2.006 0 0 0 2 2h6v-4H6v-2h6v-2H6v-2h6v-2H6v-2h6v-2h2V4l8 8h2v-1Z","data-mit-no-recolor":"true"}),K.createElement("path",{fill:"#0288d1",d:"M12 12v18h18V12Zm8 6h-2v8h-2v-8h-2v-2h6Zm8 0h-4v2h2a2.006 2.006 0 0 1 2 2v2a2.006 2.006 0 0 1-2 2h-4v-2h4v-2h-2a2.006 2.006 0 0 1-2-2v-2a2.006 2.006 0 0 1 2-2h4Z"})),_7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 16 16",...e},K.createElement("path",{fill:"#0288d1",d:"M2 2v12h12V2zm4 6h3v1H8v4H7V9H6zm5 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1"})),os=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M24,6l2,6H22L20,6H17l2,6H15L13,6H10l2,6H8L6,6H5A3,3,0,0,0,2,9V23a3,3,0,0,0,3,3H27a3,3,0,0,0,3-3V6Z",style:{fill:"#ff9800"}})),eD=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{fill:"#ffab00",d:"M10 2v16h4v12l9-16h-6l5-12Z"})),w7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#41b883",d:"M1.791 3.851 12 21.471 22.209 3.936V3.85H18.24l-6.18 10.616L5.906 3.851z"}),K.createElement("path",{fill:"#35495e",d:"m5.907 3.851 6.152 10.617L18.24 3.851h-3.723L12.084 8.03 9.66 3.85z"})),C7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#FAFAFA",fillOpacity:.785,d:"m19.376 15.988-7.708 4.45-7.709-4.45v-8.9l7.709-4.451 7.708 4.45z"}),K.createElement("path",{fill:"#90CAF9",d:"M12.286 1.98c-.21 0-.41.059-.57.179l-7.9 4.44c-.32.17-.53.5-.53.88v9c0 .38.21.711.53.881l7.9 4.44c.16.12.36.18.57.18s.41-.06.57-.18l7.9-4.44c.32-.17.53-.5.53-.88v-9c0-.38-.21-.712-.53-.882l-7.9-4.44a.95.95 0 0 0-.57-.179zm0 2.15 7 3.94v2.103h-.016v5.177h.016v.54l-7 3.939-7-3.94V8.07zm0 2.08-4.9 2.83 4.9 2.83 4.9-2.83zm-5 5.08v3.58l4 2.309v-3.58l-4-2.31zm10 0-4 2.308v3.58l4-2.308z"}),K.createElement("path",{fill:"#0277BD",d:"m12.286 6.21-4.9 2.83 4.9 2.83 4.9-2.83zm-5 5.08v3.58l4 2.309v-3.58l-4-2.31zm10 0-4 2.308v3.58l4-2.308z"})),Df=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#01579b",d:"M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2m7 1.5V9h5.5zM7 13l1.5 7h2l1.5-3 1.5 3h2l1.5-7h1v-2h-4v2h1l-.9 4.2L13 15h-2l-1.1 2.2L9 13h1v-2H6v2z"})),A7e=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M17,2H8A2,2,0,0,0,6,4V28a2,2,0,0,0,2,2H24a2,2,0,0,0,2-2V11ZM14.97656,26.10535,12.90942,28,8,22l4.90942-6,2.06714,1.89459L11.61749,22ZM19.09058,28l-2.06714-1.89465L20.38251,22l-3.35907-4.10541L19.09058,16,24,22ZM16,12V4l8,8Z",style:{fill:"#8bc34a"}})),tD=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e},K.createElement("path",{fill:"#FF5252",d:"M13 9h5.5L13 3.5zM6 2h8l6 6v12c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2m12 16v-2H9v2zm-4-4v-2H6v2z"})),a5=e=>K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",...e},K.createElement("path",{d:"M27,4H5A1,1,0,0,0,4,5V27a1,1,0,0,0,1,1H27a1,1,0,0,0,1-1V5A1,1,0,0,0,27,4ZM20,14H16v4h4v4H16V18H12V14h4V10H12V6h4v4h4Z",style:{fill:"#afb42b"}}));Ee.div`
409
409
  font-size: 16px;
410
410
  `;const Di={folder:B.jsx(g7e,{}),file:B.jsx(i5,{}),bucket:B.jsx(p7e,{}),txt:B.jsx(i5,{}),md:B.jsx(Wk,{}),markdown:B.jsx(Wk,{}),pdf:B.jsx(L7e,{}),doc:B.jsx(Df,{}),docx:B.jsx(Df,{}),rtf:B.jsx(Df,{}),json:B.jsx(Uk,{}),jsonl:B.jsx(Uk,{}),yaml:B.jsx(tD,{}),yml:B.jsx(tD,{}),toml:B.jsx(E7e,{}),xml:B.jsx(A7e,{}),csv:B.jsx(kf,{}),xls:B.jsx(kf,{}),xlsx:B.jsx(kf,{}),sql:B.jsx(Zk,{}),sqlite:B.jsx(Zk,{}),graphql:B.jsx(zk,{}),gql:B.jsx(zk,{}),ts:B.jsx(_7e,{}),tsx:B.jsx(Kk,{}),js:B.jsx(v7e,{}),jsx:B.jsx(Kk,{}),vue:B.jsx(w7e,{}),html:B.jsx(Xk,{}),htm:B.jsx(Xk,{}),css:B.jsx(m7e,{}),less:B.jsx(x7e,{}),sass:B.jsx(Jk,{}),scss:B.jsx(Jk,{}),py:B.jsx(Yk,{}),pyc:B.jsx(Yk,{}),java:B.jsx(Pf,{}),class:B.jsx(Pf,{}),jar:B.jsx(Pf,{}),go:B.jsx(y7e,{}),rs:B.jsx(S7e,{}),php:B.jsx(b7e,{}),sh:B.jsx(i5,{}),bash:B.jsx(i5,{}),zsh:B.jsx(i5,{}),fish:B.jsx(i5,{}),"tsconfig.json":B.jsx(H7e,{}),"package.json":B.jsx(m8,{}),"package-lock.json":B.jsx(m8,{}),"yarn.lock":B.jsx(m8,{}),"pnpm-lock.yaml":B.jsx(m8,{}),".gitignore":B.jsx(O7e,{}),".eslintrc":B.jsx(Mf,{}),".eslintrc.js":B.jsx(Mf,{}),".eslintrc.json":B.jsx(Mf,{}),".prettierrc":B.jsx(Gk,{}),".prettierrc.js":B.jsx(Gk,{}),".babelrc":B.jsx(qk,{}),"babel.config.js":B.jsx(qk,{}),"vite.config.ts":B.jsx(eD,{}),"vite.config.js":B.jsx(eD,{}),"webpack.config.js":B.jsx(C7e,{}),Dockerfile:B.jsx(Af,{}),"docker-compose.yml":B.jsx(Af,{}),"docker-compose.yaml":B.jsx(Af,{}),mp3:B.jsx(Cf,{}),wav:B.jsx(Cf,{}),ogg:B.jsx(Cf,{}),mp4:B.jsx(os,{}),avi:B.jsx(os,{}),mov:B.jsx(os,{}),mkv:B.jsx(os,{}),webm:B.jsx(os,{}),jpg:B.jsx(ki,{}),jpeg:B.jsx(ki,{}),png:B.jsx(ki,{}),gif:B.jsx(ki,{}),svg:B.jsx(ki,{}),webp:B.jsx(ki,{}),ico:B.jsx(ki,{}),zip:B.jsx(a5,{}),rar:B.jsx(a5,{}),"7z":B.jsx(a5,{}),tar:B.jsx(a5,{}),gz:B.jsx(a5,{}),tgz:B.jsx(a5,{})};function g8({path:e,type:t}){const r=n=>{if(!n.includes(".")&&n.endsWith("/"))return"folder";if(n.endsWith(".jsonl.gz"))return"jsonl";const i=n.split("/").pop()?.toLowerCase();if(i&&Di.hasOwnProperty(i))return i;const a=n.split(".").pop()?.toLowerCase();return a&&a in Di?a:"file"};if(t)return Di[t];if(e){const n=e.split("?")[0],i=r(n);return i?Di[i]:Di.file}return Di.file}const M7e=Ee(we.List.Item)`
411
411
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vis3/kit",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "scripts": {
5
5
  "build": "vite build && tsc -d --emitDeclarationOnly",
6
6
  "clean": "rimraf ./node_modules",