@graphty/graph-io 0.3.49 → 0.3.50

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 (208) hide show
  1. package/dist/chunks/{approximations-Bzn3L-je.js → approximations-BRXsll0T.js} +2 -2
  2. package/dist/chunks/{approximations-Bzn3L-je.js.map → approximations-BRXsll0T.js.map} +1 -1
  3. package/dist/chunks/{block-iptrlMBb.js → block-yl0f_qLO.js} +27 -2
  4. package/dist/chunks/block-yl0f_qLO.js.map +1 -0
  5. package/dist/chunks/{context-C3p0RQxR.js → context-DizmppHy.js} +2 -2
  6. package/dist/chunks/{context-C3p0RQxR.js.map → context-DizmppHy.js.map} +1 -1
  7. package/dist/chunks/{credentials-DXHx7nwR.js → credentials-CmvJXYeH.js} +58 -9
  8. package/dist/chunks/credentials-CmvJXYeH.js.map +1 -0
  9. package/dist/chunks/{descriptor-DLA5kINx.js → descriptor-Dhez_Cew.js} +5 -1
  10. package/dist/chunks/{descriptor-DLA5kINx.js.map → descriptor-Dhez_Cew.js.map} +1 -1
  11. package/dist/chunks/{emit-BwHQkZle.js → emit-7Jkpg0yd.js} +132 -4
  12. package/dist/chunks/emit-7Jkpg0yd.js.map +1 -0
  13. package/dist/chunks/{exporter-nDfxIK5D.js → exporter-1Ajud15J.js} +4 -4
  14. package/dist/chunks/{exporter-nDfxIK5D.js.map → exporter-1Ajud15J.js.map} +1 -1
  15. package/dist/chunks/{exporter-D9yMtocA.js → exporter-B6yvL3wy.js} +3 -3
  16. package/dist/chunks/{exporter-D9yMtocA.js.map → exporter-B6yvL3wy.js.map} +1 -1
  17. package/dist/chunks/{exporter-_jrBTnos.js → exporter-CA5q8ROP.js} +4 -4
  18. package/dist/chunks/{exporter-_jrBTnos.js.map → exporter-CA5q8ROP.js.map} +1 -1
  19. package/dist/chunks/{exporter-D2CETOMK.js → exporter-CQQZFJ2v.js} +72 -10
  20. package/dist/chunks/exporter-CQQZFJ2v.js.map +1 -0
  21. package/dist/chunks/{generic-ymWCETAJ.js → generic-Dc21MAdg.js} +3 -3
  22. package/dist/chunks/{generic-ymWCETAJ.js.map → generic-Dc21MAdg.js.map} +1 -1
  23. package/dist/chunks/{importer-CT9mJ1nn.js → importer-C6NVpCXp.js} +7 -6
  24. package/dist/chunks/importer-C6NVpCXp.js.map +1 -0
  25. package/dist/chunks/{importer-GREKMdIf.js → importer-CKFe4q54.js} +4 -4
  26. package/dist/chunks/{importer-GREKMdIf.js.map → importer-CKFe4q54.js.map} +1 -1
  27. package/dist/chunks/{importer-PqaaKKnY.js → importer-CKbUbsJA.js} +4 -4
  28. package/dist/chunks/{importer-PqaaKKnY.js.map → importer-CKbUbsJA.js.map} +1 -1
  29. package/dist/chunks/{importer-DaLTjbds.js → importer-ClCsdgTJ.js} +97 -7
  30. package/dist/chunks/importer-ClCsdgTJ.js.map +1 -0
  31. package/dist/chunks/{importer-B92x1xY5.js → importer-CyVZTrf0.js} +3 -3
  32. package/dist/chunks/{importer-B92x1xY5.js.map → importer-CyVZTrf0.js.map} +1 -1
  33. package/dist/chunks/{importer-vRq4h3j5.js → importer-DgG4v1Ms.js} +89 -20
  34. package/dist/chunks/importer-DgG4v1Ms.js.map +1 -0
  35. package/dist/chunks/{importer-Vn5QvmmJ.js → importer-asFUrIsj.js} +2 -2
  36. package/dist/chunks/{importer-Vn5QvmmJ.js.map → importer-asFUrIsj.js.map} +1 -1
  37. package/dist/chunks/{lexicon-Clf4QIyl.js → lexicon-IVRq2Uoo.js} +2 -2
  38. package/dist/chunks/{lexicon-Clf4QIyl.js.map → lexicon-IVRq2Uoo.js.map} +1 -1
  39. package/dist/chunks/{round-trip-Zm3_ivgq.js → round-trip-Cy3_SHRZ.js} +2 -2
  40. package/dist/chunks/{round-trip-Zm3_ivgq.js.map → round-trip-Cy3_SHRZ.js.map} +1 -1
  41. package/dist/chunks/{sigv4-EokFic1V.js → sigv4-BXwVbza3.js} +3 -3
  42. package/dist/chunks/{sigv4-EokFic1V.js.map → sigv4-BXwVbza3.js.map} +1 -1
  43. package/dist/chunks/{styles-CCs214_3.js → styles-CAVmBLgp.js} +4 -4
  44. package/dist/chunks/{styles-CCs214_3.js.map → styles-CAVmBLgp.js.map} +1 -1
  45. package/dist/chunks/{styles-DPQQIig4.js → styles-CPczw1Jz.js} +4 -4
  46. package/dist/chunks/{styles-DPQQIig4.js.map → styles-CPczw1Jz.js.map} +1 -1
  47. package/dist/chunks/{styles-Cm62yyQX.js → styles-boK6Ln54.js} +65 -30
  48. package/dist/chunks/styles-boK6Ln54.js.map +1 -0
  49. package/dist/chunks/{styles-yed-UMFdNqze.js → styles-yed-XeFBQ6VS.js} +8 -8
  50. package/dist/chunks/{styles-yed-UMFdNqze.js.map → styles-yed-XeFBQ6VS.js.map} +1 -1
  51. package/dist/cx.js +2 -2
  52. package/dist/cx2.js +2 -2
  53. package/dist/cys.js +1 -1
  54. package/dist/dot.js +7 -4
  55. package/dist/gexf.js +2 -2
  56. package/dist/gml.js +8 -8
  57. package/dist/gml.js.map +1 -1
  58. package/dist/graph-io.js +129 -104
  59. package/dist/graph-io.js.map +1 -1
  60. package/dist/graphml.js +2 -2
  61. package/dist/json.js +1 -1
  62. package/dist/pajek.js +1 -1
  63. package/dist/sources-cypher.js +25 -22
  64. package/dist/sources-cypher.js.map +1 -1
  65. package/dist/sources-ndex.js +2 -2
  66. package/dist/sources-rest.js +20 -4
  67. package/dist/sources-rest.js.map +1 -1
  68. package/dist/sources-sparql.js +40 -6
  69. package/dist/sources-sparql.js.map +1 -1
  70. package/dist/src/formats/dot/exporter.d.ts.map +1 -1
  71. package/dist/src/formats/dot/exporter.js +34 -2
  72. package/dist/src/formats/dot/exporter.js.map +1 -1
  73. package/dist/src/formats/dot/importer.d.ts +6 -1
  74. package/dist/src/formats/dot/importer.d.ts.map +1 -1
  75. package/dist/src/formats/dot/importer.js +65 -5
  76. package/dist/src/formats/dot/importer.js.map +1 -1
  77. package/dist/src/formats/dot/index.d.ts +3 -1
  78. package/dist/src/formats/dot/index.d.ts.map +1 -1
  79. package/dist/src/formats/dot/index.js +2 -1
  80. package/dist/src/formats/dot/index.js.map +1 -1
  81. package/dist/src/formats/dot/label-places.d.ts +7 -0
  82. package/dist/src/formats/dot/label-places.d.ts.map +1 -1
  83. package/dist/src/formats/dot/label-places.js +9 -3
  84. package/dist/src/formats/dot/label-places.js.map +1 -1
  85. package/dist/src/formats/dot/names.d.ts +13 -0
  86. package/dist/src/formats/dot/names.d.ts.map +1 -1
  87. package/dist/src/formats/dot/names.js +13 -0
  88. package/dist/src/formats/dot/names.js.map +1 -1
  89. package/dist/src/formats/dot/styles.d.ts +10 -0
  90. package/dist/src/formats/dot/styles.d.ts.map +1 -1
  91. package/dist/src/formats/dot/styles.js +49 -3
  92. package/dist/src/formats/dot/styles.js.map +1 -1
  93. package/dist/src/formats/gml/styles.js +1 -1
  94. package/dist/src/formats/gml/styles.js.map +1 -1
  95. package/dist/src/formats/graphml/styles-yed.js +3 -3
  96. package/dist/src/formats/graphml/styles-yed.js.map +1 -1
  97. package/dist/src/formats/graphml/styles-yfiles3.d.ts.map +1 -1
  98. package/dist/src/formats/graphml/styles-yfiles3.js +6 -4
  99. package/dist/src/formats/graphml/styles-yfiles3.js.map +1 -1
  100. package/dist/src/formats/json/styles.d.ts.map +1 -1
  101. package/dist/src/formats/json/styles.js +94 -6
  102. package/dist/src/formats/json/styles.js.map +1 -1
  103. package/dist/src/formats/pajek/draw.d.ts +8 -0
  104. package/dist/src/formats/pajek/draw.d.ts.map +1 -1
  105. package/dist/src/formats/pajek/draw.js +10 -0
  106. package/dist/src/formats/pajek/draw.js.map +1 -1
  107. package/dist/src/formats/pajek/styles.d.ts.map +1 -1
  108. package/dist/src/formats/pajek/styles.js +142 -25
  109. package/dist/src/formats/pajek/styles.js.map +1 -1
  110. package/dist/src/index.d.ts +3 -3
  111. package/dist/src/index.d.ts.map +1 -1
  112. package/dist/src/index.js +2 -2
  113. package/dist/src/index.js.map +1 -1
  114. package/dist/src/sources/credentials.d.ts +50 -1
  115. package/dist/src/sources/credentials.d.ts.map +1 -1
  116. package/dist/src/sources/credentials.js +69 -0
  117. package/dist/src/sources/credentials.js.map +1 -1
  118. package/dist/src/sources/cypher/index.d.ts.map +1 -1
  119. package/dist/src/sources/cypher/index.js +12 -11
  120. package/dist/src/sources/cypher/index.js.map +1 -1
  121. package/dist/src/sources/cypher/query-builder.d.ts +6 -6
  122. package/dist/src/sources/cypher/query-builder.d.ts.map +1 -1
  123. package/dist/src/sources/cypher/query-builder.js +15 -15
  124. package/dist/src/sources/cypher/query-builder.js.map +1 -1
  125. package/dist/src/sources/rest/descriptor.d.ts.map +1 -1
  126. package/dist/src/sources/rest/descriptor.js +4 -0
  127. package/dist/src/sources/rest/descriptor.js.map +1 -1
  128. package/dist/src/sources/rest/openalex.d.ts +4 -2
  129. package/dist/src/sources/rest/openalex.d.ts.map +1 -1
  130. package/dist/src/sources/rest/openalex.js +4 -2
  131. package/dist/src/sources/rest/openalex.js.map +1 -1
  132. package/dist/src/sources/rest/source.d.ts.map +1 -1
  133. package/dist/src/sources/rest/source.js +23 -0
  134. package/dist/src/sources/rest/source.js.map +1 -1
  135. package/dist/src/sources/run.d.ts +2 -0
  136. package/dist/src/sources/run.d.ts.map +1 -1
  137. package/dist/src/sources/run.js +30 -3
  138. package/dist/src/sources/run.js.map +1 -1
  139. package/dist/src/sources/sparql/index.d.ts.map +1 -1
  140. package/dist/src/sources/sparql/index.js +14 -1
  141. package/dist/src/sources/sparql/index.js.map +1 -1
  142. package/dist/src/sources/sparql/query.d.ts +2 -1
  143. package/dist/src/sources/sparql/query.d.ts.map +1 -1
  144. package/dist/src/sources/sparql/query.js +55 -4
  145. package/dist/src/sources/sparql/query.js.map +1 -1
  146. package/dist/src/sources/types.d.ts +29 -0
  147. package/dist/src/sources/types.d.ts.map +1 -1
  148. package/dist/src/styles/canon/enums.d.ts.map +1 -1
  149. package/dist/src/styles/canon/enums.js +8 -0
  150. package/dist/src/styles/canon/enums.js.map +1 -1
  151. package/dist/src/styles/cyjs/cascade.d.ts.map +1 -1
  152. package/dist/src/styles/cyjs/cascade.js +124 -0
  153. package/dist/src/styles/cyjs/cascade.js.map +1 -1
  154. package/dist/src/styles/cyjs/defaults-table.d.ts.map +1 -1
  155. package/dist/src/styles/cyjs/defaults-table.js +1 -0
  156. package/dist/src/styles/cyjs/defaults-table.js.map +1 -1
  157. package/dist/src/styles/cyjs/emit.d.ts.map +1 -1
  158. package/dist/src/styles/cyjs/emit.js +30 -1
  159. package/dist/src/styles/cyjs/emit.js.map +1 -1
  160. package/dist/src/styles/cyjs/mappers.d.ts.map +1 -1
  161. package/dist/src/styles/cyjs/mappers.js +14 -0
  162. package/dist/src/styles/cyjs/mappers.js.map +1 -1
  163. package/dist/src/styles/types.d.ts +65 -0
  164. package/dist/src/styles/types.d.ts.map +1 -1
  165. package/dist/src/styles/vocabulary.d.ts.map +1 -1
  166. package/dist/src/styles/vocabulary.js +21 -0
  167. package/dist/src/styles/vocabulary.js.map +1 -1
  168. package/dist/styles.js +6 -6
  169. package/dist/xgmml.js +3 -3
  170. package/package.json +2 -2
  171. package/src/formats/dot/exporter.ts +37 -1
  172. package/src/formats/dot/importer.ts +75 -4
  173. package/src/formats/dot/index.ts +3 -1
  174. package/src/formats/dot/label-places.ts +16 -3
  175. package/src/formats/dot/names.ts +15 -0
  176. package/src/formats/dot/styles.ts +55 -3
  177. package/src/formats/gml/styles.ts +1 -1
  178. package/src/formats/graphml/styles-yed.ts +3 -3
  179. package/src/formats/graphml/styles-yfiles3.ts +6 -4
  180. package/src/formats/json/styles.ts +102 -6
  181. package/src/formats/pajek/draw.ts +11 -0
  182. package/src/formats/pajek/styles.ts +151 -26
  183. package/src/index.ts +7 -0
  184. package/src/sources/credentials.ts +90 -1
  185. package/src/sources/cypher/index.ts +12 -11
  186. package/src/sources/cypher/query-builder.ts +15 -15
  187. package/src/sources/rest/descriptor.ts +4 -0
  188. package/src/sources/rest/openalex.ts +4 -2
  189. package/src/sources/rest/source.ts +25 -0
  190. package/src/sources/run.ts +35 -3
  191. package/src/sources/sparql/index.ts +16 -1
  192. package/src/sources/sparql/query.ts +58 -4
  193. package/src/sources/types.ts +33 -0
  194. package/src/styles/canon/enums.ts +9 -0
  195. package/src/styles/cyjs/cascade.ts +143 -0
  196. package/src/styles/cyjs/defaults-table.ts +1 -0
  197. package/src/styles/cyjs/emit.ts +35 -1
  198. package/src/styles/cyjs/mappers.ts +14 -0
  199. package/src/styles/types.ts +65 -0
  200. package/src/styles/vocabulary.ts +21 -0
  201. package/dist/chunks/block-iptrlMBb.js.map +0 -1
  202. package/dist/chunks/credentials-DXHx7nwR.js.map +0 -1
  203. package/dist/chunks/emit-BwHQkZle.js.map +0 -1
  204. package/dist/chunks/exporter-D2CETOMK.js.map +0 -1
  205. package/dist/chunks/importer-CT9mJ1nn.js.map +0 -1
  206. package/dist/chunks/importer-DaLTjbds.js.map +0 -1
  207. package/dist/chunks/importer-vRq4h3j5.js.map +0 -1
  208. package/dist/chunks/styles-Cm62yyQX.js.map +0 -1
