jbrowse-plugin-graphgenomeviewer 8.4.0 → 8.6.0

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 (132) hide show
  1. package/dist/chunks/{AddTrackWorkflow-JAIB6H2T.js → AddTrackWorkflow-IOPTETLH.js} +2 -2
  2. package/dist/chunks/AddTrackWorkflow-IOPTETLH.js.map +7 -0
  3. package/dist/chunks/{ChooseSamplesDialog-LO7FKFSS.js → ChooseSamplesDialog-7RI573UO.js} +2 -2
  4. package/dist/chunks/{ChooseSamplesDialog-LO7FKFSS.js.map → ChooseSamplesDialog-7RI573UO.js.map} +1 -1
  5. package/dist/chunks/{ChooseWalksDialog-JJSOVCEU.js → ChooseWalksDialog-4LDYDQH2.js} +2 -2
  6. package/dist/chunks/{ChooseWalksDialog-JJSOVCEU.js.map → ChooseWalksDialog-4LDYDQH2.js.map} +1 -1
  7. package/dist/chunks/{GbzBaseSyntenyAdapter-CJQVZJPA.js → GbzBaseSyntenyAdapter-67NMRHWZ.js} +2 -2
  8. package/dist/chunks/{GraphGenomeView-EM7KNQHB.js → GraphGenomeView-RD2XGX6D.js} +2 -2
  9. package/dist/chunks/GraphTrackSettingsDialog-R3XOY32L.js +4 -0
  10. package/dist/chunks/{GraphTrackSettingsDialog-GTQ6Z2HA.js.map → GraphTrackSettingsDialog-R3XOY32L.js.map} +3 -3
  11. package/dist/chunks/HighlightColorDialog-AKPIC56I.js +2 -0
  12. package/dist/chunks/{HighlightColorDialog-KNJFIFLO.js.map → HighlightColorDialog-AKPIC56I.js.map} +2 -2
  13. package/dist/chunks/{LinearGraphDisplay-APDIIF7F.js → LinearGraphDisplay-RRAXTQFC.js} +2 -2
  14. package/dist/chunks/LinearGraphDisplay-RRAXTQFC.js.map +7 -0
  15. package/dist/chunks/{MinigraphBubbleAdapter-QEC37MYN.js → MinigraphBubbleAdapter-2YTXBZYS.js} +2 -2
  16. package/dist/chunks/{RgfaTabixAdapter-ZGXDNU43.js → RgfaTabixAdapter-RCGS6YVM.js} +2 -2
  17. package/dist/chunks/{TrackWarningsDialog-4YDIV2FN.js → TrackWarningsDialog-23WL6FPV.js} +2 -2
  18. package/dist/chunks/{TrackWarningsDialog-4YDIV2FN.js.map → TrackWarningsDialog-23WL6FPV.js.map} +1 -1
  19. package/dist/chunks/{WalkFormsAdapter-QYFYWQJD.js → WalkFormsAdapter-3M5A4JL3.js} +2 -2
  20. package/dist/chunks/WalkTabixSyntenyAdapter-576RE5OE.js +2 -0
  21. package/dist/chunks/WalkTabixSyntenyAdapter-576RE5OE.js.map +7 -0
  22. package/dist/chunks/chunk-4XY7HUQR.js +2 -0
  23. package/dist/chunks/chunk-4XY7HUQR.js.map +7 -0
  24. package/dist/chunks/chunk-6OZGIMZC.js +2 -0
  25. package/dist/chunks/chunk-6OZGIMZC.js.map +7 -0
  26. package/dist/chunks/{chunk-OTBDKJEA.js → chunk-AGUEPVOR.js} +1 -1
  27. package/dist/chunks/{chunk-OTBDKJEA.js.map → chunk-AGUEPVOR.js.map} +1 -1
  28. package/dist/chunks/{chunk-ZEE3HTOT.js → chunk-CGPYVMGQ.js} +2 -2
  29. package/dist/chunks/{chunk-OGQ6OQDN.js → chunk-D6TY2QEG.js} +1 -1
  30. package/dist/chunks/chunk-D6TY2QEG.js.map +7 -0
  31. package/dist/chunks/chunk-DIGIM3XY.js +4 -0
  32. package/dist/chunks/chunk-DIGIM3XY.js.map +7 -0
  33. package/dist/chunks/{chunk-JMBDTNUR.js → chunk-DUU6T2I5.js} +1 -1
  34. package/dist/chunks/chunk-DUU6T2I5.js.map +7 -0
  35. package/dist/chunks/chunk-FLKXKTS2.js +2 -0
  36. package/dist/chunks/chunk-FLKXKTS2.js.map +7 -0
  37. package/dist/chunks/{chunk-PRGG24TK.js → chunk-HRTRECXN.js} +2 -2
  38. package/dist/chunks/{chunk-NIEZKWQV.js → chunk-J2PN6CG3.js} +1 -1
  39. package/dist/chunks/chunk-J2PN6CG3.js.map +7 -0
  40. package/dist/chunks/{chunk-ROZPEXN4.js → chunk-QUDJ7AM3.js} +1 -1
  41. package/dist/chunks/chunk-QUDJ7AM3.js.map +7 -0
  42. package/dist/chunks/{chunk-5Q56NPNH.js → chunk-SVDQVLEU.js} +2 -2
  43. package/dist/chunks/{chunk-5Q56NPNH.js.map → chunk-SVDQVLEU.js.map} +1 -1
  44. package/dist/chunks/{chunk-J5RMHLFJ.js → chunk-TC265JAP.js} +1 -1
  45. package/dist/chunks/chunk-TC265JAP.js.map +7 -0
  46. package/dist/chunks/{chunk-3VGXCEMQ.js → chunk-TMM73K4C.js} +1 -1
  47. package/dist/chunks/chunk-TMM73K4C.js.map +7 -0
  48. package/dist/chunks/{chunk-4LAVXP7J.js → chunk-ULPW4VGT.js} +2 -2
  49. package/dist/chunks/{chunk-KOB7YIMR.js → chunk-V55TK2NP.js} +1 -1
  50. package/dist/chunks/chunk-V55TK2NP.js.map +7 -0
  51. package/dist/chunks/chunk-VNWCN47G.js +3 -0
  52. package/dist/chunks/chunk-VNWCN47G.js.map +7 -0
  53. package/dist/chunks/{chunk-5Z4VIKXZ.js → chunk-WE7DQVXF.js} +1 -1
  54. package/dist/chunks/chunk-WE7DQVXF.js.map +7 -0
  55. package/dist/chunks/{chunk-TL2FTG3H.js → chunk-WE7XHNAH.js} +2 -2
  56. package/dist/chunks/chunk-WE7XHNAH.js.map +7 -0
  57. package/dist/chunks/{chunk-DMLYMYLG.js → chunk-WO644UAC.js} +3 -3
  58. package/dist/chunks/chunk-WO644UAC.js.map +7 -0
  59. package/dist/chunks/{chunk-UWBKGUBZ.js → chunk-X2QGBINE.js} +2 -2
  60. package/dist/chunks/{chunk-UWBKGUBZ.js.map → chunk-X2QGBINE.js.map} +3 -3
  61. package/dist/chunks/chunk-Y7MQVQAS.js +2 -0
  62. package/dist/chunks/chunk-Y7MQVQAS.js.map +7 -0
  63. package/dist/chunks/{executeDiagonalize-MDMQAC5Z.js → executeDiagonalize-HZFFXMG4.js} +2 -2
  64. package/dist/chunks/executeDiagonalize-HZFFXMG4.js.map +7 -0
  65. package/dist/chunks/{renderSvg-H7SROVVQ.js → renderSvg-GF64RZ6B.js} +2 -2
  66. package/dist/chunks/renderSvg-GF64RZ6B.js.map +7 -0
  67. package/dist/jbrowse-plugin-graphgenomeviewer.esm.js +5 -5
  68. package/dist/jbrowse-plugin-graphgenomeviewer.esm.js.map +4 -4
  69. package/package.json +9 -9
  70. package/src/GraphGenomeView/components/GraphSettingsDialog.tsx +16 -10
  71. package/src/GraphGenomeView/components/HighlightColorDialog.tsx +2 -2
  72. package/src/GraphGenomeView/components/HoverLayer.tsx +7 -2
  73. package/src/GraphGenomeView/components/LabelChip.tsx +3 -2
  74. package/src/GraphGenomeView/components/LabelledSelect.tsx +3 -2
  75. package/src/GraphGenomeView/components/Legend.tsx +2 -2
  76. package/src/GraphGenomeView/components/LegendSwatch.tsx +8 -2
  77. package/src/GraphGenomeView/components/PaneContextMenu.tsx +3 -2
  78. package/src/GraphGenomeView/components/PaneLayer.tsx +2 -2
  79. package/src/GraphGenomeView/components/PaneSvg.tsx +6 -0
  80. package/src/GraphGenomeView/components/PickNamesDialog.tsx +3 -2
  81. package/src/GraphGenomeView/components/WalkRowsOverlay.tsx +18 -6
  82. package/src/GraphGenomeView/pane/loadActions.ts +17 -1
  83. package/src/GraphGenomeView/pane/renderingActions.ts +1 -0
  84. package/src/LinearGraphDisplay/LinearGraphDisplay.test.ts +0 -9
  85. package/src/LinearGraphDisplay/components/GraphTrackSettingsDialog.tsx +4 -2
  86. package/src/LinearGraphDisplay/model.ts +1 -0
  87. package/src/WalkTabixSyntenyAdapter/WalkTabixSyntenyAdapter.test.ts +6 -10
  88. package/src/WalkTabixSyntenyAdapter/WalkTabixSyntenyAdapter.ts +25 -13
  89. package/src/WalkTabixSyntenyAdapter/walkLanes.ts +70 -7
  90. package/src/hoverSync/index.test.tsx +2 -2
  91. package/src/hoverSync/index.tsx +1 -1
  92. package/src/index.ts +2 -2
  93. package/src/panSNAliases/trackAdapterConfig.ts +2 -2
  94. package/src/version.ts +1 -1
  95. package/dist/chunks/AddTrackWorkflow-JAIB6H2T.js.map +0 -7
  96. package/dist/chunks/GraphTrackSettingsDialog-GTQ6Z2HA.js +0 -4
  97. package/dist/chunks/HighlightColorDialog-KNJFIFLO.js +0 -2
  98. package/dist/chunks/LinearGraphDisplay-APDIIF7F.js.map +0 -7
  99. package/dist/chunks/WalkTabixSyntenyAdapter-F4XTB7W4.js +0 -2
  100. package/dist/chunks/WalkTabixSyntenyAdapter-F4XTB7W4.js.map +0 -7
  101. package/dist/chunks/chunk-3ROUAVMP.js +0 -4
  102. package/dist/chunks/chunk-3ROUAVMP.js.map +0 -7
  103. package/dist/chunks/chunk-3VGXCEMQ.js.map +0 -7
  104. package/dist/chunks/chunk-3WG3GF2A.js +0 -2
  105. package/dist/chunks/chunk-3WG3GF2A.js.map +0 -7
  106. package/dist/chunks/chunk-5Z4VIKXZ.js.map +0 -7
  107. package/dist/chunks/chunk-CBKSPAUI.js +0 -2
  108. package/dist/chunks/chunk-CBKSPAUI.js.map +0 -7
  109. package/dist/chunks/chunk-DKYX6XBX.js +0 -2
  110. package/dist/chunks/chunk-DKYX6XBX.js.map +0 -7
  111. package/dist/chunks/chunk-DMLYMYLG.js.map +0 -7
  112. package/dist/chunks/chunk-FUPBKEC2.js +0 -2
  113. package/dist/chunks/chunk-FUPBKEC2.js.map +0 -7
  114. package/dist/chunks/chunk-J5RMHLFJ.js.map +0 -7
  115. package/dist/chunks/chunk-JMBDTNUR.js.map +0 -7
  116. package/dist/chunks/chunk-KOB7YIMR.js.map +0 -7
  117. package/dist/chunks/chunk-NIEZKWQV.js.map +0 -7
  118. package/dist/chunks/chunk-OGQ6OQDN.js.map +0 -7
  119. package/dist/chunks/chunk-PX4IRCTO.js +0 -3
  120. package/dist/chunks/chunk-PX4IRCTO.js.map +0 -7
  121. package/dist/chunks/chunk-ROZPEXN4.js.map +0 -7
  122. package/dist/chunks/chunk-TL2FTG3H.js.map +0 -7
  123. package/dist/chunks/executeDiagonalize-MDMQAC5Z.js.map +0 -7
  124. package/dist/chunks/renderSvg-H7SROVVQ.js.map +0 -7
  125. /package/dist/chunks/{GbzBaseSyntenyAdapter-CJQVZJPA.js.map → GbzBaseSyntenyAdapter-67NMRHWZ.js.map} +0 -0
  126. /package/dist/chunks/{GraphGenomeView-EM7KNQHB.js.map → GraphGenomeView-RD2XGX6D.js.map} +0 -0
  127. /package/dist/chunks/{MinigraphBubbleAdapter-QEC37MYN.js.map → MinigraphBubbleAdapter-2YTXBZYS.js.map} +0 -0
  128. /package/dist/chunks/{RgfaTabixAdapter-ZGXDNU43.js.map → RgfaTabixAdapter-RCGS6YVM.js.map} +0 -0
  129. /package/dist/chunks/{WalkFormsAdapter-QYFYWQJD.js.map → WalkFormsAdapter-3M5A4JL3.js.map} +0 -0
  130. /package/dist/chunks/{chunk-ZEE3HTOT.js.map → chunk-CGPYVMGQ.js.map} +0 -0
  131. /package/dist/chunks/{chunk-PRGG24TK.js.map → chunk-HRTRECXN.js.map} +0 -0
  132. /package/dist/chunks/{chunk-4LAVXP7J.js.map → chunk-ULPW4VGT.js.map} +0 -0
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["jbrowse-host:@jbrowse/mobx-state-tree"],
4
+ "sourcesContent": ["const host = JBrowseExports[\"@jbrowse/mobx-state-tree\"]\nconst read = name =>\n host != null && name in Object(host)\n ? host[name]\n : Object.assign(\n function () {\n throw new Error(\"This JBrowse does not provide '\" + name + \"' from '\" + \"@jbrowse/mobx-state-tree\" + \"' to plugins: \" + \"GraphGenomeView was built for a different JBrowse version, so update the plugin or JBrowse\")\n },\n { jbrowseHostMissing: name },\n )\nexport const addDisposer = /* @__PURE__ */ read(\"addDisposer\")\nexport const addMiddleware = /* @__PURE__ */ read(\"addMiddleware\")\nexport const applyAction = /* @__PURE__ */ read(\"applyAction\")\nexport const applyPatch = /* @__PURE__ */ read(\"applyPatch\")\nexport const applySnapshot = /* @__PURE__ */ read(\"applySnapshot\")\nexport const asArrayType = /* @__PURE__ */ read(\"asArrayType\")\nexport const asMapType = /* @__PURE__ */ read(\"asMapType\")\nexport const asModelType = /* @__PURE__ */ read(\"asModelType\")\nexport const cannotDetermineSubtype = /* @__PURE__ */ read(\"cannotDetermineSubtype\")\nexport const cast = /* @__PURE__ */ read(\"cast\")\nexport const castFlowReturn = /* @__PURE__ */ read(\"castFlowReturn\")\nexport const castToReferenceSnapshot = /* @__PURE__ */ read(\"castToReferenceSnapshot\")\nexport const castToSnapshot = /* @__PURE__ */ read(\"castToSnapshot\")\nexport const clone = /* @__PURE__ */ read(\"clone\")\nexport const createActionTrackingMiddleware = /* @__PURE__ */ read(\"createActionTrackingMiddleware\")\nexport const createActionTrackingMiddleware2 = /* @__PURE__ */ read(\"createActionTrackingMiddleware2\")\nexport const decorate = /* @__PURE__ */ read(\"decorate\")\nexport const destroy = /* @__PURE__ */ read(\"destroy\")\nexport const detach = /* @__PURE__ */ read(\"detach\")\nexport const escapeJsonPath = /* @__PURE__ */ read(\"escapeJsonPath\")\nexport const extendInstance = /* @__PURE__ */ read(\"extendInstance\")\nexport const findParent = /* @__PURE__ */ read(\"findParent\")\nexport const flow = /* @__PURE__ */ read(\"flow\")\nexport const getChildType = /* @__PURE__ */ read(\"getChildType\")\nexport const getEnv = /* @__PURE__ */ read(\"getEnv\")\nexport const getIdentifier = /* @__PURE__ */ read(\"getIdentifier\")\nexport const getLivelinessChecking = /* @__PURE__ */ read(\"getLivelinessChecking\")\nexport const getMembers = /* @__PURE__ */ read(\"getMembers\")\nexport const getNodeId = /* @__PURE__ */ read(\"getNodeId\")\nexport const getParent = /* @__PURE__ */ read(\"getParent\")\nexport const getParentOfType = /* @__PURE__ */ read(\"getParentOfType\")\nexport const getPath = /* @__PURE__ */ read(\"getPath\")\nexport const getPathParts = /* @__PURE__ */ read(\"getPathParts\")\nexport const getPropertyMembers = /* @__PURE__ */ read(\"getPropertyMembers\")\nexport const getRelativePath = /* @__PURE__ */ read(\"getRelativePath\")\nexport const getRoot = /* @__PURE__ */ read(\"getRoot\")\nexport const getRunningActionContext = /* @__PURE__ */ read(\"getRunningActionContext\")\nexport const getSnapshot = /* @__PURE__ */ read(\"getSnapshot\")\nexport const getType = /* @__PURE__ */ read(\"getType\")\nexport const getUnionSubtypes = /* @__PURE__ */ read(\"getUnionSubtypes\")\nexport const getWrappedType = /* @__PURE__ */ read(\"getWrappedType\")\nexport const hasParent = /* @__PURE__ */ read(\"hasParent\")\nexport const hasParentOfType = /* @__PURE__ */ read(\"hasParentOfType\")\nexport const isActionContextChildOf = /* @__PURE__ */ read(\"isActionContextChildOf\")\nexport const isActionContextThisOrChildOf = /* @__PURE__ */ read(\"isActionContextThisOrChildOf\")\nexport const isAlive = /* @__PURE__ */ read(\"isAlive\")\nexport const isArrayType = /* @__PURE__ */ read(\"isArrayType\")\nexport const isFrozenType = /* @__PURE__ */ read(\"isFrozenType\")\nexport const isIdentifierType = /* @__PURE__ */ read(\"isIdentifierType\")\nexport const isLateType = /* @__PURE__ */ read(\"isLateType\")\nexport const isLiteralType = /* @__PURE__ */ read(\"isLiteralType\")\nexport const isMapType = /* @__PURE__ */ read(\"isMapType\")\nexport const isModelType = /* @__PURE__ */ read(\"isModelType\")\nexport const isOptionalType = /* @__PURE__ */ read(\"isOptionalType\")\nexport const isPrimitiveType = /* @__PURE__ */ read(\"isPrimitiveType\")\nexport const isProtected = /* @__PURE__ */ read(\"isProtected\")\nexport const isReferenceType = /* @__PURE__ */ read(\"isReferenceType\")\nexport const isRefinementType = /* @__PURE__ */ read(\"isRefinementType\")\nexport const isRoot = /* @__PURE__ */ read(\"isRoot\")\nexport const isStateTreeNode = /* @__PURE__ */ read(\"isStateTreeNode\")\nexport const isType = /* @__PURE__ */ read(\"isType\")\nexport const isUnionType = /* @__PURE__ */ read(\"isUnionType\")\nexport const isValidReference = /* @__PURE__ */ read(\"isValidReference\")\nexport const joinJsonPath = /* @__PURE__ */ read(\"joinJsonPath\")\nexport const onAction = /* @__PURE__ */ read(\"onAction\")\nexport const onPatch = /* @__PURE__ */ read(\"onPatch\")\nexport const onSnapshot = /* @__PURE__ */ read(\"onSnapshot\")\nexport const protect = /* @__PURE__ */ read(\"protect\")\nexport const recordActions = /* @__PURE__ */ read(\"recordActions\")\nexport const recordPatches = /* @__PURE__ */ read(\"recordPatches\")\nexport const resolveIdentifier = /* @__PURE__ */ read(\"resolveIdentifier\")\nexport const resolvePath = /* @__PURE__ */ read(\"resolvePath\")\nexport const setDevMode = /* @__PURE__ */ read(\"setDevMode\")\nexport const setLivelinessChecking = /* @__PURE__ */ read(\"setLivelinessChecking\")\nexport const setLivelynessChecking = /* @__PURE__ */ read(\"setLivelynessChecking\")\nexport const setTypeChecking = /* @__PURE__ */ read(\"setTypeChecking\")\nexport const splitJsonPath = /* @__PURE__ */ read(\"splitJsonPath\")\nexport const t = /* @__PURE__ */ read(\"t\")\nexport const toGenerator = /* @__PURE__ */ read(\"toGenerator\")\nexport const toGeneratorFunction = /* @__PURE__ */ read(\"toGeneratorFunction\")\nexport const tryReference = /* @__PURE__ */ read(\"tryReference\")\nexport const tryResolve = /* @__PURE__ */ read(\"tryResolve\")\nexport const typecheck = /* @__PURE__ */ read(\"typecheck\")\nexport const types = /* @__PURE__ */ read(\"types\")\nexport const unescapeJsonPath = /* @__PURE__ */ read(\"unescapeJsonPath\")\nexport const unprotect = /* @__PURE__ */ read(\"unprotect\")\nexport const unwrapType = /* @__PURE__ */ read(\"unwrapType\")\nexport const walk = /* @__PURE__ */ read(\"walk\")\nexport default host && host.__esModule ? host.default : host"],
5
+ "mappings": "AAAA,IAAMA,EAAO,eAAe,0BAA0B,EAChDC,EAAOC,GACXF,GAAQ,MAAQE,KAAQ,OAAOF,CAAI,EAC/BA,EAAKE,CAAI,EACT,OAAO,OACL,UAAY,CACV,MAAM,IAAI,MAAM,kCAAoCA,EAAO,0IAAyJ,CACtN,EACA,CAAE,mBAAoBA,CAAK,CAC7B,EACOC,EAA8BF,EAAK,aAAa,EAsBtD,IAAMG,EAAuBC,EAAK,MAAM,EAExC,IAAMC,EAAyBC,EAAK,QAAQ,EAW5C,IAAMC,EAA0BC,EAAK,SAAS,EAU9C,IAAMC,EAA0BC,EAAK,SAAS,EAsC9C,IAAMC,EAAwBC,EAAK,OAAO,EAKjD,IAAOC,EAAQC,GAAQA,EAAK,WAAaA,EAAK,QAAUA",
6
+ "names": ["host", "read", "name", "addDisposer", "flow", "read", "getEnv", "read", "getRoot", "read", "isAlive", "read", "types", "read", "mobx_state_tree_default", "host"]
7
+ }
@@ -1,2 +1,2 @@
1
- import{a as B}from"./chunk-ZA5GPTUM.js";import{h as b,i as o,k as f,z as m}from"./chunk-PX4IRCTO.js";import{h as u}from"./chunk-CL4PYWKC.js";var O={steps:"walkStepBudget",bytes:"walkByteBudget"},y=64,k=class{constructor(e,t){this.file=e;this.adapter=t;this.reader=new f(e)}async haplotypeNames(e={}){let{haplotypes:t}=await this.reader.header(e);return t.length>0?t:void 0}budgets(){return{stepBudget:this.adapter.getConf("walkStepBudget"),byteBudget:this.adapter.getConf("walkByteBudget"),budgetNames:O}}async subgraph(e,t,{signal:i,haplotypes:d,walkRows:s,expand:r,expandSamples:n}){let g=this.budgets(),p=o(d?.map(a=>u(this.adapter,a)),e),l=s&&p&&(d?.length??0)<=y?p:void 0,c=s&&n?.length&&n.length<=y?o(n.map(a=>u(this.adapter,a)),e):void 0,h=r?.length?a=>r.includes(a):void 0,{graph:w,kept:A,fragments:S,skips:x}=await this.reader.cut(e,t,{...g,stepBudget:s?1/0:g.stepBudget,signal:i,keep:p,...l||c||h?{expand:a=>!!l?.(a)||!!c?.(a)||!!h?.(a)}:{}});return B(w.tables(A,S,x),t,s)}async referenceNodes(e,t,i){let d=[];await m(this.file,e,await this.reader.queryStart(t.start,{...i,refName:e,end:t.end}),t.end,{signal:i.signal,lineCallback:r=>{let n=r.split(" ");n[3]==="ref"&&d.push(n)}});let s=new Set;return b(d).filter(r=>r.refName!==e||r.end<=t.start||r.start>=t.end||s.has(r.id)?!1:(s.add(r.id),!0))}};export{k as a};
2
- //# sourceMappingURL=chunk-PRGG24TK.js.map
1
+ import{a as B}from"./chunk-ZA5GPTUM.js";import{h as b,i as o,k as f,z as m}from"./chunk-VNWCN47G.js";import{h as u}from"./chunk-CL4PYWKC.js";var O={steps:"walkStepBudget",bytes:"walkByteBudget"},y=64,k=class{constructor(e,t){this.file=e;this.adapter=t;this.reader=new f(e)}async haplotypeNames(e={}){let{haplotypes:t}=await this.reader.header(e);return t.length>0?t:void 0}budgets(){return{stepBudget:this.adapter.getConf("walkStepBudget"),byteBudget:this.adapter.getConf("walkByteBudget"),budgetNames:O}}async subgraph(e,t,{signal:i,haplotypes:d,walkRows:s,expand:r,expandSamples:n}){let g=this.budgets(),p=o(d?.map(a=>u(this.adapter,a)),e),l=s&&p&&(d?.length??0)<=y?p:void 0,c=s&&n?.length&&n.length<=y?o(n.map(a=>u(this.adapter,a)),e):void 0,h=r?.length?a=>r.includes(a):void 0,{graph:w,kept:A,fragments:S,skips:x}=await this.reader.cut(e,t,{...g,stepBudget:s?1/0:g.stepBudget,signal:i,keep:p,...l||c||h?{expand:a=>!!l?.(a)||!!c?.(a)||!!h?.(a)}:{}});return B(w.tables(A,S,x),t,s)}async referenceNodes(e,t,i){let d=[];await m(this.file,e,await this.reader.queryStart(t.start,{...i,refName:e,end:t.end}),t.end,{signal:i.signal,lineCallback:r=>{let n=r.split(" ");n[3]==="ref"&&d.push(n)}});let s=new Set;return b(d).filter(r=>r.refName!==e||r.end<=t.start||r.start>=t.end||s.has(r.id)?!1:(s.add(r.id),!0))}};export{k as a};
2
+ //# sourceMappingURL=chunk-HRTRECXN.js.map
@@ -1,2 +1,2 @@
1
1
  var t=JBrowseExports.react,e=o=>t!=null&&o in Object(t)?t[o]:Object.assign(function(){throw new Error("This JBrowse does not provide '"+o+"' from 'react' to plugins: GraphGenomeView was built for a different JBrowse version, so update the plugin or JBrowse")},{jbrowseHostMissing:o});var s=e("Fragment");var n=e("createElement");var r=e("lazy");var c=e("useCallback");var a=e("useEffect");var p=e("useId");var u=e("useMemo");var i=e("useRef"),x=e("useState");var l=t&&t.__esModule?t.default:t;export{s as a,n as b,r as c,c as d,a as e,p as f,u as g,i as h,x as i};
