@vertexvis/viewer 0.12.0 → 0.13.0-canary.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 (225) hide show
  1. package/dist/cjs/{config-acd7cea9.js → config-90ee43d5.js} +1 -1
  2. package/dist/cjs/{cursors-399a9648.js → cursors-ad2fd395.js} +7 -0
  3. package/dist/cjs/{controller-8cbcdd8d.js → entities-aa59890e.js} +57 -22
  4. package/dist/cjs/{index-cc65325e.js → index-e100709a.js} +64 -3
  5. package/dist/cjs/index.cjs.js +21 -11
  6. package/dist/cjs/loader.cjs.js +2 -2
  7. package/dist/cjs/{model-18ef3363.js → mapper-f6e6cafe.js} +37 -191
  8. package/dist/cjs/model-4ec0c36e.js +134 -0
  9. package/dist/cjs/overlays-8a582edf.js +76 -0
  10. package/dist/cjs/results-bc325974.js +24 -0
  11. package/dist/cjs/{scene-ffee07ee.js → scene-f4040800.js} +1 -1
  12. package/dist/cjs/{stencil-bd453a38.js → stencil-a664cd10.js} +1 -1
  13. package/dist/cjs/{streamAttributes-9d6226ac.js → streamAttributes-d6236448.js} +87 -30
  14. package/dist/cjs/vertex-scene-tree-search_3.cjs.entry.js +2 -2
  15. package/dist/cjs/vertex-scene-tree-table-cell.cjs.entry.js +1 -1
  16. package/dist/cjs/vertex-scene-tree-table-column.cjs.entry.js +1 -1
  17. package/dist/cjs/vertex-scene-tree-table-header.cjs.entry.js +1 -1
  18. package/dist/cjs/vertex-scene-tree-table-resize-divider.cjs.entry.js +1 -1
  19. package/dist/cjs/vertex-scene-tree-toolbar-group.cjs.entry.js +1 -1
  20. package/dist/cjs/vertex-scene-tree.cjs.entry.js +3 -3
  21. package/dist/cjs/vertex-viewer-button_3.cjs.entry.js +1 -1
  22. package/dist/cjs/vertex-viewer-default-toolbar.cjs.entry.js +1 -1
  23. package/dist/cjs/vertex-viewer-dom-element_3.cjs.entry.js +4 -4
  24. package/dist/cjs/vertex-viewer-icon.cjs.entry.js +1 -1
  25. package/dist/cjs/vertex-viewer-layer.cjs.entry.js +1 -1
  26. package/dist/cjs/vertex-viewer-markup-arrow_3.cjs.entry.js +1 -1
  27. package/dist/cjs/vertex-viewer-markup-tool.cjs.entry.js +1 -1
  28. package/dist/cjs/vertex-viewer-markup.cjs.entry.js +1 -1
  29. package/dist/cjs/vertex-viewer-measurement-details.cjs.entry.js +221 -75
  30. package/dist/cjs/{vertex-viewer-measurement-distance_2.cjs.entry.js → vertex-viewer-measurement-distance.cjs.entry.js} +30 -69
  31. package/dist/cjs/vertex-viewer-measurement-line_2.cjs.entry.js +170 -0
  32. package/dist/cjs/vertex-viewer-measurement-precise.cjs.entry.js +163 -55
  33. package/dist/cjs/vertex-viewer-measurement-tool.cjs.entry.js +2 -2
  34. package/dist/cjs/vertex-viewer-measurements.cjs.entry.js +33 -4
  35. package/dist/cjs/vertex-viewer-view-cube.cjs.entry.js +4 -4
  36. package/dist/cjs/vertex-viewer.cjs.entry.js +58 -10
  37. package/dist/cjs/viewer.cjs.js +2 -2
  38. package/dist/cjs/{viewport-51aa05ab.js → viewport-8c39089f.js} +11 -0
  39. package/dist/collection/collection-manifest.json +1 -0
  40. package/dist/collection/components/viewer/viewer.js +2 -2
  41. package/dist/collection/components/viewer-dom-renderer/viewer-dom-renderer.js +2 -2
  42. package/dist/collection/components/viewer-measurement-details/viewer-measurement-details-entry.js +14 -0
  43. package/dist/collection/components/viewer-measurement-details/viewer-measurement-details-results.js +22 -0
  44. package/dist/collection/components/viewer-measurement-details/viewer-measurement-details.css +3 -10
  45. package/dist/collection/components/viewer-measurement-details/viewer-measurement-details.js +125 -188
  46. package/dist/collection/components/viewer-measurement-distance/interactions.js +3 -14
  47. package/dist/collection/components/viewer-measurement-distance/viewer-measurement-distance.js +41 -1
  48. package/dist/collection/components/viewer-measurement-overlays/viewer-measurement-overlays-components.js +30 -0
  49. package/dist/collection/components/viewer-measurement-overlays/viewer-measurement-overlays.css +51 -0
  50. package/dist/collection/components/viewer-measurement-overlays/viewer-measurement-overlays.js +149 -0
  51. package/dist/collection/components/viewer-measurement-precise/viewer-measurement-precise.js +118 -26
  52. package/dist/collection/components/viewer-measurements/viewer-measurements.js +67 -2
  53. package/dist/collection/components/viewer-view-cube/viewer-view-cube.css +21 -3
  54. package/dist/collection/index.js +2 -2
  55. package/dist/collection/lib/cursors.js +7 -1
  56. package/dist/collection/lib/elementRectObserver.js +19 -0
  57. package/dist/collection/lib/interactions/interactionApi.js +53 -4
  58. package/dist/collection/lib/mappers/frameStreaming.js +2 -4
  59. package/dist/collection/lib/measurement/controller.js +21 -17
  60. package/dist/collection/lib/measurement/entities.js +34 -0
  61. package/dist/collection/lib/measurement/index.js +4 -2
  62. package/dist/collection/lib/measurement/interactions.js +74 -28
  63. package/dist/collection/lib/measurement/mapper.js +5 -5
  64. package/dist/collection/lib/measurement/model.js +24 -85
  65. package/dist/collection/lib/measurement/outcomes.js +2 -0
  66. package/dist/collection/lib/measurement/overlays.js +69 -0
  67. package/dist/collection/lib/measurement/results.js +17 -0
  68. package/dist/collection/lib/types/entities.js +5 -1
  69. package/dist/collection/lib/types/featureMap.js +14 -5
  70. package/dist/collection/lib/types/frame.js +3 -3
  71. package/dist/collection/lib/types/measurementUnits.js +7 -7
  72. package/dist/collection/lib/types/viewport.js +12 -1
  73. package/dist/collection/testing/eventually.js +30 -0
  74. package/dist/collection/testing/fixtures.js +11 -4
  75. package/dist/collection/testing/index.js +2 -1
  76. package/dist/custom-elements/index.d.ts +6 -0
  77. package/dist/custom-elements/index.js +851 -287
  78. package/dist/esm/{browser.esm-e6827921.js → browser.esm-59e914f6.js} +1 -1
  79. package/dist/esm/{bundle.esm-8f14ac60.js → bundle.esm-d899b2d5.js} +1 -1
  80. package/dist/esm/{config-a200c227.js → config-604c644e.js} +2 -2
  81. package/dist/esm/{cursors-5157d29d.js → cursors-a7ec4adb.js} +8 -2
  82. package/dist/esm/{dom-2d6a1e1e.js → dom-780d25be.js} +1 -1
  83. package/dist/esm/{controller-a756cf9c.js → entities-759d97cd.js} +52 -18
  84. package/dist/esm/{index-f0053642.js → index-10c1495a.js} +64 -3
  85. package/dist/esm/index.js +13 -11
  86. package/dist/esm/index.mjs +13 -11
  87. package/dist/esm/loader.js +2 -2
  88. package/dist/esm/loader.mjs +2 -2
  89. package/dist/esm/{model-f711a825.js → mapper-4b815e31.js} +37 -190
  90. package/dist/esm/{markup-e46623b3.js → markup-1d177b4a.js} +2 -2
  91. package/dist/esm/{measurement-702d6b8c.js → measurement-12cdbf5c.js} +2 -2
  92. package/dist/esm/model-e5a4f00f.js +132 -0
  93. package/dist/esm/overlays-dbe5d652.js +74 -0
  94. package/dist/esm/{png-decoder-59a0e9c2.js → png-decoder-3f1fa486.js} +1 -1
  95. package/dist/esm/results-994bdb50.js +22 -0
  96. package/dist/esm/{scene-16490983.js → scene-9ac8a484.js} +3 -3
  97. package/dist/esm/{stencil-7d04d41a.js → stencil-9bf7fb9e.js} +1 -1
  98. package/dist/esm/{streamAttributes-7aa486b2.js → streamAttributes-d623bb60.js} +77 -20
  99. package/dist/esm/{utils-8070900a.js → utils-01e4f587.js} +1 -1
  100. package/dist/esm/{utils-953a1619.js → utils-5e57bf24.js} +1 -1
  101. package/dist/esm/vertex-scene-tree-search_3.entry.js +3 -3
  102. package/dist/esm/vertex-scene-tree-table-cell.entry.js +1 -1
  103. package/dist/esm/vertex-scene-tree-table-column.entry.js +1 -1
  104. package/dist/esm/vertex-scene-tree-table-header.entry.js +1 -1
  105. package/dist/esm/vertex-scene-tree-table-resize-divider.entry.js +1 -1
  106. package/dist/esm/vertex-scene-tree-toolbar-group.entry.js +1 -1
  107. package/dist/esm/vertex-scene-tree.entry.js +5 -5
  108. package/dist/esm/vertex-viewer-button_3.entry.js +1 -1
  109. package/dist/esm/vertex-viewer-default-toolbar.entry.js +1 -1
  110. package/dist/esm/vertex-viewer-dom-element_3.entry.js +6 -6
  111. package/dist/esm/vertex-viewer-icon.entry.js +1 -1
  112. package/dist/esm/vertex-viewer-layer.entry.js +1 -1
  113. package/dist/esm/vertex-viewer-markup-arrow_3.entry.js +4 -4
  114. package/dist/esm/vertex-viewer-markup-tool.entry.js +5 -5
  115. package/dist/esm/vertex-viewer-markup.entry.js +5 -5
  116. package/dist/esm/vertex-viewer-measurement-details.entry.js +221 -75
  117. package/dist/esm/{vertex-viewer-measurement-distance_2.entry.js → vertex-viewer-measurement-distance.entry.js} +35 -73
  118. package/dist/esm/vertex-viewer-measurement-line_2.entry.js +165 -0
  119. package/dist/esm/vertex-viewer-measurement-precise.entry.js +160 -52
  120. package/dist/esm/vertex-viewer-measurement-tool.entry.js +6 -6
  121. package/dist/esm/vertex-viewer-measurements.entry.js +36 -7
  122. package/dist/esm/vertex-viewer-view-cube.entry.js +6 -6
  123. package/dist/esm/vertex-viewer.entry.js +61 -13
  124. package/dist/esm/viewer.js +2 -2
  125. package/dist/esm/{viewport-bb7c46d9.js → viewport-01c886ea.js} +12 -1
  126. package/dist/types/components/viewer-dom-renderer/viewer-dom-renderer.d.ts +1 -1
  127. package/dist/types/components/viewer-measurement-details/viewer-measurement-details-entry.d.ts +8 -0
  128. package/dist/types/components/viewer-measurement-details/viewer-measurement-details-results.d.ts +15 -0
  129. package/dist/types/components/viewer-measurement-details/viewer-measurement-details.d.ts +44 -42
  130. package/dist/types/components/viewer-measurement-distance/interactions.d.ts +23 -1
  131. package/dist/types/components/viewer-measurement-distance/viewer-measurement-distance.d.ts +8 -0
  132. package/dist/types/components/viewer-measurement-overlays/viewer-measurement-overlays-components.d.ts +10 -0
  133. package/dist/types/components/viewer-measurement-overlays/viewer-measurement-overlays.d.ts +41 -0
  134. package/dist/types/components/viewer-measurement-precise/viewer-measurement-precise.d.ts +62 -6
  135. package/dist/types/components/viewer-measurements/viewer-measurements.d.ts +12 -0
  136. package/dist/types/components.d.ts +103 -40
  137. package/dist/types/index.d.ts +1 -1
  138. package/dist/types/lib/cursors.d.ts +5 -0
  139. package/dist/types/lib/elementRectObserver.d.ts +8 -0
  140. package/dist/types/lib/interactions/interactionApi.d.ts +32 -5
  141. package/dist/types/lib/measurement/controller.d.ts +8 -7
  142. package/dist/types/lib/measurement/entities.d.ts +10 -0
  143. package/dist/types/lib/measurement/index.d.ts +3 -1
  144. package/dist/types/lib/measurement/interactions.d.ts +19 -5
  145. package/dist/types/lib/measurement/mapper.d.ts +1 -1
  146. package/dist/types/lib/measurement/model.d.ts +18 -153
  147. package/dist/types/lib/measurement/outcomes.d.ts +8 -0
  148. package/dist/types/lib/measurement/overlays.d.ts +38 -0
  149. package/dist/types/lib/measurement/results.d.ts +90 -0
  150. package/dist/types/lib/types/entities.d.ts +5 -1
  151. package/dist/types/lib/types/featureMap.d.ts +2 -2
  152. package/dist/types/lib/types/measurementUnits.d.ts +1 -1
  153. package/dist/types/lib/types/viewport.d.ts +9 -1
  154. package/dist/types/testing/eventually.d.ts +15 -0
  155. package/dist/types/testing/fixtures.d.ts +2 -2
  156. package/dist/types/testing/index.d.ts +1 -0
  157. package/dist/viewer/index.esm.js +1 -1
  158. package/dist/viewer/p-081e6873.js +4 -0
  159. package/dist/viewer/{p-5d82c131.entry.js → p-099fe6ca.entry.js} +1 -1
  160. package/dist/viewer/{p-784914e4.js → p-0aba71fd.js} +1 -1
  161. package/dist/viewer/p-0aeab3fc.js +4 -0
  162. package/dist/viewer/p-0eb195dd.entry.js +4 -0
  163. package/dist/viewer/p-1a7df99a.entry.js +4 -0
  164. package/dist/viewer/{p-f70d8def.js → p-301660cf.js} +1 -1
  165. package/dist/viewer/{p-a0e49d10.entry.js → p-31658489.entry.js} +1 -1
  166. package/dist/viewer/{p-95f3a81c.entry.js → p-353cfc7a.entry.js} +1 -1
  167. package/dist/viewer/p-364ce21c.js +4 -0
  168. package/dist/viewer/{p-a5a0bf86.js → p-3f6ac74f.js} +1 -1
  169. package/dist/viewer/p-423410be.js +4 -0
  170. package/dist/viewer/{p-6f71f0f2.js → p-439220c6.js} +1 -1
  171. package/dist/viewer/{p-e84ed098.entry.js → p-46459921.entry.js} +1 -1
  172. package/dist/viewer/{p-c23a8b34.entry.js → p-4717c98e.entry.js} +1 -1
  173. package/dist/viewer/p-4985fad5.js +4 -0
  174. package/dist/viewer/{p-ba393340.entry.js → p-61b1097b.entry.js} +1 -1
  175. package/dist/viewer/{p-011eecd5.entry.js → p-6370098c.entry.js} +1 -1
  176. package/dist/viewer/p-67446e35.js +4 -0
  177. package/dist/viewer/p-7006fd4e.entry.js +4 -0
  178. package/dist/viewer/{p-a20e4ea1.entry.js → p-70ca1ea7.entry.js} +1 -1
  179. package/dist/viewer/p-76ec0245.js +4 -0
  180. package/dist/viewer/p-7cad9bf4.js +4 -0
  181. package/dist/viewer/p-7f25dcb5.entry.js +4 -0
  182. package/dist/viewer/{p-ca6bbe53.entry.js → p-8decee06.entry.js} +1 -1
  183. package/dist/viewer/{p-b7ffa306.entry.js → p-915d95ad.entry.js} +1 -1
  184. package/dist/viewer/{p-4485ac6d.js → p-a0df0e0c.js} +1 -1
  185. package/dist/viewer/{p-cc9888be.entry.js → p-a455ae02.entry.js} +1 -1
  186. package/dist/viewer/{p-a6a8026f.js → p-acf22d3e.js} +1 -1
  187. package/dist/viewer/{p-653aca1b.entry.js → p-b2b48a42.entry.js} +1 -1
  188. package/dist/viewer/p-bc9b1e67.entry.js +4 -0
  189. package/dist/viewer/p-c458f191.entry.js +32 -0
  190. package/dist/viewer/p-cafa57a6.js +4 -0
  191. package/dist/viewer/p-d00e9203.js +4 -0
  192. package/dist/viewer/{p-3e96bd62.entry.js → p-d2bcf788.entry.js} +1 -1
  193. package/dist/viewer/p-d90f2f6d.entry.js +4 -0
  194. package/dist/viewer/p-da2f4a56.js +4 -0
  195. package/dist/viewer/{p-5a2e34e1.entry.js → p-e07377fa.entry.js} +1 -1
  196. package/dist/viewer/{p-40800e8d.entry.js → p-f755af5a.entry.js} +1 -1
  197. package/dist/viewer/p-f7cb7e59.js +4 -0
  198. package/dist/viewer/p-fad9693e.js +4 -0
  199. package/dist/viewer/p-fe11d694.js +4 -0
  200. package/dist/viewer/{p-b92a3ac2.entry.js → p-fec1a8d0.entry.js} +1 -1
  201. package/dist/viewer/viewer.css +1 -1
  202. package/dist/viewer/viewer.esm.js +1 -1
  203. package/package.json +11 -10
  204. package/dist/cjs/summary-7bbdb4c9.js +0 -45
  205. package/dist/collection/lib/measurement/summary.js +0 -38
  206. package/dist/esm/summary-0a3d0bf9.js +0 -43
  207. package/dist/types/lib/measurement/summary.d.ts +0 -11
  208. package/dist/viewer/p-03e482ff.js +0 -4
  209. package/dist/viewer/p-0c052bc8.entry.js +0 -4
  210. package/dist/viewer/p-148cd792.js +0 -4
  211. package/dist/viewer/p-26d99e2d.entry.js +0 -4
  212. package/dist/viewer/p-38eeacc5.js +0 -4
  213. package/dist/viewer/p-39d1720c.js +0 -4
  214. package/dist/viewer/p-5dc17b8b.js +0 -4
  215. package/dist/viewer/p-5fea3491.js +0 -4
  216. package/dist/viewer/p-6b700561.entry.js +0 -4
  217. package/dist/viewer/p-6cd7a6e0.js +0 -4
  218. package/dist/viewer/p-75337d0b.js +0 -4
  219. package/dist/viewer/p-b83cc8a9.js +0 -4
  220. package/dist/viewer/p-d2a9e047.js +0 -4
  221. package/dist/viewer/p-d40bd835.entry.js +0 -4
  222. package/dist/viewer/p-e10b1526.js +0 -4
  223. package/dist/viewer/p-ec8a1a68.entry.js +0 -4
  224. package/dist/viewer/p-f4a8c901.js +0 -4
  225. package/dist/viewer/p-f77dde26.entry.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /**!
2
2
  * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
3
  */