package/dist/graph-io.js CHANGED
@@ -15,51 +15,51 @@ import { c as collectBytes } from "./chunks/writer-DxjgHwSe.js";
15
15
  import { D as D2, d as d4, e as e5, j as j2, t as t3 } from "./chunks/writer-DxjgHwSe.js";
16
16
  import { csvImporter, csvExporter } from "./csv.js";
17
17
  import { CSV_CAPABILITIES, CSV_ISSUE, CSV_LOSS } from "./csv.js";
18
- import { c as cxExporter } from "./chunks/exporter-_jrBTnos.js";
19
- import { C as C3, a as a14 } from "./chunks/exporter-_jrBTnos.js";
20
- import { c as cxImporter } from "./chunks/importer-PqaaKKnY.js";
21
- import { C as C4 } from "./chunks/importer-PqaaKKnY.js";
22
- import { c as cx2Exporter } from "./chunks/exporter-nDfxIK5D.js";
23
- import { C as C5, a as a15 } from "./chunks/exporter-nDfxIK5D.js";
24
- import { c as cx2Importer } from "./chunks/importer-B92x1xY5.js";
25
- import { C as C6 } from "./chunks/importer-B92x1xY5.js";
26
- import { r as readZipDirectory, e as readZipEntry, d as cysImporter, c as cysExporter } from "./chunks/importer-GREKMdIf.js";
27
- import { C as C7, a as a16, b as b2 } from "./chunks/importer-GREKMdIf.js";
28
- import { b as dotImporter, d as dotExporter } from "./chunks/importer-DaLTjbds.js";
29
- import { D as D3, a as a17 } from "./chunks/importer-DaLTjbds.js";
18
+ import { c as cxExporter } from "./chunks/exporter-CA5q8ROP.js";
19
+ import { C as C3, a as a14 } from "./chunks/exporter-CA5q8ROP.js";
20
+ import { c as cxImporter } from "./chunks/importer-CKbUbsJA.js";
21
+ import { C as C4 } from "./chunks/importer-CKbUbsJA.js";
22
+ import { c as cx2Exporter } from "./chunks/exporter-1Ajud15J.js";
23
+ import { C as C5, a as a15 } from "./chunks/exporter-1Ajud15J.js";
24
+ import { c as cx2Importer } from "./chunks/importer-CyVZTrf0.js";
25
+ import { C as C6 } from "./chunks/importer-CyVZTrf0.js";
26
+ import { r as readZipDirectory, e as readZipEntry, d as cysImporter, c as cysExporter } from "./chunks/importer-CKFe4q54.js";
27
+ import { C as C7, a as a16, b as b2 } from "./chunks/importer-CKFe4q54.js";
28
+ import { b as dotImporter, d as dotExporter } from "./chunks/importer-ClCsdgTJ.js";
29
+ import { D as D3, a as a17 } from "./chunks/importer-ClCsdgTJ.js";
30
30
  import { gexfImporter, gexfExporter } from "./gexf.js";
