@kitware/vtk.js 25.8.4 → 25.8.6

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 (119) hide show
  1. package/Interaction/Manipulators/MouseRangeManipulator.js +6 -6
  2. package/Rendering/Core/Follower.js +1 -1
  3. package/Rendering/Core/Prop3D.js +6 -1
  4. package/Rendering/OpenGL/ShaderProgram.js +13 -20
  5. package/Widgets/Representations/WidgetRepresentation.js +23 -7
  6. package/Widgets/SVG/SVGLandmarkRepresentation.js +13 -1
  7. package/_vendor/available-typed-arrays/index.js_commonjs-proxy.js +1 -0
  8. package/_vendor/call-bind/callBound.js_commonjs-proxy.js +1 -0
  9. package/_vendor/call-bind/index.js_commonjs-module.js +3 -0
  10. package/_vendor/call-bind/index.js_commonjs-proxy.js +1 -0
  11. package/_vendor/deep-equal/node_modules/isarray/index.js_commonjs-proxy.js +1 -0
  12. package/_vendor/define-properties/index.js_commonjs-proxy.js +1 -0
  13. package/_vendor/es-abstract/helpers/getOwnPropertyDescriptor.js_commonjs-proxy.js +1 -0
  14. package/_vendor/es-get-iterator/index.js_commonjs-module.js +3 -0
  15. package/_vendor/es-get-iterator/index.js_commonjs-proxy.js +1 -0
  16. package/_vendor/es-get-iterator/node_modules/isarray/index.js_commonjs-proxy.js +1 -0
  17. package/_vendor/foreach/index.js_commonjs-proxy.js +1 -0
  18. package/_vendor/function-bind/implementation.js_commonjs-proxy.js +1 -0
  19. package/_vendor/function-bind/index.js_commonjs-proxy.js +1 -0
  20. package/_vendor/get-intrinsic/index.js_commonjs-proxy.js +1 -0
  21. package/_vendor/has/src/index.js_commonjs-proxy.js +1 -0
  22. package/_vendor/has-bigints/index.js_commonjs-proxy.js +1 -0
  23. package/_vendor/has-symbols/index.js_commonjs-proxy.js +1 -0
  24. package/_vendor/has-symbols/shams.js_commonjs-proxy.js +1 -0
  25. package/_vendor/has-tostringtag/shams.js_commonjs-proxy.js +1 -0
  26. package/_vendor/is-arguments/index.js_commonjs-proxy.js +1 -0
  27. package/_vendor/is-bigint/index.js_commonjs-module.js +3 -0
  28. package/_vendor/is-bigint/index.js_commonjs-proxy.js +1 -0
  29. package/_vendor/is-boolean-object/index.js_commonjs-proxy.js +1 -0
  30. package/_vendor/is-date-object/index.js_commonjs-proxy.js +1 -0
  31. package/_vendor/is-map/index.js_commonjs-proxy.js +1 -0
  32. package/_vendor/is-number-object/index.js_commonjs-proxy.js +1 -0
  33. package/_vendor/is-regex/index.js_commonjs-proxy.js +1 -0
  34. package/_vendor/is-set/index.js_commonjs-proxy.js +1 -0
  35. package/_vendor/is-string/index.js_commonjs-proxy.js +1 -0
  36. package/_vendor/is-symbol/index.js_commonjs-module.js +3 -0
  37. package/_vendor/is-symbol/index.js_commonjs-proxy.js +1 -0
  38. package/_vendor/is-typed-array/index.js_commonjs-proxy.js +1 -0
  39. package/_vendor/is-weakmap/index.js_commonjs-proxy.js +1 -0
  40. package/_vendor/is-weakset/index.js_commonjs-proxy.js +1 -0
  41. package/_vendor/object-inspect/index.js_commonjs-proxy.js +1 -0
  42. package/_vendor/object-is/implementation.js_commonjs-proxy.js +1 -0
  43. package/_vendor/object-is/index.js_commonjs-proxy.js +1 -0
  44. package/_vendor/object-is/polyfill.js_commonjs-proxy.js +1 -0
  45. package/_vendor/object-is/shim.js_commonjs-proxy.js +1 -0
  46. package/_vendor/object-keys/implementation.js_commonjs-proxy.js +1 -0
  47. package/_vendor/object-keys/index.js_commonjs-proxy.js +1 -0
  48. package/_vendor/object-keys/isArguments.js_commonjs-proxy.js +1 -0
  49. package/_vendor/object.assign/implementation.js_commonjs-proxy.js +1 -0
  50. package/_vendor/object.assign/index.js_commonjs-proxy.js +1 -0
  51. package/_vendor/object.assign/polyfill.js_commonjs-proxy.js +1 -0
  52. package/_vendor/object.assign/shim.js_commonjs-proxy.js +2 -0
  53. package/_vendor/regexp.prototype.flags/implementation.js_commonjs-proxy.js +1 -0
  54. package/_vendor/regexp.prototype.flags/index.js_commonjs-proxy.js +1 -0
  55. package/_vendor/regexp.prototype.flags/polyfill.js_commonjs-proxy.js +1 -0
  56. package/_vendor/regexp.prototype.flags/shim.js_commonjs-proxy.js +1 -0
  57. package/_vendor/side-channel/index.js_commonjs-proxy.js +1 -0
  58. package/_vendor/which-boxed-primitive/index.js_commonjs-proxy.js +5 -0
  59. package/_vendor/which-collection/index.js_commonjs-proxy.js +4 -0
  60. package/_vendor/which-typed-array/index.js_commonjs-proxy.js +1 -0
  61. package/_virtual/_node-resolve_empty.js_commonjs-proxy.js +6 -0
  62. package/_virtual/commonjsHelpers.js +18 -0
  63. package/_virtual/node-resolve_empty.js +8 -0
  64. package/_virtual/polyfill-node.global.js +5 -0
  65. package/_virtual/polyfill-node.process.js +225 -0
  66. package/macros.d.ts +5 -3
  67. package/macros.js +28 -3
  68. package/package.json +1 -1
  69. package/vendor/available-typed-arrays/index.js +29 -0
  70. package/vendor/call-bind/callBound.js +19 -0
  71. package/vendor/call-bind/index.js +52 -0
  72. package/vendor/deep-equal/index.js +379 -0
  73. package/vendor/deep-equal/node_modules/isarray/index.js +7 -0
  74. package/vendor/define-properties/index.js +60 -0
  75. package/vendor/es-abstract/helpers/getOwnPropertyDescriptor.js +17 -0
  76. package/vendor/es-get-iterator/index.js +217 -0
  77. package/vendor/es-get-iterator/node_modules/isarray/index.js +7 -0
  78. package/vendor/foreach/index.js +22 -0
  79. package/vendor/function-bind/implementation.js +52 -0
  80. package/vendor/function-bind/index.js +7 -0
  81. package/vendor/get-intrinsic/index.js +334 -0
  82. package/vendor/has/src/index.js +7 -0
  83. package/vendor/has-bigints/index.js +12 -0
  84. package/vendor/has-symbols/index.js +15 -0
  85. package/vendor/has-symbols/shams.js +42 -0
  86. package/vendor/has-tostringtag/shams.js +9 -0
  87. package/vendor/is-arguments/index.js +36 -0
  88. package/vendor/is-bigint/index.js +39 -0
  89. package/vendor/is-boolean-object/index.js +29 -0
  90. package/vendor/is-date-object/index.js +22 -0
  91. package/vendor/is-map/index.js +42 -0
  92. package/vendor/is-number-object/index.js +26 -0
  93. package/vendor/is-regex/index.js +61 -0
  94. package/vendor/is-set/index.js +42 -0
  95. package/vendor/is-string/index.js +26 -0
  96. package/vendor/is-symbol/index.js +36 -0
  97. package/vendor/is-typed-array/index.js +67 -0
  98. package/vendor/is-weakmap/index.js +42 -0
  99. package/vendor/is-weakset/index.js +42 -0
  100. package/vendor/object-inspect/index.js +515 -0
  101. package/vendor/object-is/implementation.js +18 -0
  102. package/vendor/object-is/index.js +25 -0
  103. package/vendor/object-is/polyfill.js +9 -0
  104. package/vendor/object-is/shim.js +17 -0
  105. package/vendor/object-keys/implementation.js +124 -0
  106. package/vendor/object-keys/index.js +35 -0
  107. package/vendor/object-keys/isArguments.js +17 -0
  108. package/vendor/object.assign/implementation.js +46 -0
  109. package/vendor/object.assign/index.js +29 -0
  110. package/vendor/object.assign/polyfill.js +57 -0
  111. package/vendor/object.assign/shim.js +17 -0
  112. package/vendor/regexp.prototype.flags/implementation.js +30 -0
  113. package/vendor/regexp.prototype.flags/index.js +25 -0
  114. package/vendor/regexp.prototype.flags/polyfill.js +23 -0
  115. package/vendor/regexp.prototype.flags/shim.js +29 -0
  116. package/vendor/side-channel/index.js +128 -0
  117. package/vendor/which-boxed-primitive/index.js +38 -0
  118. package/vendor/which-collection/index.js +29 -0
  119. package/vendor/which-typed-array/index.js +63 -0