4
- import{h as t,F as o,r,c as n,f as e,H as i,g as s}from"./p-75337d0b.js";import{n as u}from"./p-784914e4.js";import{c as a}from"./p-112455b1.js";import{a as c,w as p,g as l}from"./p-3a20a038.js";import{p as h}from"./p-4485ac6d.js";import{E as f}from"./p-f70d8def.js";import{g as v}from"./p-76c414a4.js";import"./p-d2a9e047.js";window.requestIdleCallback=window.requestIdleCallback||function(t){var o=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})}),1)},window.cancelIdleCallback=window.cancelIdleCallback||function(t){clearTimeout(t)};var d=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Cursor",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetCursor",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetPager",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.Pager",null,n),proto.vertexvis.protobuf.core.Pager=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Pager,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Pager.displayName="proto.vertexvis.protobuf.core.Pager"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Pager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Pager.toObject(t,this)},proto.vertexvis.protobuf.core.Pager.toObject=function(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Pager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Pager;return proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Pager.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),(r=t.getCursor()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.Pager.prototype.getLimit=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Pager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.Pager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.Pager.prototype.setCursor=function(t){c.Message.setProto3StringField(this,2,t)},proto.vertexvis.protobuf.core.OffsetPager=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.core.OffsetPager,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetPager.displayName="proto.vertexvis.protobuf.core.OffsetPager"),proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_=[[2,3]],proto.vertexvis.protobuf.core.OffsetPager.PagerCase={PAGER_NOT_SET:0,CURSOR:2,OFFSET:3},proto.vertexvis.protobuf.core.OffsetPager.prototype.getPagerCase=function(){return c.Message.computeOneofCase(this,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0])},c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetPager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetPager.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetPager.toObject=function(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,""),offset:c.Message.getFieldWithDefault(o,3,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetPager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetPager;return proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;case 3:r=o.readUint32(),t.setOffset(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetPager.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),null!=(r=c.Message.getField(t,2))&&o.writeString(2,r),null!=(r=c.Message.getField(t,3))&&o.writeUint32(3,r)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getLimit=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetPager.prototype.setCursor=function(t){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearCursor=function(){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasCursor=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getOffset=function(){return c.Message.getFieldWithDefault(this,3,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setOffset=function(t){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearOffset=function(){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasOffset=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.core.Cursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Cursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Cursor.displayName="proto.vertexvis.protobuf.core.Cursor"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Cursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Cursor.toObject(t,this)},proto.vertexvis.protobuf.core.Cursor.toObject=function(t,o){var r={next:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Cursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Cursor;return proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Cursor.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter=function(t,o){var r;(r=t.getNext()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.core.Cursor.prototype.getNext=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Cursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.OffsetCursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetCursor.displayName="proto.vertexvis.protobuf.core.OffsetCursor"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetCursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetCursor.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetCursor.toObject=function(t,o){var r={total:c.Message.getFieldWithDefault(o,1,0),next:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetCursor;return proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setTotal(r);break;case 2:r=o.readString(),t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetCursor.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getTotal())&&o.writeUint32(1,r),(r=t.getNext()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getTotal=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setTotal=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getNext=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),w=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Uuid",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.Uuid2l",null,n),proto.vertexvis.protobuf.core.Uuid=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid.displayName="proto.vertexvis.protobuf.core.Uuid"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid.toObject(t,this)},proto.vertexvis.protobuf.core.Uuid.toObject=function(t,o){var r={hex:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid;return proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setHex(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Uuid.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter=function(t,o){var r;(r=t.getHex()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.core.Uuid.prototype.getHex=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Uuid.prototype.setHex=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid2l,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid2l.displayName="proto.vertexvis.protobuf.core.Uuid2l"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid2l.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid2l.toObject(t,this)},proto.vertexvis.protobuf.core.Uuid2l.toObject=function(t,o){var r={msb:c.Message.getFieldWithDefault(o,1,"0"),lsb:c.Message.getFieldWithDefault(o,2,"0")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid2l.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid2l;return proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readSfixed64String();t.setMsb(r);break;case 2:r=o.readSfixed64String(),t.setLsb(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Uuid2l.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMsb(),0!==parseInt(r,10)&&o.writeSfixed64String(1,r),r=t.getLsb(),0!==parseInt(r,10)&&o.writeSfixed64String(2,r)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getMsb=function(){return c.Message.getFieldWithDefault(this,1,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setMsb=function(t){c.Message.setProto3StringIntField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getLsb=function(){return c.Message.getFieldWithDefault(this,2,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setLsb=function(t){c.Message.setProto3StringIntField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),b=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,n),proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.toObject=function(t,o){var r,n={id:(r=o.getId())&&w.Uuid.toObject(t,r),depth:c.Message.getFieldWithDefault(o,2,0),name:c.Message.getFieldWithDefault(o,3,""),visible:c.Message.getFieldWithDefault(o,4,!1),selected:c.Message.getFieldWithDefault(o,5,!1),expanded:c.Message.getFieldWithDefault(o,6,!1),isLeaf:c.Message.getFieldWithDefault(o,7,!1),suppliedId:(r=o.getSuppliedId())&&p.StringValue.toObject(t,r),partiallyVisible:c.Message.getFieldWithDefault(o,9,!1),columnsList:c.Message.getRepeatedField(o,10),filterHit:c.Message.getFieldWithDefault(o,11,!1)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setId(r);break;case 2:r=o.readUint32(),t.setDepth(r);break;case 3:r=o.readString(),t.setName(r);break;case 4:r=o.readBool(),t.setVisible(r);break;case 5:r=o.readBool(),t.setSelected(r);break;case 6:r=o.readBool(),t.setExpanded(r);break;case 7:r=o.readBool(),t.setIsLeaf(r);break;case 8:r=new p.StringValue,o.readMessage(r,p.StringValue.deserializeBinaryFromReader),t.setSuppliedId(r);break;case 9:r=o.readBool(),t.setPartiallyVisible(r);break;case 10:r=o.readString(),t.addColumns(r);break;case 11:r=o.readBool(),t.setFilterHit(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),0!==(r=t.getDepth())&&o.writeUint32(2,r),(r=t.getName()).length>0&&o.writeString(3,r),(r=t.getVisible())&&o.writeBool(4,r),(r=t.getSelected())&&o.writeBool(5,r),(r=t.getExpanded())&&o.writeBool(6,r),(r=t.getIsLeaf())&&o.writeBool(7,r),null!=(r=t.getSuppliedId())&&o.writeMessage(8,r,p.StringValue.serializeBinaryToWriter),(r=t.getPartiallyVisible())&&o.writeBool(9,r),(r=t.getColumnsList()).length>0&&o.writeRepeatedString(10,r),(r=t.getFilterHit())&&o.writeBool(11,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearId=function(){this.setId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getDepth=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setDepth=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getName=function(){return c.Message.getFieldWithDefault(this,3,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setName=function(t){c.Message.setProto3StringField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getVisible=function(){return c.Message.getFieldWithDefault(this,4,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setVisible=function(t){c.Message.setProto3BooleanField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSelected=function(){return c.Message.getFieldWithDefault(this,5,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSelected=function(t){c.Message.setProto3BooleanField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getExpanded=function(){return c.Message.getFieldWithDefault(this,6,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setExpanded=function(t){c.Message.setProto3BooleanField(this,6,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getIsLeaf=function(){return c.Message.getFieldWithDefault(this,7,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setIsLeaf=function(t){c.Message.setProto3BooleanField(this,7,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSuppliedId=function(){return c.Message.getWrapperField(this,p.StringValue,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSuppliedId=function(t){c.Message.setWrapperField(this,8,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearSuppliedId=function(){this.setSuppliedId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasSuppliedId=function(){return null!=c.Message.getField(this,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPartiallyVisible=function(){return c.Message.getFieldWithDefault(this,9,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPartiallyVisible=function(t){c.Message.setProto3BooleanField(this,9,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getColumnsList=function(){return c.Message.getRepeatedField(this,10)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setColumnsList=function(t){c.Message.setField(this,10,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.addColumns=function(t,o){c.Message.addToRepeatedField(this,10,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearColumnsList=function(){this.setColumnsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getFilterHit=function(){return c.Message.getFieldWithDefault(this,11,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setFilterHit=function(t){c.Message.setProto3BooleanField(this,11,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject=function(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter=function(t,o){var r;0!==(r=t.getStart())&&o.writeInt32(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.getStart=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Range"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject=function(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0),end:c.Message.getFieldWithDefault(o,2,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;case 2:r=o.readInt32(),t.setEnd(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getStart())&&o.writeInt32(1,r),0!==(r=t.getEnd())&&o.writeInt32(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getEnd=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setEnd=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject=function(t,o){var r={hiddenList:c.Message.toObjectList(o.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),shownList:c.Message.toObjectList(o.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),selectedList:c.Message.toObjectList(o.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),deselectedList:c.Message.toObjectList(o.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),partiallyVisibleList:c.Message.toObjectList(o.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addHidden(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addShown(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addSelected(r);break;case 4:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addDeselected(r);break;case 5:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addPartiallyVisible(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getHiddenList()).length>0&&o.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getShownList()).length>0&&o.writeRepeatedMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getSelectedList()).length>0&&o.writeRepeatedMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getDeselectedList()).length>0&&o.writeRepeatedMessage(4,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getPartiallyVisibleList()).length>0&&o.writeRepeatedMessage(5,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setHiddenList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addHidden=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearHiddenList=function(){this.setHiddenList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getShownList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setShownList=function(t){c.Message.setRepeatedWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addShown=function(t,o){return c.Message.addToRepeatedWrapperField(this,2,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearShownList=function(){this.setShownList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getSelectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setSelectedList=function(t){c.Message.setRepeatedWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addSelected=function(t,o){return c.Message.addToRepeatedWrapperField(this,3,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearSelectedList=function(){this.setSelectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getDeselectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,4)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setDeselectedList=function(t){c.Message.setRepeatedWrapperField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addDeselected=function(t,o){return c.Message.addToRepeatedWrapperField(this,4,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearDeselectedList=function(){this.setDeselectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getPartiallyVisibleList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,5)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setPartiallyVisibleList=function(t){c.Message.setRepeatedWrapperField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addPartiallyVisible=function(t,o){return c.Message.addToRepeatedWrapperField(this,5,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearPartiallyVisibleList=function(){this.setPartiallyVisibleList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType"),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_=[[1,2,3]],proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return c.Message.computeOneofCase(this,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0])},c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject=function(t,o){var r,n={listChange:(r=o.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,r),ranges:(r=o.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,r),keepAlive:(r=o.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader),t.setListChange(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader),t.setRanges(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader),t.setKeepAlive(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getListChange())&&o.writeMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter),null!=(r=t.getRanges())&&o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter),null!=(r=t.getKeepAlive())&&o.writeMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setListChange=function(t){c.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearListChange=function(){this.setListChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasListChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getRanges=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setRanges=function(t){c.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearRanges=function(){this.setRanges(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasRanges=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getKeepAlive=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setKeepAlive=function(t){c.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearKeepAlive=function(){this.setKeepAlive(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasKeepAlive=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject=function(t,o){var r={value:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setValue(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter=function(t,o){var r;(r=t.getValue()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.getValue=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.setValue=function(t){c.Message.setProto3StringField(this,1,t)},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),m=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,n),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r),pager:(r=o.getPager())&&d.OffsetPager.toObject(t,r),additionalColumnKeysList:c.Message.getRepeatedField(o,3)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new d.OffsetPager,o.readMessage(r,d.OffsetPager.deserializeBinaryFromReader),t.setPager(r);break;case 3:r=o.readString(),t.addAdditionalColumnKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),null!=(r=t.getPager())&&o.writeMessage(2,r,d.OffsetPager.serializeBinaryToWriter),(r=t.getAdditionalColumnKeysList()).length>0&&o.writeRepeatedString(3,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getPager=function(){return c.Message.getWrapperField(this,d.OffsetPager,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setPager=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearPager=function(){this.setPager(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasPager=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getAdditionalColumnKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setAdditionalColumnKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.addAdditionalColumnKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearAdditionalColumnKeysList=function(){this.setAdditionalColumnKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject=function(t,o){var r,n={itemsList:c.Message.toObjectList(o.getItemsList(),b.Node.toObject,t),totalVisible:c.Message.getFieldWithDefault(o,2,0),cursor:(r=o.getCursor())&&d.OffsetCursor.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.Node;o.readMessage(r,b.Node.deserializeBinaryFromReader),t.addItems(r);break;case 2:r=o.readUint32(),t.setTotalVisible(r);break;case 3:r=new d.OffsetCursor,o.readMessage(r,d.OffsetCursor.deserializeBinaryFromReader),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,b.Node.serializeBinaryToWriter),0!==(r=t.getTotalVisible())&&o.writeUint32(2,r),null!=(r=t.getCursor())&&o.writeMessage(3,r,d.OffsetCursor.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,b.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getTotalVisible=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setTotalVisible=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getCursor=function(){return c.Message.getWrapperField(this,d.OffsetCursor,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setCursor=function(t){c.Message.setWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearCursor=function(){this.setCursor(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.hasCursor=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new w.Uuid,o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new w.Uuid,o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject=function(t,o){var r,n={change:(r=o.getChange())&&b.TreeChangeType.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.TreeChangeType;o.readMessage(r,b.TreeChangeType.deserializeBinaryFromReader),t.setChange(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getChange())&&o.writeMessage(1,r,b.TreeChangeType.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return c.Message.getWrapperField(this,b.TreeChangeType,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setChange=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearChange=function(){this.setChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject=function(t,o){var r={filter:c.Message.getFieldWithDefault(o,1,""),fullTree:c.Message.getFieldWithDefault(o,2,!1),columnsKeysList:c.Message.getRepeatedField(o,3)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setFilter(r);break;case 2:r=o.readBool(),t.setFullTree(r);break;case 3:r=o.readString(),t.addColumnsKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getFilter()).length>0&&o.writeString(1,r),(r=t.getFullTree())&&o.writeBool(2,r),(r=t.getColumnsKeysList()).length>0&&o.writeRepeatedString(3,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFilter=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFilter=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFullTree=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFullTree=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getColumnsKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setColumnsKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.addColumnsKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.clearColumnsKeysList=function(){this.setColumnsKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject=function(t,o){var r,n={nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 2:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(2,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.toObject=function(t,o){var r,n={locatedIndex:(r=o.getLocatedIndex())&&p.UInt64Value.toObject(t,r),requiresReload:c.Message.getFieldWithDefault(o,2,!1)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new p.UInt64Value;o.readMessage(r,p.UInt64Value.deserializeBinaryFromReader),t.setLocatedIndex(r);break;case 2:r=o.readBool(),t.setRequiresReload(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getLocatedIndex())&&o.writeMessage(1,r,p.UInt64Value.serializeBinaryToWriter),(r=t.getRequiresReload())&&o.writeBool(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getLocatedIndex=function(){return c.Message.getWrapperField(this,p.UInt64Value,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setLocatedIndex=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.clearLocatedIndex=function(){this.setLocatedIndex(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.hasLocatedIndex=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getRequiresReload=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setRequiresReload=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject=function(t,o){var r,n={nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject=function(t,o){var r={itemsList:c.Message.toObjectList(o.getItemsList(),b.Node.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.Node;o.readMessage(r,b.Node.deserializeBinaryFromReader),t.addItems(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,b.Node.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,b.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject=function(t,o){var r={keysList:c.Message.toObjectList(o.getKeysList(),b.ColumnKey.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.ColumnKey;o.readMessage(r,b.ColumnKey.deserializeBinaryFromReader),t.addKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getKeysList()).length>0&&o.writeRepeatedMessage(1,r,b.ColumnKey.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return c.Message.getRepeatedWrapperField(this,b.ColumnKey,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setKeysList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.addKeys=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){this.setKeysList([])},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),y=l.grpc,g=function(){function t(){}return t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI",t}();function x(t,o){this.serviceHost=t,this.options=o||{}}g.GetTree={methodName:"GetTree",service:g,requestStream:!1,responseStream:!1,requestType:m.GetTreeRequest,responseType:m.GetTreeResponse},g.ExpandNode={methodName:"ExpandNode",service:g,requestStream:!1,responseStream:!1,requestType:m.ExpandNodeRequest,responseType:m.ExpandNodeResponse},g.CollapseNode={methodName:"CollapseNode",service:g,requestStream:!1,responseStream:!1,requestType:m.CollapseNodeRequest,responseType:m.CollapseNodeResponse},g.Subscribe={methodName:"Subscribe",service:g,requestStream:!1,responseStream:!0,requestType:m.SubscribeRequest,responseType:m.SubscribeResponse},g.Filter={methodName:"Filter",service:g,requestStream:!1,responseStream:!1,requestType:m.FilterRequest,responseType:m.FilterResponse},g.LocateItem={methodName:"LocateItem",service:g,requestStream:!1,responseStream:!1,requestType:m.LocateItemRequest,responseType:m.LocateItemResponse},g.ExpandAll={methodName:"ExpandAll",service:g,requestStream:!1,responseStream:!1,requestType:m.ExpandAllRequest,responseType:m.ExpandAllResponse},g.CollapseAll={methodName:"CollapseAll",service:g,requestStream:!1,responseStream:!1,requestType:m.CollapseAllRequest,responseType:m.CollapseAllResponse},g.GetNodeAncestors={methodName:"GetNodeAncestors",service:g,requestStream:!1,responseStream:!1,requestType:m.GetNodeAncestorsRequest,responseType:m.GetNodeAncestorsResponse},g.GetAvailableColumns={methodName:"GetAvailableColumns",service:g,requestStream:!1,responseStream:!1,requestType:m.GetAvailableColumnsRequest,responseType:m.GetAvailableColumnsResponse},x.prototype.getTree=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.GetTree,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.expandNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.ExpandNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.collapseNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.CollapseNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.subscribe=function(t,o){var r={data:[],end:[],status:[]},n=y.invoke(g.Subscribe,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){r.data.forEach((function(o){o(t)}))},onEnd:function(t,o,n){r.status.forEach((function(r){r({code:t,details:o,metadata:n})})),r.end.forEach((function(r){r({code:t,details:o,metadata:n})})),r=null}});return{on:function(t,o){return r[t].push(o),this},cancel:function(){r=null,n.close()}}},x.prototype.filter=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.Filter,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.locateItem=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.LocateItem,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.expandAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.ExpandAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.collapseAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.CollapseAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.getNodeAncestors=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.GetNodeAncestors,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.getAvailableColumns=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.GetAvailableColumns,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}};var E=x;const C=({details:r},n)=>t("div",{class:"error"},t("div",{class:"error-section error-message"},t("span",null,r.message),r.link&&t(o,null,t("span",null," See our "),t("a",{href:r.link,target:"_blank"},"documentation")," ",t("span",null," for more information."))),t("div",{class:"error-section"},n));var R;!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.SCENE_TREE_DISABLED=1]="SCENE_TREE_DISABLED"}(R||(R={}));class I{constructor(t,o){this.code=t,this.link=o,this.message=function(t){switch(t){case R.UNKNOWN:return"An unknown error occurred.";case R.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree."}}(t)}}function L(t){this.message=t}(L.prototype=new Error).name="InvalidCharacterError";var k="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new L("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,e=0,i=0,s="";n=o.charAt(i++);~n&&(r=e%4?64*r+n:n,e++%4)?s+=String.fromCharCode(255&r>>(-2*e&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return s};function O(t){var o=t.replace(/-/g,"+").replace(/_/g,"/");switch(o.length%4){case 0:break;case 2:o+="==";break;case 3:o+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(k(t).replace(/(.)/g,(function(t,o){var r=o.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(o)}catch(t){return k(o)}}function P(t){this.message=t}function M(t,o,r){if(Array.isArray(o))return o.map(((o,n)=>M(t+n,o,r)));{const i=o.toObject();return{index:t,node:i,metadata:(n=r,e=i.columnsList,n.reduce(((t,o,r)=>(t[o]=e[r],t)),{})),data:{}}}var n,e}(P.prototype=new Error).name="InvalidTokenError";class T{constructor(t,o,r={}){this.client=t,this.rowLimit=o,this.connectOptions=r,this.nextPageId=0,this.pages=new Map,this.activeRowRange=[0,0],this.metadataKeys=[],this.onStateChange=new f,this.state={totalRows:0,rows:[],connection:{type:"disconnected"}}}get fetchedPageCount(){return this.pages.size}get isConnected(){return"connected"===this.state.connection.type}async connect(t){const{connection:o}=this.state,r=t();if(null==r)throw new Error("Cannot connect scene tree. JWT is undefined");const{view:n}=function(t){return function(t,o){if("string"!=typeof t)throw new P("Invalid token specified");var r=!0===(o=o||{}).header?0:1;try{return JSON.parse(O(t.split(".")[r]))}catch(t){throw new P("Invalid token specified: "+t.message)}}(t)}(r);this.disconnect(o.sceneViewId!==n);const e={type:"connecting",jwtProvider:t,sceneViewId:n};this.updateState(Object.assign(Object.assign({},this.state),{connection:e}));try{console.debug("Scene tree controller connecting."),await this.fetchPage(0);const t=await this.subscribe();t.on("end",(()=>this.startConnectionLostReconnectTimer())),this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},e),{type:"connected",subscription:{dispose:()=>t.cancel()}})}))}catch(o){throw this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:n,details:this.getConnectionError(o)}})),o}this.startIdleReconnectTimer(),this.metadataKeys.length>0&&this.setMetadataKeys(this.metadataKeys)}clearReconnectTimer(){null!=this.reconnectTimer&&window.clearTimeout(this.reconnectTimer)}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||T.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||T.LOST_CONNECTION_RECONNECT_IN_SECONDS)}startReconnectTimer(t){this.clearReconnectTimer(),this.reconnectTimer=window.setTimeout((()=>{"connected"===this.state.connection.type&&this.connect(this.state.connection.jwtProvider)}),1e3*t)}connectToViewer(t){const o=async()=>{if(null!=t.token){console.debug("Scene tree controller found viewer JWT. Attempting connection.");try{await this.connect((()=>t.token))}catch(t){console.error("Scene tree controller erred connecting.",t)}}},r=()=>{console.debug("Scene tree controller received scene ready"),o()};return o(),t.addEventListener("sceneReady",r),{dispose:()=>{t.removeEventListener("sceneReady",r),this.disconnect()}}}disconnect(t=!1){console.debug(`Scene tree controller disconnecting [reset=${t}]`),this.clearReconnectTimer(),t&&(this.pages.clear(),this.activeRowRange=[]);const{connection:o}=this.state;"connected"===o.type&&o.subscription.dispose(),this.updateState({connection:{type:"disconnected",jwtProvider:o.jwtProvider,sceneViewId:o.sceneViewId},totalRows:t?0:this.state.totalRows,rows:t?[]:this.state.rows})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.CollapseNodeRequest;n.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.collapseNode(n,t,o)))}))}async expandNode(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.ExpandNodeRequest;n.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.expandNode(n,t,o)))}))}async collapseAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.collapseAll(new m.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new m.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.LocateItemRequest;n.setNodeId(r);const e=await this.requestUnary(o,((t,o)=>this.client.locateItem(n,t,o))),{requiresReload:i,locatedIndex:s}=e.toObject();if(i&&(this.invalidateAfterOffset(0),await this.fetchUnloadedPagesInActiveRows()),null==s)throw new Error("Cannot locate node. Location index is undefined.");return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.GetNodeAncestorsRequest;return n.setNodeId(r),(await this.requestUnary(o,((t,o)=>this.client.getNodeAncestors(n,t,o)))).toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async o=>{var r;if(!(t<0||t>this.maxPages-1)){if(!this.pages.has(t)){const r=t*this.rowLimit;console.debug("Scene tree fetching page",t,r);const n=this.fetchTree(r,this.rowLimit,o),e={id:this.nextPageId++,res:n,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,e),this.handlePageResult(e)}await(null===(r=this.pages.get(t))||void 0===r?void 0:r.res)}}))}fetchPageAtOffset(t){const o=Math.floor(t/this.rowLimit);return this.fetchPage(o)}async fetchRange(t,o){const r=Math.floor(t/this.rowLimit),n=Math.floor(o/this.rowLimit),[e,i]=this.constrainPageRange(r,n),s=i-e+1;await Promise.all(Array.from({length:s}).map(((t,o)=>this.fetchPage(o))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>(await this.requestUnary(t,((t,o)=>{const r=new m.GetAvailableColumnsRequest;this.client.getAvailableColumns(r,t,o)}))).getKeysList().map((t=>t.getValue()))))}async filter(t,o={}){await this.ifConnectionHasJwt((r=>this.requestUnary(r,((r,n)=>{var e;const i=new m.FilterRequest;i.setFilter(t),i.setFullTree(!0===(null===(e=o.includeCollapsed)||void 0===e||e)),o.columns&&i.setColumnsKeysList(o.columns),this.client.filter(i,r,n)}))))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,o){const[r,n]=this.constrainPageRange(t,o);return Array.from({length:n-r+1}).map(((t,o)=>r+o)).filter((t=>!this.isPageLoaded(t)))}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,o,r=0){const[n,e]=this.constrainPageRange(t,o),i=Math.max(e-n,r);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>({index:t,distance:t<n?n-t:t-e})));t.sort(((t,o)=>o.distance-t.distance)).slice(0,t.length-r).forEach((({index:t})=>this.invalidatePage(t))),console.debug(`Scene tree dropped ${t.length-this.fetchedPageCount} pages`,this.pages)}}setMetadataKeys(t){if(this.metadataKeys=t,"connected"===this.state.connection.type){const[t,o]=this.activeRowRange;return this.invalidateAfterOffset(0),this.updateActiveRowRange(t,o)}return Promise.resolve()}async updateActiveRowRange(t,o){this.activeRowRange=this.constrainRowOffsets(t,o),await this.fetchUnloadedPagesInActiveRows()}subscribe(){return this.ifConnectionHasJwt((t=>{const o=this.requestServerStream(t,(t=>this.client.subscribe(new m.SubscribeRequest,t)));return o.on("data",(t=>{this.startIdleReconnectTimer();const{change:o}=t.toObject();null!=(null==o?void 0:o.listChange)&&(console.debug("Received list change",o.listChange.start),this.invalidateAfterOffset(o.listChange.start),this.fetchUnloadedPagesInActiveRows());const{hiddenList:r=[],shownList:n=[],partiallyVisibleList:e=[],deselectedList:i=[],selectedList:s=[]}=(null==o?void 0:o.ranges)||{};e.length>0&&(console.debug("Received partial visibility list change",e),e.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({partiallyVisible:!0})))))),r.length>0&&(console.debug("Received hidden list change",r),r.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!1,partiallyVisible:!1})))))),n.length>0&&(console.debug("Received shown list change",n),n.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!0,partiallyVisible:!1})))))),i.length>0&&(console.debug("Received deselected list change",i),i.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!1})))))),s.length>0&&(console.debug("Received selected list change",s),s.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!0}))))))})),o}))}async fetchUnloadedPagesInActiveRows(){const[t,o]=this.getPageIndexesForRange(this.activeRowRange[0],this.activeRowRange[1]),r=this.getNonLoadedPageIndexes(t-1,o+1);await Promise.all(r.map((t=>this.fetchPage(t))))}patchNodesInRange(t,o,r){const n=this.state.rows.slice(t,o+1).map((t=>null!=t?Object.assign(Object.assign({},t),{node:Object.assign(Object.assign({},t.node),r(t.node))}):t)),e=[...this.state.rows.slice(0,t),...n,...this.state.rows.slice(o+1)];this.updateState(Object.assign(Object.assign({},this.state),{rows:e}))}async handlePageResult(t){var o;try{const r=await t.res,n=this.getPage(t.index);if((null==n?void 0:n.id)===t.id){const e=r.getCursor(),i=r.getItemsList(),s=null!==(o=null==e?void 0:e.getTotal())&&void 0!==o?o:0,u=t.index*this.rowLimit,a=M(u,i,n.metadataKeys),c=this.state.rows.slice(0,u),p=this.state.rows.slice(c.length+a.length,s),l=new Array(Math.max(0,s-c.length-a.length-p.length)),h=[...c,...a,...p,...l];this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:h}))}}catch(o){const r=o instanceof Error?o.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${r})`);const n=this.getPage(t.index);(null==n?void 0:n.id)===t.id&&this.invalidatePage(t.index)}}invalidatePage(t){this.isPageLoaded(t)&&this.pages.delete(t)}invalidateAfterOffset(t){const o=Math.floor(t/this.rowLimit);for(const t of this.pages.keys())t>=o&&this.invalidatePage(t)}updateState(t){this.state=t,this.onStateChange.emit(this.state)}getPageForOffset(t){const o=Math.floor(t/this.rowLimit);return this.constrainPageIndex(o)}getPageIndexesForRange(t,o){return[this.getPageForOffset(t),this.getPageForOffset(o)]}async fetchTree(t,o,r){return this.requestUnary(r,((r,n)=>{const e=new d.OffsetPager;e.setOffset(t),e.setLimit(o);const i=new m.GetTreeRequest;i.setPager(e),i.setAdditionalColumnKeysList(this.metadataKeys),this.client.getTree(i,r,n)}))}requestUnary(t,o){return new Promise(((r,n)=>{const e=this.createJwtMetadata(t);o(e,((t,o)=>{null!=t?n(t):null!=o?r(o):n(new Error("Invalid response. Both error and result are null"))}))}))}requestServerStream(t,o){return o(this.createJwtMetadata(t))}createJwtMetadata(t){return new l.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:o}=this.state;if("connecting"===o.type||"connected"===o.type){const r=await o.jwtProvider();if(null!=r)return t(r);throw new Error("SceneTreeController cannot perform request. Viewer JWT is undefined.")}throw new Error("SceneTreeController is not in connected state")}getConnectionError(t){return"number"==typeof(o=t).code&&o.hasOwnProperty("metadata")?new I(t.code===l.grpc.Code.FailedPrecondition?R.SCENE_TREE_DISABLED:R.UNKNOWN):new I(R.UNKNOWN);var o}constrainPageRange(t,o){return[Math.max(0,t),Math.min(this.maxPages-1,o)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,o){return[Math.max(0,t),Math.min(this.state.totalRows-1,o)]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}}async function S(t,o){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).show())).execute()}async function q(t,o){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).hide())).execute()}T.IDLE_RECONNECT_IN_SECONDS=240,T.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;let A=class{constructor(t){r(this,t),this.connectionError=n(this,"connectionError",7),this.overScanCount=25,this.configEnv="platprod",this.filterOnMetadata=!1,this.metadataKeys=[],this.rows=[],this.totalRows=0,this.stateMap={componentLoaded:!1},this.attemptingRetry=!1}async invalidateRows(){e(this.getLayoutElement())}async scrollToIndex(t,o={}){const{animate:r,position:n="middle"}=o,e=Math.max(0,Math.min(t,this.totalRows)),i=this.getScrollToPosition(e,n);this.getLayoutElement().scrollToPosition(i,{behavior:r?"smooth":void 0})}async scrollToItem(t,o={}){var r;const n=this.totalRows,e=await(null===(r=this.controller)||void 0===r?void 0:r.expandParentNodes(t));if(null!=e&&n!==this.totalRows)return new Promise((t=>{const r=this.getLayoutElement(),n=async()=>{r.removeEventListener("layoutRendered",n),await this.scrollToIndex(e,o),t()};r.addEventListener("layoutRendered",n)}));null!=e&&await this.scrollToIndex(e,o)}async expandAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.expandAll())}async collapseAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.collapseAll())}async expandItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded||await(null===(r=this.controller)||void 0===r?void 0:r.expandNode(t))}))}async collapseItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded&&await(null===(r=this.controller)||void 0===r?void 0:r.collapseNode(t))}))}async toggleExpandItem(t){await this.performRowOperation(t,(async({node:t})=>{t.expanded?await this.collapseItem(t):await this.expandItem(t)}))}async toggleItemVisibility(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible?await q(t,o):await S(t,o)}))}async hideItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible&&await q(t,o)}))}async showItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible||await S(t,o)}))}async selectItem(t,o={}){var{recurseParent:r}=o,n=u(o,["recurseParent"]);await this.performRowOperation(t,(async({viewer:t,id:o})=>{var e,i,s,u;const a=await(null===(e=this.controller)||void 0===e?void 0:e.fetchNodeAncestors(o))||[],c=null===(i=this.stateMap.selectionPath)||void 0===i?void 0:i.includes(o);if(r&&c){const t=a.find((({selected:t})=>!t));null!=t&&(await this.selectItem(t,n),this.lastSelectedItemId=o)}else if(n.range&&null!=this.lastSelectedItemId){const r=await(null===(s=this.controller)||void 0===s?void 0:s.expandParentNodes(o)),e=await(null===(u=this.controller)||void 0===u?void 0:u.expandParentNodes(this.lastSelectedItemId));if(e&&r){const o=Math.min(e,r),i=Math.max(e,r);await async function(t,o,r,{material:n,append:e=!0}){return(await t.scene()).items((t=>[...e?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withSceneTreeRange({start:o,end:r}))).select(n)])).execute()}(t,o,i,n)}}else await async function(t,o,{material:r,append:n=!1}){return(await t.scene()).items((t=>[...n?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withItemId(o))).select(r)])).execute()}(t,o,n),this.lastSelectedItemId=o;this.stateMap.selectionPath=[...a.map((({id:t})=>(null==t?void 0:t.hex)||"")),o]}))}async deselectItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.selected&&(this.lastSelectedItemId=void 0,await async function(t,o){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).deselect())).execute()}(t,o))}))}async getRowAtIndex(t){return this.rows[t]}async getRowForEvent(t){const{clientY:o,target:r}=t;return null!=r&&null==this.connectionErrorDetails&&v(this.el,r)&&null!=(n=r)&&"VERTEX-SCENE-TREE-TABLE-CELL"===n.nodeName?this.getRowAtClientY(o):void 0;var n}getRowAtClientY(t){const o=this.getLayoutElement(),r=Math.floor((t-o.layoutOffset+o.scrollOffset)/o.rowHeight);return this.getRowAtIndex(r)}async filterItems(t,o={}){var r;return null===(r=this.controller)||void 0===r?void 0:r.filter(t,o)}async fetchMetadataKeys(){var t,o;return null!==(o=null===(t=this.controller)||void 0===t?void 0:t.fetchMetadataKeys())&&void 0!==o?o:[]}disconnectedCallback(){var t;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose()}componentWillLoad(){if(null!=this.viewerSelector&&(this.viewer=document.querySelector(this.viewerSelector)),null==this.controller){const{sceneTreeHost:t}=this.getConfig().network,o=new E(t);this.controller=new T(o,100)}this.stateMap.onStateChangeDisposable=this.controller.onStateChange.on((t=>this.handleControllerStateChange(t))),this.connectToViewer()}async componentDidLoad(){var t;this.ensureLayoutDefined();const o=this.getLayoutElement(),r=new ResizeObserver((()=>{this.invalidateRows()}));r.observe(o),this.stateMap.resizeObserver=r,this.stateMap.componentLoaded=!0,null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys)}render(){return t(i,null,t("div",{class:"header"},t("slot",{name:"header"},t("vertex-scene-tree-toolbar",{class:"search-toolbar"},t("vertex-scene-tree-search",null)))),null!=this.connectionErrorDetails&&this.renderError(this.connectionErrorDetails),null==this.connectionErrorDetails&&t("div",{class:"rows-scroll"},t("slot",null)),t("div",{class:"footer"},t("slot",{name:"footer"})))}renderError(o){return o.code===R.UNKNOWN?t(C,{details:o},t("button",{class:"button button-secondary",onClick:()=>this.retryConnectToViewer(),disabled:this.attemptingRetry},"Retry")):t(C,{details:o})}handleViewerChanged(t,o){this.stateMap.componentLoaded&&this.connectToViewer()}handleControllerChanged(t){var o;this.stateMap.componentLoaded&&(null===(o=this.stateMap.onStateChangeDisposable)||void 0===o||o.dispose(),this.stateMap.onStateChangeDisposable=t.onStateChange.on((t=>this.handleControllerStateChange(t))),t.setMetadataKeys(this.metadataKeys))}handleMetadataKeysChanged(){var t;null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys)}retryConnectToViewer(){this.attemptingRetry=!0,this.connectToViewer()}connectToViewer(){var t,o;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose(),null!=this.viewer&&(this.stateMap.viewerDisposable=null===(o=this.controller)||void 0===o?void 0:o.connectToViewer(this.viewer))}scheduleClearUnusedData(){null!=this.stateMap.idleCallbackId&&window.cancelIdleCallback(this.stateMap.idleCallbackId),this.stateMap.idleCallbackId=window.requestIdleCallback((t=>{var o,r,n;const e=null===(o=t.timeRemaining)||void 0===o?void 0:o.call(t);if(null==e||e>=25){const t=this.getLayoutElement(),o=t.viewportStartIndex,e=t.viewportEndIndex,[i,s]=(null===(r=this.controller)||void 0===r?void 0:r.getPageIndexesForRange(o,e))||[];null!=i&&null!=s&&(null===(n=this.controller)||void 0===n||n.invalidatePagesOutsideRange(i,s,50))}else this.scheduleClearUnusedData()}))}handleControllerStateChange(t){this.rows=t.rows,this.totalRows=t.totalRows,this.updateLayoutElement(),"failure"===t.connection.type?(this.connectionErrorDetails=t.connection.details,this.connectionError.emit(t.connection.details)):this.connectionErrorDetails=void 0,"connected"!==t.connection.type&&"failure"!==t.connection.type||(this.attemptingRetry=!1)}async performRowOperation(t,o){const r="number"==typeof t?this.rows[t]:t;if(null==r)throw new Error("Cannot perform scene tree operation. Row not found.");const n=null!=(e=r)&&e.hasOwnProperty("node")?r.node:r;var e;if(null==n.id)throw new Error("Cannot perform scene tree operation. ID is undefined.");if(null==this.viewer)throw new Error("Cannot perform scene tree operation. Cannot get reference to viewer.");await o({viewer:this.viewer,id:n.id.hex,node:n})}handleSearch(t){this.filterItems(t.detail,{columns:this.filterOnMetadata?this.metadataKeys:void 0})}getScrollToPosition(t,o){var r;const n=this.getLayoutElement(),e=Math.max(0,Math.min(t,this.totalRows-1)),i=null!==(r=n.layoutHeight)&&void 0!==r?r:0,s=n.rowHeight;return"start"===o?e*s:"middle"===o?e*s+s/2-i/2:e*s+s-i}getConfig(){return h(this.configEnv,this.config)}ensureLayoutDefined(){let t=this.el.querySelector("vertex-scene-tree-table-layout");null==t&&(t=document.createElement("vertex-scene-tree-table-layout"),t.innerHTML='\n <vertex-scene-tree-table-column>\n <template>\n <vertex-scene-tree-table-cell prop:value="{{row.node.name}}" expand-toggle visibility-toggle></vertex-scene-tree-table-cell>\n </template>\n </vertex-scene-tree-table-column>\n ',this.el.appendChild(t)),this.stateMap.layoutEl=t}updateLayoutElement(){const t=this.stateMap.layoutEl;null!=t&&(t.rows=this.rows,t.tree=this.el,t.totalRows=this.totalRows,t.controller=this.controller,t.rowData=this.rowData)}getLayoutElement(){if(null!=this.stateMap.layoutEl)return this.stateMap.layoutEl;throw new Error("Layout element is undefined")}get el(){return s(this)}static get watchers(){return{viewer:["handleViewerChanged"],controller:["handleControllerChanged"],metadataKeys:["handleMetadataKeysChanged"]}}};A.style="button{border:none;background:transparent;cursor:pointer;margin:0;padding:0}.button{padding:0.5rem;border-radius:0.25rem}.button-secondary{color:var(--neutral-800);background-color:var(--neutral-300)}.button-secondary:hover{color:var(--neutral-900)}.button-secondary:hover:enabled{box-shadow:0 2px 2px rgb(0 0 0 / 20%)}.button-secondary:disabled{opacity:0.8}.button-secondary:hover:disabled{cursor:not-allowed}:host{--scene-tree-toolbar-separator:1px solid var(--neutral-300);width:300px;height:100%;user-select:none;-webkit-user-select:none;cursor:default;display:flex;flex-direction:column}.rows-scroll{position:relative;height:var(--scene-tree-row-height, 0);flex-grow:1}.rows{position:relative}.row{position:absolute;display:flex;align-items:center;width:100%;height:var(--scene-tree-row-height);padding:var(--scene-tree-row-padding);box-sizing:border-box}.row:hover{background-color:var(--scene-tree-row-hover-color)}.row.is-selected{background-color:var(--scene-tree-row-selected-color)}.expand-toggle{cursor:pointer;width:16px}.row-text{margin-left:0.25rem;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.visibility-btn{display:flex;align-items:center;visibility:hidden;padding:4px}.visibility-btn.is-hidden{visibility:visible}.row:hover .visibility-btn{visibility:visible}.error{display:flex;flex-direction:column;align-items:center;font-size:0.875rem;width:100%;height:100%;padding:1rem;box-sizing:border-box;justify-content:center}.error-section{margin-top:1rem}.error-message{text-align:center}.search-toolbar,slot[name='header']::slotted(*){border-bottom:var(--scene-tree-toolbar-separator)}slot[name='footer']::slotted(:not(:last-child)){border-top:var(--scene-tree-toolbar-separator)}.header{display:flex;flex-direction:column}.footer{display:flex;flex-direction:column}";export{A as vertex_scene_tree}
4
+ import{h as t,F as o,r,c as n,f as e,H as i,g as s}from"./p-cafa57a6.js";import{n as u}from"./p-0aba71fd.js";import{c as a}from"./p-112455b1.js";import{a as c,w as p,g as l}from"./p-3a20a038.js";import{p as h}from"./p-a0df0e0c.js";import{E as f}from"./p-301660cf.js";import{g as v}from"./p-76c414a4.js";import"./p-fe11d694.js";window.requestIdleCallback=window.requestIdleCallback||function(t){var o=Date.now();return setTimeout((function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-o))}})}),1)},window.cancelIdleCallback=window.cancelIdleCallback||function(t){clearTimeout(t)};var d=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Cursor",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetCursor",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.OffsetPager",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.Pager",null,n),proto.vertexvis.protobuf.core.Pager=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Pager,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Pager.displayName="proto.vertexvis.protobuf.core.Pager"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Pager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Pager.toObject(t,this)},proto.vertexvis.protobuf.core.Pager.toObject=function(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Pager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Pager;return proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Pager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Pager.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Pager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),(r=t.getCursor()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.Pager.prototype.getLimit=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.Pager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.Pager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.Pager.prototype.setCursor=function(t){c.Message.setProto3StringField(this,2,t)},proto.vertexvis.protobuf.core.OffsetPager=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.core.OffsetPager,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetPager.displayName="proto.vertexvis.protobuf.core.OffsetPager"),proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_=[[2,3]],proto.vertexvis.protobuf.core.OffsetPager.PagerCase={PAGER_NOT_SET:0,CURSOR:2,OFFSET:3},proto.vertexvis.protobuf.core.OffsetPager.prototype.getPagerCase=function(){return c.Message.computeOneofCase(this,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0])},c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetPager.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetPager.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetPager.toObject=function(t,o){var r={limit:c.Message.getFieldWithDefault(o,1,0),cursor:c.Message.getFieldWithDefault(o,2,""),offset:c.Message.getFieldWithDefault(o,3,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetPager.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetPager;return proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.OffsetPager.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setLimit(r);break;case 2:r=o.readString(),t.setCursor(r);break;case 3:r=o.readUint32(),t.setOffset(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetPager.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetPager.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getLimit())&&o.writeUint32(1,r),null!=(r=c.Message.getField(t,2))&&o.writeString(2,r),null!=(r=c.Message.getField(t,3))&&o.writeUint32(3,r)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getLimit=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setLimit=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getCursor=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetPager.prototype.setCursor=function(t){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearCursor=function(){c.Message.setOneofField(this,2,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasCursor=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.core.OffsetPager.prototype.getOffset=function(){return c.Message.getFieldWithDefault(this,3,0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.setOffset=function(t){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],t)},proto.vertexvis.protobuf.core.OffsetPager.prototype.clearOffset=function(){c.Message.setOneofField(this,3,proto.vertexvis.protobuf.core.OffsetPager.oneofGroups_[0],void 0)},proto.vertexvis.protobuf.core.OffsetPager.prototype.hasOffset=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.core.Cursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Cursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Cursor.displayName="proto.vertexvis.protobuf.core.Cursor"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Cursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Cursor.toObject(t,this)},proto.vertexvis.protobuf.core.Cursor.toObject=function(t,o){var r={next:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Cursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Cursor;return proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Cursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Cursor.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Cursor.serializeBinaryToWriter=function(t,o){var r;(r=t.getNext()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.core.Cursor.prototype.getNext=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Cursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.OffsetCursor,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.OffsetCursor.displayName="proto.vertexvis.protobuf.core.OffsetCursor"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.OffsetCursor.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.OffsetCursor.toObject(t,this)},proto.vertexvis.protobuf.core.OffsetCursor.toObject=function(t,o){var r={total:c.Message.getFieldWithDefault(o,1,0),next:c.Message.getFieldWithDefault(o,2,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.OffsetCursor;return proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.OffsetCursor.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readUint32();t.setTotal(r);break;case 2:r=o.readString(),t.setNext(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.OffsetCursor.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.OffsetCursor.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getTotal())&&o.writeUint32(1,r),(r=t.getNext()).length>0&&o.writeString(2,r)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getTotal=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setTotal=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.core.OffsetCursor.prototype.getNext=function(){return c.Message.getFieldWithDefault(this,2,"")},proto.vertexvis.protobuf.core.OffsetCursor.prototype.setNext=function(t){c.Message.setProto3StringField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),w=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.core.Uuid",null,n),r.exportSymbol("proto.vertexvis.protobuf.core.Uuid2l",null,n),proto.vertexvis.protobuf.core.Uuid=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid.displayName="proto.vertexvis.protobuf.core.Uuid"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid.toObject(t,this)},proto.vertexvis.protobuf.core.Uuid.toObject=function(t,o){var r={hex:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid;return proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Uuid.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setHex(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Uuid.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid.serializeBinaryToWriter=function(t,o){var r;(r=t.getHex()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.core.Uuid.prototype.getHex=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.core.Uuid.prototype.setHex=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.core.Uuid2l,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.core.Uuid2l.displayName="proto.vertexvis.protobuf.core.Uuid2l"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.core.Uuid2l.prototype.toObject=function(t){return proto.vertexvis.protobuf.core.Uuid2l.toObject(t,this)},proto.vertexvis.protobuf.core.Uuid2l.toObject=function(t,o){var r={msb:c.Message.getFieldWithDefault(o,1,"0"),lsb:c.Message.getFieldWithDefault(o,2,"0")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.core.Uuid2l.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.core.Uuid2l;return proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.core.Uuid2l.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readSfixed64String();t.setMsb(r);break;case 2:r=o.readSfixed64String(),t.setLsb(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.core.Uuid2l.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.core.Uuid2l.serializeBinaryToWriter=function(t,o){var r=void 0;r=t.getMsb(),0!==parseInt(r,10)&&o.writeSfixed64String(1,r),r=t.getLsb(),0!==parseInt(r,10)&&o.writeSfixed64String(2,r)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getMsb=function(){return c.Message.getFieldWithDefault(this,1,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setMsb=function(t){c.Message.setProto3StringIntField(this,1,t)},proto.vertexvis.protobuf.core.Uuid2l.prototype.getLsb=function(){return c.Message.getFieldWithDefault(this,2,"0")},proto.vertexvis.protobuf.core.Uuid2l.prototype.setLsb=function(t){c.Message.setProto3StringIntField(this,2,t)},r.object.extend(o,proto.vertexvis.protobuf.core)})),b=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Node",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.Range",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType",null,n),proto.vertexvis.protobuf.scenetree.v1alpha1.Node=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Node,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Node.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Node"),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.repeatedFields_=[10],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.toObject=function(t,o){var r,n={id:(r=o.getId())&&w.Uuid.toObject(t,r),depth:c.Message.getFieldWithDefault(o,2,0),name:c.Message.getFieldWithDefault(o,3,""),visible:c.Message.getFieldWithDefault(o,4,!1),selected:c.Message.getFieldWithDefault(o,5,!1),expanded:c.Message.getFieldWithDefault(o,6,!1),isLeaf:c.Message.getFieldWithDefault(o,7,!1),suppliedId:(r=o.getSuppliedId())&&p.StringValue.toObject(t,r),partiallyVisible:c.Message.getFieldWithDefault(o,9,!1),columnsList:c.Message.getRepeatedField(o,10),filterHit:c.Message.getFieldWithDefault(o,11,!1)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Node;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setId(r);break;case 2:r=o.readUint32(),t.setDepth(r);break;case 3:r=o.readString(),t.setName(r);break;case 4:r=o.readBool(),t.setVisible(r);break;case 5:r=o.readBool(),t.setSelected(r);break;case 6:r=o.readBool(),t.setExpanded(r);break;case 7:r=o.readBool(),t.setIsLeaf(r);break;case 8:r=new p.StringValue,o.readMessage(r,p.StringValue.deserializeBinaryFromReader),t.setSuppliedId(r);break;case 9:r=o.readBool(),t.setPartiallyVisible(r);break;case 10:r=o.readString(),t.addColumns(r);break;case 11:r=o.readBool(),t.setFilterHit(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),0!==(r=t.getDepth())&&o.writeUint32(2,r),(r=t.getName()).length>0&&o.writeString(3,r),(r=t.getVisible())&&o.writeBool(4,r),(r=t.getSelected())&&o.writeBool(5,r),(r=t.getExpanded())&&o.writeBool(6,r),(r=t.getIsLeaf())&&o.writeBool(7,r),null!=(r=t.getSuppliedId())&&o.writeMessage(8,r,p.StringValue.serializeBinaryToWriter),(r=t.getPartiallyVisible())&&o.writeBool(9,r),(r=t.getColumnsList()).length>0&&o.writeRepeatedString(10,r),(r=t.getFilterHit())&&o.writeBool(11,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearId=function(){this.setId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getDepth=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setDepth=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getName=function(){return c.Message.getFieldWithDefault(this,3,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setName=function(t){c.Message.setProto3StringField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getVisible=function(){return c.Message.getFieldWithDefault(this,4,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setVisible=function(t){c.Message.setProto3BooleanField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSelected=function(){return c.Message.getFieldWithDefault(this,5,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSelected=function(t){c.Message.setProto3BooleanField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getExpanded=function(){return c.Message.getFieldWithDefault(this,6,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setExpanded=function(t){c.Message.setProto3BooleanField(this,6,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getIsLeaf=function(){return c.Message.getFieldWithDefault(this,7,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setIsLeaf=function(t){c.Message.setProto3BooleanField(this,7,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getSuppliedId=function(){return c.Message.getWrapperField(this,p.StringValue,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setSuppliedId=function(t){c.Message.setWrapperField(this,8,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearSuppliedId=function(){this.setSuppliedId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.hasSuppliedId=function(){return null!=c.Message.getField(this,8)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getPartiallyVisible=function(){return c.Message.getFieldWithDefault(this,9,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setPartiallyVisible=function(t){c.Message.setProto3BooleanField(this,9,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getColumnsList=function(){return c.Message.getRepeatedField(this,10)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setColumnsList=function(t){c.Message.setField(this,10,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.addColumns=function(t,o){c.Message.addToRepeatedField(this,10,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.clearColumnsList=function(){this.setColumnsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.getFilterHit=function(){return c.Message.getFieldWithDefault(this,11,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.Node.prototype.setFilterHit=function(t){c.Message.setProto3BooleanField(this,11,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject=function(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter=function(t,o){var r;0!==(r=t.getStart())&&o.writeInt32(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.getStart=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.Range,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.Range"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject=function(t,o){var r={start:c.Message.getFieldWithDefault(o,1,0),end:c.Message.getFieldWithDefault(o,2,0)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readInt32();t.setStart(r);break;case 2:r=o.readInt32(),t.setEnd(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter=function(t,o){var r=void 0;0!==(r=t.getStart())&&o.writeInt32(1,r),0!==(r=t.getEnd())&&o.writeInt32(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getStart=function(){return c.Message.getFieldWithDefault(this,1,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setStart=function(t){c.Message.setProto3IntField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.getEnd=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.Range.prototype.setEnd=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange"),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.repeatedFields_=[1,2,3,4,5],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject=function(t,o){var r={hiddenList:c.Message.toObjectList(o.getHiddenList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),shownList:c.Message.toObjectList(o.getShownList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),selectedList:c.Message.toObjectList(o.getSelectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),deselectedList:c.Message.toObjectList(o.getDeselectedList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t),partiallyVisibleList:c.Message.toObjectList(o.getPartiallyVisibleList(),proto.vertexvis.protobuf.scenetree.v1alpha1.Range.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addHidden(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addShown(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addSelected(r);break;case 4:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addDeselected(r);break;case 5:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.deserializeBinaryFromReader),t.addPartiallyVisible(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getHiddenList()).length>0&&o.writeRepeatedMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getShownList()).length>0&&o.writeRepeatedMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getSelectedList()).length>0&&o.writeRepeatedMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getDeselectedList()).length>0&&o.writeRepeatedMessage(4,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter),(r=t.getPartiallyVisibleList()).length>0&&o.writeRepeatedMessage(5,r,proto.vertexvis.protobuf.scenetree.v1alpha1.Range.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getHiddenList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setHiddenList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addHidden=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearHiddenList=function(){this.setHiddenList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getShownList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setShownList=function(t){c.Message.setRepeatedWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addShown=function(t,o){return c.Message.addToRepeatedWrapperField(this,2,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearShownList=function(){this.setShownList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getSelectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setSelectedList=function(t){c.Message.setRepeatedWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addSelected=function(t,o){return c.Message.addToRepeatedWrapperField(this,3,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearSelectedList=function(){this.setSelectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getDeselectedList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,4)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setDeselectedList=function(t){c.Message.setRepeatedWrapperField(this,4,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addDeselected=function(t,o){return c.Message.addToRepeatedWrapperField(this,4,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearDeselectedList=function(){this.setDeselectedList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.getPartiallyVisibleList=function(){return c.Message.getRepeatedWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,5)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.setPartiallyVisibleList=function(t){c.Message.setRepeatedWrapperField(this,5,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.addPartiallyVisible=function(t,o){return c.Message.addToRepeatedWrapperField(this,5,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Range,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.prototype.clearPartiallyVisibleList=function(){this.setPartiallyVisibleList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType=function(t){c.Message.initialize(this,t,0,-1,null,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType"),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_=[[1,2,3]],proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.SealedValueCase={SEALED_VALUE_NOT_SET:0,LIST_CHANGE:1,RANGES:2,KEEP_ALIVE:3},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getSealedValueCase=function(){return c.Message.computeOneofCase(this,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0])},c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.toObject=function(t,o){var r,n={listChange:(r=o.getListChange())&&proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.toObject(t,r),ranges:(r=o.getRanges())&&proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.toObject(t,r),keepAlive:(r=o.getKeepAlive())&&proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange;o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.deserializeBinaryFromReader),t.setListChange(r);break;case 2:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.deserializeBinaryFromReader),t.setRanges(r);break;case 3:r=new proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,o.readMessage(r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.deserializeBinaryFromReader),t.setKeepAlive(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getListChange())&&o.writeMessage(1,r,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange.serializeBinaryToWriter),null!=(r=t.getRanges())&&o.writeMessage(2,r,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange.serializeBinaryToWriter),null!=(r=t.getKeepAlive())&&o.writeMessage(3,r,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getListChange=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.ListChange,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setListChange=function(t){c.Message.setOneofWrapperField(this,1,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearListChange=function(){this.setListChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasListChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getRanges=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.StateChange,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setRanges=function(t){c.Message.setOneofWrapperField(this,2,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearRanges=function(){this.setRanges(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasRanges=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.getKeepAlive=function(){return c.Message.getWrapperField(this,proto.vertexvis.protobuf.scenetree.v1alpha1.KeepAlive,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.setKeepAlive=function(t){c.Message.setOneofWrapperField(this,3,proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.oneofGroups_[0],t)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.clearKeepAlive=function(){this.setKeepAlive(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.TreeChangeType.prototype.hasKeepAlive=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.toObject=function(t,o){var r={value:c.Message.getFieldWithDefault(o,1,"")};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setValue(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.serializeBinaryToWriter=function(t,o){var r;(r=t.getValue()).length>0&&o.writeString(1,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.getValue=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey.prototype.setValue=function(t){c.Message.setProto3StringField(this,1,t)},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),m=a((function(t,o){var r=c,n=Function("return this")();r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest",null,n),r.exportSymbol("proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse",null,n),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.repeatedFields_=[3],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r),pager:(r=o.getPager())&&d.OffsetPager.toObject(t,r),additionalColumnKeysList:c.Message.getRepeatedField(o,3)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new d.OffsetPager,o.readMessage(r,d.OffsetPager.deserializeBinaryFromReader),t.setPager(r);break;case 3:r=o.readString(),t.addAdditionalColumnKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),null!=(r=t.getPager())&&o.writeMessage(2,r,d.OffsetPager.serializeBinaryToWriter),(r=t.getAdditionalColumnKeysList()).length>0&&o.writeRepeatedString(3,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getPager=function(){return c.Message.getWrapperField(this,d.OffsetPager,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setPager=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearPager=function(){this.setPager(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.hasPager=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.getAdditionalColumnKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.setAdditionalColumnKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.addAdditionalColumnKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeRequest.prototype.clearAdditionalColumnKeysList=function(){this.setAdditionalColumnKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.toObject=function(t,o){var r,n={itemsList:c.Message.toObjectList(o.getItemsList(),b.Node.toObject,t),totalVisible:c.Message.getFieldWithDefault(o,2,0),cursor:(r=o.getCursor())&&d.OffsetCursor.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.Node;o.readMessage(r,b.Node.deserializeBinaryFromReader),t.addItems(r);break;case 2:r=o.readUint32(),t.setTotalVisible(r);break;case 3:r=new d.OffsetCursor,o.readMessage(r,d.OffsetCursor.deserializeBinaryFromReader),t.setCursor(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,b.Node.serializeBinaryToWriter),0!==(r=t.getTotalVisible())&&o.writeUint32(2,r),null!=(r=t.getCursor())&&o.writeMessage(3,r,d.OffsetCursor.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,b.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getTotalVisible=function(){return c.Message.getFieldWithDefault(this,2,0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setTotalVisible=function(t){c.Message.setProto3IntField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.getCursor=function(){return c.Message.getWrapperField(this,d.OffsetCursor,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.setCursor=function(t){c.Message.setWrapperField(this,3,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.clearCursor=function(){this.setCursor(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetTreeResponse.prototype.hasCursor=function(){return null!=c.Message.getField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new w.Uuid,o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r),nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;case 2:r=new w.Uuid,o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter),null!=(r=t.getNodeId())&&o.writeMessage(2,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseNodeResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.toObject=function(t,o){var r,n={viewId:(r=o.getViewId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setViewId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getViewId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.getViewId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.setViewId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.clearViewId=function(){this.setViewId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeRequest.prototype.hasViewId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.toObject=function(t,o){var r,n={change:(r=o.getChange())&&b.TreeChangeType.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.TreeChangeType;o.readMessage(r,b.TreeChangeType.deserializeBinaryFromReader),t.setChange(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getChange())&&o.writeMessage(1,r,b.TreeChangeType.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.getChange=function(){return c.Message.getWrapperField(this,b.TreeChangeType,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.setChange=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.clearChange=function(){this.setChange(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.SubscribeResponse.prototype.hasChange=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest"),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.repeatedFields_=[3],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.toObject=function(t,o){var r={filter:c.Message.getFieldWithDefault(o,1,""),fullTree:c.Message.getFieldWithDefault(o,2,!1),columnsKeysList:c.Message.getRepeatedField(o,3)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=o.readString();t.setFilter(r);break;case 2:r=o.readBool(),t.setFullTree(r);break;case 3:r=o.readString(),t.addColumnsKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.serializeBinaryToWriter=function(t,o){var r=void 0;(r=t.getFilter()).length>0&&o.writeString(1,r),(r=t.getFullTree())&&o.writeBool(2,r),(r=t.getColumnsKeysList()).length>0&&o.writeRepeatedString(3,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFilter=function(){return c.Message.getFieldWithDefault(this,1,"")},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFilter=function(t){c.Message.setProto3StringField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getFullTree=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setFullTree=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.getColumnsKeysList=function(){return c.Message.getRepeatedField(this,3)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.setColumnsKeysList=function(t){c.Message.setField(this,3,t||[])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.addColumnsKeys=function(t,o){c.Message.addToRepeatedField(this,3,t,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterRequest.prototype.clearColumnsKeysList=function(){this.setColumnsKeysList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.FilterResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.toObject=function(t,o){var r,n={nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 2:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(2,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,2)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.toObject=function(t,o){var r,n={locatedIndex:(r=o.getLocatedIndex())&&p.UInt64Value.toObject(t,r),requiresReload:c.Message.getFieldWithDefault(o,2,!1)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new p.UInt64Value;o.readMessage(r,p.UInt64Value.deserializeBinaryFromReader),t.setLocatedIndex(r);break;case 2:r=o.readBool(),t.setRequiresReload(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.serializeBinaryToWriter=function(t,o){var r=void 0;null!=(r=t.getLocatedIndex())&&o.writeMessage(1,r,p.UInt64Value.serializeBinaryToWriter),(r=t.getRequiresReload())&&o.writeBool(2,r)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getLocatedIndex=function(){return c.Message.getWrapperField(this,p.UInt64Value,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setLocatedIndex=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.clearLocatedIndex=function(){this.setLocatedIndex(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.hasLocatedIndex=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.getRequiresReload=function(){return c.Message.getFieldWithDefault(this,2,!1)},proto.vertexvis.protobuf.scenetree.v1alpha1.LocateItemResponse.prototype.setRequiresReload=function(t){c.Message.setProto3BooleanField(this,2,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.ExpandAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.CollapseAllResponse.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.toObject=function(t,o){var r,n={nodeId:(r=o.getNodeId())&&w.Uuid.toObject(t,r)};return t&&(n.$jspbMessageInstance=o),n}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new w.Uuid;o.readMessage(r,w.Uuid.deserializeBinaryFromReader),t.setNodeId(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.serializeBinaryToWriter=function(t,o){var r;null!=(r=t.getNodeId())&&o.writeMessage(1,r,w.Uuid.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.getNodeId=function(){return c.Message.getWrapperField(this,w.Uuid,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.setNodeId=function(t){c.Message.setWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.clearNodeId=function(){this.setNodeId(void 0)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsRequest.prototype.hasNodeId=function(){return null!=c.Message.getField(this,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.toObject=function(t,o){var r={itemsList:c.Message.toObjectList(o.getItemsList(),b.Node.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.Node;o.readMessage(r,b.Node.deserializeBinaryFromReader),t.addItems(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getItemsList()).length>0&&o.writeRepeatedMessage(1,r,b.Node.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.getItemsList=function(){return c.Message.getRepeatedWrapperField(this,b.Node,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.setItemsList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.addItems=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.Node,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetNodeAncestorsResponse.prototype.clearItemsList=function(){this.setItemsList([])},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest=function(t){c.Message.initialize(this,t,0,-1,null,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest"),c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.toObject=function(t,o){var r={};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)o.getFieldNumber(),o.skipField();return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsRequest.serializeBinaryToWriter=function(){},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse=function(t){c.Message.initialize(this,t,0,-1,proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_,null)},r.inherits(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse,c.Message),r.DEBUG&&!COMPILED&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.displayName="proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse"),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.repeatedFields_=[1],c.Message.GENERATE_TO_OBJECT&&(proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.toObject=function(t){return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject(t,this)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.toObject=function(t,o){var r={keysList:c.Message.toObjectList(o.getKeysList(),b.ColumnKey.toObject,t)};return t&&(r.$jspbMessageInstance=o),r}),proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinary=function(t){var o=new c.BinaryReader(t),r=new proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader(r,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.deserializeBinaryFromReader=function(t,o){for(;o.nextField()&&!o.isEndGroup();)switch(o.getFieldNumber()){case 1:var r=new b.ColumnKey;o.readMessage(r,b.ColumnKey.deserializeBinaryFromReader),t.addKeys(r);break;default:o.skipField()}return t},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.serializeBinary=function(){var t=new c.BinaryWriter;return proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter(this,t),t.getResultBuffer()},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.serializeBinaryToWriter=function(t,o){var r;(r=t.getKeysList()).length>0&&o.writeRepeatedMessage(1,r,b.ColumnKey.serializeBinaryToWriter)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.getKeysList=function(){return c.Message.getRepeatedWrapperField(this,b.ColumnKey,1)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.setKeysList=function(t){c.Message.setRepeatedWrapperField(this,1,t)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.addKeys=function(t,o){return c.Message.addToRepeatedWrapperField(this,1,t,proto.vertexvis.protobuf.scenetree.v1alpha1.ColumnKey,o)},proto.vertexvis.protobuf.scenetree.v1alpha1.GetAvailableColumnsResponse.prototype.clearKeysList=function(){this.setKeysList([])},r.object.extend(o,proto.vertexvis.protobuf.scenetree.v1alpha1)})),y=l.grpc,g=function(){function t(){}return t.serviceName="vertexvis.protobuf.scenetree.v1alpha1.SceneTreeAPI",t}();function x(t,o){this.serviceHost=t,this.options=o||{}}g.GetTree={methodName:"GetTree",service:g,requestStream:!1,responseStream:!1,requestType:m.GetTreeRequest,responseType:m.GetTreeResponse},g.ExpandNode={methodName:"ExpandNode",service:g,requestStream:!1,responseStream:!1,requestType:m.ExpandNodeRequest,responseType:m.ExpandNodeResponse},g.CollapseNode={methodName:"CollapseNode",service:g,requestStream:!1,responseStream:!1,requestType:m.CollapseNodeRequest,responseType:m.CollapseNodeResponse},g.Subscribe={methodName:"Subscribe",service:g,requestStream:!1,responseStream:!0,requestType:m.SubscribeRequest,responseType:m.SubscribeResponse},g.Filter={methodName:"Filter",service:g,requestStream:!1,responseStream:!1,requestType:m.FilterRequest,responseType:m.FilterResponse},g.LocateItem={methodName:"LocateItem",service:g,requestStream:!1,responseStream:!1,requestType:m.LocateItemRequest,responseType:m.LocateItemResponse},g.ExpandAll={methodName:"ExpandAll",service:g,requestStream:!1,responseStream:!1,requestType:m.ExpandAllRequest,responseType:m.ExpandAllResponse},g.CollapseAll={methodName:"CollapseAll",service:g,requestStream:!1,responseStream:!1,requestType:m.CollapseAllRequest,responseType:m.CollapseAllResponse},g.GetNodeAncestors={methodName:"GetNodeAncestors",service:g,requestStream:!1,responseStream:!1,requestType:m.GetNodeAncestorsRequest,responseType:m.GetNodeAncestorsResponse},g.GetAvailableColumns={methodName:"GetAvailableColumns",service:g,requestStream:!1,responseStream:!1,requestType:m.GetAvailableColumnsRequest,responseType:m.GetAvailableColumnsResponse},x.prototype.getTree=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.GetTree,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.expandNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.ExpandNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.collapseNode=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.CollapseNode,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.subscribe=function(t,o){var r={data:[],end:[],status:[]},n=y.invoke(g.Subscribe,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onMessage:function(t){r.data.forEach((function(o){o(t)}))},onEnd:function(t,o,n){r.status.forEach((function(r){r({code:t,details:o,metadata:n})})),r.end.forEach((function(r){r({code:t,details:o,metadata:n})})),r=null}});return{on:function(t,o){return r[t].push(o),this},cancel:function(){r=null,n.close()}}},x.prototype.filter=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.Filter,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.locateItem=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.LocateItem,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.expandAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.ExpandAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.collapseAll=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.CollapseAll,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.getNodeAncestors=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.GetNodeAncestors,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}},x.prototype.getAvailableColumns=function(t,o,r){2===arguments.length&&(r=arguments[1]);var n=y.unary(g.GetAvailableColumns,{request:t,host:this.serviceHost,metadata:o,transport:this.options.transport,debug:this.options.debug,onEnd:function(t){if(r)if(t.status!==y.Code.OK){var o=new Error(t.statusMessage);o.code=t.status,o.metadata=t.trailers,r(o,null)}else r(null,t.message)}});return{cancel:function(){r=null,n.close()}}};var E=x;const C=({details:r},n)=>t("div",{class:"error"},t("div",{class:"error-section error-message"},t("span",null,r.message),r.link&&t(o,null,t("span",null," See our "),t("a",{href:r.link,target:"_blank"},"documentation")," ",t("span",null," for more information."))),t("div",{class:"error-section"},n));var R;!function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.SCENE_TREE_DISABLED=1]="SCENE_TREE_DISABLED"}(R||(R={}));class I{constructor(t,o){this.code=t,this.link=o,this.message=function(t){switch(t){case R.UNKNOWN:return"An unknown error occurred.";case R.SCENE_TREE_DISABLED:return"The tree for this scene is not enabled. Enable the tree for this scene to interact with the tree."}}(t)}}function L(t){this.message=t}(L.prototype=new Error).name="InvalidCharacterError";var k="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var o=String(t).replace(/=+$/,"");if(o.length%4==1)throw new L("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,n,e=0,i=0,s="";n=o.charAt(i++);~n&&(r=e%4?64*r+n:n,e++%4)?s+=String.fromCharCode(255&r>>(-2*e&6)):0)n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(n);return s};function O(t){var o=t.replace(/-/g,"+").replace(/_/g,"/");switch(o.length%4){case 0:break;case 2:o+="==";break;case 3:o+="=";break;default:throw"Illegal base64url string!"}try{return function(t){return decodeURIComponent(k(t).replace(/(.)/g,(function(t,o){var r=o.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(o)}catch(t){return k(o)}}function P(t){this.message=t}function M(t,o,r){if(Array.isArray(o))return o.map(((o,n)=>M(t+n,o,r)));{const i=o.toObject();return{index:t,node:i,metadata:(n=r,e=i.columnsList,n.reduce(((t,o,r)=>(t[o]=e[r],t)),{})),data:{}}}var n,e}(P.prototype=new Error).name="InvalidTokenError";class T{constructor(t,o,r={}){this.client=t,this.rowLimit=o,this.connectOptions=r,this.nextPageId=0,this.pages=new Map,this.activeRowRange=[0,0],this.metadataKeys=[],this.onStateChange=new f,this.state={totalRows:0,rows:[],connection:{type:"disconnected"}}}get fetchedPageCount(){return this.pages.size}get isConnected(){return"connected"===this.state.connection.type}async connect(t){const{connection:o}=this.state,r=t();if(null==r)throw new Error("Cannot connect scene tree. JWT is undefined");const{view:n}=function(t){return function(t,o){if("string"!=typeof t)throw new P("Invalid token specified");var r=!0===(o=o||{}).header?0:1;try{return JSON.parse(O(t.split(".")[r]))}catch(t){throw new P("Invalid token specified: "+t.message)}}(t)}(r);this.disconnect(o.sceneViewId!==n);const e={type:"connecting",jwtProvider:t,sceneViewId:n};this.updateState(Object.assign(Object.assign({},this.state),{connection:e}));try{console.debug("Scene tree controller connecting."),await this.fetchPage(0);const t=await this.subscribe();t.on("end",(()=>this.startConnectionLostReconnectTimer())),this.updateState(Object.assign(Object.assign({},this.state),{connection:Object.assign(Object.assign({},e),{type:"connected",subscription:{dispose:()=>t.cancel()}})}))}catch(o){throw this.updateState(Object.assign(Object.assign({},this.state),{connection:{type:"failure",jwtProvider:t,sceneViewId:n,details:this.getConnectionError(o)}})),o}this.startIdleReconnectTimer(),this.metadataKeys.length>0&&this.setMetadataKeys(this.metadataKeys)}clearReconnectTimer(){null!=this.reconnectTimer&&window.clearTimeout(this.reconnectTimer)}startIdleReconnectTimer(){this.startReconnectTimer(this.connectOptions.idleReconnectInSeconds||T.IDLE_RECONNECT_IN_SECONDS)}startConnectionLostReconnectTimer(){this.startReconnectTimer(this.connectOptions.lostConnectionReconnectInSeconds||T.LOST_CONNECTION_RECONNECT_IN_SECONDS)}startReconnectTimer(t){this.clearReconnectTimer(),this.reconnectTimer=window.setTimeout((()=>{"connected"===this.state.connection.type&&this.connect(this.state.connection.jwtProvider)}),1e3*t)}connectToViewer(t){const o=async()=>{if(null!=t.token){console.debug("Scene tree controller found viewer JWT. Attempting connection.");try{await this.connect((()=>t.token))}catch(t){console.error("Scene tree controller erred connecting.",t)}}},r=()=>{console.debug("Scene tree controller received scene ready"),o()};return o(),t.addEventListener("sceneReady",r),{dispose:()=>{t.removeEventListener("sceneReady",r),this.disconnect()}}}disconnect(t=!1){console.debug(`Scene tree controller disconnecting [reset=${t}]`),this.clearReconnectTimer(),t&&(this.pages.clear(),this.activeRowRange=[]);const{connection:o}=this.state;"connected"===o.type&&o.subscription.dispose(),this.updateState({connection:{type:"disconnected",jwtProvider:o.jwtProvider,sceneViewId:o.sceneViewId},totalRows:t?0:this.state.totalRows,rows:t?[]:this.state.rows})}async collapseNode(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.CollapseNodeRequest;n.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.collapseNode(n,t,o)))}))}async expandNode(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.ExpandNodeRequest;n.setNodeId(r),await this.requestUnary(o,((t,o)=>this.client.expandNode(n,t,o)))}))}async collapseAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.collapseAll(new m.CollapseAllRequest,t,o)))}))}async expandAll(){return this.ifConnectionHasJwt((async t=>{await this.requestUnary(t,((t,o)=>this.client.expandAll(new m.ExpandAllRequest,t,o)))}))}async expandParentNodes(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.LocateItemRequest;n.setNodeId(r);const e=await this.requestUnary(o,((t,o)=>this.client.locateItem(n,t,o))),{requiresReload:i,locatedIndex:s}=e.toObject();if(i&&(this.invalidateAfterOffset(0),await this.fetchUnloadedPagesInActiveRows()),null==s)throw new Error("Cannot locate node. Location index is undefined.");return s.value}))}async fetchNodeAncestors(t){return this.ifConnectionHasJwt((async o=>{const r=new w.Uuid;r.setHex(t);const n=new m.GetNodeAncestorsRequest;return n.setNodeId(r),(await this.requestUnary(o,((t,o)=>this.client.getNodeAncestors(n,t,o)))).toObject().itemsList}))}async fetchPage(t){return this.ifConnectionHasJwt((async o=>{var r;if(!(t<0||t>this.maxPages-1)){if(!this.pages.has(t)){const r=t*this.rowLimit;console.debug("Scene tree fetching page",t,r);const n=this.fetchTree(r,this.rowLimit,o),e={id:this.nextPageId++,res:n,index:t,metadataKeys:this.metadataKeys};this.pages.set(t,e),this.handlePageResult(e)}await(null===(r=this.pages.get(t))||void 0===r?void 0:r.res)}}))}fetchPageAtOffset(t){const o=Math.floor(t/this.rowLimit);return this.fetchPage(o)}async fetchRange(t,o){const r=Math.floor(t/this.rowLimit),n=Math.floor(o/this.rowLimit),[e,i]=this.constrainPageRange(r,n),s=i-e+1;await Promise.all(Array.from({length:s}).map(((t,o)=>this.fetchPage(o))))}async fetchMetadataKeys(){return this.ifConnectionHasJwt((async t=>(await this.requestUnary(t,((t,o)=>{const r=new m.GetAvailableColumnsRequest;this.client.getAvailableColumns(r,t,o)}))).getKeysList().map((t=>t.getValue()))))}async filter(t,o={}){await this.ifConnectionHasJwt((r=>this.requestUnary(r,((r,n)=>{var e;const i=new m.FilterRequest;i.setFilter(t),i.setFullTree(!0===(null===(e=o.includeCollapsed)||void 0===e||e)),o.columns&&i.setColumnsKeysList(o.columns),this.client.filter(i,r,n)}))))}isPageLoaded(t){return this.pages.has(t)}getNonLoadedPageIndexes(t,o){const[r,n]=this.constrainPageRange(t,o);return Array.from({length:n-r+1}).map(((t,o)=>r+o)).filter((t=>!this.isPageLoaded(t)))}getPage(t){return this.pages.get(t)}invalidatePagesOutsideRange(t,o,r=0){const[n,e]=this.constrainPageRange(t,o),i=Math.max(e-n,r);if(this.fetchedPageCount>i){const t=Array.from(this.pages.keys()).map((t=>({index:t,distance:t<n?n-t:t-e})));t.sort(((t,o)=>o.distance-t.distance)).slice(0,t.length-r).forEach((({index:t})=>this.invalidatePage(t))),console.debug(`Scene tree dropped ${t.length-this.fetchedPageCount} pages`,this.pages)}}setMetadataKeys(t){if(this.metadataKeys=t,"connected"===this.state.connection.type){const[t,o]=this.activeRowRange;return this.invalidateAfterOffset(0),this.updateActiveRowRange(t,o)}return Promise.resolve()}async updateActiveRowRange(t,o){this.activeRowRange=this.constrainRowOffsets(t,o),await this.fetchUnloadedPagesInActiveRows()}subscribe(){return this.ifConnectionHasJwt((t=>{const o=this.requestServerStream(t,(t=>this.client.subscribe(new m.SubscribeRequest,t)));return o.on("data",(t=>{this.startIdleReconnectTimer();const{change:o}=t.toObject();null!=(null==o?void 0:o.listChange)&&(console.debug("Received list change",o.listChange.start),this.invalidateAfterOffset(o.listChange.start),this.fetchUnloadedPagesInActiveRows());const{hiddenList:r=[],shownList:n=[],partiallyVisibleList:e=[],deselectedList:i=[],selectedList:s=[]}=(null==o?void 0:o.ranges)||{};e.length>0&&(console.debug("Received partial visibility list change",e),e.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({partiallyVisible:!0})))))),r.length>0&&(console.debug("Received hidden list change",r),r.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!1,partiallyVisible:!1})))))),n.length>0&&(console.debug("Received shown list change",n),n.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({visible:!0,partiallyVisible:!1})))))),i.length>0&&(console.debug("Received deselected list change",i),i.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!1})))))),s.length>0&&(console.debug("Received selected list change",s),s.forEach((({start:t,end:o})=>this.patchNodesInRange(t,o,(()=>({selected:!0}))))))})),o}))}async fetchUnloadedPagesInActiveRows(){const[t,o]=this.getPageIndexesForRange(this.activeRowRange[0],this.activeRowRange[1]),r=this.getNonLoadedPageIndexes(t-1,o+1);await Promise.all(r.map((t=>this.fetchPage(t))))}patchNodesInRange(t,o,r){const n=this.state.rows.slice(t,o+1).map((t=>null!=t?Object.assign(Object.assign({},t),{node:Object.assign(Object.assign({},t.node),r(t.node))}):t)),e=[...this.state.rows.slice(0,t),...n,...this.state.rows.slice(o+1)];this.updateState(Object.assign(Object.assign({},this.state),{rows:e}))}async handlePageResult(t){var o;try{const r=await t.res,n=this.getPage(t.index);if((null==n?void 0:n.id)===t.id){const e=r.getCursor(),i=r.getItemsList(),s=null!==(o=null==e?void 0:e.getTotal())&&void 0!==o?o:0,u=t.index*this.rowLimit,a=M(u,i,n.metadataKeys),c=this.state.rows.slice(0,u),p=this.state.rows.slice(c.length+a.length,s),l=new Array(Math.max(0,s-c.length-a.length-p.length)),h=[...c,...a,...p,...l];this.updateState(Object.assign(Object.assign({},this.state),{totalRows:s,rows:h}))}}catch(o){const r=o instanceof Error?o.toString():"Unknown";console.error(`Request error fetching page at index ${t.index} (${r})`);const n=this.getPage(t.index);(null==n?void 0:n.id)===t.id&&this.invalidatePage(t.index)}}invalidatePage(t){this.isPageLoaded(t)&&this.pages.delete(t)}invalidateAfterOffset(t){const o=Math.floor(t/this.rowLimit);for(const t of this.pages.keys())t>=o&&this.invalidatePage(t)}updateState(t){this.state=t,this.onStateChange.emit(this.state)}getPageForOffset(t){const o=Math.floor(t/this.rowLimit);return this.constrainPageIndex(o)}getPageIndexesForRange(t,o){return[this.getPageForOffset(t),this.getPageForOffset(o)]}async fetchTree(t,o,r){return this.requestUnary(r,((r,n)=>{const e=new d.OffsetPager;e.setOffset(t),e.setLimit(o);const i=new m.GetTreeRequest;i.setPager(e),i.setAdditionalColumnKeysList(this.metadataKeys),this.client.getTree(i,r,n)}))}requestUnary(t,o){return new Promise(((r,n)=>{const e=this.createJwtMetadata(t);o(e,((t,o)=>{null!=t?n(t):null!=o?r(o):n(new Error("Invalid response. Both error and result are null"))}))}))}requestServerStream(t,o){return o(this.createJwtMetadata(t))}createJwtMetadata(t){return new l.grpc.Metadata({"jwt-context":JSON.stringify({jwt:t})})}async ifConnectionHasJwt(t){const{connection:o}=this.state;if("connecting"===o.type||"connected"===o.type){const r=await o.jwtProvider();if(null!=r)return t(r);throw new Error("SceneTreeController cannot perform request. Viewer JWT is undefined.")}throw new Error("SceneTreeController is not in connected state")}getConnectionError(t){return"number"==typeof(o=t).code&&o.hasOwnProperty("metadata")?new I(t.code===l.grpc.Code.FailedPrecondition?R.SCENE_TREE_DISABLED:R.UNKNOWN):new I(R.UNKNOWN);var o}constrainPageRange(t,o){return[Math.max(0,t),Math.min(this.maxPages-1,o)]}constrainPageIndex(t){return Math.max(0,Math.min(t,this.maxPages-1))}constrainRowOffsets(t,o){return[Math.max(0,t),Math.min(this.state.totalRows-1,o)]}get maxPages(){return Math.max(1,Math.ceil(this.state.totalRows/this.rowLimit))}}async function S(t,o){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).show())).execute()}async function q(t,o){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).hide())).execute()}T.IDLE_RECONNECT_IN_SECONDS=240,T.LOST_CONNECTION_RECONNECT_IN_SECONDS=2;let A=class{constructor(t){r(this,t),this.connectionError=n(this,"connectionError",7),this.overScanCount=25,this.configEnv="platprod",this.filterOnMetadata=!1,this.metadataKeys=[],this.rows=[],this.totalRows=0,this.stateMap={componentLoaded:!1},this.attemptingRetry=!1}async invalidateRows(){e(this.getLayoutElement())}async scrollToIndex(t,o={}){const{animate:r,position:n="middle"}=o,e=Math.max(0,Math.min(t,this.totalRows)),i=this.getScrollToPosition(e,n);this.getLayoutElement().scrollToPosition(i,{behavior:r?"smooth":void 0})}async scrollToItem(t,o={}){var r;const n=this.totalRows,e=await(null===(r=this.controller)||void 0===r?void 0:r.expandParentNodes(t));if(null!=e&&n!==this.totalRows)return new Promise((t=>{const r=this.getLayoutElement(),n=async()=>{r.removeEventListener("layoutRendered",n),await this.scrollToIndex(e,o),t()};r.addEventListener("layoutRendered",n)}));null!=e&&await this.scrollToIndex(e,o)}async expandAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.expandAll())}async collapseAll(){var t;await(null===(t=this.controller)||void 0===t?void 0:t.collapseAll())}async expandItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded||await(null===(r=this.controller)||void 0===r?void 0:r.expandNode(t))}))}async collapseItem(t){await this.performRowOperation(t,(async({id:t,node:o})=>{var r;o.expanded&&await(null===(r=this.controller)||void 0===r?void 0:r.collapseNode(t))}))}async toggleExpandItem(t){await this.performRowOperation(t,(async({node:t})=>{t.expanded?await this.collapseItem(t):await this.expandItem(t)}))}async toggleItemVisibility(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible?await q(t,o):await S(t,o)}))}async hideItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible&&await q(t,o)}))}async showItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.visible||await S(t,o)}))}async selectItem(t,o={}){var{recurseParent:r}=o,n=u(o,["recurseParent"]);await this.performRowOperation(t,(async({viewer:t,id:o})=>{var e,i,s,u;const a=await(null===(e=this.controller)||void 0===e?void 0:e.fetchNodeAncestors(o))||[],c=null===(i=this.stateMap.selectionPath)||void 0===i?void 0:i.includes(o);if(r&&c){const t=a.find((({selected:t})=>!t));null!=t&&(await this.selectItem(t,n),this.lastSelectedItemId=o)}else if(n.range&&null!=this.lastSelectedItemId){const r=await(null===(s=this.controller)||void 0===s?void 0:s.expandParentNodes(o)),e=await(null===(u=this.controller)||void 0===u?void 0:u.expandParentNodes(this.lastSelectedItemId));if(e&&r){const o=Math.min(e,r),i=Math.max(e,r);await async function(t,o,r,{material:n,append:e=!0}){return(await t.scene()).items((t=>[...e?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withSceneTreeRange({start:o,end:r}))).select(n)])).execute()}(t,o,i,n)}}else await async function(t,o,{material:r,append:n=!1}){return(await t.scene()).items((t=>[...n?[]:[t.where((t=>t.all())).deselect()],t.where((t=>t.withItemId(o))).select(r)])).execute()}(t,o,n),this.lastSelectedItemId=o;this.stateMap.selectionPath=[...a.map((({id:t})=>(null==t?void 0:t.hex)||"")),o]}))}async deselectItem(t){await this.performRowOperation(t,(async({viewer:t,id:o,node:r})=>{r.selected&&(this.lastSelectedItemId=void 0,await async function(t,o){return(await t.scene()).items((t=>t.where((t=>t.withItemId(o))).deselect())).execute()}(t,o))}))}async getRowAtIndex(t){return this.rows[t]}async getRowForEvent(t){const{clientY:o,target:r}=t;return null!=r&&null==this.connectionErrorDetails&&v(this.el,r)&&null!=(n=r)&&"VERTEX-SCENE-TREE-TABLE-CELL"===n.nodeName?this.getRowAtClientY(o):void 0;var n}getRowAtClientY(t){const o=this.getLayoutElement(),r=Math.floor((t-o.layoutOffset+o.scrollOffset)/o.rowHeight);return this.getRowAtIndex(r)}async filterItems(t,o={}){var r;return null===(r=this.controller)||void 0===r?void 0:r.filter(t,o)}async fetchMetadataKeys(){var t,o;return null!==(o=null===(t=this.controller)||void 0===t?void 0:t.fetchMetadataKeys())&&void 0!==o?o:[]}disconnectedCallback(){var t;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose()}componentWillLoad(){if(null!=this.viewerSelector&&(this.viewer=document.querySelector(this.viewerSelector)),null==this.controller){const{sceneTreeHost:t}=this.getConfig().network,o=new E(t);this.controller=new T(o,100)}this.stateMap.onStateChangeDisposable=this.controller.onStateChange.on((t=>this.handleControllerStateChange(t))),this.connectToViewer()}async componentDidLoad(){var t;this.ensureLayoutDefined();const o=this.getLayoutElement(),r=new ResizeObserver((()=>{this.invalidateRows()}));r.observe(o),this.stateMap.resizeObserver=r,this.stateMap.componentLoaded=!0,null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys)}render(){return t(i,null,t("div",{class:"header"},t("slot",{name:"header"},t("vertex-scene-tree-toolbar",{class:"search-toolbar"},t("vertex-scene-tree-search",null)))),null!=this.connectionErrorDetails&&this.renderError(this.connectionErrorDetails),null==this.connectionErrorDetails&&t("div",{class:"rows-scroll"},t("slot",null)),t("div",{class:"footer"},t("slot",{name:"footer"})))}renderError(o){return o.code===R.UNKNOWN?t(C,{details:o},t("button",{class:"button button-secondary",onClick:()=>this.retryConnectToViewer(),disabled:this.attemptingRetry},"Retry")):t(C,{details:o})}handleViewerChanged(t,o){this.stateMap.componentLoaded&&this.connectToViewer()}handleControllerChanged(t){var o;this.stateMap.componentLoaded&&(null===(o=this.stateMap.onStateChangeDisposable)||void 0===o||o.dispose(),this.stateMap.onStateChangeDisposable=t.onStateChange.on((t=>this.handleControllerStateChange(t))),t.setMetadataKeys(this.metadataKeys))}handleMetadataKeysChanged(){var t;null===(t=this.controller)||void 0===t||t.setMetadataKeys(this.metadataKeys)}retryConnectToViewer(){this.attemptingRetry=!0,this.connectToViewer()}connectToViewer(){var t,o;null===(t=this.stateMap.viewerDisposable)||void 0===t||t.dispose(),null!=this.viewer&&(this.stateMap.viewerDisposable=null===(o=this.controller)||void 0===o?void 0:o.connectToViewer(this.viewer))}scheduleClearUnusedData(){null!=this.stateMap.idleCallbackId&&window.cancelIdleCallback(this.stateMap.idleCallbackId),this.stateMap.idleCallbackId=window.requestIdleCallback((t=>{var o,r,n;const e=null===(o=t.timeRemaining)||void 0===o?void 0:o.call(t);if(null==e||e>=25){const t=this.getLayoutElement(),o=t.viewportStartIndex,e=t.viewportEndIndex,[i,s]=(null===(r=this.controller)||void 0===r?void 0:r.getPageIndexesForRange(o,e))||[];null!=i&&null!=s&&(null===(n=this.controller)||void 0===n||n.invalidatePagesOutsideRange(i,s,50))}else this.scheduleClearUnusedData()}))}handleControllerStateChange(t){this.rows=t.rows,this.totalRows=t.totalRows,this.updateLayoutElement(),"failure"===t.connection.type?(this.connectionErrorDetails=t.connection.details,this.connectionError.emit(t.connection.details)):this.connectionErrorDetails=void 0,"connected"!==t.connection.type&&"failure"!==t.connection.type||(this.attemptingRetry=!1)}async performRowOperation(t,o){const r="number"==typeof t?this.rows[t]:t;if(null==r)throw new Error("Cannot perform scene tree operation. Row not found.");const n=null!=(e=r)&&e.hasOwnProperty("node")?r.node:r;var e;if(null==n.id)throw new Error("Cannot perform scene tree operation. ID is undefined.");if(null==this.viewer)throw new Error("Cannot perform scene tree operation. Cannot get reference to viewer.");await o({viewer:this.viewer,id:n.id.hex,node:n})}handleSearch(t){this.filterItems(t.detail,{columns:this.filterOnMetadata?this.metadataKeys:void 0})}getScrollToPosition(t,o){var r;const n=this.getLayoutElement(),e=Math.max(0,Math.min(t,this.totalRows-1)),i=null!==(r=n.layoutHeight)&&void 0!==r?r:0,s=n.rowHeight;return"start"===o?e*s:"middle"===o?e*s+s/2-i/2:e*s+s-i}getConfig(){return h(this.configEnv,this.config)}ensureLayoutDefined(){let t=this.el.querySelector("vertex-scene-tree-table-layout");null==t&&(t=document.createElement("vertex-scene-tree-table-layout"),t.innerHTML='\n <vertex-scene-tree-table-column>\n <template>\n <vertex-scene-tree-table-cell prop:value="{{row.node.name}}" expand-toggle visibility-toggle></vertex-scene-tree-table-cell>\n </template>\n </vertex-scene-tree-table-column>\n ',this.el.appendChild(t)),this.stateMap.layoutEl=t}updateLayoutElement(){const t=this.stateMap.layoutEl;null!=t&&(t.rows=this.rows,t.tree=this.el,t.totalRows=this.totalRows,t.controller=this.controller,t.rowData=this.rowData)}getLayoutElement(){if(null!=this.stateMap.layoutEl)return this.stateMap.layoutEl;throw new Error("Layout element is undefined")}get el(){return s(this)}static get watchers(){return{viewer:["handleViewerChanged"],controller:["handleControllerChanged"],metadataKeys:["handleMetadataKeysChanged"]}}};A.style="button{border:none;background:transparent;cursor:pointer;margin:0;padding:0}.button{padding:0.5rem;border-radius:0.25rem}.button-secondary{color:var(--neutral-800);background-color:var(--neutral-300)}.button-secondary:hover{color:var(--neutral-900)}.button-secondary:hover:enabled{box-shadow:0 2px 2px rgb(0 0 0 / 20%)}.button-secondary:disabled{opacity:0.8}.button-secondary:hover:disabled{cursor:not-allowed}:host{--scene-tree-toolbar-separator:1px solid var(--neutral-300);width:300px;height:100%;user-select:none;-webkit-user-select:none;cursor:default;display:flex;flex-direction:column}.rows-scroll{position:relative;height:var(--scene-tree-row-height, 0);flex-grow:1}.rows{position:relative}.row{position:absolute;display:flex;align-items:center;width:100%;height:var(--scene-tree-row-height);padding:var(--scene-tree-row-padding);box-sizing:border-box}.row:hover{background-color:var(--scene-tree-row-hover-color)}.row.is-selected{background-color:var(--scene-tree-row-selected-color)}.expand-toggle{cursor:pointer;width:16px}.row-text{margin-left:0.25rem;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.visibility-btn{display:flex;align-items:center;visibility:hidden;padding:4px}.visibility-btn.is-hidden{visibility:visible}.row:hover .visibility-btn{visibility:visible}.error{display:flex;flex-direction:column;align-items:center;font-size:0.875rem;width:100%;height:100%;padding:1rem;box-sizing:border-box;justify-content:center}.error-section{margin-top:1rem}.error-message{text-align:center}.search-toolbar,slot[name='header']::slotted(*){border-bottom:var(--scene-tree-toolbar-separator)}slot[name='footer']::slotted(:not(:last-child)){border-top:var(--scene-tree-toolbar-separator)}.header{display:flex;flex-direction:column}.footer{display:flex;flex-direction:column}";export{A as vertex_scene_tree}
@@ -0,0 +1,4 @@
1
+ /**!
2
+ * Copyright (c) 2022 Vertex Software LLC. All rights reserved.
3
+ */
4
+ import{m as t,s,a as i,g as n}from"./p-f7cb7e59.js";import{g as e,w as r}from"./p-3a20a038.js";import{e as a,v as o}from"./p-fe11d694.js";import{m as h}from"./p-301660cf.js";function c(t){return new Promise(((s,i)=>{t(((t,n)=>{null!=t?i(t):null!=n?s(n):i(new Error("Invalid gRPC response. Error and result are empty."))}))}))}async function m(t,s){const i=await t();return new e.grpc.Metadata({"jwt-context":JSON.stringify({jwt:i,metadata:{"x-device-id":s||""}})})}class u{constructor(t,s,i,n){this.model=t,this.client=s,this.jwtProvider=i,this.deviceId=n,this.outcome=Promise.resolve(void 0)}addEntity(t){return this.performMeasurement((()=>this.model.addEntity(t)))}clearEntities(){return this.performMeasurement((()=>(this.model.clearEntities(),this.model.clearOutcome(),!0)))}removeEntity(t){return this.performMeasurement((()=>this.model.removeEntity(t)))}setEntities(t){return this.performMeasurement((()=>this.model.setEntities(t)))}performMeasurement(t){const s=this.model.getEntities(),i=t(),n=this.model.getEntities();return i&&(this.measureAndUpdateModel(n),this.highlightEntities(s,n)),this.outcome}measureAndUpdateModel(t){this.outcome=t.length>0?this.measureEntities(t).then((t=>(this.model.setOutcome(t),this.model.getOutcome()))):Promise.resolve(void 0)}async measureEntities(i){if(i.length>0){const n=await c((async t=>{const n=await m(this.jwtProvider,this.deviceId),e=new s.MeasureRequest;e.setEntitiesList(i.map((t=>t.toProto()))),this.client.measure(e,n,t)}));return t(n.toObject())}}async highlightEntities(t,n){await c((async e=>{const a=await m(this.jwtProvider,this.deviceId),o=new Set(n),h=t.filter((t=>!o.has(t))).map((t=>{const n=new s.ModelEntityUpdate;return n.setModelEntity(i.ModelEntity.deserializeBinary(t.modelEntity)),n.setHighlight((new r.BoolValue).setValue(!1)),n})),c=n.map((t=>{const n=new s.ModelEntityUpdate;return n.setModelEntity(i.ModelEntity.deserializeBinary(t.modelEntity)),n.setHighlight((new r.BoolValue).setValue(!0)),n})),u=new s.UpdateModelEntitiesRequest;u.setUpdatesList([...h,...c]),this.client.updateModelEntities(u,a,e)}))}}class w{constructor(t,s){this.point=t,this.modelEntity=s}static fromHit(t){if(null!=t.hitPoint&&null!=t.modelEntity){const s=h.ifInvalidThrow(a)(t.hitPoint),i=o.protobuf.core.ModelEntity.encode(t.modelEntity).finish();return new w(s,i)}throw new Error("Cannot create MeasurementEntity from Hit. Hit is missing hit point and model entity")}toProto(){const t=new s.MeasureEntity,e=new n.Vector3f;e.setX(this.point.x),e.setY(this.point.y),e.setZ(this.point.z),t.setPoint(e);const r=i.ModelEntity.deserializeBinary(this.modelEntity);return t.setModelEntity(r),t}}export{u as M,w as a}