31
31
  import { GEXF_1_2_CAPABILITIES, GEXF_ISSUE, GEXF_LOSS } from "./gexf.js";
32
32
  import { gmlImporter, gmlExporter } from "./gml.js";
33
33
  import { GML_ISSUE, GML_LOSS, GML_STYLE_BLOCK_KEY, GML_STYLE_CAPABILITIES } from "./gml.js";
34
- import { a as graphmlImporter, g as graphmlExporter } from "./chunks/importer-CT9mJ1nn.js";
35
- import { S as SNIFF_HEAD_BYTES, r as rankFormats, e as jsonImporter, c as jsonExporter } from "./chunks/exporter-D2CETOMK.js";
36
- import { G as G2, J as J2, a as a18, b as b3, d as d5, g as g3, h as h3, j as j3, f as f3, n as n3, i as i5, s as s2, k as k3 } from "./chunks/exporter-D2CETOMK.js";
34
+ import { a as graphmlImporter, g as graphmlExporter } from "./chunks/importer-C6NVpCXp.js";
35
+ import { S as SNIFF_HEAD_BYTES, r as rankFormats, e as jsonImporter, c as jsonExporter } from "./chunks/exporter-CQQZFJ2v.js";
36
+ import { G as G2, J as J2, a as a18, b as b3, d as d5, g as g3, h as h3, j as j3, f as f3, n as n3, i as i5, s as s2, k as k3 } from "./chunks/exporter-CQQZFJ2v.js";
37
37
  import { neo4jImporter, neo4jExporter } from "./neo4j.js";
