@origintrail-official/dkg-node-ui 10.0.23 → 10.0.24

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.
Files changed (32) hide show
  1. package/README.md +4 -0
  2. package/dist-ui/assets/{3d-force-graph-DbVwxMKf.js → 3d-force-graph-DvzZZzFn.js} +1 -1
  3. package/dist-ui/assets/{ActivityFeed-Bfg6fmQQ.js → ActivityFeed-B5QxV1dk.js} +2 -2
  4. package/dist-ui/assets/{AgentHub-DyF5Pa70.js → AgentHub-BO9jGbJl.js} +1 -1
  5. package/dist-ui/assets/{AgentProfilePage-BPrSuKjV.js → AgentProfilePage-DJJTn1WD.js} +1 -1
  6. package/dist-ui/assets/{ApproveWalletsModal-Dd_tHLRP.js → ApproveWalletsModal-C2Tu29tB.js} +3 -3
  7. package/dist-ui/assets/{ContextGraphPrimitives-BXormriD.js → ContextGraphPrimitives-BqlTIZHy.js} +1 -1
  8. package/dist-ui/assets/{ConvictionDetailView-BsPTd17P.js → ConvictionDetailView-J-DAKHtP.js} +2 -2
  9. package/dist-ui/assets/MemoryLayerView-BOxI-_TF.js +2 -0
  10. package/dist-ui/assets/{MemoryStackView-BbUJ2uiM.js → MemoryStackView-BTyZZKNm.js} +1 -1
  11. package/dist-ui/assets/{Network-BKvJttOu.js → Network-DV9K48MH.js} +1 -1
  12. package/dist-ui/assets/{OnChainProvenanceCard-BV9-G1cT.js → OnChainProvenanceCard-jxk66g53.js} +1 -1
  13. package/dist-ui/assets/{Operations-LAhUQsnj.js → Operations-CNB1BMYg.js} +1 -1
  14. package/dist-ui/assets/{ProjectView-0zCSblAV.js → ProjectView-BP4vNSXI.js} +30 -30
  15. package/dist-ui/assets/{PublishingConviction-CF6352oT.js → PublishingConviction-DbP1i3v0.js} +2 -2
  16. package/dist-ui/assets/{Settings-runaZqPv.js → Settings-I6g3MQCV.js} +1 -1
  17. package/dist-ui/assets/{browserWalletTransaction-CBgx0i4w.js → browserWalletTransaction-CXv612Pn.js} +3 -3
  18. package/dist-ui/assets/{ccip-BM07w5uU.js → ccip-DY93ay8e.js} +1 -1
  19. package/dist-ui/assets/index-CIt7zWgM.css +1 -0
  20. package/dist-ui/assets/{index-CfVUpsfM.js → index-CumB6j2m.js} +3 -3
  21. package/dist-ui/assets/index-DW3dBcQk.js +1175 -0
  22. package/dist-ui/assets/{jsonld-32FQRO67-DBZOBQji.js → jsonld-32FQRO67-DKLfQ_nD.js} +2 -2
  23. package/dist-ui/assets/{jsonld-DOX7dKpf.js → jsonld-BgpgXlDQ.js} +1 -1
  24. package/dist-ui/assets/{renderer-3d-2EVDZII7-CVCpAmwB.js → renderer-3d-2EVDZII7-BCmzI8Ii.js} +2 -2
  25. package/dist-ui/assets/{shikiHighlighter-CzU2U2Tx.js → shikiHighlighter-BXl6qMQO.js} +4 -4
  26. package/dist-ui/assets/{useEntityOnChainReceipt-BvWQ6qdT.js → useEntityOnChainReceipt-CUGQNIsP.js} +1 -1
  27. package/dist-ui/assets/{useProjectActivity-Cxr4QGX1.js → useProjectActivity-BOgGdtS7.js} +1 -1
  28. package/dist-ui/index.html +2 -2
  29. package/package.json +4 -4
  30. package/dist-ui/assets/MemoryLayerView-CloJeM33.js +0 -2
  31. package/dist-ui/assets/index-MQh8C4aJ.js +0 -1175
  32. package/dist-ui/assets/index-xKO-U_eV.css +0 -1
