@spaceandtimelabs/dapp-mi-space-time 0.1.0-beta.7 → 0.1.0-beta.8
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/build/assets/{ErdWrapper-4b6af17d.js → ErdWrapper-05413d55.js} +1 -1
- package/build/assets/{Queries-73c52fc4.js → Queries-03ae698d.js} +1 -1
- package/build/assets/{QueryEditorWrapper-b4ef5ae8.js → QueryEditorWrapper-d6e9a59b.js} +1 -1
- package/build/assets/{index-73db0973.js → index-2a4b3cf2.js} +2 -2
- package/build/assets/{index-35cf1f3f.js → index-c50205c1.js} +1 -1
- package/build/index.html +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ju as o,j as e,r as t}from"./vendor-charts-b447a932.js";import{u as n,O as s,E as d,a as p}from"./index-
|
|
1
|
+
import{ju as o,j as e,r as t}from"./vendor-charts-b447a932.js";import{u as n,O as s,E as d,a as p}from"./index-2a4b3cf2.js";import"./vendor-editor-bc751fdd.js";import"./vendor-three-3e3142b5.js";const u=r=>{const a=o(),{height:i}=n();return e.jsx(t.Suspense,{fallback:s,children:e.jsx(d,{pageHeight:i,children:a?e.jsx(s,{}):e.jsx(p,{...r,hideSchemaSidebar:!1})})})};export{u as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h7 as zt,mp as Br,r as E,a8 as St,j as f,am as Tt,b3 as x,cL as vn,mq as Fr,cI as rn,mr as Kr,ms as Wr,b5 as dt,c$ as bt,ds as on,al as ht,kz as Dn,bZ as an,co as It,mt as Ur,mu as Vr,mv as zr,db as Y,dw as sr,a9 as ir,b_ as Ve,dy as $r,ce as Gr,lM as Xr,aZ as Zr,dd as Jr,g as sn,a as cr,mw as qr,R as g,mx as I,my as be,mz as Ce,mA as $t,mB as De,mC as eo,mD as $,mE as wn,mF as to,mG as Ct,mH as J,mI as Ye,mJ as Pe,mK as Gt,mL as Ae,mM as no,mN as ro,mO as ie,mP as ce,mQ as Le,mR as Xt,mS as he,mT as Ge,mU as Xe,A as oo,mV as ft,mW as Zt,mX as cn,mY as Rt,mZ as ao,m_ as kn,m$ as Sn,n0 as so,n1 as io,n2 as pr,n3 as bn,n4 as it,n5 as ct,n6 as co,n7 as po,n8 as lr,n9 as ur,na as lo,nb as uo,nc as ho,nd as fo,ne as mo,nf as go,ng as Ze,nh as yo,ni as vo,nj as mt,nk as gt,nl as yt,nm as Cn,nn as _n,no as Do,E as wo,np as ko,bd as dr,bb as So,dn as pt,dU as bo,nq as Co,dN as _o,ar as Eo,dY as xo,l$ as H,at as rt,bG as Fe,ea as En,dt as xn,bH as Yt,m0 as Mo,dq as Mn,e5 as No,e6 as ot,ac as Ke,nr as Pt,aF as Oo,ns as To,dp as jt,dm as Lt,e7 as Io,nt as Ro,nu as Yo}from"./vendor-charts-b447a932.js";import{u as _t,b as Po,c as jo,d as hr,e as pn,f as ln,r as Nn,g as un,C as On,h as Tn,M as Lo,V as dn,P as hn,i as Ao,H as Qo,j as fn,I as oe,B as ee,k as Ho,l as Bo,m as Fo,n as vt,N as At,o as ze,L as Ko,p as Wo,s as We,q as Uo,t as Vo,v as fr,w as mr,T as gr,x as zo,y as yr,z as vr,A as $o,D as Go,F as Xo,G as In,J as Zo,O as Jo,K as qo,R as Rn,S as ea,W as ta,U as Yn,X as Pn,Y as jn,Z as na,_ as ra,$ as oa,a0 as aa,a1 as sa,a2 as ia}from"./index-73db0973.js";import"./vendor-editor-bc751fdd.js";import"./vendor-three-3e3142b5.js";const ca="/assets/emptyHistory-39807386.png",pa="/assets/emptyHistory-e09c1ac9.webp",la="/assets/heartbeat-d012a4c0.png";zt.extend(Br);function ua({queryParams:o,setSortBy:s,setPageNumber:i,onPageChange:t,onPageSizeChange:e,defaultSize:r}){var T,G,X;const{height:p,headerHeight:n}=_t(),[a,c]=E.useState(!1),[d,m]=E.useState([]),[v,k]=E.useState(null),[w,S]=E.useState({areaChartConfig:[],lineChartConfig:[]}),[b,D]=E.useState(0),M=(T=Object.keys(w))==null?void 0:T.length,h=Po(),O=jo(),_=hr(),Q=pn(),R=ln(),j=Q||R,{totalPages:z=0,totalElements:q=0}=(O==null?void 0:O.pageable)||{},ae=St();E.useEffect(()=>()=>Nn(),[]),E.useEffect(()=>{var N,Z,ye,Be,yn;if((N=_==null?void 0:_.content)!=null&&N.length){const jr=(Z=_==null?void 0:_.content)==null?void 0:Z.map(U=>U==null?void 0:U.queryType),nt={};(jr??[]).forEach(U=>{nt[U]?nt[U]+=1:nt[U]=1});const Lr=(ye=Object.entries(nt))==null?void 0:ye.map(([U,Hr])=>({Source:U,Trafic:Hr}));m(Lr);const Ar=(Be=_==null?void 0:_.content)==null?void 0:Be.map(U=>({Timestamp:U.timestamp,Usage:U.usage,Runtime:U.runtime})),Qr=(yn=_==null?void 0:_.content)==null?void 0:yn.map(U=>({Timestamp:U.timestamp,Usage:U.usage,DataVolume:U.responseSize}));S({areaChartConfig:Ar,lineChartConfig:Qr}),(o==null?void 0:o.isRecent)==="false"&&D(0)}else m([])},[_==null?void 0:_.content,o]);const te=N=>i(N),_e=(N,Z)=>{if(N==="systemHeartbeat"||N==="CPUSkew")return;const ye=Z==="ASC"?"DESC":"ASC";Nn(),s(N,ye)},fe=N=>{ae.push("/queries/new?tabID=1"),Dn(N)},Ee=N=>{k(N),c(!0)},le=()=>{k(null),c(!1)},me=({timestamp:N})=>rn(N),xe=({runtime:N})=>Kr(N),Me=({responseSize:N=0})=>Wr(N),Ne=({cpuskew:N="59%"})=>f.jsx(Ao,{children:N}),ge=({systemHeartbeat:N="58"})=>f.jsxs(Qo,{children:[f.jsx("img",{src:la,alt:"system-heartbeat"}),f.jsx("span",{children:N})]}),ue=N=>f.jsx("span",{className:"text",children:N.queryType?N.queryType:"-"}),de=N=>f.jsx("span",{className:"text",children:N!=null&&N.usage?N.usage:"-"}),C=N=>f.jsxs(fn,{onClick:()=>Ee(N),className:"queryText",children:[f.jsx("span",{className:"text",children:N.sqlText}),f.jsx(oe,{tooltip:"Preview",children:f.jsx(dt,{})})]}),ne=N=>f.jsx(oe,{onClick:()=>{fe(N)},tooltip:x.VIEW_IN_EDITOR,children:f.jsx(bt,{})}),Ie=()=>f.jsx(on,{imgPath:ca,imgPathWebp:pa,title:!(o!=null&&o.tagName)&&!(o!=null&&o.searchKeyword)?x.EMPTY_QUERY_HISTORY:x.NO_RESULT_FOUND_ON_FILTER,children:!(o!=null&&o.tagName)&&!(o!=null&&o.searchKeyword)&&f.jsx(ht,{to:"/queries/new?tabID=1",children:f.jsx(ee,{variant:"contained",color:"primary",size:"large",children:x.CREATE_NEW_QUERY})})}),He=()=>p-n-230||300,Re=()=>{v&&Dn(v)},Nt=()=>f.jsx(an,{title:h,children:h});if((O==null?void 0:O.totalElements)===0)return Ie();if(h)return Nt();const qe=()=>{D(N=>N+1)},Ot=()=>{D(N=>N-1)},et=()=>{D(0)},tt=()=>{D(M-1)},y=()=>{var Be;let N,Z,ye;switch(b){case 1:b===1&&(N="Usage and Data Volume Variation over time",Z=It.column_chart,ye=zr);break;default:N="Usage and Runtime Trends Over Time",Z=It.area_chart,ye=Vr}return console.log("queryHistory",_.content),f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"cardHead",children:[f.jsx("span",{className:"cardHeadTitle",children:N}),f.jsx("span",{className:"cardHeadCount",children:(Be=_==null?void 0:_.content)==null?void 0:Be.length})]}),f.jsx("div",{className:"cardBody",children:f.jsx(vn,{isRunning:j,config:Tn({data:Z===It.area_chart?w.areaChartConfig:w.lineChartConfig,chartConfigurationData:ye}).config,type:Z})})]})};return f.jsxs(f.Fragment,{children:[f.jsx(un,{open:a,id:v==null?void 0:v.savedQueryId,text:v==null?void 0:v.sqlText,onClose:le,onClickView:Re,isHistory:!0}),(j||((G=_==null?void 0:_.content)==null?void 0:G.length)>0)&&(o==null?void 0:o.isRecent)==="false"&&f.jsxs(Tt,{container:!0,spacing:{xs:1,sm:3},children:[f.jsx(Tt,{item:!0,sm:5,xs:12,children:f.jsxs(On,{children:[f.jsxs("div",{className:"cardHead",children:[f.jsx("span",{className:"cardHeadTitle",children:x.TOTAL_QUERIES}),f.jsx("span",{className:"cardHeadCount",children:(X=_==null?void 0:_.content)==null?void 0:X.length})]}),f.jsx("div",{className:"cardBody",children:f.jsx(vn,{isRunning:j,config:Tn({data:d,chartConfigurationData:Ur}).config,type:"pie_chart"})})]})}),f.jsx(Tt,{item:!0,sm:7,xs:12,children:f.jsxs(On,{children:[y(),!j&&f.jsx(Lo,{maxSteps:M,activeStep:b,handleFirst:et,handleLast:tt,handleNext:qe,handlePrev:Ot})]})})]}),f.jsx(dn,{data:_==null?void 0:_.content,columns:Fr,isAction:!0,actionComponent:N=>ne(N),loading:j,rowRender:[{dataKey:"sqlText",func:C},{dataKey:"timestamp",func:me},{dataKey:"runtime",func:xe},{dataKey:"responseSize",func:Me},{dataKey:"systemHeartbeat",func:ge},{dataKey:"CPUSkew",func:Ne},{dataKey:"queryType",func:ue},{dataKey:"usage",func:de}],rowSize:75,bodyHeight:He(),onItemsSort:_e,sortBy:o==null?void 0:o.sortBy,sortOrder:(o==null?void 0:o.sortOrder)||""}),(j?!0:(_==null?void 0:_.length)!==0)&&f.jsx(hn,{onChange:te,count:z,page:o.pageNo,onPageChange:t,totalElements:q,onPageSizeChange:e,isGotoPage:!0,isPageSize:!0,pageSize:o.pageSize,defaultSize:r})]})}const da=o=>{const{row:s,handleClose:i,handlePublishCallback:t,open:e}=o,{id:r,queryName:p,visibility:n,slug:a}=s||{},[c,d]=E.useState(""),[m,v]=E.useState(!1),[k,w]=E.useState(!1),[S,b]=E.useState(!1),D=Ho()||(s==null?void 0:s.visibility),M=E.useRef(null),h=n===Y.public;E.useEffect(()=>{if(e&&n===Y.public){const j=window.location.origin+Ve.queriesSlug(r,a);d(j)}else d(""),b(!1),M.current=null},[e]);const O=j=>{var ae,te;const z=((te=(ae=j==null?void 0:j.target)==null?void 0:ae.value)==null?void 0:te.trim())||"",q=(z==null?void 0:z.length)>0&&$r(z);v(q),z!==c&&d(z)},_=async()=>{w(!0),await Wo(r,p,c,D,t)===x.RESPONSE_SUCCESS_STATUS&&i(),w(!1)},Q=j=>{switch(j){case Y.public:We(Y.public);break;case Y.private:We(Y.private);break;case Y.subscription:We(Y.subscription);break;default:We(Y.private)}},R=()=>{Gr(c).then(()=>{b(!0)})};return f.jsx(Bo,{title:x.QUERY_PUBLISH,visible:e,maxWidth:"sm",onClose:i,children:f.jsxs(Fo,{children:[f.jsxs("div",{className:"visibilityCheck",children:[f.jsx("div",{className:"label",children:"Choose the visibility for your query"}),f.jsxs(sr,{variant:"contained",className:`isPublicCheck ${n===Y.public&&"disabled"}`,children:[f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.private)},color:D===Y.public||D===Y.subscription?"secondary":"primary",disabled:n===Y.public,children:x.PRIVATE}),f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.subscription)},color:D===Y.subscription?"primary":"secondary",disabled:n===Y.public,children:x.PRIVATE_TO_MY_ORG}),f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.public)},color:D===Y.public?"primary":"secondary",children:x.PUBLIC})]})]}),D===Y.public&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"slugInput",children:f.jsx(vt,{autoFocus:!0,label:"Unique Query Name",required:!0,placeholder:"Enter slug name",ishelpertext:1,helperText:!h&&`${c==null?void 0:c.length}/${At}`,value:c,warningText:!h&&x.MAX_LENGTH_ERROR("slug name",At),hasMax:!0,maxValue:At,onChange:O,errorText:m&&x.VIEW_NAME_ERROR("Slug"),ref:M,inputProps:{readOnly:h},endAdornment:a?f.jsx(ir,{position:"end",children:f.jsx(oe,{onClick:()=>window.open(window.location.origin+Ve.queriesSlug(r,a),"_blank"),children:f.jsx(bt,{})})}):null})}),h&&f.jsx(ze,{message:x.PUBLISHED_TEXT("query")}),D===Y.public&&!h&&f.jsx(ze,{message:x.PUBLISH_CONFIRM_MESSAGE("Query")})]}),f.jsxs("div",{className:"btnRow",children:[f.jsx(ee,{disabled:k,variant:"contained",color:"secondary",onClick:i,className:"formBtn cancel",children:x.CANCEL}),!h&&f.jsx(ee,{disabled:m||(c==null?void 0:c.length)>=50||k||D===Y.public&&!(c!=null&&c.trim()),variant:"contained",color:"primary",onClick:_,className:"formBtn submit",children:k?f.jsx("img",{src:Ko,alt:"loading",height:36}):x.SUBMIT}),h&&f.jsx(ee,{type:"button",variant:"contained",color:"primary",onClick:R,children:S?x.COPIED:x.COPY_LINK})]})]})})};function ha({queryParams:o,setPageNumber:s,setSortBy:i,onPageChange:t,onPageSizeChange:e,deleteQuery:r,defaultSize:p,handlePublishCallback:n}){const a=St(),{height:c,headerHeight:d}=_t(),m=Uo(),v=Vo(),{totalPages:k=0,totalElements:w=0}=(v==null?void 0:v.pageable)||{},S=fr(),b=pn(),D=ln(),M=b||D,[h,O]=E.useState(!1),[_,Q]=E.useState({}),[R,j]=E.useState(!1),[z,q]=E.useState({}),ae=(C,ne)=>{i(C,ne==="ASC"?"DESC":"ASC")},te=C=>s(C),_e=C=>f.jsx(mr,{className:"queryName",onClick:()=>{a.push(`/queries/${C.id}`)},children:(C==null?void 0:C.name)||"Untitled Query"}),fe=C=>C&&rn(C==null?void 0:C.modified),Ee=C=>C&&f.jsx(gr,{tags:C==null?void 0:C.tags}),le=C=>{Q(C),O(!0)},me=C=>f.jsxs(fn,{onClick:()=>le(C),className:"queryText",children:[f.jsx("span",{className:"text",children:C.queryText}),f.jsx(oe,{tooltip:"Preview",children:f.jsx(dt,{})})]}),xe=()=>c-d-170||300,Me=()=>{j(!1),q({}),We("")},Ne=C=>f.jsxs(f.Fragment,{children:[f.jsx(Zr,{label:(C==null?void 0:C.visibility)===Y.public?x.PUBLISHED:x.PUBLISH("Query"),children:f.jsx("span",{className:"publishBtn",children:f.jsx(oe,{onClick:()=>{j(!0),q(C)},children:f.jsx(Jr,{})})})}),f.jsx(oe,{onClick:()=>{a.push(`/queries/${C.id}`)},tooltip:"View",children:f.jsx(bt,{})}),f.jsx(zo,{icon:!0,confirmButtonMessage:x.YES,cancelButtonMessage:x.NO,disabled:C.visibility===Y.public,tooltip:x.DELETE(""),title:x.DELETE("Query"),confirmMessage:x.DELETE_CONFIRM_MESSAGE(`'${C.name||""}' query`),description:x.DELETE_QUERY_DESCRIPTION,onConfirm:ne=>{ne.stopPropagation(),r(C.id,C.name)}},"expire")]}),ge=()=>f.jsx(on,{imgPath:yr,imgPathWebp:vr,title:!(o!=null&&o.tagName)&&!(o!=null&&o.searchPattern)&&!(o!=null&&o.status)?x.NO_QUERY_FOUND:x.NO_RESULT_FOUND_ON_FILTER,className:"emptyBlock",children:!(o!=null&&o.tagName)&&!(o!=null&&o.searchPattern)&&f.jsx(ht,{to:"/queries/new?tabID=1",children:f.jsx(ee,{variant:"contained",color:"primary",size:"large",children:x.CREATE_NEW_QUERY})})}),ue=()=>f.jsx(an,{title:m,children:m});if(k===0&&!M&&!m)return ge();if(m)return ue();const de=()=>{Q({}),O(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(un,{open:h,id:_==null?void 0:_.id,text:_==null?void 0:_.queryText,queryPreview:_,onClose:de}),f.jsx(dn,{data:S,columns:Xr,isAction:!0,actionComponent:Ne,actionColumnName:"Actions",rowRender:[{dataKey:"name",func:_e},{dataKey:"modified",func:fe},{dataKey:"tags",func:Ee},{dataKey:"queryText",func:me}],loading:M,rowSize:75,bodyHeight:xe(),onItemsSort:ae,sortBy:(o==null?void 0:o.sortBy)||"",sortOrder:(o==null?void 0:o.sortOrder)||"",nonSortableColumns:{tags:!0}}),(M?!0:(S==null?void 0:S.length)!==0)&&f.jsx("div",{className:"queryPagePagination",children:f.jsx(hn,{onChange:te,count:k,page:(o==null?void 0:o.pageNo)||0,onPageChange:t,totalElements:w,onPageSizeChange:e,isGotoPage:!0,isPageSize:!0,pageSize:(o==null?void 0:o.pageSize)||0,defaultSize:p})}),f.jsx(da,{open:R,handleClose:Me,row:z,handlePublishCallback:n})]})}var Dr={exports:{}};/*!
|
|
1
|
+
import{h7 as zt,mp as Br,r as E,a8 as St,j as f,am as Tt,b3 as x,cL as vn,mq as Fr,cI as rn,mr as Kr,ms as Wr,b5 as dt,c$ as bt,ds as on,al as ht,kz as Dn,bZ as an,co as It,mt as Ur,mu as Vr,mv as zr,db as Y,dw as sr,a9 as ir,b_ as Ve,dy as $r,ce as Gr,lM as Xr,aZ as Zr,dd as Jr,g as sn,a as cr,mw as qr,R as g,mx as I,my as be,mz as Ce,mA as $t,mB as De,mC as eo,mD as $,mE as wn,mF as to,mG as Ct,mH as J,mI as Ye,mJ as Pe,mK as Gt,mL as Ae,mM as no,mN as ro,mO as ie,mP as ce,mQ as Le,mR as Xt,mS as he,mT as Ge,mU as Xe,A as oo,mV as ft,mW as Zt,mX as cn,mY as Rt,mZ as ao,m_ as kn,m$ as Sn,n0 as so,n1 as io,n2 as pr,n3 as bn,n4 as it,n5 as ct,n6 as co,n7 as po,n8 as lr,n9 as ur,na as lo,nb as uo,nc as ho,nd as fo,ne as mo,nf as go,ng as Ze,nh as yo,ni as vo,nj as mt,nk as gt,nl as yt,nm as Cn,nn as _n,no as Do,E as wo,np as ko,bd as dr,bb as So,dn as pt,dU as bo,nq as Co,dN as _o,ar as Eo,dY as xo,l$ as H,at as rt,bG as Fe,ea as En,dt as xn,bH as Yt,m0 as Mo,dq as Mn,e5 as No,e6 as ot,ac as Ke,nr as Pt,aF as Oo,ns as To,dp as jt,dm as Lt,e7 as Io,nt as Ro,nu as Yo}from"./vendor-charts-b447a932.js";import{u as _t,b as Po,c as jo,d as hr,e as pn,f as ln,r as Nn,g as un,C as On,h as Tn,M as Lo,V as dn,P as hn,i as Ao,H as Qo,j as fn,I as oe,B as ee,k as Ho,l as Bo,m as Fo,n as vt,N as At,o as ze,L as Ko,p as Wo,s as We,q as Uo,t as Vo,v as fr,w as mr,T as gr,x as zo,y as yr,z as vr,A as $o,D as Go,F as Xo,G as In,J as Zo,O as Jo,K as qo,R as Rn,S as ea,W as ta,U as Yn,X as Pn,Y as jn,Z as na,_ as ra,$ as oa,a0 as aa,a1 as sa,a2 as ia}from"./index-2a4b3cf2.js";import"./vendor-editor-bc751fdd.js";import"./vendor-three-3e3142b5.js";const ca="/assets/emptyHistory-39807386.png",pa="/assets/emptyHistory-e09c1ac9.webp",la="/assets/heartbeat-d012a4c0.png";zt.extend(Br);function ua({queryParams:o,setSortBy:s,setPageNumber:i,onPageChange:t,onPageSizeChange:e,defaultSize:r}){var T,G,X;const{height:p,headerHeight:n}=_t(),[a,c]=E.useState(!1),[d,m]=E.useState([]),[v,k]=E.useState(null),[w,S]=E.useState({areaChartConfig:[],lineChartConfig:[]}),[b,D]=E.useState(0),M=(T=Object.keys(w))==null?void 0:T.length,h=Po(),O=jo(),_=hr(),Q=pn(),R=ln(),j=Q||R,{totalPages:z=0,totalElements:q=0}=(O==null?void 0:O.pageable)||{},ae=St();E.useEffect(()=>()=>Nn(),[]),E.useEffect(()=>{var N,Z,ye,Be,yn;if((N=_==null?void 0:_.content)!=null&&N.length){const jr=(Z=_==null?void 0:_.content)==null?void 0:Z.map(U=>U==null?void 0:U.queryType),nt={};(jr??[]).forEach(U=>{nt[U]?nt[U]+=1:nt[U]=1});const Lr=(ye=Object.entries(nt))==null?void 0:ye.map(([U,Hr])=>({Source:U,Trafic:Hr}));m(Lr);const Ar=(Be=_==null?void 0:_.content)==null?void 0:Be.map(U=>({Timestamp:U.timestamp,Usage:U.usage,Runtime:U.runtime})),Qr=(yn=_==null?void 0:_.content)==null?void 0:yn.map(U=>({Timestamp:U.timestamp,Usage:U.usage,DataVolume:U.responseSize}));S({areaChartConfig:Ar,lineChartConfig:Qr}),(o==null?void 0:o.isRecent)==="false"&&D(0)}else m([])},[_==null?void 0:_.content,o]);const te=N=>i(N),_e=(N,Z)=>{if(N==="systemHeartbeat"||N==="CPUSkew")return;const ye=Z==="ASC"?"DESC":"ASC";Nn(),s(N,ye)},fe=N=>{ae.push("/queries/new?tabID=1"),Dn(N)},Ee=N=>{k(N),c(!0)},le=()=>{k(null),c(!1)},me=({timestamp:N})=>rn(N),xe=({runtime:N})=>Kr(N),Me=({responseSize:N=0})=>Wr(N),Ne=({cpuskew:N="59%"})=>f.jsx(Ao,{children:N}),ge=({systemHeartbeat:N="58"})=>f.jsxs(Qo,{children:[f.jsx("img",{src:la,alt:"system-heartbeat"}),f.jsx("span",{children:N})]}),ue=N=>f.jsx("span",{className:"text",children:N.queryType?N.queryType:"-"}),de=N=>f.jsx("span",{className:"text",children:N!=null&&N.usage?N.usage:"-"}),C=N=>f.jsxs(fn,{onClick:()=>Ee(N),className:"queryText",children:[f.jsx("span",{className:"text",children:N.sqlText}),f.jsx(oe,{tooltip:"Preview",children:f.jsx(dt,{})})]}),ne=N=>f.jsx(oe,{onClick:()=>{fe(N)},tooltip:x.VIEW_IN_EDITOR,children:f.jsx(bt,{})}),Ie=()=>f.jsx(on,{imgPath:ca,imgPathWebp:pa,title:!(o!=null&&o.tagName)&&!(o!=null&&o.searchKeyword)?x.EMPTY_QUERY_HISTORY:x.NO_RESULT_FOUND_ON_FILTER,children:!(o!=null&&o.tagName)&&!(o!=null&&o.searchKeyword)&&f.jsx(ht,{to:"/queries/new?tabID=1",children:f.jsx(ee,{variant:"contained",color:"primary",size:"large",children:x.CREATE_NEW_QUERY})})}),He=()=>p-n-230||300,Re=()=>{v&&Dn(v)},Nt=()=>f.jsx(an,{title:h,children:h});if((O==null?void 0:O.totalElements)===0)return Ie();if(h)return Nt();const qe=()=>{D(N=>N+1)},Ot=()=>{D(N=>N-1)},et=()=>{D(0)},tt=()=>{D(M-1)},y=()=>{var Be;let N,Z,ye;switch(b){case 1:b===1&&(N="Usage and Data Volume Variation over time",Z=It.column_chart,ye=zr);break;default:N="Usage and Runtime Trends Over Time",Z=It.area_chart,ye=Vr}return console.log("queryHistory",_.content),f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"cardHead",children:[f.jsx("span",{className:"cardHeadTitle",children:N}),f.jsx("span",{className:"cardHeadCount",children:(Be=_==null?void 0:_.content)==null?void 0:Be.length})]}),f.jsx("div",{className:"cardBody",children:f.jsx(vn,{isRunning:j,config:Tn({data:Z===It.area_chart?w.areaChartConfig:w.lineChartConfig,chartConfigurationData:ye}).config,type:Z})})]})};return f.jsxs(f.Fragment,{children:[f.jsx(un,{open:a,id:v==null?void 0:v.savedQueryId,text:v==null?void 0:v.sqlText,onClose:le,onClickView:Re,isHistory:!0}),(j||((G=_==null?void 0:_.content)==null?void 0:G.length)>0)&&(o==null?void 0:o.isRecent)==="false"&&f.jsxs(Tt,{container:!0,spacing:{xs:1,sm:3},children:[f.jsx(Tt,{item:!0,sm:5,xs:12,children:f.jsxs(On,{children:[f.jsxs("div",{className:"cardHead",children:[f.jsx("span",{className:"cardHeadTitle",children:x.TOTAL_QUERIES}),f.jsx("span",{className:"cardHeadCount",children:(X=_==null?void 0:_.content)==null?void 0:X.length})]}),f.jsx("div",{className:"cardBody",children:f.jsx(vn,{isRunning:j,config:Tn({data:d,chartConfigurationData:Ur}).config,type:"pie_chart"})})]})}),f.jsx(Tt,{item:!0,sm:7,xs:12,children:f.jsxs(On,{children:[y(),!j&&f.jsx(Lo,{maxSteps:M,activeStep:b,handleFirst:et,handleLast:tt,handleNext:qe,handlePrev:Ot})]})})]}),f.jsx(dn,{data:_==null?void 0:_.content,columns:Fr,isAction:!0,actionComponent:N=>ne(N),loading:j,rowRender:[{dataKey:"sqlText",func:C},{dataKey:"timestamp",func:me},{dataKey:"runtime",func:xe},{dataKey:"responseSize",func:Me},{dataKey:"systemHeartbeat",func:ge},{dataKey:"CPUSkew",func:Ne},{dataKey:"queryType",func:ue},{dataKey:"usage",func:de}],rowSize:75,bodyHeight:He(),onItemsSort:_e,sortBy:o==null?void 0:o.sortBy,sortOrder:(o==null?void 0:o.sortOrder)||""}),(j?!0:(_==null?void 0:_.length)!==0)&&f.jsx(hn,{onChange:te,count:z,page:o.pageNo,onPageChange:t,totalElements:q,onPageSizeChange:e,isGotoPage:!0,isPageSize:!0,pageSize:o.pageSize,defaultSize:r})]})}const da=o=>{const{row:s,handleClose:i,handlePublishCallback:t,open:e}=o,{id:r,queryName:p,visibility:n,slug:a}=s||{},[c,d]=E.useState(""),[m,v]=E.useState(!1),[k,w]=E.useState(!1),[S,b]=E.useState(!1),D=Ho()||(s==null?void 0:s.visibility),M=E.useRef(null),h=n===Y.public;E.useEffect(()=>{if(e&&n===Y.public){const j=window.location.origin+Ve.queriesSlug(r,a);d(j)}else d(""),b(!1),M.current=null},[e]);const O=j=>{var ae,te;const z=((te=(ae=j==null?void 0:j.target)==null?void 0:ae.value)==null?void 0:te.trim())||"",q=(z==null?void 0:z.length)>0&&$r(z);v(q),z!==c&&d(z)},_=async()=>{w(!0),await Wo(r,p,c,D,t)===x.RESPONSE_SUCCESS_STATUS&&i(),w(!1)},Q=j=>{switch(j){case Y.public:We(Y.public);break;case Y.private:We(Y.private);break;case Y.subscription:We(Y.subscription);break;default:We(Y.private)}},R=()=>{Gr(c).then(()=>{b(!0)})};return f.jsx(Bo,{title:x.QUERY_PUBLISH,visible:e,maxWidth:"sm",onClose:i,children:f.jsxs(Fo,{children:[f.jsxs("div",{className:"visibilityCheck",children:[f.jsx("div",{className:"label",children:"Choose the visibility for your query"}),f.jsxs(sr,{variant:"contained",className:`isPublicCheck ${n===Y.public&&"disabled"}`,children:[f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.private)},color:D===Y.public||D===Y.subscription?"secondary":"primary",disabled:n===Y.public,children:x.PRIVATE}),f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.subscription)},color:D===Y.subscription?"primary":"secondary",disabled:n===Y.public,children:x.PRIVATE_TO_MY_ORG}),f.jsx(ee,{variant:"contained",onClick:()=>{Q(Y.public)},color:D===Y.public?"primary":"secondary",children:x.PUBLIC})]})]}),D===Y.public&&f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"slugInput",children:f.jsx(vt,{autoFocus:!0,label:"Unique Query Name",required:!0,placeholder:"Enter slug name",ishelpertext:1,helperText:!h&&`${c==null?void 0:c.length}/${At}`,value:c,warningText:!h&&x.MAX_LENGTH_ERROR("slug name",At),hasMax:!0,maxValue:At,onChange:O,errorText:m&&x.VIEW_NAME_ERROR("Slug"),ref:M,inputProps:{readOnly:h},endAdornment:a?f.jsx(ir,{position:"end",children:f.jsx(oe,{onClick:()=>window.open(window.location.origin+Ve.queriesSlug(r,a),"_blank"),children:f.jsx(bt,{})})}):null})}),h&&f.jsx(ze,{message:x.PUBLISHED_TEXT("query")}),D===Y.public&&!h&&f.jsx(ze,{message:x.PUBLISH_CONFIRM_MESSAGE("Query")})]}),f.jsxs("div",{className:"btnRow",children:[f.jsx(ee,{disabled:k,variant:"contained",color:"secondary",onClick:i,className:"formBtn cancel",children:x.CANCEL}),!h&&f.jsx(ee,{disabled:m||(c==null?void 0:c.length)>=50||k||D===Y.public&&!(c!=null&&c.trim()),variant:"contained",color:"primary",onClick:_,className:"formBtn submit",children:k?f.jsx("img",{src:Ko,alt:"loading",height:36}):x.SUBMIT}),h&&f.jsx(ee,{type:"button",variant:"contained",color:"primary",onClick:R,children:S?x.COPIED:x.COPY_LINK})]})]})})};function ha({queryParams:o,setPageNumber:s,setSortBy:i,onPageChange:t,onPageSizeChange:e,deleteQuery:r,defaultSize:p,handlePublishCallback:n}){const a=St(),{height:c,headerHeight:d}=_t(),m=Uo(),v=Vo(),{totalPages:k=0,totalElements:w=0}=(v==null?void 0:v.pageable)||{},S=fr(),b=pn(),D=ln(),M=b||D,[h,O]=E.useState(!1),[_,Q]=E.useState({}),[R,j]=E.useState(!1),[z,q]=E.useState({}),ae=(C,ne)=>{i(C,ne==="ASC"?"DESC":"ASC")},te=C=>s(C),_e=C=>f.jsx(mr,{className:"queryName",onClick:()=>{a.push(`/queries/${C.id}`)},children:(C==null?void 0:C.name)||"Untitled Query"}),fe=C=>C&&rn(C==null?void 0:C.modified),Ee=C=>C&&f.jsx(gr,{tags:C==null?void 0:C.tags}),le=C=>{Q(C),O(!0)},me=C=>f.jsxs(fn,{onClick:()=>le(C),className:"queryText",children:[f.jsx("span",{className:"text",children:C.queryText}),f.jsx(oe,{tooltip:"Preview",children:f.jsx(dt,{})})]}),xe=()=>c-d-170||300,Me=()=>{j(!1),q({}),We("")},Ne=C=>f.jsxs(f.Fragment,{children:[f.jsx(Zr,{label:(C==null?void 0:C.visibility)===Y.public?x.PUBLISHED:x.PUBLISH("Query"),children:f.jsx("span",{className:"publishBtn",children:f.jsx(oe,{onClick:()=>{j(!0),q(C)},children:f.jsx(Jr,{})})})}),f.jsx(oe,{onClick:()=>{a.push(`/queries/${C.id}`)},tooltip:"View",children:f.jsx(bt,{})}),f.jsx(zo,{icon:!0,confirmButtonMessage:x.YES,cancelButtonMessage:x.NO,disabled:C.visibility===Y.public,tooltip:x.DELETE(""),title:x.DELETE("Query"),confirmMessage:x.DELETE_CONFIRM_MESSAGE(`'${C.name||""}' query`),description:x.DELETE_QUERY_DESCRIPTION,onConfirm:ne=>{ne.stopPropagation(),r(C.id,C.name)}},"expire")]}),ge=()=>f.jsx(on,{imgPath:yr,imgPathWebp:vr,title:!(o!=null&&o.tagName)&&!(o!=null&&o.searchPattern)&&!(o!=null&&o.status)?x.NO_QUERY_FOUND:x.NO_RESULT_FOUND_ON_FILTER,className:"emptyBlock",children:!(o!=null&&o.tagName)&&!(o!=null&&o.searchPattern)&&f.jsx(ht,{to:"/queries/new?tabID=1",children:f.jsx(ee,{variant:"contained",color:"primary",size:"large",children:x.CREATE_NEW_QUERY})})}),ue=()=>f.jsx(an,{title:m,children:m});if(k===0&&!M&&!m)return ge();if(m)return ue();const de=()=>{Q({}),O(!1)};return f.jsxs(f.Fragment,{children:[f.jsx(un,{open:h,id:_==null?void 0:_.id,text:_==null?void 0:_.queryText,queryPreview:_,onClose:de}),f.jsx(dn,{data:S,columns:Xr,isAction:!0,actionComponent:Ne,actionColumnName:"Actions",rowRender:[{dataKey:"name",func:_e},{dataKey:"modified",func:fe},{dataKey:"tags",func:Ee},{dataKey:"queryText",func:me}],loading:M,rowSize:75,bodyHeight:xe(),onItemsSort:ae,sortBy:(o==null?void 0:o.sortBy)||"",sortOrder:(o==null?void 0:o.sortOrder)||"",nonSortableColumns:{tags:!0}}),(M?!0:(S==null?void 0:S.length)!==0)&&f.jsx("div",{className:"queryPagePagination",children:f.jsx(hn,{onChange:te,count:k,page:(o==null?void 0:o.pageNo)||0,onPageChange:t,totalElements:w,onPageSizeChange:e,isGotoPage:!0,isPageSize:!0,pageSize:(o==null?void 0:o.pageSize)||0,defaultSize:p})}),f.jsx(da,{open:R,handleClose:Me,row:z,handlePublishCallback:n})]})}var Dr={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as r,r as t}from"./vendor-charts-b447a932.js";import{O as o,Q as a}from"./index-
|
|
1
|
+
import{j as r,r as t}from"./vendor-charts-b447a932.js";import{O as o,Q as a}from"./index-2a4b3cf2.js";import"./vendor-editor-bc751fdd.js";import"./vendor-three-3e3142b5.js";function m(){return r.jsx(t.Suspense,{fallback:o,children:r.jsx(a,{})})}export{m as default};
|
|
@@ -15898,7 +15898,7 @@ ${" ".repeat(r.length-e.length)}^`),s))]}function pBs(e){let t=e.indexOf(")",1);
|
|
|
15898
15898
|
`;return a.join(p)}commitMessage(){return`${this.faker.hacker.verb()} ${this.faker.hacker.adjective()} ${this.faker.hacker.noun()}`}commitDate(e={}){let{refDate:t=this.faker.defaultRefDate()}=e,r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],a=this.faker.date.recent({days:1,refDate:t}),o=r[a.getUTCDay()],s=n[a.getUTCMonth()],l=a.getUTCDate(),u=a.getUTCHours().toString().padStart(2,"0"),c=a.getUTCMinutes().toString().padStart(2,"0"),d=a.getUTCSeconds().toString().padStart(2,"0"),p=a.getUTCFullYear(),h=this.faker.number.int({min:-11,max:12}),f=Math.abs(h).toString().padStart(2,"0"),g="00",y=h>=0?"+":"-";return`${o} ${s} ${l} ${u}:${c}:${d} ${p} ${y}${f}${g}`}commitSha(e={}){let{length:t=40}=e;return this.faker.string.hexadecimal({length:t,casing:"lower",prefix:""})}},NBs=class extends bp{abbreviation(){return this.faker.helpers.arrayElement(this.faker.definitions.hacker.abbreviation)}adjective(){return this.faker.helpers.arrayElement(this.faker.definitions.hacker.adjective)}noun(){return this.faker.helpers.arrayElement(this.faker.definitions.hacker.noun)}verb(){return this.faker.helpers.arrayElement(this.faker.definitions.hacker.verb)}ingverb(){return this.faker.helpers.arrayElement(this.faker.definitions.hacker.ingverb)}phrase(){let e={abbreviation:this.abbreviation,adjective:this.adjective,ingverb:this.ingverb,noun:this.noun,verb:this.verb},t=this.faker.helpers.arrayElement(this.faker.definitions.hacker.phrase);return this.faker.helpers.mustache(t,e)}},LBs=class extends bp{avatar(){return this.faker.helpers.arrayElement([this.personPortrait,this.avatarGitHub])()}avatarGitHub(){return`https://avatars.githubusercontent.com/u/${this.faker.number.int(1e8)}`}personPortrait(e={}){let{sex:t=this.faker.person.sexType(),size:r=512}=e;return`https://cdn.jsdelivr.net/gh/faker-js/assets-person-portrait/${t}/${r}/${this.faker.number.int({min:0,max:99})}.jpg`}avatarLegacy(){return $N({deprecated:"faker.image.avatarLegacy()",proposed:"faker.image.avatar() or faker.image.personPortrait()",since:"9.0.2",until:"10.0.0"}),`https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/${this.faker.number.int(1249)}.jpg`}url(e={}){let{width:t=this.faker.number.int({min:1,max:3999}),height:r=this.faker.number.int({min:1,max:3999})}=e;return this.faker.helpers.arrayElement([this.urlLoremFlickr,({width:n,height:a})=>this.urlPicsumPhotos({width:n,height:a,grayscale:!1,blur:0})])({width:t,height:r})}urlLoremFlickr(e={}){let{width:t=this.faker.number.int({min:1,max:3999}),height:r=this.faker.number.int({min:1,max:3999}),category:n}=e;return`https://loremflickr.com/${t}/${r}${n==null?"":`/${n}`}?lock=${this.faker.number.int()}`}urlPicsumPhotos(e={}){let{width:t=this.faker.number.int({min:1,max:3999}),height:r=this.faker.number.int({min:1,max:3999}),grayscale:n=this.faker.datatype.boolean(),blur:a=this.faker.number.int({max:10})}=e,o=`https://picsum.photos/seed/${this.faker.string.alphanumeric({length:{min:5,max:10}})}/${t}/${r}`,s=typeof a=="number"&&a>=1&&a<=10;return(n||s)&&(o+="?",n&&(o+="grayscale"),n&&s&&(o+="&"),s&&(o+=`blur=${a}`)),o}urlPlaceholder(e={}){$N({deprecated:"faker.image.urlPlaceholder()",proposed:"faker.image.url() or faker.image.dataUri()",since:"9.4.0",until:"10.0.0"});let{width:t=this.faker.number.int({min:1,max:3500}),height:r=this.faker.number.int({min:1,max:3500}),backgroundColor:n=this.faker.color.rgb({format:"hex",prefix:""}),textColor:a=this.faker.color.rgb({format:"hex",prefix:""}),format:o=this.faker.helpers.arrayElement(["gif","jpeg","jpg","png","webp"]),text:s=this.faker.lorem.words()}=e,l="https://via.placeholder.com";return l+=`/${t}`,l+=`x${r}`,l+=`/${n}`,l+=`/${a}`,l+=`.${o}`,l+=`?text=${encodeURIComponent(s)}`,l}dataUri(e={}){let{width:t=this.faker.number.int({min:1,max:3999}),height:r=this.faker.number.int({min:1,max:3999}),color:n=this.faker.color.rgb(),type:a=this.faker.helpers.arrayElement(["svg-uri","svg-base64"])}=e,o=`<svg xmlns="http://www.w3.org/2000/svg" version="1.1" baseProfile="full" width="${t}" height="${r}"><rect width="100%" height="100%" fill="${n}"/><text x="${t/2}" y="${r/2}" font-size="20" alignment-baseline="middle" text-anchor="middle" fill="white">${t}x${r}</text></svg>`;return a==="svg-uri"?`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(o)}`:`data:image/svg+xml;base64,${JTn(o)}`}};function OBs(e,t,r=n=>n){let n={};for(let a of e){let o=t(a);n[o]===void 0&&(n[o]=[]),n[o].push(r(a))}return n}var vDt={fail:()=>{throw new wi("No words found that match the given length.")},closest:(e,t)=>{let r=OBs(e,l=>l.length),n=Object.keys(r).map(Number),a=Math.min(...n),o=Math.max(...n),s=Math.min(t.min-a,o-t.max);return e.filter(l=>l.length===t.min-s||l.length===t.max+s)},shortest:e=>{let t=Math.min(...e.map(r=>r.length));return e.filter(r=>r.length===t)},longest:e=>{let t=Math.max(...e.map(r=>r.length));return e.filter(r=>r.length===t)},"any-length":e=>[...e]};function GF(e){let{wordList:t,length:r,strategy:n="any-length"}=e;if(r!=null){let a=typeof r=="number"?s=>s.length===r:s=>s.length>=r.min&&s.length<=r.max,o=t.filter(a);return o.length>0?o:typeof r=="number"?vDt[n](t,{min:r,max:r}):vDt[n](t,r)}else if(n==="shortest"||n==="longest")return vDt[n](t);return[...t]}var zBs=class extends bp{word(e={}){return typeof e=="number"&&(e={length:e}),this.faker.helpers.arrayElement(GF({...e,wordList:this.faker.definitions.lorem.word}))}words(e=3){return this.faker.helpers.multiple(()=>this.word(),{count:e}).join(" ")}sentence(e={min:3,max:10}){let t=this.words(e);return`${t.charAt(0).toUpperCase()+t.substring(1)}.`}slug(e=3){let t=this.words(e);return this.faker.helpers.slugify(t)}sentences(e={min:2,max:6},t=" "){return this.faker.helpers.multiple(()=>this.sentence(),{count:e}).join(t)}paragraph(e=3){return this.sentences(e)}paragraphs(e=3,t=`
|
|
15899
15899
|
`){return this.faker.helpers.multiple(()=>this.paragraph(),{count:e}).join(t)}text(){let e=["sentence","sentences","paragraph","paragraphs","lines"],t=this.faker.helpers.arrayElement(e);return this[t]()}lines(e={min:1,max:5}){return this.sentences(e,`
|
|
15900
15900
|
`)}},HBs=class extends bp{album(){return this.faker.helpers.arrayElement(this.faker.definitions.music.album)}artist(){return this.faker.helpers.arrayElement(this.faker.definitions.music.artist)}genre(){return this.faker.helpers.arrayElement(this.faker.definitions.music.genre)}songName(){return this.faker.helpers.arrayElement(this.faker.definitions.music.song_name)}},GBs=class extends bp{number(e={}){let{style:t="human"}=e,r=this.faker.definitions.phone_number.format[t];if(!r)throw new Error(`No definitions for ${t} in this locale`);let n=this.faker.helpers.arrayElement(r);return tRn(this.faker,n)}imei(){return this.faker.helpers.replaceCreditCardSymbols("##-######-######-L","#")}},VBs=class extends bp{chemicalElement(){return this.faker.helpers.arrayElement(this.faker.definitions.science.chemical_element)}unit(){return this.faker.helpers.arrayElement(this.faker.definitions.science.unit)}},WBs=["video","audio","image","text","application"],UBs=["application/pdf","audio/mpeg","audio/wav","image/png","image/jpeg","image/gif","video/mp4","video/mpeg","text/html"],KBs=["en","wl","ww"],dLr={index:"o",slot:"s",mac:"x",pci:"p"},qBs=["SUN","MON","TUE","WED","THU","FRI","SAT"],XBs=class extends bp{fileName(e={}){let{extensionCount:t=1}=e,r=this.faker.word.words().toLowerCase().replaceAll(/\W/g,"_"),n=this.faker.helpers.multiple(()=>this.fileExt(),{count:t}).join(".");return n.length===0?r:`${r}.${n}`}commonFileName(e){return`${this.fileName({extensionCount:0})}.${e||this.commonFileExt()}`}mimeType(){let e=Object.keys(this.faker.definitions.system.mime_type);return this.faker.helpers.arrayElement(e)}commonFileType(){return this.faker.helpers.arrayElement(WBs)}commonFileExt(){return this.fileExt(this.faker.helpers.arrayElement(UBs))}fileType(){let e=this.faker.definitions.system.mime_type,t=new Set(Object.keys(e).map(r=>r.split("/")[0]));return this.faker.helpers.arrayElement([...t])}fileExt(e){let t=this.faker.definitions.system.mime_type;if(typeof e=="string")return this.faker.helpers.arrayElement(t[e].extensions);let r=new Set(Object.values(t).flatMap(({extensions:n})=>n));return this.faker.helpers.arrayElement([...r])}directoryPath(){let e=this.faker.definitions.system.directory_path;return this.faker.helpers.arrayElement(e)}filePath(){return`${this.directoryPath()}/${this.fileName()}`}semver(){return[this.faker.number.int(9),this.faker.number.int(20),this.faker.number.int(20)].join(".")}networkInterface(e={}){let{interfaceType:t=this.faker.helpers.arrayElement(KBs),interfaceSchema:r=this.faker.helpers.objectKey(dLr)}=e,n,a="";switch(r){case"index":{n=this.faker.string.numeric();break}case"slot":{n=`${this.faker.string.numeric()}${this.faker.helpers.maybe(()=>`f${this.faker.string.numeric()}`)??""}${this.faker.helpers.maybe(()=>`d${this.faker.string.numeric()}`)??""}`;break}case"mac":{n=this.faker.internet.mac("");break}case"pci":{a=this.faker.helpers.maybe(()=>`P${this.faker.string.numeric()}`)??"",n=`${this.faker.string.numeric()}s${this.faker.string.numeric()}${this.faker.helpers.maybe(()=>`f${this.faker.string.numeric()}`)??""}${this.faker.helpers.maybe(()=>`d${this.faker.string.numeric()}`)??""}`;break}}return`${a}${t}${dLr[r]}${n}`}cron(e={}){let{includeYear:t=!1,includeNonStandard:r=!1}=e,n=[this.faker.number.int(59),"*"],a=[this.faker.number.int(23),"*"],o=[this.faker.number.int({min:1,max:31}),"*","?"],s=[this.faker.number.int({min:1,max:12}),"*"],l=[this.faker.number.int(6),this.faker.helpers.arrayElement(qBs),"*","?"],u=[this.faker.number.int({min:1970,max:2099}),"*"],c=this.faker.helpers.arrayElement(n),d=this.faker.helpers.arrayElement(a),p=this.faker.helpers.arrayElement(o),h=this.faker.helpers.arrayElement(s),f=this.faker.helpers.arrayElement(l),g=this.faker.helpers.arrayElement(u),y=`${c} ${d} ${p} ${h} ${f}`;t&&(y+=` ${g}`);let v=["@annually","@daily","@hourly","@monthly","@reboot","@weekly","@yearly"];return!r||this.faker.datatype.boolean()?y:this.faker.helpers.arrayElement(v)}},YBs=class extends bp{vehicle(){return`${this.manufacturer()} ${this.model()}`}manufacturer(){return this.faker.helpers.arrayElement(this.faker.definitions.vehicle.manufacturer)}model(){return this.faker.helpers.arrayElement(this.faker.definitions.vehicle.model)}type(){return this.faker.helpers.arrayElement(this.faker.definitions.vehicle.type)}fuel(){return this.faker.helpers.arrayElement(this.faker.definitions.vehicle.fuel)}vin(){let e=["o","i","q","O","I","Q"];return`${this.faker.string.alphanumeric({length:10,casing:"upper",exclude:e})}${this.faker.string.alpha({length:1,casing:"upper",exclude:e})}${this.faker.string.alphanumeric({length:1,casing:"upper",exclude:e})}${this.faker.string.numeric({length:5,allowLeadingZeros:!0})}`}color(){return this.faker.color.human()}vrm(){return`${this.faker.string.alpha({length:2,casing:"upper"})}${this.faker.string.numeric({length:2,allowLeadingZeros:!0})}${this.faker.string.alpha({length:3,casing:"upper"})}`}bicycle(){return this.faker.helpers.arrayElement(this.faker.definitions.vehicle.bicycle_type)}},JBs=class extends bp{adjective(e={}){return typeof e=="number"&&(e={length:e}),this.faker.helpers.arrayElement(GF({...e,wordList:this.faker.definitions.word.adjective}))}adverb(e={}){return typeof e=="number"&&(e={length:e}),this.faker.helpers.arrayElement(GF({...e,wordList:this.faker.definitions.word.adverb}))}conjunction(e={}){return typeof e=="number"&&(e={length:e}),this.faker.helpers.arrayElement(GF({...e,wordList:this.faker.definitions.word.conjunction}))}interjection(e={}){return typeof e=="number"&&(e={length:e}),this.faker.helpers.arrayElement(GF({...e,wordList:this.faker.definitions.word.interjection}))}noun(e={}){return typeof e=="number"&&(e={length:e}),this.faker.helpers.arrayElement(GF({...e,wordList:this.faker.definitions.word.noun}))}preposition(e={}){return typeof e=="number"&&(e={length:e}),this.faker.helpers.arrayElement(GF({...e,wordList:this.faker.definitions.word.preposition}))}verb(e={}){return typeof e=="number"&&(e={length:e}),this.faker.helpers.arrayElement(GF({...e,wordList:this.faker.definitions.word.verb}))}sample(e={}){let t=this.faker.helpers.shuffle([this.adjective,this.adverb,this.conjunction,this.interjection,this.noun,this.preposition,this.verb]);for(let r of t)try{return r(e)}catch{continue}throw new wi("No matching word data available for the current locale")}words(e={}){typeof e=="number"&&(e={count:e});let{count:t={min:1,max:3}}=e;return this.faker.helpers.multiple(()=>this.sample(),{count:t}).join(" ")}},QBs=class extends iRn{constructor(e){super({randomizer:e.randomizer,seed:e.seed}),Hi(this,"rawDefinitions"),Hi(this,"definitions"),Hi(this,"airline",new O5s(this)),Hi(this,"animal",new CBs(this)),Hi(this,"book",new kBs(this)),Hi(this,"color",new G5s(this)),Hi(this,"commerce",new SBs(this)),Hi(this,"company",new FBs(this)),Hi(this,"database",new MBs(this)),Hi(this,"date",new lBs(this)),Hi(this,"finance",new RBs(this)),Hi(this,"food",new PBs(this)),Hi(this,"git",new IBs(this)),Hi(this,"hacker",new NBs(this)),Hi(this,"helpers",new yBs(this)),Hi(this,"image",new LBs(this)),Hi(this,"internet",new _5s(this)),Hi(this,"location",new vBs(this)),Hi(this,"lorem",new zBs(this)),Hi(this,"music",new HBs(this)),Hi(this,"person",new $5s(this)),Hi(this,"phone",new GBs(this)),Hi(this,"science",new VBs(this)),Hi(this,"system",new XBs(this)),Hi(this,"vehicle",new YBs(this)),Hi(this,"word",new JBs(this));let{locale:t}=e;if(Array.isArray(t)){if(t.length===0)throw new wi("The locale option must contain at least one locale definition.");t=wBs(t)}this.rawDefinitions=t,this.definitions=oBs(this.rawDefinitions)}get address(){return $N({deprecated:"faker.address",proposed:"faker.location",since:"8.0",until:"10.0"}),this.location}get name(){return $N({deprecated:"faker.name",proposed:"faker.person",since:"8.0",until:"10.0"}),this.person}getMetadata(){return this.rawDefinitions.metadata??{}}},ZBs=["Academy Color Encoding System (ACES)","Adobe RGB","Adobe Wide Gamut RGB","British Standard Colour (BS)","CIE 1931 XYZ","CIELAB","CIELUV","CIEUVW","CMY","CMYK","DCI-P3","Display-P3","Federal Standard 595C","HKS","HSL","HSLA","HSLuv","HSV","HWB","LCh","LMS","Munsell Color System","Natural Color System (NSC)","Pantone Matching System (PMS)","ProPhoto RGB Color Space","RAL","RG","RGBA","RGK","Rec. 2020","Rec. 2100","Rec. 601","Rec. 709","Uniform Color Spaces (UCSs)","YDbDr","YIQ","YPbPr","sRGB","sYCC","scRGB","xvYCC"],_Bs={space:ZBs},$Bs=_Bs,e6s=["ascii_bin","ascii_general_ci","cp1250_bin","cp1250_general_ci","utf8_bin","utf8_general_ci","utf8_unicode_ci"],t6s=["ARCHIVE","BLACKHOLE","CSV","InnoDB","MEMORY","MyISAM"],r6s=["bigint","binary","bit","blob","boolean","date","datetime","decimal","double","enum","float","geometry","int","mediumint","point","real","serial","set","smallint","text","time","timestamp","tinyint","varchar"],n6s={collation:e6s,engine:t6s,type:r6s},a6s=n6s,oRn=["Africa/Abidjan","Africa/Accra","Africa/Addis_Ababa","Africa/Algiers","Africa/Asmara","Africa/Bamako","Africa/Bangui","Africa/Banjul","Africa/Bissau","Africa/Blantyre","Africa/Brazzaville","Africa/Bujumbura","Africa/Cairo","Africa/Casablanca","Africa/Ceuta","Africa/Conakry","Africa/Dakar","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Douala","Africa/El_Aaiun","Africa/Freetown","Africa/Gaborone","Africa/Harare","Africa/Johannesburg","Africa/Juba","Africa/Kampala","Africa/Khartoum","Africa/Kigali","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Lome","Africa/Luanda","Africa/Lubumbashi","Africa/Lusaka","Africa/Malabo","Africa/Maputo","Africa/Maseru","Africa/Mbabane","Africa/Mogadishu","Africa/Monrovia","Africa/Nairobi","Africa/Ndjamena","Africa/Niamey","Africa/Nouakchott","Africa/Ouagadougou","Africa/Porto-Novo","Africa/Sao_Tome","Africa/Tripoli","Africa/Tunis","Africa/Windhoek","America/Adak","America/Anchorage","America/Anguilla","America/Antigua","America/Araguaina","America/Argentina/Buenos_Aires","America/Argentina/Catamarca","America/Argentina/Cordoba","America/Argentina/Jujuy","America/Argentina/La_Rioja","America/Argentina/Mendoza","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Aruba","America/Asuncion","America/Atikokan","America/Bahia","America/Bahia_Banderas","America/Barbados","America/Belem","America/Belize","America/Blanc-Sablon","America/Boa_Vista","America/Bogota","America/Boise","America/Cambridge_Bay","America/Campo_Grande","America/Cancun","America/Caracas","America/Cayenne","America/Cayman","America/Chicago","America/Chihuahua","America/Ciudad_Juarez","America/Costa_Rica","America/Creston","America/Cuiaba","America/Curacao","America/Danmarkshavn","America/Dawson","America/Dawson_Creek","America/Denver","America/Detroit","America/Dominica","America/Edmonton","America/Eirunepe","America/El_Salvador","America/Fort_Nelson","America/Fortaleza","America/Glace_Bay","America/Goose_Bay","America/Grand_Turk","America/Grenada","America/Guadeloupe","America/Guatemala","America/Guayaquil","America/Guyana","America/Halifax","America/Havana","America/Hermosillo","America/Indiana/Indianapolis","America/Indiana/Knox","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Tell_City","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Inuvik","America/Iqaluit","America/Jamaica","America/Juneau","America/Kentucky/Louisville","America/Kentucky/Monticello","America/Kralendijk","America/La_Paz","America/Lima","America/Los_Angeles","America/Lower_Princes","America/Maceio","America/Managua","America/Manaus","America/Marigot","America/Martinique","America/Matamoros","America/Mazatlan","America/Menominee","America/Merida","America/Metlakatla","America/Mexico_City","America/Miquelon","America/Moncton","America/Monterrey","America/Montevideo","America/Montserrat","America/Nassau","America/New_York","America/Nome","America/Noronha","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Nuuk","America/Ojinaga","America/Panama","America/Paramaribo","America/Phoenix","America/Port-au-Prince","America/Port_of_Spain","America/Porto_Velho","America/Puerto_Rico","America/Punta_Arenas","America/Rankin_Inlet","America/Recife","America/Regina","America/Resolute","America/Rio_Branco","America/Santarem","America/Santiago","America/Santo_Domingo","America/Sao_Paulo","America/Scoresbysund","America/Sitka","America/St_Barthelemy","America/St_Johns","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Swift_Current","America/Tegucigalpa","America/Thule","America/Tijuana","America/Toronto","America/Tortola","America/Vancouver","America/Whitehorse","America/Winnipeg","America/Yakutat","America/Yellowknife","Antarctica/Casey","Antarctica/Davis","Antarctica/DumontDUrville","Antarctica/Macquarie","Antarctica/Mawson","Antarctica/McMurdo","Antarctica/Palmer","Antarctica/Rothera","Antarctica/Syowa","Antarctica/Troll","Antarctica/Vostok","Arctic/Longyearbyen","Asia/Aden","Asia/Almaty","Asia/Amman","Asia/Anadyr","Asia/Aqtau","Asia/Aqtobe","Asia/Ashgabat","Asia/Atyrau","Asia/Baghdad","Asia/Bahrain","Asia/Baku","Asia/Bangkok","Asia/Barnaul","Asia/Beirut","Asia/Bishkek","Asia/Brunei","Asia/Chita","Asia/Choibalsan","Asia/Colombo","Asia/Damascus","Asia/Dhaka","Asia/Dili","Asia/Dubai","Asia/Dushanbe","Asia/Famagusta","Asia/Gaza","Asia/Hebron","Asia/Ho_Chi_Minh","Asia/Hong_Kong","Asia/Hovd","Asia/Irkutsk","Asia/Jakarta","Asia/Jayapura","Asia/Jerusalem","Asia/Kabul","Asia/Kamchatka","Asia/Karachi","Asia/Kathmandu","Asia/Khandyga","Asia/Kolkata","Asia/Krasnoyarsk","Asia/Kuala_Lumpur","Asia/Kuching","Asia/Kuwait","Asia/Macau","Asia/Magadan","Asia/Makassar","Asia/Manila","Asia/Muscat","Asia/Nicosia","Asia/Novokuznetsk","Asia/Novosibirsk","Asia/Omsk","Asia/Oral","Asia/Phnom_Penh","Asia/Pontianak","Asia/Pyongyang","Asia/Qatar","Asia/Qostanay","Asia/Qyzylorda","Asia/Riyadh","Asia/Sakhalin","Asia/Samarkand","Asia/Seoul","Asia/Shanghai","Asia/Singapore","Asia/Srednekolymsk","Asia/Taipei","Asia/Tashkent","Asia/Tbilisi","Asia/Tehran","Asia/Thimphu","Asia/Tokyo","Asia/Tomsk","Asia/Ulaanbaatar","Asia/Urumqi","Asia/Ust-Nera","Asia/Vientiane","Asia/Vladivostok","Asia/Yakutsk","Asia/Yangon","Asia/Yekaterinburg","Asia/Yerevan","Atlantic/Azores","Atlantic/Bermuda","Atlantic/Canary","Atlantic/Cape_Verde","Atlantic/Faroe","Atlantic/Madeira","Atlantic/Reykjavik","Atlantic/South_Georgia","Atlantic/St_Helena","Atlantic/Stanley","Australia/Adelaide","Australia/Brisbane","Australia/Broken_Hill","Australia/Darwin","Australia/Eucla","Australia/Hobart","Australia/Lindeman","Australia/Lord_Howe","Australia/Melbourne","Australia/Perth","Australia/Sydney","Europe/Amsterdam","Europe/Andorra","Europe/Astrakhan","Europe/Athens","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Bucharest","Europe/Budapest","Europe/Busingen","Europe/Chisinau","Europe/Copenhagen","Europe/Dublin","Europe/Gibraltar","Europe/Guernsey","Europe/Helsinki","Europe/Isle_of_Man","Europe/Istanbul","Europe/Jersey","Europe/Kaliningrad","Europe/Kirov","Europe/Kyiv","Europe/Lisbon","Europe/Ljubljana","Europe/London","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Mariehamn","Europe/Minsk","Europe/Monaco","Europe/Moscow","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Riga","Europe/Rome","Europe/Samara","Europe/San_Marino","Europe/Sarajevo","Europe/Saratov","Europe/Simferopol","Europe/Skopje","Europe/Sofia","Europe/Stockholm","Europe/Tallinn","Europe/Tirane","Europe/Ulyanovsk","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Vilnius","Europe/Volgograd","Europe/Warsaw","Europe/Zagreb","Europe/Zurich","Indian/Antananarivo","Indian/Chagos","Indian/Christmas","Indian/Cocos","Indian/Comoro","Indian/Kerguelen","Indian/Mahe","Indian/Maldives","Indian/Mauritius","Indian/Mayotte","Indian/Reunion","Pacific/Apia","Pacific/Auckland","Pacific/Bougainville","Pacific/Chatham","Pacific/Chuuk","Pacific/Easter","Pacific/Efate","Pacific/Fakaofo","Pacific/Fiji","Pacific/Funafuti","Pacific/Galapagos","Pacific/Gambier","Pacific/Guadalcanal","Pacific/Guam","Pacific/Honolulu","Pacific/Kanton","Pacific/Kiritimati","Pacific/Kosrae","Pacific/Kwajalein","Pacific/Majuro","Pacific/Marquesas","Pacific/Midway","Pacific/Nauru","Pacific/Niue","Pacific/Norfolk","Pacific/Noumea","Pacific/Pago_Pago","Pacific/Palau","Pacific/Pitcairn","Pacific/Pohnpei","Pacific/Port_Moresby","Pacific/Rarotonga","Pacific/Saipan","Pacific/Tahiti","Pacific/Tarawa","Pacific/Tongatapu","Pacific/Wake","Pacific/Wallis"],i6s={time_zone:oRn},o6s=i6s,s6s=["ADP","AGP","AI","API","ASCII","CLI","COM","CSS","DNS","DRAM","EXE","FTP","GB","HDD","HEX","HTTP","IB","IP","JBOD","JSON","OCR","PCI","PNG","RAM","RSS","SAS","SCSI","SDD","SMS","SMTP","SQL","SSD","SSL","TCP","THX","TLS","UDP","USB","UTF8","VGA","XML","XSS"],l6s={abbreviation:s6s},u6s=l6s,c6s={smiley:["☠️","☹️","☺️","❣️","❤️","❤️🔥","❤️🩹","👁️🗨️","👹","👺","👻","👽","👾","👿","💀","💋","💌","💓","💔","💕","💖","💗","💘","💙","💚","💛","💜","💝","💞","💟","💢","💣","💤","💥","💦","💨","💩","💫","💬","💭","💯","🕳️","🖤","🗨️","🗯️","😀","😁","😂","😃","😄","😅","😆","😇","😈","😉","😊","😋","😌","😍","😎","😏","😐","😑","😒","😓","😔","😕","😖","😗","😘","😙","😚","😛","😜","😝","😞","😟","😠","😡","😢","😣","😤","😥","😦","😧","😨","😩","😪","😫","😬","😭","😮","😮💨","😯","😰","😱","😲","😳","😴","😵","😵💫","😶","😶🌫️","😷","😸","😹","😺","😻","😼","😽","😾","😿","🙀","🙁","🙂","🙃","🙄","🙈","🙉","🙊","🤍","🤎","🤐","🤑","🤒","🤓","🤔","🤕","🤖","🤗","🤠","🤡","🤢","🤣","🤤","🤥","🤧","🤨","🤩","🤪","🤫","🤬","🤭","🤮","🤯","🥰","🥱","🥲","🥳","🥴","🥵","🥶","🥸","🥺","🧐","🧡"],body:["☝🏻","☝🏼","☝🏽","☝🏾","☝🏿","☝️","✊","✊🏻","✊🏼","✊🏽","✊🏾","✊🏿","✋","✋🏻","✋🏼","✋🏽","✋🏾","✋🏿","✌🏻","✌🏼","✌🏽","✌🏾","✌🏿","✌️","✍🏻","✍🏼","✍🏽","✍🏾","✍🏿","✍️","👀","👁️","👂","👂🏻","👂🏼","👂🏽","👂🏾","👂🏿","👃","👃🏻","👃🏼","👃🏽","👃🏾","👃🏿","👄","👅","👆","👆🏻","👆🏼","👆🏽","👆🏾","👆🏿","👇","👇🏻","👇🏼","👇🏽","👇🏾","👇🏿","👈","👈🏻","👈🏼","👈🏽","👈🏾","👈🏿","👉","👉🏻","👉🏼","👉🏽","👉🏾","👉🏿","👊","👊🏻","👊🏼","👊🏽","👊🏾","👊🏿","👋","👋🏻","👋🏼","👋🏽","👋🏾","👋🏿","👌","👌🏻","👌🏼","👌🏽","👌🏾","👌🏿","👍","👍🏻","👍🏼","👍🏽","👍🏾","👍🏿","👎","👎🏻","👎🏼","👎🏽","👎🏾","👎🏿","👏","👏🏻","👏🏼","👏🏽","👏🏾","👏🏿","👐","👐🏻","👐🏼","👐🏽","👐🏾","👐🏿","💅","💅🏻","💅🏼","💅🏽","💅🏾","💅🏿","💪","💪🏻","💪🏼","💪🏽","💪🏾","💪🏿","🖐🏻","🖐🏼","🖐🏽","🖐🏾","🖐🏿","🖐️","🖕","🖕🏻","🖕🏼","🖕🏽","🖕🏾","🖕🏿","🖖","🖖🏻","🖖🏼","🖖🏽","🖖🏾","🖖🏿","🙌","🙌🏻","🙌🏼","🙌🏽","🙌🏾","🙌🏿","🙏","🙏🏻","🙏🏼","🙏🏽","🙏🏾","🙏🏿","🤌","🤌🏻","🤌🏼","🤌🏽","🤌🏾","🤌🏿","🤏","🤏🏻","🤏🏼","🤏🏽","🤏🏾","🤏🏿","🤘","🤘🏻","🤘🏼","🤘🏽","🤘🏾","🤘🏿","🤙","🤙🏻","🤙🏼","🤙🏽","🤙🏾","🤙🏿","🤚","🤚🏻","🤚🏼","🤚🏽","🤚🏾","🤚🏿","🤛","🤛🏻","🤛🏼","🤛🏽","🤛🏾","🤛🏿","🤜","🤜🏻","🤜🏼","🤜🏽","🤜🏾","🤜🏿","🤝","🤞","🤞🏻","🤞🏼","🤞🏽","🤞🏾","🤞🏿","🤟","🤟🏻","🤟🏼","🤟🏽","🤟🏾","🤟🏿","🤲","🤲🏻","🤲🏼","🤲🏽","🤲🏾","🤲🏿","🤳","🤳🏻","🤳🏼","🤳🏽","🤳🏾","🤳🏿","🦴","🦵","🦵🏻","🦵🏼","🦵🏽","🦵🏾","🦵🏿","🦶","🦶🏻","🦶🏼","🦶🏽","🦶🏾","🦶🏿","🦷","🦻","🦻🏻","🦻🏼","🦻🏽","🦻🏾","🦻🏿","🦾","🦿","🧠","🫀","🫁"],person:["🎅","🎅🏻","🎅🏼","🎅🏽","🎅🏾","🎅🏿","👦","👦🏻","👦🏼","👦🏽","👦🏾","👦🏿","👧","👧🏻","👧🏼","👧🏽","👧🏾","👧🏿","👨","👨⚕️","👨⚖️","👨✈️","👨🌾","👨🍳","👨🍼","👨🎓","👨🎤","👨🎨","👨🏫","👨🏭","👨💻","👨💼","👨🔧","👨🔬","👨🚀","👨🚒","👨🦰","👨🦱","👨🦲","👨🦳","👨🏻","👨🏻⚕️","👨🏻⚖️","👨🏻✈️","👨🏻🌾","👨🏻🍳","👨🏻🍼","👨🏻🎓","👨🏻🎤","👨🏻🎨","👨🏻🏫","👨🏻🏭","👨🏻💻","👨🏻💼","👨🏻🔧","👨🏻🔬","👨🏻🚀","👨🏻🚒","👨🏻🦰","👨🏻🦱","👨🏻🦲","👨🏻🦳","👨🏼","👨🏼⚕️","👨🏼⚖️","👨🏼✈️","👨🏼🌾","👨🏼🍳","👨🏼🍼","👨🏼🎓","👨🏼🎤","👨🏼🎨","👨🏼🏫","👨🏼🏭","👨🏼💻","👨🏼💼","👨🏼🔧","👨🏼🔬","👨🏼🚀","👨🏼🚒","👨🏼🦰","👨🏼🦱","👨🏼🦲","👨🏼🦳","👨🏽","👨🏽⚕️","👨🏽⚖️","👨🏽✈️","👨🏽🌾","👨🏽🍳","👨🏽🍼","👨🏽🎓","👨🏽🎤","👨🏽🎨","👨🏽🏫","👨🏽🏭","👨🏽💻","👨🏽💼","👨🏽🔧","👨🏽🔬","👨🏽🚀","👨🏽🚒","👨🏽🦰","👨🏽🦱","👨🏽🦲","👨🏽🦳","👨🏾","👨🏾⚕️","👨🏾⚖️","👨🏾✈️","👨🏾🌾","👨🏾🍳","👨🏾🍼","👨🏾🎓","👨🏾🎤","👨🏾🎨","👨🏾🏫","👨🏾🏭","👨🏾💻","👨🏾💼","👨🏾🔧","👨🏾🔬","👨🏾🚀","👨🏾🚒","👨🏾🦰","👨🏾🦱","👨🏾🦲","👨🏾🦳","👨🏿","👨🏿⚕️","👨🏿⚖️","👨🏿✈️","👨🏿🌾","👨🏿🍳","👨🏿🍼","👨🏿🎓","👨🏿🎤","👨🏿🎨","👨🏿🏫","👨🏿🏭","👨🏿💻","👨🏿💼","👨🏿🔧","👨🏿🔬","👨🏿🚀","👨🏿🚒","👨🏿🦰","👨🏿🦱","👨🏿🦲","👨🏿🦳","👩","👩⚕️","👩⚖️","👩✈️","👩🌾","👩🍳","👩🍼","👩🎓","👩🎤","👩🎨","👩🏫","👩🏭","👩💻","👩💼","👩🔧","👩🔬","👩🚀","👩🚒","👩🦰","👩🦱","👩🦲","👩🦳","👩🏻","👩🏻⚕️","👩🏻⚖️","👩🏻✈️","👩🏻🌾","👩🏻🍳","👩🏻🍼","👩🏻🎓","👩🏻🎤","👩🏻🎨","👩🏻🏫","👩🏻🏭","👩🏻💻","👩🏻💼","👩🏻🔧","👩🏻🔬","👩🏻🚀","👩🏻🚒","👩🏻🦰","👩🏻🦱","👩🏻🦲","👩🏻🦳","👩🏼","👩🏼⚕️","👩🏼⚖️","👩🏼✈️","👩🏼🌾","👩🏼🍳","👩🏼🍼","👩🏼🎓","👩🏼🎤","👩🏼🎨","👩🏼🏫","👩🏼🏭","👩🏼💻","👩🏼💼","👩🏼🔧","👩🏼🔬","👩🏼🚀","👩🏼🚒","👩🏼🦰","👩🏼🦱","👩🏼🦲","👩🏼🦳","👩🏽","👩🏽⚕️","👩🏽⚖️","👩🏽✈️","👩🏽🌾","👩🏽🍳","👩🏽🍼","👩🏽🎓","👩🏽🎤","👩🏽🎨","👩🏽🏫","👩🏽🏭","👩🏽💻","👩🏽💼","👩🏽🔧","👩🏽🔬","👩🏽🚀","👩🏽🚒","👩🏽🦰","👩🏽🦱","👩🏽🦲","👩🏽🦳","👩🏾","👩🏾⚕️","👩🏾⚖️","👩🏾✈️","👩🏾🌾","👩🏾🍳","👩🏾🍼","👩🏾🎓","👩🏾🎤","👩🏾🎨","👩🏾🏫","👩🏾🏭","👩🏾💻","👩🏾💼","👩🏾🔧","👩🏾🔬","👩🏾🚀","👩🏾🚒","👩🏾🦰","👩🏾🦱","👩🏾🦲","👩🏾🦳","👩🏿","👩🏿⚕️","👩🏿⚖️","👩🏿✈️","👩🏿🌾","👩🏿🍳","👩🏿🍼","👩🏿🎓","👩🏿🎤","👩🏿🎨","👩🏿🏫","👩🏿🏭","👩🏿💻","👩🏿💼","👩🏿🔧","👩🏿🔬","👩🏿🚀","👩🏿🚒","👩🏿🦰","👩🏿🦱","👩🏿🦲","👩🏿🦳","👮","👮♀️","👮♂️","👮🏻","👮🏻♀️","👮🏻♂️","👮🏼","👮🏼♀️","👮🏼♂️","👮🏽","👮🏽♀️","👮🏽♂️","👮🏾","👮🏾♀️","👮🏾♂️","👮🏿","👮🏿♀️","👮🏿♂️","👰","👰♀️","👰♂️","👰🏻","👰🏻♀️","👰🏻♂️","👰🏼","👰🏼♀️","👰🏼♂️","👰🏽","👰🏽♀️","👰🏽♂️","👰🏾","👰🏾♀️","👰🏾♂️","👰🏿","👰🏿♀️","👰🏿♂️","👱","👱♀️","👱♂️","👱🏻","👱🏻♀️","👱🏻♂️","👱🏼","👱🏼♀️","👱🏼♂️","👱🏽","👱🏽♀️","👱🏽♂️","👱🏾","👱🏾♀️","👱🏾♂️","👱🏿","👱🏿♀️","👱🏿♂️","👲","👲🏻","👲🏼","👲🏽","👲🏾","👲🏿","👳","👳♀️","👳♂️","👳🏻","👳🏻♀️","👳🏻♂️","👳🏼","👳🏼♀️","👳🏼♂️","👳🏽","👳🏽♀️","👳🏽♂️","👳🏾","👳🏾♀️","👳🏾♂️","👳🏿","👳🏿♀️","👳🏿♂️","👴","👴🏻","👴🏼","👴🏽","👴🏾","👴🏿","👵","👵🏻","👵🏼","👵🏽","👵🏾","👵🏿","👶","👶🏻","👶🏼","👶🏽","👶🏾","👶🏿","👷","👷♀️","👷♂️","👷🏻","👷🏻♀️","👷🏻♂️","👷🏼","👷🏼♀️","👷🏼♂️","👷🏽","👷🏽♀️","👷🏽♂️","👷🏾","👷🏾♀️","👷🏾♂️","👷🏿","👷🏿♀️","👷🏿♂️","👸","👸🏻","👸🏼","👸🏽","👸🏾","👸🏿","👼","👼🏻","👼🏼","👼🏽","👼🏾","👼🏿","💁","💁♀️","💁♂️","💁🏻","💁🏻♀️","💁🏻♂️","💁🏼","💁🏼♀️","💁🏼♂️","💁🏽","💁🏽♀️","💁🏽♂️","💁🏾","💁🏾♀️","💁🏾♂️","💁🏿","💁🏿♀️","💁🏿♂️","💂","💂♀️","💂♂️","💂🏻","💂🏻♀️","💂🏻♂️","💂🏼","💂🏼♀️","💂🏼♂️","💂🏽","💂🏽♀️","💂🏽♂️","💂🏾","💂🏾♀️","💂🏾♂️","💂🏿","💂🏿♀️","💂🏿♂️","💆","💆♀️","💆♂️","💆🏻","💆🏻♀️","💆🏻♂️","💆🏼","💆🏼♀️","💆🏼♂️","💆🏽","💆🏽♀️","💆🏽♂️","💆🏾","💆🏾♀️","💆🏾♂️","💆🏿","💆🏿♀️","💆🏿♂️","💇","💇🏻","💇🏼","💇🏽","🕵🏻","🕵🏻♀️","🕵🏻♂️","🕵🏼","🕵🏼♀️","🕵🏼♂️","🕵🏽","🕵🏽♀️","🕵🏽♂️","🕵🏾","🕵🏾♀️","🕵🏾♂️","🕵🏿","🕵🏿♀️","🕵🏿♂️","🕵️","🕵️♀️","🕵️♂️","🙅","🙅♀️","🙅♂️","🙅🏻","🙅🏻♀️","🙅🏻♂️","🙅🏼","🙅🏼♀️","🙅🏼♂️","🙅🏽","🙅🏽♀️","🙅🏽♂️","🙅🏾","🙅🏾♀️","🙅🏾♂️","🙅🏿","🙅🏿♀️","🙅🏿♂️","🙆","🙆♀️","🙆♂️","🙆🏻","🙆🏻♀️","🙆🏻♂️","🙆🏼","🙆🏼♀️","🙆🏼♂️","🙆🏽","🙆🏽♀️","🙆🏽♂️","🙆🏾","🙆🏾♀️","🙆🏾♂️","🙆🏿","🙆🏿♀️","🙆🏿♂️","🙇","🙇♀️","🙇♂️","🙇🏻","🙇🏻♀️","🙇🏻♂️","🙇🏼","🙇🏼♀️","🙇🏼♂️","🙇🏽","🙇🏽♀️","🙇🏽♂️","🙇🏾","🙇🏾♀️","🙇🏾♂️","🙇🏿","🙇🏿♀️","🙇🏿♂️","🙋","🙋♀️","🙋♂️","🙋🏻","🙋🏻♀️","🙋🏻♂️","🙋🏼","🙋🏼♀️","🙋🏼♂️","🙋🏽","🙋🏽♀️","🙋🏽♂️","🙋🏾","🙋🏾♀️","🙋🏾♂️","🙋🏿","🙋🏿♀️","🙋🏿♂️","🙍","🙍♀️","🙍♂️","🙍🏻","🙍🏻♀️","🙍🏻♂️","🙍🏼","🙍🏼♀️","🙍🏼♂️","🙍🏽","🙍🏽♀️","🙍🏽♂️","🙍🏾","🙍🏾♀️","🙍🏾♂️","🙍🏿","🙍🏿♀️","🙍🏿♂️","🙎","🙎♀️","🙎♂️","🙎🏻","🙎🏻♀️","🙎🏻♂️","🙎🏼","🙎🏼♀️","🙎🏼♂️","🙎🏽","🙎🏽♀️","🙎🏽♂️","🙎🏾","🙎🏾♀️","🙎🏾♂️","🙎🏿","🙎🏿♀️","🙎🏿♂️","🤦","🤦♀️","🤦♂️","🤦🏻","🤦🏻♀️","🤦🏻♂️","🤦🏼","🤦🏼♀️","🤦🏼♂️","🤦🏽","🤦🏽♀️","🤦🏽♂️","🤦🏾","🤦🏾♀️","🤦🏾♂️","🤦🏿","🤦🏿♀️","🤦🏿♂️","🤰","🤰🏻","🤰🏼","🤰🏽","🤰🏾","🤰🏿","🤱","🤱🏻","🤱🏼","🤱🏽","🤱🏾","🤱🏿","🤴","🤴🏻","🤴🏼","🤴🏽","🤴🏾","🤴🏿","🤵","🤵♀️","🤵♂️","🤵🏻","🤵🏻♀️","🤵🏻♂️","🤵🏼","🤵🏼♀️","🤵🏼♂️","🤵🏽","🤵🏽♀️","🤵🏽♂️","🤵🏾","🤵🏾♀️","🤵🏾♂️","🤵🏿","🤵🏿♀️","🤵🏿♂️","🤶","🤶🏻","🤶🏼","🤶🏽","🤶🏾","🤶🏿","🤷","🤷♀️","🤷♂️","🤷🏻","🤷🏻♀️","🤷🏻♂️","🤷🏼","🤷🏼♀️","🤷🏼♂️","🤷🏽","🤷🏽♀️","🤷🏽♂️","🤷🏾","🤷🏾♀️","🤷🏾♂️","🤷🏿","🤷🏿♀️","🤷🏿♂️","🥷","🥷🏻","🥷🏼","🥷🏽","🥷🏾","🥷🏿","🦸","🦸♀️","🦸♂️","🦸🏻","🦸🏻♀️","🦸🏻♂️","🦸🏼","🦸🏼♀️","🦸🏼♂️","🦸🏽","🦸🏽♀️","🦸🏽♂️","🦸🏾","🦸🏾♀️","🦸🏾♂️","🦸🏿","🦸🏿♀️","🦸🏿♂️","🦹","🦹♀️","🦹♂️","🦹🏻","🦹🏻♀️","🦹🏻♂️","🦹🏼","🦹🏼♀️","🦹🏼♂️","🦹🏽","🦹🏽♀️","🦹🏽♂️","🦹🏾","🦹🏾♀️","🦹🏾♂️","🦹🏿","🦹🏿♀️","🦹🏿♂️","🧏","🧏♀️","🧏♂️","🧏🏻","🧏🏻♀️","🧏🏻♂️","🧏🏼","🧏🏼♀️","🧏🏼♂️","🧏🏽","🧏🏽♀️","🧏🏽♂️","🧏🏾","🧏🏾♀️","🧏🏾♂️","🧏🏿","🧏🏿♀️","🧏🏿♂️","🧑","🧑⚕️","🧑⚖️","🧑✈️","🧑🌾","🧑🍳","🧑🍼","🧑🎄","🧑🎓","🧑🎤","🧑🎨","🧑🏫","🧑🏭","🧑💻","🧑💼","🧑🔧","🧑🔬","🧑🚀","🧑🚒","🧑🦰","🧑🦱","🧑🦲","🧑🦳","🧑🏻","🧑🏻⚕️","🧑🏻⚖️","🧑🏻✈️","🧑🏻🌾","🧑🏻🍳","🧑🏻🍼","🧑🏻🎄","🧑🏻🎓","🧑🏻🎤","🧑🏻🎨","🧑🏻🏫","🧑🏻🏭","🧑🏻💻","🧑🏻💼","🧑🏻🔧","🧑🏻🔬","🧑🏻🚀","🧑🏻🚒","🧑🏻🦰","🧑🏻🦱","🧑🏻🦲","🧑🏻🦳","🧑🏼","🧑🏼⚕️","🧑🏼⚖️","🧑🏼✈️","🧑🏼🌾","🧑🏼🍳","🧑🏼🍼","🧑🏼🎄","🧑🏼🎓","🧑🏼🎤","🧑🏼🎨","🧑🏼🏫","🧑🏼🏭","🧑🏼💻","🧑🏼💼","🧑🏼🔧","🧑🏼🔬","🧑🏼🚀","🧑🏼🚒","🧑🏼🦰","🧑🏼🦱","🧑🏼🦲","🧑🏼🦳","🧑🏽","🧑🏽⚕️","🧑🏽⚖️","🧑🏽✈️","🧑🏽🌾","🧑🏽🍳","🧑🏽🍼","🧑🏽🎄","🧑🏽🎓","🧑🏽🎤","🧑🏽🎨","🧑🏽🏫","🧑🏽🏭","🧑🏽💻","🧑🏽💼","🧑🏽🔧","🧑🏽🔬","🧑🏽🚀","🧑🏽🚒","🧑🏽🦰","🧑🏽🦱","🧑🏽🦲","🧑🏽🦳","🧑🏾","🧑🏾⚕️","🧑🏾⚖️","🧑🏾✈️","🧑🏾🌾","🧑🏾🍳","🧑🏾🍼","🧑🏾🎄","🧑🏾🎓","🧑🏾🎤","🧑🏾🎨","🧑🏾🏫","🧑🏾🏭","🧑🏾💻","🧑🏾💼","🧑🏾🔧","🧑🏾🔬","🧑🏾🚀","🧑🏾🚒","🧑🏾🦰","🧑🏾🦱","🧑🏾🦲","🧑🏾🦳","🧑🏿","🧑🏿⚕️","🧑🏿⚖️","🧑🏿✈️","🧑🏿🌾","🧑🏿🍳","🧑🏿🍼","🧑🏿🎄","🧑🏿🎓","🧑🏿🎤","🧑🏿🎨","🧑🏿🏫","🧑🏿🏭","🧑🏿💻","🧑🏿💼","🧑🏿🔧","🧑🏿🔬","🧑🏿🚀","🧑🏿🚒","🧑🏿🦰","🧑🏿🦱","🧑🏿🦲","🧑🏿🦳","🧒","🧒🏻","🧒🏼","🧒🏽","🧒🏾","🧒🏿","🧓","🧓🏻","🧓🏼","🧓🏽","🧓🏾","🧓🏿","🧔","🧔♀️","🧔♂️","🧔🏻","🧔🏻♀️","🧔🏻♂️","🧔🏼","🧔🏼♀️","🧔🏼♂️","🧔🏽","🧔🏽♀️","🧔🏽♂️","🧔🏾","🧔🏾♀️","🧔🏾♂️","🧔🏿","🧔🏿♀️","🧔🏿♂️","🧕","🧕🏻","🧕🏼","🧕🏽","🧕🏾","🧕🏿","🧙","🧙♀️","🧙♂️","🧙🏻","🧙🏻♀️","🧙🏻♂️","🧙🏼","🧙🏼♀️","🧙🏼♂️","🧙🏽","🧙🏽♀️","🧙🏽♂️","🧙🏾","🧙🏾♀️","🧙🏾♂️","🧙🏿","🧙🏿♀️","🧙🏿♂️","🧚","🧚♀️","🧚♂️","🧚🏻","🧚🏻♀️","🧚🏻♂️","🧚🏼","🧚🏼♀️","🧚🏼♂️","🧚🏽","🧚🏽♀️","🧚🏽♂️","🧚🏾","🧚🏾♀️","🧚🏾♂️","🧚🏿","🧚🏿♀️","🧚🏿♂️","🧛","🧛♀️","🧛♂️","🧛🏻","🧛🏻♀️","🧛🏻♂️","🧛🏼","🧛🏼♀️","🧛🏼♂️","🧛🏽","🧛🏽♀️","🧛🏽♂️","🧛🏾","🧛🏾♀️","🧛🏾♂️","🧛🏿","🧛🏿♀️","🧛🏿♂️","🧜","🧜♀️","🧜♂️","🧜🏻","🧜🏻♀️","🧜🏻♂️","🧜🏼","🧜🏼♀️","🧜🏼♂️","🧜🏽","🧜🏽♀️","🧜🏽♂️","🧜🏾","🧜🏾♀️","🧜🏾♂️","🧜🏿","🧜🏿♀️","🧜🏿♂️","🧝","🧝♀️","🧝♂️","🧝🏻","🧝🏻♀️","🧝🏻♂️","🧝🏼","🧝🏼♀️","🧝🏼♂️","🧝🏽","🧝🏽♀️","🧝🏽♂️","🧝🏾","🧝🏾♀️","🧝🏾♂️","🧝🏿","🧝🏿♀️","🧝🏿♂️","🧞","🧞♀️","🧞♂️","🧟","🧟♀️","🧟♂️"],nature:["☘️","🌱","🌲","🌳","🌴","🌵","🌷","🌸","🌹","🌺","🌻","🌼","🌾","🌿","🍀","🍁","🍂","🍃","🏵️","🐀","🐁","🐂","🐃","🐄","🐅","🐆","🐇","🐈","🐈⬛","🐉","🐊","🐋","🐌","🐍","🐎","🐏","🐐","🐑","🐒","🐓","🐔","🐕","🐕🦺","🐖","🐗","🐘","🐙","🐚","🐛","🐜","🐝","🐞","🐟","🐠","🐡","🐢","🐣","🐤","🐥","🐦","🐧","🐨","🐩","🐪","🐫","🐬","🐭","🐮","🐯","🐰","🐱","🐲","🐳","🐴","🐵","🐶","🐷","🐸","🐹","🐺","🐻","🐻❄️","🐼","🐽","🐾","🐿️","💐","💮","🕊️","🕷️","🕸️","🥀","🦁","🦂","🦃","🦄","🦅","🦆","🦇","🦈","🦉","🦊","🦋","🦌","🦍","🦎","🦏","🦒","🦓","🦔","🦕","🦖","🦗","🦘","🦙","🦚","🦛","🦜","🦝","🦟","🦠","🦡","🦢","🦣","🦤","🦥","🦦","🦧","🦨","🦩","🦫","🦬","🦭","🦮","🪰","🪱","🪲","🪳","🪴","🪶"],food:["☕","🌭","🌮","🌯","🌰","🌶️","🌽","🍄","🍅","🍆","🍇","🍈","🍉","🍊","🍋","🍌","🍍","🍎","🍏","🍐","🍑","🍒","🍓","🍔","🍕","🍖","🍗","🍘","🍙","🍚","🍛","🍜","🍝","🍞","🍟","🍠","🍡","🍢","🍣","🍤","🍥","🍦","🍧","🍨","🍩","🍪","🍫","🍬","🍭","🍮","🍯","🍰","🍱","🍲","🍳","🍴","🍵","🍶","🍷","🍸","🍹","🍺","🍻","🍼","🍽️","🍾","🍿","🎂","🏺","🔪","🥂","🥃","🥄","🥐","🥑","🥒","🥓","🥔","🥕","🥖","🥗","🥘","🥙","🥚","🥛","🥜","🥝","🥞","🥟","🥠","🥡","🥢","🥣","🥤","🥥","🥦","🥧","🥨","🥩","🥪","🥫","🥬","🥭","🥮","🥯","🦀","🦐","🦑","🦞","🦪","🧀","🧁","🧂","🧃","🧄","🧅","🧆","🧇","🧈","🧉","🧊","🧋","🫐","🫑","🫒","🫓","🫔","🫕","🫖"],travel:["⌚","⌛","⏰","⏱️","⏲️","⏳","☀️","☁️","☂️","☃️","☄️","☔","♨️","⚓","⚡","⛄","⛅","⛈️","⛩️","⛪","⛰️","⛱️","⛲","⛴️","⛵","⛺","⛽","✈️","❄️","⭐","🌀","🌁","🌂","🌃","🌄","🌅","🌆","🌇","🌈","🌉","🌊","🌋","🌌","🌍","🌎","🌏","🌐","🌑","🌒","🌓","🌔","🌕","🌖","🌗","🌘","🌙","🌚","🌛","🌜","🌝","🌞","🌟","🌠","🌡️","🌤️","🌥️","🌦️","🌧️","🌨️","🌩️","🌪️","🌫️","🌬️","🎠","🎡","🎢","🎪","🏍️","🏎️","🏔️","🏕️","🏖️","🏗️","🏘️","🏙️","🏚️","🏛️","🏜️","🏝️","🏞️","🏟️","🏠","🏡","🏢","🏣","🏤","🏥","🏦","🏨","🏩","🏪","🏫","🏬","🏭","🏯","🏰","💈","💒","💧","💺","🔥","🕋","🕌","🕍","🕐","🕑","🕒","🕓","🕔","🕕","🕖","🕗","🕘","🕙","🕚","🕛","🕜","🕝","🕞","🕟","🕠","🕡","🕢","🕣","🕤","🕥","🕦","🕧","🕰️","🗺️","🗻","🗼","🗽","🗾","🚀","🚁","🚂","🚃","🚄","🚅","🚆","🚇","🚈","🚉","🚊","🚋","🚌","🚍","🚎","🚏","🚐","🚑","🚒","🚓","🚔","🚕","🚖","🚗","🚘","🚙","🚚","🚛","🚜","🚝","🚞","🚟","🚠","🚡","🚢","🚤","🚥","🚦","🚧","🚨","🚲","🛎️","🛑","🛕","🛖","🛢️","🛣️","🛤️","🛥️","🛩️","🛫","🛬","🛰️","🛳️","🛴","🛵","🛶","🛸","🛹","🛺","🛻","🛼","🦼","🦽","🧭","🧱","🧳","🪂","🪐","🪨","🪵"],activity:["♟️","♠️","♣️","♥️","♦️","⚽","⚾","⛳","⛸️","✨","🀄","🃏","🎀","🎁","🎃","🎄","🎆","🎇","🎈","🎉","🎊","🎋","🎍","🎎","🎏","🎐","🎑","🎖️","🎗️","🎟️","🎣","🎨","🎫","🎭","🎮","🎯","🎰","🎱","🎲","🎳","🎴","🎽","🎾","🎿","🏀","🏅","🏆","🏈","🏉","🏏","🏐","🏑","🏒","🏓","🏸","🔮","🕹️","🖼️","🛷","🤿","🥅","🥇","🥈","🥉","🥊","🥋","🥌","🥍","🥎","🥏","🧧","🧨","🧩","🧵","🧶","🧸","🧿","🪀","🪁","🪄","🪅","🪆","🪡","🪢"],object:["⌨️","☎️","⚒️","⚔️","⚖️","⚗️","⚙️","⚰️","⚱️","⛏️","⛑️","⛓️","✂️","✉️","✏️","✒️","🎒","🎓","🎙️","🎚️","🎛️","🎞️","🎤","🎥","🎧","🎩","🎬","🎵","🎶","🎷","🎸","🎹","🎺","🎻","🎼","🏮","🏷️","🏹","👑","👒","👓","👔","👕","👖","👗","👘","👙","👚","👛","👜","👝","👞","👟","👠","👡","👢","💄","💉","💊","💍","💎","💡","💰","💳","💴","💵","💶","💷","💸","💹","💻","💼","💽","💾","💿","📀","📁","📂","📃","📄","📅","📆","📇","📈","📉","📊","📋","📌","📍","📎","📏","📐","📑","📒","📓","📔","📕","📖","📗","📘","📙","📚","📜","📝","📞","📟","📠","📡","📢","📣","📤","📥","📦","📧","📨","📩","📪","📫","📬","📭","📮","📯","📰","📱","📲","📷","📸","📹","📺","📻","📼","📽️","📿","🔇","🔈","🔉","🔊","🔋","🔌","🔍","🔎","🔏","🔐","🔑","🔒","🔓","🔔","🔕","🔖","🔗","🔦","🔧","🔨","🔩","🔫","🔬","🔭","🕯️","🕶️","🖇️","🖊️","🖋️","🖌️","🖍️","🖥️","🖨️","🖱️","🖲️","🗂️","🗃️","🗄️","🗑️","🗒️","🗓️","🗜️","🗝️","🗞️","🗡️","🗳️","🗿","🚪","🚬","🚽","🚿","🛁","🛋️","🛍️","🛏️","🛒","🛗","🛠️","🛡️","🥁","🥻","🥼","🥽","🥾","🥿","🦯","🦺","🧢","🧣","🧤","🧥","🧦","🧪","🧫","🧬","🧮","🧯","🧰","🧲","🧴","🧷","🧹","🧺","🧻","🧼","🧽","🧾","🩰","🩱","🩲","🩳","🩴","🩸","🩹","🩺","🪃","🪑","🪒","🪓","🪔","🪕","🪖","🪗","🪘","🪙","🪚","🪛","🪜","🪝","🪞","🪟","🪠","🪣","🪤","🪥","🪦","🪧"],symbol:["#️⃣","*️⃣","0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣","©️","®️","‼️","⁉️","™️","ℹ️","↔️","↕️","↖️","↗️","↘️","↙️","↩️","↪️","⏏️","⏩","⏪","⏫","⏬","⏭️","⏮️","⏯️","⏸️","⏹️","⏺️","Ⓜ️","▪️","▫️","▶️","◀️","◻️","◼️","◽","◾","☑️","☢️","☣️","☦️","☪️","☮️","☯️","☸️","♀️","♂️","♈","♉","♊","♋","♌","♍","♎","♏","♐","♑","♒","♓","♻️","♾️","♿","⚕️","⚛️","⚜️","⚠️","⚧️","⚪","⚫","⛎","⛔","✅","✔️","✖️","✝️","✡️","✳️","✴️","❇️","❌","❎","❓","❔","❕","❗","➕","➖","➗","➡️","➰","➿","⤴️","⤵️","⬅️","⬆️","⬇️","⬛","⬜","⭕","〰️","〽️","㊗️","㊙️","🅰️","🅱️","🅾️","🅿️","🆎","🆑","🆒","🆓","🆔","🆕","🆖","🆗","🆘","🆙","🆚","🈁","🈂️","🈚","🈯","🈲","🈳","🈴","🈵","🈶","🈷️","🈸","🈹","🈺","🉐","🉑","🎦","🏧","💠","💱","💲","📛","📳","📴","📵","📶","🔀","🔁","🔂","🔃","🔄","🔅","🔆","🔘","🔙","🔚","🔛","🔜","🔝","🔞","🔟","🔠","🔡","🔢","🔣","🔤","🔯","🔰","🔱","🔲","🔳","🔴","🔵","🔶","🔷","🔸","🔹","🔺","🔻","🔼","🔽","🕉️","🕎","🚫","🚭","🚮","🚯","🚰","🚱","🚳","🚷","🚸","🚹","🚺","🚻","🚼","🚾","🛂","🛃","🛄","🛅","🛐","🟠","🟡","🟢","🟣","🟤","🟥","🟦","🟧","🟨","🟩","🟪","🟫"],flag:["🇦🇨","🇦🇩","🇦🇪","🇦🇫","🇦🇬","🇦🇮","🇦🇱","🇦🇲","🇦🇴","🇦🇶","🇦🇷","🇦🇸","🇦🇹","🇦🇺","🇦🇼","🇦🇽","🇦🇿","🇧🇦","🇧🇧","🇧🇩","🇧🇪","🇧🇫","🇧🇬","🇧🇭","🇧🇮","🇧🇯","🇧🇱","🇧🇲","🇧🇳","🇧🇴","🇧🇶","🇧🇷","🇧🇸","🇧🇹","🇧🇻","🇧🇼","🇧🇾","🇧🇿","🇨🇦","🇨🇨","🇨🇩","🇨🇫","🇨🇬","🇨🇭","🇨🇮","🇨🇰","🇨🇱","🇨🇲","🇨🇳","🇨🇴","🇨🇵","🇨🇷","🇨🇺","🇨🇻","🇨🇼","🇨🇽","🇨🇾","🇨🇿","🇩🇪","🇩🇬","🇩🇯","🇩🇰","🇩🇲","🇩🇴","🇩🇿","🇪🇦","🇪🇨","🇪🇪","🇪🇬","🇪🇭","🇪🇷","🇪🇸","🇪🇹","🇪🇺","🇫🇮","🇫🇯","🇫🇰","🇫🇲","🇫🇴","🇫🇷","🇬🇦","🇬🇧","🇬🇩","🇬🇪","🇬🇫","🇬🇬","🇬🇭","🇬🇮","🇬🇱","🇬🇲","🇬🇳","🇬🇵","🇬🇶","🇬🇷","🇬🇸","🇬🇹","🇬🇺","🇬🇼","🇬🇾","🇭🇰","🇭🇲","🇭🇳","🇭🇷","🇭🇹","🇭🇺","🇮🇨","🇮🇩","🇮🇪","🇮🇱","🇮🇲","🇮🇳","🇮🇴","🇮🇶","🇮🇷","🇮🇸","🇮🇹","🇯🇪","🇯🇲","🇯🇴","🇯🇵","🇰🇪","🇰🇬","🇰🇭","🇰🇮","🇰🇲","🇰🇳","🇰🇵","🇰🇷","🇰🇼","🇰🇾","🇰🇿","🇱🇦","🇱🇧","🇱🇨","🇱🇮","🇱🇰","🇱🇷","🇱🇸","🇱🇹","🇱🇺","🇱🇻","🇱🇾","🇲🇦","🇲🇨","🇲🇩","🇲🇪","🇲🇫","🇲🇬","🇲🇭","🇲🇰","🇲🇱","🇲🇲","🇲🇳","🇲🇴","🇲🇵","🇲🇶","🇲🇷","🇲🇸","🇲🇹","🇲🇺","🇲🇻","🇲🇼","🇲🇽","🇲🇾","🇲🇿","🇳🇦","🇳🇨","🇳🇪","🇳🇫","🇳🇬","🇳🇮","🇳🇱","🇳🇴","🇳🇵","🇳🇷","🇳🇺","🇳🇿","🇴🇲","🇵🇦","🇵🇪","🇵🇫","🇵🇬","🇵🇭","🇵🇰","🇵🇱","🇵🇲","🇵🇳","🇵🇷","🇵🇸","🇵🇹","🇵🇼","🇵🇾","🇶🇦","🇷🇪","🇷🇴","🇷🇸","🇷🇺","🇷🇼","🇸🇦","🇸🇧","🇸🇨","🇸🇩","🇸🇪","🇸🇬","🇸🇭","🇸🇮","🇸🇯","🇸🇰","🇸🇱","🇸🇲","🇸🇳","🇸🇴","🇸🇷","🇸🇸","🇸🇹","🇸🇻","🇸🇽","🇸🇾","🇸🇿","🇹🇦","🇹🇨","🇹🇩","🇹🇫","🇹🇬","🇹🇭","🇹🇯","🇹🇰","🇹🇱","🇹🇲","🇹🇳","🇹🇴","🇹🇷","🇹🇹","🇹🇻","🇹🇼","🇹🇿","🇺🇦","🇺🇬","🇺🇲","🇺🇳","🇺🇸","🇺🇾","🇺🇿","🇻🇦","🇻🇨","🇻🇪","🇻🇬","🇻🇮","🇻🇳","🇻🇺","🇼🇫","🇼🇸","🇽🇰","🇾🇪","🇾🇹","🇿🇦","🇿🇲","🇿🇼","🎌","🏁","🏳️","🏳️⚧️","🏳️🌈","🏴","🏴☠️","🚩"]},d6s={informational:[100,101,102,103],success:[200,201,202,203,204,205,206,207,208,226],redirection:[300,301,302,303,304,305,306,307,308],clientError:[400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,421,422,423,424,425,426,428,429,431,451],serverError:[500,501,502,503,504,505,506,507,508,510,511]},p6s=["ES256","ES384","ES512","HS256","HS384","HS512","PS256","PS384","PS512","RS256","RS384","RS512","none"],h6s=["FakerBot/{{system.semver}}","Googlebot/2.1 (+http://www.google.com/bot.html)",'Mozilla/5.0 (Linux; Android {{number.int({"min":5,"max":13})}}; {{helpers.arrayElement(["SM-G998U","SM-G998B","SM-G998N","SM-G998P","SM-T800"])}}) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Chrome/{{number.int({"min":55,"max":131})}}.{{system.semver}} Mobile Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}','Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:{{number.int({"min":75, "max":133})}}.0) Gecko/20100101 Firefox/{{number.int({"min":75, "max":133})}}.0','Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Version/16.1 Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}}','Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_15_7) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Chrome/{{number.int({"min":55,"max":131})}}.{{system.semver}} Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}}','Mozilla/5.0 (Windows NT {{helpers.arrayElement(["5.1","5.2","6.0","6.1","6.2","6.3","10.0"])}}; Win64; x64) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Chrome/{{number.int({"min":55,"max":131})}}.{{system.semver}} Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}} Edg/{{number.int({"min":110,"max":131})}}.{{system.semver}}','Mozilla/5.0 (X11; Linux x86_64; rv:{{number.int({"min":75,"max":133})}}.0) Gecko/20100101 Firefox/{{number.int({"min":75,"max":133})}}.0','Mozilla/5.0 (compatible; MSIE {{number.int({"min":6,"max":10})}}.0; Windows NT {{helpers.arrayElement(["5.1","5.2","6.0","6.1","6.2","6.3","10.0"])}}; Trident/{{number.int({"min":4,"max":7})}}.0)','Mozilla/5.0 (iPhone; CPU iPhone OS {{number.int({"min":10,"max":18})}}_{{number.int({"min":0,"max":4})}} like Mac OS X) AppleWebKit/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}.{{number.int({"min":0,"max":99})}} (KHTML, like Gecko) Version/{{number.int({"min":10,"max":18})}}_{{number.int({"min":0,"max":4})}} Mobile/15E148 Safari/{{number.int({"min":536,"max":605})}}.{{number.int({"min":0,"max":99})}}'],f6s={emoji:c6s,http_status_code:d6s,jwt_algorithm:p6s,user_agent_pattern:h6s},m6s=f6s,g6s=[{alpha2:"AD",alpha3:"AND",numeric:"020"},{alpha2:"AE",alpha3:"ARE",numeric:"784"},{alpha2:"AF",alpha3:"AFG",numeric:"004"},{alpha2:"AG",alpha3:"ATG",numeric:"028"},{alpha2:"AI",alpha3:"AIA",numeric:"660"},{alpha2:"AL",alpha3:"ALB",numeric:"008"},{alpha2:"AM",alpha3:"ARM",numeric:"051"},{alpha2:"AO",alpha3:"AGO",numeric:"024"},{alpha2:"AQ",alpha3:"ATA",numeric:"010"},{alpha2:"AR",alpha3:"ARG",numeric:"032"},{alpha2:"AS",alpha3:"ASM",numeric:"016"},{alpha2:"AT",alpha3:"AUT",numeric:"040"},{alpha2:"AU",alpha3:"AUS",numeric:"036"},{alpha2:"AW",alpha3:"ABW",numeric:"533"},{alpha2:"AX",alpha3:"ALA",numeric:"248"},{alpha2:"AZ",alpha3:"AZE",numeric:"031"},{alpha2:"BA",alpha3:"BIH",numeric:"070"},{alpha2:"BB",alpha3:"BRB",numeric:"052"},{alpha2:"BD",alpha3:"BGD",numeric:"050"},{alpha2:"BE",alpha3:"BEL",numeric:"056"},{alpha2:"BF",alpha3:"BFA",numeric:"854"},{alpha2:"BG",alpha3:"BGR",numeric:"100"},{alpha2:"BH",alpha3:"BHR",numeric:"048"},{alpha2:"BI",alpha3:"BDI",numeric:"108"},{alpha2:"BJ",alpha3:"BEN",numeric:"204"},{alpha2:"BL",alpha3:"BLM",numeric:"652"},{alpha2:"BM",alpha3:"BMU",numeric:"060"},{alpha2:"BN",alpha3:"BRN",numeric:"096"},{alpha2:"BO",alpha3:"BOL",numeric:"068"},{alpha2:"BQ",alpha3:"BES",numeric:"535"},{alpha2:"BR",alpha3:"BRA",numeric:"076"},{alpha2:"BS",alpha3:"BHS",numeric:"044"},{alpha2:"BT",alpha3:"BTN",numeric:"064"},{alpha2:"BV",alpha3:"BVT",numeric:"074"},{alpha2:"BW",alpha3:"BWA",numeric:"072"},{alpha2:"BY",alpha3:"BLR",numeric:"112"},{alpha2:"BZ",alpha3:"BLZ",numeric:"084"},{alpha2:"CA",alpha3:"CAN",numeric:"124"},{alpha2:"CC",alpha3:"CCK",numeric:"166"},{alpha2:"CD",alpha3:"COD",numeric:"180"},{alpha2:"CF",alpha3:"CAF",numeric:"140"},{alpha2:"CG",alpha3:"COG",numeric:"178"},{alpha2:"CH",alpha3:"CHE",numeric:"756"},{alpha2:"CI",alpha3:"CIV",numeric:"384"},{alpha2:"CK",alpha3:"COK",numeric:"184"},{alpha2:"CL",alpha3:"CHL",numeric:"152"},{alpha2:"CM",alpha3:"CMR",numeric:"120"},{alpha2:"CN",alpha3:"CHN",numeric:"156"},{alpha2:"CO",alpha3:"COL",numeric:"170"},{alpha2:"CR",alpha3:"CRI",numeric:"188"},{alpha2:"CU",alpha3:"CUB",numeric:"192"},{alpha2:"CV",alpha3:"CPV",numeric:"132"},{alpha2:"CW",alpha3:"CUW",numeric:"531"},{alpha2:"CX",alpha3:"CXR",numeric:"162"},{alpha2:"CY",alpha3:"CYP",numeric:"196"},{alpha2:"CZ",alpha3:"CZE",numeric:"203"},{alpha2:"DE",alpha3:"DEU",numeric:"276"},{alpha2:"DJ",alpha3:"DJI",numeric:"262"},{alpha2:"DK",alpha3:"DNK",numeric:"208"},{alpha2:"DM",alpha3:"DMA",numeric:"212"},{alpha2:"DO",alpha3:"DOM",numeric:"214"},{alpha2:"DZ",alpha3:"DZA",numeric:"012"},{alpha2:"EC",alpha3:"ECU",numeric:"218"},{alpha2:"EE",alpha3:"EST",numeric:"233"},{alpha2:"EG",alpha3:"EGY",numeric:"818"},{alpha2:"EH",alpha3:"ESH",numeric:"732"},{alpha2:"ER",alpha3:"ERI",numeric:"232"},{alpha2:"ES",alpha3:"ESP",numeric:"724"},{alpha2:"ET",alpha3:"ETH",numeric:"231"},{alpha2:"FI",alpha3:"FIN",numeric:"246"},{alpha2:"FJ",alpha3:"FJI",numeric:"242"},{alpha2:"FK",alpha3:"FLK",numeric:"238"},{alpha2:"FM",alpha3:"FSM",numeric:"583"},{alpha2:"FO",alpha3:"FRO",numeric:"234"},{alpha2:"FR",alpha3:"FRA",numeric:"250"},{alpha2:"GA",alpha3:"GAB",numeric:"266"},{alpha2:"GB",alpha3:"GBR",numeric:"826"},{alpha2:"GD",alpha3:"GRD",numeric:"308"},{alpha2:"GE",alpha3:"GEO",numeric:"268"},{alpha2:"GF",alpha3:"GUF",numeric:"254"},{alpha2:"GG",alpha3:"GGY",numeric:"831"},{alpha2:"GH",alpha3:"GHA",numeric:"288"},{alpha2:"GI",alpha3:"GIB",numeric:"292"},{alpha2:"GL",alpha3:"GRL",numeric:"304"},{alpha2:"GM",alpha3:"GMB",numeric:"270"},{alpha2:"GN",alpha3:"GIN",numeric:"324"},{alpha2:"GP",alpha3:"GLP",numeric:"312"},{alpha2:"GQ",alpha3:"GNQ",numeric:"226"},{alpha2:"GR",alpha3:"GRC",numeric:"300"},{alpha2:"GS",alpha3:"SGS",numeric:"239"},{alpha2:"GT",alpha3:"GTM",numeric:"320"},{alpha2:"GU",alpha3:"GUM",numeric:"316"},{alpha2:"GW",alpha3:"GNB",numeric:"624"},{alpha2:"GY",alpha3:"GUY",numeric:"328"},{alpha2:"HK",alpha3:"HKG",numeric:"344"},{alpha2:"HM",alpha3:"HMD",numeric:"334"},{alpha2:"HN",alpha3:"HND",numeric:"340"},{alpha2:"HR",alpha3:"HRV",numeric:"191"},{alpha2:"HT",alpha3:"HTI",numeric:"332"},{alpha2:"HU",alpha3:"HUN",numeric:"348"},{alpha2:"ID",alpha3:"IDN",numeric:"360"},{alpha2:"IE",alpha3:"IRL",numeric:"372"},{alpha2:"IL",alpha3:"ISR",numeric:"376"},{alpha2:"IM",alpha3:"IMN",numeric:"833"},{alpha2:"IN",alpha3:"IND",numeric:"356"},{alpha2:"IO",alpha3:"IOT",numeric:"086"},{alpha2:"IQ",alpha3:"IRQ",numeric:"368"},{alpha2:"IR",alpha3:"IRN",numeric:"364"},{alpha2:"IS",alpha3:"ISL",numeric:"352"},{alpha2:"IT",alpha3:"ITA",numeric:"380"},{alpha2:"JE",alpha3:"JEY",numeric:"832"},{alpha2:"JM",alpha3:"JAM",numeric:"388"},{alpha2:"JO",alpha3:"JOR",numeric:"400"},{alpha2:"JP",alpha3:"JPN",numeric:"392"},{alpha2:"KE",alpha3:"KEN",numeric:"404"},{alpha2:"KG",alpha3:"KGZ",numeric:"417"},{alpha2:"KH",alpha3:"KHM",numeric:"116"},{alpha2:"KI",alpha3:"KIR",numeric:"296"},{alpha2:"KM",alpha3:"COM",numeric:"174"},{alpha2:"KN",alpha3:"KNA",numeric:"659"},{alpha2:"KP",alpha3:"PRK",numeric:"408"},{alpha2:"KR",alpha3:"KOR",numeric:"410"},{alpha2:"KW",alpha3:"KWT",numeric:"414"},{alpha2:"KY",alpha3:"CYM",numeric:"136"},{alpha2:"KZ",alpha3:"KAZ",numeric:"398"},{alpha2:"LA",alpha3:"LAO",numeric:"418"},{alpha2:"LB",alpha3:"LBN",numeric:"422"},{alpha2:"LC",alpha3:"LCA",numeric:"662"},{alpha2:"LI",alpha3:"LIE",numeric:"438"},{alpha2:"LK",alpha3:"LKA",numeric:"144"},{alpha2:"LR",alpha3:"LBR",numeric:"430"},{alpha2:"LS",alpha3:"LSO",numeric:"426"},{alpha2:"LT",alpha3:"LTU",numeric:"440"},{alpha2:"LU",alpha3:"LUX",numeric:"442"},{alpha2:"LV",alpha3:"LVA",numeric:"428"},{alpha2:"LY",alpha3:"LBY",numeric:"434"},{alpha2:"MA",alpha3:"MAR",numeric:"504"},{alpha2:"MC",alpha3:"MCO",numeric:"492"},{alpha2:"MD",alpha3:"MDA",numeric:"498"},{alpha2:"ME",alpha3:"MNE",numeric:"499"},{alpha2:"MF",alpha3:"MAF",numeric:"663"},{alpha2:"MG",alpha3:"MDG",numeric:"450"},{alpha2:"MH",alpha3:"MHL",numeric:"584"},{alpha2:"MK",alpha3:"MKD",numeric:"807"},{alpha2:"ML",alpha3:"MLI",numeric:"466"},{alpha2:"MM",alpha3:"MMR",numeric:"104"},{alpha2:"MN",alpha3:"MNG",numeric:"496"},{alpha2:"MO",alpha3:"MAC",numeric:"446"},{alpha2:"MP",alpha3:"MNP",numeric:"580"},{alpha2:"MQ",alpha3:"MTQ",numeric:"474"},{alpha2:"MR",alpha3:"MRT",numeric:"478"},{alpha2:"MS",alpha3:"MSR",numeric:"500"},{alpha2:"MT",alpha3:"MLT",numeric:"470"},{alpha2:"MU",alpha3:"MUS",numeric:"480"},{alpha2:"MV",alpha3:"MDV",numeric:"462"},{alpha2:"MW",alpha3:"MWI",numeric:"454"},{alpha2:"MX",alpha3:"MEX",numeric:"484"},{alpha2:"MY",alpha3:"MYS",numeric:"458"},{alpha2:"MZ",alpha3:"MOZ",numeric:"508"},{alpha2:"NA",alpha3:"NAM",numeric:"516"},{alpha2:"NC",alpha3:"NCL",numeric:"540"},{alpha2:"NE",alpha3:"NER",numeric:"562"},{alpha2:"NF",alpha3:"NFK",numeric:"574"},{alpha2:"NG",alpha3:"NGA",numeric:"566"},{alpha2:"NI",alpha3:"NIC",numeric:"558"},{alpha2:"NL",alpha3:"NLD",numeric:"528"},{alpha2:"NO",alpha3:"NOR",numeric:"578"},{alpha2:"NP",alpha3:"NPL",numeric:"524"},{alpha2:"NR",alpha3:"NRU",numeric:"520"},{alpha2:"NU",alpha3:"NIU",numeric:"570"},{alpha2:"NZ",alpha3:"NZL",numeric:"554"},{alpha2:"OM",alpha3:"OMN",numeric:"512"},{alpha2:"PA",alpha3:"PAN",numeric:"591"},{alpha2:"PE",alpha3:"PER",numeric:"604"},{alpha2:"PF",alpha3:"PYF",numeric:"258"},{alpha2:"PG",alpha3:"PNG",numeric:"598"},{alpha2:"PH",alpha3:"PHL",numeric:"608"},{alpha2:"PK",alpha3:"PAK",numeric:"586"},{alpha2:"PL",alpha3:"POL",numeric:"616"},{alpha2:"PM",alpha3:"SPM",numeric:"666"},{alpha2:"PN",alpha3:"PCN",numeric:"612"},{alpha2:"PR",alpha3:"PRI",numeric:"630"},{alpha2:"PS",alpha3:"PSE",numeric:"275"},{alpha2:"PT",alpha3:"PRT",numeric:"620"},{alpha2:"PW",alpha3:"PLW",numeric:"585"},{alpha2:"PY",alpha3:"PRY",numeric:"600"},{alpha2:"QA",alpha3:"QAT",numeric:"634"},{alpha2:"RE",alpha3:"REU",numeric:"638"},{alpha2:"RO",alpha3:"ROU",numeric:"642"},{alpha2:"RS",alpha3:"SRB",numeric:"688"},{alpha2:"RU",alpha3:"RUS",numeric:"643"},{alpha2:"RW",alpha3:"RWA",numeric:"646"},{alpha2:"SA",alpha3:"SAU",numeric:"682"},{alpha2:"SB",alpha3:"SLB",numeric:"090"},{alpha2:"SC",alpha3:"SYC",numeric:"690"},{alpha2:"SD",alpha3:"SDN",numeric:"729"},{alpha2:"SE",alpha3:"SWE",numeric:"752"},{alpha2:"SG",alpha3:"SGP",numeric:"702"},{alpha2:"SH",alpha3:"SHN",numeric:"654"},{alpha2:"SI",alpha3:"SVN",numeric:"705"},{alpha2:"SJ",alpha3:"SJM",numeric:"744"},{alpha2:"SK",alpha3:"SVK",numeric:"703"},{alpha2:"SL",alpha3:"SLE",numeric:"694"},{alpha2:"SM",alpha3:"SMR",numeric:"674"},{alpha2:"SN",alpha3:"SEN",numeric:"686"},{alpha2:"SO",alpha3:"SOM",numeric:"706"},{alpha2:"SR",alpha3:"SUR",numeric:"740"},{alpha2:"SS",alpha3:"SSD",numeric:"728"},{alpha2:"ST",alpha3:"STP",numeric:"678"},{alpha2:"SV",alpha3:"SLV",numeric:"222"},{alpha2:"SX",alpha3:"SXM",numeric:"534"},{alpha2:"SY",alpha3:"SYR",numeric:"760"},{alpha2:"SZ",alpha3:"SWZ",numeric:"748"},{alpha2:"TC",alpha3:"TCA",numeric:"796"},{alpha2:"TD",alpha3:"TCD",numeric:"148"},{alpha2:"TF",alpha3:"ATF",numeric:"260"},{alpha2:"TG",alpha3:"TGO",numeric:"768"},{alpha2:"TH",alpha3:"THA",numeric:"764"},{alpha2:"TJ",alpha3:"TJK",numeric:"762"},{alpha2:"TK",alpha3:"TKL",numeric:"772"},{alpha2:"TL",alpha3:"TLS",numeric:"626"},{alpha2:"TM",alpha3:"TKM",numeric:"795"},{alpha2:"TN",alpha3:"TUN",numeric:"788"},{alpha2:"TO",alpha3:"TON",numeric:"776"},{alpha2:"TR",alpha3:"TUR",numeric:"792"},{alpha2:"TT",alpha3:"TTO",numeric:"780"},{alpha2:"TV",alpha3:"TUV",numeric:"798"},{alpha2:"TW",alpha3:"TWN",numeric:"158"},{alpha2:"TZ",alpha3:"TZA",numeric:"834"},{alpha2:"UA",alpha3:"UKR",numeric:"804"},{alpha2:"UG",alpha3:"UGA",numeric:"800"},{alpha2:"UM",alpha3:"UMI",numeric:"581"},{alpha2:"US",alpha3:"USA",numeric:"840"},{alpha2:"UY",alpha3:"URY",numeric:"858"},{alpha2:"UZ",alpha3:"UZB",numeric:"860"},{alpha2:"VA",alpha3:"VAT",numeric:"336"},{alpha2:"VC",alpha3:"VCT",numeric:"670"},{alpha2:"VE",alpha3:"VEN",numeric:"862"},{alpha2:"VG",alpha3:"VGB",numeric:"092"},{alpha2:"VI",alpha3:"VIR",numeric:"850"},{alpha2:"VN",alpha3:"VNM",numeric:"704"},{alpha2:"VU",alpha3:"VUT",numeric:"548"},{alpha2:"WF",alpha3:"WLF",numeric:"876"},{alpha2:"WS",alpha3:"WSM",numeric:"882"},{alpha2:"YE",alpha3:"YEM",numeric:"887"},{alpha2:"YT",alpha3:"MYT",numeric:"175"},{alpha2:"ZA",alpha3:"ZAF",numeric:"710"},{alpha2:"ZM",alpha3:"ZMB",numeric:"894"},{alpha2:"ZW",alpha3:"ZWE",numeric:"716"}],x6s={country_code:g6s,time_zone:oRn},y6s=x6s,v6s={title:"Base",code:"base"},A6s=v6s,b6s=["/Applications","/bin","/boot","/boot/defaults","/dev","/etc","/etc/defaults","/etc/mail","/etc/namedb","/etc/periodic","/etc/ppp","/home","/home/user","/home/user/dir","/lib","/Library","/lost+found","/media","/mnt","/net","/Network","/opt","/opt/bin","/opt/include","/opt/lib","/opt/sbin","/opt/share","/private","/private/tmp","/private/var","/proc","/rescue","/root","/sbin","/selinux","/srv","/sys","/System","/tmp","/Users","/usr","/usr/X11R6","/usr/bin","/usr/include","/usr/lib","/usr/libdata","/usr/libexec","/usr/local/bin","/usr/local/src","/usr/obj","/usr/ports","/usr/sbin","/usr/share","/usr/src","/var","/var/log","/var/mail","/var/spool","/var/tmp","/var/yp"],D6s={"application/epub+zip":{extensions:["epub"]},"application/gzip":{extensions:["gz"]},"application/java-archive":{extensions:["jar","war","ear"]},"application/json":{extensions:["json","map"]},"application/ld+json":{extensions:["jsonld"]},"application/msword":{extensions:["doc","dot"]},"application/octet-stream":{extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/ogg":{extensions:["ogx"]},"application/pdf":{extensions:["pdf"]},"application/rtf":{extensions:["rtf"]},"application/vnd.amazon.ebook":{extensions:["azw"]},"application/vnd.apple.installer+xml":{extensions:["mpkg"]},"application/vnd.mozilla.xul+xml":{extensions:["xul"]},"application/vnd.ms-excel":{extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-fontobject":{extensions:["eot"]},"application/vnd.ms-powerpoint":{extensions:["ppt","pps","pot"]},"application/vnd.oasis.opendocument.presentation":{extensions:["odp"]},"application/vnd.oasis.opendocument.spreadsheet":{extensions:["ods"]},"application/vnd.oasis.opendocument.text":{extensions:["odt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{extensions:["docx"]},"application/vnd.rar":{extensions:["rar"]},"application/vnd.visio":{extensions:["vsd","vst","vss","vsw"]},"application/x-7z-compressed":{extensions:["7z"]},"application/x-abiword":{extensions:["abw"]},"application/x-bzip":{extensions:["bz"]},"application/x-bzip2":{extensions:["bz2","boz"]},"application/x-csh":{extensions:["csh"]},"application/x-freearc":{extensions:["arc"]},"application/x-httpd-php":{extensions:["php"]},"application/x-sh":{extensions:["sh"]},"application/x-tar":{extensions:["tar"]},"application/xhtml+xml":{extensions:["xhtml","xht"]},"application/xml":{extensions:["xml","xsl","xsd","rng"]},"application/zip":{extensions:["zip"]},"audio/3gpp":{extensions:["3gpp"]},"audio/3gpp2":{extensions:["3g2"]},"audio/aac":{extensions:["aac"]},"audio/midi":{extensions:["mid","midi","kar","rmi"]},"audio/mpeg":{extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/ogg":{extensions:["oga","ogg","spx","opus"]},"audio/opus":{extensions:["opus"]},"audio/wav":{extensions:["wav"]},"audio/webm":{extensions:["weba"]},"font/otf":{extensions:["otf"]},"font/ttf":{extensions:["ttf"]},"font/woff":{extensions:["woff"]},"font/woff2":{extensions:["woff2"]},"image/avif":{extensions:["avif"]},"image/bmp":{extensions:["bmp"]},"image/gif":{extensions:["gif"]},"image/jpeg":{extensions:["jpeg","jpg","jpe"]},"image/png":{extensions:["png"]},"image/svg+xml":{extensions:["svg","svgz"]},"image/tiff":{extensions:["tif","tiff"]},"image/vnd.microsoft.icon":{extensions:["ico"]},"image/webp":{extensions:["webp"]},"text/calendar":{extensions:["ics","ifb"]},"text/css":{extensions:["css"]},"text/csv":{extensions:["csv"]},"text/html":{extensions:["html","htm","shtml"]},"text/javascript":{extensions:["js","mjs"]},"text/plain":{extensions:["txt","text","conf","def","list","log","in","ini"]},"video/3gpp":{extensions:["3gp","3gpp"]},"video/3gpp2":{extensions:["3g2"]},"video/mp2t":{extensions:["ts"]},"video/mp4":{extensions:["mp4","mp4v","mpg4"]},"video/mpeg":{extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/ogg":{extensions:["ogv"]},"video/webm":{extensions:["webm"]},"video/x-msvideo":{extensions:["avi"]}},w6s={directory_path:b6s,mime_type:D6s},C6s=w6s,k6s={color:$Bs,database:a6s,date:o6s,hacker:u6s,internet:m6s,location:y6s,metadata:A6s,system:C6s},E6s=k6s,Bv=new QBs({locale:[R5s,E6s]});const S6s={line_chart:{min:10,max:80},area_chart:{min:10,max:80},stacked_line_chart:{min:20,max:50},stacked_area_chart:{min:20,max:50},column_chart:{min:6,max:12},stacked_column_chart:{min:6,max:12},bar_chart:{min:3,max:7},pie_chart:{min:3,max:7},scatter_chart:{min:30,max:60}},F6s=(e,t)=>Math.round(Bv.number.float({min:e-2*t,max:e+2*t})),M6s=(e,t)=>{const r=Array.from({length:t},()=>Math.random()),n=r.reduce((a,o)=>a+o,0);return r.map(a=>Math.round(a/n*e))},sRn=(e,t)=>{const r=new Date(e);return r.setDate(r.getDate()+t),r.toISOString().slice(0,10)},pT=(e,t)=>{if(/ADDRESS|HASH/i.test(e))return()=>Bv.finance.ethereumAddress();if(/DATE|TIME|DAY/i.test(e)){const r=new Date().toISOString().slice(0,10);return n=>sRn(r,n)}return/PERCENT/i.test(e)?()=>Bv.number.float({min:0,max:100}).toFixed(2):/COUNT|NUMBER|INDEX|TOTAL|SIZE|AMOUNT|VALUE|AMT|HOLDERS|TXNS|GAS|BALANCE|NUM|TRANSACTION|PRICE|SUPPLIE|SUPPLY/i.test(e)||(t==null?void 0:t.toLocaleLowerCase())==="value"?()=>Bv.number.int({min:1e5,max:2e7}):()=>Bv.helpers.arrayElement(["A","B","C","D","E","F"])};function B6s(e,t=new Date().toISOString().slice(0,10)){var r,n,a,o,s,l,u,c;const d=JSON.parse(e.metadata),p=d.graphType,h=((r=d.graphMeta)==null?void 0:r.axis)??{},f=S6s[p],g=f?Bv.number.int({min:f.min,max:f.max}):12;if(p==="pie_chart"){const R=((n=h.x)==null?void 0:n.columnName)??"LABEL",j=((a=h.y)==null?void 0:a.columnName)??"VALUE",L=pT(R),I=pT(j);return Array.from({length:g}).map((G,V)=>({[R]:L(V),[j]:I(V)}))}if(p==="scatter_chart"){const R=((o=h.x)==null?void 0:o.columnName)??"X",j=((s=h.y)==null?void 0:s.columnName)??"Y",L=pT(R,"value"),I=pT(j,"value");return Array.from({length:g}).map((G,V)=>({[R]:L(V),[j]:I(V)}))}const y=p==="bar_chart",v=/stacked/i.test(p),A=((l=h.x)==null?void 0:l.columnName)??"X",b=/DATE|TIME/i.test(A)?(R,j)=>sRn(t,j):pT(A),E=y?"category":"value",S=(u=h.seriesField)==null?void 0:u.columnName,M=Object.values(h).filter(R=>R!==h.x&&R!==h.seriesField);if(v&&S){const R=Bv.number.int({min:2,max:4}),j=Array.from({length:R},()=>Bv.word.noun()),L=pT(((c=M[0])==null?void 0:c.columnName)??"VALUE",E);return Array.from({length:g}).flatMap((I,G)=>j.map(V=>{var O;return{[A]:b(G,G),[S]:V,[((O=M[0])==null?void 0:O.columnName)??"VALUE"]:L(G)}}))}const T=M.map(R=>pT(R.columnName,E));return Array.from({length:g}).map((R,j)=>{const L={[A]:b(j,j)};if(v&&M.length>1){const I=F6s(1e3,250),G=M6s(I,M.length);M.forEach((V,O)=>L[V.columnName]=G[O])}else M.forEach((I,G)=>L[I.columnName]=T[G](j));return L})}function T6s(){return Array.from({length:2}).map(e=>({EXAMPLE_A:Bv.word.noun(),EXAMPLE_B:Bv.number.int({min:1e5,max:2e7})}))}function R6s(e){const t=JSON.parse(e.metadata),r=(t==null?void 0:t.columnName)??Bv.helpers.arrayElement(["A","B","C","D","E","F"]),n=Bv.number.int({min:100,max:5e3});return{label:r,value:n}}const P6s=P.createContext(),lRn=P6s;function j6s(e){return Is("MuiTable",e)}as("MuiTable",["root","stickyHeader"]);const I6s=e=>{const{classes:t,stickyHeader:r}=e;return Ns({root:["root",r&&"stickyHeader"]},j6s,t)},N6s=Gr("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(Al(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),pLr="table",L6s=P.forwardRef(function(e,t){const r=Zs({props:e,name:"MuiTable"}),{className:n,component:a=pLr,padding:o="normal",size:s="medium",stickyHeader:l=!1,...u}=r,c={...r,component:a,padding:o,size:s,stickyHeader:l},d=I6s(c),p=P.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return ee.jsx(lRn.Provider,{value:p,children:ee.jsx(N6s,{as:a,role:a===pLr?null:"table",ref:t,className:ri(d.root,n),ownerState:c,...u})})}),O6s=L6s,z6s=P.createContext(),C_e=z6s;function H6s(e){return Is("MuiTableBody",e)}as("MuiTableBody",["root"]);const G6s=e=>{const{classes:t}=e;return Ns({root:["root"]},H6s,t)},V6s=Gr("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),W6s={variant:"body"},hLr="tbody",U6s=P.forwardRef(function(e,t){const r=Zs({props:e,name:"MuiTableBody"}),{className:n,component:a=hLr,...o}=r,s={...r,component:a},l=G6s(s);return ee.jsx(C_e.Provider,{value:W6s,children:ee.jsx(V6s,{className:ri(l.root,n),as:a,ref:t,role:a===hLr?null:"rowgroup",ownerState:s,...o})})}),K6s=U6s;function q6s(e){return Is("MuiTableHead",e)}as("MuiTableHead",["root"]);const X6s=e=>{const{classes:t}=e;return Ns({root:["root"]},q6s,t)},Y6s=Gr("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),J6s={variant:"head"},fLr="thead",Q6s=P.forwardRef(function(e,t){const r=Zs({props:e,name:"MuiTableHead"}),{className:n,component:a=fLr,...o}=r,s={...r,component:a},l=X6s(s);return ee.jsx(C_e.Provider,{value:J6s,children:ee.jsx(Y6s,{as:a,className:ri(l.root,n),ref:t,role:a===fLr?null:"rowgroup",ownerState:s,...o})})}),Z6s=Q6s;function _6s(e){return Is("MuiTableRow",e)}const $6s=as("MuiTableRow",["root","selected","hover","head","footer"]),mLr=$6s,eTs=e=>{const{classes:t,selected:r,hover:n,head:a,footer:o}=e;return Ns({root:["root",r&&"selected",n&&"hover",a&&"head",o&&"footer"]},_6s,t)},tTs=Gr("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(Al(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${mLr.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${mLr.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vp(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vp(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),gLr="tr",rTs=P.forwardRef(function(e,t){const r=Zs({props:e,name:"MuiTableRow"}),{className:n,component:a=gLr,hover:o=!1,selected:s=!1,...l}=r,u=P.useContext(C_e),c={...r,component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"},d=eTs(c);return ee.jsx(tTs,{as:a,ref:t,className:ri(d.root,n),role:a===gLr?null:"row",ownerState:c,...l})}),xLr=rTs;function nTs(e){return Is("MuiTableCell",e)}const aTs=as("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),iTs=aTs,oTs=e=>{const{classes:t,variant:r,align:n,padding:a,size:o,stickyHeader:s}=e,l={root:["root",r,s&&"stickyHeader",n!=="inherit"&&`align${Ga(n)}`,a!=="normal"&&`padding${Ga(a)}`,`size${Ga(o)}`]};return Ns(l,nTs,t)},sTs=Gr("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ga(r.size)}`],r.padding!=="normal"&&t[`padding${Ga(r.padding)}`],r.align!=="inherit"&&t[`align${Ga(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(Al(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
15901
|
-
${e.palette.mode==="light"?i_e(Vp(e.palette.divider,1),.88):a_e(Vp(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${iTs.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),lTs=P.forwardRef(function(e,t){const r=Zs({props:e,name:"MuiTableCell"}),{align:n="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:d,...p}=r,h=P.useContext(lRn),f=P.useContext(C_e),g=f&&f.variant==="head";let y;o?y=o:y=g?"th":"td";let v=l;y==="td"?v=void 0:!v&&g&&(v="col");const A=d||f&&f.variant,b={...r,align:n,component:y,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:A==="head"&&h&&h.stickyHeader,variant:A},E=oTs(b);let S=null;return c&&(S=c==="asc"?"ascending":"descending"),ee.jsx(sTs,{as:y,ref:t,className:ri(E.root,a),"aria-sort":S,scope:v,ownerState:b,...p})}),yLr=lTs;class uTs extends Se.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,r){console.error("ChartErrorBoundary caught an error:",t,r)}render(){return this.state.hasError?ee.jsxs(GTn,{style:{cursor:"not-allowed"},children:[ee.jsx(VTn,{children:this.props.title}),ee.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",maxWidth:"80%"},children:ee.jsx("p",{style:{margin:0,textAlign:"center",color:"#cccccc"},children:"This visual has an error and cannot be displayed or dragged into the canvas."})})]}):this.props.children}}const vLr=({components:e})=>e?ee.jsx(ee.Fragment,{children:e.map(t=>ee.jsx(xt,{sx:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.07)",borderRadius:"6px",color:"white",padding:"5px","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)"}},children:ee.jsx(xGt,{id:`${t.class}-${k4()}`,type:"ProjectComponent",initialSize:Or.pick(t.layout,["w","h"]),metadata:{name:t.class},node:ee.jsx("div",{children:t.class})},t.class)},`featured-${t.class}`))}):null,cTs=({visual:e})=>{const{label:t,value:r}=R6s(e);return ee.jsxs(ee.Fragment,{children:[ee.jsx("div",{style:{fontSize:18,fontWeight:700,color:"#fff",lineHeight:1},children:r}),ee.jsx("div",{style:{fontSize:12,color:"#ccc",marginTop:4},children:t})]})},dTs=()=>{const e=T6s(),t=e.length>0?Object.keys(e[0]):[];return ee.jsxs(O6s,{size:"small",sx:{alignSelf:"flex-start",width:"100%",fontSize:12,color:"#fff",borderCollapse:"collapse",marginTop:1,background:"none","& th":{borderBottomWidth:"0",padding:"6px 16px",textAlign:"left",color:"#fff",background:"none"},"& td":{padding:"6px 16px",borderBottomWidth:"0",color:"#fff",background:"none"}},children:[ee.jsx(Z6s,{children:ee.jsx(xLr,{children:t.map(r=>ee.jsx(yLr,{component:"th",scope:"col",children:r},r))})}),ee.jsx(K6s,{children:e.slice(0,3).map((r,n)=>ee.jsx(xLr,{sx:{...n%2===0?{backgroundColor:"rgba(48, 38, 77, 0.75)",backdropFilter:"blur(2px)","& > td:first-of-type":{borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px"},"& > td:last-of-type":{borderTopRightRadius:"8px",borderBottomRightRadius:"8px"}}:{}},children:t.map(a=>ee.jsx(yLr,{component:"td",children:r[a]},a))},n))})]})},pTs=({visual:e})=>{const t=e!=null&&e.metadata?JSON.parse(e.metadata):void 0,[r,n]=P.useState(null),a=rLr(e.name,t),o=rLr(e.name,t,!0),s=!o,l=(t==null?void 0:t.graphType)==="counter",u=(t==null?void 0:t.graphType)==="table";return P.useEffect(()=>{if(!o||!t)return;const c=B6s(e),{transformedData:d,newSeries:p}=uCs(c,t.graphType,o.series||[]),h={...o,dataset:{source:d},series:p};n(h)},[]),ee.jsx(xt,{sx:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.07)",borderRadius:"6px",color:"white",padding:"5px","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)"}},children:ee.jsx(uTs,{title:e.name,children:ee.jsx(xGt,{id:e.id,type:"ProjectChart",initialSize:{w:12,h:6},metadata:{...e,echartsConfig:a},node:ee.jsx("div",{style:{maxHeight:"160px",width:"100%",display:"flex",flexDirection:"column",gap:"10px",padding:"5px",overflow:"hidden"},children:s||l||u?ee.jsxs(GTn,{children:[ee.jsx(VTn,{children:e.name}),ee.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden"},children:l?ee.jsx(cTs,{visual:e}):u?ee.jsx(dTs,{}):ee.jsx("p",{style:{margin:0,textAlign:"center",color:"#cccccc"},children:"No preview available"})})]}):r&&ee.jsx("div",{style:{height:"150px",width:"100%",borderRadius:"6px",overflow:"hidden"},children:ee.jsx(Nrn,{option:r,style:{height:"100%",width:"100%"},opts:{renderer:"canvas"},notMerge:!0,lazyUpdate:!0})})})})})})},hTs=({visuals:e})=>e?ee.jsx(ee.Fragment,{children:e.map(t=>ee.jsx(pTs,{visual:t},`visual-${t.id}-${t.queryId}`))}):null,fTs=e=>{const t=e.componentLibrary.find(n=>n.class==="Blank"),r=e.componentLibrary.filter(n=>n.class!=="Blank");return ee.jsxs(xt,{sx:{margin:"10px"},children:[e.selectedLibrary===0&&ee.jsxs(ee.Fragment,{children:[ee.jsxs(Oa,{variant:"body2",component:"p",style:{marginTop:"20px",marginBottom:"20px",fontSize:"11px"},children:["The Data Viz tab above allows you to drag in charts that you've saved in the Data Studio ",ee.jsx(N6t,{size:12,style:{display:"inline-block"}})]}),ee.jsxs(fDt,{children:[ee.jsx(mDt,{children:ee.jsx(gDt,{children:"Blank Component"})}),ee.jsx(xt,{sx:{display:"flex",flexDirection:"column",gap:1},children:ee.jsx(vLr,{components:t?[t]:[]})})]}),ee.jsxs(fDt,{children:[ee.jsx(mDt,{children:ee.jsx(gDt,{children:"Featured Components"})}),ee.jsx(xt,{sx:{display:"flex",flexDirection:"column",gap:1},children:ee.jsx(vLr,{components:r})})]})]}),e.selectedLibrary===1&&ee.jsxs(ee.Fragment,{children:[ee.jsxs(Oa,{variant:"body2",component:"p",style:{marginTop:"20px",marginBottom:"20px",fontSize:"11px"},children:["Charts that you saved in"," ",ee.jsx("button",{onClick:()=>e.navigate("DATA_STUDIO",!0),style:{color:"inherit",textDecoration:"underline"},children:"Data Studio"})," ",ee.jsx(N6t,{size:12,style:{display:"inline-block"}})]}),ee.jsxs(fDt,{children:[ee.jsx(mDt,{children:ee.jsx(gDt,{children:"Charts"})}),ee.jsx(xt,{sx:{display:"flex",flexDirection:"column",gap:1},children:ee.jsx(hTs,{visuals:e.visualLibrary})})]})]})]})},WG="anonymous.default",vee="sxt_user.default",mTs=()=>{const{projectMetadata:e,config:t,proxyHandler:r}=Ul(),[n,a]=P.useState("list"),[o,s]=P.useState([]),[l,u]=P.useState([]),[c,d]=P.useState(null),[p,h]=P.useState(!1),[f,g]=P.useState(null),[y,v]=P.useState({window_ms:36e5,limit:100}),[A,b]=P.useState(null),[E,S]=P.useState({window_ms:36e5,limit:100}),M=P.useMemo(()=>r||(t!=null&&t.PROXY_API_BASE_URL&&e!=null&&e.projectHmac?sUe(t.PROXY_API_BASE_URL,e.projectHmac):null),[r,t==null?void 0:t.PROXY_API_BASE_URL,e==null?void 0:e.projectHmac]),T=P.useCallback(async()=>{if(!M){console.warn("API Proxy handler not available");return}try{h(!0),g(null);const J=await M.getSecrets();if(J.ok){const Y=await J.json();s(Y)}else throw new Error(`Failed to load secrets: ${J.status}`)}catch(J){g("Failed to load secrets"),console.error("Error loading secrets:",J)}finally{h(!1)}},[M]),R=P.useCallback(async()=>{if(!(!(e!=null&&e.projectName)||!M))try{const J=await M.getTierKeyMap(e.projectName);if(J.ok){const Y=await J.json();u(Y)}else console.error("Failed to load linked secrets:",J.status)}catch(J){console.error("Error loading linked secrets:",J)}},[e==null?void 0:e.projectName,M]),j=P.useCallback(async J=>{if(!(!(e!=null&&e.projectName)||!M))try{const Y=await M.getRateLimit(e.projectName,WG,J);if(Y.ok){const Q=await Y.json();v({window_ms:Q.window_ms,limit:Q.limit})}else console.error("Failed to load rate limit:",Y.status)}catch(Y){console.error("Error loading rate limit:",Y)}},[e==null?void 0:e.projectName,M]);P.useEffect(()=>{M&&e!=null&&e.projectName&&t!=null&&t.PROXY_API_BASE_URL?(console.log("Loading proxy data with base URL:",t.PROXY_API_BASE_URL),T(),R()):console.warn("Missing required proxy configuration:",{hasProxyHandler:!!M,hasProjectName:!!(e!=null&&e.projectName),hasProxyBaseUrl:!!(t!=null&&t.PROXY_API_BASE_URL)})},[M,e==null?void 0:e.projectName,t==null?void 0:t.PROXY_API_BASE_URL,T,R]);const L=async()=>{if(!(!(e!=null&&e.projectName)||!M||!A))try{h(!0),await M.putTierKeyMap(e.projectName,WG,A),await M.putTierKeyMap(e.projectName,vee,A),await M.putRateLimit(e.projectName,WG,A,E),await M.putRateLimit(e.projectName,vee,A,E),await R(),a("list"),b(null),S({window_ms:36e5,limit:100})}catch(J){g("Failed to link API key"),console.error("Error linking secret:",J)}finally{h(!1)}},I=async()=>{if(!(!c||!(e!=null&&e.projectName)||!M))try{h(!0),await M.deleteTierKeyMap(e.projectName,WG,c),await M.deleteTierKeyMap(e.projectName,vee,c),await M.deleteRateLimit(e.projectName,WG,c),await M.deleteRateLimit(e.projectName,vee,c),await R(),a("list"),d(null)}catch(J){g("Failed to delete link"),console.error("Error deleting link:",J)}finally{h(!1)}},G=async()=>{if(!(!c||!(e!=null&&e.projectName)||!M))try{h(!0),await M.putRateLimit(e.projectName,WG,c,y),await M.putRateLimit(e.projectName,vee,c,y),a("list")}catch(J){g("Failed to update rate limits"),console.error("Error updating rate limits:",J)}finally{h(!1)}},V=o.filter(J=>!l.some(Y=>Y.secret_reference===J.secret_reference)),O=P.useMemo(()=>{const J=new Map;return l.forEach(Y=>{J.has(Y.secret_reference)||J.set(Y.secret_reference,Y)}),Array.from(J.values())},[l]),z=()=>ee.jsxs(xt,{children:[ee.jsx(xt,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",mb:3},children:ee.jsxs(xt,{sx:{display:"flex",gap:1},children:[ee.jsx(s4,{variant:"contained",onClick:()=>a("link"),disabled:V.length===0,startIcon:ee.jsx(fxt,{}),sx:{bgcolor:"#421ea1",fontSize:"12px","&:hover":{bgcolor:"#5933bf"},"&.Mui-disabled":{bgcolor:"rgba(66, 30, 161, 0.3)",opacity:.5,color:"#fff"}},children:"Link Existing API Key"}),ee.jsx(s4,{variant:"outlined",onClick:()=>{const J="/settings/thirdPartyAPIs?openAddPanel=true";window.location.href=J},startIcon:ee.jsx(fxt,{}),sx:{borderColor:"#421ea1",color:"#421ea1",fontSize:"12px","&:hover":{borderColor:"#5933bf",bgcolor:"rgba(66, 30, 161, 0.1)"}},children:"Add New API Key"})]})}),ee.jsx(dx,{sx:{mb:2},children:"Linked API Keys"}),f&&ee.jsx(Oa,{variant:"caption",sx:{color:"rgb(220, 80, 80)",bgcolor:"rgba(0, 0, 0, 0.15)",borderRadius:"6px",padding:"4px 8px",fontWeight:500,display:"block",mb:2},children:f}),O.length===0?ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.7)",textAlign:"center",py:4},children:"No API keys linked with this miniapp yet."}):ee.jsx(d6t,{dense:!0,children:O.map(J=>{const Y=o.find(Q=>Q.secret_reference===J.secret_reference);return ee.jsx(p6t,{onClick:()=>{d(J.secret_reference),j(J.secret_reference),a("details")},sx:{cursor:"pointer","&:hover":{bgcolor:"rgba(255, 255, 255, 0.05)"}},children:ee.jsxs(xt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[ee.jsxs(xt,{children:[ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.85)",fontWeight:500},children:J.secret_reference}),ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.6)",fontSize:"14px"},children:(Y==null?void 0:Y.api_domain)||"Unknown domain"})]}),ee.jsx(Yo,{onClick:Q=>{Q.stopPropagation(),d(J.secret_reference),j(J.secret_reference),a("details")},sx:{color:"rgba(255, 255, 255, 0.7)"},children:ee.jsx(TVe,{fontSize:"small"})})]})},J.secret_reference)})})]}),W=()=>ee.jsxs(xt,{children:[ee.jsxs(xt,{sx:{display:"flex",alignItems:"center",mb:2},children:[ee.jsx(Yo,{onClick:()=>a("list"),sx:{color:"white",mr:1},children:ee.jsx(MFt,{})}),ee.jsx(Oa,{variant:"h6",sx:{color:"white"},children:"Link New API Key"})]}),ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.7)",mb:3},children:"Select an API key (secret) to link with this app and configure its rate limits."}),ee.jsxs(xt,{sx:{mb:3},children:[ee.jsx(dx,{children:"Available API Keys"}),ee.jsx(d6t,{dense:!0,children:V.map(J=>ee.jsx(p6t,{selected:A===J.secret_reference,onClick:()=>b(J.secret_reference),children:ee.jsx(xt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:ee.jsxs(xt,{children:[ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.85)",fontWeight:500},children:J.secret_reference}),ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.6)",fontSize:"14px"},children:J.api_domain})]})})},J.secret_reference))})]}),A&&ee.jsxs(xt,{sx:{mb:3},children:[ee.jsx(dx,{children:"Rate Limit Configuration"}),ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.7)",fontSize:"14px",mb:2},children:"Configure usage limits for all end users of this miniapp."}),ee.jsxs(xt,{sx:{mb:2},children:[ee.jsx(dx,{children:"Time Window (seconds)"}),ee.jsx(J9,{type:"text",value:(E.window_ms/1e3).toString(),onChange:J=>S(Y=>({...Y,window_ms:(parseInt(J.target.value)||0)*1e3})),placeholder:"3600",size:"small",fullWidth:!0})]}),ee.jsxs(xt,{sx:{mb:2},children:[ee.jsx(dx,{children:"Request Limit (over the time window above)"}),ee.jsx(J9,{type:"text",value:E.limit.toString(),onChange:J=>S(Y=>({...Y,limit:parseInt(J.target.value)||0})),placeholder:"100",size:"small",fullWidth:!0})]})]}),ee.jsxs(xt,{sx:{display:"flex",gap:2,justifyContent:"flex-end"},children:[ee.jsx(s4,{variant:"contained",onClick:()=>{a("list"),b(null),S({window_ms:36e5,limit:100})},sx:{bgcolor:"rgba(255, 255, 255, 0.1)","&:hover":{bgcolor:"rgba(255, 255, 255, 0.2)"}},children:"Cancel"}),ee.jsx(s4,{variant:"contained",onClick:L,disabled:p||!A,startIcon:ee.jsx(fxt,{}),sx:{bgcolor:"#421ea1","&:hover":{bgcolor:"#5933bf"},"&.Mui-disabled":{bgcolor:"rgba(66, 30, 161, 0.3)",opacity:.5,color:"#fff"}},children:"Apply Link"})]})]}),K=()=>ee.jsxs(xt,{children:[ee.jsxs(xt,{sx:{display:"flex",alignItems:"center",mb:2},children:[ee.jsx(Yo,{onClick:()=>a("list"),sx:{color:"white",mr:1},children:ee.jsx(MFt,{})}),ee.jsxs(Oa,{variant:"h6",sx:{color:"white"},children:[c," Settings"]})]}),ee.jsxs(xt,{sx:{mb:3},children:[ee.jsx(dx,{children:"Usage Rate Limits"}),ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.7)",fontSize:"14px",mb:2},children:"Global limits for all end users of this miniapp (applies to both anonymous and logged-in users)."})]}),ee.jsxs(xt,{sx:{mb:2},children:[ee.jsx(dx,{children:"Time Window (seconds)"}),ee.jsx(J9,{type:"text",value:(y.window_ms/1e3).toString(),onChange:J=>v(Y=>({...Y,window_ms:(parseInt(J.target.value)||0)*1e3})),placeholder:"3600",size:"small",fullWidth:!0})]}),ee.jsxs(xt,{sx:{mb:3},children:[ee.jsx(dx,{children:"Request Limit (over the time window above)"}),ee.jsx(J9,{type:"text",value:y.limit.toString(),onChange:J=>v(Y=>({...Y,limit:parseInt(J.target.value)||0})),placeholder:"100",size:"small",fullWidth:!0})]}),ee.jsxs(xt,{sx:{display:"flex",gap:2},children:[ee.jsx(s4,{variant:"contained",onClick:G,disabled:p,startIcon:ee.jsx(TVe,{}),sx:{bgcolor:"#421ea1","&:hover":{bgcolor:"#5933bf"},"&.Mui-disabled":{bgcolor:"rgba(66, 30, 161, 0.3)",opacity:.5,color:"#fff"}},children:"Update Rate Limits"}),ee.jsx(s4,{variant:"contained",onClick:()=>{I()},startIcon:ee.jsx(k7i,{}),sx:{bgcolor:"rgba(214, 52, 52, 0.8)","&:hover":{bgcolor:"rgba(178, 24, 24, 0.95)"}},children:"Delete Link"})]})]});return ee.jsx(xt,{sx:{display:"flex",flexDirection:"column",height:"100%",padding:"16px",overflowY:"auto",scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"}},children:ee.jsxs(KWt,{children:[ee.jsxs(qWt,{children:[ee.jsx(D7i,{}),"Third-party API Keys (Secrets)"]}),ee.jsxs(Oa,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.7)",mb:2},children:["Store third-party API keys in your Dreamspace account to enable your app to securely access these APIs without exposing your credentials. Configure rate limits to limit the usage of these APIs by your app","'","s users."]}),n==="list"&&z(),n==="link"&&W(),n==="details"&&K()]})})},gTs=({onBackClick:e})=>ee.jsxs(xt,{sx:{display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:[ee.jsxs(xt,{sx:{display:"flex",alignItems:"center",padding:"16px",borderBottom:"1px solid rgba(255, 255, 255, 0.1)",gap:1},children:[ee.jsx(Yo,{onClick:e,sx:{color:"white",padding:"4px","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"}},children:ee.jsx(MFt,{fontSize:"small"})}),ee.jsx(TVe,{sx:{color:"rgba(255, 255, 255, 0.7)",fontSize:"20px",mr:1}}),ee.jsx(Oa,{variant:"h6",sx:{color:"white",fontWeight:500,fontSize:"16px"},children:"Settings"})]}),ee.jsx(xt,{sx:{flex:1,overflow:"auto",scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"}},children:ee.jsx(mTs,{})})]}),qq=ho(ee.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),xTs=Gr("div")(()=>({position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.8)",backdropFilter:"blur(4px)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:9999,padding:"20px"})),yTs=Gr("div")(()=>({backgroundColor:"rgba(255, 255, 255, 0.05)",backdropFilter:"blur(20px)",borderRadius:"12px",border:"1px solid rgba(255, 255, 255, 0.1)",width:"100%",maxWidth:"440px",overflow:"hidden",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.4)"})),vTs=Gr("div")(()=>({padding:"24px 24px 0 24px",display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px"})),ATs=Gr("div")(()=>({color:"rgba(255, 255, 255, 0.9)",fontSize:"20px",fontWeight:600,display:"flex",alignItems:"center",gap:"12px"})),bTs=Gr("button")(()=>({background:"none",border:"none",color:"rgba(255, 255, 255, 0.6)",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)",color:"rgba(255, 255, 255, 0.9)"}})),DTs=Gr("div")(()=>({padding:"0 24px 24px 24px"})),wTs=Gr("div")(()=>({color:"rgba(255, 255, 255, 0.8)",fontSize:"16px",lineHeight:"1.5",marginBottom:"8px",textAlign:"center"})),CTs=Gr("span")(()=>({color:"rgba(255, 255, 255, 0.95)",fontWeight:600,backgroundColor:"rgba(255, 255, 255, 0.1)",padding:"2px 6px",borderRadius:"4px"})),ALr=Gr("div")(()=>({color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",textAlign:"center",marginBottom:"32px"})),kTs=Gr("div")(()=>({display:"flex",gap:"12px",justifyContent:"center"})),bLr=Gr("button")(({variant:e="primary"})=>({padding:"12px 24px",borderRadius:"8px",border:"none",fontSize:"14px",fontWeight:600,cursor:"pointer",transition:"all 0.2s ease-in-out",display:"flex",alignItems:"center",gap:"8px",minWidth:"100px",justifyContent:"center",...e==="primary"&&{backgroundColor:"rgba(255, 255, 255, 0.1)",color:"rgba(255, 255, 255, 0.9)",border:"1px solid rgba(255, 255, 255, 0.2)","&:hover:not(:disabled)":{backgroundColor:"rgba(255, 255, 255, 0.15)",borderColor:"rgba(255, 255, 255, 0.3)"}},...e==="danger"&&{backgroundColor:"rgba(244, 67, 54, 0.2)",color:"#E57373",border:"1px solid rgba(244, 67, 54, 0.3)","&:hover:not(:disabled)":{backgroundColor:"rgba(244, 67, 54, 0.3)",borderColor:"rgba(244, 67, 54, 0.5)"}},"&:disabled":{opacity:.6,cursor:"not-allowed"}})),uRn=()=>{const[e,t]=P.useState(!1),[r,n]=P.useState(!1),[a,o]=P.useState(null),[s,l]=P.useState(null),[u,c]=P.useState(null),d=P.useRef(null),p=P.useRef(null),h=(g,y,v,A)=>{o(g),d.current=y,p.current=v??null,t(!0),c(A??null)},f=()=>{p.current&&p.current(),n(!1),t(!1),o(null),l(null),d.current=null,p.current=null};return{DeleteConfirmationModal:()=>{if(!e)return null;const g=v=>{v.target===v.currentTarget&&!r&&f()},y=async()=>{if(n(!0),l(null),!d.current){console.error("No callback func specified");return}const v=await d.current();if(v.status!==200){const A=v.error??"Unknown Error";console.error(A),l(A),n(!1)}else n(!1),t(!1)};return ys.createPortal(ee.jsx(xTs,{onClick:g,children:ee.jsxs(yTs,{children:[ee.jsxs(vTs,{children:[ee.jsxs(ATs,{children:[ee.jsx(qq,{style:{color:"#E57373"}}),to.DELETE," ",u??to.COMPONENT_TEXT]}),ee.jsx(bTs,{onClick:()=>f(),disabled:r,children:ee.jsx(nB,{style:{fontSize:"20px"}})})]}),ee.jsxs(DTs,{children:[ee.jsxs(wTs,{children:[to.DELETE_ARE_YOU_SURE," ",ee.jsx(CTs,{children:a??"Component"}),"?"]}),ee.jsx(ALr,{children:to.DELETE_CANNOT_BE_UNDONE}),s&&ee.jsx(ALr,{children:ee.jsx("span",{style:{color:"red"},children:s})}),ee.jsxs(kTs,{children:[ee.jsx(bLr,{variant:"primary",onClick:()=>f(),disabled:r,children:"Cancel"}),ee.jsx(bLr,{variant:"danger",onClick:()=>y(),disabled:r,children:r?ee.jsxs(ee.Fragment,{children:[ee.jsx(Ag,{size:16,style:{color:"currentColor"}}),"Deleting..."]}):ee.jsxs(ee.Fragment,{children:[ee.jsx(qq,{style:{fontSize:"16px"}}),to.DELETE," ",u??to.COMPONENT_TEXT]})})]})]})]})}),document.body)},open:h,close:f}},ETs=({projectPages:e,pageId:t})=>{const{DeleteConfirmationModal:r,open:n}=uRn(),{projectMetadata:a,APIHandler:o}=Ul(),{refetch:s,isLoading:l}=s5((a==null?void 0:a.projectName)||"",(a==null?void 0:a.projectURL)||"",t).projectData,u=Cbs(),c=e.find(I=>I.id===u),d=u==="0",[p,h]=P.useState((c==null?void 0:c.name)||""),[f,g]=P.useState((c==null?void 0:c.path)||""),[y,v]=P.useState(!1),[A,b]=P.useState(!1),[E,S]=P.useState(!1),M=Ua();P.useEffect(()=>{h((c==null?void 0:c.name)??""),g((c==null?void 0:c.path)??"")},[c]);const T=I=>I.toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),R=async()=>{b(!0);let I;if(c?I=await o.editPage((a==null?void 0:a.projectName)||"",c.id,p,f):I=await o.addPage((a==null?void 0:a.projectName)||"",p,f,{}),I.ok){const G=await I.json();s(),e3(du.Chat),M.push(`${Od.myApps}/${a==null?void 0:a.projectName}/${f}`),z6n(G==null?void 0:G.page_id)}else S(!0),console.error("Failed to save page",I);b(!1)},j=()=>{e3(du.Chat)},L=async()=>{n((c==null?void 0:c.name)||"",async()=>{try{return(await o.deletePage((a==null?void 0:a.projectName)||"",(c==null?void 0:c.id)||"")).status!==200?{status:500,error:"Failed to delete page"}:(s(),e3(du.Chat),M.push(`${Od.myApps}/${a==null?void 0:a.projectName}`),{status:200})}catch(I){return console.error("Failed to delete page",I),{status:500,error:"Failed to delete page"}}},void 0,"Page")};return ee.jsxs(xt,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[ee.jsx(vJ,{isVisible:l}),E&&ee.jsx(b_e,{onClose:()=>{S(!1)},errorTitle:"Error",errorMessage:"Failed to save page. Please try again later."}),ee.jsxs(xt,{sx:{display:"flex",flexDirection:"column",height:"100%",padding:"10px",overflowY:"auto",scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"}},children:[ee.jsxs(O6t,{children:[ee.jsx(z6t,{children:ee.jsx(H6t,{children:c?`Page settings for "${c.name}"`:"Create New Page"})}),ee.jsx(xt,{sx:{color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",marginBottom:"16px"},children:"Here you can define the settings related to the current page. The name is used to identify the page in the chatbot, and the URL is used to access the page."}),ee.jsxs(f9t,{direction:"column",sx:{flex:1,gap:2,minWidth:0},children:[ee.jsxs(xt,{sx:{display:"flex",flexDirection:"column",width:"100%"},children:[ee.jsx(_W,{children:"Name:"}),ee.jsx(MM,{value:p,placeholder:"Page Name",onChange:I=>{h(I.target.value),y||g(T(I.target.value))},variant:"outlined",size:"small",sx:{"& .MuiOutlinedInput-root":{backgroundColor:"rgba(255, 255, 255, 0.1)",color:"white","& fieldset":{borderColor:"rgba(255, 255, 255, 0.3)"},"&:hover fieldset":{borderColor:"rgba(255, 255, 255, 0.5)"},"&.Mui-focused fieldset":{borderColor:"rgba(255, 255, 255, 0.7)"}}}})]}),ee.jsxs(xt,{sx:{display:"flex",flexDirection:"column",width:"100%"},children:[ee.jsx(_W,{children:"URL:"}),ee.jsx(MM,{disabled:d,type:"url",value:f,placeholder:d?"":"page-url",onChange:I=>{g(T(I.target.value)),v(!0)},variant:"outlined",size:"small",sx:{width:"100%",...d&&{opacity:.5},"& .MuiOutlinedInput-root":{backgroundColor:"rgba(255, 255, 255, 0.1)",color:"white",...d&&{"& input":{cursor:"not-allowed"}},"& fieldset":{borderColor:"rgba(255, 255, 255, 0.3)"},...!d&&{"&:hover fieldset":{borderColor:"rgba(255, 255, 255, 0.5)"}},"&.Mui-focused fieldset":{borderColor:"rgba(255, 255, 255, 0.7)"}}},InputProps:{startAdornment:ee.jsx("span",{style:{color:"rgba(255,255,255,0.6)",fontWeight:500,fontSize:"1rem",userSelect:"none",marginRight:"4px",marginLeft:"10px"},children:"/"}),style:{paddingLeft:0}}})]})]})]}),c&&!d&&ee.jsxs(O6t,{children:[ee.jsx(z6t,{children:ee.jsx(H6t,{children:"Delete this page"})}),ee.jsx(xt,{sx:{color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",marginBottom:"16px"},children:"This will permanently delete the page and remove the page reference from the chatbot. This action cannot be undone."}),ee.jsx(Pu,{disabled:A,onClick:L,variant:"contained",color:"error",sx:{width:"100%",background:"rgba(255, 0, 0, 0.2)",backdropFilter:"blur(6px)",color:"#fff",transition:"background 0.2s, border 0.2s","&:hover":{background:"rgba(255, 24, 24, 0.32)",color:"#fff"},"&.Mui-disabled":{opacity:.5,background:"rgba(255, 0, 0, 0.16)",color:"#fff"}},startIcon:ee.jsx(qq,{}),children:"Delete"})]}),ee.jsxs(xt,{sx:{display:"flex",flexDirection:"row",gap:2,marginTop:"20px",justifyContent:"flex-end"},children:[ee.jsx(Pu,{disabled:A,onClick:j,variant:"outlined",color:"primary",sx:{color:"rgba(255, 255, 255, 0.6)",border:"1px solid rgba(255, 255, 255, 0.3)","&:hover":{border:"1px solid rgba(255, 255, 255, 0.78)",color:"rgba(255, 255, 255, 0.74)"}},children:"Cancel"}),ee.jsx(Pu,{loading:A,onClick:R,variant:"contained",color:"primary",children:c?"Update":"Create"})]})]}),ee.jsx(r,{})]})},cRn=()=>{const[e,t]=P.useState(window.innerWidth<767),[r,n]=P.useState(window.innerWidth>=768),[a,o]=P.useState(window.innerWidth<1024),[s,l]=P.useState(window.innerWidth>1024),[u,c]=P.useState(window.innerWidth>=768);return P.useEffect(()=>{const d=()=>{t(window.innerWidth<767),n(window.innerWidth>=768),o(window.innerWidth<1024),l(window.innerWidth>1024),c(window.innerWidth>=768)};return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]),{isMobileDown:e,isMobileUp:r,isTabDown:a,isTabUp:s,isLaptopUp:u}},STs=ho(ee.jsx("path",{d:"M17 1.01 7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99M17 19H7V5h10z"}),"Smartphone"),FTs=ho(ee.jsx("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"}),"Laptop"),Z6t={ENABLE_INLINE_EDITOR:!1,ENABLE_THIRD_PARTY_API_SUPPORT:!1};function dRn(){if(typeof window>"u")return Z6t;const e=window.__APP_CONFIG__||{};return{...Z6t,...e}}function pRn(e,t){return dRn()[e]??t??Z6t[e]}function MTs(e){const t=pRn(e);return typeof t=="boolean"?t:typeof t=="string"?t==="true":!1}function hRn(){return{config:P.useMemo(()=>dRn(),[]),getValue:pRn,isFeatureEnabled:MTs}}var kg="top",tA="bottom",rA="right",Eg="left",GUt="auto",gce=[kg,tA,rA,Eg],Xq="start",Coe="end",BTs="clippingParents",fRn="viewport",Aee="popper",TTs="reference",DLr=gce.reduce(function(e,t){return e.concat([t+"-"+Xq,t+"-"+Coe])},[]),mRn=[].concat(gce,[GUt]).reduce(function(e,t){return e.concat([t,t+"-"+Xq,t+"-"+Coe])},[]),RTs="beforeRead",PTs="read",jTs="afterRead",ITs="beforeMain",NTs="main",LTs="afterMain",OTs="beforeWrite",zTs="write",HTs="afterWrite",GTs=[RTs,PTs,jTs,ITs,NTs,LTs,OTs,zTs,HTs];function qC(e){return e?(e.nodeName||"").toLowerCase():null}function ty(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function eL(e){var t=ty(e).Element;return e instanceof t||e instanceof Element}function Vv(e){var t=ty(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function VUt(e){if(typeof ShadowRoot>"u")return!1;var t=ty(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function VTs(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Vv(o)||!qC(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(s){var l=a[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function WTs(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=s.reduce(function(u,c){return u[c]="",u},{});!Vv(a)||!qC(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const UTs={name:"applyStyles",enabled:!0,phase:"write",fn:VTs,effect:WTs,requires:["computeStyles"]};function SC(e){return e.split("-")[0]}var KI=Math.max,sKe=Math.min,Yq=Math.round;function _6t(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function gRn(){return!/^((?!chrome|android).)*safari/i.test(_6t())}function Jq(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Vv(e)&&(a=e.offsetWidth>0&&Yq(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Yq(n.height)/e.offsetHeight||1);var s=eL(e)?ty(e):window,l=s.visualViewport,u=!gRn()&&r,c=(n.left+(u&&l?l.offsetLeft:0))/a,d=(n.top+(u&&l?l.offsetTop:0))/o,p=n.width/a,h=n.height/o;return{width:p,height:h,top:d,right:c+p,bottom:d+h,left:c,x:c,y:d}}function WUt(e){var t=Jq(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function xRn(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&VUt(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function d8(e){return ty(e).getComputedStyle(e)}function KTs(e){return["table","td","th"].indexOf(qC(e))>=0}function oB(e){return((eL(e)?e.ownerDocument:e.document)||window.document).documentElement}function k_e(e){return qC(e)==="html"?e:e.assignedSlot||e.parentNode||(VUt(e)?e.host:null)||oB(e)}function wLr(e){return!Vv(e)||d8(e).position==="fixed"?null:e.offsetParent}function qTs(e){var t=/firefox/i.test(_6t()),r=/Trident/i.test(_6t());if(r&&Vv(e)){var n=d8(e);if(n.position==="fixed")return null}var a=k_e(e);for(VUt(a)&&(a=a.host);Vv(a)&&["html","body"].indexOf(qC(a))<0;){var o=d8(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function xce(e){for(var t=ty(e),r=wLr(e);r&&KTs(r)&&d8(r).position==="static";)r=wLr(r);return r&&(qC(r)==="html"||qC(r)==="body"&&d8(r).position==="static")?t:r||qTs(e)||t}function UUt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jne(e,t,r){return KI(e,sKe(t,r))}function XTs(e,t,r){var n=Jne(e,t,r);return n>r?r:n}function yRn(){return{top:0,right:0,bottom:0,left:0}}function vRn(e){return Object.assign({},yRn(),e)}function ARn(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var YTs=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,vRn(typeof e!="number"?e:ARn(e,gce))};function JTs(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,l=SC(r.placement),u=UUt(l),c=[Eg,rA].indexOf(l)>=0,d=c?"height":"width";if(!(!o||!s)){var p=YTs(a.padding,r),h=WUt(o),f=u==="y"?kg:Eg,g=u==="y"?tA:rA,y=r.rects.reference[d]+r.rects.reference[u]-s[u]-r.rects.popper[d],v=s[u]-r.rects.reference[u],A=xce(o),b=A?u==="y"?A.clientHeight||0:A.clientWidth||0:0,E=y/2-v/2,S=p[f],M=b-h[d]-p[g],T=b/2-h[d]/2+E,R=Jne(S,T,M),j=u;r.modifiersData[n]=(t={},t[j]=R,t.centerOffset=R-T,t)}}function QTs(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||xRn(t.elements.popper,a)&&(t.elements.arrow=a))}const ZTs={name:"arrow",enabled:!0,phase:"main",fn:JTs,effect:QTs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qq(e){return e.split("-")[1]}var _Ts={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $Ts(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:Yq(r*a)/a||0,y:Yq(n*a)/a||0}}function CLr(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=s.x,f=h===void 0?0:h,g=s.y,y=g===void 0?0:g,v=typeof d=="function"?d({x:f,y}):{x:f,y};f=v.x,y=v.y;var A=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),E=Eg,S=kg,M=window;if(c){var T=xce(r),R="clientHeight",j="clientWidth";if(T===ty(r)&&(T=oB(r),d8(T).position!=="static"&&l==="absolute"&&(R="scrollHeight",j="scrollWidth")),T=T,a===kg||(a===Eg||a===rA)&&o===Coe){S=tA;var L=p&&T===M&&M.visualViewport?M.visualViewport.height:T[R];y-=L-n.height,y*=u?1:-1}if(a===Eg||(a===kg||a===tA)&&o===Coe){E=rA;var I=p&&T===M&&M.visualViewport?M.visualViewport.width:T[j];f-=I-n.width,f*=u?1:-1}}var G=Object.assign({position:l},c&&_Ts),V=d===!0?$Ts({x:f,y},ty(r)):{x:f,y};if(f=V.x,y=V.y,u){var O;return Object.assign({},G,(O={},O[S]=b?"0":"",O[E]=A?"0":"",O.transform=(M.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",O))}return Object.assign({},G,(t={},t[S]=b?y+"px":"",t[E]=A?f+"px":"",t.transform="",t))}function eRs(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,l=r.roundOffsets,u=l===void 0?!0:l,c={placement:SC(t.placement),variation:Qq(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,CLr(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,CLr(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const tRs={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eRs,data:{}};var ave={passive:!0};function rRs(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,s=n.resize,l=s===void 0?!0:s,u=ty(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",r.update,ave)}),l&&u.addEventListener("resize",r.update,ave),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",r.update,ave)}),l&&u.removeEventListener("resize",r.update,ave)}}const nRs={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rRs,data:{}};var aRs={left:"right",right:"left",bottom:"top",top:"bottom"};function XHe(e){return e.replace(/left|right|bottom|top/g,function(t){return aRs[t]})}var iRs={start:"end",end:"start"};function kLr(e){return e.replace(/start|end/g,function(t){return iRs[t]})}function KUt(e){var t=ty(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function qUt(e){return Jq(oB(e)).left+KUt(e).scrollLeft}function oRs(e,t){var r=ty(e),n=oB(e),a=r.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,u=0;if(a){o=a.width,s=a.height;var c=gRn();(c||!c&&t==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:o,height:s,x:l+qUt(e),y:u}}function sRs(e){var t,r=oB(e),n=KUt(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=KI(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=KI(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-n.scrollLeft+qUt(e),u=-n.scrollTop;return d8(a||r).direction==="rtl"&&(l+=KI(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:l,y:u}}function XUt(e){var t=d8(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function bRn(e){return["html","body","#document"].indexOf(qC(e))>=0?e.ownerDocument.body:Vv(e)&&XUt(e)?e:bRn(k_e(e))}function Qne(e,t){var r;t===void 0&&(t=[]);var n=bRn(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=ty(n),s=a?[o].concat(o.visualViewport||[],XUt(n)?n:[]):n,l=t.concat(s);return a?l:l.concat(Qne(k_e(s)))}function $6t(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lRs(e,t){var r=Jq(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ELr(e,t,r){return t===fRn?$6t(oRs(e,r)):eL(t)?lRs(t,r):$6t(sRs(oB(e)))}function uRs(e){var t=Qne(k_e(e)),r=["absolute","fixed"].indexOf(d8(e).position)>=0,n=r&&Vv(e)?xce(e):e;return eL(n)?t.filter(function(a){return eL(a)&&xRn(a,n)&&qC(a)!=="body"}):[]}function cRs(e,t,r,n){var a=t==="clippingParents"?uRs(e):[].concat(t),o=[].concat(a,[r]),s=o[0],l=o.reduce(function(u,c){var d=ELr(e,c,n);return u.top=KI(d.top,u.top),u.right=sKe(d.right,u.right),u.bottom=sKe(d.bottom,u.bottom),u.left=KI(d.left,u.left),u},ELr(e,s,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function DRn(e){var t=e.reference,r=e.element,n=e.placement,a=n?SC(n):null,o=n?Qq(n):null,s=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,u;switch(a){case kg:u={x:s,y:t.y-r.height};break;case tA:u={x:s,y:t.y+t.height};break;case rA:u={x:t.x+t.width,y:l};break;case Eg:u={x:t.x-r.width,y:l};break;default:u={x:t.x,y:t.y}}var c=a?UUt(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case Xq:u[c]=u[c]-(t[d]/2-r[d]/2);break;case Coe:u[c]=u[c]+(t[d]/2-r[d]/2);break}}return u}function koe(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,l=r.boundary,u=l===void 0?BTs:l,c=r.rootBoundary,d=c===void 0?fRn:c,p=r.elementContext,h=p===void 0?Aee:p,f=r.altBoundary,g=f===void 0?!1:f,y=r.padding,v=y===void 0?0:y,A=vRn(typeof v!="number"?v:ARn(v,gce)),b=h===Aee?TTs:Aee,E=e.rects.popper,S=e.elements[g?b:h],M=cRs(eL(S)?S:S.contextElement||oB(e.elements.popper),u,d,s),T=Jq(e.elements.reference),R=DRn({reference:T,element:E,strategy:"absolute",placement:a}),j=$6t(Object.assign({},E,R)),L=h===Aee?j:T,I={top:M.top-L.top+A.top,bottom:L.bottom-M.bottom+A.bottom,left:M.left-L.left+A.left,right:L.right-M.right+A.right},G=e.modifiersData.offset;if(h===Aee&&G){var V=G[a];Object.keys(I).forEach(function(O){var z=[rA,tA].indexOf(O)>=0?1:-1,W=[kg,tA].indexOf(O)>=0?"y":"x";I[O]+=V[W]*z})}return I}function dRs(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,s=r.padding,l=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?mRn:u,d=Qq(n),p=d?l?DLr:DLr.filter(function(g){return Qq(g)===d}):gce,h=p.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=p);var f=h.reduce(function(g,y){return g[y]=koe(e,{placement:y,boundary:a,rootBoundary:o,padding:s})[SC(y)],g},{});return Object.keys(f).sort(function(g,y){return f[g]-f[y]})}function pRs(e){if(SC(e)===GUt)return[];var t=XHe(e);return[kLr(e),t,kLr(t)]}function hRs(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,l=s===void 0?!0:s,u=r.fallbackPlacements,c=r.padding,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,f=r.flipVariations,g=f===void 0?!0:f,y=r.allowedAutoPlacements,v=t.options.placement,A=SC(v),b=A===v,E=u||(b||!g?[XHe(v)]:pRs(v)),S=[v].concat(E).reduce(function(oe,de){return oe.concat(SC(de)===GUt?dRs(t,{placement:de,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:y}):de)},[]),M=t.rects.reference,T=t.rects.popper,R=new Map,j=!0,L=S[0],I=0;I<S.length;I++){var G=S[I],V=SC(G),O=Qq(G)===Xq,z=[kg,tA].indexOf(V)>=0,W=z?"width":"height",K=koe(t,{placement:G,boundary:d,rootBoundary:p,altBoundary:h,padding:c}),J=z?O?rA:Eg:O?tA:kg;M[W]>T[W]&&(J=XHe(J));var Y=XHe(J),Q=[];if(o&&Q.push(K[V]<=0),l&&Q.push(K[J]<=0,K[Y]<=0),Q.every(function(oe){return oe})){L=G,j=!1;break}R.set(G,Q)}if(j)for(var X=g?3:1,re=function(oe){var de=S.find(function(se){var ge=R.get(se);if(ge)return ge.slice(0,oe).every(function(pe){return pe})});if(de)return L=de,"break"},ie=X;ie>0;ie--){var Z=re(ie);if(Z==="break")break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}}const fRs={name:"flip",enabled:!0,phase:"main",fn:hRs,requiresIfExists:["offset"],data:{_skip:!1}};function SLr(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function FLr(e){return[kg,rA,tA,Eg].some(function(t){return e[t]>=0})}function mRs(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=koe(t,{elementContext:"reference"}),l=koe(t,{altBoundary:!0}),u=SLr(s,n),c=SLr(l,a,o),d=FLr(u),p=FLr(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const gRs={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mRs};function xRs(e,t,r){var n=SC(e),a=[Eg,kg].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],l=o[1];return s=s||0,l=(l||0)*a,[Eg,rA].indexOf(n)>=0?{x:l,y:s}:{x:s,y:l}}function yRs(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,s=mRn.reduce(function(d,p){return d[p]=xRs(p,t.rects,o),d},{}),l=s[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const vRs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yRs};function ARs(e){var t=e.state,r=e.name;t.modifiersData[r]=DRn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const bRs={name:"popperOffsets",enabled:!0,phase:"read",fn:ARs,data:{}};function DRs(e){return e==="x"?"y":"x"}function wRs(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,l=s===void 0?!1:s,u=r.boundary,c=r.rootBoundary,d=r.altBoundary,p=r.padding,h=r.tether,f=h===void 0?!0:h,g=r.tetherOffset,y=g===void 0?0:g,v=koe(t,{boundary:u,rootBoundary:c,padding:p,altBoundary:d}),A=SC(t.placement),b=Qq(t.placement),E=!b,S=UUt(A),M=DRs(S),T=t.modifiersData.popperOffsets,R=t.rects.reference,j=t.rects.popper,L=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,I=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),G=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(T){if(o){var O,z=S==="y"?kg:Eg,W=S==="y"?tA:rA,K=S==="y"?"height":"width",J=T[S],Y=J+v[z],Q=J-v[W],X=f?-j[K]/2:0,re=b===Xq?R[K]:j[K],ie=b===Xq?-j[K]:-R[K],Z=t.elements.arrow,oe=f&&Z?WUt(Z):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yRn(),se=de[z],ge=de[W],pe=Jne(0,R[K],oe[K]),ce=E?R[K]/2-X-pe-se-I.mainAxis:re-pe-se-I.mainAxis,Ae=E?-R[K]/2+X+pe+ge+I.mainAxis:ie+pe+ge+I.mainAxis,be=t.elements.arrow&&xce(t.elements.arrow),De=be?S==="y"?be.clientTop||0:be.clientLeft||0:0,me=(O=G==null?void 0:G[S])!=null?O:0,ve=J+ce-me-De,je=J+Ae-me,qe=Jne(f?sKe(Y,ve):Y,J,f?KI(Q,je):Q);T[S]=qe,V[S]=qe-J}if(l){var Qe,Ye=S==="x"?kg:Eg,Ge=S==="x"?tA:rA,Je=T[M],ut=M==="y"?"height":"width",Ke=Je+v[Ye],Ue=Je-v[Ge],ct=[kg,Eg].indexOf(A)!==-1,mt=(Qe=G==null?void 0:G[M])!=null?Qe:0,vt=ct?Ke:Je-R[ut]-j[ut]-mt+I.altAxis,$=ct?Je+R[ut]+j[ut]-mt-I.altAxis:Ue,le=f&&ct?XTs(vt,Je,$):Jne(f?vt:Ke,Je,f?$:Ue);T[M]=le,V[M]=le-Je}t.modifiersData[n]=V}}const CRs={name:"preventOverflow",enabled:!0,phase:"main",fn:wRs,requiresIfExists:["offset"]};function kRs(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ERs(e){return e===ty(e)||!Vv(e)?KUt(e):kRs(e)}function SRs(e){var t=e.getBoundingClientRect(),r=Yq(t.width)/e.offsetWidth||1,n=Yq(t.height)/e.offsetHeight||1;return r!==1||n!==1}function FRs(e,t,r){r===void 0&&(r=!1);var n=Vv(t),a=Vv(t)&&SRs(t),o=oB(t),s=Jq(e,a,r),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((qC(t)!=="body"||XUt(o))&&(l=ERs(t)),Vv(t)?(u=Jq(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=qUt(o))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function MRs(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!r.has(l)){var u=t.get(l);u&&a(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function BRs(e){var t=MRs(e);return GTs.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function TRs(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function RRs(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var MLr={placement:"bottom",modifiers:[],strategy:"absolute"};function BLr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function PRs(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?MLr:a;return function(s,l,u){u===void 0&&(u=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},MLr,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,h={state:c,setOptions:function(y){var v=typeof y=="function"?y(c.options):y;g(),c.options=Object.assign({},o,c.options,v),c.scrollParents={reference:eL(s)?Qne(s):s.contextElement?Qne(s.contextElement):[],popper:Qne(l)};var A=BRs(RRs([].concat(n,c.options.modifiers)));return c.orderedModifiers=A.filter(function(b){return b.enabled}),f(),h.update()},forceUpdate:function(){if(!p){var y=c.elements,v=y.reference,A=y.popper;if(BLr(v,A)){c.rects={reference:FRs(v,xce(A),c.options.strategy==="fixed"),popper:WUt(A)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(j){return c.modifiersData[j.name]=Object.assign({},j.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var E=c.orderedModifiers[b],S=E.fn,M=E.options,T=M===void 0?{}:M,R=E.name;typeof S=="function"&&(c=S({state:c,options:T,name:R,instance:h})||c)}}}},update:TRs(function(){return new Promise(function(y){h.forceUpdate(),y(c)})}),destroy:function(){g(),p=!0}};if(!BLr(s,l))return h;h.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function f(){c.orderedModifiers.forEach(function(y){var v=y.name,A=y.options,b=A===void 0?{}:A,E=y.effect;if(typeof E=="function"){var S=E({state:c,name:v,instance:h,options:b}),M=function(){};d.push(S||M)}})}function g(){d.forEach(function(y){return y()}),d=[]}return h}}var jRs=[nRs,bRs,tRs,UTs,vRs,fRs,CRs,ZTs,gRs],IRs=PRs({defaultModifiers:jRs});function Zq(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1,...s}=e,l=o?{}:sTn(n,a),{props:u,internalRef:c}=lTn({...s,externalSlotProps:l}),d=_v(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return oTn(r,{...u,ref:d},a)}function NRs(e){return typeof e=="function"?e():e}const LRs=P.forwardRef(function(e,t){const{children:r,container:n,disablePortal:a=!1}=e,[o,s]=P.useState(null),l=BM(P.isValidElement(r)?zrn(r):null,t);if(TM(()=>{a||s(NRs(n)||document.body)},[n,a]),TM(()=>{if(o&&!a)return Skr(t,o),()=>{Skr(t,null)}},[t,o,a]),a){if(P.isValidElement(r)){const u={ref:l};return P.cloneElement(r,u)}return r}return o&&cp.createPortal(r,o)}),wRn=LRs;function ORs(e){return Is("MuiPopper",e)}as("MuiPopper",["root"]);function zRs(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function eTt(e){return typeof e=="function"?e():e}function HRs(e){return e.nodeType!==void 0}const GRs=e=>{const{classes:t}=e;return Ns({root:["root"]},ORs,t)},VRs={},WRs=P.forwardRef(function(e,t){const{anchorEl:r,children:n,direction:a,disablePortal:o,modifiers:s,open:l,placement:u,popperOptions:c,popperRef:d,slotProps:p={},slots:h={},TransitionProps:f,ownerState:g,...y}=e,v=P.useRef(null),A=BM(v,t),b=P.useRef(null),E=BM(b,d),S=P.useRef(E);TM(()=>{S.current=E},[E]),P.useImperativeHandle(d,()=>b.current,[]);const M=zRs(u,a),[T,R]=P.useState(M),[j,L]=P.useState(eTt(r));P.useEffect(()=>{b.current&&b.current.forceUpdate()}),P.useEffect(()=>{r&&L(eTt(r))},[r]),TM(()=>{if(!j||!l)return;const z=J=>{R(J.placement)};let W=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:J})=>{z(J)}}];s!=null&&(W=W.concat(s)),c&&c.modifiers!=null&&(W=W.concat(c.modifiers));const K=IRs(j,v.current,{placement:M,...c,modifiers:W});return S.current(K),()=>{K.destroy(),S.current(null)}},[j,o,s,l,c,M]);const I={placement:T};f!==null&&(I.TransitionProps=f);const G=GRs(e),V=h.root??"div",O=Zq({elementType:V,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:A},ownerState:e,className:G.root});return ee.jsx(V,{...O,children:typeof n=="function"?n(I):n})}),URs=P.forwardRef(function(e,t){const{anchorEl:r,children:n,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=VRs,popperRef:h,style:f,transition:g=!1,slotProps:y={},slots:v={},...A}=e,[b,E]=P.useState(!0),S=()=>{E(!1)},M=()=>{E(!0)};if(!l&&!c&&(!g||b))return null;let T;if(a)T=a;else if(r){const L=eTt(r);T=L&&HRs(L)?$2(L).body:$2(null).body}const R=!c&&l&&(!g||b)?"none":void 0,j=g?{in:c,onEnter:S,onExited:M}:void 0;return ee.jsx(wRn,{disablePortal:s,container:T,children:ee.jsx(WRs,{anchorEl:r,direction:o,disablePortal:s,modifiers:u,ref:t,open:g?!b:c,placement:d,popperOptions:p,popperRef:h,slotProps:y,slots:v,...A,style:{position:"fixed",top:0,left:0,display:R,...f},TransitionProps:j,children:n})})}),KRs=URs,qRs=Gr(KRs,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),XRs=P.forwardRef(function(e,t){const r=sce(),n=Zs({props:e,name:"MuiPopper"}),{anchorEl:a,component:o,components:s,componentsProps:l,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:g,popperRef:y,transition:v,slots:A,slotProps:b,...E}=n,S=(A==null?void 0:A.root)??(s==null?void 0:s.Root),M={anchorEl:a,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:g,popperRef:y,transition:v,...E};return ee.jsx(qRs,{as:o,direction:r?"rtl":"ltr",slots:{root:S},slotProps:b??l,...M,ref:t})}),CRn=XRs;function YRs(e){return Is("MuiTooltip",e)}const JRs=as("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Cd=JRs;function QRs(e){return Math.round(e*1e5)/1e5}const ZRs=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Ga(o.split("-")[0])}`],arrow:["arrow"]};return Ns(s,YRs,t)},_Rs=Gr(CRn,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(Al(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Cd.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Cd.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Cd.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Cd.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Cd.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Cd.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Cd.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Cd.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),$Rs=Gr("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ga(r.placement.split("-")[0])}`]]}})(Al(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Vp(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Cd.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Cd.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Cd.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Cd.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${QRs(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Cd.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Cd.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Cd.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Cd.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Cd.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Cd.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Cd.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Cd.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Cd.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Cd.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),ePs=Gr("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Al(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Vp(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ive=!1;const TLr=new x6n;let bee={x:0,y:0};function ove(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const tPs=P.forwardRef(function(e,t){const r=Zs({props:e,name:"MuiTooltip"}),{arrow:n=!1,children:a,classes:o,components:s={},componentsProps:l={},describeChild:u=!1,disableFocusListener:c=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:h=!1,enterDelay:f=100,enterNextDelay:g=0,enterTouchDelay:y=700,followCursor:v=!1,id:A,leaveDelay:b=0,leaveTouchDelay:E=1500,onClose:S,onOpen:M,open:T,placement:R="bottom",PopperComponent:j,PopperProps:L={},slotProps:I={},slots:G={},title:V,TransitionComponent:O,TransitionProps:z,...W}=r,K=P.isValidElement(a)?a:ee.jsx("span",{children:a}),J=wO(),Y=sce(),[Q,X]=P.useState(),[re,ie]=P.useState(null),Z=P.useRef(!1),oe=p||v,de=ZW(),se=ZW(),ge=ZW(),pe=ZW(),[ce,Ae]=F6t({controlled:T,default:!1,name:"Tooltip",state:"open"});let be=ce;const De=lce(A),me=P.useRef(),ve=B3(()=>{me.current!==void 0&&(document.body.style.WebkitUserSelect=me.current,me.current=void 0),pe.clear()});P.useEffect(()=>ve,[ve]);const je=qr=>{TLr.clear(),ive=!0,Ae(!0),M&&!be&&M(qr)},qe=B3(qr=>{TLr.start(800+b,()=>{ive=!1}),Ae(!1),S&&be&&S(qr),de.start(J.transitions.duration.shortest,()=>{Z.current=!1})}),Qe=qr=>{Z.current&&qr.type!=="touchstart"||(Q&&Q.removeAttribute("title"),se.clear(),ge.clear(),f||ive&&g?se.start(ive?g:f,()=>{je(qr)}):je(qr))},Ye=qr=>{se.clear(),ge.start(b,()=>{qe(qr)})},[,Ge]=P.useState(!1),Je=qr=>{XUe(qr.target)||(Ge(!1),Ye(qr))},ut=qr=>{Q||X(qr.currentTarget),XUe(qr.target)&&(Ge(!0),Qe(qr))},Ke=qr=>{Z.current=!0;const Oe=K.props;Oe.onTouchStart&&Oe.onTouchStart(qr)},Ue=qr=>{Ke(qr),ge.clear(),de.clear(),ve(),me.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",pe.start(y,()=>{document.body.style.WebkitUserSelect=me.current,Qe(qr)})},ct=qr=>{K.props.onTouchEnd&&K.props.onTouchEnd(qr),ve(),ge.start(E,()=>{qe(qr)})};P.useEffect(()=>{if(!be)return;function qr(Oe){Oe.key==="Escape"&&qe(Oe)}return document.addEventListener("keydown",qr),()=>{document.removeEventListener("keydown",qr)}},[qe,be]);const mt=_v(mce(K),X,t);!V&&V!==0&&(be=!1);const vt=P.useRef(),$=qr=>{const Oe=K.props;Oe.onMouseMove&&Oe.onMouseMove(qr),bee={x:qr.clientX,y:qr.clientY},vt.current&&vt.current.update()},le={},fe=typeof V=="string";u?(le.title=!be&&fe&&!d?V:null,le["aria-describedby"]=be?De:null):(le["aria-label"]=fe?V:null,le["aria-labelledby"]=be&&!fe?De:null);const Re={...le,...W,...K.props,className:ri(W.className,K.props.className),onTouchStart:Ke,ref:mt,...v?{onMouseMove:$}:{}},ze={};h||(Re.onTouchStart=Ue,Re.onTouchEnd=ct),d||(Re.onMouseOver=ove(Qe,Re.onMouseOver),Re.onMouseLeave=ove(Ye,Re.onMouseLeave),oe||(ze.onMouseOver=Qe,ze.onMouseLeave=Ye)),c||(Re.onFocus=ove(ut,Re.onFocus),Re.onBlur=ove(Je,Re.onBlur),oe||(ze.onFocus=ut,ze.onBlur=Je));const _e={...r,isRtl:Y,arrow:n,disableInteractive:oe,placement:R,PopperComponentProp:j,touch:Z.current},Me=typeof I.popper=="function"?I.popper(_e):I.popper,dt=P.useMemo(()=>{var qr,Oe;let Ve=[{name:"arrow",enabled:!!re,options:{element:re,padding:4}}];return(qr=L.popperOptions)!=null&&qr.modifiers&&(Ve=Ve.concat(L.popperOptions.modifiers)),(Oe=Me==null?void 0:Me.popperOptions)!=null&&Oe.modifiers&&(Ve=Ve.concat(Me.popperOptions.modifiers)),{...L.popperOptions,...Me==null?void 0:Me.popperOptions,modifiers:Ve}},[re,L.popperOptions,Me==null?void 0:Me.popperOptions]),Nt=ZRs(_e),qt=typeof I.transition=="function"?I.transition(_e):I.transition,Ot={slots:{popper:s.Popper,transition:s.Transition??O,tooltip:s.Tooltip,arrow:s.Arrow,...G},slotProps:{arrow:I.arrow??l.arrow,popper:{...L,...Me??l.popper},tooltip:I.tooltip??l.tooltip,transition:{...z,...qt??l.transition}}},[Kt,At]=Zl("popper",{elementType:_Rs,externalForwardedProps:Ot,ownerState:_e,className:ri(Nt.popper,L==null?void 0:L.className)}),[Et,Ze]=Zl("transition",{elementType:SUt,externalForwardedProps:Ot,ownerState:_e}),[$t,fr]=Zl("tooltip",{elementType:$Rs,className:Nt.tooltip,externalForwardedProps:Ot,ownerState:_e}),[Kr,an]=Zl("arrow",{elementType:ePs,className:Nt.arrow,externalForwardedProps:Ot,ownerState:_e,ref:ie});return ee.jsxs(P.Fragment,{children:[P.cloneElement(K,Re),ee.jsx(Kt,{as:j??CRn,placement:R,anchorEl:v?{getBoundingClientRect:()=>({top:bee.y,left:bee.x,right:bee.x,bottom:bee.y,width:0,height:0})}:Q,popperRef:vt,open:Q?be:!1,id:De,transition:!0,...ze,...At,popperOptions:dt,children:({TransitionProps:qr})=>ee.jsx(Et,{timeout:J.transitions.duration.shorter,...qr,...Ze,children:ee.jsxs($t,{...fr,children:[V,n?ee.jsx(Kr,{...an}):null]})})})]})}),kRn=tPs,VF=({children:e,...t})=>ee.jsx(kRn,{...t,children:e}),rPs=ho(ee.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined"),lKe=ho(ee.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),nPs=ho(ee.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3zm-3-7V3.5L18.5 9z"}),"NoteAdd"),ADt="0",aPs=Ka(Pu)({textTransform:"none",display:"flex",alignItems:"center",gap:"4px",border:"none",background:"transparent",cursor:"pointer",padding:"3px 5px",borderRadius:"6px",transition:"background 0.2s","&:hover":{background:"rgba(255,255,255,0.13)"}}),zy=Ka(Pu,{shouldForwardProp:e=>e!=="colorVariant"})(({colorVariant:e})=>({padding:"4px",minWidth:"auto",...e==="primary"&&{backgroundColor:"rgb(66, 30, 161)","&:hover":{backgroundColor:"rgba(66, 30, 161, 0.7)"}},...e==="secondary"&&{backgroundColor:"rgba(255, 255, 255, 0.10)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.20)"}},...e==="ghost"&&{backgroundColor:"transparent","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.10)"}},"& .MuiButton-text, & .MuiButton-containedText":{color:"rgba(255,255,255,1)",fontWeight:"500",textShadow:"0px 0px 15px rgba(255, 255, 255, 0.3)",boxShadow:"unset",minWidth:"inherit",border:"none !important",flexShrink:0},"& .MuiButton-text:hover, & .MuiButton-containedText:hover":{color:"#E0E3F4",border:"1px",borderRadius:"15px",boxShadow:"unset"},"& .MuiButton-text.Mui-disabled":{color:"rgba(255,255,255,1)",opacity:.5}})),iPs=e=>{const{currentSubdomain:t}=uce(),{chatBotsection:r}=gm(),{extraMeta:n,projectName:a,projectPages:o,isProjectDataLoading:s,pinStatus:l,onPin:u,onClose:c,currentWorkspaceView:d,onEditModeToggle:p,onCodeEditorToggle:h,onPreviewToggle:f,deviceType:g,onDeviceTypeChange:y,selectedTab:v,onChatTabClick:A,onComponentsTabClick:b,onThemeTabClick:E,onPublishTabClick:S,onPageClick:M,settingsStatus:T,onSettingsClick:R}=e,{isLaptopUp:j}=cRn(),L=$n(ce=>ce.setSelectedFile),[I,G]=P.useState(a),[V,O]=P.useState(!1),{APIHandler:z,setProjectMetadata:W,setSelectedComponentId:K}=Ul(),[J,Y]=P.useState(!1),[Q,X]=P.useState(null),re=!!Q,ie=Ua(),{pagePath:Z=""}=sA(),oe=o.find(ce=>ce.path===Z)??o.find(ce=>ce.id===ADt),{isFeatureEnabled:de}=hRn(),se=ce=>{G(ce.target.value)},ge=ce=>{var Ae;if(L(""),K(""),X(null),z6n(ce),!ce){M();return}if(ce===(oe==null?void 0:oe.id))return;if(ce===ADt){A(),ie.push(`${Od.myApps}/${n==null?void 0:n.project_name}`);return}const be=((Ae=o.find(De=>De.id===ce))==null?void 0:Ae.path)??"";ie.push(`${Od.myApps}/${n==null?void 0:n.project_name}/${be}`)},pe=async()=>{var ce;if(V){if(I===(n==null?void 0:n.application_name)){O(!1);return}if(((ce=I==null?void 0:I.trim())==null?void 0:ce.length)===0){G(a),O(!1);return}Y(!0),O(!1);try{await z.updateApplicationMetadata((n==null?void 0:n.project_name)||"",I,(n==null?void 0:n.application_description)||"",(n==null?void 0:n.application_category)||""),W(Ae=>({...Ae,extraMeta:{...Ae==null?void 0:Ae.extraMeta,application_name:I}}))}catch(Ae){G(a),console.error("Error saving project name",Ae)}finally{Y(!1)}}};return ee.jsx(ee.Fragment,{children:ee.jsxs(xt,{sx:{display:"flex",flexDirection:"column",gap:2,padding:"12px 8px 12px"},children:[ee.jsxs(xt,{sx:{display:"flex",flexDirection:"row",gap:"4px",alignItems:"center"},children:[ee.jsx(xt,{sx:{fontWeight:"500",minWidth:"100px",fontSize:"14px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:J?"wait":"text",...V&&{flexGrow:1},...!V&&{"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:"4px",padding:"2px 4px",margin:"-2px -4px"}}},children:V?ee.jsx("input",{autoFocus:!0,name:"projectName",type:"text",style:{width:"100%",minWidth:"100px",display:"flex",alignItems:"center",columnGap:"0.25rem",borderRadius:"8px",background:"rgba(255, 255, 255, 0.07)",border:"0.5px solid rgba(255, 255, 255, 0.34)",padding:"0.375rem 0.5rem"},value:I,onChange:se,onBlur:pe,onKeyDown:ce=>{ce.key==="Enter"&&pe(),ce.key==="Escape"&&(G(a),O(!1))}}):ee.jsx("span",{style:{cursor:J?"wait":"text",minWidth:"100px",width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...oe&&{maxWidth:"100px"}},role:"button",tabIndex:0,onKeyDown:ce=>{(ce.key==="Enter"||ce.key===" ")&&O(!0)},onClick:()=>{O(!0)},children:I})}),!V&&ee.jsxs(ee.Fragment,{children:[(oe||s)&&ee.jsxs(ee.Fragment,{children:[ee.jsx("span",{style:{marginLeft:"4px",fontSize:"14px",fontWeight:"500"},children:"/"}),ee.jsxs(xt,{children:[ee.jsxs(aPs,{loading:s,"aria-controls":re?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":re?"true":void 0,onClick:ce=>{X(ce.currentTarget)},children:[ee.jsx("span",{style:{fontSize:"14px",color:"white",lineHeight:"normal",maxWidth:"100px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:oe==null?void 0:oe.name}),!s&&ee.jsx(rPs,{fontSize:"small",sx:{color:"rgba(255,255,255,1)",height:"16px",width:"16px"}})]}),ee.jsxs(ek,{anchorEl:Q,open:re,onClose:()=>X(null),sx:{"& .MuiPaper-root":{background:"rgba(30, 30, 48, 0)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px"}},children:[o.map(ce=>ee.jsxs(Mn,{sx:{display:"flex",flexDirection:"row",gap:1,pr:"8px","&:hover":{background:"rgba(255, 255, 255, 0.2)"}},onClick:()=>ge(ce.id),children:[ee.jsx("span",{style:{fontSize:"14px",lineHeight:"31px",flexGrow:1,color:"white"},children:ce.name}),ce.id!==ADt&&ee.jsx(Yo,{sx:{color:"white","&:hover":{background:"rgba(99, 5, 104, 0.38)"}},size:"small",onClick:()=>M(ce.id),children:ee.jsx(lKe,{})})]},ce.id)),ee.jsxs(Mn,{sx:{color:"white",display:"flex",flexDirection:"row",gap:1,pr:"8px","&:hover":{background:"rgba(255, 255, 255, 0.2)"}},onClick:()=>ge(),children:["Add New Page",ee.jsx("div",{style:{height:"31px",width:"31px",display:"flex",alignItems:"center",justifyContent:"center"},children:ee.jsx(nPs,{})})]})]})]})]}),ee.jsx(xt,{children:ee.jsx(VF,{title:t?"Visit Live App":`${r===du.Publish?"C":'Open the "Publish" tab, c'}reate a checkpoint and publish it in a subdomain to see it live on the web.`,children:ee.jsx(zy,{disableRipple:!0,colorVariant:"ghost",onClick:()=>{if(t){window.open(`https://${t}.dream.space`,"_blank");return}e3(du.Publish)},children:ee.jsx(Yun,{fontSize:"small",sx:{color:"rgba(255,255,255,1)",height:"16px",width:"16px"}})})})})]}),ee.jsxs(xt,{sx:{display:"flex",flexDirection:"row",gap:1,marginLeft:"auto"},children:[de("ENABLE_THIRD_PARTY_API_SUPPORT")&&ee.jsx(VF,{title:"Settings",placement:"bottom",children:ee.jsx(zy,{disableRipple:!0,colorVariant:T?"primary":"ghost",sx:{fontSize:"18px"},onClick:R,children:ee.jsx(TVe,{fontSize:"inherit",sx:{color:"rgba(255,255,255,1)"}})})}),j&&ee.jsx(VF,{title:"Pin panel",placement:"bottom",children:ee.jsx(zy,{disableRipple:!0,colorVariant:"ghost",sx:{fontSize:"18px"},onClick:u,children:l?ee.jsx(S7i,{fontSize:"inherit",sx:{transform:"rotate(45deg)",color:"rgba(255,255,255,1)"}}):ee.jsx(F7i,{fontSize:"inherit",sx:{transform:"rotate(45deg)",color:"rgba(255,255,255,1)"}})})}),ee.jsx(zy,{disableRipple:!0,colorVariant:"ghost",sx:{fontSize:"18px"},onClick:c,children:ee.jsx(w7i,{fontSize:"inherit",sx:{color:"rgba(255,255,255,1)"}})})]})]}),ee.jsxs(xt,{sx:{display:"flex",flexDirection:"row",gap:"6px"},children:[ee.jsxs(xt,{sx:{display:"flex",flexDirection:"row",gap:0},children:[ee.jsx(VF,{title:"Canvas Editor",placement:"bottom",children:ee.jsx(zy,{disableRipple:!0,colorVariant:d===lp.CanvasEditor||d===null?"primary":"secondary",sx:{width:{xs:"25px",sm:"25px",md:"30px",lg:"35px"},height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"14px",sm:"14px",md:"18px",lg:"18px"},borderTop:"2px solid rgba(255,255,255, 0.1)",borderLeft:"2px solid rgba(255,255,255, 0.1)",borderBottom:"2px solid rgba(255,255,255, 0.1)",borderRadius:"5px 0px 0px 5px",outlineOffset:"1px"},onClick:p,children:ee.jsx(M7i,{fontSize:"inherit",sx:{color:"rgba(255,255,255,1)"}})})}),ee.jsx(VF,{title:"Site Preview",placement:"bottom",children:ee.jsx(zy,{disableRipple:!0,colorVariant:d===lp.CanvasPreview?"primary":"secondary",sx:{width:{xs:"25px",sm:"25px",md:"30px",lg:"35px"},height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"14px",sm:"14px",md:"18px",lg:"18px"},borderTop:"2px solid rgba(255,255,255, 0.1)",borderBottom:"2px solid rgba(255,255,255, 0.1)",borderRadius:"0px 0px 0px 0px",outlineOffset:"1px"},onClick:f,children:ee.jsx(B7i,{fontSize:"inherit",sx:{color:"rgba(255,255,255,1)"}})})}),ee.jsx(VF,{title:"Code Editor",placement:"bottom",children:ee.jsx(zy,{disableRipple:!0,colorVariant:d===lp.CodeEditor?"primary":"secondary",sx:{width:{xs:"25px",sm:"25px",md:"30px",lg:"35px"},height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"14px",sm:"14px",md:"18px",lg:"18px"},borderTop:"2px solid rgba(255,255,255, 0.1)",borderBottom:"2px solid rgba(255,255,255, 0.1)",borderRight:"2px solid rgba(255,255,255, 0.1)",borderRadius:"0px 5px 5px 0px",outlineOffset:"1px"},onClick:h,children:ee.jsx("img",{src:iws,alt:"code editor",style:{width:"18px",height:"18px"}})})})]}),ee.jsx(xt,{children:ee.jsx(VF,{title:`Switch to ${g==="mobile"?"Desktop":"Mobile"} View`,placement:"bottom",children:ee.jsx(zy,{sx:{width:"25px",height:{xs:"25px",xl:"28px"},fontSize:"14px",border:"2px solid rgba(255,255,255, 0.1)",borderRadius:"5px",outlineOffset:"1px"},onClick:()=>y(g==="mobile"?"desktop":"mobile"),children:g==="mobile"?ee.jsx(STs,{fontSize:"inherit",sx:{color:"rgba(255,255,255,1)"}}):ee.jsx(FTs,{fontSize:"inherit",sx:{color:"rgba(255,255,255,1)"}})})})}),ee.jsx(D3,{orientation:"vertical",flexItem:!0,sx:{mx:0,bgcolor:"rgba(255,255,255,0.5)"}}),ee.jsxs(xt,{sx:{display:"flex",flexBasis:"flex-1",flexDirection:"row",alignItems:"center",width:"100%",gap:"2px",justifyContent:"space-between",maxWidth:"242px"},children:[ee.jsx(zy,{disableRipple:!0,colorVariant:v===du.Chat?"primary":"secondary",sx:{height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"9px",sm:"9px",md:"9px",lg:"9px",xl:"10px"},px:{xs:"6px",sm:"6px",md:"6px",lg:"6px",xl:"8px"},color:"white",textTransform:"none"},onClick:A,children:"Chat"}),ee.jsx(zy,{disableRipple:!0,colorVariant:v===du.Components?"primary":"secondary",sx:{height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"9px",sm:"9px",md:"9px",lg:"9px",xl:"10px"},px:{xs:"6px",sm:"6px",md:"6px",lg:"6px",xl:"8px"},color:"white",textTransform:"none"},onClick:b,children:"Components"}),ee.jsx(zy,{disableRipple:!0,colorVariant:v===du.Theme?"primary":"secondary",sx:{height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"9px",sm:"9px",md:"9px",lg:"9px",xl:"10px"},px:{xs:"6px",sm:"6px",md:"6px",lg:"6px",xl:"8px"},color:"white",textTransform:"none"},onClick:E,children:"Theme"}),ee.jsx(zy,{disableRipple:!0,colorVariant:v===du.Publish?"primary":"secondary",sx:{height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"9px",sm:"9px",md:"9px",lg:"9px",xl:"10px"},px:{xs:"6px",sm:"6px",md:"6px",lg:"6px",xl:"8px"},color:"white",textTransform:"none"},onClick:S,children:"Publish"})]})]})]})})};var uu={};/**
|
|
15901
|
+
${e.palette.mode==="light"?i_e(Vp(e.palette.divider,1),.88):a_e(Vp(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${iTs.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),lTs=P.forwardRef(function(e,t){const r=Zs({props:e,name:"MuiTableCell"}),{align:n="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:d,...p}=r,h=P.useContext(lRn),f=P.useContext(C_e),g=f&&f.variant==="head";let y;o?y=o:y=g?"th":"td";let v=l;y==="td"?v=void 0:!v&&g&&(v="col");const A=d||f&&f.variant,b={...r,align:n,component:y,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:A==="head"&&h&&h.stickyHeader,variant:A},E=oTs(b);let S=null;return c&&(S=c==="asc"?"ascending":"descending"),ee.jsx(sTs,{as:y,ref:t,className:ri(E.root,a),"aria-sort":S,scope:v,ownerState:b,...p})}),yLr=lTs;class uTs extends Se.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,r){console.error("ChartErrorBoundary caught an error:",t,r)}render(){return this.state.hasError?ee.jsxs(GTn,{style:{cursor:"not-allowed"},children:[ee.jsx(VTn,{children:this.props.title}),ee.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden",maxWidth:"80%"},children:ee.jsx("p",{style:{margin:0,textAlign:"center",color:"#cccccc"},children:"This visual has an error and cannot be displayed or dragged into the canvas."})})]}):this.props.children}}const vLr=({components:e})=>e?ee.jsx(ee.Fragment,{children:e.map(t=>ee.jsx(xt,{sx:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.07)",borderRadius:"6px",color:"white",padding:"5px","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)"}},children:ee.jsx(xGt,{id:`${t.class}-${k4()}`,type:"ProjectComponent",initialSize:Or.pick(t.layout,["w","h"]),metadata:{name:t.class},node:ee.jsx("div",{children:t.class})},t.class)},`featured-${t.class}`))}):null,cTs=({visual:e})=>{const{label:t,value:r}=R6s(e);return ee.jsxs(ee.Fragment,{children:[ee.jsx("div",{style:{fontSize:18,fontWeight:700,color:"#fff",lineHeight:1},children:r}),ee.jsx("div",{style:{fontSize:12,color:"#ccc",marginTop:4},children:t})]})},dTs=()=>{const e=T6s(),t=e.length>0?Object.keys(e[0]):[];return ee.jsxs(O6s,{size:"small",sx:{alignSelf:"flex-start",width:"100%",fontSize:12,color:"#fff",borderCollapse:"collapse",marginTop:1,background:"none","& th":{borderBottomWidth:"0",padding:"6px 16px",textAlign:"left",color:"#fff",background:"none"},"& td":{padding:"6px 16px",borderBottomWidth:"0",color:"#fff",background:"none"}},children:[ee.jsx(Z6s,{children:ee.jsx(xLr,{children:t.map(r=>ee.jsx(yLr,{component:"th",scope:"col",children:r},r))})}),ee.jsx(K6s,{children:e.slice(0,3).map((r,n)=>ee.jsx(xLr,{sx:{...n%2===0?{backgroundColor:"rgba(48, 38, 77, 0.75)",backdropFilter:"blur(2px)","& > td:first-of-type":{borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px"},"& > td:last-of-type":{borderTopRightRadius:"8px",borderBottomRightRadius:"8px"}}:{}},children:t.map(a=>ee.jsx(yLr,{component:"td",children:r[a]},a))},n))})]})},pTs=({visual:e})=>{const t=e!=null&&e.metadata?JSON.parse(e.metadata):void 0,[r,n]=P.useState(null),a=rLr(e.name,t),o=rLr(e.name,t,!0),s=!o,l=(t==null?void 0:t.graphType)==="counter",u=(t==null?void 0:t.graphType)==="table";return P.useEffect(()=>{if(!o||!t)return;const c=B6s(e),{transformedData:d,newSeries:p}=uCs(c,t.graphType,o.series||[]),h={...o,dataset:{source:d},series:p};n(h)},[]),ee.jsx(xt,{sx:{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",backgroundColor:"rgba(255, 255, 255, 0.07)",borderRadius:"6px",color:"white",padding:"5px","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)"}},children:ee.jsx(uTs,{title:e.name,children:ee.jsx(xGt,{id:e.id,type:"ProjectChart",initialSize:{w:12,h:6},metadata:{...e,echartsConfig:a},node:ee.jsx("div",{style:{maxHeight:"160px",width:"100%",display:"flex",flexDirection:"column",gap:"10px",padding:"5px",overflow:"hidden"},children:s||l||u?ee.jsxs(GTn,{children:[ee.jsx(VTn,{children:e.name}),ee.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",overflow:"hidden"},children:l?ee.jsx(cTs,{visual:e}):u?ee.jsx(dTs,{}):ee.jsx("p",{style:{margin:0,textAlign:"center",color:"#cccccc"},children:"No preview available"})})]}):r&&ee.jsx("div",{style:{height:"150px",width:"100%",borderRadius:"6px",overflow:"hidden"},children:ee.jsx(Nrn,{option:r,style:{height:"100%",width:"100%"},opts:{renderer:"canvas"},notMerge:!0,lazyUpdate:!0})})})})})})},hTs=({visuals:e})=>e?ee.jsx(ee.Fragment,{children:e.map(t=>ee.jsx(pTs,{visual:t},`visual-${t.id}-${t.queryId}`))}):null,fTs=e=>{const t=e.componentLibrary.find(n=>n.class==="Blank"),r=e.componentLibrary.filter(n=>n.class!=="Blank");return ee.jsxs(xt,{sx:{margin:"10px"},children:[e.selectedLibrary===0&&ee.jsxs(ee.Fragment,{children:[ee.jsxs(Oa,{variant:"body2",component:"p",style:{marginTop:"20px",marginBottom:"20px",fontSize:"11px"},children:["The Data Viz tab above allows you to drag in charts that you've saved in the Data Studio ",ee.jsx(N6t,{size:12,style:{display:"inline-block"}})]}),ee.jsxs(fDt,{children:[ee.jsx(mDt,{children:ee.jsx(gDt,{children:"Blank Component"})}),ee.jsx(xt,{sx:{display:"flex",flexDirection:"column",gap:1},children:ee.jsx(vLr,{components:t?[t]:[]})})]}),ee.jsxs(fDt,{children:[ee.jsx(mDt,{children:ee.jsx(gDt,{children:"Featured Components"})}),ee.jsx(xt,{sx:{display:"flex",flexDirection:"column",gap:1},children:ee.jsx(vLr,{components:r})})]})]}),e.selectedLibrary===1&&ee.jsxs(ee.Fragment,{children:[ee.jsxs(Oa,{variant:"body2",component:"p",style:{marginTop:"20px",marginBottom:"20px",fontSize:"11px"},children:["Charts that you saved in"," ",ee.jsx("button",{onClick:()=>e.navigate("DATA_STUDIO",!0),style:{color:"inherit",textDecoration:"underline"},children:"Data Studio"})," ",ee.jsx(N6t,{size:12,style:{display:"inline-block"}})]}),ee.jsxs(fDt,{children:[ee.jsx(mDt,{children:ee.jsx(gDt,{children:"Charts"})}),ee.jsx(xt,{sx:{display:"flex",flexDirection:"column",gap:1},children:ee.jsx(hTs,{visuals:e.visualLibrary})})]})]})]})},WG="anonymous.default",vee="sxt_user.default",mTs=()=>{const{projectMetadata:e,config:t,proxyHandler:r}=Ul(),[n,a]=P.useState("list"),[o,s]=P.useState([]),[l,u]=P.useState([]),[c,d]=P.useState(null),[p,h]=P.useState(!1),[f,g]=P.useState(null),[y,v]=P.useState({window_ms:36e5,limit:100}),[A,b]=P.useState(null),[E,S]=P.useState({window_ms:36e5,limit:100}),M=P.useMemo(()=>r||(t!=null&&t.PROXY_API_BASE_URL&&e!=null&&e.projectHmac?sUe(t.PROXY_API_BASE_URL,e.projectHmac):null),[r,t==null?void 0:t.PROXY_API_BASE_URL,e==null?void 0:e.projectHmac]),T=P.useCallback(async()=>{if(!M){console.warn("API Proxy handler not available");return}try{h(!0),g(null);const J=await M.getSecrets();if(J.ok){const Y=await J.json();s(Y)}else throw new Error(`Failed to load secrets: ${J.status}`)}catch(J){g("Failed to load secrets"),console.error("Error loading secrets:",J)}finally{h(!1)}},[M]),R=P.useCallback(async()=>{if(!(!(e!=null&&e.projectName)||!M))try{const J=await M.getTierKeyMap(e.projectName);if(J.ok){const Y=await J.json();u(Y)}else console.error("Failed to load linked secrets:",J.status)}catch(J){console.error("Error loading linked secrets:",J)}},[e==null?void 0:e.projectName,M]),j=P.useCallback(async J=>{if(!(!(e!=null&&e.projectName)||!M))try{const Y=await M.getRateLimit(e.projectName,WG,J);if(Y.ok){const Q=await Y.json();v({window_ms:Q.window_ms,limit:Q.limit})}else console.error("Failed to load rate limit:",Y.status)}catch(Y){console.error("Error loading rate limit:",Y)}},[e==null?void 0:e.projectName,M]);P.useEffect(()=>{M&&e!=null&&e.projectName&&t!=null&&t.PROXY_API_BASE_URL?(console.log("Loading proxy data with base URL:",t.PROXY_API_BASE_URL),T(),R()):console.warn("Missing required proxy configuration:",{hasProxyHandler:!!M,hasProjectName:!!(e!=null&&e.projectName),hasProxyBaseUrl:!!(t!=null&&t.PROXY_API_BASE_URL)})},[M,e==null?void 0:e.projectName,t==null?void 0:t.PROXY_API_BASE_URL,T,R]);const L=async()=>{if(!(!(e!=null&&e.projectName)||!M||!A))try{h(!0),await M.putTierKeyMap(e.projectName,WG,A),await M.putTierKeyMap(e.projectName,vee,A),await M.putRateLimit(e.projectName,WG,A,E),await M.putRateLimit(e.projectName,vee,A,E),await R(),a("list"),b(null),S({window_ms:36e5,limit:100})}catch(J){g("Failed to link API key"),console.error("Error linking secret:",J)}finally{h(!1)}},I=async()=>{if(!(!c||!(e!=null&&e.projectName)||!M))try{h(!0),await M.deleteTierKeyMap(e.projectName,WG,c),await M.deleteTierKeyMap(e.projectName,vee,c),await M.deleteRateLimit(e.projectName,WG,c),await M.deleteRateLimit(e.projectName,vee,c),await R(),a("list"),d(null)}catch(J){g("Failed to delete link"),console.error("Error deleting link:",J)}finally{h(!1)}},G=async()=>{if(!(!c||!(e!=null&&e.projectName)||!M))try{h(!0),await M.putRateLimit(e.projectName,WG,c,y),await M.putRateLimit(e.projectName,vee,c,y),a("list")}catch(J){g("Failed to update rate limits"),console.error("Error updating rate limits:",J)}finally{h(!1)}},V=o.filter(J=>!l.some(Y=>Y.secret_reference===J.secret_reference)),O=P.useMemo(()=>{const J=new Map;return l.forEach(Y=>{J.has(Y.secret_reference)||J.set(Y.secret_reference,Y)}),Array.from(J.values())},[l]),z=()=>ee.jsxs(xt,{children:[ee.jsx(xt,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",mb:3},children:ee.jsxs(xt,{sx:{display:"flex",gap:1},children:[ee.jsx(s4,{variant:"contained",onClick:()=>a("link"),disabled:V.length===0,startIcon:ee.jsx(fxt,{}),sx:{bgcolor:"#421ea1",fontSize:"12px","&:hover":{bgcolor:"#5933bf"},"&.Mui-disabled":{bgcolor:"rgba(66, 30, 161, 0.3)",opacity:.5,color:"#fff"}},children:"Link Existing API Key"}),ee.jsx(s4,{variant:"outlined",onClick:()=>{const J="/settings/thirdPartyAPIs?openAddPanel=true";window.location.href=J},startIcon:ee.jsx(fxt,{}),sx:{borderColor:"#421ea1",color:"#421ea1",fontSize:"12px","&:hover":{borderColor:"#5933bf",bgcolor:"rgba(66, 30, 161, 0.1)"}},children:"Add New API Key"})]})}),ee.jsx(dx,{sx:{mb:2},children:"Linked API Keys"}),f&&ee.jsx(Oa,{variant:"caption",sx:{color:"rgb(220, 80, 80)",bgcolor:"rgba(0, 0, 0, 0.15)",borderRadius:"6px",padding:"4px 8px",fontWeight:500,display:"block",mb:2},children:f}),O.length===0?ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.7)",textAlign:"center",py:4},children:"No API keys linked with this miniapp yet."}):ee.jsx(d6t,{dense:!0,children:O.map(J=>{const Y=o.find(Q=>Q.secret_reference===J.secret_reference);return ee.jsx(p6t,{onClick:()=>{d(J.secret_reference),j(J.secret_reference),a("details")},sx:{cursor:"pointer","&:hover":{bgcolor:"rgba(255, 255, 255, 0.05)"}},children:ee.jsxs(xt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:[ee.jsxs(xt,{children:[ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.85)",fontWeight:500},children:J.secret_reference}),ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.6)",fontSize:"14px"},children:(Y==null?void 0:Y.api_domain)||"Unknown domain"})]}),ee.jsx(Yo,{onClick:Q=>{Q.stopPropagation(),d(J.secret_reference),j(J.secret_reference),a("details")},sx:{color:"rgba(255, 255, 255, 0.7)"},children:ee.jsx(TVe,{fontSize:"small"})})]})},J.secret_reference)})})]}),W=()=>ee.jsxs(xt,{children:[ee.jsxs(xt,{sx:{display:"flex",alignItems:"center",mb:2},children:[ee.jsx(Yo,{onClick:()=>a("list"),sx:{color:"white",mr:1},children:ee.jsx(MFt,{})}),ee.jsx(Oa,{variant:"h6",sx:{color:"white"},children:"Link New API Key"})]}),ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.7)",mb:3},children:"Select an API key (secret) to link with this app and configure its rate limits."}),ee.jsxs(xt,{sx:{mb:3},children:[ee.jsx(dx,{children:"Available API Keys"}),ee.jsx(d6t,{dense:!0,children:V.map(J=>ee.jsx(p6t,{selected:A===J.secret_reference,onClick:()=>b(J.secret_reference),children:ee.jsx(xt,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},children:ee.jsxs(xt,{children:[ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.85)",fontWeight:500},children:J.secret_reference}),ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.6)",fontSize:"14px"},children:J.api_domain})]})})},J.secret_reference))})]}),A&&ee.jsxs(xt,{sx:{mb:3},children:[ee.jsx(dx,{children:"Rate Limit Configuration"}),ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.7)",fontSize:"14px",mb:2},children:"Configure usage limits for all end users of this miniapp."}),ee.jsxs(xt,{sx:{mb:2},children:[ee.jsx(dx,{children:"Time Window (seconds)"}),ee.jsx(J9,{type:"text",value:(E.window_ms/1e3).toString(),onChange:J=>S(Y=>({...Y,window_ms:(parseInt(J.target.value)||0)*1e3})),placeholder:"3600",size:"small",fullWidth:!0})]}),ee.jsxs(xt,{sx:{mb:2},children:[ee.jsx(dx,{children:"Request Limit (over the time window above)"}),ee.jsx(J9,{type:"text",value:E.limit.toString(),onChange:J=>S(Y=>({...Y,limit:parseInt(J.target.value)||0})),placeholder:"100",size:"small",fullWidth:!0})]})]}),ee.jsxs(xt,{sx:{display:"flex",gap:2,justifyContent:"flex-end"},children:[ee.jsx(s4,{variant:"contained",onClick:()=>{a("list"),b(null),S({window_ms:36e5,limit:100})},sx:{bgcolor:"rgba(255, 255, 255, 0.1)","&:hover":{bgcolor:"rgba(255, 255, 255, 0.2)"}},children:"Cancel"}),ee.jsx(s4,{variant:"contained",onClick:L,disabled:p||!A,startIcon:ee.jsx(fxt,{}),sx:{bgcolor:"#421ea1","&:hover":{bgcolor:"#5933bf"},"&.Mui-disabled":{bgcolor:"rgba(66, 30, 161, 0.3)",opacity:.5,color:"#fff"}},children:"Apply Link"})]})]}),K=()=>ee.jsxs(xt,{children:[ee.jsxs(xt,{sx:{display:"flex",alignItems:"center",mb:2},children:[ee.jsx(Yo,{onClick:()=>a("list"),sx:{color:"white",mr:1},children:ee.jsx(MFt,{})}),ee.jsxs(Oa,{variant:"h6",sx:{color:"white"},children:[c," Settings"]})]}),ee.jsxs(xt,{sx:{mb:3},children:[ee.jsx(dx,{children:"Usage Rate Limits"}),ee.jsx(Oa,{sx:{color:"rgba(255, 255, 255, 0.7)",fontSize:"14px",mb:2},children:"Global limits for all end users of this miniapp (applies to both anonymous and logged-in users)."})]}),ee.jsxs(xt,{sx:{mb:2},children:[ee.jsx(dx,{children:"Time Window (seconds)"}),ee.jsx(J9,{type:"text",value:(y.window_ms/1e3).toString(),onChange:J=>v(Y=>({...Y,window_ms:(parseInt(J.target.value)||0)*1e3})),placeholder:"3600",size:"small",fullWidth:!0})]}),ee.jsxs(xt,{sx:{mb:3},children:[ee.jsx(dx,{children:"Request Limit (over the time window above)"}),ee.jsx(J9,{type:"text",value:y.limit.toString(),onChange:J=>v(Y=>({...Y,limit:parseInt(J.target.value)||0})),placeholder:"100",size:"small",fullWidth:!0})]}),ee.jsxs(xt,{sx:{display:"flex",gap:2},children:[ee.jsx(s4,{variant:"contained",onClick:G,disabled:p,startIcon:ee.jsx(TVe,{}),sx:{bgcolor:"#421ea1","&:hover":{bgcolor:"#5933bf"},"&.Mui-disabled":{bgcolor:"rgba(66, 30, 161, 0.3)",opacity:.5,color:"#fff"}},children:"Update Rate Limits"}),ee.jsx(s4,{variant:"contained",onClick:()=>{I()},startIcon:ee.jsx(k7i,{}),sx:{bgcolor:"rgba(214, 52, 52, 0.8)","&:hover":{bgcolor:"rgba(178, 24, 24, 0.95)"}},children:"Delete Link"})]})]});return ee.jsx(xt,{sx:{display:"flex",flexDirection:"column",height:"100%",padding:"16px",overflowY:"auto",scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"}},children:ee.jsxs(KWt,{children:[ee.jsxs(qWt,{children:[ee.jsx(D7i,{}),"Third-party API Keys (Secrets)"]}),ee.jsxs(Oa,{variant:"body2",sx:{color:"rgba(255, 255, 255, 0.7)",mb:2},children:["Store third-party API keys in your Dreamspace account to enable your app to securely access these APIs without exposing your credentials. Configure rate limits to limit the usage of these APIs by your app","'","s users."]}),n==="list"&&z(),n==="link"&&W(),n==="details"&&K()]})})},gTs=({onBackClick:e})=>ee.jsxs(xt,{sx:{display:"flex",flexDirection:"column",height:"100%",overflow:"hidden"},children:[ee.jsxs(xt,{sx:{display:"flex",alignItems:"center",padding:"16px",borderBottom:"1px solid rgba(255, 255, 255, 0.1)",gap:1},children:[ee.jsx(Yo,{onClick:e,sx:{color:"white",padding:"4px","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)"}},children:ee.jsx(MFt,{fontSize:"small"})}),ee.jsx(TVe,{sx:{color:"rgba(255, 255, 255, 0.7)",fontSize:"20px",mr:1}}),ee.jsx(Oa,{variant:"h6",sx:{color:"white",fontWeight:500,fontSize:"16px"},children:"Settings"})]}),ee.jsx(xt,{sx:{flex:1,overflow:"auto",scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"}},children:ee.jsx(mTs,{})})]}),qq=ho(ee.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),xTs=Gr("div")(()=>({position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.8)",backdropFilter:"blur(4px)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:9999,padding:"20px"})),yTs=Gr("div")(()=>({backgroundColor:"rgba(255, 255, 255, 0.05)",backdropFilter:"blur(20px)",borderRadius:"12px",border:"1px solid rgba(255, 255, 255, 0.1)",width:"100%",maxWidth:"440px",overflow:"hidden",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.4)"})),vTs=Gr("div")(()=>({padding:"24px 24px 0 24px",display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"16px"})),ATs=Gr("div")(()=>({color:"rgba(255, 255, 255, 0.9)",fontSize:"20px",fontWeight:600,display:"flex",alignItems:"center",gap:"12px"})),bTs=Gr("button")(()=>({background:"none",border:"none",color:"rgba(255, 255, 255, 0.6)",cursor:"pointer",padding:"4px",borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease-in-out","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)",color:"rgba(255, 255, 255, 0.9)"}})),DTs=Gr("div")(()=>({padding:"0 24px 24px 24px"})),wTs=Gr("div")(()=>({color:"rgba(255, 255, 255, 0.8)",fontSize:"16px",lineHeight:"1.5",marginBottom:"8px",textAlign:"center"})),CTs=Gr("span")(()=>({color:"rgba(255, 255, 255, 0.95)",fontWeight:600,backgroundColor:"rgba(255, 255, 255, 0.1)",padding:"2px 6px",borderRadius:"4px"})),ALr=Gr("div")(()=>({color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",textAlign:"center",marginBottom:"32px"})),kTs=Gr("div")(()=>({display:"flex",gap:"12px",justifyContent:"center"})),bLr=Gr("button")(({variant:e="primary"})=>({padding:"12px 24px",borderRadius:"8px",border:"none",fontSize:"14px",fontWeight:600,cursor:"pointer",transition:"all 0.2s ease-in-out",display:"flex",alignItems:"center",gap:"8px",minWidth:"100px",justifyContent:"center",...e==="primary"&&{backgroundColor:"rgba(255, 255, 255, 0.1)",color:"rgba(255, 255, 255, 0.9)",border:"1px solid rgba(255, 255, 255, 0.2)","&:hover:not(:disabled)":{backgroundColor:"rgba(255, 255, 255, 0.15)",borderColor:"rgba(255, 255, 255, 0.3)"}},...e==="danger"&&{backgroundColor:"rgba(244, 67, 54, 0.2)",color:"#E57373",border:"1px solid rgba(244, 67, 54, 0.3)","&:hover:not(:disabled)":{backgroundColor:"rgba(244, 67, 54, 0.3)",borderColor:"rgba(244, 67, 54, 0.5)"}},"&:disabled":{opacity:.6,cursor:"not-allowed"}})),uRn=()=>{const[e,t]=P.useState(!1),[r,n]=P.useState(!1),[a,o]=P.useState(null),[s,l]=P.useState(null),[u,c]=P.useState(null),d=P.useRef(null),p=P.useRef(null),h=(g,y,v,A)=>{o(g),d.current=y,p.current=v??null,t(!0),c(A??null)},f=()=>{p.current&&p.current(),n(!1),t(!1),o(null),l(null),d.current=null,p.current=null};return{DeleteConfirmationModal:()=>{if(!e)return null;const g=v=>{v.target===v.currentTarget&&!r&&f()},y=async()=>{if(n(!0),l(null),!d.current){console.error("No callback func specified");return}const v=await d.current();if(v.status!==200){const A=v.error??"Unknown Error";console.error(A),l(A),n(!1)}else n(!1),t(!1)};return ys.createPortal(ee.jsx(xTs,{onClick:g,children:ee.jsxs(yTs,{children:[ee.jsxs(vTs,{children:[ee.jsxs(ATs,{children:[ee.jsx(qq,{style:{color:"#E57373"}}),to.DELETE," ",u??to.COMPONENT_TEXT]}),ee.jsx(bTs,{onClick:()=>f(),disabled:r,children:ee.jsx(nB,{style:{fontSize:"20px"}})})]}),ee.jsxs(DTs,{children:[ee.jsxs(wTs,{children:[to.DELETE_ARE_YOU_SURE," ",ee.jsx(CTs,{children:a??"Component"}),"?"]}),ee.jsx(ALr,{children:to.DELETE_CANNOT_BE_UNDONE}),s&&ee.jsx(ALr,{children:ee.jsx("span",{style:{color:"red"},children:s})}),ee.jsxs(kTs,{children:[ee.jsx(bLr,{variant:"primary",onClick:()=>f(),disabled:r,children:"Cancel"}),ee.jsx(bLr,{variant:"danger",onClick:()=>y(),disabled:r,children:r?ee.jsxs(ee.Fragment,{children:[ee.jsx(Ag,{size:16,style:{color:"currentColor"}}),"Deleting..."]}):ee.jsxs(ee.Fragment,{children:[ee.jsx(qq,{style:{fontSize:"16px"}}),to.DELETE," ",u??to.COMPONENT_TEXT]})})]})]})]})}),document.body)},open:h,close:f}},ETs=({projectPages:e,pageId:t})=>{const{DeleteConfirmationModal:r,open:n}=uRn(),{projectMetadata:a,APIHandler:o}=Ul(),{refetch:s,isLoading:l}=s5((a==null?void 0:a.projectName)||"",(a==null?void 0:a.projectURL)||"",t).projectData,u=Cbs(),c=e.find(I=>I.id===u),d=u==="0",[p,h]=P.useState((c==null?void 0:c.name)||""),[f,g]=P.useState((c==null?void 0:c.path)||""),[y,v]=P.useState(!1),[A,b]=P.useState(!1),[E,S]=P.useState({open:!1,error:""}),M=Ua();P.useEffect(()=>{h((c==null?void 0:c.name)??""),g((c==null?void 0:c.path)??"")},[c]);const T=I=>I.toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),R=async()=>{b(!0);let I;if(c?I=await o.editPage((a==null?void 0:a.projectName)||"",c.id,p,f):I=await o.addPage((a==null?void 0:a.projectName)||"",p,f,{}),I.ok){const G=await I.json();s(),e3(du.Chat),M.push(`${Od.myApps}/${a==null?void 0:a.projectName}/${f}`),z6n(G==null?void 0:G.page_id)}else{const G=await I.json();S({open:!0,error:G.detail}),console.error("Failed to save page",I)}b(!1)},j=()=>{e3(du.Chat)},L=async()=>{n((c==null?void 0:c.name)||"",async()=>{try{return(await o.deletePage((a==null?void 0:a.projectName)||"",(c==null?void 0:c.id)||"")).status!==200?{status:500,error:"Failed to delete page"}:(s(),e3(du.Chat),M.push(`${Od.myApps}/${a==null?void 0:a.projectName}`),{status:200})}catch(I){return console.error("Failed to delete page",I),{status:500,error:"Failed to delete page"}}},void 0,"Page")};return ee.jsxs(xt,{sx:{display:"flex",flexDirection:"column",height:"100%"},children:[ee.jsx(vJ,{isVisible:l}),E.open&&ee.jsx(b_e,{onClose:()=>{S({open:!1,error:""})},errorTitle:"Error saving page",errorMessage:E.error||"Failed to save page. Please try again later."}),ee.jsxs(xt,{sx:{display:"flex",flexDirection:"column",height:"100%",padding:"10px",overflowY:"auto",scrollbarWidth:"none","-ms-overflow-style":"none","&::-webkit-scrollbar":{display:"none"}},children:[ee.jsxs(O6t,{children:[ee.jsx(z6t,{children:ee.jsx(H6t,{children:c?`Page settings for "${c.name}"`:"Create New Page"})}),ee.jsx(xt,{sx:{color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",marginBottom:"16px"},children:"Here you can define the settings related to the current page. The name is used to identify the page in the chatbot, and the URL is used to access the page."}),ee.jsxs(f9t,{direction:"column",sx:{flex:1,gap:2,minWidth:0},children:[ee.jsxs(xt,{sx:{display:"flex",flexDirection:"column",width:"100%"},children:[ee.jsx(_W,{children:"Name:"}),ee.jsx(MM,{value:p,placeholder:"Page Name",onChange:I=>{h(I.target.value),y||g(T(I.target.value))},variant:"outlined",size:"small",sx:{"& .MuiOutlinedInput-root":{backgroundColor:"rgba(255, 255, 255, 0.1)",color:"white","& fieldset":{borderColor:"rgba(255, 255, 255, 0.3)"},"&:hover fieldset":{borderColor:"rgba(255, 255, 255, 0.5)"},"&.Mui-focused fieldset":{borderColor:"rgba(255, 255, 255, 0.7)"}}}})]}),ee.jsxs(xt,{sx:{display:"flex",flexDirection:"column",width:"100%"},children:[ee.jsx(_W,{children:"URL:"}),ee.jsx(MM,{disabled:d,type:"url",value:f,placeholder:d?"":"page-url",onChange:I=>{g(T(I.target.value)),v(!0)},variant:"outlined",size:"small",sx:{width:"100%",...d&&{opacity:.5},"& .MuiOutlinedInput-root":{backgroundColor:"rgba(255, 255, 255, 0.1)",color:"white",...d&&{"& input":{cursor:"not-allowed"}},"& fieldset":{borderColor:"rgba(255, 255, 255, 0.3)"},...!d&&{"&:hover fieldset":{borderColor:"rgba(255, 255, 255, 0.5)"}},"&.Mui-focused fieldset":{borderColor:"rgba(255, 255, 255, 0.7)"}}},InputProps:{startAdornment:ee.jsx("span",{style:{color:"rgba(255,255,255,0.6)",fontWeight:500,fontSize:"1rem",userSelect:"none",marginRight:"4px",marginLeft:"10px"},children:"/"}),style:{paddingLeft:0}}})]})]})]}),c&&!d&&ee.jsxs(O6t,{children:[ee.jsx(z6t,{children:ee.jsx(H6t,{children:"Delete this page"})}),ee.jsx(xt,{sx:{color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",marginBottom:"16px"},children:"This will permanently delete the page and remove the page reference from the chatbot. This action cannot be undone."}),ee.jsx(Pu,{disabled:A,onClick:L,variant:"contained",color:"error",sx:{width:"100%",background:"rgba(255, 0, 0, 0.2)",backdropFilter:"blur(6px)",color:"#fff",transition:"background 0.2s, border 0.2s","&:hover":{background:"rgba(255, 24, 24, 0.32)",color:"#fff"},"&.Mui-disabled":{opacity:.5,background:"rgba(255, 0, 0, 0.16)",color:"#fff"}},startIcon:ee.jsx(qq,{}),children:"Delete"})]}),ee.jsxs(xt,{sx:{display:"flex",flexDirection:"row",gap:2,marginTop:"20px",justifyContent:"flex-end"},children:[ee.jsx(Pu,{disabled:A,onClick:j,variant:"outlined",color:"primary",sx:{color:"rgba(255, 255, 255, 0.6)",border:"1px solid rgba(255, 255, 255, 0.3)","&:hover":{border:"1px solid rgba(255, 255, 255, 0.78)",color:"rgba(255, 255, 255, 0.74)"}},children:"Cancel"}),ee.jsx(Pu,{loading:A,onClick:R,variant:"contained",color:"primary",children:c?"Update":"Create"})]})]}),ee.jsx(r,{})]})},cRn=()=>{const[e,t]=P.useState(window.innerWidth<767),[r,n]=P.useState(window.innerWidth>=768),[a,o]=P.useState(window.innerWidth<1024),[s,l]=P.useState(window.innerWidth>1024),[u,c]=P.useState(window.innerWidth>=768);return P.useEffect(()=>{const d=()=>{t(window.innerWidth<767),n(window.innerWidth>=768),o(window.innerWidth<1024),l(window.innerWidth>1024),c(window.innerWidth>=768)};return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[]),{isMobileDown:e,isMobileUp:r,isTabDown:a,isTabUp:s,isLaptopUp:u}},STs=ho(ee.jsx("path",{d:"M17 1.01 7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99M17 19H7V5h10z"}),"Smartphone"),FTs=ho(ee.jsx("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"}),"Laptop"),Z6t={ENABLE_INLINE_EDITOR:!1,ENABLE_THIRD_PARTY_API_SUPPORT:!1};function dRn(){if(typeof window>"u")return Z6t;const e=window.__APP_CONFIG__||{};return{...Z6t,...e}}function pRn(e,t){return dRn()[e]??t??Z6t[e]}function MTs(e){const t=pRn(e);return typeof t=="boolean"?t:typeof t=="string"?t==="true":!1}function hRn(){return{config:P.useMemo(()=>dRn(),[]),getValue:pRn,isFeatureEnabled:MTs}}var kg="top",tA="bottom",rA="right",Eg="left",GUt="auto",gce=[kg,tA,rA,Eg],Xq="start",Coe="end",BTs="clippingParents",fRn="viewport",Aee="popper",TTs="reference",DLr=gce.reduce(function(e,t){return e.concat([t+"-"+Xq,t+"-"+Coe])},[]),mRn=[].concat(gce,[GUt]).reduce(function(e,t){return e.concat([t,t+"-"+Xq,t+"-"+Coe])},[]),RTs="beforeRead",PTs="read",jTs="afterRead",ITs="beforeMain",NTs="main",LTs="afterMain",OTs="beforeWrite",zTs="write",HTs="afterWrite",GTs=[RTs,PTs,jTs,ITs,NTs,LTs,OTs,zTs,HTs];function qC(e){return e?(e.nodeName||"").toLowerCase():null}function ty(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function eL(e){var t=ty(e).Element;return e instanceof t||e instanceof Element}function Vv(e){var t=ty(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function VUt(e){if(typeof ShadowRoot>"u")return!1;var t=ty(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function VTs(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!Vv(o)||!qC(o)||(Object.assign(o.style,n),Object.keys(a).forEach(function(s){var l=a[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function WTs(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var a=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),l=s.reduce(function(u,c){return u[c]="",u},{});!Vv(a)||!qC(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}const UTs={name:"applyStyles",enabled:!0,phase:"write",fn:VTs,effect:WTs,requires:["computeStyles"]};function SC(e){return e.split("-")[0]}var KI=Math.max,sKe=Math.min,Yq=Math.round;function _6t(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function gRn(){return!/^((?!chrome|android).)*safari/i.test(_6t())}function Jq(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),a=1,o=1;t&&Vv(e)&&(a=e.offsetWidth>0&&Yq(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Yq(n.height)/e.offsetHeight||1);var s=eL(e)?ty(e):window,l=s.visualViewport,u=!gRn()&&r,c=(n.left+(u&&l?l.offsetLeft:0))/a,d=(n.top+(u&&l?l.offsetTop:0))/o,p=n.width/a,h=n.height/o;return{width:p,height:h,top:d,right:c+p,bottom:d+h,left:c,x:c,y:d}}function WUt(e){var t=Jq(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function xRn(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&VUt(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function d8(e){return ty(e).getComputedStyle(e)}function KTs(e){return["table","td","th"].indexOf(qC(e))>=0}function oB(e){return((eL(e)?e.ownerDocument:e.document)||window.document).documentElement}function k_e(e){return qC(e)==="html"?e:e.assignedSlot||e.parentNode||(VUt(e)?e.host:null)||oB(e)}function wLr(e){return!Vv(e)||d8(e).position==="fixed"?null:e.offsetParent}function qTs(e){var t=/firefox/i.test(_6t()),r=/Trident/i.test(_6t());if(r&&Vv(e)){var n=d8(e);if(n.position==="fixed")return null}var a=k_e(e);for(VUt(a)&&(a=a.host);Vv(a)&&["html","body"].indexOf(qC(a))<0;){var o=d8(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function xce(e){for(var t=ty(e),r=wLr(e);r&&KTs(r)&&d8(r).position==="static";)r=wLr(r);return r&&(qC(r)==="html"||qC(r)==="body"&&d8(r).position==="static")?t:r||qTs(e)||t}function UUt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jne(e,t,r){return KI(e,sKe(t,r))}function XTs(e,t,r){var n=Jne(e,t,r);return n>r?r:n}function yRn(){return{top:0,right:0,bottom:0,left:0}}function vRn(e){return Object.assign({},yRn(),e)}function ARn(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var YTs=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,vRn(typeof e!="number"?e:ARn(e,gce))};function JTs(e){var t,r=e.state,n=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,l=SC(r.placement),u=UUt(l),c=[Eg,rA].indexOf(l)>=0,d=c?"height":"width";if(!(!o||!s)){var p=YTs(a.padding,r),h=WUt(o),f=u==="y"?kg:Eg,g=u==="y"?tA:rA,y=r.rects.reference[d]+r.rects.reference[u]-s[u]-r.rects.popper[d],v=s[u]-r.rects.reference[u],A=xce(o),b=A?u==="y"?A.clientHeight||0:A.clientWidth||0:0,E=y/2-v/2,S=p[f],M=b-h[d]-p[g],T=b/2-h[d]/2+E,R=Jne(S,T,M),j=u;r.modifiersData[n]=(t={},t[j]=R,t.centerOffset=R-T,t)}}function QTs(e){var t=e.state,r=e.options,n=r.element,a=n===void 0?"[data-popper-arrow]":n;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||xRn(t.elements.popper,a)&&(t.elements.arrow=a))}const ZTs={name:"arrow",enabled:!0,phase:"main",fn:JTs,effect:QTs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Qq(e){return e.split("-")[1]}var _Ts={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $Ts(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:Yq(r*a)/a||0,y:Yq(n*a)/a||0}}function CLr(e){var t,r=e.popper,n=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,l=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,p=e.isFixed,h=s.x,f=h===void 0?0:h,g=s.y,y=g===void 0?0:g,v=typeof d=="function"?d({x:f,y}):{x:f,y};f=v.x,y=v.y;var A=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),E=Eg,S=kg,M=window;if(c){var T=xce(r),R="clientHeight",j="clientWidth";if(T===ty(r)&&(T=oB(r),d8(T).position!=="static"&&l==="absolute"&&(R="scrollHeight",j="scrollWidth")),T=T,a===kg||(a===Eg||a===rA)&&o===Coe){S=tA;var L=p&&T===M&&M.visualViewport?M.visualViewport.height:T[R];y-=L-n.height,y*=u?1:-1}if(a===Eg||(a===kg||a===tA)&&o===Coe){E=rA;var I=p&&T===M&&M.visualViewport?M.visualViewport.width:T[j];f-=I-n.width,f*=u?1:-1}}var G=Object.assign({position:l},c&&_Ts),V=d===!0?$Ts({x:f,y},ty(r)):{x:f,y};if(f=V.x,y=V.y,u){var O;return Object.assign({},G,(O={},O[S]=b?"0":"",O[E]=A?"0":"",O.transform=(M.devicePixelRatio||1)<=1?"translate("+f+"px, "+y+"px)":"translate3d("+f+"px, "+y+"px, 0)",O))}return Object.assign({},G,(t={},t[S]=b?y+"px":"",t[E]=A?f+"px":"",t.transform="",t))}function eRs(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=n===void 0?!0:n,o=r.adaptive,s=o===void 0?!0:o,l=r.roundOffsets,u=l===void 0?!0:l,c={placement:SC(t.placement),variation:Qq(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,CLr(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,CLr(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const tRs={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eRs,data:{}};var ave={passive:!0};function rRs(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,o=a===void 0?!0:a,s=n.resize,l=s===void 0?!0:s,u=ty(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",r.update,ave)}),l&&u.addEventListener("resize",r.update,ave),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",r.update,ave)}),l&&u.removeEventListener("resize",r.update,ave)}}const nRs={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:rRs,data:{}};var aRs={left:"right",right:"left",bottom:"top",top:"bottom"};function XHe(e){return e.replace(/left|right|bottom|top/g,function(t){return aRs[t]})}var iRs={start:"end",end:"start"};function kLr(e){return e.replace(/start|end/g,function(t){return iRs[t]})}function KUt(e){var t=ty(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function qUt(e){return Jq(oB(e)).left+KUt(e).scrollLeft}function oRs(e,t){var r=ty(e),n=oB(e),a=r.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,u=0;if(a){o=a.width,s=a.height;var c=gRn();(c||!c&&t==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:o,height:s,x:l+qUt(e),y:u}}function sRs(e){var t,r=oB(e),n=KUt(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=KI(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=KI(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-n.scrollLeft+qUt(e),u=-n.scrollTop;return d8(a||r).direction==="rtl"&&(l+=KI(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:l,y:u}}function XUt(e){var t=d8(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}function bRn(e){return["html","body","#document"].indexOf(qC(e))>=0?e.ownerDocument.body:Vv(e)&&XUt(e)?e:bRn(k_e(e))}function Qne(e,t){var r;t===void 0&&(t=[]);var n=bRn(e),a=n===((r=e.ownerDocument)==null?void 0:r.body),o=ty(n),s=a?[o].concat(o.visualViewport||[],XUt(n)?n:[]):n,l=t.concat(s);return a?l:l.concat(Qne(k_e(s)))}function $6t(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function lRs(e,t){var r=Jq(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ELr(e,t,r){return t===fRn?$6t(oRs(e,r)):eL(t)?lRs(t,r):$6t(sRs(oB(e)))}function uRs(e){var t=Qne(k_e(e)),r=["absolute","fixed"].indexOf(d8(e).position)>=0,n=r&&Vv(e)?xce(e):e;return eL(n)?t.filter(function(a){return eL(a)&&xRn(a,n)&&qC(a)!=="body"}):[]}function cRs(e,t,r,n){var a=t==="clippingParents"?uRs(e):[].concat(t),o=[].concat(a,[r]),s=o[0],l=o.reduce(function(u,c){var d=ELr(e,c,n);return u.top=KI(d.top,u.top),u.right=sKe(d.right,u.right),u.bottom=sKe(d.bottom,u.bottom),u.left=KI(d.left,u.left),u},ELr(e,s,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function DRn(e){var t=e.reference,r=e.element,n=e.placement,a=n?SC(n):null,o=n?Qq(n):null,s=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2,u;switch(a){case kg:u={x:s,y:t.y-r.height};break;case tA:u={x:s,y:t.y+t.height};break;case rA:u={x:t.x+t.width,y:l};break;case Eg:u={x:t.x-r.width,y:l};break;default:u={x:t.x,y:t.y}}var c=a?UUt(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case Xq:u[c]=u[c]-(t[d]/2-r[d]/2);break;case Coe:u[c]=u[c]+(t[d]/2-r[d]/2);break}}return u}function koe(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=n===void 0?e.placement:n,o=r.strategy,s=o===void 0?e.strategy:o,l=r.boundary,u=l===void 0?BTs:l,c=r.rootBoundary,d=c===void 0?fRn:c,p=r.elementContext,h=p===void 0?Aee:p,f=r.altBoundary,g=f===void 0?!1:f,y=r.padding,v=y===void 0?0:y,A=vRn(typeof v!="number"?v:ARn(v,gce)),b=h===Aee?TTs:Aee,E=e.rects.popper,S=e.elements[g?b:h],M=cRs(eL(S)?S:S.contextElement||oB(e.elements.popper),u,d,s),T=Jq(e.elements.reference),R=DRn({reference:T,element:E,strategy:"absolute",placement:a}),j=$6t(Object.assign({},E,R)),L=h===Aee?j:T,I={top:M.top-L.top+A.top,bottom:L.bottom-M.bottom+A.bottom,left:M.left-L.left+A.left,right:L.right-M.right+A.right},G=e.modifiersData.offset;if(h===Aee&&G){var V=G[a];Object.keys(I).forEach(function(O){var z=[rA,tA].indexOf(O)>=0?1:-1,W=[kg,tA].indexOf(O)>=0?"y":"x";I[O]+=V[W]*z})}return I}function dRs(e,t){t===void 0&&(t={});var r=t,n=r.placement,a=r.boundary,o=r.rootBoundary,s=r.padding,l=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?mRn:u,d=Qq(n),p=d?l?DLr:DLr.filter(function(g){return Qq(g)===d}):gce,h=p.filter(function(g){return c.indexOf(g)>=0});h.length===0&&(h=p);var f=h.reduce(function(g,y){return g[y]=koe(e,{placement:y,boundary:a,rootBoundary:o,padding:s})[SC(y)],g},{});return Object.keys(f).sort(function(g,y){return f[g]-f[y]})}function pRs(e){if(SC(e)===GUt)return[];var t=XHe(e);return[kLr(e),t,kLr(t)]}function hRs(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,l=s===void 0?!0:s,u=r.fallbackPlacements,c=r.padding,d=r.boundary,p=r.rootBoundary,h=r.altBoundary,f=r.flipVariations,g=f===void 0?!0:f,y=r.allowedAutoPlacements,v=t.options.placement,A=SC(v),b=A===v,E=u||(b||!g?[XHe(v)]:pRs(v)),S=[v].concat(E).reduce(function(oe,de){return oe.concat(SC(de)===GUt?dRs(t,{placement:de,boundary:d,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:y}):de)},[]),M=t.rects.reference,T=t.rects.popper,R=new Map,j=!0,L=S[0],I=0;I<S.length;I++){var G=S[I],V=SC(G),O=Qq(G)===Xq,z=[kg,tA].indexOf(V)>=0,W=z?"width":"height",K=koe(t,{placement:G,boundary:d,rootBoundary:p,altBoundary:h,padding:c}),J=z?O?rA:Eg:O?tA:kg;M[W]>T[W]&&(J=XHe(J));var Y=XHe(J),Q=[];if(o&&Q.push(K[V]<=0),l&&Q.push(K[J]<=0,K[Y]<=0),Q.every(function(oe){return oe})){L=G,j=!1;break}R.set(G,Q)}if(j)for(var X=g?3:1,re=function(oe){var de=S.find(function(se){var ge=R.get(se);if(ge)return ge.slice(0,oe).every(function(pe){return pe})});if(de)return L=de,"break"},ie=X;ie>0;ie--){var Z=re(ie);if(Z==="break")break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}}const fRs={name:"flip",enabled:!0,phase:"main",fn:hRs,requiresIfExists:["offset"],data:{_skip:!1}};function SLr(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function FLr(e){return[kg,rA,tA,Eg].some(function(t){return e[t]>=0})}function mRs(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=koe(t,{elementContext:"reference"}),l=koe(t,{altBoundary:!0}),u=SLr(s,n),c=SLr(l,a,o),d=FLr(u),p=FLr(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}const gRs={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:mRs};function xRs(e,t,r){var n=SC(e),a=[Eg,kg].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],l=o[1];return s=s||0,l=(l||0)*a,[Eg,rA].indexOf(n)>=0?{x:l,y:s}:{x:s,y:l}}function yRs(e){var t=e.state,r=e.options,n=e.name,a=r.offset,o=a===void 0?[0,0]:a,s=mRn.reduce(function(d,p){return d[p]=xRs(p,t.rects,o),d},{}),l=s[t.placement],u=l.x,c=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=s}const vRs={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yRs};function ARs(e){var t=e.state,r=e.name;t.modifiersData[r]=DRn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const bRs={name:"popperOffsets",enabled:!0,phase:"read",fn:ARs,data:{}};function DRs(e){return e==="x"?"y":"x"}function wRs(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,l=s===void 0?!1:s,u=r.boundary,c=r.rootBoundary,d=r.altBoundary,p=r.padding,h=r.tether,f=h===void 0?!0:h,g=r.tetherOffset,y=g===void 0?0:g,v=koe(t,{boundary:u,rootBoundary:c,padding:p,altBoundary:d}),A=SC(t.placement),b=Qq(t.placement),E=!b,S=UUt(A),M=DRs(S),T=t.modifiersData.popperOffsets,R=t.rects.reference,j=t.rects.popper,L=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,I=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),G=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(T){if(o){var O,z=S==="y"?kg:Eg,W=S==="y"?tA:rA,K=S==="y"?"height":"width",J=T[S],Y=J+v[z],Q=J-v[W],X=f?-j[K]/2:0,re=b===Xq?R[K]:j[K],ie=b===Xq?-j[K]:-R[K],Z=t.elements.arrow,oe=f&&Z?WUt(Z):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:yRn(),se=de[z],ge=de[W],pe=Jne(0,R[K],oe[K]),ce=E?R[K]/2-X-pe-se-I.mainAxis:re-pe-se-I.mainAxis,Ae=E?-R[K]/2+X+pe+ge+I.mainAxis:ie+pe+ge+I.mainAxis,be=t.elements.arrow&&xce(t.elements.arrow),De=be?S==="y"?be.clientTop||0:be.clientLeft||0:0,me=(O=G==null?void 0:G[S])!=null?O:0,ve=J+ce-me-De,je=J+Ae-me,qe=Jne(f?sKe(Y,ve):Y,J,f?KI(Q,je):Q);T[S]=qe,V[S]=qe-J}if(l){var Qe,Ye=S==="x"?kg:Eg,Ge=S==="x"?tA:rA,Je=T[M],ut=M==="y"?"height":"width",Ke=Je+v[Ye],Ue=Je-v[Ge],ct=[kg,Eg].indexOf(A)!==-1,mt=(Qe=G==null?void 0:G[M])!=null?Qe:0,vt=ct?Ke:Je-R[ut]-j[ut]-mt+I.altAxis,$=ct?Je+R[ut]+j[ut]-mt-I.altAxis:Ue,le=f&&ct?XTs(vt,Je,$):Jne(f?vt:Ke,Je,f?$:Ue);T[M]=le,V[M]=le-Je}t.modifiersData[n]=V}}const CRs={name:"preventOverflow",enabled:!0,phase:"main",fn:wRs,requiresIfExists:["offset"]};function kRs(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ERs(e){return e===ty(e)||!Vv(e)?KUt(e):kRs(e)}function SRs(e){var t=e.getBoundingClientRect(),r=Yq(t.width)/e.offsetWidth||1,n=Yq(t.height)/e.offsetHeight||1;return r!==1||n!==1}function FRs(e,t,r){r===void 0&&(r=!1);var n=Vv(t),a=Vv(t)&&SRs(t),o=oB(t),s=Jq(e,a,r),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((qC(t)!=="body"||XUt(o))&&(l=ERs(t)),Vv(t)?(u=Jq(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=qUt(o))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function MRs(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!r.has(l)){var u=t.get(l);u&&a(u)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),n}function BRs(e){var t=MRs(e);return GTs.reduce(function(r,n){return r.concat(t.filter(function(a){return a.phase===n}))},[])}function TRs(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function RRs(e){var t=e.reduce(function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var MLr={placement:"bottom",modifiers:[],strategy:"absolute"};function BLr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function PRs(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?MLr:a;return function(s,l,u){u===void 0&&(u=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},MLr,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,h={state:c,setOptions:function(y){var v=typeof y=="function"?y(c.options):y;g(),c.options=Object.assign({},o,c.options,v),c.scrollParents={reference:eL(s)?Qne(s):s.contextElement?Qne(s.contextElement):[],popper:Qne(l)};var A=BRs(RRs([].concat(n,c.options.modifiers)));return c.orderedModifiers=A.filter(function(b){return b.enabled}),f(),h.update()},forceUpdate:function(){if(!p){var y=c.elements,v=y.reference,A=y.popper;if(BLr(v,A)){c.rects={reference:FRs(v,xce(A),c.options.strategy==="fixed"),popper:WUt(A)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(j){return c.modifiersData[j.name]=Object.assign({},j.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var E=c.orderedModifiers[b],S=E.fn,M=E.options,T=M===void 0?{}:M,R=E.name;typeof S=="function"&&(c=S({state:c,options:T,name:R,instance:h})||c)}}}},update:TRs(function(){return new Promise(function(y){h.forceUpdate(),y(c)})}),destroy:function(){g(),p=!0}};if(!BLr(s,l))return h;h.setOptions(u).then(function(y){!p&&u.onFirstUpdate&&u.onFirstUpdate(y)});function f(){c.orderedModifiers.forEach(function(y){var v=y.name,A=y.options,b=A===void 0?{}:A,E=y.effect;if(typeof E=="function"){var S=E({state:c,name:v,instance:h,options:b}),M=function(){};d.push(S||M)}})}function g(){d.forEach(function(y){return y()}),d=[]}return h}}var jRs=[nRs,bRs,tRs,UTs,vRs,fRs,CRs,ZTs,gRs],IRs=PRs({defaultModifiers:jRs});function Zq(e){var t;const{elementType:r,externalSlotProps:n,ownerState:a,skipResolvingSlotProps:o=!1,...s}=e,l=o?{}:sTn(n,a),{props:u,internalRef:c}=lTn({...s,externalSlotProps:l}),d=_v(c,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return oTn(r,{...u,ref:d},a)}function NRs(e){return typeof e=="function"?e():e}const LRs=P.forwardRef(function(e,t){const{children:r,container:n,disablePortal:a=!1}=e,[o,s]=P.useState(null),l=BM(P.isValidElement(r)?zrn(r):null,t);if(TM(()=>{a||s(NRs(n)||document.body)},[n,a]),TM(()=>{if(o&&!a)return Skr(t,o),()=>{Skr(t,null)}},[t,o,a]),a){if(P.isValidElement(r)){const u={ref:l};return P.cloneElement(r,u)}return r}return o&&cp.createPortal(r,o)}),wRn=LRs;function ORs(e){return Is("MuiPopper",e)}as("MuiPopper",["root"]);function zRs(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function eTt(e){return typeof e=="function"?e():e}function HRs(e){return e.nodeType!==void 0}const GRs=e=>{const{classes:t}=e;return Ns({root:["root"]},ORs,t)},VRs={},WRs=P.forwardRef(function(e,t){const{anchorEl:r,children:n,direction:a,disablePortal:o,modifiers:s,open:l,placement:u,popperOptions:c,popperRef:d,slotProps:p={},slots:h={},TransitionProps:f,ownerState:g,...y}=e,v=P.useRef(null),A=BM(v,t),b=P.useRef(null),E=BM(b,d),S=P.useRef(E);TM(()=>{S.current=E},[E]),P.useImperativeHandle(d,()=>b.current,[]);const M=zRs(u,a),[T,R]=P.useState(M),[j,L]=P.useState(eTt(r));P.useEffect(()=>{b.current&&b.current.forceUpdate()}),P.useEffect(()=>{r&&L(eTt(r))},[r]),TM(()=>{if(!j||!l)return;const z=J=>{R(J.placement)};let W=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:J})=>{z(J)}}];s!=null&&(W=W.concat(s)),c&&c.modifiers!=null&&(W=W.concat(c.modifiers));const K=IRs(j,v.current,{placement:M,...c,modifiers:W});return S.current(K),()=>{K.destroy(),S.current(null)}},[j,o,s,l,c,M]);const I={placement:T};f!==null&&(I.TransitionProps=f);const G=GRs(e),V=h.root??"div",O=Zq({elementType:V,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:A},ownerState:e,className:G.root});return ee.jsx(V,{...O,children:typeof n=="function"?n(I):n})}),URs=P.forwardRef(function(e,t){const{anchorEl:r,children:n,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=VRs,popperRef:h,style:f,transition:g=!1,slotProps:y={},slots:v={},...A}=e,[b,E]=P.useState(!0),S=()=>{E(!1)},M=()=>{E(!0)};if(!l&&!c&&(!g||b))return null;let T;if(a)T=a;else if(r){const L=eTt(r);T=L&&HRs(L)?$2(L).body:$2(null).body}const R=!c&&l&&(!g||b)?"none":void 0,j=g?{in:c,onEnter:S,onExited:M}:void 0;return ee.jsx(wRn,{disablePortal:s,container:T,children:ee.jsx(WRs,{anchorEl:r,direction:o,disablePortal:s,modifiers:u,ref:t,open:g?!b:c,placement:d,popperOptions:p,popperRef:h,slotProps:y,slots:v,...A,style:{position:"fixed",top:0,left:0,display:R,...f},TransitionProps:j,children:n})})}),KRs=URs,qRs=Gr(KRs,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),XRs=P.forwardRef(function(e,t){const r=sce(),n=Zs({props:e,name:"MuiPopper"}),{anchorEl:a,component:o,components:s,componentsProps:l,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:g,popperRef:y,transition:v,slots:A,slotProps:b,...E}=n,S=(A==null?void 0:A.root)??(s==null?void 0:s.Root),M={anchorEl:a,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:h,placement:f,popperOptions:g,popperRef:y,transition:v,...E};return ee.jsx(qRs,{as:o,direction:r?"rtl":"ltr",slots:{root:S},slotProps:b??l,...M,ref:t})}),CRn=XRs;function YRs(e){return Is("MuiTooltip",e)}const JRs=as("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Cd=JRs;function QRs(e){return Math.round(e*1e5)/1e5}const ZRs=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:o}=e,s={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Ga(o.split("-")[0])}`],arrow:["arrow"]};return Ns(s,YRs,t)},_Rs=Gr(CRn,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(Al(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${Cd.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Cd.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Cd.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${Cd.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Cd.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${Cd.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Cd.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${Cd.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),$Rs=Gr("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ga(r.placement.split("-")[0])}`]]}})(Al(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Vp(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${Cd.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${Cd.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${Cd.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${Cd.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${QRs(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${Cd.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${Cd.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${Cd.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${Cd.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${Cd.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${Cd.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${Cd.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${Cd.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Cd.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${Cd.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),ePs=Gr("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(Al(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Vp(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ive=!1;const TLr=new x6n;let bee={x:0,y:0};function ove(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const tPs=P.forwardRef(function(e,t){const r=Zs({props:e,name:"MuiTooltip"}),{arrow:n=!1,children:a,classes:o,components:s={},componentsProps:l={},describeChild:u=!1,disableFocusListener:c=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:h=!1,enterDelay:f=100,enterNextDelay:g=0,enterTouchDelay:y=700,followCursor:v=!1,id:A,leaveDelay:b=0,leaveTouchDelay:E=1500,onClose:S,onOpen:M,open:T,placement:R="bottom",PopperComponent:j,PopperProps:L={},slotProps:I={},slots:G={},title:V,TransitionComponent:O,TransitionProps:z,...W}=r,K=P.isValidElement(a)?a:ee.jsx("span",{children:a}),J=wO(),Y=sce(),[Q,X]=P.useState(),[re,ie]=P.useState(null),Z=P.useRef(!1),oe=p||v,de=ZW(),se=ZW(),ge=ZW(),pe=ZW(),[ce,Ae]=F6t({controlled:T,default:!1,name:"Tooltip",state:"open"});let be=ce;const De=lce(A),me=P.useRef(),ve=B3(()=>{me.current!==void 0&&(document.body.style.WebkitUserSelect=me.current,me.current=void 0),pe.clear()});P.useEffect(()=>ve,[ve]);const je=qr=>{TLr.clear(),ive=!0,Ae(!0),M&&!be&&M(qr)},qe=B3(qr=>{TLr.start(800+b,()=>{ive=!1}),Ae(!1),S&&be&&S(qr),de.start(J.transitions.duration.shortest,()=>{Z.current=!1})}),Qe=qr=>{Z.current&&qr.type!=="touchstart"||(Q&&Q.removeAttribute("title"),se.clear(),ge.clear(),f||ive&&g?se.start(ive?g:f,()=>{je(qr)}):je(qr))},Ye=qr=>{se.clear(),ge.start(b,()=>{qe(qr)})},[,Ge]=P.useState(!1),Je=qr=>{XUe(qr.target)||(Ge(!1),Ye(qr))},ut=qr=>{Q||X(qr.currentTarget),XUe(qr.target)&&(Ge(!0),Qe(qr))},Ke=qr=>{Z.current=!0;const Oe=K.props;Oe.onTouchStart&&Oe.onTouchStart(qr)},Ue=qr=>{Ke(qr),ge.clear(),de.clear(),ve(),me.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",pe.start(y,()=>{document.body.style.WebkitUserSelect=me.current,Qe(qr)})},ct=qr=>{K.props.onTouchEnd&&K.props.onTouchEnd(qr),ve(),ge.start(E,()=>{qe(qr)})};P.useEffect(()=>{if(!be)return;function qr(Oe){Oe.key==="Escape"&&qe(Oe)}return document.addEventListener("keydown",qr),()=>{document.removeEventListener("keydown",qr)}},[qe,be]);const mt=_v(mce(K),X,t);!V&&V!==0&&(be=!1);const vt=P.useRef(),$=qr=>{const Oe=K.props;Oe.onMouseMove&&Oe.onMouseMove(qr),bee={x:qr.clientX,y:qr.clientY},vt.current&&vt.current.update()},le={},fe=typeof V=="string";u?(le.title=!be&&fe&&!d?V:null,le["aria-describedby"]=be?De:null):(le["aria-label"]=fe?V:null,le["aria-labelledby"]=be&&!fe?De:null);const Re={...le,...W,...K.props,className:ri(W.className,K.props.className),onTouchStart:Ke,ref:mt,...v?{onMouseMove:$}:{}},ze={};h||(Re.onTouchStart=Ue,Re.onTouchEnd=ct),d||(Re.onMouseOver=ove(Qe,Re.onMouseOver),Re.onMouseLeave=ove(Ye,Re.onMouseLeave),oe||(ze.onMouseOver=Qe,ze.onMouseLeave=Ye)),c||(Re.onFocus=ove(ut,Re.onFocus),Re.onBlur=ove(Je,Re.onBlur),oe||(ze.onFocus=ut,ze.onBlur=Je));const _e={...r,isRtl:Y,arrow:n,disableInteractive:oe,placement:R,PopperComponentProp:j,touch:Z.current},Me=typeof I.popper=="function"?I.popper(_e):I.popper,dt=P.useMemo(()=>{var qr,Oe;let Ve=[{name:"arrow",enabled:!!re,options:{element:re,padding:4}}];return(qr=L.popperOptions)!=null&&qr.modifiers&&(Ve=Ve.concat(L.popperOptions.modifiers)),(Oe=Me==null?void 0:Me.popperOptions)!=null&&Oe.modifiers&&(Ve=Ve.concat(Me.popperOptions.modifiers)),{...L.popperOptions,...Me==null?void 0:Me.popperOptions,modifiers:Ve}},[re,L.popperOptions,Me==null?void 0:Me.popperOptions]),Nt=ZRs(_e),qt=typeof I.transition=="function"?I.transition(_e):I.transition,Ot={slots:{popper:s.Popper,transition:s.Transition??O,tooltip:s.Tooltip,arrow:s.Arrow,...G},slotProps:{arrow:I.arrow??l.arrow,popper:{...L,...Me??l.popper},tooltip:I.tooltip??l.tooltip,transition:{...z,...qt??l.transition}}},[Kt,At]=Zl("popper",{elementType:_Rs,externalForwardedProps:Ot,ownerState:_e,className:ri(Nt.popper,L==null?void 0:L.className)}),[Et,Ze]=Zl("transition",{elementType:SUt,externalForwardedProps:Ot,ownerState:_e}),[$t,fr]=Zl("tooltip",{elementType:$Rs,className:Nt.tooltip,externalForwardedProps:Ot,ownerState:_e}),[Kr,an]=Zl("arrow",{elementType:ePs,className:Nt.arrow,externalForwardedProps:Ot,ownerState:_e,ref:ie});return ee.jsxs(P.Fragment,{children:[P.cloneElement(K,Re),ee.jsx(Kt,{as:j??CRn,placement:R,anchorEl:v?{getBoundingClientRect:()=>({top:bee.y,left:bee.x,right:bee.x,bottom:bee.y,width:0,height:0})}:Q,popperRef:vt,open:Q?be:!1,id:De,transition:!0,...ze,...At,popperOptions:dt,children:({TransitionProps:qr})=>ee.jsx(Et,{timeout:J.transitions.duration.shorter,...qr,...Ze,children:ee.jsxs($t,{...fr,children:[V,n?ee.jsx(Kr,{...an}):null]})})})]})}),kRn=tPs,VF=({children:e,...t})=>ee.jsx(kRn,{...t,children:e}),rPs=ho(ee.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined"),lKe=ho(ee.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"}),"Edit"),nPs=ho(ee.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3zm-3-7V3.5L18.5 9z"}),"NoteAdd"),ADt="0",aPs=Ka(Pu)({textTransform:"none",display:"flex",alignItems:"center",gap:"4px",border:"none",background:"transparent",cursor:"pointer",padding:"3px 5px",borderRadius:"6px",transition:"background 0.2s","&:hover":{background:"rgba(255,255,255,0.13)"}}),zy=Ka(Pu,{shouldForwardProp:e=>e!=="colorVariant"})(({colorVariant:e})=>({padding:"4px",minWidth:"auto",...e==="primary"&&{backgroundColor:"rgb(66, 30, 161)","&:hover":{backgroundColor:"rgba(66, 30, 161, 0.7)"}},...e==="secondary"&&{backgroundColor:"rgba(255, 255, 255, 0.10)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.20)"}},...e==="ghost"&&{backgroundColor:"transparent","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.10)"}},"& .MuiButton-text, & .MuiButton-containedText":{color:"rgba(255,255,255,1)",fontWeight:"500",textShadow:"0px 0px 15px rgba(255, 255, 255, 0.3)",boxShadow:"unset",minWidth:"inherit",border:"none !important",flexShrink:0},"& .MuiButton-text:hover, & .MuiButton-containedText:hover":{color:"#E0E3F4",border:"1px",borderRadius:"15px",boxShadow:"unset"},"& .MuiButton-text.Mui-disabled":{color:"rgba(255,255,255,1)",opacity:.5}})),iPs=e=>{const{currentSubdomain:t}=uce(),{chatBotsection:r}=gm(),{extraMeta:n,projectName:a,projectPages:o,isProjectDataLoading:s,pinStatus:l,onPin:u,onClose:c,currentWorkspaceView:d,onEditModeToggle:p,onCodeEditorToggle:h,onPreviewToggle:f,deviceType:g,onDeviceTypeChange:y,selectedTab:v,onChatTabClick:A,onComponentsTabClick:b,onThemeTabClick:E,onPublishTabClick:S,onPageClick:M,settingsStatus:T,onSettingsClick:R}=e,{isLaptopUp:j}=cRn(),L=$n(ce=>ce.setSelectedFile),[I,G]=P.useState(a),[V,O]=P.useState(!1),{APIHandler:z,setProjectMetadata:W,setSelectedComponentId:K}=Ul(),[J,Y]=P.useState(!1),[Q,X]=P.useState(null),re=!!Q,ie=Ua(),{pagePath:Z=""}=sA(),oe=o.find(ce=>ce.path===Z)??o.find(ce=>ce.id===ADt),{isFeatureEnabled:de}=hRn(),se=ce=>{G(ce.target.value)},ge=ce=>{var Ae;if(L(""),K(""),X(null),z6n(ce),!ce){M();return}if(ce===(oe==null?void 0:oe.id))return;if(ce===ADt){A(),ie.push(`${Od.myApps}/${n==null?void 0:n.project_name}`);return}const be=((Ae=o.find(De=>De.id===ce))==null?void 0:Ae.path)??"";ie.push(`${Od.myApps}/${n==null?void 0:n.project_name}/${be}`)},pe=async()=>{var ce;if(V){if(I===(n==null?void 0:n.application_name)){O(!1);return}if(((ce=I==null?void 0:I.trim())==null?void 0:ce.length)===0){G(a),O(!1);return}Y(!0),O(!1);try{await z.updateApplicationMetadata((n==null?void 0:n.project_name)||"",I,(n==null?void 0:n.application_description)||"",(n==null?void 0:n.application_category)||""),W(Ae=>({...Ae,extraMeta:{...Ae==null?void 0:Ae.extraMeta,application_name:I}}))}catch(Ae){G(a),console.error("Error saving project name",Ae)}finally{Y(!1)}}};return ee.jsx(ee.Fragment,{children:ee.jsxs(xt,{sx:{display:"flex",flexDirection:"column",gap:2,padding:"12px 8px 12px"},children:[ee.jsxs(xt,{sx:{display:"flex",flexDirection:"row",gap:"4px",alignItems:"center"},children:[ee.jsx(xt,{sx:{fontWeight:"500",minWidth:"100px",fontSize:"14px",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:J?"wait":"text",...V&&{flexGrow:1},...!V&&{"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:"4px",padding:"2px 4px",margin:"-2px -4px"}}},children:V?ee.jsx("input",{autoFocus:!0,name:"projectName",type:"text",style:{width:"100%",minWidth:"100px",display:"flex",alignItems:"center",columnGap:"0.25rem",borderRadius:"8px",background:"rgba(255, 255, 255, 0.07)",border:"0.5px solid rgba(255, 255, 255, 0.34)",padding:"0.375rem 0.5rem"},value:I,onChange:se,onBlur:pe,onKeyDown:ce=>{ce.key==="Enter"&&pe(),ce.key==="Escape"&&(G(a),O(!1))}}):ee.jsx("span",{style:{cursor:J?"wait":"text",minWidth:"100px",width:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",...oe&&{maxWidth:"100px"}},role:"button",tabIndex:0,onKeyDown:ce=>{(ce.key==="Enter"||ce.key===" ")&&O(!0)},onClick:()=>{O(!0)},children:I})}),!V&&ee.jsxs(ee.Fragment,{children:[(oe||s)&&ee.jsxs(ee.Fragment,{children:[ee.jsx("span",{style:{marginLeft:"4px",fontSize:"14px",fontWeight:"500"},children:"/"}),ee.jsxs(xt,{children:[ee.jsxs(aPs,{loading:s,"aria-controls":re?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":re?"true":void 0,onClick:ce=>{X(ce.currentTarget)},children:[ee.jsx("span",{style:{fontSize:"14px",color:"white",lineHeight:"normal",maxWidth:"100px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:oe==null?void 0:oe.name}),!s&&ee.jsx(rPs,{fontSize:"small",sx:{color:"rgba(255,255,255,1)",height:"16px",width:"16px"}})]}),ee.jsxs(ek,{anchorEl:Q,open:re,onClose:()=>X(null),sx:{"& .MuiPaper-root":{background:"rgba(30, 30, 48, 0)",backdropFilter:"blur(8px)",WebkitBackdropFilter:"blur(8px)",borderRadius:"8px"}},children:[o.map(ce=>ee.jsxs(Mn,{sx:{display:"flex",flexDirection:"row",gap:1,pr:"8px","&:hover":{background:"rgba(255, 255, 255, 0.2)"}},onClick:()=>ge(ce.id),children:[ee.jsx("span",{style:{fontSize:"14px",lineHeight:"31px",flexGrow:1,color:"white"},children:ce.name}),ce.id!==ADt&&ee.jsx(Yo,{sx:{color:"white","&:hover":{background:"rgba(99, 5, 104, 0.38)"}},size:"small",onClick:()=>M(ce.id),children:ee.jsx(lKe,{})})]},ce.id)),ee.jsxs(Mn,{sx:{color:"white",display:"flex",flexDirection:"row",gap:1,pr:"8px","&:hover":{background:"rgba(255, 255, 255, 0.2)"}},onClick:()=>ge(),children:["Add New Page",ee.jsx("div",{style:{height:"31px",width:"31px",display:"flex",alignItems:"center",justifyContent:"center"},children:ee.jsx(nPs,{})})]})]})]})]}),ee.jsx(xt,{children:ee.jsx(VF,{title:t?"Visit Live App":`${r===du.Publish?"C":'Open the "Publish" tab, c'}reate a checkpoint and publish it in a subdomain to see it live on the web.`,children:ee.jsx(zy,{disableRipple:!0,colorVariant:"ghost",onClick:()=>{if(t){window.open(`https://${t}.dream.space`,"_blank");return}e3(du.Publish)},children:ee.jsx(Yun,{fontSize:"small",sx:{color:"rgba(255,255,255,1)",height:"16px",width:"16px"}})})})})]}),ee.jsxs(xt,{sx:{display:"flex",flexDirection:"row",gap:1,marginLeft:"auto"},children:[de("ENABLE_THIRD_PARTY_API_SUPPORT")&&ee.jsx(VF,{title:"Settings",placement:"bottom",children:ee.jsx(zy,{disableRipple:!0,colorVariant:T?"primary":"ghost",sx:{fontSize:"18px"},onClick:R,children:ee.jsx(TVe,{fontSize:"inherit",sx:{color:"rgba(255,255,255,1)"}})})}),j&&ee.jsx(VF,{title:"Pin panel",placement:"bottom",children:ee.jsx(zy,{disableRipple:!0,colorVariant:"ghost",sx:{fontSize:"18px"},onClick:u,children:l?ee.jsx(S7i,{fontSize:"inherit",sx:{transform:"rotate(45deg)",color:"rgba(255,255,255,1)"}}):ee.jsx(F7i,{fontSize:"inherit",sx:{transform:"rotate(45deg)",color:"rgba(255,255,255,1)"}})})}),ee.jsx(zy,{disableRipple:!0,colorVariant:"ghost",sx:{fontSize:"18px"},onClick:c,children:ee.jsx(w7i,{fontSize:"inherit",sx:{color:"rgba(255,255,255,1)"}})})]})]}),ee.jsxs(xt,{sx:{display:"flex",flexDirection:"row",gap:"6px"},children:[ee.jsxs(xt,{sx:{display:"flex",flexDirection:"row",gap:0},children:[ee.jsx(VF,{title:"Canvas Editor",placement:"bottom",children:ee.jsx(zy,{disableRipple:!0,colorVariant:d===lp.CanvasEditor||d===null?"primary":"secondary",sx:{width:{xs:"25px",sm:"25px",md:"30px",lg:"35px"},height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"14px",sm:"14px",md:"18px",lg:"18px"},borderTop:"2px solid rgba(255,255,255, 0.1)",borderLeft:"2px solid rgba(255,255,255, 0.1)",borderBottom:"2px solid rgba(255,255,255, 0.1)",borderRadius:"5px 0px 0px 5px",outlineOffset:"1px"},onClick:p,children:ee.jsx(M7i,{fontSize:"inherit",sx:{color:"rgba(255,255,255,1)"}})})}),ee.jsx(VF,{title:"Site Preview",placement:"bottom",children:ee.jsx(zy,{disableRipple:!0,colorVariant:d===lp.CanvasPreview?"primary":"secondary",sx:{width:{xs:"25px",sm:"25px",md:"30px",lg:"35px"},height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"14px",sm:"14px",md:"18px",lg:"18px"},borderTop:"2px solid rgba(255,255,255, 0.1)",borderBottom:"2px solid rgba(255,255,255, 0.1)",borderRadius:"0px 0px 0px 0px",outlineOffset:"1px"},onClick:f,children:ee.jsx(B7i,{fontSize:"inherit",sx:{color:"rgba(255,255,255,1)"}})})}),ee.jsx(VF,{title:"Code Editor",placement:"bottom",children:ee.jsx(zy,{disableRipple:!0,colorVariant:d===lp.CodeEditor?"primary":"secondary",sx:{width:{xs:"25px",sm:"25px",md:"30px",lg:"35px"},height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"14px",sm:"14px",md:"18px",lg:"18px"},borderTop:"2px solid rgba(255,255,255, 0.1)",borderBottom:"2px solid rgba(255,255,255, 0.1)",borderRight:"2px solid rgba(255,255,255, 0.1)",borderRadius:"0px 5px 5px 0px",outlineOffset:"1px"},onClick:h,children:ee.jsx("img",{src:iws,alt:"code editor",style:{width:"18px",height:"18px"}})})})]}),ee.jsx(xt,{children:ee.jsx(VF,{title:`Switch to ${g==="mobile"?"Desktop":"Mobile"} View`,placement:"bottom",children:ee.jsx(zy,{sx:{width:"25px",height:{xs:"25px",xl:"28px"},fontSize:"14px",border:"2px solid rgba(255,255,255, 0.1)",borderRadius:"5px",outlineOffset:"1px"},onClick:()=>y(g==="mobile"?"desktop":"mobile"),children:g==="mobile"?ee.jsx(STs,{fontSize:"inherit",sx:{color:"rgba(255,255,255,1)"}}):ee.jsx(FTs,{fontSize:"inherit",sx:{color:"rgba(255,255,255,1)"}})})})}),ee.jsx(D3,{orientation:"vertical",flexItem:!0,sx:{mx:0,bgcolor:"rgba(255,255,255,0.5)"}}),ee.jsxs(xt,{sx:{display:"flex",flexBasis:"flex-1",flexDirection:"row",alignItems:"center",width:"100%",gap:"2px",justifyContent:"space-between",maxWidth:"242px"},children:[ee.jsx(zy,{disableRipple:!0,colorVariant:v===du.Chat?"primary":"secondary",sx:{height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"9px",sm:"9px",md:"9px",lg:"9px",xl:"10px"},px:{xs:"6px",sm:"6px",md:"6px",lg:"6px",xl:"8px"},color:"white",textTransform:"none"},onClick:A,children:"Chat"}),ee.jsx(zy,{disableRipple:!0,colorVariant:v===du.Components?"primary":"secondary",sx:{height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"9px",sm:"9px",md:"9px",lg:"9px",xl:"10px"},px:{xs:"6px",sm:"6px",md:"6px",lg:"6px",xl:"8px"},color:"white",textTransform:"none"},onClick:b,children:"Components"}),ee.jsx(zy,{disableRipple:!0,colorVariant:v===du.Theme?"primary":"secondary",sx:{height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"9px",sm:"9px",md:"9px",lg:"9px",xl:"10px"},px:{xs:"6px",sm:"6px",md:"6px",lg:"6px",xl:"8px"},color:"white",textTransform:"none"},onClick:E,children:"Theme"}),ee.jsx(zy,{disableRipple:!0,colorVariant:v===du.Publish?"primary":"secondary",sx:{height:{xs:"25px",sm:"25px",md:"25px",lg:"25px",xl:"28px"},fontSize:{xs:"9px",sm:"9px",md:"9px",lg:"9px",xl:"10px"},px:{xs:"6px",sm:"6px",md:"6px",lg:"6px",xl:"8px"},color:"white",textTransform:"none"},onClick:S,children:"Publish"})]})]})]})})};var uu={};/**
|
|
15902
15902
|
* @license React
|
|
15903
15903
|
* react-is.production.js
|
|
15904
15904
|
*
|
|
@@ -46098,4 +46098,4 @@ ${r}
|
|
|
46098
46098
|
`,udc=()=>{const{height:e,headerHeight:t}=Ts(),r=e-t||500;return F.jsx(ldc,{height:r,children:F.jsx("main",{className:"mainContent",children:F.jsxs("div",{className:"container",children:[F.jsx("h1",{children:"Dreamspace Terms of Service"}),F.jsx("p",{className:"last-updated",children:F.jsx("strong",{children:"Last Updated: July 7, 2025"})}),F.jsxs("section",{children:[F.jsx("p",{children:'Welcome to Dreamspace, developed and operated by MakeInfinite Labs ("Dreamspace," "we," "us," or "our"). By accessing or using our website, development tools, smart contract services, or any related content, software, or APIs (collectively, the "Platform"), you agree to comply with and be bound by these Terms of Service (the "Terms") and our Privacy Policy.'}),F.jsxs("p",{children:["Please read these Terms carefully before using the Platform."," ",F.jsx("strong",{children:"If you do not agree to these Terms, you may not access or use the Platform."})]})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"Acceptance of Terms"}),F.jsx("p",{children:"By using Dreamspace, you confirm that you:"}),F.jsxs("ul",{children:[F.jsx("li",{children:"Have read, understood, and agreed to these Terms."}),F.jsx("li",{children:"Agree to our Privacy Policy."}),F.jsx("li",{children:"Will comply with all applicable laws and regulations."}),F.jsx("li",{children:"Are at least 18 years old and legally able to enter into a binding contract."})]}),F.jsx("p",{children:'If you are using the Platform on behalf of an organization, you represent that you have authority to bind that organization, and all references to "you" or "your" apply to both you as an individual and the organization you represent.'}),F.jsx("p",{children:"SECTION 15 CONTAINS A WAIVER OF ANY RIGHT TO PARTICIPATE IN A CLASS ACTION AS WELL AS A MANDATORY ARBITRATION CLAUSE THAT GOVERNS RESOLUTION OF CERTAIN DISPUTES AND WAIVES YOUR RIGHT TO SUE IN COURT OR HAVE A TRIAL BY JURY."})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"1. License to Use the Platform"}),F.jsx("p",{children:"Subject to these Terms, Dreamspace grants you a limited, personal, non-exclusive, non-transferable, revocable license to access and use our Platform for lawful purposes, including smart contract development and deployment, as permitted by your subscription plan. This license is revocable at our discretion."})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"2. Eligibility and Compliance"}),F.jsx("h3",{children:"2.1 General Requirements"}),F.jsx("p",{children:"You represent and warrant that:"}),F.jsxs("ul",{children:[F.jsx("li",{children:"You are at least 18 years old;"}),F.jsx("li",{children:"You are not located in, or a citizen or resident of, any jurisdiction subject to comprehensive U.S. or international sanctions;"}),F.jsx("li",{children:"You are not listed on any U.S. or foreign government sanctions list (e.g., OFAC SDN List, EU Consolidated List);"}),F.jsx("li",{children:"You are not owned or controlled by any sanctioned individual or entity;"}),F.jsx("li",{children:"You have not previously been suspended or banned from using the Platform."})]}),F.jsx("h3",{children:"2.2 Restricted Territories"}),F.jsx("p",{children:"You may not use the Platform if you are in a jurisdiction where such use is prohibited by law or sanctions. We may implement technical restrictions (e.g., geoblocking, IP filtering) to enforce this. You agree not to bypass or attempt to bypass such restrictions."}),F.jsx("h3",{children:"2.3 Use on Behalf of Organizations"}),F.jsx("p",{children:"If you use the Platform on behalf of a legal entity, you confirm that you have authority to bind that entity to these Terms and that both you and the entity are jointly responsible for compliance."})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"3. Account Registration and Wallet Integration"}),F.jsx("p",{children:"You may be required to connect a third-party wallet (e.g., MetaMask) to authenticate and access certain Platform features. Wallets are used for both identity and transaction signing. You are solely responsible for managing your wallet credentials and maintaining security. You understand that Dreamspace does not control or store your private keys and cannot recover lost wallet access."})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"4. Intellectual Property Rights and Licensing"}),F.jsx("h3",{children:"4.1 Dreamspace IP"}),F.jsx("p",{children:"All rights, title, and interest in and to the Platform - including its architecture, design, codebase, algorithms, user interface, branding (including the Dreamspace name, logos, and domain names), documentation, and other original materials - are and will remain the exclusive property of MakeInfinite Labs and its licensors. These Terms do not grant you any rights or licenses in Dreamspace's intellectual property, except for the limited rights necessary to use the Platform in accordance with these Terms."}),F.jsx("h3",{children:"4.2 User Output and Licensing"}),F.jsx("p",{children:"Dreamspace does not claim ownership of the code, smart contracts, applications, or other outputs that you generate using the Platform. However, by using Dreamspace, you acknowledge and agree that:"}),F.jsxs("ul",{children:[F.jsxs("li",{children:["Any content created or generated within a miniapp project, including uploaded files, generated code, and chat messages that contribute to output, is automatically made public and is licensed under the",F.jsxs("a",{href:"https://www.apache.org/licenses/LICENSE-2.0",target:"_blank",rel:"noopener noreferrer",children:[" ","Apache 2.0 License"]}),"."]}),F.jsx("li",{children:"A LICENSE file applying the Apache 2.0 terms is programmatically included in every miniapp project."}),F.jsx("li",{children:"You are free to use, modify, distribute, and commercialize your output - subject to the terms of that license."})]}),F.jsx("p",{children:"You remain responsible for ensuring your output complies with applicable laws and does not infringe third-party rights."})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"5. User Content and Responsibility"}),F.jsx("p",{children:'You may upload or submit content to the Platform, including source code, images, fonts, video, text prompts, metadata, or other digital assets ("User Content"). You represent and warrant that:'}),F.jsxs("ul",{children:[F.jsx("li",{children:"You have all rights, licenses, and permissions necessary to upload and use such content;"}),F.jsx("li",{children:"Your content does not violate any law, infringe any third-party rights, or contain unlawful, abusive, defamatory, obscene, or otherwise objectionable material."})]}),F.jsx("p",{children:"You retain ownership of your uploaded content, but acknowledge that any content included in a miniapp project will be made publicly accessible and licensed under Apache 2.0 by default."}),F.jsx("p",{children:"Dreamspace does not monitor content but reserves the right to remove or restrict access to any content that violates these Terms or applicable law."})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"6. Public Content Visibility"}),F.jsxs("p",{children:["All miniapp projects, including uploaded assets (e.g., code, images) and chat interactions, are",F.jsx("strong",{children:" publicly accessible by design"}),". While Dreamspace does not actively publish this content, users with access to a project repository may view its full history. Do not upload confidential or sensitive information."]})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"7. Smart Contracts and User-Deployed Code"}),F.jsx("p",{children:'You are solely responsible for the development, deployment, and legality of any smart contract or decentralized application ("dApp") you build using Dreamspace. Dreamspace provides tools to assist with smart contract generation and deployment but does not deploy contracts, take custody of assets, or participate in any resulting transactions.'}),F.jsx("p",{children:"You acknowledge that:"}),F.jsxs("ul",{children:[F.jsx("li",{children:"Smart contracts and dApps created via Dreamspace are solely your property;"}),F.jsx("li",{children:"You bear full responsibility for ensuring that smart contracts and dApps comply with all applicable laws and regulations across jurisdictions;"}),F.jsx("li",{children:"You are solely responsible for auditing and testing any code you generate or import;"}),F.jsx("li",{children:"Dreamspace is not responsible for your use or misuse of blockchain applications, smart contracts, or associated content;"}),F.jsx("li",{children:"You are responsible for any blockchain fees, gas costs, or related charges incurred;"})]}),F.jsx("p",{children:"Dreamspace does not offer legal, financial, or regulatory advice."}),F.jsx("p",{children:"Dreamspace does not act as a 'publisher' or 'issuer' of any smart contracts or tokens created using the Platform."})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"8. Prohibited Uses"}),F.jsx("p",{children:"You agree not to misuse the Platform or use it in any manner that violates these Terms, applicable law, or the rights of others. Without limitation, you agree not to:"}),F.jsx("h3",{children:"Use the Platform in violation of any applicable laws or regulations, including but not limited to:"}),F.jsxs("ul",{children:[F.jsx("li",{children:"Economic sanctions, export control laws, or anti-money laundering (AML) obligations;"}),F.jsx("li",{children:"Securities, financial services, or consumer protection laws;"})]}),F.jsxs("ul",{className:"prohibited-list",children:[F.jsxs("li",{children:["Use the Platform to develop or deploy smart contracts that facilitate:",F.jsxs("ul",{children:[F.jsx("li",{children:"Fraud, financial scams, market manipulation, or unlawful token issuance;"}),F.jsx("li",{children:"Unregistered securities offerings or unlicensed financial services;"}),F.jsx("li",{children:"Money laundering, terrorist financing, or other illicit financial activity"})]})]}),F.jsx("li",{children:"Upload or deploy code that includes viruses, worms, Trojan horses, corrupted files, or other malicious software;"}),F.jsx("li",{children:"Attempt to probe, scan, penetrate, or test the vulnerability of the Platform, or circumvent any security or authentication measures;"}),F.jsx("li",{children:"Use the Platform to interfere with or disrupt networks, systems, or other users;"}),F.jsx("li",{children:"Access or attempt to access accounts, wallets, systems, or data without proper authorization;"}),F.jsx("li",{children:"Bypass, circumvent, or attempt to disable any technical restrictions, rate limits, or access controls."}),F.jsx("li",{children:"Upload, store, or transmit content that infringes or misappropriates any intellectual property or proprietary rights;"}),F.jsx("li",{children:"Submit or deploy content that is unlawful, abusive, harassing, defamatory, hateful, violent, obscene, or otherwise offensive;"}),F.jsx("li",{children:"Upload or deploy content that promotes discrimination, hate speech, or incites violence;"}),F.jsx("li",{children:"Misrepresent your identity, affiliation, or authorization to use the Platform;"}),F.jsx("li",{children:"Create or use multiple accounts to evade limitations, blocks, or suspensions;"}),F.jsx("li",{children:"Access or use the Platform if you are located in, or a citizen or resident of, a country or territory subject to comprehensive U.S. or international sanctions;"}),F.jsx("li",{children:"Use the Platform on behalf of a sanctioned individual or entity."})]}),F.jsx("p",{children:F.jsx("strong",{children:"Dreamspace reserves the right to investigate and take appropriate action — including immediate suspension, termination, or legal action — in response to any suspected violation of this section."})})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"9. Services and Pricing"}),F.jsx("p",{children:"Access to certain features of the Platform may require a paid subscription. Details regarding available plans, features, pricing, and billing cycles are published on our website and may be updated from time to time."}),F.jsxs("ul",{children:[F.jsxs("li",{children:[F.jsx("strong",{children:"Recurring Billing"}),": All paid subscriptions are billed on a recurring monthly basis unless explicitly canceled by the user prior to renewal."]}),F.jsxs("li",{children:[F.jsx("strong",{children:"Pricing Changes"}),": Dreamspace reserves the right to modify subscription tiers, features, or pricing at any time. Changes will be effective upon notice, which may be provided through the Platform, by email, or by other reasonable means."]}),F.jsxs("li",{children:[F.jsx("strong",{children:"No Proration"}),": Adjustments to plan tiers (upgrades or downgrades) will take effect in the following billing cycle unless otherwise stated. No partial refunds or credits will be issued for unused time within a billing cycle."]})]})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"10. Payment and Refund Policy"}),F.jsxs("ul",{children:[F.jsxs("li",{children:[F.jsx("strong",{children:"Final Sale"}),": All subscription fees and associated charges are final and non-refundable, except in cases of verified billing errors (e.g., duplicate charges or unauthorized transactions)."]}),F.jsxs("li",{children:[F.jsx("strong",{children:"Digital Nature"}),": Because access to Dreamspace services and tools begins immediately upon purchase, we do not offer refunds for any reason other than billing errors."]}),F.jsxs("li",{children:[F.jsx("strong",{children:"Payment Authorization"}),": By subscribing, you authorize Dreamspace (or its third-party payment processor) to charge your designated payment method on a recurring basis."]})]}),F.jsx("h3",{children:"Cancellation Policy"}),F.jsxs("ul",{children:[F.jsxs("li",{children:[F.jsx("strong",{children:"User-Initiated Cancellation"}),": You may cancel your subscription at any time via your account settings. Cancellation will take effect at the end of your current billing period."]}),F.jsxs("li",{children:[F.jsx("strong",{children:"No Refund for Cancellation"}),": Canceling your subscription does not entitle you to a refund or credit for any portion of the billing period already elapsed."]}),F.jsxs("li",{children:[F.jsx("strong",{children:"Expiration of Credits"}),": Any unused credits or allocations associated with a subscription plan will expire at the conclusion of the billing period and will not carry over."]})]})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"11. Disclaimer of Warranties"}),F.jsx("p",{className:"uppercase",children:'THE PLATFORM, INCLUDING BUT NOT LIMITED TO ALL CONTENT, FEATURES, TOOLS, TEMPLATES, SMART CONTRACT GENERATORS, AI-GENERATED OUTPUT, AND DEPLOYMENT FUNCTIONALITY, IS PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS, WITHOUT WARRANTIES OF ANY KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY.'}),F.jsx("p",{className:"uppercase",children:"TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, DREAMSPACE AND ITS AFFILIATES EXPRESSLY DISCLAIM ALL WARRANTIES, INCLUDING, BUT NOT LIMITED TO:"}),F.jsxs("ul",{children:[F.jsx("li",{children:"WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT;"}),F.jsx("li",{children:"WARRANTIES REGARDING THE ACCURACY, SECURITY, OR RELIABILITY OF CODE, SMART CONTRACTS, OR DEPLOYED OUTPUT;"}),F.jsx("li",{children:"WARRANTIES THAT THE PLATFORM OR GENERATED OUTPUT IS ERROR-FREE, SECURE, FREE OF MALWARE OR VULNERABILITIES, OR THAT DEPLOYMENTS WILL FUNCTION AS INTENDED;"}),F.jsx("li",{children:"WARRANTIES THAT ANY SMART CONTRACT, APPLICATION, OR DEPLOYED MATERIALS WILL BE COMPLIANT WITH ANY LAWS, REGULATIONS, OR INDUSTRY STANDARDS IN ANY JURISDICTION."})]}),F.jsx("p",{className:"uppercase",children:"YOU ACKNOWLEDGE THAT YOU ARE SOLELY RESPONSIBLE FOR REVIEWING, AUDITING, TESTING, AND VALIDATING ANY CODE OR SMART CONTRACTS GENERATED - INCLUDING THOSE GENERATED BY AI - DEPLOYED THROUGH THE PLATFORM. DREAMSPACE DOES NOT PROVIDE LEGAL, FINANCIAL, TAX, OR SECURITY AUDIT SERVICES. USE OF ANY GENERATED CODE IS AT YOUR OWN RISK"})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"12. Limitation of Liability"}),F.jsx("p",{className:"uppercase",children:"TO THE FULLEST EXTENT PERMITTED UNDER APPLICABLE LAW, IN NO EVENT SHALL DREAMSPACE, MAKEINFINITE LABS, OR THEIR RESPECTIVE OFFICERS, DIRECTORS, EMPLOYEES, AGENTS, AFFILIATES, SERVICE PROVIDERS, OR LICENSORS BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, EXEMPLARY, OR PUNITIVE DAMAGES, INCLUDING BUT NOT LIMITED TO LOSS OF PROFITS, LOSS OF DATA, SECURITY BREACHES, SMART CONTRACT FAILURES, BLOCKCHAIN FEES OR GAS COSTS, DEPLOYMENT ERRORS, OR BUSINESS INTERRUPTION, ARISING OUT OF OR RELATED TO YOUR USE OF OR INABILITY TO USE THE PLATFORM - EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES."}),F.jsx("p",{className:"uppercase",children:"WITHOUT LIMITING THE FOREGOING, IN NO EVENT SHALL DREAMSPACE'S TOTAL CUMULATIVE LIABILITY TO YOU FOR ALL CLAIMS ARISING OUT OF OR RELATED TO THESE TERMS OR THE PLATFORM EXCEED THE GREATER OF (I) THE FEES PAID BY YOU TO DREAMSPACE IN THE TWELVE (12) MONTHS IMMEDIATELY PRECEDING THE EVENT GIVING RISE TO THE CLAIM."}),F.jsx("p",{className:"uppercase",children:"THE LIMITATIONS OF THIS SECTION SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITED REMEDY."})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"13. Blockchain-Specific Risks"}),F.jsx("p",{className:"uppercase",children:"YOU UNDERSTAND AND ACKNOWLEDGE THAT DEPLOYMENTS TO PUBLIC BLOCKCHAINS ARE INHERENTLY RISKY AND IRREVERSIBLE. SMART CONTRACTS, ONCE DEPLOYED, MAY CONTAIN SECURITY FLAWS, VULNERABILITIES, OR ECONOMIC EXPLOITS THAT CANNOT BE UNDONE OR PATCHED."}),F.jsx("p",{className:"uppercase",children:"DREAMSPACE DOES NOT CONTROL THE OPERATION OF ANY BLOCKCHAIN NETWORK, NOR DOES IT GUARANTEE THE FUNCTIONALITY OR SUCCESS OF ANY SMART CONTRACT, TOKEN, OR APPLICATION DEPLOYED THROUGH THE PLATFORM. YOU BEAR FULL RESPONSIBILITY FOR ANY LOSSES INCURRED DUE TO CODE ERRORS, GAS FEES, TRANSACTION DELAYS, FORKS, NETWORK FAILURES, OR THIRD-PARTY ATTACKS."})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"14. Indemnification"}),F.jsx("p",{children:`To the maximum extent permitted by applicable law, you agree to fully indemnify, defend, and hold harmless Dreamspace, MakeInfinite Labs, and their respective affiliates, officers, directors, employees, contractors, agents, licensors, service providers, successors, and assigns (collectively, the "Indemnified Parties") from and against any and all actual or alleged claims, demands, actions, proceedings, investigations, damages, losses, liabilities, judgments, settlements, costs, and expenses (including reasonable attorneys' fees and court costs) arising out of or related to:`}),F.jsxs("ul",{children:[F.jsx("li",{children:"Your use of or access to the Platform, including any applications, smart contracts, or other code created, generated, imported, uploaded, or deployed through it;"}),F.jsx("li",{children:"Any actual or alleged violation by you of these Terms or any applicable law, regulation, or third-party rights (including intellectual property, data protection, financial, or blockchain-related laws);"}),F.jsx("li",{children:"Any content, data, code, or smart contract you provide, deploy, or distribute using the Platform;"}),F.jsx("li",{children:"Any economic loss, legal exposure, or reputational damage caused by your deployed contracts, applications, tokens, or interactions with blockchain protocols or third parties;"}),F.jsx("li",{children:"Any unauthorized or malicious use of the Platform or related services via your account or credentials, whether or not authorized by you."})]}),F.jsx("p",{children:"Dreamspace reserves the right, at its sole discretion and expense, to assume the exclusive defense and control of any matter otherwise subject to indemnification by you. You agree to cooperate fully in the defense of any such claim and not to settle any claim without Dreamspace's prior written consent. Your indemnification obligations will survive termination or expiration of these Terms and your use of the Platform"})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"15. Dispute Resolution and Arbitration"}),F.jsx("p",{children:"Please read this section carefully. It requires binding arbitration of most disputes and limits the ways in which relief may be sought. You may opt out of arbitration as explained below. This section prohibits class or representative actions or arbitrations."}),F.jsx("h3",{children:"15.1 No Representative Actions"}),F.jsx("p",{children:"You and Dreamspace agree that any dispute, claim, or controversy arising out of or relating to these Terms or the Platform will be resolved solely on an individual basis. Neither party shall bring or participate in any class, collective, consolidated, or representative proceeding or arbitration."}),F.jsx("h3",{children:"15.2 Arbitration of Disputes"}),F.jsx("p",{children:"Except for (a) small claims disputes, or (b) claims in which Dreamspace seeks injunctive or other equitable relief for the alleged unlawful use of intellectual property, unauthorized access to or misuse of the Platform, unauthorized deployment of smart contracts, violation of security protocols, or any other conduct that threatens the integrity, availability, or lawful operation of the Platform, you and Dreamspace waive the right to a jury trial and to resolve disputes in court. All other claims are subject to binding arbitration as described below."}),F.jsxs("p",{children:["Before initiating arbitration, both parties agree to attempt informal resolution. You must send a written notice of your claim to"," ",F.jsx("a",{href:"mailto:support@makeinfinite.com",children:"support@makeinfinite.com"})," that includes:"]}),F.jsxs("ul",{children:[F.jsx("li",{children:"Your name and contact information,"}),F.jsx("li",{children:"A clear description of your claim, and"}),F.jsx("li",{children:"The relief you are seeking."})]}),F.jsx("p",{children:"If the dispute is not resolved within thirty (30) days of receiving the notice, either party may initiate binding arbitration administered by JAMS or, under the limited circumstances set forth above, in court:"}),F.jsxs("ul",{children:[F.jsxs("li",{children:["For U.S. residents: under JAMS Consumer Arbitration Rules (See JAMS Consumer Rules,",F.jsxs("a",{href:"https://www.jamsadr.com/consumer-minimum-standards/",target:"_blank",rel:"noopener noreferrer",children:[" ","https://www.jamsadr.com/consumer-minimum-standards/"]}),")"]}),F.jsx("li",{children:"For non-U.S. residents: under JAMS International Arbitration Rules (or equivalent rules as applicable)."})]}),F.jsx("p",{children:"Location of arbitration:"}),F.jsxs("ul",{children:[F.jsx("li",{children:"U.S. residents: In your county of residence or remotely, by mutual agreement."}),F.jsx("li",{children:"Non-U.S. residents: Remotely via videoconference or in a mutually agreed jurisdiction."})]}),F.jsxs("p",{children:["The arbitration will be conducted in English before a single arbitrator. The JAMS rules are incorporated by reference and available at:",F.jsxs("a",{href:"https://www.jamsadr.com/rules-download",target:"_blank",rel:"noopener noreferrer",children:[" ","https://www.jamsadr.com/rules-download"]}),". You either acknowledge and agree that you have read and understood the JAMS Rules or waive your opportunity to read the JAMS Rules and waive any claim that the JAMS Rules are unfair or should not apply for any reason."]}),F.jsx("h3",{children:"15.3 Arbitration Fees"}),F.jsxs("ul",{children:[F.jsx("li",{children:"For claims initiated by you, you agree to pay the first $250 of the filing fee; Dreamspace will cover the remainder."}),F.jsx("li",{children:"For claims initiated by Dreamspace, we will pay all arbitration fees."}),F.jsx("li",{children:"Each party is responsible for its own attorneys' fees and costs unless the arbitrator determines otherwise."})]}),F.jsx("h3",{children:"15.4 Batch Arbitration"}),F.jsx("p",{children:"If 100 or more similar arbitration claims are filed against Dreamspace within a 30-day period by or with the assistance of the same firm(s) or organization(s), claims will be grouped into batches of up to 100 claims and processed together. Each batch will:"}),F.jsxs("ul",{children:[F.jsx("li",{children:"Be assigned one arbitrator,"}),F.jsx("li",{children:"Follow a consolidated procedural calendar, and"}),F.jsx("li",{children:"Result in a single decision and award."})]}),F.jsx("p",{children:"This is not a class arbitration. Disputes about batching will be resolved by a neutral administrative arbitrator appointed by JAMS, whose fees will be paid by Dreamspace."}),F.jsx("h3",{children:"15.5 FAA and Governing Law"}),F.jsx("p",{children:`You and Dreamspace agree that these Terms affect interstate commerce and that the enforceability of this Section 15 will be substantively and procedurally governed by the Federal Arbitration Act, 9 U.S.C. § 1, et seq. (the "FAA"), to the maximum extent permitted by applicable law. As specified by the FAA, these Terms and the JAMS Rules, the arbitrator will have exclusive authority to make all procedural and substantive decisions regarding any dispute and to grant any remedy that would otherwise be available in court, including the power to determine the question of arbitrability. The arbitrator may conduct only an individual arbitration and may not consolidate more than one individual's claims, preside over any type of class or representative proceeding or preside over any proceeding involving more than one individual.`}),F.jsx("h3",{children:"15.6 Confidentiality"}),F.jsx("p",{children:"All arbitration proceedings, documents, and awards shall remain confidential unless required by law or necessary to enforce an arbitration award. The arbitrator may impose further confidentiality measures as needed."}),F.jsx("h3",{children:"15.7 Time Limitation"}),F.jsx("p",{children:"Any claim under these Terms must be filed within one (1) year of when the claim arose, or it will be permanently barred."}),F.jsx("h3",{children:"15.8 Opt-Out of Arbitration"}),F.jsxs("p",{children:["You may opt out of arbitration within thirty (30) days of first accepting these Terms by emailing",F.jsx("a",{href:"mailto:support@makeinfinite.com",children:" support@makeinfinite.com"})," with your full name, physical address, and a clear statement that you are opting out. If you opt out, Section 16 (Governing Law and Jurisdiction) will apply to dispute resolution."]}),F.jsx("h3",{children:"15.9 Severability"}),F.jsx("p",{children:"If any portion of this Section 15 is found to be unenforceable or unlawful for any reason:"}),F.jsxs("ul",{children:[F.jsx("li",{children:"(a) the unenforceable provision shall be severed from these Terms;"}),F.jsx("li",{children:"(b) such severance shall not affect the remainder of Section 15 or the enforceability of individual arbitration for any remaining claims; and"}),F.jsx("li",{children:"(c) to the extent any claims must proceed on a class, collective, or representative basis, those claims shall be litigated in a court of competent jurisdiction and not in arbitration. The parties agree that litigation of such claims shall be stayed pending the outcome of any related individual arbitration."})]}),F.jsx("p",{children:"Furthermore, if any part of this Section 15 is found to prohibit an individual claim for public injunctive relief, that provision shall have no effect to the extent such relief is legally required to be available outside of arbitration. The remainder of this Section shall remain in full force and effect."})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"16. Governing Law and Jurisdiction"}),F.jsx("p",{children:"These Terms and any dispute arising out of or related to them will be governed by and construed in accordance with the laws of the State of Delaware, without regard to its conflict of law principles."}),F.jsx("p",{children:"Subject to Section 15 (Arbitration), you agree that any legal proceeding not resolved through arbitration must be brought exclusively in the state or federal courts located in Orange County, California, or New Castle County, Delaware, and you consent to the personal jurisdiction of those courts."})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"17. Changes to Terms"}),F.jsx("p",{children:"We reserve the right, at our sole discretion, to modify, amend, or replace these Terms at any time. Unless otherwise stated, updated Terms become effective upon posting."}),F.jsx("p",{children:"Your continued use of the Platform after the effective date of any changes constitutes your acceptance of the revised Terms. If you do not agree to the updated Terms, you must stop using the Platform immediately. It is your responsibility to review these Terms periodically for changes."})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"18. Contact"}),F.jsx("p",{children:"For inquiries related to these Terms, contact:"}),F.jsxs("p",{children:[F.jsx("strong",{children:"Email:"})," ",F.jsx("a",{href:"mailto:support@makeinfinite.com",children:"support@makeinfinite.com"})]})]}),F.jsxs("section",{children:[F.jsx("h2",{children:"19. DMCA Notice and Copyright Policy"}),F.jsxs("p",{children:["Dreamspace respects intellectual property rights and complies with the Digital Millennium Copyright Act (DMCA). To report any copyright infringement, contact",F.jsx("a",{href:"mailto:support@makeinfinite.com",children:" support@makeinfinite.com"})," with:"]}),F.jsxs("ul",{children:[F.jsx("li",{children:"Your contact information."}),F.jsx("li",{children:"Identification of the copyrighted work."}),F.jsx("li",{children:"Identification of allegedly infringing material."}),F.jsx("li",{children:"A good-faith statement of infringement."}),F.jsx("li",{children:"A statement of accuracy under penalty of perjury."})]}),F.jsxs("p",{className:"copyright",children:["© ",new Date().getFullYear()," MakeInfinite Labs"]})]})]})})})},{MI_API_BASE_URL:cdc,MI_BASE_WS_URL:ddc,API_URL:pdc,MI_API_PROXY_BASE_URL:hdc,GW_PROXY_API_URL_FOR_MI:fdc}=Js(),mdc=e=>{const{onAuthButtonClick:t,isLoggedIn:r,loggedInUserId:n,onLogout:a,userDetail:o,subscriptionData:s,children:l,navigate:u}=e,c=Ua(),d=Xu(),p=Vki(Fjn),h={API_BASE_URL:cdc,WS_BASE_URL:ddc,GW_BASE_URL:pdc,GW_PROXY_URL:fdc,PROXY_API_BASE_URL:hdc},f=Or.merge({},jr,p);return F.jsx(Wki,{theme:f,children:F.jsxs(Uki,{theme:f,children:[F.jsx(OIi,{}),F.jsx(sX,{children:F.jsxs(w2n,{config:h,children:[F.jsxs(xt,{sx:{display:"flex",flexDirection:"row",width:"100%"},children:[F.jsx(xt,{sx:{width:"calc(100% - 54px)",overflowX:"auto"},children:l}),F.jsx(xt,{sx:{position:"fixed",top:0,bottom:0,right:0,overflow:"hidden",zIndex:1200},children:F.jsx(pUs,{onAuthButtonClick:t,navigate:u,onNavClick:g=>{g===dr.dataStudio?c.push(xn.newQuery()):c.push(g)},isLoggedIn:r,onLogout:g=>{a(g,()=>{d.pathname===dr.landingPage?window.location.reload():c.push(dr.landingPage)})},loggedInUserId:n,subscriptionData:s,userDetail:o})})]}),F.jsx(hUs,{})]})})]})})},gdc=({onClose:e})=>F.jsx(Wc,{visible:!0,isHeader:!1,maxWidth:"xs",className:"missingEmailDialogue",children:F.jsxs(q$e,{children:[F.jsx("h4",{className:"title",children:he.VERIFY_EMAIL_PROMPT}),F.jsxs("ul",{children:[F.jsx("li",{children:F.jsx("span",{children:he.VERIFY_EMAIL_INFO_01})}),F.jsx("li",{children:F.jsx("span",{children:he.VERIFY_EMAIL_INFO_02})})]}),F.jsx("div",{className:"btnGroup",children:F.jsx(yr,{variant:"contained",onClick:e,style:{backgroundColor:"rgba(94, 53, 177, 0.8)",color:"#ffffff"},children:he.VERIFY_EMAIL_CONFIRMATION})})]})}),xdc=()=>{const e=P.useRef(null),t=oa(a=>a.isLoggedIn),r=oa(a=>a.userId),{syncStore:n}=od();P.useEffect(()=>{var o;if(console.log("loading initial application data",{isLoggedIn:t}),(o=e.current)==null||o.abort(),e.current=null,!t){Promise.allSettled([jSt({})]);return}const a=new AbortController;return e.current=a,Promise.allSettled([Kki(),_9t(),qki(r??""),Xki(),Yki(),jSt({}),Jki({}),n()]),()=>a.abort()},[t])},ydc=["0XDESIGNER","AVAIL","AVAILTEAM","AVAX","BASE","BASETEAM","BONDEX","BUILD","CALDERA","CHAINLINK","EARLY","EMILY","NESA","POOL","PORT3","SOPHIA","SUI","SXTCOMMUNITY","VIBECODER","ZKSYNC"],TSa=P.createContext(void 0),{ENABLE_JOIN_CODES:Brn}=Js(),vdc=localStorage.getItem("alphaJoinCode"),Adc=({children:e})=>{const[t,r]=P.useState(!!vdc||!Brn),n=a=>!Brn||ydc.includes(a.toUpperCase())?(r(!0),localStorage.setItem("alphaJoinCode",a),!0):!1;return F.jsx(TSa.Provider,{value:{isValid:t,validate:n},children:e})},bdc=()=>{const e=P.useContext(TSa);if(!e)throw new Error("useAlphaCode must be used within an AlphaCodeProvider");return e},Ddc="/assets/panel-bg-c4c3f71d.svg",wdc=P8("div")(()=>({position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(0, 0, 0, 0.8)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:2e3,pointerEvents:"auto"})),Cdc=P8(z0)(()=>({display:"flex",flexDirection:"column",backgroundColor:"rgba(255, 255, 255, 0.11)",backdropFilter:"blur(20px)",borderRadius:"12px",border:"1px solid rgba(99, 53, 112)",backgroundImage:`
|
|
46099
46099
|
linear-gradient(rgba(0, 0, 0.4, 0.5),
|
|
46100
46100
|
rgba(0, 0, 0.4, 0.5)), url(${Ddc})
|
|
46101
|
-
`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",maxWidth:"1100px",width:"50%",padding:"15px",zIndex:2001,pointerEvents:"auto",position:"relative"})),kdc=P8(xt)(()=>({padding:"5px 5px",margin:"5px",borderBottom:"1px solid rgba(255, 255, 255, 0.37)"}));P8(xt)(()=>({padding:"10px 15px",backgroundColor:"rgba(217, 217, 217, 0.04)"}));const Edc=P8("div")(()=>({color:"rgba(255, 255, 255, 1)",fontSize:"18px",fontWeight:500})),Sdc=P8(xt)(()=>({padding:"5px 5px",display:"flex",flexDirection:"column",width:"100%",flex:1,backgroundColor:"transparent",minHeight:0})),Fdc=P8("div")(()=>({color:"rgba(255, 255, 255, 0.75)",marginBottom:"2px",fontSize:"12px",fontWeight:500})),Mdc=P8("input")(()=>({padding:"2px 8px",marginBottom:"8px",minHeight:"40px",color:"rgba(255, 255, 255, 0.75)",fontSize:"16px",backgroundColor:"rgba(217, 217, 217, 0.04)",backdropFilter:"blur(20px)",borderRadius:"6px"})),Bdc=P8(Pu)(()=>({minWidth:"144px",minHeight:"30px",padding:"11px 22px",lineHeight:"normal",fontWeight:"400",borderRadius:"9px","&.primary":{backgroundColor:"#421ea1",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"0.813rem",transition:"all 0.3s ease-in-out","&:hover":{backgroundColor:"#52437c",color:"#737373",border:"1px solid #52437c"},"&:disabled":{backgroundColor:"#2d1570",color:"#595959",border:"1px solid #2d1570"}},"&.secondary":{backgroundColor:"rgba(255, 255, 255, 0.11)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"0.813rem",transition:"all 0.3s ease-in-out","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)"},"&:disabled":{backgroundColor:"rgba(255, 255, 255, 0.06)",color:"#595959",border:"1px solid rgba(255, 255, 255, 0.06)"}}})),Tdc=()=>{const{isValid:e,validate:t}=bdc(),[r,n]=P.useState(""),[a,o]=P.useState(!1),s=l=>{l.preventDefault(),t(r)||o(!0)};return e?F.jsx(F.Fragment,{}):ys.createPortal(F.jsx(F.Fragment,{children:F.jsx(wdc,{sx:{zIndex:2e3},children:F.jsxs(Cdc,{sx:{zIndex:2e3},children:[F.jsx(kdc,{children:F.jsx(Edc,{children:"Welcome to Dreamspace"})}),F.jsxs(Sdc,{sx:{position:"relative",color:"white"},children:[F.jsx(Oa,{sx:{margin:"5px 10px"},children:"Not everyone was meant to find this page. But you did. Welcome to the exclusive alpha version of Dreamspace. The first vibe coding canvas for crypto's creatives."}),F.jsx(Oa,{sx:{margin:"5px 10px"},children:"You know what to do."}),F.jsx(Fdc,{sx:{mt:"30px",ml:"5px"},children:"Prove you belong:"}),F.jsx(Mdc,{type:"text",name:"alpha code input",value:r,onChange:l=>n(l.target.value),placeholder:"enter code",sx:{zIndex:2e3}}),a&&F.jsx("div",{style:{color:"#ff4d4f",fontSize:"12px",marginBottom:"2px",marginLeft:"5px"},children:"Invalid alpha code"}),F.jsx(Bdc,{className:"secondary",onClick:s,disabled:!1,sx:{mt:"20px"},children:"Join Alpha"})]})]})})}),document.body)},Rdc=()=>{const e=J9t(),t=ran(),[r,n]=P.useState((e==null?void 0:e.length)>0||t),[a,o]=P.useState(!1);return F.jsxs(Xf,{className:"biscuitsBlock",children:[F.jsxs("div",{className:"cardHead",children:[r||a?F.jsx("div",{}):he.SAVE_BISCUIT,F.jsxs("div",{className:"headRight",children:[!a&&F.jsx(yr,{variant:"contained",color:"secondary",onClick:()=>n(!r),disabled:!(e!=null&&e.length)&&!t,children:r?he.CREATE_BISCUIT:he.SHOW_BISCUIT}),F.jsx(kn,{label:"Additional Information",children:F.jsx(nn,{onClick:()=>o(s=>!s),children:a?F.jsx(Xs,{}):F.jsx(iy,{})})})]})]}),F.jsx(ml,{in:a,timeout:"auto",unmountOnExit:!0,children:F.jsx("div",{className:"infoText",children:F.jsx("p",{style:{fontSize:"14px",color:"#999"},children:nan.shortText})})}),F.jsx(ml,{in:!a&&!r,timeout:"auto",unmountOnExit:!0,children:F.jsx(r8a,{})}),F.jsx(ml,{in:!a&&r,timeout:"auto",unmountOnExit:!0,children:F.jsx(n8a,{setShowBiscuit:n,loading:t,biscuitContent:e})})]})},Pdc=({visible:e,onClose:t})=>oa(n=>n.isLoggedIn)?F.jsx(Wc,{title:he.BISCUITS,visible:e,onClose:t,maxWidth:"md",children:F.jsxs(pi,{container:!0,spacing:2,children:[F.jsx(pi,{item:!0,xs:12,children:F.jsx(Oa,{variant:"body1",sx:{fontSize:"14px",color:"#999"},children:he.PERMISSIONS_BISCUITS_DESC})}),F.jsx(pi,{item:!0,xs:12,children:F.jsx(Rdc,{})})]})}):(_s(!0),null),{ENV:fbe,GA_MEASUREMENT_ID:jdc,ENABLE_MY_ACCOUNTS_V2:Idc,ENABLE_JOIN_CODES:Ndc}=Js();Qki.initialize(jdc);const gSt=Se.lazy(()=>VX(()=>import("./QueryEditorWrapper-b4ef5ae8.js"),["assets/QueryEditorWrapper-b4ef5ae8.js","assets/vendor-charts-b447a932.js","assets/vendor-editor-bc751fdd.js","assets/vendor-three-3e3142b5.js"])),Ldc=Se.lazy(()=>VX(()=>import("./ErdWrapper-4b6af17d.js"),["assets/ErdWrapper-4b6af17d.js","assets/vendor-charts-b447a932.js","assets/vendor-editor-bc751fdd.js","assets/vendor-three-3e3142b5.js"])),xSt=Se.lazy(()=>VX(()=>import("./Queries-73c52fc4.js"),["assets/Queries-73c52fc4.js","assets/vendor-charts-b447a932.js","assets/vendor-editor-bc751fdd.js","assets/vendor-three-3e3142b5.js","assets/Queries-9ad18f9b.css"])),Odc=Se.lazy(()=>VX(()=>import("./index-35cf1f3f.js"),["assets/index-35cf1f3f.js","assets/vendor-charts-b447a932.js","assets/vendor-editor-bc751fdd.js","assets/vendor-three-3e3142b5.js"])),zdc=["sxt-mi-git-prod.space-and-time.workers.dev","sxt-mi-git-staging.space-and-time.workers.dev","git-infinite-staging.space-and-time.workers.dev","git-infinite-production.space-and-time.workers.dev"];V6i.register({request:(e,t)=>{const r=e.toString();if(zdc.some(a=>r.includes(a)))return[e,t];const n={...t};return e&&typeof e=="string"&&e.includes("coinbase")?(n.headers={"Content-Type":"application/json"},[e,n]):[e,n]},requestError:e=>e,response:e=>e,responseError:e=>(console.log(e),Promise.reject(e))});function Hdc(){xdc();const e=Ua(),{config:t}=j$e(),r=tk(),{subscriptionDetails:n}=od(),a=Zki(),o=oa(j=>j.isLoggedIn),s=oa(j=>j.userId),l=_ki(),{search:u}=window&&window.location,c=new URLSearchParams(u);if(P.useLayoutEffect(()=>{const j=c.get("utm_campaign")||"";$ki({utmCampaign:j})},[]),!t)return null;const d=eEi(),p=Q9t(),h=()=>Ndc?!localStorage.getItem("alphaJoinCode"):!1,f=Z9t(),[g,y]=P.useState({open:!1,userId:"",key:""}),[v,A]=P.useState(!1),[b]=P.useState(null),E=P.useCallback((j,L=!1)=>{switch(j){case"INDEX_CONTRACT":e.push(xn.getDataFromChain(""));break;case"DATA_STUDIO":default:L?window.open(xn.newQuery(),"_blank"):e.push(xn.newQuery());break}},[e]);P.useEffect(()=>{window.ethereum&&(window.ethereum.removeListener("accountsChanged",()=>{}),window.ethereum.removeListener("chainChanged",()=>{}))},[]);const S=Uw(j=>j.setUserEmail),M=Uw(j=>j.setIsEmailVerified),T=Uw(j=>j.showVerifyEmailDialog),R=Uw(j=>j.setShowVerifyEmailDialog);return P.useEffect(()=>{(async()=>{var I,G;const L=await pu.getEmail();L.status===200&&(S(((I=L==null?void 0:L.data)==null?void 0:I.emailAddress)??null),M(((G=L==null?void 0:L.data)==null?void 0:G.emailVerified)??!1))})()},[o]),F.jsx(sX,{children:F.jsxs(Adc,{children:[F.jsxs(mdc,{onAuthButtonClick:()=>_s(!0),navigate:E,isLoggedIn:o,loggedInUserId:s??"",onLogout:(j=!0,L)=>{try{cYe(),tEi(),_s(!1),Vre(),sessionStorage.removeItem("sessionId")}finally{Ll.logout()}j&&L()},subscriptionData:n??{plan:{chargeType:null,planType:null},subscriptionId:null},userDetail:r,children:[d&&F.jsx("div",{className:"fixedLoader",children:F.jsx(Li,{})}),F.jsxs(oan,{children:[F.jsx(Qc,{exact:!0,path:dr.landingPage,children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(tWs,{navigate:E,isLoggedIn:o,onAuthButtonClick:()=>_s(!0),onStartCreatingClick:()=>Cv.startCreatingClick(),onBlankProjectClick:()=>Cv.blankProjectClick()})})}),F.jsx(Qc,{exact:!0,path:dr.explore,children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(EVs,{})})}),F.jsx(Qc,{exact:!0,path:dr.dataStudio,children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(tan,{to:xn.newQuery()})})}),F.jsx(Qc,{exact:!0,path:dr.myApps,children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(eUs,{navigate:E,isLoggedIn:o,onAuthButtonClick:()=>_s(!0)})})}),F.jsx(Qc,{exact:!0,path:[`${dr.myApps}/:projectId/:pagePath`,`${dr.myApps}/:projectId/`],children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(pVs,{navigate:E,subscriptionData:n??{plan:{chargeType:null,planType:null},subscriptionId:null},onChatBotPinnedClicked:()=>{}})})}),F.jsx(Qc,{exact:!0,path:dr.googleCloud,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(icc,{})]})}),F.jsx(Qc,{exact:!0,path:dr.awsMarketplace,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(euc,{})]})}),F.jsx(Qc,{exact:!0,path:dr.azureLogin,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(x7l,{})]})}),F.jsx(Qc,{exact:!0,path:dr.twitterCallback,children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(y7l,{})})}),F.jsx(Qc,{exact:!0,path:dr.newQuery,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(gSt,{})]})}),F.jsx(Qc,{exact:!0,path:dr.erd,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(Ldc,{})]})}),F.jsx(Qc,{exact:!0,path:dr.savedQuery,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(gSt,{})]})}),F.jsx(Qc,{exact:!0,path:dr.publicQuerySlug,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(gSt,{})]})}),F.jsx($g,{exact:!0,path:dr.newChart,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(BWr,{})]})}),F.jsx($g,{exact:!0,path:dr.updateChart,children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(BWr,{})})}),F.jsx($g,{exact:!0,path:dr.charts,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(EMl,{})]})}),F.jsx(Qc,{exact:!0,path:dr.dashboards,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(F7l,{})]})}),F.jsx($g,{exact:!0,path:dr.myQueries,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(xSt,{tab:Jre.myQueries})]})}),F.jsx($g,{exact:!0,path:dr.queryHistory,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(xSt,{tab:Jre.queryHistory})]})}),F.jsx(Qc,{exact:!0,path:dr.myOrgQuery,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(xSt,{tab:Jre.myOrgQuery})]})}),F.jsx($g,{exact:!0,path:dr.newDashboard,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(jUr,{})]})}),F.jsx(Qc,{exact:!0,path:dr.viewDashboard,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(IUr,{})]})}),F.jsx(Qc,{exact:!0,path:dr.publicDashboard,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(IUr,{isPublic:!0})]})}),F.jsx($g,{exact:!0,path:dr.updateDashboard,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(jUr,{})]})}),fbe==="dev"&&F.jsx($g,{exact:!0,path:dr.pipelineView,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),fbe==="dev"?F.jsx(Odc,{}):F.jsx(MKr,{})]})}),fbe==="dev"&&F.jsx($g,{exact:!0,path:dr.pipelineModel,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),fbe==="dev"?F.jsx(h7l,{}):F.jsx(MKr,{})]})}),F.jsx($g,{exact:!0,path:dr.sendData,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(Zlc,{})]})}),F.jsx($g,{exact:!0,path:dr.getDataFromChain,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(doc,{})]})}),Idc==="true"&&F.jsx($g,{path:`${dr.settings}/:subPath*`,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(Lnc,{})]})}),F.jsx($g,{exact:!0,path:dr.views,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(Ycc,{})]})}),F.jsx(Qc,{exact:!0,path:dr.emailVerification,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(edc,{})]})}),F.jsx(Qc,{exact:!0,path:dr.resetPassword,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(odc,{})]})}),F.jsx(Qc,{exact:!0,path:dr.terms,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(udc,{})]})}),F.jsx(Qc,{render:j=>F.jsx(sX,{...j,children:F.jsx(Pce,{errorPageType:"404"})})})]}),l&&F.jsx(Pdc,{visible:l,onClose:()=>x9t(!1)}),!h()&&f&&F.jsx(sKs,{open:f,setShowLoginDrawer:_s,isSubmit:v,setIsSubmit:A,redirectOnSuccess:b,setIsJoinCodeRequired:y}),a&&F.jsx(sdc,{onClose:()=>rEi(!1)}),o&&T&&F.jsx(gdc,{onClose:()=>R(!1)})]}),F.jsx(Tdc,{}),F.jsx(nEi,{}),(p==null?void 0:p.type)==="error"&&(p!=null&&p.title)?F.jsx(P7l,{}):F.jsx(I7l,{})]})})}async function Gdc(e){const t=!!e.match("ignite"),{data:r,error:n}=await pu.get(e,void 0,t);if(n)throw n;return r}const{GOOGLE_CLIENT_ID:Vdc,STRIPE_CLIENT_ID:Wdc,SENTRY_DSN:Udc,CLARITY_PROJECT_ID:Kdc}=Js();aEi.init(Kdc);R6i({dsn:Udc,integrations:[new TYe,new P6i],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,tracesSampleRate:1});const qdc=OEi(`${Wdc}`);window.localforage=iEi;oEi();od.getState().syncStore();ys.render(F.jsx(Yan,{stripe:qdc,children:F.jsx(sEi,{value:{fetcher:Gdc},children:F.jsx(I6i,{clientId:Vdc,children:F.jsx(lEi,{children:F.jsx(Hdc,{})})})})}),document.getElementById("root"));export{zsc as $,Z1c as A,yr as B,smc as C,X1c as D,q1c as E,Y1c as F,Nqt as G,lmc as H,nn as I,imc as J,kMl as K,_l as L,Tca as M,_n as N,Li as O,sB as P,Glc as Q,xm as R,IKt as S,n1 as T,d5 as U,vm as V,JU as W,Xs as X,oX as Y,Pb as Z,kca as _,Xsc as a,hrn as a0,tmc as a1,nmc as a2,WRl as a3,Yel as a4,_1c as b,J1c as c,Q1c as d,X8a as e,$1c as f,Cua as g,v$e as h,umc as i,aSa as j,emc as k,Wc as l,pua as m,An as n,nA as o,amc as p,Lsc as q,rmc as r,omc as s,Isc as t,Ts as u,Nsc as v,b1c as w,ym as x,I$t as y,N$t as z};
|
|
46101
|
+
`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center",maxWidth:"1100px",width:"50%",padding:"15px",zIndex:2001,pointerEvents:"auto",position:"relative"})),kdc=P8(xt)(()=>({padding:"5px 5px",margin:"5px",borderBottom:"1px solid rgba(255, 255, 255, 0.37)"}));P8(xt)(()=>({padding:"10px 15px",backgroundColor:"rgba(217, 217, 217, 0.04)"}));const Edc=P8("div")(()=>({color:"rgba(255, 255, 255, 1)",fontSize:"18px",fontWeight:500})),Sdc=P8(xt)(()=>({padding:"5px 5px",display:"flex",flexDirection:"column",width:"100%",flex:1,backgroundColor:"transparent",minHeight:0})),Fdc=P8("div")(()=>({color:"rgba(255, 255, 255, 0.75)",marginBottom:"2px",fontSize:"12px",fontWeight:500})),Mdc=P8("input")(()=>({padding:"2px 8px",marginBottom:"8px",minHeight:"40px",color:"rgba(255, 255, 255, 0.75)",fontSize:"16px",backgroundColor:"rgba(217, 217, 217, 0.04)",backdropFilter:"blur(20px)",borderRadius:"6px"})),Bdc=P8(Pu)(()=>({minWidth:"144px",minHeight:"30px",padding:"11px 22px",lineHeight:"normal",fontWeight:"400",borderRadius:"9px","&.primary":{backgroundColor:"#421ea1",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"0.813rem",transition:"all 0.3s ease-in-out","&:hover":{backgroundColor:"#52437c",color:"#737373",border:"1px solid #52437c"},"&:disabled":{backgroundColor:"#2d1570",color:"#595959",border:"1px solid #2d1570"}},"&.secondary":{backgroundColor:"rgba(255, 255, 255, 0.11)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)",textTransform:"none",fontSize:"0.813rem",transition:"all 0.3s ease-in-out","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.2)",color:"#ffffff",border:"1px solid rgba(255, 255, 255, 0.06)"},"&:disabled":{backgroundColor:"rgba(255, 255, 255, 0.06)",color:"#595959",border:"1px solid rgba(255, 255, 255, 0.06)"}}})),Tdc=()=>{const{isValid:e,validate:t}=bdc(),[r,n]=P.useState(""),[a,o]=P.useState(!1),s=l=>{l.preventDefault(),t(r)||o(!0)};return e?F.jsx(F.Fragment,{}):ys.createPortal(F.jsx(F.Fragment,{children:F.jsx(wdc,{sx:{zIndex:2e3},children:F.jsxs(Cdc,{sx:{zIndex:2e3},children:[F.jsx(kdc,{children:F.jsx(Edc,{children:"Welcome to Dreamspace"})}),F.jsxs(Sdc,{sx:{position:"relative",color:"white"},children:[F.jsx(Oa,{sx:{margin:"5px 10px"},children:"Not everyone was meant to find this page. But you did. Welcome to the exclusive alpha version of Dreamspace. The first vibe coding canvas for crypto's creatives."}),F.jsx(Oa,{sx:{margin:"5px 10px"},children:"You know what to do."}),F.jsx(Fdc,{sx:{mt:"30px",ml:"5px"},children:"Prove you belong:"}),F.jsx(Mdc,{type:"text",name:"alpha code input",value:r,onChange:l=>n(l.target.value),placeholder:"enter code",sx:{zIndex:2e3}}),a&&F.jsx("div",{style:{color:"#ff4d4f",fontSize:"12px",marginBottom:"2px",marginLeft:"5px"},children:"Invalid alpha code"}),F.jsx(Bdc,{className:"secondary",onClick:s,disabled:!1,sx:{mt:"20px"},children:"Join Alpha"})]})]})})}),document.body)},Rdc=()=>{const e=J9t(),t=ran(),[r,n]=P.useState((e==null?void 0:e.length)>0||t),[a,o]=P.useState(!1);return F.jsxs(Xf,{className:"biscuitsBlock",children:[F.jsxs("div",{className:"cardHead",children:[r||a?F.jsx("div",{}):he.SAVE_BISCUIT,F.jsxs("div",{className:"headRight",children:[!a&&F.jsx(yr,{variant:"contained",color:"secondary",onClick:()=>n(!r),disabled:!(e!=null&&e.length)&&!t,children:r?he.CREATE_BISCUIT:he.SHOW_BISCUIT}),F.jsx(kn,{label:"Additional Information",children:F.jsx(nn,{onClick:()=>o(s=>!s),children:a?F.jsx(Xs,{}):F.jsx(iy,{})})})]})]}),F.jsx(ml,{in:a,timeout:"auto",unmountOnExit:!0,children:F.jsx("div",{className:"infoText",children:F.jsx("p",{style:{fontSize:"14px",color:"#999"},children:nan.shortText})})}),F.jsx(ml,{in:!a&&!r,timeout:"auto",unmountOnExit:!0,children:F.jsx(r8a,{})}),F.jsx(ml,{in:!a&&r,timeout:"auto",unmountOnExit:!0,children:F.jsx(n8a,{setShowBiscuit:n,loading:t,biscuitContent:e})})]})},Pdc=({visible:e,onClose:t})=>oa(n=>n.isLoggedIn)?F.jsx(Wc,{title:he.BISCUITS,visible:e,onClose:t,maxWidth:"md",children:F.jsxs(pi,{container:!0,spacing:2,children:[F.jsx(pi,{item:!0,xs:12,children:F.jsx(Oa,{variant:"body1",sx:{fontSize:"14px",color:"#999"},children:he.PERMISSIONS_BISCUITS_DESC})}),F.jsx(pi,{item:!0,xs:12,children:F.jsx(Rdc,{})})]})}):(_s(!0),null),{ENV:fbe,GA_MEASUREMENT_ID:jdc,ENABLE_MY_ACCOUNTS_V2:Idc,ENABLE_JOIN_CODES:Ndc}=Js();Qki.initialize(jdc);const gSt=Se.lazy(()=>VX(()=>import("./QueryEditorWrapper-d6e9a59b.js"),["assets/QueryEditorWrapper-d6e9a59b.js","assets/vendor-charts-b447a932.js","assets/vendor-editor-bc751fdd.js","assets/vendor-three-3e3142b5.js"])),Ldc=Se.lazy(()=>VX(()=>import("./ErdWrapper-05413d55.js"),["assets/ErdWrapper-05413d55.js","assets/vendor-charts-b447a932.js","assets/vendor-editor-bc751fdd.js","assets/vendor-three-3e3142b5.js"])),xSt=Se.lazy(()=>VX(()=>import("./Queries-03ae698d.js"),["assets/Queries-03ae698d.js","assets/vendor-charts-b447a932.js","assets/vendor-editor-bc751fdd.js","assets/vendor-three-3e3142b5.js","assets/Queries-9ad18f9b.css"])),Odc=Se.lazy(()=>VX(()=>import("./index-c50205c1.js"),["assets/index-c50205c1.js","assets/vendor-charts-b447a932.js","assets/vendor-editor-bc751fdd.js","assets/vendor-three-3e3142b5.js"])),zdc=["sxt-mi-git-prod.space-and-time.workers.dev","sxt-mi-git-staging.space-and-time.workers.dev","git-infinite-staging.space-and-time.workers.dev","git-infinite-production.space-and-time.workers.dev"];V6i.register({request:(e,t)=>{const r=e.toString();if(zdc.some(a=>r.includes(a)))return[e,t];const n={...t};return e&&typeof e=="string"&&e.includes("coinbase")?(n.headers={"Content-Type":"application/json"},[e,n]):[e,n]},requestError:e=>e,response:e=>e,responseError:e=>(console.log(e),Promise.reject(e))});function Hdc(){xdc();const e=Ua(),{config:t}=j$e(),r=tk(),{subscriptionDetails:n}=od(),a=Zki(),o=oa(j=>j.isLoggedIn),s=oa(j=>j.userId),l=_ki(),{search:u}=window&&window.location,c=new URLSearchParams(u);if(P.useLayoutEffect(()=>{const j=c.get("utm_campaign")||"";$ki({utmCampaign:j})},[]),!t)return null;const d=eEi(),p=Q9t(),h=()=>Ndc?!localStorage.getItem("alphaJoinCode"):!1,f=Z9t(),[g,y]=P.useState({open:!1,userId:"",key:""}),[v,A]=P.useState(!1),[b]=P.useState(null),E=P.useCallback((j,L=!1)=>{switch(j){case"INDEX_CONTRACT":e.push(xn.getDataFromChain(""));break;case"DATA_STUDIO":default:L?window.open(xn.newQuery(),"_blank"):e.push(xn.newQuery());break}},[e]);P.useEffect(()=>{window.ethereum&&(window.ethereum.removeListener("accountsChanged",()=>{}),window.ethereum.removeListener("chainChanged",()=>{}))},[]);const S=Uw(j=>j.setUserEmail),M=Uw(j=>j.setIsEmailVerified),T=Uw(j=>j.showVerifyEmailDialog),R=Uw(j=>j.setShowVerifyEmailDialog);return P.useEffect(()=>{(async()=>{var I,G;const L=await pu.getEmail();L.status===200&&(S(((I=L==null?void 0:L.data)==null?void 0:I.emailAddress)??null),M(((G=L==null?void 0:L.data)==null?void 0:G.emailVerified)??!1))})()},[o]),F.jsx(sX,{children:F.jsxs(Adc,{children:[F.jsxs(mdc,{onAuthButtonClick:()=>_s(!0),navigate:E,isLoggedIn:o,loggedInUserId:s??"",onLogout:(j=!0,L)=>{try{cYe(),tEi(),_s(!1),Vre(),sessionStorage.removeItem("sessionId")}finally{Ll.logout()}j&&L()},subscriptionData:n??{plan:{chargeType:null,planType:null},subscriptionId:null},userDetail:r,children:[d&&F.jsx("div",{className:"fixedLoader",children:F.jsx(Li,{})}),F.jsxs(oan,{children:[F.jsx(Qc,{exact:!0,path:dr.landingPage,children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(tWs,{navigate:E,isLoggedIn:o,onAuthButtonClick:()=>_s(!0),onStartCreatingClick:()=>Cv.startCreatingClick(),onBlankProjectClick:()=>Cv.blankProjectClick()})})}),F.jsx(Qc,{exact:!0,path:dr.explore,children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(EVs,{})})}),F.jsx(Qc,{exact:!0,path:dr.dataStudio,children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(tan,{to:xn.newQuery()})})}),F.jsx(Qc,{exact:!0,path:dr.myApps,children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(eUs,{navigate:E,isLoggedIn:o,onAuthButtonClick:()=>_s(!0)})})}),F.jsx(Qc,{exact:!0,path:[`${dr.myApps}/:projectId/:pagePath`,`${dr.myApps}/:projectId/`],children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(pVs,{navigate:E,subscriptionData:n??{plan:{chargeType:null,planType:null},subscriptionId:null},onChatBotPinnedClicked:()=>{}})})}),F.jsx(Qc,{exact:!0,path:dr.googleCloud,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(icc,{})]})}),F.jsx(Qc,{exact:!0,path:dr.awsMarketplace,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(euc,{})]})}),F.jsx(Qc,{exact:!0,path:dr.azureLogin,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(x7l,{})]})}),F.jsx(Qc,{exact:!0,path:dr.twitterCallback,children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(y7l,{})})}),F.jsx(Qc,{exact:!0,path:dr.newQuery,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(gSt,{})]})}),F.jsx(Qc,{exact:!0,path:dr.erd,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(Ldc,{})]})}),F.jsx(Qc,{exact:!0,path:dr.savedQuery,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(gSt,{})]})}),F.jsx(Qc,{exact:!0,path:dr.publicQuerySlug,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(gSt,{})]})}),F.jsx($g,{exact:!0,path:dr.newChart,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(BWr,{})]})}),F.jsx($g,{exact:!0,path:dr.updateChart,children:F.jsx(P.Suspense,{fallback:F.jsx(Li,{}),children:F.jsx(BWr,{})})}),F.jsx($g,{exact:!0,path:dr.charts,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(EMl,{})]})}),F.jsx(Qc,{exact:!0,path:dr.dashboards,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(F7l,{})]})}),F.jsx($g,{exact:!0,path:dr.myQueries,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(xSt,{tab:Jre.myQueries})]})}),F.jsx($g,{exact:!0,path:dr.queryHistory,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(xSt,{tab:Jre.queryHistory})]})}),F.jsx(Qc,{exact:!0,path:dr.myOrgQuery,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(xSt,{tab:Jre.myOrgQuery})]})}),F.jsx($g,{exact:!0,path:dr.newDashboard,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(jUr,{})]})}),F.jsx(Qc,{exact:!0,path:dr.viewDashboard,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(IUr,{})]})}),F.jsx(Qc,{exact:!0,path:dr.publicDashboard,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(IUr,{isPublic:!0})]})}),F.jsx($g,{exact:!0,path:dr.updateDashboard,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(jUr,{})]})}),fbe==="dev"&&F.jsx($g,{exact:!0,path:dr.pipelineView,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),fbe==="dev"?F.jsx(Odc,{}):F.jsx(MKr,{})]})}),fbe==="dev"&&F.jsx($g,{exact:!0,path:dr.pipelineModel,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),fbe==="dev"?F.jsx(h7l,{}):F.jsx(MKr,{})]})}),F.jsx($g,{exact:!0,path:dr.sendData,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(Zlc,{})]})}),F.jsx($g,{exact:!0,path:dr.getDataFromChain,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(doc,{})]})}),Idc==="true"&&F.jsx($g,{path:`${dr.settings}/:subPath*`,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(Lnc,{})]})}),F.jsx($g,{exact:!0,path:dr.views,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(Ycc,{})]})}),F.jsx(Qc,{exact:!0,path:dr.emailVerification,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(edc,{})]})}),F.jsx(Qc,{exact:!0,path:dr.resetPassword,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(odc,{})]})}),F.jsx(Qc,{exact:!0,path:dr.terms,children:F.jsxs(P.Suspense,{fallback:F.jsx(Li,{}),children:[F.jsx(Ou,{}),F.jsx(udc,{})]})}),F.jsx(Qc,{render:j=>F.jsx(sX,{...j,children:F.jsx(Pce,{errorPageType:"404"})})})]}),l&&F.jsx(Pdc,{visible:l,onClose:()=>x9t(!1)}),!h()&&f&&F.jsx(sKs,{open:f,setShowLoginDrawer:_s,isSubmit:v,setIsSubmit:A,redirectOnSuccess:b,setIsJoinCodeRequired:y}),a&&F.jsx(sdc,{onClose:()=>rEi(!1)}),o&&T&&F.jsx(gdc,{onClose:()=>R(!1)})]}),F.jsx(Tdc,{}),F.jsx(nEi,{}),(p==null?void 0:p.type)==="error"&&(p!=null&&p.title)?F.jsx(P7l,{}):F.jsx(I7l,{})]})})}async function Gdc(e){const t=!!e.match("ignite"),{data:r,error:n}=await pu.get(e,void 0,t);if(n)throw n;return r}const{GOOGLE_CLIENT_ID:Vdc,STRIPE_CLIENT_ID:Wdc,SENTRY_DSN:Udc,CLARITY_PROJECT_ID:Kdc}=Js();aEi.init(Kdc);R6i({dsn:Udc,integrations:[new TYe,new P6i],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1,tracesSampleRate:1});const qdc=OEi(`${Wdc}`);window.localforage=iEi;oEi();od.getState().syncStore();ys.render(F.jsx(Yan,{stripe:qdc,children:F.jsx(sEi,{value:{fetcher:Gdc},children:F.jsx(I6i,{clientId:Vdc,children:F.jsx(lEi,{children:F.jsx(Hdc,{})})})})}),document.getElementById("root"));export{zsc as $,Z1c as A,yr as B,smc as C,X1c as D,q1c as E,Y1c as F,Nqt as G,lmc as H,nn as I,imc as J,kMl as K,_l as L,Tca as M,_n as N,Li as O,sB as P,Glc as Q,xm as R,IKt as S,n1 as T,d5 as U,vm as V,JU as W,Xs as X,oX as Y,Pb as Z,kca as _,Xsc as a,hrn as a0,tmc as a1,nmc as a2,WRl as a3,Yel as a4,_1c as b,J1c as c,Q1c as d,X8a as e,$1c as f,Cua as g,v$e as h,umc as i,aSa as j,emc as k,Wc as l,pua as m,An as n,nA as o,amc as p,Lsc as q,rmc as r,omc as s,Isc as t,Ts as u,Nsc as v,b1c as w,ym as x,I$t as y,N$t as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a8 as E,r as n,j as e,hS as N,E as V,am as b,ji as v,cg as P,ch as O,c8 as S,c9 as p,b3 as l,ci as C,nv as I,nw as D,nx as F,ny as k,nz as L,nA as q,hi as A,hT as M,nB as B}from"./vendor-charts-b447a932.js";import{a3 as _,a4 as W,u as U,O as $}from"./index-
|
|
1
|
+
import{a8 as E,r as n,j as e,hS as N,E as V,am as b,ji as v,cg as P,ch as O,c8 as S,c9 as p,b3 as l,ci as C,nv as I,nw as D,nx as F,ny as k,nz as L,nA as q,hi as A,hT as M,nB as B}from"./vendor-charts-b447a932.js";import{a3 as _,a4 as W,u as U,O as $}from"./index-2a4b3cf2.js";import"./vendor-editor-bc751fdd.js";import"./vendor-three-3e3142b5.js";const G=[{id:"kafka_stream",type:"custom",title:"New kafka Stream",subtitle:"Indexed data",positionX:0,positionY:0,sourcePosition:"right",targetPosition:"right"},{id:"Ethereum_transactions",type:"custom",title:"Ethereum Transactions",subtitle:"Indexed data",positionX:420,positionY:0,sourcePosition:"right",targetPosition:"right"},{id:"create_new_table",type:"custom",title:"Create a New Table",subtitle:"Indexed data",positionX:1260,positionY:0,sourcePosition:"right",targetPosition:"left"}],H=[{id:"e1-1",source:1,target:2},{id:"e1-2",source:2,target:3},{id:"e1-3",source:3,target:4},{id:"e1-4",source:4,target:5}],T={nodesDataSearch:G,edgesDataSearchUnused:H},x=[{prompt:"Write sql query",promptId:6,actionType:2,View:"Open query editor vuew",viewRoute:"/pipeline/model?promptId=6",isFirst:!0},{prompt:"Explore tables from uniswap",promptId:6,actionType:5,View:"Open query editor vuew",viewRoute:"/pipeline/model",isFirst:!0},{prompt:"Load streams from kafka",promptId:6,actionType:5,View:"Open query editor vuew",viewRoute:"/pipeline/model",isFirst:!0},{prompt:"Explore blockchain data tables available",promptId:6,actionType:5,View:"Open query editor vuew",viewRoute:"/pipeline/model",isFirst:!0},{prompt:"Write a slack api integration in python",promptId:6,actionType:5,View:"Open query editor vuew",viewRoute:"/pipeline/model",isFirst:!0},{prompt:"Show ethereum schema",promptId:1,actionType:1,View:"open ethereum data model view",viewRoute:"/pipeline/model?promptId=1&selectedChain=ethereum&view=data-sets",isFirst:!0},{prompt:"Show binance schema",promptId:2,actionType:1,View:"open bnb data model view",viewRoute:"/pipeline/model?promptId=2&selectedChain=binance&view=data-sets"},{prompt:"View avalanche schema",promptId:3,actionType:1,View:"open bnb data model view",viewRoute:"/pipeline/model?promptId=3&selectedChain=avalanche&view=data-sets"},{prompt:"Explore binance schema",promptId:4,actionType:1,View:"open bnb data model view",viewRoute:"/pipeline/model?promptId=4&selectedChain=binance&view=data-sets"},{prompt:"Explore Table Transaction from ethereum Schema",promptId:5,actionType:1,View:"open etherium data model view with transaction table and its connected table",viewRoute:"/pipeline/model?promptId=5&selectedChain=ethereum&table=TRANSACTION&view=data-sets"},{prompt:"Run a query",promptId:7,actionType:2,View:"Open query editor vuew",viewRoute:"/pipeline/model?promptId=6"},{prompt:"Explore a query",promptId:8,actionType:2,View:"Open query editor vuew",viewRoute:"/pipeline/model?promptId=8"},{prompt:"Create table",promptId:14,actionType:2,View:"Open query editor view with DDL",viewRoute:"/pipeline/model?promptId=14"},{prompt:"Show data model",promptId:9,actionType:2,View:"Open data model view",viewRoute:"/pipeline/model?promptId=9",isFirst:!0},{prompt:"View data model",promptId:10,actionType:2,View:"Open data model view",viewRoute:"/pipeline/model?promptId=10"},{prompt:"Explore data model",promptId:15,actionType:2,View:"Open data model view",viewRoute:"/pipeline/model?promptId=15"},{prompt:"Python Script 1",promptId:11,actionType:4,View:"Open python script 1",viewRoute:"/pipeline/model?actionId=2&promptId=8"},{prompt:"Python Script 2",promptId:12,actionType:4,View:"Open python script 2",viewRoute:"/pipeline/model?actionId=2&promptId=8"},{prompt:"Python Script 3",promptId:13,actionType:4,View:"Open python script 3",viewRoute:"/pipeline/model?actionId=2&promptId=8"},{prompt:"Write a python script",promptId:14,actionType:4,View:"Open python script",viewRoute:"/pipeline/model?promptId=14",isFirst:!0}],z=()=>{const a=E(),r=n.useRef(!0),[d,i]=n.useState([]),[u,c]=n.useState("");n.useEffect(()=>()=>{r.current=!1},[]);const w=t=>{let s=[];t?x==null||x.forEach(o=>{var m,h,j,f;((h=(m=o==null?void 0:o.prompt)==null?void 0:m.toLowerCase())!=null&&h.includes(t==null?void 0:t.toLowerCase())||(f=t==null?void 0:t.toLowerCase())!=null&&f.includes((j=o.prompt)==null?void 0:j.toLowerCase()))&&s.push({title:o.prompt,value:o.prompt,data:o})}):s=x.filter(o=>o.isFirst).map(o=>({title:o.prompt,value:o.prompt,data:o})),i([...s])},g=t=>{r.current&&(c(t),w(t))},R=t=>{var s,o,m,h;r.current&&c(t==null?void 0:t.value),(((s=t==null?void 0:t.data)==null?void 0:s.promptId)===14||((o=t==null?void 0:t.data)==null?void 0:o.promptId)===6)&&(((m=t==null?void 0:t.data)==null?void 0:m.promptId)===6&&N("Execute_Query",!1),a.push((h=t==null?void 0:t.data)==null?void 0:h.viewRoute))};return e.jsx(_,{options:d,handleChange:g,onSelectValue:R,value:u,onFocus:()=>{w(u)},onBlur:()=>{setTimeout(()=>{r.current&&i([])},300)}})},X=V("div")`
|
|
2
2
|
margin-top: 50px;
|
|
3
3
|
.commonTitleStyle {
|
|
4
4
|
font-size: ${a=>a.theme.custom.heading.h2};
|
package/build/index.html
CHANGED
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</script>
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
<script type="module" crossorigin src="/assets/index-
|
|
73
|
+
<script type="module" crossorigin src="/assets/index-2a4b3cf2.js"></script>
|
|
74
74
|
<link rel="modulepreload" crossorigin href="/assets/vendor-charts-b447a932.js">
|
|
75
75
|
<link rel="modulepreload" crossorigin href="/assets/vendor-editor-bc751fdd.js">
|
|
76
76
|
<link rel="modulepreload" crossorigin href="/assets/vendor-three-3e3142b5.js">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spaceandtimelabs/dapp-mi-space-time",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"build/**/*"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@react-three/fiber": "7.0.28",
|
|
32
32
|
"@sentry/react": "^7.15.0",
|
|
33
33
|
"@sentry/tracing": "^7.15.0",
|
|
34
|
-
"@spaceandtimelabs/dapp-mi-components": "^0.82.0-beta.
|
|
34
|
+
"@spaceandtimelabs/dapp-mi-components": "^0.82.0-beta.3",
|
|
35
35
|
"@stripe/react-stripe-js": "^2.1.0",
|
|
36
36
|
"@stripe/stripe-js": "^1.52.1",
|
|
37
37
|
"@types/file-saver": "^2.0.5",
|
|
@@ -163,5 +163,5 @@
|
|
|
163
163
|
"yarn": "^1.22.21",
|
|
164
164
|
"npm": "^10.2.3"
|
|
165
165
|
},
|
|
166
|
-
"gitHead": "
|
|
166
|
+
"gitHead": "b503c375cc18dcf35cdfd9dd32fbad5b4f00a057"
|
|
167
167
|
}
|