38
38
  import { ID_SPACE_COLUMN, LABELS_COLUMN, NEO4J_CAPABILITIES, NEO4J_ISSUE, NEO4J_LOSS, ORIGINAL_ID_COLUMN, TYPE_COLUMN, exportNeo4jFiles } from "./neo4j.js";
39
39
  import { c as oboImporter, o as oboExporter } from "./chunks/exporter-BP6otMO6.js";
40
40
  import { O, a as a19, b as b4 } from "./chunks/exporter-BP6otMO6.js";
41
- import { d as pajekImporter, p as pajekExporter } from "./chunks/importer-vRq4h3j5.js";
42
- import { P as P3, a as a20, b as b5, c as c5 } from "./chunks/importer-vRq4h3j5.js";
43
- import { x as xgmmlExporter } from "./chunks/exporter-D9yMtocA.js";
44
- import { x as xgmmlImporter } from "./chunks/importer-Vn5QvmmJ.js";
41
+ import { d as pajekImporter, p as pajekExporter } from "./chunks/importer-DgG4v1Ms.js";
42
+ import { P as P3, a as a20, b as b5, c as c5 } from "./chunks/importer-DgG4v1Ms.js";
43
+ import { x as xgmmlExporter } from "./chunks/exporter-B6yvL3wy.js";
44
+ import { x as xgmmlImporter } from "./chunks/importer-asFUrIsj.js";
45
45
  import { C as CYPHER_DESCRIPTOR, N as NEO4J_DESCRIPTOR, a as NEPTUNE_DESCRIPTOR } from "./chunks/codes-BE2xir2k.js";
46
46
  import { S as S2 } from "./chunks/codes-BE2xir2k.js";
47
- import { N as NDEX_SOURCE_ID, C as CYPHER_SOURCE_ID, h as NEO4J_SOURCE_ID, i as NEPTUNE_SOURCE_ID, R as REST_SOURCE_ID, O as OPENALEX_SOURCE_ID, S as SPARQL_SOURCE_ID, j as SOURCE_FORMAT_PREFIX, f as failOn, k as checkParams, w as warnOn, o as originOf, l as checkLazySource, m as checkSource, b as failAlone } from "./chunks/credentials-DXHx7nwR.js";
48
- import { n as n4, p as p3, e as e6, g as g4, c as c6, d as d6, q as q2, s as s3 } from "./chunks/credentials-DXHx7nwR.js";
47
+ import { N as NDEX_SOURCE_ID, C as CYPHER_SOURCE_ID, h as NEO4J_SOURCE_ID, i as NEPTUNE_SOURCE_ID, R as REST_SOURCE_ID, O as OPENALEX_SOURCE_ID, S as SPARQL_SOURCE_ID, j as SOURCE_FORMAT_PREFIX, f as failOn, k as checkParams, l as credentialQuery, w as warnOn, o as originOf, m as checkLazySource, n as checkSource, b as failAlone } from "./chunks/credentials-CmvJXYeH.js";
48
+ import { p as p3, q as q2, e as e6, g as g4, r as r4, c as c6, d as d6, s as s3, t as t4 } from "./chunks/credentials-CmvJXYeH.js";
49
49
  import { N as NDEX_DESCRIPTOR } from "./chunks/descriptor-C-YDhtsn.js";
50
- import { R as REST_DESCRIPTOR, O as OPENALEX_DESCRIPTOR } from "./chunks/descriptor-DLA5kINx.js";
50
+ import { R as REST_DESCRIPTOR, O as OPENALEX_DESCRIPTOR } from "./chunks/descriptor-Dhez_Cew.js";
51
51
  import { S as SPARQL_DESCRIPTOR } from "./chunks/descriptor-B28U25x4.js";