2
- //# sourceMappingURL=chunk-NIEZKWQV.js.map
2
+ //# sourceMappingURL=chunk-J2PN6CG3.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["jbrowse-host:react"],
4
+ "sourcesContent": ["const host = JBrowseExports[\"react\"]\nconst read = name =>\n host != null && name in Object(host)\n ? host[name]\n : Object.assign(\n function () {\n throw new Error(\"This JBrowse does not provide '\" + name + \"' from '\" + \"react\" + \"' to plugins: \" + \"GraphGenomeView was built for a different JBrowse version, so update the plugin or JBrowse\")\n },\n { jbrowseHostMissing: name },\n )\nexport const Activity = /* @__PURE__ */ read(\"Activity\")\nexport const Children = /* @__PURE__ */ read(\"Children\")\nexport const Component = /* @__PURE__ */ read(\"Component\")\nexport const Fragment = /* @__PURE__ */ read(\"Fragment\")\nexport const Profiler = /* @__PURE__ */ read(\"Profiler\")\nexport const PureComponent = /* @__PURE__ */ read(\"PureComponent\")\nexport const StrictMode = /* @__PURE__ */ read(\"StrictMode\")\nexport const Suspense = /* @__PURE__ */ read(\"Suspense\")\nexport const ViewTransition = /* @__PURE__ */ read(\"ViewTransition\")\nexport const __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = /* @__PURE__ */ read(\"__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE\")\nexport const __COMPILER_RUNTIME = /* @__PURE__ */ read(\"__COMPILER_RUNTIME\")\nexport const act = /* @__PURE__ */ read(\"act\")\nexport const addTransitionType = /* @__PURE__ */ read(\"addTransitionType\")\nexport const cache = /* @__PURE__ */ read(\"cache\")\nexport const cacheSignal = /* @__PURE__ */ read(\"cacheSignal\")\nexport const captureOwnerStack = /* @__PURE__ */ read(\"captureOwnerStack\")\nexport const cloneElement = /* @__PURE__ */ read(\"cloneElement\")\nexport const createContext = /* @__PURE__ */ read(\"createContext\")\nexport const createElement = /* @__PURE__ */ read(\"createElement\")\nexport const createRef = /* @__PURE__ */ read(\"createRef\")\nexport const forwardRef = /* @__PURE__ */ read(\"forwardRef\")\nexport const isValidElement = /* @__PURE__ */ read(\"isValidElement\")\nexport const lazy = /* @__PURE__ */ read(\"lazy\")\nexport const memo = /* @__PURE__ */ read(\"memo\")\nexport const startTransition = /* @__PURE__ */ read(\"startTransition\")\nexport const unstable_useCacheRefresh = /* @__PURE__ */ read(\"unstable_useCacheRefresh\")\nexport const use = /* @__PURE__ */ read(\"use\")\nexport const useActionState = /* @__PURE__ */ read(\"useActionState\")\nexport const useCallback = /* @__PURE__ */ read(\"useCallback\")\nexport const useContext = /* @__PURE__ */ read(\"useContext\")\nexport const useDebugValue = /* @__PURE__ */ read(\"useDebugValue\")\nexport const useDeferredValue = /* @__PURE__ */ read(\"useDeferredValue\")\nexport const useEffect = /* @__PURE__ */ read(\"useEffect\")\nexport const useEffectEvent = /* @__PURE__ */ read(\"useEffectEvent\")\nexport const useId = /* @__PURE__ */ read(\"useId\")\nexport const useImperativeHandle = /* @__PURE__ */ read(\"useImperativeHandle\")\nexport const useInsertionEffect = /* @__PURE__ */ read(\"useInsertionEffect\")\nexport const useLayoutEffect = /* @__PURE__ */ read(\"useLayoutEffect\")\nexport const useMemo = /* @__PURE__ */ read(\"useMemo\")\nexport const useOptimistic = /* @__PURE__ */ read(\"useOptimistic\")\nexport const useReducer = /* @__PURE__ */ read(\"useReducer\")\nexport const useRef = /* @__PURE__ */ read(\"useRef\")\nexport const useState = /* @__PURE__ */ read(\"useState\")\nexport const useSyncExternalStore = /* @__PURE__ */ read(\"useSyncExternalStore\")\nexport const useTransition = /* @__PURE__ */ read(\"useTransition\")\nexport const version = /* @__PURE__ */ read(\"version\")\nexport default host && host.__esModule ? host.default : host"],
5
+ "mappings": "AAAA,IAAMA,EAAO,eAAe,MACtBC,EAAOC,GACXF,GAAQ,MAAQE,KAAQ,OAAOF,CAAI,EAC/BA,EAAKE,CAAI,EACT,OAAO,OACL,UAAY,CACV,MAAM,IAAI,MAAM,kCAAoCA,EAAO,uHAAsI,CACnM,EACA,CAAE,mBAAoBA,CAAK,CAC7B,EAIC,IAAMC,EAA2BC,EAAK,UAAU,EAehD,IAAMC,EAAgCC,EAAK,eAAe,EAI1D,IAAMC,EAAuBC,EAAK,MAAM,EAMxC,IAAMC,EAA8BC,EAAK,aAAa,EAItD,IAAMC,EAA4BC,EAAK,WAAW,EAElD,IAAMC,EAAwBC,EAAK,OAAO,EAI1C,IAAMC,EAA0BC,EAAK,SAAS,EAG9C,IAAMC,EAAyBC,EAAK,QAAQ,EACtCC,EAA2BD,EAAK,UAAU,EAIvD,IAAOE,EAAQC,GAAQA,EAAK,WAAaA,EAAK,QAAUA",
6
+ "names": ["host", "read", "name", "Fragment", "read", "createElement", "read", "lazy", "read", "useCallback", "read", "useEffect", "read", "useId", "read", "useMemo", "read", "useRef", "read", "useState", "react_default", "host"]
7
+ }
@@ -1,2 +1,2 @@
1
1
  var o=JBrowseExports["@jbrowse/core/configuration"],t=e=>o!=null&&e in Object(o)?o[e]:Object.assign(function(){throw new Error("This JBrowse does not provide '"+e+"' from '@jbrowse/core/configuration' to plugins: GraphGenomeView was built for a different JBrowse version, so update the plugin or JBrowse")},{jbrowseHostMissing:e}),n=t("ConfigurationReference"),r=t("ConfigurationSchema");var a=t("getConf");var i=t("readConfObject");var s=t("setConf");var c=o&&o.__esModule?o.default:o;export{n as a,r as b,a as c,i as d,s as e};