@@ -115,18 +115,18 @@ function vtkMouseRangeManipulator(publicAPI, model) {
115
115
 
116
116
 
117
117
  publicAPI.removeHorizontalListener = function () {
118
- if (model.verticalListener) {
119
- incrementalDelta.delete(model.verticalListener);
120
- delete model.verticalListener;
118
+ if (model.horizontalListener) {
119
+ incrementalDelta.delete(model.horizontalListener);
120
+ delete model.horizontalListener;
121
121
  publicAPI.modified();
122
122
  }
123
123
  }; //-------------------------------------------------------------------------
124
124
 
125
125
 
126
126
  publicAPI.removeVerticalListener = function () {
127
- if (model.horizontalListener) {
128
- incrementalDelta.delete(model.horizontalListener);
129
- delete model.horizontalListener;
127
+ if (model.verticalListener) {
128
+ incrementalDelta.delete(model.verticalListener);
129
+ delete model.verticalListener;
130
130
  publicAPI.modified();
131
131
  }
132
132
  }; //-------------------------------------------------------------------------
@@ -76,7 +76,7 @@ function vtkFollower(publicAPI, model) {
76
76
  model.followerMatrix[8] = vpn[0];
77
77
  model.followerMatrix[9] = vpn[1];
78
78
  model.followerMatrix[10] = vpn[2];
79
- mat4.multiply(model.matrix, model.followerMatrix, model.matrix);
79
+ mat4.multiply(model.matrix, model.matrix, model.followerMatrix);
80
80
  }
81
81
 
82
82
  mat4.translate(model.matrix, model.matrix, [-model.origin[0], -model.origin[1], -model.origin[2]]);
@@ -1,7 +1,7 @@
1
1
  import { mat4, quat } from 'gl-matrix';
2
2
  import macro from '../../macros.js';
3
3
  import vtkBoundingBox from '../../Common/DataModel/BoundingBox.js';
4
- import { B as degreesFromRadians, r as radiansFromDegrees } from '../../Common/Core/Math/index.js';
4
+ import { B as degreesFromRadians, r as radiansFromDegrees, a as areMatricesEqual } from '../../Common/Core/Math/index.js';
5
5
  import vtkProp from './Prop.js';
6
6
 
7
7
  // vtkProp3D methods
@@ -83,8 +83,13 @@ function vtkProp3D(publicAPI, model) {
83
83
  };
84
84
 
85
85
  publicAPI.setUserMatrix = function (matrix) {
86
+ if (areMatricesEqual(model.userMatrix, matrix)) {
87
+ return false;
88
+ }
89
+
86
90
  mat4.copy(model.userMatrix, matrix);
87
91
  publicAPI.modified();
92
+ return true;
88
93
  };
89
94
 
90
95
  publicAPI.getMatrix = function () {
@@ -5,32 +5,25 @@ var vtkErrorMacro = macro.vtkErrorMacro; // perform in place string substitution
5
5
  // this is useful for building up shader strings which typically involve
6
6
  // lots of string substitutions. Return true if a substitution was done.
7
7
 
8
- function substitute(source, search, replace) {
9
- var all = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
10
- var replaceStr = Array.isArray(replace) ? replace.join('\n') : replace;
11
- var replaced = false;
12
-
13
- if (source.search(search) !== -1) {
14
- replaced = true;
15
- }
16
-
17
- var gflag = '';
18
-
19
- if (all) {
20
- gflag = 'g';
21
- }
22
-
23
- var regex = new RegExp(search, gflag);
24
- var resultstr = source.replace(regex, replaceStr);
8
+ function substitute(source, search, replace, all) {
9
+ // We only accept strings or array of strings, typeof is faster than Array.isArray
10
+ var replaceStr = typeof replace === 'string' ? replace : replace.join('\n'); // We don't need to instantiate a RegExp if we don't want a global substitution.
11
+ // In all other cases, we need to take the provided string or RegExp and
12
+ // instantiate a new one to add the `g` flag.
13
+ // Argument defaults are transpiled to slow `arguments`-based operations
14
+ // better assume undefined as flag to know if the value is set or not
15
+
16
+ var replaceSearch = all === false ? search : new RegExp(search, 'g');
17
+ var resultstr = source.replace(replaceSearch, replaceStr);
25
18
  return {
26
- replace: replaced,
19
+ // If the result is different than the input, we did perform a replacement
20
+ replace: resultstr !== replaceStr,
27
21
  result: resultstr
28
22
  };
29
23
  } // ----------------------------------------------------------------------------
30
24
  // vtkShaderProgram methods
31
25
  // ----------------------------------------------------------------------------
32
26
 
33
-
34
27
  function vtkShaderProgram(publicAPI, model) {
35
28
  // Set our className
36
29
  model.classHierarchy.push('vtkShaderProgram');
@@ -666,4 +659,4 @@ var vtkShaderProgram$1 = {
666
659
  substitute: substitute
667
660
  };
668
661
 
669
- export { vtkShaderProgram$1 as default };
662
+ export { vtkShaderProgram$1 as default, substitute };
@@ -1,4 +1,5 @@
1
1
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
2
+ import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
3
  import macro from '../../macros.js';
3
4
  import vtkProp from '../../Rendering/Core/Prop.js';
4
5
  import { s as subtract, d as dot } from '../../Common/Core/Math/index.js';
@@ -6,6 +7,9 @@ import { Behavior } from './WidgetRepresentation/Constants.js';
6
7
  import { RenderingTypes } from '../Core/WidgetManager/Constants.js';
7
8
  import { CATEGORIES } from '../../Rendering/Core/Mapper/CoincidentTopologyHelper.js';
8
9
 
10
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
+
12
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9
13
  var vtkErrorMacro = macro.vtkErrorMacro,
10
14
  vtkWarningMacro = macro.vtkWarningMacro; // ----------------------------------------------------------------------------
11
15
 
@@ -80,7 +84,10 @@ function connectPipeline(pipeline) {
80
84
 
81
85
  function vtkWidgetRepresentation(publicAPI, model) {
82
86
  // Set our className
83
- model.classHierarchy.push('vtkWidgetRepresentation'); // Internal cache
87
+ model.classHierarchy.push('vtkWidgetRepresentation');
88
+
89
+ var superclass = _objectSpread({}, publicAPI); // Internal cache
90
+
84
91
 
85
92
  var cache = {
86
93
  mtimes: {},
@@ -210,10 +217,13 @@ function vtkWidgetRepresentation(publicAPI, model) {
210
217
  };
211
218
 
212
219
  publicAPI.setCoincidentTopologyParameters = function (parameters) {
213
- model.coincidentTopologyParameters = parameters;
214
- publicAPI.getActors().forEach(function (actor) {
215
- applyCoincidentTopologyParametersToMapper(actor.getMapper(), model.coincidentTopologyParameters);
216
- });
220
+ var modified = superclass.setCoincidentTopologyParameters(parameters);
221
+
222
+ if (modified) {
223
+ publicAPI.getActors().forEach(function (actor) {
224
+ applyCoincidentTopologyParametersToMapper(actor.getMapper(), model.coincidentTopologyParameters);
225
+ });
226
+ }
217
227
  };
218
228
 
219
229
  publicAPI.getPixelWorldHeightAtCoord = function (worldCoord) {
@@ -279,8 +289,14 @@ function extend(publicAPI, model) {
279
289
 
280
290
  vtkProp.extend(publicAPI, model, initialValues);
281
291
  macro.algo(publicAPI, model, 1, 1);
282
- macro.get(publicAPI, model, ['labels', 'coincidentTopologyParameters']);
283
- macro.set(publicAPI, model, ['displayScaleParams']);
292
+ macro.get(publicAPI, model, ['labels']);
293
+ macro.set(publicAPI, model, [{
294
+ type: 'object',
295
+ name: 'displayScaleParams'
296
+ }, {
297
+ type: 'object',
298
+ name: 'coincidentTopologyParameters'
299
+ }]);
284
300
  macro.setGet(publicAPI, model, ['scaleInPixels']); // Object specific methods
285
301
 
286
302
  vtkWidgetRepresentation(publicAPI, model);
@@ -152,7 +152,19 @@ function defaultValues(initialValues) {
152
152
  function extend(publicAPI, model) {
153
153
  var initialValues = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
154
154
  vtkSVGRepresentation.extend(publicAPI, model, defaultValues(initialValues));
155
- macro.setGet(publicAPI, model, ['circleProps', 'fontProperties', 'strokeFontProperties', 'textProps']); // Object specific methods
155
+ macro.setGet(publicAPI, model, [{
156
+ type: 'object',
157
+ name: 'circleProps'
158
+ }, {
159
+ type: 'object',
160
+ name: 'fontProperties'
161
+ }, {
162
+ type: 'object',
163
+ name: 'strokeFontProperties'
164
+ }, {
165
+ type: 'object',
166
+ name: 'textProps'
167
+ }]); // Object specific methods
156
168
 
157
169
  vtkSVGLandmarkRepresentation(publicAPI, model);
158
170
  } // ----------------------------------------------------------------------------
@@ -0,0 +1 @@
1
+ import '../../vendor/call-bind/callBound.js';
@@ -0,0 +1,3 @@
1
+ var callBind = {exports: {}};
2
+
3
+ export { callBind as c };
@@ -0,0 +1 @@
1
+ import '../../vendor/call-bind/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/define-properties/index.js';
@@ -0,0 +1,3 @@
1
+ var esGetIterator = {exports: {}};
2
+
3
+ export { esGetIterator as e };
@@ -0,0 +1 @@
1
+ import '../../vendor/es-get-iterator/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/get-intrinsic/index.js';
@@ -0,0 +1 @@
1
+ import '../../../vendor/has/src/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/has-bigints/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/is-arguments/index.js';
@@ -0,0 +1,3 @@
1
+ var isBigint = {exports: {}};
2
+
3
+ export { isBigint as i };
@@ -0,0 +1 @@
1
+ import '../../vendor/is-bigint/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/is-boolean-object/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/is-map/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/is-number-object/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/is-regex/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/is-set/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/is-string/index.js';
@@ -0,0 +1,3 @@
1
+ var isSymbol = {exports: {}};
2
+
3
+ export { isSymbol as i };
@@ -0,0 +1 @@
1
+ import '../../vendor/is-symbol/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/is-typed-array/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/is-weakmap/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/is-weakset/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/object-is/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/define-properties/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/object-keys/implementation.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/object-keys/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/object.assign/implementation.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/object.assign/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/object.assign/implementation.js';
@@ -0,0 +1,2 @@
1
+ import '../../vendor/define-properties/index.js';
2
+ import '../../vendor/object.assign/implementation.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/regexp.prototype.flags/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/define-properties/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/define-properties/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/side-channel/index.js';
@@ -0,0 +1,5 @@
1
+ import '../../vendor/is-string/index.js';
2
+ import '../../vendor/is-number-object/index.js';
3
+ import '../../vendor/is-boolean-object/index.js';
4
+ import '../../vendor/is-symbol/index.js';
5
+ import '../../vendor/is-bigint/index.js';
@@ -0,0 +1,4 @@
1
+ import '../../vendor/is-map/index.js';
2
+ import '../../vendor/is-set/index.js';
3
+ import '../../vendor/is-weakmap/index.js';
4
+ import '../../vendor/is-weakset/index.js';
@@ -0,0 +1 @@
1
+ import '../../vendor/which-typed-array/index.js';
@@ -0,0 +1,6 @@
1
+ import { _ as _nodeResolve_empty } from './node-resolve_empty.js';
2
+ import { g as getAugmentedNamespace } from './commonjsHelpers.js';
3
+
4
+ var require$$0 = /*@__PURE__*/getAugmentedNamespace(_nodeResolve_empty);
5
+
6
+ export { require$$0 as r };
@@ -0,0 +1,18 @@
1
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
+
3
+ function getAugmentedNamespace(n) {
4
+ if (n.__esModule) return n;
5
+ var a = Object.defineProperty({}, '__esModule', {value: true});
6
+ Object.keys(n).forEach(function (k) {
7
+ var d = Object.getOwnPropertyDescriptor(n, k);
8
+ Object.defineProperty(a, k, d.get ? d : {
9
+ enumerable: true,
10
+ get: function () {
11
+ return n[k];
12
+ }
13
+ });
14
+ });
15
+ return a;
16
+ }
17
+
18
+ export { commonjsGlobal as c, getAugmentedNamespace as g };
@@ -0,0 +1,8 @@
1
+ var _nodeResolve_empty = {};
2
+
3
+ var _nodeResolve_empty$1 = /*#__PURE__*/Object.freeze({
4
+ __proto__: null,
5
+ 'default': _nodeResolve_empty
6
+ });
7
+
8
+ export { _nodeResolve_empty$1 as _ };
@@ -0,0 +1,5 @@
1
+ var global$1 = (typeof global !== "undefined" ? global :
2
+ typeof self !== "undefined" ? self :
3
+ typeof window !== "undefined" ? window : {});
4
+
5
+ export { global$1 as g };