52
- import { c as createSourceContext, L as LimitStop, d as detectRuntime } from "./chunks/context-C3p0RQxR.js";
53
- import { e as extractStyles } from "./chunks/generic-ymWCETAJ.js";
54
- import { s as prepareStyleExport, t as isKeptGraphtyProperty } from "./chunks/styles-Cm62yyQX.js";
55
- import { D as D4 } from "./chunks/styles-Cm62yyQX.js";
56
- import { sha256Hex } from "./chunks/sigv4-EokFic1V.js";
57
- import { G as G3, a as a21 } from "./chunks/constants-CKkYLPtt.js";
58
- import { G as G4 } from "./chunks/styles-yed-UMFdNqze.js";
59
- import { X as X3, a as a22 } from "./chunks/styles-CCs214_3.js";
60
- import { M as M3, d as d7, c as c7, p as p4, o, t as t4, x as x2 } from "./chunks/escape-CuCIzNMB.js";
61
- import { S as S3 } from "./chunks/block-iptrlMBb.js";
62
- import { j as j4, a as a23 } from "./chunks/styles-DPQQIig4.js";
52
+ import { c as createSourceContext, L as LimitStop, d as detectRuntime } from "./chunks/context-DizmppHy.js";
53
+ import { e as extractStyles } from "./chunks/generic-Dc21MAdg.js";
54
+ import { u as prepareStyleExport, v as isKeptGraphtyProperty } from "./chunks/styles-boK6Ln54.js";
55
+ import { D as D4, R as R3, a as a21, g as g5 } from "./chunks/styles-boK6Ln54.js";
56
+ import { sha256Hex } from "./chunks/sigv4-BXwVbza3.js";
57
+ import { G as G3, a as a22 } from "./chunks/constants-CKkYLPtt.js";
58
+ import { G as G4 } from "./chunks/styles-yed-XeFBQ6VS.js";
59
+ import { X as X3, a as a23 } from "./chunks/styles-CAVmBLgp.js";
60
+ import { M as M3, d as d7, c as c7, p as p4, o, t as t5, x as x2 } from "./chunks/escape-CuCIzNMB.js";
61
+ import { S as S3 } from "./chunks/block-yl0f_qLO.js";
62
+ import { j as j4, a as a24 } from "./chunks/styles-CPczw1Jz.js";
63
63
  const USED = /* @__PURE__ */ new Set(["ids", "defaultDirected", "weightFrom", "addMissingNodes"]);