2
- //# sourceMappingURL=chunk-ROZPEXN4.js.map
2
+ //# sourceMappingURL=chunk-QUDJ7AM3.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["jbrowse-host:@jbrowse/core/configuration"],
4
+ "sourcesContent": ["const host = JBrowseExports[\"@jbrowse/core/configuration\"]\nconst read = name =>\n host != null && name in Object(host)\n ? host[name]\n : Object.assign(\n function () {\n throw new Error(\"This JBrowse does not provide '\" + name + \"' from '\" + \"@jbrowse/core/configuration\" + \"' to plugins: \" + \"GraphGenomeView was built for a different JBrowse version, so update the plugin or JBrowse\")\n },\n { jbrowseHostMissing: name },\n )\nexport const ConfigurationReference = /* @__PURE__ */ read(\"ConfigurationReference\")\nexport const ConfigurationSchema = /* @__PURE__ */ read(\"ConfigurationSchema\")\nexport const ConfigurationSchemaUnion = /* @__PURE__ */ read(\"ConfigurationSchemaUnion\")\nexport const DEFAULT_FORMAT_DETAILS_DEPTH = /* @__PURE__ */ read(\"DEFAULT_FORMAT_DETAILS_DEPTH\")\nexport const FormatAboutConfigSchemaFactory = /* @__PURE__ */ read(\"FormatAboutConfigSchemaFactory\")\nexport const FormatDetailsConfigSchemaFactory = /* @__PURE__ */ read(\"FormatDetailsConfigSchemaFactory\")\nexport const applyConfSettings = /* @__PURE__ */ read(\"applyConfSettings\")\nexport const applyRetiredSpellings = /* @__PURE__ */ read(\"applyRetiredSpellings\")\nexport const arraySlotUnion = /* @__PURE__ */ read(\"arraySlotUnion\")\nexport const bamIndexFields = /* @__PURE__ */ read(\"bamIndexFields\")\nexport const bamIndexSchema = /* @__PURE__ */ read(\"bamIndexSchema\")\nexport const canonicalSpelling = /* @__PURE__ */ read(\"canonicalSpelling\")\nexport const declaredSnapshot = /* @__PURE__ */ read(\"declaredSnapshot\")\nexport const evaluateForFeature = /* @__PURE__ */ read(\"evaluateForFeature\")\nexport const evaluateJexl = /* @__PURE__ */ read(\"evaluateJexl\")\nexport const expandTabixShorthand = /* @__PURE__ */ read(\"expandTabixShorthand\")\nexport const expandUriShorthand = /* @__PURE__ */ read(\"expandUriShorthand\")\nexport const fillIndexType = /* @__PURE__ */ read(\"fillIndexType\")\nexport const fillLocations = /* @__PURE__ */ read(\"fillLocations\")\nexport const fullConfSnapshot = /* @__PURE__ */ read(\"fullConfSnapshot\")\nexport const getConf = /* @__PURE__ */ read(\"getConf\")\nexport const getConfigurationSchemaDefinition = /* @__PURE__ */ read(\"getConfigurationSchemaDefinition\")\nexport const getConfigurationSchemaMetadata = /* @__PURE__ */ read(\"getConfigurationSchemaMetadata\")\nexport const getConfigurationSchemaUnion = /* @__PURE__ */ read(\"getConfigurationSchemaUnion\")\nexport const getSlotDefinition = /* @__PURE__ */ read(\"getSlotDefinition\")\nexport const getTypeNamesFromExplicitlyTypedUnion = /* @__PURE__ */ read(\"getTypeNamesFromExplicitlyTypedUnion\")\nexport const hydrateTrackConfig = /* @__PURE__ */ read(\"hydrateTrackConfig\")\nexport const indexSnapshot = /* @__PURE__ */ read(\"indexSnapshot\")\nexport const indexSuffix = /* @__PURE__ */ read(\"indexSuffix\")\nexport const isBareConfigurationSchemaType = /* @__PURE__ */ read(\"isBareConfigurationSchemaType\")\nexport const isCallbackValue = /* @__PURE__ */ read(\"isCallbackValue\")\nexport const isConfigurationModel = /* @__PURE__ */ read(\"isConfigurationModel\")\nexport const isConfigurationSchemaType = /* @__PURE__ */ read(\"isConfigurationSchemaType\")\nexport const isConfigurationSlot = /* @__PURE__ */ read(\"isConfigurationSlot\")\nexport const isConstantEntry = /* @__PURE__ */ read(\"isConstantEntry\")\nexport const isCsiLocation = /* @__PURE__ */ read(\"isCsiLocation\")\nexport const isSlotDefinitionEntry = /* @__PURE__ */ read(\"isSlotDefinitionEntry\")\nexport const liftPlot = /* @__PURE__ */ read(\"liftPlot\")\nexport const liftRetiredSpellings = /* @__PURE__ */ read(\"liftRetiredSpellings\")\nexport const makeSlotFacade = /* @__PURE__ */ read(\"makeSlotFacade\")\nexport const mergeConfSettings = /* @__PURE__ */ read(\"mergeConfSettings\")\nexport const mergeFormatCallbacks = /* @__PURE__ */ read(\"mergeFormatCallbacks\")\nexport const parsePlot = /* @__PURE__ */ read(\"parsePlot\")\nexport const partitionAdvanced = /* @__PURE__ */ read(\"partitionAdvanced\")\nexport const plotKeysOf = /* @__PURE__ */ read(\"plotKeysOf\")\nexport const plotList = /* @__PURE__ */ read(\"plotList\")\nexport const plotOf = /* @__PURE__ */ read(\"plotOf\")\nexport const plotWrites = /* @__PURE__ */ read(\"plotWrites\")\nexport const preProcessConfigSnapshot = /* @__PURE__ */ read(\"preProcessConfigSnapshot\")\nexport const preProcessSnapshotWith = /* @__PURE__ */ read(\"preProcessSnapshotWith\")\nexport const readConfObject = /* @__PURE__ */ read(\"readConfObject\")\nexport const readConfigValue = /* @__PURE__ */ read(\"readConfigValue\")\nexport const refusingUndeclaredKeys = /* @__PURE__ */ read(\"refusingUndeclaredKeys\")\nexport const requestedIndexType = /* @__PURE__ */ read(\"requestedIndexType\")\nexport const requirementProblems = /* @__PURE__ */ read(\"requirementProblems\")\nexport const setConf = /* @__PURE__ */ read(\"setConf\")\nexport const shorthandTargets = /* @__PURE__ */ read(\"shorthandTargets\")\nexport const shorthandTargetsOf = /* @__PURE__ */ read(\"shorthandTargetsOf\")\nexport const slotChoices = /* @__PURE__ */ read(\"slotChoices\")\nexport const slotValueRefusal = /* @__PURE__ */ read(\"slotValueRefusal\")\nexport const tabixIndexFields = /* @__PURE__ */ read(\"tabixIndexFields\")\nexport const tabixIndexSchema = /* @__PURE__ */ read(\"tabixIndexSchema\")\nexport const tabixIndexSnapshot = /* @__PURE__ */ read(\"tabixIndexSnapshot\")\nexport const toCallbackValue = /* @__PURE__ */ read(\"toCallbackValue\")\nexport const toFixedValue = /* @__PURE__ */ read(\"toFixedValue\")\nexport const writesWholeAt = /* @__PURE__ */ read(\"writesWholeAt\")\nexport default host && host.__esModule ? host.default : host"],
5
+ "mappings": "AAAA,IAAMA,EAAO,eAAe,6BAA6B,EACnDC,EAAOC,GACXF,GAAQ,MAAQE,KAAQ,OAAOF,CAAI,EAC/BA,EAAKE,CAAI,EACT,OAAO,OACL,UAAY,CACV,MAAM,IAAI,MAAM,kCAAoCA,EAAO,6IAA4J,CACzN,EACA,CAAE,mBAAoBA,CAAK,CAC7B,EACOC,EAAyCF,EAAK,wBAAwB,EACtEG,EAAsCH,EAAK,qBAAqB,EAmBtE,IAAMI,EAA0BC,EAAK,SAAS,EA8B9C,IAAMC,EAAiCC,EAAK,gBAAgB,EAK5D,IAAMC,EAA0BC,EAAK,SAAS,EAWrD,IAAOC,EAAQC,GAAQA,EAAK,WAAaA,EAAK,QAAUA",
6
+ "names": ["host", "read", "name", "ConfigurationReference", "ConfigurationSchema", "getConf", "read", "readConfObject", "read", "setConf", "read", "configuration_default", "host"]
7
+ }
@@ -1,4 +1,4 @@
1
- import{s as Ve}from"./chunk-M2D7NUOY.js";import{b as ze}from"./chunk-PX4IRCTO.js";import{a as He}from"./chunk-CL4PYWKC.js";import{a as $e,c as Ye}from"./chunk-J5RMHLFJ.js";function qe(e){let r=[],t=0,o;for(let n=0,i=e.length;n<i;n++){let a=e.charCodeAt(n);if(a>=48&&a<=57)t=t*10+a-48;else if(a===58)o=t,t=0;else{let f=e[n];f==="M"||f==="="||f==="X"?r.push({own:o===void 0?t:o,mate:t,op:"M"}):f==="I"?r.push({own:0,mate:t,op:f}):(f==="D"||f==="N")&&r.push({own:t,mate:0,op:f}),o=void 0,t=0}}return r}function Ae(e){let r="";for(let{own:t,mate:o,op:n}of qe(e))r+=n==="M"?t===0?`${o}I`:o===0?`${t}D`:`${t}M`:`${n==="I"?o:t}${n}`;return r}var Se=2**28-1;function ve(e,r,t){for(let o=r;o>0;o-=Se)e.push((Math.min(o,Se)<<4|t)>>>0)}function kr(e,r,t){if(r===t)ve(e,r,0);else{let o=Math.ceil(Math.max(r,t)/Se);for(let n=0;n<o;n++){let i=Math.floor(r*(n+1)/o)-Math.floor(r*n/o),a=Math.floor(t*(n+1)/o)-Math.floor(t*n/o);e.push((i<<4|9)>>>0,(a<<4|9)>>>0)}}}function _e(e){let r=[];for(let{own:t,mate:o,op:n}of qe(e))n==="M"?kr(r,t,o):n==="I"?ve(r,o,1):ve(r,t,n==="N"?3:2);return Uint32Array.from(r)}function Gr(e){return e>=48&&e<=57}function Dr(e){return e!==void 0&&/[A-Za-z]/.test(e)}function Ke(e,r){let t=r;for(;t<e.length&&Dr(e[t]);)t++;return t}function Qe(e,r){let t=r,o=0;for(;t<e.length&&Gr(e.charCodeAt(t));)o=o*10+(e.charCodeAt(t)-48),t++;return{value:o,next:t}}function rr(e,r){let t=0;for(;t<e.length;){let o=e[t];if(o===":"){let{value:n,next:i}=Qe(e,t+1);r(":",n,n,t+1,i),t=i}else if(o==="="){let n=Ke(e,t+1),i=n-t-1;r("=",i,i,t+1,n),t=n}else if(o==="*")r("*",1,1,t+1,Math.min(t+3,e.length)),t+=3;else if(o==="+"||o==="-"){let n=Ke(e,t+1),i=n-t-1;r(o,o==="-"?i:0,o==="+"?i:0,t+1,n),t=n}else if(o==="~"){let{value:n,next:i}=Qe(e,t+3),a=Math.min(i+2,e.length);r("~",n,0,t+1,a),t=a}else t++}}function Ce(e,r,t,o){let n=t??Number.NEGATIVE_INFINITY,i=o??Number.POSITIVE_INFINITY,a=0;rr(e,(f,p,s,c,u)=>{if(f==="*")a>=n&&a<i&&r(88,a,1,e[c+1]??"",-1,0,0);else if(f==="+"){if(a>=n&&a<=i){let m=e.slice(c,u);r(73,a,s,m,-1,0,s)}}else(f==="-"||f==="~")&&a<i&&a+p>n&&r(f==="-"?68:78,a,p,"",-1,0,0);a+=p})}function tr(e,r,t,o){let n=0,i=0,a=[],f=t&&r;for(let p=0,s=e.length;p<s;p++){let c=e[p],u=c>>>4,m=c&15;if(m===0||m===7){if(f)for(let l=0;l<u;l++)(r.charCodeAt(i+l)|32)!==(t.charCodeAt(n+l)|32)&&a.push({start:n+l,type:"mismatch",base:r[i+l],altbase:t[n+l],length:1});i+=u,n+=u}else if(m===1)a.push({start:n,type:"insertion",insertlen:u,insertedBases:r?.slice(i,i+u),length:0}),i+=u;else if(m===2)a.push({start:n,type:"deletion",length:u}),n+=u;else if(m===3)a.push({start:n,type:"skip",length:u}),n+=u;else if(m===8){for(let l=0;l<u;l++)a.push({start:n+l,type:"mismatch",base:r?.[i+l]||"X",qual:o?.[i+l],length:1});i+=u,n+=u}else m===5?a.push({start:n,type:"hardclip",cliplen:u,length:1}):m===4&&(a.push({start:n,type:"softclip",cliplen:u,length:1}),i+=u)}return a}function or(e,r,t,o,n){if(!r)return[];let i=[],a=r.length,f=o.length,p=n!==void 0,s=t.length,c=!1;for(let b=0;b<s;b++)if(t[b].type==="skip"){c=!0;break}let u=0,m=0,l=0,y=0,d=0,x=0,g=e.length;for(;x<g;){let b=e.charCodeAt(x);if(b>=48&&b<=57){let v=0;for(;x<g;){let S=e.charCodeAt(x);if(S>=48&&S<=57)v=v*10+(S-48),x++;else break}u+=v}else if(b===94)for(x++;x<g&&e.charCodeAt(x)>=65;)x++,u++;else if(b>=65){let v=e[x];if(x++,c&&s>0)for(let I=d;I<s;I++){let R=t[I];R.type==="skip"&&u>=R.start&&(u+=R.length,d=I+1)}let S=l,C=y;for(let I=m;I<a&&C<=u;I++,m=I){let R=r[I],L=R>>>4,A=R&15;A===4||A===1?S+=L:A===2||A===6||A===3?C+=L:A!==5&&(S+=L,C+=L)}l=S,y=C;let F=S-(C-u),q=F<f?o[F]:"X";i.push({start:u,base:q,qual:p?n[F]:void 0,altbase:v,length:1,type:"mismatch"}),u++}else x++}return i}var nr={77:0,73:1,68:2,78:3,83:4,72:5,80:6,61:7,88:8};function ir(e=""){let r=0,t=[];for(let o=0,n=e.length;o<n;o++){let i=e.charCodeAt(o);if(i>=48&&i<=57)r=r*10+(i-48);else{let a=nr[i];t.push(r<<4|a),r=0}}return t}function Te(e=""){let r=0;for(let i=0,a=e.length;i<a;i++){let f=e.charCodeAt(i);(f<48||f>57)&&r++}let t=new Uint32Array(r),o=0,n=0;for(let i=0,a=e.length;i<a;i++){let f=e.charCodeAt(i);f>=48&&f<=57?o=o*10+(f-48):(t[n++]=o<<4|nr[f],o=0)}return t}function J(e,r,t,o,n){let i=ir(e),a=e?tr(i,t,o,n):[];return r&&t?a.concat(or(r,i,a,t,n)):a}var N=class extends $e{get(r){return r==="mismatches"?J(this.walkableCigar):r==="clipLengthAtStartOfRead"?this.clipLengthAtStartOfRead:r==="name"?super.get("name")??this.mate?.refName:super.get(r)}get mate(){return super.get("mate")}get walkableCigar(){let r=super.get("CIGAR"),t=super.get("coarseCigar");return typeof r=="string"?r:typeof t=="string"?Ae(t):void 0}get clipLengthAtStartOfRead(){return this.mate?.start??0}forEachMismatch(r,t){let o=this.get("start"),n=t?.start===void 0?void 0:t.start-o,i=t?.end===void 0?void 0:t.end-o,a=this.get("cs");if(a)Ce(a,r,n,i);else{let f=n??Number.NEGATIVE_INFINITY,p=i??Number.POSITIVE_INFINITY;for(let s of J(this.walkableCigar))(s.type==="deletion"||s.type==="skip"?s.start<p&&s.start+s.length>f:s.start>=f&&s.start<=p)&&(s.type==="mismatch"?r(88,s.start,s.length,s.base,s.qual??-1,0,0):s.type==="insertion"?r(73,s.start,s.length,s.insertedBases??"",-1,0,s.insertlen):s.type==="deletion"?r(68,s.start,s.length,"",-1,0,0):s.type==="skip"&&r(78,s.start,s.length,"",-1,0,0))}}};var we=function(e,r){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},we(e,r)};function H(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");we(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function ar(e,r,t,o){function n(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function f(c){try{s(o.next(c))}catch(u){a(u)}}function p(c){try{s(o.throw(c))}catch(u){a(u)}}function s(c){c.done?i(c.value):n(c.value).then(f,p)}s((o=o.apply(e,r||[])).next())})}function ee(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=f(0),a.throw=f(1),a.return=f(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function f(s){return function(c){return p([s,c])}}function p(s){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(t=0)),t;)try{if(o=1,n&&(i=s[0]&2?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=r.call(e,t)}catch(c){s=[6,c],n=0}finally{o=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function P(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],o=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function D(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var o=t.call(e),n,i=[],a;try{for(;(r===void 0||r-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(f){a={error:f}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(a)throw a.error}}return i}function j(e,r,t){if(t||arguments.length===2)for(var o=0,n=r.length,i;o<n;o++)(i||!(o in r))&&(i||(i=Array.prototype.slice.call(r,0,o)),i[o]=r[o]);return e.concat(i||Array.prototype.slice.call(r))}function k(e){return this instanceof k?(this.v=e,this):new k(e)}function sr(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=t.apply(e,r||[]),n,i=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),f("next"),f("throw"),f("return",a),n[Symbol.asyncIterator]=function(){return this},n;function a(l){return function(y){return Promise.resolve(y).then(l,u)}}function f(l,y){o[l]&&(n[l]=function(d){return new Promise(function(x,g){i.push([l,d,x,g])>1||p(l,d)})},y&&(n[l]=y(n[l])))}function p(l,y){try{s(o[l](y))}catch(d){m(i[0][3],d)}}function s(l){l.value instanceof k?Promise.resolve(l.value.v).then(c,u):m(i[0][2],l)}function c(l){p("next",l)}function u(l){p("throw",l)}function m(l,y){l(y),i.shift(),i.length&&p(i[0][0],i[0][1])}}function fr(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof P=="function"?P(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(i){t[i]=e[i]&&function(a){return new Promise(function(f,p){a=e[i](a),n(f,p,a.done,a.value)})}}function n(i,a,f,p){Promise.resolve(p).then(function(s){i({value:s,done:f})},a)}}function h(e){return typeof e=="function"}function pr(e){var r=function(o){Error.call(o),o.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var re=pr(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
1
+ import{s as Ve}from"./chunk-M2D7NUOY.js";import{b as ze}from"./chunk-VNWCN47G.js";import{a as He}from"./chunk-CL4PYWKC.js";import{a as $e,c as Ye}from"./chunk-TC265JAP.js";function qe(e){let r=[],t=0,o;for(let n=0,i=e.length;n<i;n++){let a=e.charCodeAt(n);if(a>=48&&a<=57)t=t*10+a-48;else if(a===58)o=t,t=0;else{let f=e[n];f==="M"||f==="="||f==="X"?r.push({own:o===void 0?t:o,mate:t,op:"M"}):f==="I"?r.push({own:0,mate:t,op:f}):(f==="D"||f==="N")&&r.push({own:t,mate:0,op:f}),o=void 0,t=0}}return r}function Ae(e){let r="";for(let{own:t,mate:o,op:n}of qe(e))r+=n==="M"?t===0?`${o}I`:o===0?`${t}D`:`${t}M`:`${n==="I"?o:t}${n}`;return r}var Se=2**28-1;function ve(e,r,t){for(let o=r;o>0;o-=Se)e.push((Math.min(o,Se)<<4|t)>>>0)}function kr(e,r,t){if(r===t)ve(e,r,0);else{let o=Math.ceil(Math.max(r,t)/Se);for(let n=0;n<o;n++){let i=Math.floor(r*(n+1)/o)-Math.floor(r*n/o),a=Math.floor(t*(n+1)/o)-Math.floor(t*n/o);e.push((i<<4|9)>>>0,(a<<4|9)>>>0)}}}function _e(e){let r=[];for(let{own:t,mate:o,op:n}of qe(e))n==="M"?kr(r,t,o):n==="I"?ve(r,o,1):ve(r,t,n==="N"?3:2);return Uint32Array.from(r)}function Gr(e){return e>=48&&e<=57}function Dr(e){return e!==void 0&&/[A-Za-z]/.test(e)}function Ke(e,r){let t=r;for(;t<e.length&&Dr(e[t]);)t++;return t}function Qe(e,r){let t=r,o=0;for(;t<e.length&&Gr(e.charCodeAt(t));)o=o*10+(e.charCodeAt(t)-48),t++;return{value:o,next:t}}function rr(e,r){let t=0;for(;t<e.length;){let o=e[t];if(o===":"){let{value:n,next:i}=Qe(e,t+1);r(":",n,n,t+1,i),t=i}else if(o==="="){let n=Ke(e,t+1),i=n-t-1;r("=",i,i,t+1,n),t=n}else if(o==="*")r("*",1,1,t+1,Math.min(t+3,e.length)),t+=3;else if(o==="+"||o==="-"){let n=Ke(e,t+1),i=n-t-1;r(o,o==="-"?i:0,o==="+"?i:0,t+1,n),t=n}else if(o==="~"){let{value:n,next:i}=Qe(e,t+3),a=Math.min(i+2,e.length);r("~",n,0,t+1,a),t=a}else t++}}function Ce(e,r,t,o){let n=t??Number.NEGATIVE_INFINITY,i=o??Number.POSITIVE_INFINITY,a=0;rr(e,(f,p,s,c,u)=>{if(f==="*")a>=n&&a<i&&r(88,a,1,e[c+1]??"",-1,0,0);else if(f==="+"){if(a>=n&&a<=i){let m=e.slice(c,u);r(73,a,s,m,-1,0,s)}}else(f==="-"||f==="~")&&a<i&&a+p>n&&r(f==="-"?68:78,a,p,"",-1,0,0);a+=p})}function tr(e,r,t,o){let n=0,i=0,a=[],f=t&&r;for(let p=0,s=e.length;p<s;p++){let c=e[p],u=c>>>4,m=c&15;if(m===0||m===7){if(f)for(let l=0;l<u;l++)(r.charCodeAt(i+l)|32)!==(t.charCodeAt(n+l)|32)&&a.push({start:n+l,type:"mismatch",base:r[i+l],altbase:t[n+l],length:1});i+=u,n+=u}else if(m===1)a.push({start:n,type:"insertion",insertlen:u,insertedBases:r?.slice(i,i+u),length:0}),i+=u;else if(m===2)a.push({start:n,type:"deletion",length:u}),n+=u;else if(m===3)a.push({start:n,type:"skip",length:u}),n+=u;else if(m===8){for(let l=0;l<u;l++)a.push({start:n+l,type:"mismatch",base:r?.[i+l]||"X",qual:o?.[i+l],length:1});i+=u,n+=u}else m===5?a.push({start:n,type:"hardclip",cliplen:u,length:1}):m===4&&(a.push({start:n,type:"softclip",cliplen:u,length:1}),i+=u)}return a}function or(e,r,t,o,n){if(!r)return[];let i=[],a=r.length,f=o.length,p=n!==void 0,s=t.length,c=!1;for(let b=0;b<s;b++)if(t[b].type==="skip"){c=!0;break}let u=0,m=0,l=0,y=0,d=0,x=0,g=e.length;for(;x<g;){let b=e.charCodeAt(x);if(b>=48&&b<=57){let v=0;for(;x<g;){let S=e.charCodeAt(x);if(S>=48&&S<=57)v=v*10+(S-48),x++;else break}u+=v}else if(b===94)for(x++;x<g&&e.charCodeAt(x)>=65;)x++,u++;else if(b>=65){let v=e[x];if(x++,c&&s>0)for(let I=d;I<s;I++){let R=t[I];R.type==="skip"&&u>=R.start&&(u+=R.length,d=I+1)}let S=l,C=y;for(let I=m;I<a&&C<=u;I++,m=I){let R=r[I],L=R>>>4,A=R&15;A===4||A===1?S+=L:A===2||A===6||A===3?C+=L:A!==5&&(S+=L,C+=L)}l=S,y=C;let F=S-(C-u),q=F<f?o[F]:"X";i.push({start:u,base:q,qual:p?n[F]:void 0,altbase:v,length:1,type:"mismatch"}),u++}else x++}return i}var nr={77:0,73:1,68:2,78:3,83:4,72:5,80:6,61:7,88:8};function ir(e=""){let r=0,t=[];for(let o=0,n=e.length;o<n;o++){let i=e.charCodeAt(o);if(i>=48&&i<=57)r=r*10+(i-48);else{let a=nr[i];t.push(r<<4|a),r=0}}return t}function Te(e=""){let r=0;for(let i=0,a=e.length;i<a;i++){let f=e.charCodeAt(i);(f<48||f>57)&&r++}let t=new Uint32Array(r),o=0,n=0;for(let i=0,a=e.length;i<a;i++){let f=e.charCodeAt(i);f>=48&&f<=57?o=o*10+(f-48):(t[n++]=o<<4|nr[f],o=0)}return t}function J(e,r,t,o,n){let i=ir(e),a=e?tr(i,t,o,n):[];return r&&t?a.concat(or(r,i,a,t,n)):a}var N=class extends $e{get(r){return r==="mismatches"?J(this.walkableCigar):r==="clipLengthAtStartOfRead"?this.clipLengthAtStartOfRead:r==="name"?super.get("name")??this.mate?.refName:super.get(r)}get mate(){return super.get("mate")}get walkableCigar(){let r=super.get("CIGAR"),t=super.get("coarseCigar");return typeof r=="string"?r:typeof t=="string"?Ae(t):void 0}get clipLengthAtStartOfRead(){return this.mate?.start??0}forEachMismatch(r,t){let o=this.get("start"),n=t?.start===void 0?void 0:t.start-o,i=t?.end===void 0?void 0:t.end-o,a=this.get("cs");if(a)Ce(a,r,n,i);else{let f=n??Number.NEGATIVE_INFINITY,p=i??Number.POSITIVE_INFINITY;for(let s of J(this.walkableCigar))(s.type==="deletion"||s.type==="skip"?s.start<p&&s.start+s.length>f:s.start>=f&&s.start<=p)&&(s.type==="mismatch"?r(88,s.start,s.length,s.base,s.qual??-1,0,0):s.type==="insertion"?r(73,s.start,s.length,s.insertedBases??"",-1,0,s.insertlen):s.type==="deletion"?r(68,s.start,s.length,"",-1,0,0):s.type==="skip"&&r(78,s.start,s.length,"",-1,0,0))}}};var we=function(e,r){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},we(e,r)};function H(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");we(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}function ar(e,r,t,o){function n(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function f(c){try{s(o.next(c))}catch(u){a(u)}}function p(c){try{s(o.throw(c))}catch(u){a(u)}}function s(c){c.done?i(c.value):n(c.value).then(f,p)}s((o=o.apply(e,r||[])).next())})}function ee(e,r){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=f(0),a.throw=f(1),a.return=f(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function f(s){return function(c){return p([s,c])}}function p(s){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(t=0)),t;)try{if(o=1,n&&(i=s[0]&2?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,n=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1],i=s;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(s);break}i[2]&&t.ops.pop(),t.trys.pop();continue}s=r.call(e,t)}catch(c){s=[6,c],n=0}finally{o=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function P(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],o=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function D(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var o=t.call(e),n,i=[],a;try{for(;(r===void 0||r-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(f){a={error:f}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(a)throw a.error}}return i}function j(e,r,t){if(t||arguments.length===2)for(var o=0,n=r.length,i;o<n;o++)(i||!(o in r))&&(i||(i=Array.prototype.slice.call(r,0,o)),i[o]=r[o]);return e.concat(i||Array.prototype.slice.call(r))}function k(e){return this instanceof k?(this.v=e,this):new k(e)}function sr(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=t.apply(e,r||[]),n,i=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),f("next"),f("throw"),f("return",a),n[Symbol.asyncIterator]=function(){return this},n;function a(l){return function(y){return Promise.resolve(y).then(l,u)}}function f(l,y){o[l]&&(n[l]=function(d){return new Promise(function(x,g){i.push([l,d,x,g])>1||p(l,d)})},y&&(n[l]=y(n[l])))}function p(l,y){try{s(o[l](y))}catch(d){m(i[0][3],d)}}function s(l){l.value instanceof k?Promise.resolve(l.value.v).then(c,u):m(i[0][2],l)}function c(l){p("next",l)}function u(l){p("throw",l)}function m(l,y){l(y),i.shift(),i.length&&p(i[0][0],i[0][1])}}function fr(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof P=="function"?P(e):e[Symbol.iterator](),t={},o("next"),o("throw"),o("return"),t[Symbol.asyncIterator]=function(){return this},t);function o(i){t[i]=e[i]&&function(a){return new Promise(function(f,p){a=e[i](a),n(f,p,a.done,a.value)})}}function n(i,a,f,p){Promise.resolve(p).then(function(s){i({value:s,done:f})},a)}}function h(e){return typeof e=="function"}function pr(e){var r=function(o){Error.call(o),o.stack=new Error().stack},t=e(r);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var re=pr(function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
2
2
  `+t.map(function(o,n){return n+1+") "+o.toString()}).join(`
3
3
  `):"",this.name="UnsubscriptionError",this.errors=t}});function Oe(e,r){if(e){var t=e.indexOf(r);0<=t&&e.splice(t,1)}}var te=(function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,t,o,n,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var f=P(a),p=f.next();!p.done;p=f.next()){var s=p.value;s.remove(this)}}catch(d){r={error:d}}finally{try{p&&!p.done&&(t=f.return)&&t.call(f)}finally{if(r)throw r.error}}else a.remove(this);var c=this.initialTeardown;if(h(c))try{c()}catch(d){i=d instanceof re?d.errors:[d]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var m=P(u),l=m.next();!l.done;l=m.next()){var y=l.value;try{cr(y)}catch(d){i=i??[],d instanceof re?i=j(j([],D(i)),D(d.errors)):i.push(d)}}}catch(d){o={error:d}}finally{try{l&&!l.done&&(n=m.return)&&n.call(m)}finally{if(o)throw o.error}}}if(i)throw new re(i)}},e.prototype.add=function(r){var t;if(r&&r!==this)if(this.closed)cr(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(r)}},e.prototype._hasParent=function(r){var t=this._parentage;return t===r||Array.isArray(t)&&t.includes(r)},e.prototype._addParent=function(r){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(r),t):t?[t,r]:r},e.prototype._removeParent=function(r){var t=this._parentage;t===r?this._parentage=null:Array.isArray(t)&&Oe(t,r)},e.prototype.remove=function(r){var t=this._finalizers;t&&Oe(t,r),r instanceof e&&r._removeParent(this)},e.EMPTY=(function(){var r=new e;return r.closed=!0,r})(),e})();var Zt=te.EMPTY;function oe(e){return e instanceof te||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function cr(e){h(e)?e():e.unsubscribe()}var w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var U={setTimeout:function(e,r){for(var t=[],o=2;o<arguments.length;o++)t[o-2]=arguments[o];var n=U.delegate;return n?.setTimeout?n.setTimeout.apply(n,j([e,r],D(t))):setTimeout.apply(void 0,j([e,r],D(t)))},clearTimeout:function(e){var r=U.delegate;return(r?.clearTimeout||clearTimeout)(e)},delegate:void 0};function ne(e){U.setTimeout(function(){var r=w.onUnhandledError;if(r)r(e);else throw e})}function Re(){}var ur=(function(){return Me("C",void 0,void 0)})();function lr(e){return Me("E",void 0,e)}function mr(e){return Me("N",e,void 0)}function Me(e,r,t){return{kind:e,value:r,error:t}}var G=null;function dr(e){if(w.useDeprecatedSynchronousErrorHandling){var r=!G;if(r&&(G={errorThrown:!1,error:null}),e(),r){var t=G,o=t.errorThrown,n=t.error;if(G=null,o)throw n}}else e()}function xr(e){w.useDeprecatedSynchronousErrorHandling&&G&&(G.errorThrown=!0,G.error=e)}var z=(function(e){H(r,e);function r(t){var o=e.call(this)||this;return o.isStopped=!1,t?(o.destination=t,oe(t)&&t.add(o)):o.destination=Yr,o}return r.create=function(t,o,n){return new ae(t,o,n)},r.prototype.next=function(t){this.isStopped?Le(mr(t),this):this._next(t)},r.prototype.error=function(t){this.isStopped?Le(lr(t),this):(this.isStopped=!0,this._error(t))},r.prototype.complete=function(){this.isStopped?Le(ur,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(t){this.destination.next(t)},r.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r})(te);var Br=Function.prototype.bind;function Fe(e,r){return Br.call(e,r)}var Wr=(function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var t=this.partialObserver;if(t.next)try{t.next(r)}catch(o){ie(o)}},e.prototype.error=function(r){var t=this.partialObserver;if(t.error)try{t.error(r)}catch(o){ie(o)}else ie(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(t){ie(t)}},e})(),ae=(function(e){H(r,e);function r(t,o,n){var i=e.call(this)||this,a;if(h(t)||!t)a={next:t??void 0,error:o??void 0,complete:n??void 0};else{var f;i&&w.useDeprecatedNextContext?(f=Object.create(t),f.unsubscribe=function(){return i.unsubscribe()},a={next:t.next&&Fe(t.next,f),error:t.error&&Fe(t.error,f),complete:t.complete&&Fe(t.complete,f)}):a=t}return i.destination=new Wr(a),i}return r})(z);function ie(e){w.useDeprecatedSynchronousErrorHandling?xr(e):ne(e)}function $r(e){throw e}function Le(e,r){var t=w.onStoppedNotification;t&&U.setTimeout(function(){return t(e,r)})}var Yr={closed:!0,next:Re,error:$r,complete:Re};var B=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function hr(e){return e}function yr(e){return e.length===0?hr:e.length===1?e[0]:function(t){return e.reduce(function(o,n){return n(o)},t)}}var _=(function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var t=new e;return t.source=this,t.operator=r,t},e.prototype.subscribe=function(r,t,o){var n=this,i=zr(r)?r:new ae(r,t,o);return dr(function(){var a=n,f=a.operator,p=a.source;i.add(f?f.call(i,p):p?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(t){r.error(t)}},e.prototype.forEach=function(r,t){var o=this;return t=gr(t),new t(function(n,i){var a=new ae({next:function(f){try{r(f)}catch(p){i(p),a.unsubscribe()}},error:i,complete:n});o.subscribe(a)})},e.prototype._subscribe=function(r){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(r)},e.prototype[B]=function(){return this},e.prototype.pipe=function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return yr(r)(this)},e.prototype.toPromise=function(r){var t=this;return r=gr(r),new r(function(o,n){var i;t.subscribe(function(a){return i=a},function(a){return n(a)},function(){return o(i)})})},e.create=function(r){return new e(r)},e})();function gr(e){var r;return(r=e??w.Promise)!==null&&r!==void 0?r:Promise}function Hr(e){return e&&h(e.next)&&h(e.error)&&h(e.complete)}function zr(e){return e&&e instanceof z||Hr(e)&&oe(e)}function Vr(e){return h(e?.lift)}function E(e){return function(r){if(Vr(r))return r.lift(function(t){try{return e(t,this)}catch(o){this.error(o)}});throw new TypeError("Unable to lift unknown Observable type")}}function M(e,r,t,o,n){return new qr(e,r,t,o,n)}var qr=(function(e){H(r,e);function r(t,o,n,i,a,f){var p=e.call(this,t)||this;return p.onFinalize=a,p.shouldUnsubscribe=f,p._next=o?function(s){try{o(s)}catch(c){t.error(c)}}:e.prototype._next,p._error=i?function(s){try{i(s)}catch(c){t.error(c)}finally{this.unsubscribe()}}:e.prototype._error,p._complete=n?function(){try{n()}catch(s){t.error(s)}finally{this.unsubscribe()}}:e.prototype._complete,p}return r.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var o=this.closed;e.prototype.unsubscribe.call(this),!o&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},r})(z);var se=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function fe(e){return h(e?.then)}function pe(e){return h(e[B])}function ce(e){return Symbol.asyncIterator&&h(e?.[Symbol.asyncIterator])}function ue(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Kr(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var le=Kr();function me(e){return h(e?.[le])}function de(e){return sr(this,arguments,function(){var t,o,n,i;return ee(this,function(a){switch(a.label){case 0:t=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,k(t.read())];case 3:return o=a.sent(),n=o.value,i=o.done,i?[4,k(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,k(n)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function xe(e){return h(e?.getReader)}function O(e){if(e instanceof _)return e;if(e!=null){if(pe(e))return Qr(e);if(se(e))return Xr(e);if(fe(e))return Zr(e);if(ce(e))return br(e);if(me(e))return Jr(e);if(xe(e))return et(e)}throw ue(e)}function Qr(e){return new _(function(r){var t=e[B]();if(h(t.subscribe))return t.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Xr(e){return new _(function(r){for(var t=0;t<e.length&&!r.closed;t++)r.next(e[t]);r.complete()})}function Zr(e){return new _(function(r){e.then(function(t){r.closed||(r.next(t),r.complete())},function(t){return r.error(t)}).then(null,ne)})}function Jr(e){return new _(function(r){var t,o;try{for(var n=P(e),i=n.next();!i.done;i=n.next()){var a=i.value;if(r.next(a),r.closed)return}}catch(f){t={error:f}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(t)throw t.error}}r.complete()})}function br(e){return new _(function(r){rt(e,r).catch(function(t){return r.error(t)})})}function et(e){return br(de(e))}function rt(e,r){var t,o,n,i;return ar(this,void 0,void 0,function(){var a,f;return ee(this,function(p){switch(p.label){case 0:p.trys.push([0,5,6,11]),t=fr(e),p.label=1;case 1:return[4,t.next()];case 2:if(o=p.sent(),!!o.done)return[3,4];if(a=o.value,r.next(a),r.closed)return[2];p.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return f=p.sent(),n={error:f},[3,11];case 6:return p.trys.push([6,,9,10]),o&&!o.done&&(i=t.return)?[4,i.call(t)]:[3,8];case 7:p.sent(),p.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return r.complete(),[2]}})})}function T(e,r,t,o,n){o===void 0&&(o=0),n===void 0&&(n=!1);var i=r.schedule(function(){t(),n?e.add(this.schedule(null,o)):this.unsubscribe()},o);if(e.add(i),!n)return i}function he(e,r){return r===void 0&&(r=0),E(function(t,o){t.subscribe(M(o,function(n){return T(o,e,function(){return o.next(n)},r)},function(){return T(o,e,function(){return o.complete()},r)},function(n){return T(o,e,function(){return o.error(n)},r)}))})}function ye(e,r){return r===void 0&&(r=0),E(function(t,o){o.add(e.schedule(function(){return t.subscribe(o)},r))})}function Sr(e,r){return O(e).pipe(ye(r),he(r))}function vr(e,r){return O(e).pipe(ye(r),he(r))}function Ar(e,r){return new _(function(t){var o=0;return r.schedule(function(){o===e.length?t.complete():(t.next(e[o++]),t.closed||this.schedule())})})}function _r(e,r){return new _(function(t){var o;return T(t,r,function(){o=e[le](),T(t,r,function(){var n,i,a;try{n=o.next(),i=n.value,a=n.done}catch(f){t.error(f);return}a?t.complete():t.next(i)},0,!0)}),function(){return h(o?.return)&&o.return()}})}function ge(e,r){if(!e)throw new Error("Iterable cannot be null");return new _(function(t){T(t,r,function(){var o=e[Symbol.asyncIterator]();T(t,r,function(){o.next().then(function(n){n.done?t.complete():t.next(n.value)})},0,!0)})})}function Cr(e,r){return ge(de(e),r)}function Ir(e,r){if(e!=null){if(pe(e))return Sr(e,r);if(se(e))return Ar(e,r);if(fe(e))return vr(e,r);if(ce(e))return ge(e,r);if(me(e))return _r(e,r);if(xe(e))return Cr(e,r)}throw ue(e)}function Ne(e,r){return r?Ir(e,r):O(e)}function V(e,r){return E(function(t,o){var n=0;t.subscribe(M(o,function(i){o.next(e.call(r,i,n++))}))})}function Er(e,r,t,o,n,i,a,f){var p=[],s=0,c=0,u=!1,m=function(){u&&!p.length&&!s&&r.complete()},l=function(d){return s<o?y(d):p.push(d)},y=function(d){i&&r.next(d),s++;var x=!1;O(t(d,c++)).subscribe(M(r,function(g){n?.(g),i?l(g):r.next(g)},function(){x=!0},void 0,function(){if(x)try{s--;for(var g=function(){var b=p.shift();a?T(r,a,function(){return y(b)}):y(b)};p.length&&s<o;)g();m()}catch(b){r.error(b)}}))};return e.subscribe(M(r,l,function(){u=!0,m()})),function(){f?.()}}function W(e,r,t){return t===void 0&&(t=1/0),h(r)?W(function(o,n){return V(function(i,a){return r(o,i,n,a)})(O(e(o,n)))},t):(typeof r=="number"&&(t=r),E(function(o,n){return Er(o,n,e,t)}))}function Tr(e,r,t,o,n){return function(i,a){var f=t,p=r,s=0;i.subscribe(M(a,function(c){var u=s++;p=f?e(p,c,u):(f=!0,c),o&&a.next(p)},n&&(function(){f&&a.next(p),a.complete()})))}}function wr(e,r){return E(Tr(e,r,arguments.length>=2,!1,!0))}var tt=function(e,r){return e.push(r),e};function be(){return E(function(e,r){wr(tt,[])(e).subscribe(r)})}var ot=397,nt=387,it=385;function Or(e){return(1<<e&ot)!==0}function Rr(e){return(1<<e&nt)!==0}function Mr(e){return(1<<e&it)!==0}function Pe(e,r,t,o,n,i,a){let f=n===-1?-1:1,p=r,s=n===-1?o:t,c=[],u=1/0,m=-1/0,l=1/0,y=-1/0,d=(x,g)=>{l=Math.min(l,x,g),y=Math.max(y,x,g)};for(let x=0;x<e.length;x++){let g=e[x],b=g>>>4,v=g&15,S=v===9,C=S||Or(v)?b:0,F=S?e[++x]>>>4:Rr(v)?b:0,q=p+C,I=s+F*f,R=p,L=q;if(L>=i&&R<=a)if(C>0){let A=Math.max(R,i),$=Math.min(L,a);if($>A)if(u=Math.min(u,A),m=Math.max(m,$),S){let je=F/b,Ue=$-A,Be=Math.round(Ue*je),We=Math.round(s+(A-p)*je*f);c.push(Ue<<4|9,Be<<4|9),d(We,We+Be*f)}else c.push($-A<<4|v),Mr(v)?d(s+(A-p)*f,s+($-p)*f):d(s,s)}else F>0&&(S?c.push(g,e[x]):c.push(g),u=Math.min(u,p),m=Math.max(m,p),d(s,I));if(p=q,s=I,p>a)break}if(c.length!==0)return{start:u,end:m,mateStart:l,mateEnd:y,cigar:Uint32Array.from(c)}}function at(e){return e===1||e===2||e===3}function ke(e,r,t,o,n,i){let a=n===-1?-1:1,f=[],p=r,s=n===-1?o:t,c,u=!1,m=()=>{c!==void 0&&u&&c.qHi>c.qLo&&f.push({start:c.qLo,end:c.qHi,mateStart:c.tLo,mateEnd:c.tHi,cigar:Uint32Array.from(c.ops)}),c=void 0,u=!1};for(let l=0;l<e.length;l++){let y=e[l],d=y>>>4,x=y&15,g=x===9,b=g?e[++l]:void 0,v=g||Or(x)?d:0,S=b!==void 0?b>>>4:Rr(x)?d:0,C=s+S*a;at(x)&&d>=i?m():(v>0||S>0)&&(c===void 0&&(c={qLo:p,qHi:p,tLo:s,tHi:s,ops:[]}),c.qHi=p+v,c.tLo=Math.min(c.tLo,s,C),c.tHi=Math.max(c.tHi,s,C),c.ops.push(y),b!==void 0&&c.ops.push(b),u=u||g||Mr(x)),p+=v,s=C}return m(),f}function Fr(e){let r=e.get("CIGAR");return typeof r=="string"?r:void 0}function Lr(e){let r=e.get("coarseCigar");return typeof r=="string"?r:void 0}function Ge(e){let r=Fr(e),t=r===void 0?Lr(e):void 0;return r!==void 0?Te(r):t!==void 0?_e(t):void 0}var st=["CIGAR","cs","coarseCigar","cg","cr"];function ft(e){return typeof e=="object"&&e!==null&&"refName"in e&&"start"in e&&"end"in e&&typeof e.refName=="string"&&typeof e.start=="number"&&typeof e.end=="number"}function pt(e){let r=e.get("mate");return ft(r)?r:void 0}function ct(e,r,t,o){let n=Math.max(e.start,o.start),i=Math.min(e.end,o.end),a=(r.end-r.start)/Math.max(e.end-e.start,1),f=c=>t===-1?r.end-(c-e.start)*a:r.start+(c-e.start)*a,p=Math.round(f(n)),s=Math.round(f(i));return i>n?{start:n,end:i,mateStart:Math.min(p,s),mateEnd:Math.max(p,s)}:void 0}function ut(e,r,t,o,n){let i={start:e.get("start"),end:e.get("end")},a=e.get("strand")===-1?-1:1,f=i.start>=t.start&&i.end<=t.end,p=f&&o===void 0&&!n?void 0:Ge(e);if(p===void 0){let s=f?{...i,mateStart:r.start,mateEnd:r.end}:ct(i,r,a,t);return s===void 0?[]:[s]}else return(o===void 0?[{...i,mateStart:r.start,mateEnd:r.end,cigar:p}]:ke(p,i.start,r.start,r.end,a,o)).flatMap(c=>{let u=Pe(c.cigar,c.start,c.mateStart,c.mateEnd,a,t.start,t.end);return u===void 0?[]:[u]})}function lt(e,r,t,o,n,i){let a=`:${o.start}-${o.end}${n}`,f=e.toJSON(),p={...f,uniqueId:`${e.id()}${a}`,recordId:f.recordId??e.id(),start:t.start,end:t.end,mate:{...r,start:t.mateStart,end:t.mateEnd}};f.syntenyId!==void 0&&(p.syntenyId=`${String(f.syntenyId)}${a}`);for(let s of st)delete p[s];return i&&t.cigar&&(p.alignmentOps=t.cigar),new N(p)}function Nr(e,r,t,o=!1){let n=pt(e);if(n===void 0||e.get("spansWindow"))return[e];{let i=ut(e,n,r,t,o);return i.map((a,f)=>lt(e,n,a,r,i.length>1?`/${f}`:"",o))}}var Pr=class extends ze{constructor(){super(...arguments);this.recordsAreAlignments=!0}static{this.capabilities=["getFeatures","getRefNames"]}async hasDataForRefName(){return!0}getFeaturesInMultipleRegions(t,o={}){let{clipToRegion:n,splitAtGapBp:i,keepAlignment:a,...f}=o,p=n&&this.recordsAreAlignments,s=Ye(f.statusCallback);return Ne(t).pipe(W((c,u)=>this.getFeatures(c,{...f,statusCallback:s()}).pipe(W(m=>p?Nr(m,m.get("assemblyName")===c.assemblyName?c:{start:m.get("start"),end:m.get("end")},i,a):[m]),be(),V(m=>({index:u,features:m})))),be(),W(c=>c.sort((u,m)=>u.index-m.index).flatMap(u=>u.features)))}};var De=class extends Error{constructor(t){super(`a pair query names both lanes: queryAssemblyName ${t} came without a targetAssemblyName`);this.name="PairTargetError"}};function Xi(e){let{lanePairs:r,queryAssemblyName:t,targetAssemblyName:o}=e;if(r?.length)return r;if(t===void 0)return[];if(o===void 0)throw new De(t);return[{queryAssemblyName:t,targetAssemblyName:o}]}function Zi(e){let[r]=e;return e.length===1&&r?`Reading ${r.queryAssemblyName} against ${r.targetAssemblyName}`:`Reading ${e.length} lane pairs`}function Ji(e,r){return e[r]??e[He(r)]??r}function mt(e,r){let t=Math.max(1,r);return e>=10*t?Math.ceil(e/t):Math.max(11,Math.ceil(10*e/t))/10}function ta(e,r){if(Ve(e)&&e instanceof Error){let{fitsBp:t}=e;e.message=e.message.replace("to see the graph","to see lanes"),typeof t=="number"&&(e.message=e.message.replace(/^Zoom in to about [\d.,]*\d[KM]?bp/,`Zoom in about ${mt(r,t)}\xD7`))}return e}function ia({target:e,query:r,strand:t,cigar:o,matches:n,columns:i}){let a=`${e.name}:${e.start}-${e.end}|${r.name}:${r.start}-${r.end}`;return new N({uniqueId:a,assemblyName:e.assemblyName,refName:e.refName,start:e.start,end:e.end,type:"match",strand:t==="-"?-1:1,CIGAR:o,syntenyId:a,identity:n/Math.max(i,1),numMatches:n,blockLen:i,mate:{refName:r.refName,start:r.start,end:r.end,assemblyName:r.assemblyName}})}export{N as a,Pr as b,De as c,Xi as d,Zi as e,Ji as f,ta as g,ia as h};
4
- //# sourceMappingURL=chunk-5Q56NPNH.js.map
4
+ //# sourceMappingURL=chunk-SVDQVLEU.js.map