@@ -1,4 +1,4 @@
1
- import{bd as A,O as b}from"./index-MQh8C4aJ.js";const D="http://dkg.io/ontology/",Q="http://www.w3.org/ns/prov#";function x(t){if(t==null)return"";if(typeof t=="string")return t;if(typeof t=="object"&&"value"in t){const n=t.value;return n==null?"":String(n)}return String(t)}function $(t){const n=x(t);if(!n)return"";const r=n.match(/^"((?:[^"\\]|\\.)*)"(?:@[\w-]+|\^\^<[^>]+>)?$/);return r?r[1]:n}function Y(t){const n=x(t);if(!n)return"";const r=n.trim();return r.startsWith("<")&&r.endsWith(">")?r.slice(1,-1):r}function K(t,n){return`PREFIX dkg: <${D}>
1
+ import{be as A,O as b}from"./index-DW3dBcQk.js";const D="http://dkg.io/ontology/",Q="http://www.w3.org/ns/prov#";function x(t){if(t==null)return"";if(typeof t=="string")return t;if(typeof t=="object"&&"value"in t){const n=t.value;return n==null?"":String(n)}return String(t)}function $(t){const n=x(t);if(!n)return"";const r=n.match(/^"((?:[^"\\]|\\.)*)"(?:@[\w-]+|\^\^<[^>]+>)?$/);return r?r[1]:n}function Y(t){const n=x(t);if(!n)return"";const r=n.trim();return r.startsWith("<")&&r.endsWith(">")?r.slice(1,-1):r}function K(t,n){return`PREFIX dkg: <${D}>
2
2
  SELECT ?owner WHERE {
3
3
  GRAPH ?g { <${n}> dkg:workspaceOwner ?owner . }
4
4
  FILTER(
@@ -1 +1 @@
1
- import{bd as T,u as v,bv as w}from"./index-MQh8C4aJ.js";const M=["http://purl.org/dc/terms/created","http://dkg.io/ontology/github/mergedAt","http://dkg.io/ontology/github/closedAt","http://dkg.io/ontology/decisions/date","http://dkg.io/ontology/tasks/dueDate"],U="http://www.w3.org/ns/prov#wasAttributedTo",I=new Set(["http://dkg.io/ontology/decisions/Decision","http://dkg.io/ontology/tasks/Task","http://dkg.io/ontology/github/PullRequest","http://dkg.io/ontology/github/Issue","http://dkg.io/ontology/github/Commit"]);function g(i){const s=i.replace(/^"|"$/g,"").replace(/^"(.+)"(?:@\w+|\^\^.+)?$/,"$1"),a=new Date(s);return Number.isFinite(a.getTime())?a:null}function m(i,s,a,o){const r=a?a.toISOString():"no-ts";return o&&o!==s?`${i}|${s}|${o}|${r}`:`${i}|${s}|${r}`}function E(i){for(const s of M){const a=i.properties.get(s);if(a!=null&&a.length)for(const o of a){const r=g(o);if(r)return r}}return null}function G(i){for(const s of i.connections)if(s.predicate===U)return s.targetUri;return null}function S(i){for(const s of i.types)if(I.has(s))return s;return null}function A(i){for(const s of i.subGraphs)if(s!=="meta")return s;return null}function $(i,s={}){const{limit:a=200,agentUri:o,typeIri:r,subGraph:f,includeUndated:e=!0,excludeEvents:t}=s,l=t?[...t].sort().join(","):"";return T.useMemo(()=>{const d=t&&t.length>0?new Set(t):null,n=[];for(const u of i){const c=S(u);if(r&&c!==r)continue;const h=E(u);if(!h&&(!e||!c))continue;const y=G(u);if(o&&y!==o)continue;const b=A(u);if(f&&b!==f)continue;const p=c?"typed":"added";if(d&&d.has(p))continue;const k=m(p,u.uri,h);n.push({id:k,entity:u,at:h,authorUri:y,kindUri:c,subGraph:b,layer:u.trustLevel,event:p,clickable:!0})}return n.sort((u,c)=>u.at&&c.at?c.at.getTime()-u.at.getTime():u.at&&!c.at?-1:!u.at&&c.at?1:u.entity.label.localeCompare(c.entity.label)),{items:n.slice(0,a),hasMore:n.length>a}},[i,a,o,r,f,e,l])}function C(i,s=new Date){const a=n=>{const u=new Date(n);return u.setHours(0,0,0,0),u},o=a(s),r=new Date(o.getTime()-1440*60*1e3),f=new Date(o.getTime()-10080*60*1e3),e={},t=[],l=(n,u,c)=>{e[n]||(e[n]={key:n,label:u,items:[]},t.push(n)),e[n].items.push(c)};for(const n of i){if(!n.at){l("undated","Undated",n);continue}const u=a(n.at);if(u.getTime()===o.getTime())l("today","Today",n);else if(u.getTime()===r.getTime())l("yesterday","Yesterday",n);else if(n.at.getTime()>=f.getTime())l("this-week","Earlier this week",n);else{const c=n.at.toLocaleString(void 0,{month:"long",year:"numeric"});l(`m-${c}`,c,n)}}const d=t.indexOf("undated");return d!==-1&&d<t.length-1&&(t.splice(d,1),t.push("undated")),t.map(n=>e[n])}function D(i,s){const{entitiesByUri:a,agentUri:o,subGraph:r,limit:f=200}=s,e=[];for(const t of i){if(o&&t.agent!==o||r&&t.subGraph!==r)continue;const l=g(t.publishedAt);if(!l)continue;const d=v(t.rootUri),n=a.get(d),u=n!=null;e.push({id:m("promoted",t.opUri,l,d),entity:n??x(d),at:l,authorUri:t.agent,kindUri:null,subGraph:t.subGraph??null,layer:"shared",event:"promoted",clickable:u})}return e.sort((t,l)=>t.at&&l.at?l.at.getTime()-t.at.getTime():t.at&&!l.at?-1:!t.at&&l.at?1:t.entity.label.localeCompare(l.entity.label)),e.slice(0,f)}function x(i){return{uri:i,label:w(i),types:[],trustLevel:"shared",layers:new Set(["shared"]),subGraphs:new Set,properties:new Map,connections:[]}}function O(i,s={}){const{agentUri:a,subGraph:o,limit:r=200}=s,f=[];for(const e of i){if(a&&e.agentUri!==a||o&&e.subGraph!==o)continue;const t=g(e.publishedAt);if(!t)continue;const l=e.kind==="promoted"?"promoted":"added",d=e.kind==="promoted"?"shared":"working",n=v(e.assertionUri);f.push({id:m(l,e.eventUri,t,n),entity:{uri:n,label:e.assertionName||w(n),types:[],trustLevel:d,layers:new Set([d]),subGraphs:e.subGraph?new Set([e.subGraph]):new Set,properties:new Map,connections:[]},at:t,authorUri:e.agentUri,kindUri:null,subGraph:e.subGraph??null,layer:d,event:l,entityCount:e.entityCount,clickable:!1})}return f.sort((e,t)=>e.at&&t.at?t.at.getTime()-e.at.getTime():e.at&&!t.at?-1:!e.at&&t.at?1:e.entity.label.localeCompare(t.entity.label)),f.slice(0,r)}function N(i,s={}){const{swmEvents:a,lifecycleEvents:o,...r}=s,f=o!=null,t=$(i,{...r,excludeEvents:f?["added"]:void 0});return T.useMemo(()=>{const l=r.limit??200;if(s.typeIri)return{items:t.items,hasMore:t.hasMore};if(!f&&(!a||a.length===0))return{items:t.items,hasMore:t.hasMore};let d;if(f)d=O(o,{agentUri:r.agentUri,subGraph:r.subGraph,limit:Number.POSITIVE_INFINITY});else{const c=new Map;for(const h of i)c.set(h.uri,h);d=D(a,{entitiesByUri:c,agentUri:r.agentUri,subGraph:r.subGraph,limit:Number.POSITIVE_INFINITY})}const n=[...t.items,...d];n.sort((c,h)=>c.at&&h.at?h.at.getTime()-c.at.getTime():c.at&&!h.at?-1:!c.at&&h.at?1:c.entity.label.localeCompare(h.entity.label));const u=t.hasMore||n.length>l;return{items:n.slice(0,l),hasMore:u}},[t,a,o,f,i,r.agentUri,r.subGraph,r.limit,s.typeIri])}function R(i,s=new Date){if(!i)return"—";const a=s.getTime()-i.getTime(),o=Math.abs(a),r=a<0,f=6e4,e=f*60,t=e*24;return o<f?r?"in a moment":"just now":o<e?r?`in ${Math.floor(o/f)}m`:`${Math.floor(o/f)}m ago`:o<t?r?`in ${Math.floor(o/e)}h`:`${Math.floor(o/e)}h ago`:o<7*t?r?`in ${Math.floor(o/t)}d`:`${Math.floor(o/t)}d ago`:i.toLocaleDateString(void 0,{month:"short",day:"numeric"})}export{C as b,R as r,N as u};
1
+ import{be as T,u as w,bw as v}from"./index-DW3dBcQk.js";const M=["http://purl.org/dc/terms/created","http://dkg.io/ontology/github/mergedAt","http://dkg.io/ontology/github/closedAt","http://dkg.io/ontology/decisions/date","http://dkg.io/ontology/tasks/dueDate"],U="http://www.w3.org/ns/prov#wasAttributedTo",I=new Set(["http://dkg.io/ontology/decisions/Decision","http://dkg.io/ontology/tasks/Task","http://dkg.io/ontology/github/PullRequest","http://dkg.io/ontology/github/Issue","http://dkg.io/ontology/github/Commit"]);function g(i){const s=i.replace(/^"|"$/g,"").replace(/^"(.+)"(?:@\w+|\^\^.+)?$/,"$1"),a=new Date(s);return Number.isFinite(a.getTime())?a:null}function m(i,s,a,o){const r=a?a.toISOString():"no-ts";return o&&o!==s?`${i}|${s}|${o}|${r}`:`${i}|${s}|${r}`}function E(i){for(const s of M){const a=i.properties.get(s);if(a!=null&&a.length)for(const o of a){const r=g(o);if(r)return r}}return null}function G(i){for(const s of i.connections)if(s.predicate===U)return s.targetUri;return null}function S(i){for(const s of i.types)if(I.has(s))return s;return null}function A(i){for(const s of i.subGraphs)if(s!=="meta")return s;return null}function $(i,s={}){const{limit:a=200,agentUri:o,typeIri:r,subGraph:f,includeUndated:e=!0,excludeEvents:t}=s,l=t?[...t].sort().join(","):"";return T.useMemo(()=>{const d=t&&t.length>0?new Set(t):null,n=[];for(const u of i){const c=S(u);if(r&&c!==r)continue;const h=E(u);if(!h&&(!e||!c))continue;const y=G(u);if(o&&y!==o)continue;const b=A(u);if(f&&b!==f)continue;const p=c?"typed":"added";if(d&&d.has(p))continue;const k=m(p,u.uri,h);n.push({id:k,entity:u,at:h,authorUri:y,kindUri:c,subGraph:b,layer:u.trustLevel,event:p,clickable:!0})}return n.sort((u,c)=>u.at&&c.at?c.at.getTime()-u.at.getTime():u.at&&!c.at?-1:!u.at&&c.at?1:u.entity.label.localeCompare(c.entity.label)),{items:n.slice(0,a),hasMore:n.length>a}},[i,a,o,r,f,e,l])}function C(i,s=new Date){const a=n=>{const u=new Date(n);return u.setHours(0,0,0,0),u},o=a(s),r=new Date(o.getTime()-1440*60*1e3),f=new Date(o.getTime()-10080*60*1e3),e={},t=[],l=(n,u,c)=>{e[n]||(e[n]={key:n,label:u,items:[]},t.push(n)),e[n].items.push(c)};for(const n of i){if(!n.at){l("undated","Undated",n);continue}const u=a(n.at);if(u.getTime()===o.getTime())l("today","Today",n);else if(u.getTime()===r.getTime())l("yesterday","Yesterday",n);else if(n.at.getTime()>=f.getTime())l("this-week","Earlier this week",n);else{const c=n.at.toLocaleString(void 0,{month:"long",year:"numeric"});l(`m-${c}`,c,n)}}const d=t.indexOf("undated");return d!==-1&&d<t.length-1&&(t.splice(d,1),t.push("undated")),t.map(n=>e[n])}function D(i,s){const{entitiesByUri:a,agentUri:o,subGraph:r,limit:f=200}=s,e=[];for(const t of i){if(o&&t.agent!==o||r&&t.subGraph!==r)continue;const l=g(t.publishedAt);if(!l)continue;const d=w(t.rootUri),n=a.get(d),u=n!=null;e.push({id:m("promoted",t.opUri,l,d),entity:n??x(d),at:l,authorUri:t.agent,kindUri:null,subGraph:t.subGraph??null,layer:"shared",event:"promoted",clickable:u})}return e.sort((t,l)=>t.at&&l.at?l.at.getTime()-t.at.getTime():t.at&&!l.at?-1:!t.at&&l.at?1:t.entity.label.localeCompare(l.entity.label)),e.slice(0,f)}function x(i){return{uri:i,label:v(i),types:[],trustLevel:"shared",layers:new Set(["shared"]),subGraphs:new Set,properties:new Map,connections:[]}}function O(i,s={}){const{agentUri:a,subGraph:o,limit:r=200}=s,f=[];for(const e of i){if(a&&e.agentUri!==a||o&&e.subGraph!==o)continue;const t=g(e.publishedAt);if(!t)continue;const l=e.kind==="promoted"?"promoted":"added",d=e.kind==="promoted"?"shared":"working",n=w(e.assertionUri);f.push({id:m(l,e.eventUri,t,n),entity:{uri:n,label:e.assertionName||v(n),types:[],trustLevel:d,layers:new Set([d]),subGraphs:e.subGraph?new Set([e.subGraph]):new Set,properties:new Map,connections:[]},at:t,authorUri:e.agentUri,kindUri:null,subGraph:e.subGraph??null,layer:d,event:l,entityCount:e.entityCount,clickable:!1})}return f.sort((e,t)=>e.at&&t.at?t.at.getTime()-e.at.getTime():e.at&&!t.at?-1:!e.at&&t.at?1:e.entity.label.localeCompare(t.entity.label)),f.slice(0,r)}function N(i,s={}){const{swmEvents:a,lifecycleEvents:o,...r}=s,f=o!=null,t=$(i,{...r,excludeEvents:f?["added"]:void 0});return T.useMemo(()=>{const l=r.limit??200;if(s.typeIri)return{items:t.items,hasMore:t.hasMore};if(!f&&(!a||a.length===0))return{items:t.items,hasMore:t.hasMore};let d;if(f)d=O(o,{agentUri:r.agentUri,subGraph:r.subGraph,limit:Number.POSITIVE_INFINITY});else{const c=new Map;for(const h of i)c.set(h.uri,h);d=D(a,{entitiesByUri:c,agentUri:r.agentUri,subGraph:r.subGraph,limit:Number.POSITIVE_INFINITY})}const n=[...t.items,...d];n.sort((c,h)=>c.at&&h.at?h.at.getTime()-c.at.getTime():c.at&&!h.at?-1:!c.at&&h.at?1:c.entity.label.localeCompare(h.entity.label));const u=t.hasMore||n.length>l;return{items:n.slice(0,l),hasMore:u}},[t,a,o,f,i,r.agentUri,r.subGraph,r.limit,s.typeIri])}function R(i,s=new Date){if(!i)return"—";const a=s.getTime()-i.getTime(),o=Math.abs(a),r=a<0,f=6e4,e=f*60,t=e*24;return o<f?r?"in a moment":"just now":o<e?r?`in ${Math.floor(o/f)}m`:`${Math.floor(o/f)}m ago`:o<t?r?`in ${Math.floor(o/e)}h`:`${Math.floor(o/e)}h ago`:o<7*t?r?`in ${Math.floor(o/t)}d`:`${Math.floor(o/t)}d ago`:i.toLocaleDateString(void 0,{month:"short",day:"numeric"})}export{C as b,R as r,N as u};
@@ -5,8 +5,8 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>DKG Node</title>
7
7
  <link rel="icon" type="image/png" sizes="120x120" href="/ui/favicon.png" />
8
- <script type="module" crossorigin src="/ui/assets/index-MQh8C4aJ.js"></script>
9
- <link rel="stylesheet" crossorigin href="/ui/assets/index-xKO-U_eV.css">
8
+ <script type="module" crossorigin src="/ui/assets/index-DW3dBcQk.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/ui/assets/index-CIt7zWgM.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@origintrail-official/dkg-node-ui",
3
- "version": "10.0.23",
3
+ "version": "10.0.24",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,9 +26,9 @@
26
26
  "viem": "^2.53.1",
27
27
  "zod": "^3.25.76",
28
28
  "zustand": "^5.0.12",
29
- "@origintrail-official/dkg-core": "10.0.23",
30
- "@origintrail-official/dkg-node-store": "10.0.23",
31
- "@origintrail-official/dkg-graph-viz": "10.0.23"
29
+ "@origintrail-official/dkg-graph-viz": "10.0.24",
30
+ "@origintrail-official/dkg-node-store": "10.0.24",
31
+ "@origintrail-official/dkg-core": "10.0.24"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@playwright/test": "^1.59.1",
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-CfVUpsfM.js","assets/index-MQh8C4aJ.js","assets/index-xKO-U_eV.css","assets/string-DtUow4KV.js","assets/OnChainProvenanceCard-BV9-G1cT.js","assets/useEntityOnChainReceipt-BvWQ6qdT.js"])))=>i.map(i=>d[i]);
2
- import{bd as i,$ as pe,aj as B,q as oe,bG as be,aO as e,R as K,bz as F,O as ge,bF as q,af as xe,aR as de,bc as fe,b2 as je,b3 as Ne,f as we,bb as ie,F as ye,E as re,_ as Y,aY as Se}from"./index-MQh8C4aJ.js";import{t as he}from"./truncate-BaiMkAOo.js";const ke={"application/pdf":"pdf","application/json":"text","text/plain":"text","text/csv":"text","text/markdown":"markdown","image/png":"image","image/jpeg":"image","image/gif":"image","image/webp":"image"};function ne(s){const c=ke[s];return c?c==="markdown"?"text":c:"binary"}async function ce(s){const c=await fetch(s,{headers:oe()});if(!c.ok)throw new Error(`HTTP ${c.status}`);const l=await c.blob();return URL.createObjectURL(l)}function Ce({open:s,onClose:c,assertionName:l,contextGraphId:g,subGraphName:d}){const[r,v]=i.useState(null),[N,C]=i.useState(null),[h,w]=i.useState(null),[y,x]=i.useState(!0),[p,S]=i.useState(null);i.useEffect(()=>{if(s)return x(!0),S(null),v(null),C(null),w(null),pe(l,g,d).then(async b=>{v(b);const A=ne(b.detectedContentType),E=B(b.fileHash,b.detectedContentType);if(A==="text"){const t=await fetch(E,{headers:oe()});t.ok&&C(await t.text())}else if(A==="pdf"||A==="image"){const t=await ce(E);w(t)}}).catch(b=>S(b.message??"Failed to load file info")).finally(()=>x(!1)),()=>{h&&URL.revokeObjectURL(h)}},[s,l,g,d]),i.useEffect(()=>()=>{h&&URL.revokeObjectURL(h)},[h]);const{dialogRef:n,onBackdropClick:u}=be(s,c);if(!s)return null;const o=r?ne(r.detectedContentType):null,f=r?B(r.fileHash,r.detectedContentType):null,k=async(b,A)=>{try{const E=await ce(b),t=document.createElement("a");t.href=E,t.download=A,t.click(),URL.revokeObjectURL(E)}catch{window.open(b,"_blank")}};return e.jsx("div",{className:"v10-modal-overlay",onClick:u,role:"presentation",children:e.jsxs("div",{className:"v10-modal-box v10-file-preview-modal",ref:n,role:"dialog","aria-modal":"true","aria-labelledby":"dkg-file-preview-title",children:[e.jsxs("div",{className:"v10-modal-header",children:[e.jsx("div",{id:"dkg-file-preview-title",className:"v10-modal-title",children:l}),e.jsx("button",{type:"button",className:"v10-modal-close",onClick:c,"aria-label":"Close file preview",title:"Close (Esc)",children:"×"})]}),y&&e.jsx("div",{className:"v10-file-preview-loading",children:"Loading file preview..."}),p&&e.jsxs("div",{className:"v10-file-preview-error",children:[e.jsx("p",{children:p}),e.jsx("p",{style:{fontSize:11,marginTop:4},children:"File preview requires the extraction status to still be cached on the node. If the node was restarted, the preview metadata may be unavailable."})]}),r&&!y&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"v10-file-preview-meta",children:[e.jsx("span",{className:"v10-file-preview-meta-item",children:r.detectedContentType}),e.jsxs("span",{className:"v10-file-preview-meta-item",children:[r.tripleCount," triples extracted"]}),e.jsx("span",{className:"v10-file-preview-meta-item",children:r.pipelineUsed}),r.completedAt&&e.jsx("span",{className:"v10-file-preview-meta-item",children:new Date(r.completedAt).toLocaleString()})]}),e.jsxs("div",{className:"v10-file-preview-content",children:[o==="pdf"&&h&&e.jsx("iframe",{src:h,className:"v10-file-preview-iframe",title:`Preview: ${l}`}),o==="image"&&h&&e.jsx("img",{src:h,alt:l,className:"v10-file-preview-image"}),o==="text"&&N!=null&&e.jsx("pre",{className:"v10-file-preview-text",children:N}),o==="binary"&&e.jsxs("div",{className:"v10-file-preview-binary",children:[e.jsx("p",{children:"This file type cannot be previewed directly."}),f&&e.jsx("button",{className:"v10-file-preview-download",onClick:()=>k(f,l),children:"Download file"})]})]}),e.jsxs("div",{className:"v10-file-preview-footer",children:[f&&e.jsx("button",{className:"v10-file-preview-download",onClick:()=>k(f,l),children:"Download original"}),r.mdIntermediateHash&&e.jsx("button",{className:"v10-file-preview-download",onClick:()=>k(B(r.mdIntermediateHash,"text/markdown"),`${l}.md`),children:"Download markdown intermediate"})]})]})]})})}const Ee=i.lazy(()=>Y(()=>import("./index-CfVUpsfM.js").then(s=>s.h),__vite__mapDeps([0,1,2,3])).then(s=>({default:s.RdfGraph}))),Le=i.lazy(()=>Y(()=>import("./index-CfVUpsfM.js").then(s=>s.h),__vite__mapDeps([0,1,2,3])).then(s=>({default:s.NodePanel}))),Pe=i.lazy(()=>Y(()=>import("./OnChainProvenanceCard-BV9-G1cT.js"),__vite__mapDeps([4,1,2,0,3,5])).then(s=>({default:s.OnChainProvenanceCard}))),Ae={wm:{label:"Working Memory",color:"var(--layer-working)",icon:"◇",description:"Private agent drafts. Fast local storage."},swm:{label:"Shared Working Memory",color:"var(--layer-shared)",icon:"◈",description:"Shared proposals with collaborators. TTL-bounded."},vm:{label:"Verifiable Memory",color:"var(--layer-verified)",icon:"◉",description:"Endorsed, published, on-chain knowledge."}},Re={labelMode:"humanized",renderer:"2d",labels:Se({extraPredicates:["http://schema.org/text"]}),style:{classColors:{"http://schema.org/Person":"#f472b6","http://schema.org/Organization":"#fb923c","http://schema.org/Place":"#34d399","http://schema.org/Product":"#c084fc","http://schema.org/Event":"#facc15","http://schema.org/CreativeWork":"#7dd3fc","http://schema.org/Thing":"#94a3b8"},defaultNodeColor:"#94a3b8",defaultEdgeColor:"#5f8598",edgeWidth:.9},hexagon:{baseSize:4,minSize:3,maxSize:6,scaleWithDegree:!0},focus:{maxNodes:3e3,hops:999}},Te=e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2"}),e.jsx("line",{x1:"3",y1:"9",x2:"21",y2:"9"}),e.jsx("line",{x1:"3",y1:"15",x2:"21",y2:"15"}),e.jsx("line",{x1:"9",y1:"3",x2:"9",y2:"21"})]}),Me=e.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"6",cy:"6",r:"3"}),e.jsx("circle",{cx:"18",cy:"6",r:"3"}),e.jsx("circle",{cx:"6",cy:"18",r:"3"}),e.jsx("circle",{cx:"18",cy:"18",r:"3"}),e.jsx("line",{x1:"8.5",y1:"7.5",x2:"15.5",y2:"16.5"}),e.jsx("line",{x1:"15.5",y1:"7.5",x2:"8.5",y2:"16.5"})]});function He({layer:s,contextGraphId:c,externalQuery:l,externalQueryKey:g,queryPresetOptions:d}){var le,te;const r=Ae[s],[v,N]=i.useState("graph"),[C,h]=i.useState(""),[w,y]=i.useState(""),[x,p]=i.useState(""),[S,n]=i.useState(""),[u,o]=i.useState("any"),[f,k]=i.useState(50),[b,A]=i.useState(""),[E,t]=i.useState("any"),[m,L]=i.useState(50),[U,P]=i.useState(s!=="vm"),j=K.useRef(s);K.useEffect(()=>{j.current!==s&&(j.current=s,h(""),P(s!=="vm"),y(""),p(""),n(""),o("any"),k(50),A(""),t("any"),L(50))},[s]),K.useEffect(()=>{l!==void 0&&(h(""),y(l),p(l))},[l,g]);const W=i.useMemo(()=>s==="wm"?`SELECT ?s ?p ?o WHERE { GRAPH <${`did:dkg:context-graph:${c}/_meta`}> { ?g <http://dkg.io/ontology/memoryLayer> "WM" } GRAPH ?g { ?s ?p ?o } FILTER(!CONTAINS(STR(?g), "/meta/assertion/")) } LIMIT 1000`:s==="vm"?Ue({query:b,field:E,limit:m}):"SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 500",[c,s,E,m,b]),R=x||W,O=s==="swm"?"_shared_memory":void 0,V=s==="swm",J=s==="vm"?"verifiable-memory":void 0,X=s==="wm"&&R===W,{data:M,loading:H,error:Z,refresh:T}=F(()=>ge(R,{contextGraphId:c,includeSharedMemory:V,graphSuffix:O,view:J,includeContextGraphPartitions:X}),[R,c,V,O,J,X],0);q(c,T,{layers:[s]});const{data:I}=F(xe,[],3e4),me=I==null?void 0:I.blockExplorerUrl,ee=i.useCallback(()=>{const a=w.trim();if(a===x){T();return}p(a)},[x,w,T]),se=i.useCallback(()=>{const a=S!==b||u!==E||f!==m;if(a&&(A(S),t(u),L(f)),x){p("");return}a||T()},[x,E,m,b,u,f,S,T]),_=((le=M==null?void 0:M.result)==null?void 0:le.bindings)??((te=M==null?void 0:M.results)==null?void 0:te.bindings)??[],z=i.useMemo(()=>_.map(a=>({subject:$(a.s)??"",predicate:$(a.p)??"",object:$(a.o)??""})).filter(a=>a.subject&&a.predicate&&a.object),[_]),ue=i.useCallback(a=>{a!=null&&a.id&&p(`SELECT (<${a.id}> AS ?s) ?p ?o WHERE { <${a.id}> ?p ?o } LIMIT 100`)},[]);return e.jsxs("div",{className:"v10-memory-layer-view",children:[e.jsxs("div",{className:"v10-mlv-header",children:[e.jsx("span",{className:"v10-mlv-icon",style:{color:r.color},children:r.icon}),e.jsxs("div",{children:[e.jsx("h2",{className:"v10-mlv-title",children:r.label}),e.jsx("p",{className:"v10-mlv-desc",children:r.description})]})]}),s==="wm"&&e.jsx(_e,{contextGraphId:c,onPromoted:T}),s==="swm"&&e.jsx($e,{contextGraphId:c,onPublished:T}),s==="vm"&&e.jsxs("div",{className:"v10-vm-search-panel",children:[e.jsxs("div",{className:"v10-vm-search-header",children:[e.jsxs("div",{children:[e.jsx("div",{className:"v10-vm-search-title",children:"Search Verifiable Memory"}),e.jsx("div",{className:"v10-vm-search-desc",children:"Search published triples by subject, predicate, object, or across all fields."})]}),e.jsx("button",{className:"v10-vm-search-toggle",type:"button",onClick:()=>P(a=>!a),children:U?"Hide SPARQL":"Advanced SPARQL"})]}),e.jsxs("div",{className:"v10-vm-search-controls",children:[e.jsx("input",{type:"text",className:"v10-mlv-query-input",placeholder:"Search verifiable memory...",value:S,onChange:a=>n(a.target.value),onKeyDown:a=>{a.key==="Enter"&&se()}}),e.jsxs("select",{className:"v10-vm-search-select",value:u,onChange:a=>o(a.target.value),children:[e.jsx("option",{value:"any",children:"Any field"}),e.jsx("option",{value:"subject",children:"Subject"}),e.jsx("option",{value:"predicate",children:"Predicate"}),e.jsx("option",{value:"object",children:"Object"})]}),e.jsxs("select",{className:"v10-vm-search-select",value:String(f),onChange:a=>k(Number.parseInt(a.target.value,10)||50),children:[e.jsx("option",{value:"25",children:"25 rows"}),e.jsx("option",{value:"50",children:"50 rows"}),e.jsx("option",{value:"100",children:"100 rows"}),e.jsx("option",{value:"200",children:"200 rows"})]}),e.jsx("button",{className:"v10-mlv-run-btn",onClick:se,children:"Search"})]})]}),(s!=="vm"||U)&&e.jsxs("div",{className:"v10-mlv-query-bar",children:[d!=null&&d.length?e.jsxs("select",{className:"v10-vm-search-select",value:C,onChange:a=>{const D=a.target.value;h(D);const G=d.find(ve=>ve.label===D),ae=(G==null?void 0:G.query)??"";y(ae),p(ae)},children:[e.jsx("option",{value:"",children:"Select common query..."}),d.map(a=>e.jsx("option",{value:a.label,children:a.label},a.label))]}):e.jsx("input",{type:"text",className:"v10-mlv-query-input",placeholder:"Custom SPARQL query...",value:w,onChange:a=>y(a.target.value),onKeyDown:a=>{a.key==="Enter"&&ee()}}),e.jsx("button",{className:"v10-mlv-run-btn",onClick:ee,children:"Run"}),x&&e.jsx("button",{className:"v10-mlv-clear-btn",onClick:()=>p(""),title:"Reset to full layer overview",children:"Reset"}),e.jsxs("div",{className:"v10-mlv-view-toggle",children:[e.jsx("button",{className:`v10-mlv-toggle-btn ${v==="table"?"active":""}`,onClick:()=>N("table"),title:"Table view",children:Te}),e.jsx("button",{className:`v10-mlv-toggle-btn ${v==="graph"?"active":""}`,onClick:()=>N("graph"),title:"Graph view",children:Me})]})]}),H&&e.jsx("p",{className:"v10-mlv-status",children:"Loading..."}),Z&&e.jsxs("p",{className:"v10-mlv-status",style:{color:"var(--accent-red)"},children:["Error: ",Z]}),!H&&_.length===0&&e.jsxs("div",{className:"v10-mlv-empty",children:[e.jsxs("p",{children:["No triples found in ",r.label.toLowerCase(),"."]}),e.jsxs("p",{style:{fontSize:11,marginTop:4},children:[s==="wm"&&"Import files or chat with your agent to generate working memory.",s==="swm"&&"Promote assertions from working memory to share with collaborators.",s==="vm"&&"Publish shared memory to create verified on-chain knowledge."]})]}),!H&&_.length>0&&v==="table"&&e.jsxs("div",{className:"v10-mlv-table-wrap",children:[e.jsxs("div",{className:"v10-mlv-result-count",children:[_.length," triples"]}),e.jsxs("table",{className:"v10-mlv-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"Subject"}),e.jsx("th",{children:"Predicate"}),e.jsx("th",{children:"Object"})]})}),e.jsx("tbody",{children:_.map((a,D)=>e.jsxs("tr",{children:[e.jsx("td",{className:"v10-mlv-cell",children:Q($(a.s))}),e.jsx("td",{className:"v10-mlv-cell",children:Q($(a.p))}),e.jsx("td",{className:"v10-mlv-cell",children:Q($(a.o))})]},D))})]})]}),!H&&z.length>0&&v==="graph"&&e.jsxs("div",{className:"v10-mlv-graph-container",children:[e.jsxs("div",{className:"v10-mlv-graph-info",children:[e.jsxs("span",{children:[z.length," triples"]}),x&&e.jsx("span",{className:"v10-mlv-graph-info-custom",children:"filtered"})]}),e.jsx(i.Suspense,{fallback:e.jsx("div",{className:"v10-mlv-graph-loading",children:"Loading graph renderer..."}),children:e.jsxs(Ee,{data:z,format:"triples",options:Re,style:{width:"100%",height:"100%"},onNodeClick:ue,initialFit:!0,children:[e.jsx(Le,{className:"v10-mlv-node-panel",showUri:!0,showTypes:!0,showProperties:!0,showMetadata:!1,maxValueLength:150}),e.jsx(Pe,{contextGraphId:c,layer:s,explorerUrl:me})]})})]})]})}function _e({contextGraphId:s,onPromoted:c}){const{data:l,loading:g,refresh:d}=F(()=>de(s,"wm"),[s],0);q(s,d,{layers:["wm"]});const[r,v]=i.useState(null),[N,C]=i.useState(null),[h,w]=i.useState(null),[y,x]=i.useState(null),p=i.useCallback(async n=>{v(n.graphUri),C(null),w(null);try{const u=await ie(s,n.name,n.subGraph?{subGraphName:n.subGraph}:{}),o=ye(n.name,u);C({message:o.message+(n.subGraph?` (in ${n.subGraph})`:""),kind:o.kind==="success"?"success":"noop",subGraph:n.subGraph}),d(),c()}catch(u){const o=re(n.name,u);w(o?{message:o.message,kind:"not-persisted"}:{message:(u==null?void 0:u.message)??"Promote failed",kind:"other"})}finally{v(null)}},[s,d,c]),S=i.useCallback(async()=>{if(!(l!=null&&l.length))return;v("__all__"),C(null),w(null);let n=0,u=null;try{for(const k of l)u=k.name,(await ie(s,k.name,k.subGraph?{subGraphName:k.subGraph}:{})).promotedCount===0&&(n+=1);const o=l.length-n,f=n>0?` (${n} already shared or still committing)`:"";C({message:o>0?`Shared ${o} complete Knowledge Asset${o===1?"":"s"} to Shared Working Memory${f}.`:"No Knowledge Assets were newly shared — all were already in Shared Working Memory or still committing.",kind:o>0?"success":"noop"}),d(),c()}catch(o){const f=re(u??"selected assertion",o);w(f?{message:f.message,kind:"not-persisted"}:{message:(o==null?void 0:o.message)??"Promote failed",kind:"other"})}finally{v(null)}},[l,s,d,c]);return g?e.jsx("div",{className:"v10-assertion-list-loading",children:"Loading assertions..."}):l!=null&&l.length?e.jsxs("div",{className:"v10-assertion-list",children:[e.jsxs("div",{className:"v10-assertion-list-header",children:[e.jsxs("span",{className:"v10-assertion-list-title",children:["Assertions in Working Memory (",l.length,")"]}),e.jsx("button",{className:"v10-btn-promote-all",disabled:r!==null,onClick:S,children:r==="__all__"?"Sharing...":"Share Complete KAs → SWM"})]}),e.jsx("div",{className:"v10-assertion-items",children:l.map(n=>e.jsxs("div",{className:"v10-assertion-item",children:[e.jsxs("div",{className:"v10-assertion-item-info",children:[e.jsx("button",{className:"v10-assertion-item-name clickable",title:n.graphUri,onClick:()=>x({name:n.name,subGraph:n.subGraph}),children:n.name}),n.tripleCount!=null&&e.jsxs("span",{className:"v10-assertion-item-count",children:[n.tripleCount," triples"]}),n.subGraph&&e.jsxs("span",{className:"v10-item-count v10-item-subgraph",title:`In sub-graph: ${n.subGraph}`,children:["› ",he(n.subGraph,18)]})]}),e.jsx("button",{className:"v10-btn-promote",disabled:r!==null,onClick:()=>p(n),title:"Share this complete Knowledge Asset to Shared Working Memory",children:r===n.graphUri?"Promoting...":"→ SWM"})]},n.graphUri))}),N&&e.jsx("div",{className:N.kind==="success"?"v10-promote-result success":"v10-promote-result info",children:N.message}),h&&e.jsx("div",{className:"v10-promote-result error",children:h.message}),y&&e.jsx(Ce,{open:!0,onClose:()=>x(null),assertionName:y.name,subGraphName:y.subGraph,contextGraphId:s})]}):null}function $e({contextGraphId:s,onPublished:c}){const{data:l,loading:g,refresh:d}=F(()=>de(s,"swm"),[s],0);q(s,d,{layers:["swm"]});const[r,v]=i.useState(new Set),[N,C]=i.useState(!1),[h,w]=i.useState(null),[y,x]=i.useState(null),p=(l==null?void 0:l.map(t=>t.graphUri))??[],S=p.length>0&&p.every(t=>r.has(t)),n=i.useCallback(t=>{v(m=>{const L=new Set(m);return L.has(t)?L.delete(t):L.add(t),L})},[]),u=i.useCallback(()=>{v(S?new Set:new Set(p))},[S,p]),o=i.useCallback(async t=>{if(t.length!==0){C(!0),w(null),x(null);try{w(await fe(s,t)),v(new Set),d(),c()}catch(m){x((m==null?void 0:m.message)??"Publish failed")}finally{C(!1)}}},[s,d,c]),f=i.useCallback(()=>{const t=(l??[]).filter(m=>r.has(m.graphUri));return o(t)},[l,r,o]),k=i.useCallback(()=>o(l??[]),[l,o]),b=(l==null?void 0:l.reduce((t,m)=>t+(m.tripleCount??0),0))??0,A=(l==null?void 0:l.filter(t=>r.has(t.graphUri)).reduce((t,m)=>t+(m.tripleCount??0),0))??0,E=!g&&(!l||l.length===0);return g?e.jsx("div",{className:"v10-assertion-list-loading",children:"Loading SWM contents..."}):E?e.jsxs("div",{className:"v10-publish-panel",children:[e.jsx("div",{className:"v10-publish-panel-header",children:e.jsx("span",{className:"v10-publish-panel-title",children:"Publish to Verifiable Memory"})}),e.jsx("div",{className:"v10-publish-panel-empty",children:"No data in Shared Working Memory yet. Promote assertions from Working Memory first."})]}):e.jsxs("div",{className:"v10-publish-panel",children:[e.jsxs("div",{className:"v10-publish-panel-header",children:[e.jsxs("span",{className:"v10-publish-panel-title",children:["Knowledge assets in Shared Working Memory (",l.length," asset",l.length===1?"":"s"," · ",b," triples)"]}),e.jsxs("div",{className:"v10-publish-panel-header-actions",children:[e.jsx("button",{className:"v10-publish-panel-refresh",onClick:d,title:"Refresh",children:"↻"}),e.jsx("button",{className:"v10-btn-promote-all",disabled:N,onClick:k,children:N&&r.size===0?"Publishing...":"Publish All → VM"})]})]}),e.jsxs("div",{className:"v10-publish-select-bar",children:[e.jsxs("label",{className:"v10-publish-select-all",children:[e.jsx("input",{type:"checkbox",checked:S,onChange:u}),e.jsx("span",{children:"Select all"})]}),r.size>0&&e.jsx("button",{className:"v10-btn-publish",disabled:N,onClick:f,children:N?"Publishing...":`Publish ${r.size} selected (${A} triples) → VM`})]}),e.jsx("div",{className:"v10-assertion-items",children:l.map(t=>e.jsxs("div",{className:`v10-assertion-item ${r.has(t.graphUri)?"selected":""}`,children:[e.jsx("label",{className:"v10-publish-entity-check",children:e.jsx("input",{type:"checkbox",checked:r.has(t.graphUri),onChange:()=>n(t.graphUri)})}),e.jsxs("div",{className:"v10-assertion-item-info",children:[e.jsx("span",{className:"v10-assertion-item-name",title:t.graphUri,children:t.name}),t.subGraph&&e.jsxs("span",{className:"v10-item-count v10-item-subgraph",title:`In sub-graph: ${t.subGraph}`,children:["› ",he(t.subGraph,18)]}),t.tripleCount!=null&&e.jsxs("span",{className:"v10-assertion-item-count",children:[t.tripleCount," triples"]})]})]},t.graphUri))}),h&&(()=>{const{published:t,total:m,partial:L,partialError:U,failures:P,sample:j,convictionCostCovered:W}=h,R=je(h),O=t===m&&t>0&&L===0,V=(j==null?void 0:j.status)==="confirmed"&&!!j.txHash;return e.jsxs("div",{className:`v10-publish-result-card ${O?"success":"error"}`,children:[e.jsx("div",{className:"v10-publish-result-title",children:t>0?`Published ${t} of ${m} knowledge asset${m===1?"":"s"} to Verifiable Memory`:R&&P.length===0?"Publish outcome unknown":"NOT published to Verifiable Memory"}),L>0&&e.jsxs("div",{className:"v10-publish-result-details",style:{marginBottom:6},children:["⚠ ",L," asset",L===1?"":"s",": ",Ne(U)]}),P.length>0&&e.jsxs("div",{className:"v10-publish-result-details",style:{marginBottom:6},children:[P.length," asset",P.length===1?"":"s"," could not be published — ",P[0].name,": ",P[0].error,P.length>1?` (+${P.length-1} more)`:""]}),R&&e.jsxs("div",{className:"v10-publish-result-details",style:{marginBottom:6},children:["⚠ ",R]}),e.jsxs("div",{className:"v10-publish-result-details",children:[(j==null?void 0:j.kaId)!=null&&e.jsxs("div",{children:[e.jsx("span",{className:"v10-publish-result-label",children:"Knowledge Asset:"})," ",j.kaId]}),V?e.jsxs("div",{className:"v10-publish-result-tx",children:[e.jsx("span",{className:"v10-publish-result-label",children:"Tx hash:"})," ",e.jsx("span",{className:"mono",title:j.txHash,children:j.txHash}),j.blockNumber!=null&&e.jsxs("span",{className:"v10-publish-result-block",children:[" (block ",j.blockNumber,")"]})]}):e.jsxs("div",{className:"v10-publish-result-details",children:["Verifiable Memory requires a confirmed ",e.jsx("code",{children:"KCCreated"})," event. If a publish did not land on-chain, check the node logs (typically a missing publisher wallet, an unfunded signer, or a chain adapter that isn't V10-ready)."]}),e.jsx(we,{convictionCostCovered:W})]})]})})(),y&&e.jsx("div",{className:"v10-publish-result-card error",children:y})]})}function $(s){if(s!=null)return typeof s=="string"?s:typeof s=="object"&&"value"in s?String(s.value):String(s)}function Q(s){if(!s)return"—";const c=s.lastIndexOf("#"),l=s.lastIndexOf("/"),g=Math.max(c,l);return g>=0?s.slice(g+1):s}function Ue(s){const c=Number.isFinite(s.limit)&&s.limit>0?Math.floor(s.limit):50,l=s.query.trim();if(!l)return`SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT ${c}`;const g=We(l.toLowerCase()),d={subject:`CONTAINS(LCASE(STR(?s)), "${g}")`,predicate:`CONTAINS(LCASE(STR(?p)), "${g}")`,object:`CONTAINS(LCASE(STR(?o)), "${g}")`};return`SELECT ?s ?p ?o WHERE { ?s ?p ?o . FILTER(${s.field==="any"?`(${d.subject} || ${d.predicate} || ${d.object})`:d[s.field]}) } LIMIT ${c}`}function We(s){return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")}export{He as MemoryLayerView,$e as PublishPanel};