64
64
  function defineLineFormat(definition) {
65
65
  const { format, extensions, mimeTypes = [], directed = false, comment = "#", sniff: sniff2, parseLine } = definition;
@@ -100,9 +100,9 @@ function defineLineFormat(definition) {
100
100
  edge: (source, target, attributes2) => {
101
101
  const raw = opts.weightFrom === null ? void 0 : attributes2?.[opts.weightFrom];
102
102
  const weight = raw === null || raw === void 0 ? void 0 : parseWeightText(String(raw), report);
103
- const [s4, t5] = [ids.text(source), ids.text(target)];
104
- const added = new Set([s4, t5].filter((id) => sink.indexOf(id) === INVALID_INDEX)).size;
105
- const edge = edges.addEdge(s4, t5, kind, weight, { line });
103
+ const [s4, t6] = [ids.text(source), ids.text(target)];
104
+ const added = new Set([s4, t6].filter((id) => sink.indexOf(id) === INVALID_INDEX)).size;
105
+ const edge = edges.addEdge(s4, t6, kind, weight, { line });
106
106
  report.counts.nodes += added;
107
107
  report.counts.edges++;
108
108
  write("edge", edge, attributes2);
@@ -197,18 +197,18 @@ function compareSnapshots(expected, actual, options = {}) {
197
197
  const tolerance = options.tolerance ?? 0;
198
198
  const ctx = {
199
199
  options,
200
- diff: (path, e7, a24, message) => {
200
+ diff: (path, e7, a25, message) => {
201
201
  diffs.push({
202
202
  path,
203
203
  expected: e7,
204
- actual: a24,
205
- message: message ?? `${path}: expected ${show(e7)}, got ${show(a24)}`
204
+ actual: a25,
205
+ message: message ?? `${path}: expected ${show(e7)}, got ${show(a25)}`
206
206
  });
207
207
  if (diffs.length >= limit) {
208
208
  throw new LimitReached();
209
209
  }
210
210
  },
211
- same: (e7, a24) => valuesEqual(e7, a24, tolerance)
211
+ same: (e7, a25) => valuesEqual(e7, a25, tolerance)
212
212
  };
213
213
  try {
214
214
  compareGraphs(expected, actual, ctx);
@@ -248,8 +248,8 @@ function compareGraphs(expected, actual, ctx) {
248
248
  function compareIds(expected, actual, diff) {
249
249
  const expectedIds = expected.ids.toArray();
250
250
  const actualIds = actual.ids.toArray();
251
- const n5 = Math.min(expectedIds.length, actualIds.length);
252
- for (let i6 = 0; i6 < n5; i6++) {
251
+ const n4 = Math.min(expectedIds.length, actualIds.length);
252
+ for (let i6 = 0; i6 < n4; i6++) {
253
253
  if (!Object.is(expectedIds[i6], actualIds[i6])) {
254
254
  diff(`ids[${i6}]`, expectedIds[i6], actualIds[i6]);
255
255
  }
@@ -366,16 +366,16 @@ function compareColumn(path, column, other, ctx) {
366
366
  ctx.diff(`${path}.length`, column.length, other.length);
367
367
  return;
368
368
  }
369
- for (let r4 = 0; r4 < column.length; r4++) {
370
- const eSet = column.isSet(r4);
371
- const aSet = other.isSet(r4);
369
+ for (let r5 = 0; r5 < column.length; r5++) {
370
+ const eSet = column.isSet(r5);
371
+ const aSet = other.isSet(r5);
372
372
  if (eSet !== aSet) {
373
- ctx.diff(`${path}[${r4}]`, eSet ? column.value(r4) : void 0, aSet ? other.value(r4) : void 0);
373
+ ctx.diff(`${path}[${r5}]`, eSet ? column.value(r5) : void 0, aSet ? other.value(r5) : void 0);
374
374
  } else if (eSet) {
375
- const ev = cellValue(column, r4);
376
- const av2 = cellValue(other, r4);
375
+ const ev = cellValue(column, r5);
376
+ const av2 = cellValue(other, r5);
377
377
  if (!ctx.same(ev, av2)) {
378
- ctx.diff(`${path}[${r4}]`, ev, av2);
378
+ ctx.diff(`${path}[${r5}]`, ev, av2);
379
379
  }
380
380
  }
381
381
  }
@@ -383,19 +383,19 @@ function compareColumn(path, column, other, ctx) {
383
383
  function compareDeclaration(path, column, other, ctx) {
384
384
  const { options, diff } = ctx;
385
385
  const e7 = column.meta;
386
- const a24 = other.meta;
386
+ const a25 = other.meta;
387
387
  if (options.dtypes !== false) {
388
388
  for (const key of ["dtype", "itemDtype", "components"]) {
389
- if (e7[key] !== a24[key]) {
390
- diff(`${path}.${key}`, e7[key], a24[key]);
389
+ if (e7[key] !== a25[key]) {
390
+ diff(`${path}.${key}`, e7[key], a25[key]);
391
391
  }
392
392
  }
393
393
  }
394
- if (options.roles !== false && e7.role !== a24.role) {
395
- diff(`${path}.role`, e7.role, a24.role);
394
+ if (options.roles !== false && e7.role !== a25.role) {
395
+ diff(`${path}.role`, e7.role, a25.role);
396
396
  }
397
397
  const eType = e7.origin?.type ?? null;
398
- const aType = a24.origin?.type ?? null;
398
+ const aType = a25.origin?.type ?? null;
399
399
  if (options.originType === true && eType !== aType) {
400
400
  diff(`${path}.origin.type`, eType, aType);
401
401
  }
@@ -412,38 +412,38 @@ function cellValue(column, row) {
412
412
  }
413
413
  }
414
414
  }
415
- function valuesEqual(e7, a24, tolerance) {
416
- if (typeof e7 === "number" && typeof a24 === "number") {
417
- if (Object.is(e7, a24)) {
415
+ function valuesEqual(e7, a25, tolerance) {
416
+ if (typeof e7 === "number" && typeof a25 === "number") {
417
+ if (Object.is(e7, a25)) {
418
418
  return true;
419
419
  }
420
- return Number.isFinite(e7) && Number.isFinite(a24) && Math.abs(e7 - a24) <= tolerance;
420
+ return Number.isFinite(e7) && Number.isFinite(a25) && Math.abs(e7 - a25) <= tolerance;
421
421
  }
422
422
  if (Array.isArray(e7) || ArrayBuffer.isView(e7)) {
423
423
  const ea = Array.from(e7);
424
- if (!(Array.isArray(a24) || ArrayBuffer.isView(a24))) {
424
+ if (!(Array.isArray(a25) || ArrayBuffer.isView(a25))) {
425
425
  return false;
426
426
  }
427
- const aa = Array.from(a24);
427
+ const aa = Array.from(a25);
428
428
  return ea.length === aa.length && ea.every((v2, i6) => valuesEqual(v2, aa[i6], tolerance));
429
429
  }
430
- if (typeof e7 === "object" && e7 !== null && typeof a24 === "object" && a24 !== null) {
430
+ if (typeof e7 === "object" && e7 !== null && typeof a25 === "object" && a25 !== null) {
431
431
  const eo = e7;
432
- const ao = a24;
432
+ const ao = a25;
433
433
  const keys = Object.keys(eo);
434
434
  if (keys.length !== Object.keys(ao).length) {
435
435
  return false;
436
436
  }
437
437
  return keys.every((k4) => Object.hasOwn(ao, k4) && valuesEqual(eo[k4], ao[k4], tolerance));
438
438
  }
439
- return Object.is(e7, a24);
439
+ return Object.is(e7, a25);
440
440
  }
441
- function typedEqual(a24, b6) {
442
- if (a24.length !== b6.length) {
441
+ function typedEqual(a25, b6) {
442
+ if (a25.length !== b6.length) {
443
443
  return false;
444
444
  }
445
- for (let i6 = 0; i6 < a24.length; i6++) {
446
- if (a24[i6] !== b6[i6]) {
445
+ for (let i6 = 0; i6 < a25.length; i6++) {
446
+ if (a25[i6] !== b6[i6]) {
447
447
  return false;
448
448
  }
449
449
  }
@@ -684,7 +684,8 @@ function prepare(source, rawParams, options, unit) {
684
684
  edges: counts.sink === null ? 0 : counts.sink.edgeCount - counts.edgesAtStart
685
685
  })
686
686
  });
687
- return { report, created, params, counts };
687
+ const secretQuery = options.credential === void 0 ? null : credentialQuery(options.credential);
688
+ return { report, created, params, counts, secretQuery };
688
689
  }
689
690
  function checkRuntime(source, report) {
690
691
  const { descriptor } = source;
@@ -744,8 +745,8 @@ function wrapSink(sink, prepared, prefix) {
744
745
  return index;
745
746
  };
746
747
  const ends = (edge) => {
747
- const [a24, b6] = sink.edgeEndpoints(edge);
748
- seen.add(a24);
748
+ const [a25, b6] = sink.edgeEndpoints(edge);
749
+ seen.add(a25);
749
750
  seen.add(b6);
750
751
  return edge;
751
752
  };
@@ -763,9 +764,9 @@ function wrapSink(sink, prepared, prefix) {
763
764
  return result2;
764
765
  };
765
766
  case "addEdge":
766
- return (s4, t5, w2) => ends(target.addEdge(id(s4), id(t5), w2));
767
+ return (s4, t6, w2) => ends(target.addEdge(id(s4), id(t6), w2));
767
768
  case "addEdgeRecord":
768
- return (s4, t5, attrs, weightKey) => ends(target.addEdgeRecord(id(s4), id(t5), attrs, weightKey));
769
+ return (s4, t6, attrs, weightKey) => ends(target.addEdgeRecord(id(s4), id(t6), attrs, weightKey));
769
770
  case "indexOf":
770
771
  return (v2) => target.indexOf(id(v2));
771
772
  default: {
@@ -807,15 +808,15 @@ function writeBatch(batch, sink, source, prepared, first) {
807
808
  sink.setDirected(meta.directed);
808
809
  }
809
810
  writeMeta(sink, meta);
810
- const n5 = writeNodes(batch, sink, idKey, prepared);
811
- writeEdges(batch, sink, sourceKey, targetKey, prepared, n5);
811
+ const n4 = writeNodes(batch, sink, idKey, prepared);
812
+ writeEdges(batch, sink, sourceKey, targetKey, prepared, n4);
812
813
  }
813
814
  function writeNodes(batch, sink, idKey, prepared) {
814
815
  const { report } = prepared;
815
816
  const { signal } = prepared.created.ctx;
816
- let n5 = 0;
817
+ let n4 = 0;
817
818
  for (const record of batch.nodes ?? []) {
818
- if (n5++ % 64 === 0) {
819
+ if (n4++ % 64 === 0) {
819
820
  throwIfAborted(signal);
820
821
  }
821
822
  const { [idKey]: id, ...attrs } = record;
@@ -832,37 +833,37 @@ function writeNodes(batch, sink, idKey, prepared) {
832
833
  report.counts.skippedNodes++;
833
834
  }
834
835
  }
835
- return n5;
836
+ return n4;
836
837
  }
837
838
  function writeEdges(batch, sink, sourceKey, targetKey, prepared, start) {
838
839
  const { report } = prepared;
839
840
  const { signal } = prepared.created.ctx;
840
- let n5 = start;
841
+ let n4 = start;
841
842
  let edgeIds = null;
842
843
  for (const record of batch.edges ?? []) {
843
- if (n5++ % 64 === 0) {
844
+ if (n4++ % 64 === 0) {
844
845
  throwIfAborted(signal);
845
846
  }
846
847
  const s4 = record[sourceKey];
847
- const t5 = record[targetKey];
848
+ const t6 = record[targetKey];
848
849
  const edgeId = record.id;
849
850
  const fields = Object.fromEntries(
850
851
  Object.entries(record).filter(([k4]) => k4 !== sourceKey && k4 !== targetKey && k4 !== "id")
851
852
  );
852
- if (typeof s4 !== "string" && typeof s4 !== "number" || typeof t5 !== "string" && typeof t5 !== "number") {
853
+ if (typeof s4 !== "string" && typeof s4 !== "number" || typeof t6 !== "string" && typeof t6 !== "number") {
853
854
  report.error("missing-value", MISSING_ID_CODE, `an edge record has no ${sourceKey} or ${targetKey}`);
854
855
  report.counts.skippedEdges++;
855
856
  continue;
856
857
  }
857
858
  try {
858
- const e7 = sink.addEdgeRecord(s4, t5, fields);
859
+ const e7 = sink.addEdgeRecord(s4, t6, fields);
859
860
  if (typeof edgeId === "string" || typeof edgeId === "number") {
860
861
  edgeIds ??= edgeIdColumn(sink);
861
862
  sink.setEdgeValue(edgeIds, e7, String(edgeId));
862
863
  }
863
864
  report.counts.edges++;
864
865
  } catch (err) {
865
- report.recordError(err, { element: `${String(s4)} -> ${String(t5)}` });
866
+ report.recordError(err, { element: `${String(s4)} -> ${String(t6)}` });
866
867
  report.counts.skippedEdges++;
867
868
  }
868
869
  }
@@ -1044,15 +1045,35 @@ async function runMethod(source, feature, params, options, call) {
1044
1045
  }
1045
1046
  function withSource(report, prepared, next) {
1046
1047
  const own = prepared.report.finish();
1048
+ const cursor = prepared.secretQuery === null || next === null ? next : withoutParam(next, prepared.secretQuery);
1047
1049
  const missing = own.issues.filter((i6) => !report.issues.includes(i6));
1048
1050
  return Object.freeze({
1049
1051
  ...report,
1050
1052
  issues: missing.length === 0 ? report.issues : Object.freeze([...report.issues, ...missing]),
1051
1053
  warningCount: report.warningCount + missing.filter((i6) => i6.severity === "warning").length,
1052
1054
  errorCount: report.errorCount + missing.filter((i6) => i6.severity === "error").length,
1053
- source: prepared.created.info(next)
1055
+ source: prepared.created.info(cursor)
1054
1056
  });
1055
1057
  }
1058
+ function withoutParam(value, name) {
1059
+ if (typeof value === "string" && /^https?:\/\//i.test(value)) {
1060
+ const url = new URL(value);
1061
+ if (!url.searchParams.has(name)) {
1062
+ return value;
1063
+ }
1064
+ url.searchParams.delete(name);
1065
+ return url.href;
1066
+ }
1067
+ if (Array.isArray(value)) {
1068
+ return Object.freeze(value.map((each) => withoutParam(each, name)));
1069
+ }
1070
+ if (typeof value === "object" && value !== null) {
1071
+ return Object.freeze(
1072
+ Object.fromEntries(Object.entries(value).map(([key, each]) => [key, withoutParam(each, name)]))
1073
+ );
1074
+ }
1075
+ return value;
1076
+ }
1056
1077
  function settle(err, prepared) {
1057
1078
  const { signal } = prepared.created.ctx;
1058
1079
  if (signal.aborted) {
@@ -1572,7 +1593,7 @@ class FormatRegistry {
1572
1593
  const { importer } = chosen;
1573
1594
  if ((opts.graphIndex !== void 0 || opts.graphName !== void 0) && importer.importAll !== void 0 && importer.listGraphs === void 0) {
1574
1595
  const all = await this.readAll(chosen, opts);
1575
- const names = all.map((r4) => r4.snapshot.meta.name);
1596
+ const names = all.map((r5) => r5.snapshot.meta.name);
1576
1597
  return all[chooseGraph(names, opts, new ImportReportBuilder(importer.format, 0))];
1577
1598
  }
1578
1599
  let builder;
@@ -1870,11 +1891,11 @@ class FormatRegistry {
1870
1891
  if (styled === null) {
1871
1892
  notes = this.exporter(format).check(snapshot, options);
1872
1893
  } else if (styled.refusal === null) {
1873
- const key = (n5) => `${n5.code}\0${n5.style?.target ?? ""}\0${n5.style?.property ?? ""}`;
1874
- const reported = new Set(styled.notes.filter((n5) => n5.style !== void 0).map(key));
1894
+ const key = (n4) => `${n4.code}\0${n4.style?.target ?? ""}\0${n4.style?.property ?? ""}`;
1895
+ const reported = new Set(styled.notes.filter((n4) => n4.style !== void 0).map(key));
1875
1896
  notes = [
1876
1897
  ...styled.exporter.check(styled.snapshot, styled.options).filter(
1877
- (n5) => n5.style === void 0 || !reported.has(key(n5)) && !isKeptGraphtyProperty(n5, styled.exporter)
1898
+ (n4) => n4.style === void 0 || !reported.has(key(n4)) && !isKeptGraphtyProperty(n4, styled.exporter)
1878
1899
  ),
1879
1900
  ...styled.notes
1880
1901
  ];
@@ -2426,11 +2447,11 @@ function replayFetch(recordings, options = {}) {
2426
2447
  }
2427
2448
  used.add(index);
2428
2449
  calls.push({ method, url: `${url.origin}${url.pathname}`, credential });
2429
- const r4 = recordings[index];
2430
- const status = r4.status ?? 200;
2431
- const text = bodyText(r4.body);
2432
- const headers = new Headers(r4.headers);
2433
- if (text !== null && typeof r4.body !== "string" && !headers.has("content-type")) {
2450
+ const r5 = recordings[index];
2451
+ const status = r5.status ?? 200;
2452
+ const text = bodyText(r5.body);
2453
+ const headers = new Headers(r5.headers);
2454
+ if (text !== null && typeof r5.body !== "string" && !headers.has("content-type")) {
2434
2455
  headers.set("content-type", "application/json");
2435
2456
  }
2436
2457
  const nullBody = status === 204 || status === 304 || status >= 300 && status < 400 && text === null;
@@ -2444,8 +2465,8 @@ function bodyText(body) {
2444
2465
  }
2445
2466
  return typeof body === "string" ? body : JSON.stringify(body);
2446
2467
  }
2447
- function compare(a24, b6) {
2448
- return a24[0] === b6[0] ? a24[1].localeCompare(b6[1]) : a24[0].localeCompare(b6[0]);
2468
+ function compare(a25, b6) {
2469
+ return a25[0] === b6[0] ? a25[1].localeCompare(b6[1]) : a25[0].localeCompare(b6[0]);
2449
2470
  }
2450
2471
  function sameBody(recorded, sent) {
2451
2472
  try {
@@ -2543,9 +2564,9 @@ export {
2543
2564
  GML_STYLE_BLOCK_KEY,
2544
2565
  GML_STYLE_CAPABILITIES,
2545
2566
  G3 as GRAPHML_ISSUE,
2546
- a21 as GRAPHML_LOSS,
2567
+ a22 as GRAPHML_LOSS,
2547
2568
  G4 as GRAPHML_STYLE_CAPABILITIES,
2548
- a23 as GRAPHTY_XML_NAMESPACE,
2569
+ a24 as GRAPHTY_XML_NAMESPACE,
2549
2570
  ae as GRAPH_COLUMN_AS_METADATA_CODE,
2550
2571
  G2 as GRAPH_FORMATS,
2551
2572
  Y as GRAPH_NOT_FOUND_CODE,
@@ -2607,6 +2628,8 @@ export {
2607
2628
  a1 as PARENT_CYCLE_CODE,
2608
2629
  aF as PARSE_ERROR_CODE,
2609
2630
  P as PRECISION_CODE,
2631
+ R3 as RANK_COLUMN,
2632
+ a21 as RANK_SET_COLUMN,
2610
2633
  ag as RELATION_ASSUMED_CODE,
2611
2634
  R2 as RENAMED_CODE,
2612
2635
  REST_SOURCE_ID,
@@ -2619,8 +2642,8 @@ export {
2619
2642
  S as SINK_OPTION_CODE,
2620
2643
  SNIFF_FAILED_CODE,
2621
2644
  SNIFF_HEAD_BYTES,
2622
- n4 as SOURCE_ATTR_PREFIX,
2623
- p3 as SOURCE_DEGREE_ATTR,
2645
+ p3 as SOURCE_ATTR_PREFIX,
2646
+ q2 as SOURCE_DEGREE_ATTR,
2624
2647
  e6 as SOURCE_ENTITY_ATTR,
2625
2648
  SOURCE_FORMAT_PREFIX,
2626
2649
  S2 as SOURCE_ISSUE,
@@ -2653,7 +2676,7 @@ export {
2653
2676
  a2 as WIDENED_CODE,
2654
2677
  W2 as WIDENING_UNSUPPORTED_CODE,
2655
2678
  X3 as XGMML_ISSUE,
2656
- a22 as XGMML_LOSS,
2679
+ a23 as XGMML_LOSS,
2657
2680
  ab as XML_ILLEGAL_CHAR_CODE,
2658
2681
  X as XML_NESTING_CODE,
2659
2682
  w as XML_SYNTAX_CODE,
@@ -2672,6 +2695,7 @@ export {
2672
2695
  collectBytes,
2673
2696
  compareSnapshots,
2674
2697
  createRegistry,
2698
+ r4 as credentialSlots,
2675
2699
  c6 as credentials,
2676
2700
  csvExporter,
2677
2701
  csvImporter,
@@ -2708,7 +2732,7 @@ export {
2708
2732
  a as formatF64,
2709
2733
  e2 as formatGmlReal,
2710
2734
  c2 as formatInteger,
2711
- q2 as fromStorableCredential,
2735
+ s3 as fromStorableCredential,
2712
2736
  gexfExporter,
2713
2737
  gexfImporter,
2714
2738
  gmlExporter,
@@ -2716,6 +2740,7 @@ export {
2716
2740
  h2 as graphChosen,
2717
2741
  graphmlExporter,
2718
2742
  graphmlImporter,
2743
+ g5 as graphvizPosBends,
2719
2744
  o as hasIllegalXmlChar,
2720
2745
  h3 as headBytes,
2721
2746
  importAllGraphs,
@@ -2771,11 +2796,11 @@ export {
2771
2796
  i5 as sniffFormat,
2772
2797
  s2 as sniffJsonDialect,
2773
2798
  k3 as sniffJsonDialectHead,
2774
- s3 as storableCredential,
2799
+ t4 as storableCredential,
2775
2800
  t2 as textChunks,
2776
2801
  throwIfAborted,
2777
2802
  t3 as toReadableStream,
2778
- t4 as tokenizeXml,
2803
+ t5 as tokenizeXml,
2779
2804
  validateSource,
2780
2805
  xgmmlExporter,
2781
2806
  xgmmlImporter,