@holoviz/panel 0.12.1 → 0.12.3

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.
package/dist/panel.js CHANGED
@@ -31,7 +31,7 @@
31
31
  (function(root, factory) {
32
32
  factory(root["Bokeh"], undefined);
33
33
  })(this, function(Bokeh, version) {
34
- var define;
34
+ let define;
35
35
  return (function(modules, entry, aliases, externals) {
36
36
  const bokeh = typeof Bokeh !== "undefined" && (version != null ? Bokeh[version] : Bokeh);
37
37
  if (bokeh != null) {
@@ -44,15 +44,15 @@
44
44
  "4e90918c0a": /* index.js */ function _(require, module, exports, __esModule, __esExport) {
45
45
  __esModule();
46
46
  const tslib_1 = require("tslib");
47
- const Panel = tslib_1.__importStar(require("7898617fc4") /* ./models */);
47
+ const Panel = (0, tslib_1.__importStar)(require("7898617fc4") /* ./models */);
48
48
  exports.Panel = Panel;
49
49
  const base_1 = require("@bokehjs/base");
50
- base_1.register_models(Panel);
50
+ (0, base_1.register_models)(Panel);
51
51
  },
52
52
  "7898617fc4": /* models/index.js */ function _(require, module, exports, __esModule, __esExport) {
53
53
  __esModule();
54
54
  const tslib_1 = require("tslib");
55
- var ace_1 = require("be520eff91") /* ./ace */;
55
+ var ace_1 = require("9fecc8d0f9") /* ./ace */;
56
56
  __esExport("AcePlot", ace_1.AcePlot);
57
57
  var audio_1 = require("339f84d639") /* ./audio */;
58
58
  __esExport("Audio", audio_1.Audio);
@@ -60,7 +60,7 @@
60
60
  __esExport("Card", card_1.Card);
61
61
  var comm_manager_1 = require("e552778259") /* ./comm_manager */;
62
62
  __esExport("CommManager", comm_manager_1.CommManager);
63
- var tabulator_1 = require("cd0a5e2f82") /* ./tabulator */;
63
+ var tabulator_1 = require("32011d40fa") /* ./tabulator */;
64
64
  __esExport("DataTabulator", tabulator_1.DataTabulator);
65
65
  var datetime_picker_1 = require("6e11b2cfe2") /* ./datetime_picker */;
66
66
  __esExport("DatetimePicker", datetime_picker_1.DatetimePicker);
@@ -88,13 +88,13 @@
88
88
  __esExport("Perspective", perspective_1.Perspective);
89
89
  var player_1 = require("2e8044c920") /* ./player */;
90
90
  __esExport("Player", player_1.Player);
91
- var plotly_1 = require("c23bb1717d") /* ./plotly */;
91
+ var plotly_1 = require("50ac0b0178") /* ./plotly */;
92
92
  __esExport("PlotlyPlot", plotly_1.PlotlyPlot);
93
93
  var progress_1 = require("9f787650b9") /* ./progress */;
94
94
  __esExport("Progress", progress_1.Progress);
95
- var reactive_html_1 = require("d536149aaa") /* ./reactive_html */;
95
+ var reactive_html_1 = require("11283de978") /* ./reactive_html */;
96
96
  __esExport("ReactiveHTML", reactive_html_1.ReactiveHTML);
97
- var singleselect_1 = require("3b85956787") /* ./singleselect */;
97
+ var singleselect_1 = require("5ed2116e26") /* ./singleselect */;
98
98
  __esExport("SingleSelect", singleselect_1.SingleSelect);
99
99
  var speech_to_text_1 = require("aaa48703af") /* ./speech_to_text */;
100
100
  __esExport("SpeechToText", speech_to_text_1.SpeechToText);
@@ -104,7 +104,7 @@
104
104
  __esExport("Terminal", terminal_1.Terminal);
105
105
  var text_to_speech_1 = require("33cd2c254e") /* ./text_to_speech */;
106
106
  __esExport("TextToSpeech", text_to_speech_1.TextToSpeech);
107
- var trend_1 = require("ded3463d6c") /* ./trend */;
107
+ var trend_1 = require("effe070807") /* ./trend */;
108
108
  __esExport("TrendIndicator", trend_1.TrendIndicator);
109
109
  var vega_1 = require("4feb5fa522") /* ./vega */;
110
110
  __esExport("VegaPlot", vega_1.VegaPlot);
@@ -112,9 +112,9 @@
112
112
  __esExport("Video", video_1.Video);
113
113
  var videostream_1 = require("e3e9b8e495") /* ./videostream */;
114
114
  __esExport("VideoStream", videostream_1.VideoStream);
115
- tslib_1.__exportStar(require("c51f25e2a7") /* ./vtk */, exports);
115
+ (0, tslib_1.__exportStar)(require("c51f25e2a7") /* ./vtk */, exports);
116
116
  },
117
- "be520eff91": /* models/ace.js */ function _(require, module, exports, __esModule, __esExport) {
117
+ "9fecc8d0f9": /* models/ace.js */ function _(require, module, exports, __esModule, __esExport) {
118
118
  __esModule();
119
119
  const html_box_1 = require("@bokehjs/models/layouts/html_box");
120
120
  const dom_1 = require("@bokehjs/core/dom");
@@ -129,7 +129,7 @@
129
129
  initialize() {
130
130
  super.initialize();
131
131
  this._ace = window.ace;
132
- this._container = dom_1.div({
132
+ this._container = (0, dom_1.div)({
133
133
  id: ID(),
134
134
  style: {
135
135
  width: "100%",
@@ -161,7 +161,7 @@
161
161
  this._editor.setOptions({
162
162
  enableBasicAutocompletion: true,
163
163
  enableSnippets: true,
164
- fontFamily: "monospace",
164
+ fontFamily: "monospace", //hack for cursor position
165
165
  });
166
166
  this._update_theme();
167
167
  this._update_filename();
@@ -311,9 +311,9 @@
311
311
  return cached;
312
312
  }
313
313
  const bounded = new types_1.Sizeable(viewport).bounded_to(this.sizing.size);
314
- const size = dom_1.sized(this.el, bounded, () => {
315
- const content = new types_1.Sizeable(dom_1.content_size(this.el));
316
- const { border, padding } = dom_1.extents(this.el);
314
+ const size = (0, dom_1.sized)(this.el, bounded, () => {
315
+ const content = new types_1.Sizeable((0, dom_1.content_size)(this.el));
316
+ const { border, padding } = (0, dom_1.extents)(this.el);
317
317
  return content.grow_by(border).grow_by(padding).map(Math.ceil);
318
318
  });
319
319
  this._cache.set(key_str, size);
@@ -472,7 +472,7 @@
472
472
  const tslib_1 = require("tslib");
473
473
  const column_1 = require("@bokehjs/models/layouts/column");
474
474
  const bbox_1 = require("@bokehjs/core/util/bbox");
475
- const DOM = tslib_1.__importStar(require("@bokehjs/core/dom"));
475
+ const DOM = (0, tslib_1.__importStar)(require("@bokehjs/core/dom"));
476
476
  const dom_1 = require("@bokehjs/core/dom");
477
477
  const grid_1 = require("@bokehjs/core/layout/grid");
478
478
  const color_1 = require("@bokehjs/core/util/color");
@@ -507,10 +507,10 @@
507
507
  super.update_position();
508
508
  }
509
509
  render() {
510
- dom_1.empty(this.el);
510
+ (0, dom_1.empty)(this.el);
511
511
  const { background, button_css_classes, header_color, header_tag, header_css_classes } = this.model;
512
- this.el.style.backgroundColor = background != null ? color_1.color2css(background) : "";
513
- dom_1.classes(this.el).clear().add(...this.css_classes());
512
+ this.el.style.backgroundColor = background != null ? (0, color_1.color2css)(background) : "";
513
+ (0, dom_1.classes)(this.el).clear().add(...this.css_classes());
514
514
  let header_background = this.model.header_background;
515
515
  if (!this.model.collapsed && this.model.active_header_background)
516
516
  header_background = this.model.active_header_background;
@@ -693,7 +693,7 @@
693
693
  CommManager.__module__ = "panel.models.comm_manager";
694
694
  CommManager.init_CommManager();
695
695
  },
696
- "cd0a5e2f82": /* models/tabulator.js */ function _(require, module, exports, __esModule, __esExport) {
696
+ "32011d40fa": /* models/tabulator.js */ function _(require, module, exports, __esModule, __esExport) {
697
697
  __esModule();
698
698
  const types_1 = require("@bokehjs/core/util/types");
699
699
  const html_box_1 = require("@bokehjs/models/layouts/html_box");
@@ -718,7 +718,7 @@
718
718
  for (const group of grouped) {
719
719
  const subsummary = summarize(group._children, columns, aggregators, depth + 1);
720
720
  for (const col in subsummary) {
721
- if (types_1.isArray(subsummary[col]))
721
+ if ((0, types_1.isArray)(subsummary[col]))
722
722
  group[col] = subsummary[col].reduce((a, b) => a + b, 0) / subsummary[col].length;
723
723
  else
724
724
  group[col] = subsummary[col];
@@ -734,7 +734,7 @@
734
734
  else if (agg === 'sum')
735
735
  summary[column.field] = val + old_val;
736
736
  else if (agg === 'mean') {
737
- if (types_1.isArray(summary[column.field]))
737
+ if ((0, types_1.isArray)(summary[column.field]))
738
738
  summary[column.field].push(val);
739
739
  else
740
740
  summary[column.field] = [old_val, val];
@@ -786,6 +786,7 @@
786
786
  constructor() {
787
787
  super(...arguments);
788
788
  this._tabulator_cell_updating = false;
789
+ this._data_updating = true;
789
790
  this._selection_updating = false;
790
791
  this._styled_cells = [];
791
792
  }
@@ -837,8 +838,8 @@
837
838
  if (wait)
838
839
  return;
839
840
  this._initializing = true;
840
- const container = dom_1.div({ class: "pnx-tabulator" });
841
- layout_1.set_size(container, this.model);
841
+ const container = (0, dom_1.div)({ class: "pnx-tabulator" });
842
+ (0, layout_1.set_size)(container, this.model);
842
843
  let configuration = this.getConfiguration();
843
844
  this.tabulator = new Tabulator(container, configuration);
844
845
  // Swap pagination mode
@@ -871,8 +872,11 @@
871
872
  return new Promise((resolve, reject) => {
872
873
  try {
873
874
  if (page != null && sorters != null) {
875
+ if (this._data_updating)
876
+ this._data_updating = false;
877
+ else
878
+ this.model.sorters = sorters;
874
879
  this.model.page = page || 1;
875
- this.model.sorters = sorters;
876
880
  }
877
881
  resolve([]);
878
882
  }
@@ -928,7 +932,7 @@
928
932
  if (cds === null || (cds.columns().length === 0))
929
933
  data = [];
930
934
  else
931
- data = data_1.transform_cds_to_records(cds, true);
935
+ data = (0, data_1.transform_cds_to_records)(cds, true);
932
936
  if (configuration.dataTree)
933
937
  data = group_data(data, this.model.columns, this.model.indexes, this.model.aggregators);
934
938
  return Object.assign(Object.assign({}, configuration), { "data": data });
@@ -982,7 +986,7 @@
982
986
  else {
983
987
  tab_column.formatter = (cell) => {
984
988
  const formatted = column.formatter.doFormat(cell.getRow(), cell, cell.getValue(), null, null);
985
- const node = dom_1.div();
989
+ const node = (0, dom_1.div)();
986
990
  node.innerHTML = formatted;
987
991
  return node.children[0].innerHTML;
988
992
  };
@@ -1051,13 +1055,16 @@
1051
1055
  }
1052
1056
  // Update table
1053
1057
  setData() {
1054
- let data = data_1.transform_cds_to_records(this.model.source, true);
1058
+ let data = (0, data_1.transform_cds_to_records)(this.model.source, true);
1055
1059
  if (this.model.configuration.dataTree)
1056
1060
  data = group_data(data, this.model.columns, this.model.indexes, this.model.aggregators);
1061
+ this._data_updating = true;
1057
1062
  if (this.model.pagination != null)
1058
1063
  this.tabulator.rowManager.setData(data, true, false);
1059
- else
1064
+ else {
1060
1065
  this.tabulator.setData(data);
1066
+ this._data_updating = false;
1067
+ }
1061
1068
  this.freezeRows();
1062
1069
  this.updateSelection();
1063
1070
  }
@@ -1136,7 +1143,7 @@
1136
1143
  element.cssText = "";
1137
1144
  for (const s of style) {
1138
1145
  let prop, value;
1139
- if (types_1.isArray(s))
1146
+ if ((0, types_1.isArray)(s))
1140
1147
  [prop, value] = s;
1141
1148
  else if (!s.includes(':'))
1142
1149
  continue;
@@ -1151,7 +1158,7 @@
1151
1158
  addData() {
1152
1159
  const rows = this.tabulator.rowManager.getRows();
1153
1160
  const last_row = rows[rows.length - 1];
1154
- let data = data_1.transform_cds_to_records(this.model.source, true);
1161
+ let data = (0, data_1.transform_cds_to_records)(this.model.source, true);
1155
1162
  this.tabulator.setData(data);
1156
1163
  if (this.model.follow) {
1157
1164
  this.tabulator.scrollToRow((last_row.data._index || 0), "top", false);
@@ -1163,7 +1170,7 @@
1163
1170
  // To avoid double updating the tabulator data
1164
1171
  if (this._tabulator_cell_updating)
1165
1172
  return;
1166
- let data = data_1.transform_cds_to_records(this.model.source, true);
1173
+ let data = (0, data_1.transform_cds_to_records)(this.model.source, true);
1167
1174
  this.tabulator.setData(data);
1168
1175
  this.freezeRows();
1169
1176
  this.updateSelection();
@@ -1177,11 +1184,11 @@
1177
1184
  }
1178
1185
  }
1179
1186
  setMaxPage() {
1180
- this.tabulator.setMaxPage(Math.max(this.model.page, this.model.max_page));
1187
+ this.tabulator.setMaxPage(this.model.max_page);
1181
1188
  this.tabulator.modules.page._setPageButtons();
1182
1189
  }
1183
1190
  setPage() {
1184
- this.tabulator.setPage(this.model.page);
1191
+ this.tabulator.setPage(Math.min(this.model.max_page, this.model.page));
1185
1192
  }
1186
1193
  setPageSize() {
1187
1194
  this.tabulator.setPageSize(this.model.page_size);
@@ -1261,7 +1268,7 @@
1261
1268
  }
1262
1269
  exports.DataTabulatorView = DataTabulatorView;
1263
1270
  DataTabulatorView.__name__ = "DataTabulatorView";
1264
- exports.TableLayout = kinds_1.Enum("fit_data", "fit_data_fill", "fit_data_stretch", "fit_data_table", "fit_columns");
1271
+ exports.TableLayout = (0, kinds_1.Enum)("fit_data", "fit_data_fill", "fit_data_stretch", "fit_data_table", "fit_columns");
1265
1272
  // The Bokeh .ts model corresponding to the Bokeh .py model
1266
1273
  class DataTabulator extends html_box_1.HTMLBox {
1267
1274
  constructor(attrs) {
@@ -1343,17 +1350,17 @@
1343
1350
  "6e11b2cfe2": /* models/datetime_picker.js */ function _(require, module, exports, __esModule, __esExport) {
1344
1351
  __esModule();
1345
1352
  const tslib_1 = require("tslib");
1346
- const flatpickr_1 = tslib_1.__importDefault(require("50d3473f3f") /* flatpickr */);
1353
+ const flatpickr_1 = (0, tslib_1.__importDefault)(require("50d3473f3f") /* flatpickr */);
1347
1354
  const input_widget_1 = require("@bokehjs/models/widgets/input_widget");
1348
1355
  const dom_1 = require("@bokehjs/core/dom");
1349
1356
  const enums_1 = require("@bokehjs/core/enums");
1350
1357
  const types_1 = require("@bokehjs/core/util/types");
1351
- const inputs = tslib_1.__importStar(require("@bokehjs/styles/widgets/inputs.css"));
1352
- const flatpickr_css_1 = tslib_1.__importDefault(require("@bokehjs/styles/widgets/flatpickr.css"));
1358
+ const inputs = (0, tslib_1.__importStar)(require("@bokehjs/styles/widgets/inputs.css"));
1359
+ const flatpickr_css_1 = (0, tslib_1.__importDefault)(require("@bokehjs/styles/widgets/flatpickr.css"));
1353
1360
  function _convert_date_list(value) {
1354
1361
  const result = [];
1355
1362
  for (const item of value) {
1356
- if (types_1.isString(item))
1363
+ if ((0, types_1.isString)(item))
1357
1364
  result.push(item);
1358
1365
  else {
1359
1366
  const [from, to] = item;
@@ -1392,9 +1399,9 @@
1392
1399
  if (this._picker != null)
1393
1400
  return;
1394
1401
  super.render();
1395
- this.input_el = dom_1.input({ type: "text", class: inputs.input, disabled: this.model.disabled });
1402
+ this.input_el = (0, dom_1.input)({ type: "text", class: inputs.input, disabled: this.model.disabled });
1396
1403
  this.group_el.appendChild(this.input_el);
1397
- this._picker = flatpickr_1.default(this.input_el, {
1404
+ this._picker = (0, flatpickr_1.default)(this.input_el, {
1398
1405
  defaultDate: this.model.value,
1399
1406
  minDate: (_a = this.model.min_date) !== null && _a !== void 0 ? _a : undefined,
1400
1407
  maxDate: (_b = this.model.max_date) !== null && _b !== void 0 ? _b : undefined,
@@ -4138,7 +4145,7 @@
4138
4145
  const data_1 = require("f1971f81bf") /* ./data */;
4139
4146
  const layout_1 = require("4c755983eb") /* ./layout */;
4140
4147
  const tooltips_1 = require("6e04fbe567") /* ./tooltips */;
4141
- const constants_1 = tslib_1.__importDefault(require("093eb75864") /* @luma.gl/constants */);
4148
+ const constants_1 = (0, tslib_1.__importDefault)(require("093eb75864") /* @luma.gl/constants */);
4142
4149
  function extractClasses() {
4143
4150
  // Get classes for registration from standalone deck.gl
4144
4151
  const classesDict = {};
@@ -4210,7 +4217,7 @@
4210
4217
  this._layer_map[n - 1] = layer.data;
4211
4218
  cds = this.model.data_sources[layer.data];
4212
4219
  }
4213
- layer.data = data_1.transform_cds_to_records(cds);
4220
+ layer.data = (0, data_1.transform_cds_to_records)(cds);
4214
4221
  }
4215
4222
  if (render)
4216
4223
  this.updateDeck();
@@ -4258,7 +4265,7 @@
4258
4265
  let deckgl;
4259
4266
  try {
4260
4267
  const props = this.jsonConverter.convert(jsonInput);
4261
- const getTooltip = tooltips_1.makeTooltip(tooltip, props.layers);
4268
+ const getTooltip = (0, tooltips_1.makeTooltip)(tooltip, props.layers);
4262
4269
  deckgl = new window.deck.DeckGL(Object.assign(Object.assign({}, props), { map: window.mapboxgl, mapboxApiAccessToken: mapboxApiKey, container,
4263
4270
  getTooltip }));
4264
4271
  }
@@ -4269,8 +4276,8 @@
4269
4276
  }
4270
4277
  render() {
4271
4278
  super.render();
4272
- const container = dom_1.div({ class: "deckgl" });
4273
- layout_1.set_size(container, this.model);
4279
+ const container = (0, dom_1.div)({ class: "deckgl" });
4280
+ (0, layout_1.set_size)(container, this.model);
4274
4281
  const MAPBOX_API_KEY = this.model.mapbox_api_key;
4275
4282
  const tooltip = this.model.tooltip;
4276
4283
  const data = this.getData();
@@ -5368,7 +5375,7 @@
5368
5375
  }
5369
5376
  for (const event_name of this.model.events[node]) {
5370
5377
  const callback = (event) => {
5371
- this.model.trigger_event(new DOMEvent(node, event_to_object_1.serializeEvent(event)));
5378
+ this.model.trigger_event(new DOMEvent(node, (0, event_to_object_1.serializeEvent)(event)));
5372
5379
  };
5373
5380
  el.addEventListener(event_name, callback);
5374
5381
  if (!(node in this._event_listeners))
@@ -5539,9 +5546,9 @@
5539
5546
  const html_box_1 = require("@bokehjs/models/layouts/html_box");
5540
5547
  const layout_1 = require("4c755983eb") /* ./layout */;
5541
5548
  const event_to_object_1 = require("3329d4aa5b") /* ./event-to-object */;
5542
- const LayoutConfigContext = preact_1.createContext({});
5549
+ const LayoutConfigContext = (0, preact_1.createContext)({});
5543
5550
  function mountLayout(mountElement, saveUpdateHook, sendEvent, importSourceUrl) {
5544
- preact_1.render(preact_2.html `
5551
+ (0, preact_1.render)((0, preact_2.html) `
5545
5552
  <${Layout}
5546
5553
  saveUpdateHook=${saveUpdateHook}
5547
5554
  sendEvent=${sendEvent}
@@ -5552,9 +5559,9 @@
5552
5559
  exports.mountLayout = mountLayout;
5553
5560
  function Layout({ saveUpdateHook, sendEvent, importSourceUrl }) {
5554
5561
  const [model, patchModel] = useInplaceJsonPatch({});
5555
- hooks_1.useEffect(() => saveUpdateHook(patchModel), [patchModel]);
5562
+ (0, hooks_1.useEffect)(() => saveUpdateHook(patchModel), [patchModel]);
5556
5563
  if (model.tagName) {
5557
- return preact_2.html `
5564
+ return (0, preact_2.html) `
5558
5565
  <${LayoutConfigContext.Provider}
5559
5566
  value=${{
5560
5567
  sendEvent: sendEvent,
@@ -5566,46 +5573,46 @@
5566
5573
  `;
5567
5574
  }
5568
5575
  else
5569
- return preact_2.html `<div />`;
5576
+ return (0, preact_2.html) `<div />`;
5570
5577
  }
5571
5578
  exports.default = Layout;
5572
5579
  function Element({ model }) {
5573
5580
  if (model.importSource)
5574
- return preact_2.html `<${ImportedElement} model=${model} />`;
5581
+ return (0, preact_2.html) `<${ImportedElement} model=${model} />`;
5575
5582
  else
5576
- return preact_2.html `<${StandardElement} model=${model} />`;
5583
+ return (0, preact_2.html) `<${StandardElement} model=${model} />`;
5577
5584
  }
5578
5585
  function ImportedElement({ model }) {
5579
- const config = hooks_1.useContext(LayoutConfigContext);
5586
+ const config = (0, hooks_1.useContext)(LayoutConfigContext);
5580
5587
  const module = useLazyModule(model.importSource.source, config.importSourceUrl);
5581
5588
  if (module) {
5582
5589
  const cmpt = getPathProperty(module, model.tagName);
5583
5590
  const children = elementChildren(model);
5584
5591
  const attributes = elementAttributes(model, config.sendEvent);
5585
- return preact_2.html `<${cmpt} ...${attributes}>${children}<//>`;
5592
+ return (0, preact_2.html) `<${cmpt} ...${attributes}>${children}<//>`;
5586
5593
  }
5587
5594
  else {
5588
5595
  const fallback = model.importSource.fallback;
5589
5596
  if (!fallback)
5590
- return preact_2.html `<div />`;
5597
+ return (0, preact_2.html) `<div />`;
5591
5598
  switch (typeof fallback) {
5592
5599
  case "object":
5593
- return preact_2.html `<${Element} model=${fallback} />`;
5600
+ return (0, preact_2.html) `<${Element} model=${fallback} />`;
5594
5601
  case "string":
5595
- return preact_2.html `<div>${fallback}</div>`;
5602
+ return (0, preact_2.html) `<div>${fallback}</div>`;
5596
5603
  default:
5597
5604
  return null;
5598
5605
  }
5599
5606
  }
5600
5607
  }
5601
5608
  function StandardElement({ model }) {
5602
- const config = hooks_1.useContext(LayoutConfigContext);
5609
+ const config = (0, hooks_1.useContext)(LayoutConfigContext);
5603
5610
  const children = elementChildren(model);
5604
5611
  const attributes = elementAttributes(model, config.sendEvent);
5605
5612
  if (model.children && model.children.length)
5606
- return preact_2.html `<${model.tagName} ...${attributes}>${children}<//>`;
5613
+ return (0, preact_2.html) `<${model.tagName} ...${attributes}>${children}<//>`;
5607
5614
  else
5608
- return preact_2.html `<${model.tagName} ...${attributes} />`;
5615
+ return (0, preact_2.html) `<${model.tagName} ...${attributes} />`;
5609
5616
  }
5610
5617
  function elementChildren(model) {
5611
5618
  if (!model.children)
@@ -5614,7 +5621,7 @@
5614
5621
  return model.children.map((child) => {
5615
5622
  switch (typeof child) {
5616
5623
  case "object":
5617
- return preact_2.html `<${Element} model=${child} />`;
5624
+ return (0, preact_2.html) `<${Element} model=${child} />`;
5618
5625
  case "string":
5619
5626
  return child;
5620
5627
  default:
@@ -5641,7 +5648,7 @@
5641
5648
  value.preventDefault();
5642
5649
  if (eventSpec["stopPropagation"])
5643
5650
  value.stopPropagation();
5644
- return event_to_object_1.serializeEvent(value);
5651
+ return (0, event_to_object_1.serializeEvent)(value);
5645
5652
  }
5646
5653
  else
5647
5654
  return value;
@@ -5657,7 +5664,7 @@
5657
5664
  };
5658
5665
  }
5659
5666
  function useLazyModule(source, sourceUrlBase = "") {
5660
- const [module, setModule] = hooks_1.useState(null);
5667
+ const [module, setModule] = (0, hooks_1.useState)(null);
5661
5668
  // use eval() to avoid weird build behavior by bundlers like Webpack
5662
5669
  if (!module)
5663
5670
  eval(`import('${joinUrl(sourceUrlBase, source)}')`).then(setModule);
@@ -5673,9 +5680,9 @@
5673
5680
  return value;
5674
5681
  }
5675
5682
  function useInplaceJsonPatch(doc) {
5676
- const ref = hooks_1.useRef(doc);
5683
+ const ref = (0, hooks_1.useRef)(doc);
5677
5684
  const forceUpdate = useForceUpdate();
5678
- const applyPatch = hooks_1.useCallback((path, patch) => {
5685
+ const applyPatch = (0, hooks_1.useCallback)((path, patch) => {
5679
5686
  applyPatchInplace(ref.current, path, patch);
5680
5687
  forceUpdate();
5681
5688
  }, [ref, forceUpdate]);
@@ -5683,20 +5690,20 @@
5683
5690
  }
5684
5691
  function applyPatchInplace(doc, path, patch) {
5685
5692
  if (!path)
5686
- fast_json_patch_1.applyPatch(doc, patch);
5693
+ (0, fast_json_patch_1.applyPatch)(doc, patch);
5687
5694
  else {
5688
- fast_json_patch_1.applyPatch(doc, [
5695
+ (0, fast_json_patch_1.applyPatch)(doc, [
5689
5696
  {
5690
5697
  op: "replace",
5691
5698
  path: path,
5692
- value: fast_json_patch_1.applyPatch(fast_json_patch_1.getValueByPointer(doc, path), patch, false, false).newDocument,
5699
+ value: (0, fast_json_patch_1.applyPatch)((0, fast_json_patch_1.getValueByPointer)(doc, path), patch, false, false).newDocument,
5693
5700
  },
5694
5701
  ]);
5695
5702
  }
5696
5703
  }
5697
5704
  function useForceUpdate() {
5698
- const [, updateState] = hooks_1.useState({});
5699
- return hooks_1.useCallback(() => updateState({}), []);
5705
+ const [, updateState] = (0, hooks_1.useState)({});
5706
+ return (0, hooks_1.useCallback)(() => updateState({}), []);
5700
5707
  }
5701
5708
  function joinUrl(base, tail) {
5702
5709
  return tail.startsWith("./")
@@ -5715,7 +5722,7 @@
5715
5722
  this.update_layout();
5716
5723
  this.compute_layout();
5717
5724
  this.invalidate_layout();
5718
- layout_1.set_size(this.el, this.model);
5725
+ (0, layout_1.set_size)(this.el, this.model);
5719
5726
  }
5720
5727
  initialize() {
5721
5728
  super.initialize();
@@ -6107,7 +6114,7 @@
6107
6114
  __esExport("h", preact_2.h);
6108
6115
  __esExport("render", preact_2.render);
6109
6116
  __esExport("Component", preact_2.Component);
6110
- const htm_1 = tslib_1.__importDefault(require("ab33dd3f38") /* htm */);
6117
+ const htm_1 = (0, tslib_1.__importDefault)(require("ab33dd3f38") /* htm */);
6111
6118
  var m = htm_1.default.bind(preact_1.h);
6112
6119
  exports.html = m;
6113
6120
  },
@@ -7079,7 +7086,7 @@
7079
7086
  const tslib_1 = require("tslib");
7080
7087
  const kinds_1 = require("@bokehjs/core/kinds");
7081
7088
  const markup_1 = require("@bokehjs/models/widgets/markup");
7082
- const json_formatter_js_1 = tslib_1.__importDefault(require("18bba7b7e1") /* json-formatter-js */);
7089
+ const json_formatter_js_1 = (0, tslib_1.__importDefault)(require("18bba7b7e1") /* json-formatter-js */);
7083
7090
  const layout_1 = require("4c755983eb") /* ./layout */;
7084
7091
  class JSONView extends layout_1.PanelMarkupView {
7085
7092
  connect_signals() {
@@ -7112,7 +7119,7 @@
7112
7119
  }
7113
7120
  exports.JSONView = JSONView;
7114
7121
  JSONView.__name__ = "JSONView";
7115
- exports.JSONTheme = kinds_1.Enum("dark", "light");
7122
+ exports.JSONTheme = (0, kinds_1.Enum)("dark", "light");
7116
7123
  class JSON extends markup_1.Markup {
7117
7124
  constructor(attrs) {
7118
7125
  super(attrs);
@@ -7219,7 +7226,7 @@
7219
7226
  __esModule();
7220
7227
  const tslib_1 = require("tslib");
7221
7228
  const input_widget_1 = require("@bokehjs/models/widgets/input_widget");
7222
- const buttons_css_1 = tslib_1.__importStar(require("@bokehjs/styles/buttons.css")), buttons = buttons_css_1;
7229
+ const buttons_css_1 = (0, tslib_1.__importStar)(require("@bokehjs/styles/buttons.css")), buttons = buttons_css_1;
7223
7230
  const dom_1 = require("@bokehjs/core/dom");
7224
7231
  const enums_1 = require("@bokehjs/core/enums");
7225
7232
  function dataURItoBlob(dataURI) {
@@ -7309,7 +7316,7 @@
7309
7316
  // "Uncaught TypeError: t is undefined"
7310
7317
  // This seems to be related to button do not have a value
7311
7318
  // property.
7312
- this.input_el = dom_1.input({
7319
+ this.input_el = (0, dom_1.input)({
7313
7320
  type: "bk_btn, bk_btn_type",
7314
7321
  });
7315
7322
  this.input_el.addEventListener("change", () => this.change_input());
@@ -7646,16 +7653,16 @@
7646
7653
  this.worker = window.perspective.worker();
7647
7654
  this.table = this.worker.table(this.model.schema);
7648
7655
  this.table.update(this.data);
7649
- const container = dom_1.div({
7656
+ const container = (0, dom_1.div)({
7650
7657
  class: "pnx-perspective-viewer",
7651
7658
  style: {
7652
7659
  zIndex: 0,
7653
7660
  }
7654
7661
  });
7655
- layout_1.set_size(container, this.model);
7662
+ (0, layout_1.set_size)(container, this.model);
7656
7663
  container.innerHTML = this.getInnerHTML();
7657
7664
  this.perspective_element = container.children[0];
7658
- layout_1.set_size(this.perspective_element, this.model);
7665
+ (0, layout_1.set_size)(this.perspective_element, this.model);
7659
7666
  this.el.appendChild(container);
7660
7667
  this.perspective_element.load(this.table).then(() => {
7661
7668
  this.update_config();
@@ -7858,7 +7865,7 @@
7858
7865
  return;
7859
7866
  }
7860
7867
  // Layout to group the elements
7861
- this.groupEl = dom_1.div();
7868
+ this.groupEl = (0, dom_1.div)();
7862
7869
  this.groupEl.style.display = "flex";
7863
7870
  this.groupEl.style.flexDirection = "column";
7864
7871
  this.groupEl.style.alignItems = "center";
@@ -7871,7 +7878,7 @@
7871
7878
  this.sliderEl.max = String(this.model.end);
7872
7879
  this.sliderEl.onchange = (ev) => this.set_frame(parseInt(ev.target.value));
7873
7880
  // Buttons
7874
- const button_div = dom_1.div();
7881
+ const button_div = (0, dom_1.div)();
7875
7882
  this.buttonEl = button_div;
7876
7883
  button_div.style.cssText = "margin: 0 auto; display: flex; padding: 5px; align-items: stretch; width: 100%;";
7877
7884
  const button_style_small = "text-align: center; min-width: 20px; flex-grow: 1; margin: 2px";
@@ -8090,7 +8097,7 @@
8090
8097
  }
8091
8098
  exports.PlayerView = PlayerView;
8092
8099
  PlayerView.__name__ = "PlayerView";
8093
- exports.LoopPolicy = kinds_1.Enum("once", "loop", "reflect");
8100
+ exports.LoopPolicy = (0, kinds_1.Enum)("once", "loop", "reflect");
8094
8101
  class Player extends widget_1.Widget {
8095
8102
  constructor(attrs) {
8096
8103
  super(attrs);
@@ -8115,7 +8122,7 @@
8115
8122
  Player.__module__ = "panel.models.widgets";
8116
8123
  Player.init_Player();
8117
8124
  },
8118
- "c23bb1717d": /* models/plotly.js */ function _(require, module, exports, __esModule, __esExport) {
8125
+ "50ac0b0178": /* models/plotly.js */ function _(require, module, exports, __esModule, __esExport) {
8119
8126
  __esModule();
8120
8127
  const dom_1 = require("@bokehjs/core/dom");
8121
8128
  const object_1 = require("@bokehjs/core/util/object");
@@ -8148,7 +8155,7 @@
8148
8155
  for (let property in fullPoint) {
8149
8156
  const val = fullPoint[property];
8150
8157
  if (fullPoint.hasOwnProperty(property) &&
8151
- !Array.isArray(val) && !util_1.isPlainObject(val)) {
8158
+ !Array.isArray(val) && !(0, util_1.isPlainObject)(val)) {
8152
8159
  pointData[property] = val;
8153
8160
  }
8154
8161
  }
@@ -8200,7 +8207,7 @@
8200
8207
  this._plotInitialized = false;
8201
8208
  this._reacting = false;
8202
8209
  this._relayouting = false;
8203
- this._end_relayouting = debounce_1.debounce(() => {
8210
+ this._end_relayouting = (0, debounce_1.debounce)(() => {
8204
8211
  this._relayouting = false;
8205
8212
  }, 2000, false);
8206
8213
  }
@@ -8237,7 +8244,7 @@
8237
8244
  }
8238
8245
  render() {
8239
8246
  super.render();
8240
- this._layout_wrapper = dom_1.div({ style: "height: 100%; width: 100%" });
8247
+ this._layout_wrapper = (0, dom_1.div)({ style: "height: 100%; width: 100%" });
8241
8248
  this.el.appendChild(this._layout_wrapper);
8242
8249
  if (!window.Plotly) {
8243
8250
  return;
@@ -8252,7 +8259,7 @@
8252
8259
  return data;
8253
8260
  }
8254
8261
  _layout_data() {
8255
- const newLayout = util_1.deepCopy(this.model.layout);
8262
+ const newLayout = (0, util_1.deepCopy)(this.model.layout);
8256
8263
  if (this._relayouting) {
8257
8264
  const { layout } = this._layout_wrapper;
8258
8265
  // For each xaxis* and yaxis* property of layout, if the value has a 'range'
@@ -8331,8 +8338,14 @@
8331
8338
  window.Plotly.Plots.resize(this._layout_wrapper);
8332
8339
  });
8333
8340
  }
8341
+ after_layout() {
8342
+ super.after_layout();
8343
+ if (window.Plotly) {
8344
+ window.Plotly.Plots.resize(this._layout_wrapper);
8345
+ }
8346
+ }
8334
8347
  _get_trace(index, update) {
8335
- const trace = object_1.clone(this.model.data[index]);
8348
+ const trace = (0, object_1.clone)(this.model.data[index]);
8336
8349
  const cds = this.model.data_sources[index];
8337
8350
  for (const column of cds.columns()) {
8338
8351
  let array = cds.get_array(column)[0];
@@ -8366,8 +8379,8 @@
8366
8379
  const fullLayout = this._layout_wrapper._fullLayout;
8367
8380
  // Call relayout if viewport differs from fullLayout
8368
8381
  Object.keys(this.model.viewport).reduce((value, key) => {
8369
- if (!eq_1.isEqual(util_1.get(fullLayout, key), value)) {
8370
- let clonedViewport = util_1.deepCopy(this.model.viewport);
8382
+ if (!(0, eq_1.isEqual)((0, util_1.get)(fullLayout, key), value)) {
8383
+ let clonedViewport = (0, util_1.deepCopy)(this.model.viewport);
8371
8384
  clonedViewport['_update_from_property'] = true;
8372
8385
  window.Plotly.relayout(this.el, clonedViewport);
8373
8386
  return false;
@@ -8387,10 +8400,10 @@
8387
8400
  }
8388
8401
  let maybe_axis = prop.slice(0, 5);
8389
8402
  if (maybe_axis === 'xaxis' || maybe_axis === 'yaxis') {
8390
- viewport[prop + '.range'] = util_1.deepCopy(fullLayout[prop].range);
8403
+ viewport[prop + '.range'] = (0, util_1.deepCopy)(fullLayout[prop].range);
8391
8404
  }
8392
8405
  }
8393
- if (!eq_1.isEqual(viewport, this.model.viewport)) {
8406
+ if (!(0, eq_1.isEqual)(viewport, this.model.viewport)) {
8394
8407
  this._setViewport(viewport);
8395
8408
  }
8396
8409
  }
@@ -8406,7 +8419,7 @@
8406
8419
  };
8407
8420
  }
8408
8421
  else {
8409
- this._setViewport = util_1.throttle((viewport) => {
8422
+ this._setViewport = (0, util_1.throttle)((viewport) => {
8410
8423
  if (!this._settingViewport) {
8411
8424
  this._settingViewport = true;
8412
8425
  this.model.viewport = viewport;
@@ -8572,7 +8585,7 @@
8572
8585
  "9f787650b9": /* models/progress.js */ function _(require, module, exports, __esModule, __esExport) {
8573
8586
  __esModule();
8574
8587
  const tslib_1 = require("tslib");
8575
- const p = tslib_1.__importStar(require("@bokehjs/core/properties"));
8588
+ const p = (0, tslib_1.__importStar)(require("@bokehjs/core/properties"));
8576
8589
  const html_box_1 = require("@bokehjs/models/layouts/html_box");
8577
8590
  const layout_1 = require("4c755983eb") /* ./layout */;
8578
8591
  class ProgressView extends html_box_1.HTMLBoxView {
@@ -8599,7 +8612,7 @@
8599
8612
  this.progressEl = document.createElement('progress');
8600
8613
  this.setValue();
8601
8614
  this.setMax();
8602
- layout_1.set_size(this.progressEl, this.model);
8615
+ (0, layout_1.set_size)(this.progressEl, this.model);
8603
8616
  // Set styling
8604
8617
  this.setCSS();
8605
8618
  for (const prop in style)
@@ -8650,7 +8663,7 @@
8650
8663
  Progress.__module__ = "panel.models.widgets";
8651
8664
  Progress.init_Progress();
8652
8665
  },
8653
- "d536149aaa": /* models/reactive_html.js */ function _(require, module, exports, __esModule, __esExport) {
8666
+ "11283de978": /* models/reactive_html.js */ function _(require, module, exports, __esModule, __esExport) {
8654
8667
  __esModule();
8655
8668
  const preact_1 = require("6f11f2ef27") /* preact */;
8656
8669
  const hooks_1 = require("4c02a9b43f") /* preact/hooks */;
@@ -8730,7 +8743,7 @@
8730
8743
  }
8731
8744
  initialize() {
8732
8745
  super.initialize();
8733
- this.html = html_1.htmlDecode(this.model.html) || this.model.html;
8746
+ this.html = (0, html_1.htmlDecode)(this.model.html) || this.model.html;
8734
8747
  }
8735
8748
  _recursive_connect(model, update_children, path) {
8736
8749
  for (const prop in model.properties) {
@@ -8747,7 +8760,7 @@
8747
8760
  for (const node in this.model.children) {
8748
8761
  if (this.model.children[node] == prop) {
8749
8762
  let children = model[prop];
8750
- if (!types_1.isArray(children))
8763
+ if (!(0, types_1.isArray)(children))
8751
8764
  children = [children];
8752
8765
  this._render_node(node, children);
8753
8766
  this.invalidate_layout();
@@ -8765,7 +8778,7 @@
8765
8778
  connect_signals() {
8766
8779
  super.connect_signals();
8767
8780
  this.connect(this.model.properties.children.change, async () => {
8768
- this.html = html_1.htmlDecode(this.model.html) || this.model.html;
8781
+ this.html = (0, html_1.htmlDecode)(this.model.html) || this.model.html;
8769
8782
  await this.rebuild();
8770
8783
  this.invalidate_layout();
8771
8784
  });
@@ -8792,7 +8805,7 @@
8792
8805
  attr = prop;
8793
8806
  }
8794
8807
  for (const script of scripts) {
8795
- const decoded_script = html_1.htmlDecode(script) || script;
8808
+ const decoded_script = (0, html_1.htmlDecode)(script) || script;
8796
8809
  const script_fn = this._render_script(decoded_script, id);
8797
8810
  this._script_fns[prop] = script_fn;
8798
8811
  const property = data_model.properties[attr];
@@ -8820,7 +8833,7 @@
8820
8833
  return script_fn(this.model, this.model.data, this._state, this, (s) => this.run_script(s), this_obj);
8821
8834
  }
8822
8835
  get_records(property, index = true) {
8823
- return data_1.dict_to_records(this.model.data[property], index);
8836
+ return (0, data_1.dict_to_records)(this.model.data[property], index);
8824
8837
  }
8825
8838
  disconnect_signals() {
8826
8839
  super.disconnect_signals();
@@ -8838,7 +8851,7 @@
8838
8851
  return models;
8839
8852
  }
8840
8853
  async build_child_views() {
8841
- await build_views_1.build_views(this._child_views, this.child_models, { parent: null });
8854
+ await (0, build_views_1.build_views)(this._child_views, this.child_models, { parent: null });
8842
8855
  }
8843
8856
  compute_layout() {
8844
8857
  if (this.root != this)
@@ -8868,7 +8881,7 @@
8868
8881
  _align_view(view) {
8869
8882
  const { align } = view.model;
8870
8883
  let halign, valign;
8871
- if (types_1.isArray(align))
8884
+ if ((0, types_1.isArray)(align))
8872
8885
  [halign, valign] = align;
8873
8886
  else
8874
8887
  halign = valign = align;
@@ -8886,10 +8899,10 @@
8886
8899
  view.el.style.marginTop = 'auto';
8887
8900
  }
8888
8901
  render() {
8889
- dom_1.empty(this.el);
8902
+ (0, dom_1.empty)(this.el);
8890
8903
  const { background } = this.model;
8891
- this.el.style.backgroundColor = background != null ? color_1.color2css(background) : "";
8892
- dom_1.classes(this.el).clear().add(...this.css_classes());
8904
+ this.el.style.backgroundColor = background != null ? (0, color_1.color2css)(background) : "";
8905
+ (0, dom_1.classes)(this.el).clear().add(...this.css_classes());
8893
8906
  this._update();
8894
8907
  this._render_children();
8895
8908
  this._setup_mutation_observers();
@@ -8897,14 +8910,14 @@
8897
8910
  this.run_script('render', true);
8898
8911
  }
8899
8912
  _send_event(elname, attr, event) {
8900
- let serialized = event_to_object_1.serializeEvent(event);
8913
+ let serialized = (0, event_to_object_1.serializeEvent)(event);
8901
8914
  serialized.type = attr;
8902
8915
  this.model.trigger_event(new html_1.DOMEvent(elname, serialized));
8903
8916
  }
8904
8917
  _render_child(model, el) {
8905
8918
  const view = this._child_views.get(model);
8906
8919
  if (view == null)
8907
- el.innerHTML = model;
8920
+ el.innerHTML = (0, html_1.htmlDecode)(model) || model;
8908
8921
  else {
8909
8922
  view._parent = this;
8910
8923
  view.renderTo(el);
@@ -8928,13 +8941,13 @@
8928
8941
  return;
8929
8942
  }
8930
8943
  this.el.style.display = this.model.visible ? "block" : "none";
8931
- layout_1.set_size(this.el, this.model);
8944
+ (0, layout_1.set_size)(this.el, this.model);
8932
8945
  let { margin } = this.model;
8933
8946
  let margin_spec = null;
8934
8947
  if (margin == null)
8935
8948
  this.el.style.margin = "";
8936
8949
  else {
8937
- if (types_1.isNumber(margin))
8950
+ if ((0, types_1.isNumber)(margin))
8938
8951
  margin_spec = { top: margin, right: margin, bottom: margin, left: margin };
8939
8952
  else if (margin.length == 2) {
8940
8953
  const [vertical, horizontal] = margin;
@@ -8977,7 +8990,7 @@
8977
8990
  let children = this.model.children[node];
8978
8991
  if (typeof children == "string") {
8979
8992
  children = this.model.data[children];
8980
- if (!types_1.isArray(children))
8993
+ if (!(0, types_1.isArray)(children))
8981
8994
  children = [children];
8982
8995
  }
8983
8996
  this._render_node(node, children);
@@ -9113,7 +9126,7 @@
9113
9126
  const rendered = this._render_html(this.html);
9114
9127
  try {
9115
9128
  this._changing = true;
9116
- preact_1.render(rendered, this.el);
9129
+ (0, preact_1.render)(rendered, this.el);
9117
9130
  }
9118
9131
  finally {
9119
9132
  this._changing = false;
@@ -9181,13 +9194,13 @@
9181
9194
  ReactiveHTML.__module__ = "panel.models.reactive_html";
9182
9195
  ReactiveHTML.init_ReactiveHTML();
9183
9196
  },
9184
- "3b85956787": /* models/singleselect.js */ function _(require, module, exports, __esModule, __esExport) {
9197
+ "5ed2116e26": /* models/singleselect.js */ function _(require, module, exports, __esModule, __esExport) {
9185
9198
  __esModule();
9186
9199
  const tslib_1 = require("tslib");
9187
9200
  const dom_1 = require("@bokehjs/core/dom");
9188
9201
  const types_1 = require("@bokehjs/core/util/types");
9189
9202
  const input_widget_1 = require("@bokehjs/models/widgets/input_widget");
9190
- const inputs = tslib_1.__importStar(require("@bokehjs/styles/widgets/inputs.css"));
9203
+ const inputs = (0, tslib_1.__importStar)(require("@bokehjs/styles/widgets/inputs.css"));
9191
9204
  class SingleSelectView extends input_widget_1.InputWidgetView {
9192
9205
  connect_signals() {
9193
9206
  super.connect_signals();
@@ -9202,13 +9215,13 @@
9202
9215
  super.render();
9203
9216
  const options = this.model.options.map((opt) => {
9204
9217
  let value, _label;
9205
- if (types_1.isString(opt))
9218
+ if ((0, types_1.isString)(opt))
9206
9219
  value = _label = opt;
9207
9220
  else
9208
9221
  [value, _label] = opt;
9209
- return dom_1.option({ value }, _label);
9222
+ return (0, dom_1.option)({ value }, _label);
9210
9223
  });
9211
- this.select_el = dom_1.select({
9224
+ this.select_el = (0, dom_1.select)({
9212
9225
  multiple: false,
9213
9226
  class: inputs.input,
9214
9227
  name: this.model.name,
@@ -9258,7 +9271,7 @@
9258
9271
  this.define(({ Any, Array, Int, String }) => ({
9259
9272
  value: [String, ""],
9260
9273
  options: [Array(Any), []],
9261
- size: [Int, 4],
9274
+ size: [Int, 4], // 4 is the HTML default
9262
9275
  }));
9263
9276
  }
9264
9277
  }
@@ -9270,7 +9283,7 @@
9270
9283
  "aaa48703af": /* models/speech_to_text.js */ function _(require, module, exports, __esModule, __esExport) {
9271
9284
  __esModule();
9272
9285
  const tslib_1 = require("tslib");
9273
- const p = tslib_1.__importStar(require("@bokehjs/core/properties"));
9286
+ const p = (0, tslib_1.__importStar)(require("@bokehjs/core/properties"));
9274
9287
  const html_box_1 = require("@bokehjs/models/layouts/html_box");
9275
9288
  const iconStarted = `<svg xmlns="http://www.w3.org/2000/svg" height="22px" style="vertical-align: middle;" fill="currentColor" class="bi bi-mic" viewBox="0 0 16 16">
9276
9289
  <path fill-rule="evenodd" d="M3.5 6.5A.5.5 0 0 1 4 7v1a4 4 0 0 0 8 0V7a.5.5 0 0 1 1 0v1a5 5 0 0 1-4.5 4.975V15h3a.5.5 0 0 1 0 1h-7a.5.5 0 0 1 0-1h3v-2.025A5 5 0 0 1 3 8V7a.5.5 0 0 1 .5-.5z"/>
@@ -9503,7 +9516,7 @@
9503
9516
  this.apply_state(this._cache[current]);
9504
9517
  }
9505
9518
  set_state(widget, value) {
9506
- let values = array_1.copy(this.values);
9519
+ let values = (0, array_1.copy)(this.values);
9507
9520
  const index = this.widgets[widget.id];
9508
9521
  values[index] = value;
9509
9522
  let state = this.state;
@@ -9551,8 +9564,8 @@
9551
9564
  }
9552
9565
  render() {
9553
9566
  super.render();
9554
- this.container = dom_1.div({ class: "terminal-container" });
9555
- layout_1.set_size(this.container, this.model);
9567
+ this.container = (0, dom_1.div)({ class: "terminal-container" });
9568
+ (0, layout_1.set_size)(this.container, this.model);
9556
9569
  this.term = this.getNewTerminal();
9557
9570
  this.term.onData((value) => {
9558
9571
  this.handleOnData(value);
@@ -9777,7 +9790,7 @@
9777
9790
  TextToSpeech.__module__ = "panel.models.text_to_speech";
9778
9791
  TextToSpeech.init_TextToSpeech();
9779
9792
  },
9780
- "ded3463d6c": /* models/trend.js */ function _(require, module, exports, __esModule, __esExport) {
9793
+ "effe070807": /* models/trend.js */ function _(require, module, exports, __esModule, __esExport) {
9781
9794
  __esModule();
9782
9795
  const html_box_1 = require("@bokehjs/models/layouts/html_box");
9783
9796
  const build_views_1 = require("@bokehjs/core/build_views");
@@ -9792,19 +9805,19 @@
9792
9805
  class TrendIndicatorView extends html_box_1.HTMLBoxView {
9793
9806
  initialize() {
9794
9807
  super.initialize();
9795
- this.containerDiv = dom_1.div({ style: "height:100%; width:100%;" });
9796
- this.titleDiv = dom_1.div({ style: "font-size: 1em; word-wrap: break-word;" });
9797
- this.valueDiv = dom_1.div({ style: "font-size: 2em" });
9798
- this.value2Div = dom_1.div({ style: "font-size: 1em; opacity: 0.5; display: inline" });
9799
- this.changeDiv = dom_1.div({ style: "font-size: 1em; opacity: 0.5; display: inline" });
9800
- this.textDiv = dom_1.div({}, this.titleDiv, this.valueDiv, dom_1.div({}, this.changeDiv, this.value2Div));
9808
+ this.containerDiv = (0, dom_1.div)({ style: "height:100%; width:100%;" });
9809
+ this.titleDiv = (0, dom_1.div)({ style: "font-size: 1em; word-wrap: break-word;" });
9810
+ this.valueDiv = (0, dom_1.div)({ style: "font-size: 2em" });
9811
+ this.value2Div = (0, dom_1.div)({ style: "font-size: 1em; opacity: 0.5; display: inline" });
9812
+ this.changeDiv = (0, dom_1.div)({ style: "font-size: 1em; opacity: 0.5; display: inline" });
9813
+ this.textDiv = (0, dom_1.div)({}, this.titleDiv, this.valueDiv, (0, dom_1.div)({}, this.changeDiv, this.value2Div));
9801
9814
  this.updateTitle();
9802
9815
  this.updateValue();
9803
9816
  this.updateValue2();
9804
9817
  this.updateValueChange();
9805
9818
  this.updateTextFontSize();
9806
- this.plotDiv = dom_1.div({});
9807
- this.containerDiv = dom_1.div({ style: "height:100%; width:100%" }, this.textDiv, this.plotDiv);
9819
+ this.plotDiv = (0, dom_1.div)({});
9820
+ this.containerDiv = (0, dom_1.div)({ style: "height:100%; width:100%" }, this.textDiv, this.plotDiv);
9808
9821
  this.updateLayout();
9809
9822
  }
9810
9823
  connect_signals() {
@@ -9878,7 +9891,7 @@
9878
9891
  });
9879
9892
  this.plot.add_glyph(vbar, source);
9880
9893
  }
9881
- const view = await build_views_1.build_view(this.plot);
9894
+ const view = await (0, build_views_1.build_view)(this.plot);
9882
9895
  this.plotDiv.innerHTML = "";
9883
9896
  view.renderTo(this.plotDiv);
9884
9897
  }
@@ -9956,7 +9969,8 @@
9956
9969
  this.textDiv.style.flex = "1";
9957
9970
  this.plotDiv.style.flex = "1";
9958
9971
  }
9959
- this.invalidate_layout();
9972
+ if (this._has_finished)
9973
+ this.invalidate_layout();
9960
9974
  }
9961
9975
  }
9962
9976
  exports.TrendIndicatorView = TrendIndicatorView;
@@ -10043,7 +10057,7 @@
10043
10057
  delete datasets['data'];
10044
10058
  }
10045
10059
  if (data.data != null) {
10046
- const data_objs = types_1.isArray(data.data) ? data.data : [data.data];
10060
+ const data_objs = (0, types_1.isArray)(data.data) ? data.data : [data.data];
10047
10061
  for (const d of data_objs) {
10048
10062
  if (d.name in datasets) {
10049
10063
  d['values'] = datasets[d.name];
@@ -10407,7 +10421,7 @@
10407
10421
  bottom: "0px",
10408
10422
  position: "absolute",
10409
10423
  };
10410
- const textPositions = kinds_1.Enum("LowerLeft", "LowerRight", "UpperLeft", "UpperRight", "LowerEdge", "RightEdge", "LeftEdge", "UpperEdge");
10424
+ const textPositions = (0, kinds_1.Enum)("LowerLeft", "LowerRight", "UpperLeft", "UpperRight", "LowerEdge", "RightEdge", "LeftEdge", "UpperEdge");
10411
10425
  class AbstractVTKView extends layout_1.PanelHTMLBoxView {
10412
10426
  initialize() {
10413
10427
  super.initialize();
@@ -10426,8 +10440,8 @@
10426
10440
  const expand_width = "350px";
10427
10441
  const collapsed_width = "30px";
10428
10442
  info_div.classList.add('vtk_info');
10429
- util_1.applyStyle(info_div, INFO_DIV_STYLE);
10430
- util_1.applyStyle(info_div, { width: expand_width });
10443
+ (0, util_1.applyStyle)(info_div, INFO_DIV_STYLE);
10444
+ (0, util_1.applyStyle)(info_div, { width: expand_width });
10431
10445
  this.el.appendChild(info_div);
10432
10446
  //construct colorbars
10433
10447
  const colorbars = [];
@@ -10437,17 +10451,17 @@
10437
10451
  });
10438
10452
  //content when collapsed
10439
10453
  const dots = document.createElement('div');
10440
- util_1.applyStyle(dots, { textAlign: "center", fontSize: "20px" });
10454
+ (0, util_1.applyStyle)(dots, { textAlign: "center", fontSize: "20px" });
10441
10455
  dots.innerText = "...";
10442
10456
  info_div.addEventListener('click', () => {
10443
10457
  if (info_div.style.width === collapsed_width) {
10444
10458
  info_div.removeChild(dots);
10445
- util_1.applyStyle(info_div, { height: "auto", width: expand_width });
10459
+ (0, util_1.applyStyle)(info_div, { height: "auto", width: expand_width });
10446
10460
  colorbars.forEach((cb) => info_div.appendChild(cb.canvas));
10447
10461
  }
10448
10462
  else {
10449
10463
  colorbars.forEach((cb) => info_div.removeChild(cb.canvas));
10450
- util_1.applyStyle(info_div, { height: collapsed_width, width: collapsed_width });
10464
+ (0, util_1.applyStyle)(info_div, { height: collapsed_width, width: collapsed_width });
10451
10465
  info_div.appendChild(dots);
10452
10466
  }
10453
10467
  });
@@ -10552,10 +10566,10 @@
10552
10566
  if (!this._vtk_renwin || !this._vtk_container) {
10553
10567
  this._orientationWidget = null;
10554
10568
  this._axes = null;
10555
- this._vtk_container = dom_1.div();
10569
+ this._vtk_container = (0, dom_1.div)();
10556
10570
  this.init_vtk_renwin();
10557
10571
  this._init_annotations_container();
10558
- layout_1.set_size(this._vtk_container, this.model);
10572
+ (0, layout_1.set_size)(this._vtk_container, this.model);
10559
10573
  this.el.appendChild(this._vtk_container);
10560
10574
  // update camera model state only at the end of the interaction
10561
10575
  // with the scene (avoid bouncing events and large amount of events)
@@ -10568,7 +10582,7 @@
10568
10582
  this.model.renderer_el = this._vtk_renwin;
10569
10583
  }
10570
10584
  else {
10571
- layout_1.set_size(this._vtk_container, this.model);
10585
+ (0, layout_1.set_size)(this._vtk_container, this.model);
10572
10586
  // warning if _vtk_renwin contain controllers or other elements
10573
10587
  // we must attach them to the new el
10574
10588
  this.el.appendChild(this._vtk_container);
@@ -10601,7 +10615,7 @@
10601
10615
  const vtk_camera = this._vtk_renwin.getRenderer().getActiveCamera();
10602
10616
  let state;
10603
10617
  if (vtk_camera) {
10604
- state = object_1.clone(vtk_camera.get());
10618
+ state = (0, object_1.clone)(vtk_camera.get());
10605
10619
  delete state.classHierarchy;
10606
10620
  delete state.vtkObject;
10607
10621
  delete state.vtkCamera;
@@ -10615,7 +10629,7 @@
10615
10629
  get _axes_canvas() {
10616
10630
  let axes_canvas = this._vtk_container.querySelector(".axes-canvas");
10617
10631
  if (!axes_canvas) {
10618
- axes_canvas = dom_1.canvas({
10632
+ axes_canvas = (0, dom_1.canvas)({
10619
10633
  style: {
10620
10634
  position: "absolute",
10621
10635
  top: "0",
@@ -10702,11 +10716,11 @@
10702
10716
  Math.pow(position[2] - focalPoint[2], 2));
10703
10717
  camera.setPosition(focalPoint[0] + direction[0] * distance, focalPoint[1] + direction[1] * distance, focalPoint[2] + direction[2] * distance);
10704
10718
  if (direction[0])
10705
- camera.setViewUp(util_1.majorAxis(viewUp, 1, 2));
10719
+ camera.setViewUp((0, util_1.majorAxis)(viewUp, 1, 2));
10706
10720
  if (direction[1])
10707
- camera.setViewUp(util_1.majorAxis(viewUp, 0, 2));
10721
+ camera.setViewUp((0, util_1.majorAxis)(viewUp, 0, 2));
10708
10722
  if (direction[2])
10709
- camera.setViewUp(util_1.majorAxis(viewUp, 0, 1));
10723
+ camera.setViewUp((0, util_1.majorAxis)(viewUp, 0, 1));
10710
10724
  this._vtk_renwin.getRenderer().resetCameraClippingRange();
10711
10725
  this._vtk_render();
10712
10726
  this._get_camera_state();
@@ -10891,7 +10905,7 @@
10891
10905
  vtkObjectManager.setTypeMapping("vtkFollower", exports.vtkns.Follower.newInstance, vtkObjectManager.genericUpdater);
10892
10906
  vtkObjectManager.setTypeMapping("vtkOpenGLGlyph3DMapper", exports.vtkns.Glyph3DMapper.newInstance, vtkObjectManager.genericUpdater);
10893
10907
  }
10894
- exports.Interpolation = kinds_1.Enum("fast_linear", "linear", "nearest");
10908
+ exports.Interpolation = (0, kinds_1.Enum)("fast_linear", "linear", "nearest");
10895
10909
  function applyStyle(el, style) {
10896
10910
  Object.keys(style).forEach((key) => {
10897
10911
  el.style[key] = style[key];
@@ -10922,7 +10936,7 @@
10922
10936
  const x = nodes.map((a) => a.x);
10923
10937
  const low = Math.min(...x);
10924
10938
  const high = Math.max(...x);
10925
- const vals = array_1.linspace(low, high, 255);
10939
+ const vals = (0, array_1.linspace)(low, high, 255);
10926
10940
  const rgb = [0, 0, 0];
10927
10941
  const palette = vals.map((val) => {
10928
10942
  vtk_lut.getColor(val, rgb);
@@ -10997,7 +11011,7 @@
10997
11011
  }
10998
11012
  get values() {
10999
11013
  const { min, max } = this.mapper.metrics;
11000
- return array_1.linspace(min, max, this.options.ticksNum);
11014
+ return (0, array_1.linspace)(min, max, this.options.ticksNum);
11001
11015
  }
11002
11016
  get ticks() {
11003
11017
  return this.values.map((v) => v.toExponential(3));
@@ -11031,7 +11045,7 @@
11031
11045
  const image_ctx = image.getContext("2d");
11032
11046
  const image_data = image_ctx.getImageData(0, 0, w, h);
11033
11047
  const cmap = new mappers_1.LinearColorMapper({ palette }).rgba_mapper;
11034
- const buf8 = cmap.v_compute(array_1.range(0, palette.length));
11048
+ const buf8 = cmap.v_compute((0, array_1.range)(0, palette.length));
11035
11049
  image_data.data.set(buf8);
11036
11050
  image_ctx.putImageData(image_data, 0, 0);
11037
11051
  this.ctx.drawImage(image, 0, 2 * (this.font_height + 1) + 1, this.canvas.width, this.canvas.height);
@@ -11043,7 +11057,7 @@
11043
11057
  this.ctx.restore();
11044
11058
  this.ctx.save();
11045
11059
  //ticks
11046
- const tick_x_positions = array_1.linspace(0, this.canvas.width, 5);
11060
+ const tick_x_positions = (0, array_1.linspace)(0, this.canvas.width, 5);
11047
11061
  tick_x_positions.forEach((xpos, idx) => {
11048
11062
  let xpos_tick = xpos;
11049
11063
  if (idx == 0) {
@@ -11071,7 +11085,7 @@
11071
11085
  "db7a0079c0": /* models/vtk/vtkaxes.js */ function _(require, module, exports, __esModule, __esExport) {
11072
11086
  __esModule();
11073
11087
  const tslib_1 = require("tslib");
11074
- const p = tslib_1.__importStar(require("@bokehjs/core/properties"));
11088
+ const p = (0, tslib_1.__importStar)(require("@bokehjs/core/properties"));
11075
11089
  const model_1 = require("@bokehjs/model");
11076
11090
  const gl_matrix_1 = require("2f3fd5db07") /* gl-matrix */;
11077
11091
  const util_1 = require("4eb45e35aa") /* ./util */;
@@ -11141,9 +11155,9 @@
11141
11155
  }
11142
11156
  _create_grid_axes() {
11143
11157
  const pts = [];
11144
- pts.push(util_1.cartesian_product(this.xticks, this.yticks, [this.origin[2]])); //xy
11145
- pts.push(util_1.cartesian_product([this.origin[0]], this.yticks, this.zticks)); //yz
11146
- pts.push(util_1.cartesian_product(this.xticks, [this.origin[1]], this.zticks)); //xz
11158
+ pts.push((0, util_1.cartesian_product)(this.xticks, this.yticks, [this.origin[2]])); //xy
11159
+ pts.push((0, util_1.cartesian_product)([this.origin[0]], this.yticks, this.zticks)); //yz
11160
+ pts.push((0, util_1.cartesian_product)(this.xticks, [this.origin[1]], this.zticks)); //xz
11147
11161
  const polys = [];
11148
11162
  let offset = 0;
11149
11163
  polys.push(this._make_grid_lines(this.xticks.length, this.yticks.length, offset)); //xy
@@ -11151,7 +11165,7 @@
11151
11165
  polys.push(this._make_grid_lines(this.yticks.length, this.zticks.length, offset)); //yz
11152
11166
  offset += this.yticks.length * this.zticks.length;
11153
11167
  polys.push(this._make_grid_lines(this.xticks.length, this.zticks.length, offset)); //xz
11154
- const gridPolyData = util_1.vtk({
11168
+ const gridPolyData = (0, util_1.vtk)({
11155
11169
  vtkClass: "vtkPolyData",
11156
11170
  points: {
11157
11171
  vtkClass: "vtkPoints",
@@ -11180,18 +11194,18 @@
11180
11194
  let coords = null;
11181
11195
  switch (axis) {
11182
11196
  case 0:
11183
- coords = util_1.cartesian_product(arr, [this.origin[1]], [this.origin[2]]);
11197
+ coords = (0, util_1.cartesian_product)(arr, [this.origin[1]], [this.origin[2]]);
11184
11198
  break;
11185
11199
  case 1:
11186
- coords = util_1.cartesian_product([this.origin[0]], arr, [this.origin[2]]);
11200
+ coords = (0, util_1.cartesian_product)([this.origin[0]], arr, [this.origin[2]]);
11187
11201
  break;
11188
11202
  case 2:
11189
- coords = util_1.cartesian_product([this.origin[0]], [this.origin[1]], arr);
11203
+ coords = (0, util_1.cartesian_product)([this.origin[0]], [this.origin[1]], arr);
11190
11204
  break;
11191
11205
  }
11192
11206
  return coords;
11193
11207
  }).flat(2);
11194
- const axesPolyData = util_1.vtk({
11208
+ const axesPolyData = (0, util_1.vtk)({
11195
11209
  vtkClass: "vtkPolyData",
11196
11210
  points: {
11197
11211
  vtkClass: "vtkPoints",
@@ -11277,25 +11291,25 @@
11277
11291
  "2f3fd5db07": /* gl-matrix/esm/index.js */ function _(require, module, exports, __esModule, __esExport) {
11278
11292
  __esModule();
11279
11293
  const tslib_1 = require("tslib");
11280
- const glMatrix = tslib_1.__importStar(require("68ca94c15c") /* ./common.js */);
11294
+ const glMatrix = (0, tslib_1.__importStar)(require("68ca94c15c") /* ./common.js */);
11281
11295
  exports.glMatrix = glMatrix;
11282
- const mat2 = tslib_1.__importStar(require("7c0b8e6048") /* ./mat2.js */);
11296
+ const mat2 = (0, tslib_1.__importStar)(require("7c0b8e6048") /* ./mat2.js */);
11283
11297
  exports.mat2 = mat2;
11284
- const mat2d = tslib_1.__importStar(require("dc03f0a621") /* ./mat2d.js */);
11298
+ const mat2d = (0, tslib_1.__importStar)(require("dc03f0a621") /* ./mat2d.js */);
11285
11299
  exports.mat2d = mat2d;
11286
- const mat3 = tslib_1.__importStar(require("0285c50a7e") /* ./mat3.js */);
11300
+ const mat3 = (0, tslib_1.__importStar)(require("0285c50a7e") /* ./mat3.js */);
11287
11301
  exports.mat3 = mat3;
11288
- const mat4 = tslib_1.__importStar(require("a427635f32") /* ./mat4.js */);
11302
+ const mat4 = (0, tslib_1.__importStar)(require("a427635f32") /* ./mat4.js */);
11289
11303
  exports.mat4 = mat4;
11290
- const quat = tslib_1.__importStar(require("eb06fc032a") /* ./quat.js */);
11304
+ const quat = (0, tslib_1.__importStar)(require("eb06fc032a") /* ./quat.js */);
11291
11305
  exports.quat = quat;
11292
- const quat2 = tslib_1.__importStar(require("277615c682") /* ./quat2.js */);
11306
+ const quat2 = (0, tslib_1.__importStar)(require("277615c682") /* ./quat2.js */);
11293
11307
  exports.quat2 = quat2;
11294
- const vec2 = tslib_1.__importStar(require("c56d9ff837") /* ./vec2.js */);
11308
+ const vec2 = (0, tslib_1.__importStar)(require("c56d9ff837") /* ./vec2.js */);
11295
11309
  exports.vec2 = vec2;
11296
- const vec3 = tslib_1.__importStar(require("2c5eb22089") /* ./vec3.js */);
11310
+ const vec3 = (0, tslib_1.__importStar)(require("2c5eb22089") /* ./vec3.js */);
11297
11311
  exports.vec3 = vec3;
11298
- const vec4 = tslib_1.__importStar(require("c1aa33d719") /* ./vec4.js */);
11312
+ const vec4 = (0, tslib_1.__importStar)(require("c1aa33d719") /* ./vec4.js */);
11299
11313
  exports.vec4 = vec4;
11300
11314
  },
11301
11315
  "68ca94c15c": /* gl-matrix/esm/common.js */ function _(require, module, exports, __esModule, __esExport) {
@@ -11352,7 +11366,7 @@
11352
11366
  "7c0b8e6048": /* gl-matrix/esm/mat2.js */ function _(require, module, exports, __esModule, __esExport) {
11353
11367
  __esModule();
11354
11368
  const tslib_1 = require("tslib");
11355
- const glMatrix = tslib_1.__importStar(require("68ca94c15c") /* ./common.js */);
11369
+ const glMatrix = (0, tslib_1.__importStar)(require("68ca94c15c") /* ./common.js */);
11356
11370
  /**
11357
11371
  * 2x2 Matrix
11358
11372
  * @module mat2
@@ -11758,7 +11772,7 @@
11758
11772
  "dc03f0a621": /* gl-matrix/esm/mat2d.js */ function _(require, module, exports, __esModule, __esExport) {
11759
11773
  __esModule();
11760
11774
  const tslib_1 = require("tslib");
11761
- const glMatrix = tslib_1.__importStar(require("68ca94c15c") /* ./common.js */);
11775
+ const glMatrix = (0, tslib_1.__importStar)(require("68ca94c15c") /* ./common.js */);
11762
11776
  /**
11763
11777
  * 2x3 Matrix
11764
11778
  * @module mat2d
@@ -12199,7 +12213,7 @@
12199
12213
  "0285c50a7e": /* gl-matrix/esm/mat3.js */ function _(require, module, exports, __esModule, __esExport) {
12200
12214
  __esModule();
12201
12215
  const tslib_1 = require("tslib");
12202
- const glMatrix = tslib_1.__importStar(require("68ca94c15c") /* ./common.js */);
12216
+ const glMatrix = (0, tslib_1.__importStar)(require("68ca94c15c") /* ./common.js */);
12203
12217
  /**
12204
12218
  * 3x3 Matrix
12205
12219
  * @module mat3
@@ -12885,7 +12899,7 @@
12885
12899
  "a427635f32": /* gl-matrix/esm/mat4.js */ function _(require, module, exports, __esModule, __esExport) {
12886
12900
  __esModule();
12887
12901
  const tslib_1 = require("tslib");
12888
- const glMatrix = tslib_1.__importStar(require("68ca94c15c") /* ./common.js */);
12902
+ const glMatrix = (0, tslib_1.__importStar)(require("68ca94c15c") /* ./common.js */);
12889
12903
  /**
12890
12904
  * 4x4 Matrix<br>Format: column-major, when typed out it looks like row-major<br>The matrices are being post multiplied.
12891
12905
  * @module mat4
@@ -14547,10 +14561,10 @@
14547
14561
  "eb06fc032a": /* gl-matrix/esm/quat.js */ function _(require, module, exports, __esModule, __esExport) {
14548
14562
  __esModule();
14549
14563
  const tslib_1 = require("tslib");
14550
- const glMatrix = tslib_1.__importStar(require("68ca94c15c") /* ./common.js */);
14551
- const mat3 = tslib_1.__importStar(require("0285c50a7e") /* ./mat3.js */);
14552
- const vec3 = tslib_1.__importStar(require("2c5eb22089") /* ./vec3.js */);
14553
- const vec4 = tslib_1.__importStar(require("c1aa33d719") /* ./vec4.js */);
14564
+ const glMatrix = (0, tslib_1.__importStar)(require("68ca94c15c") /* ./common.js */);
14565
+ const mat3 = (0, tslib_1.__importStar)(require("0285c50a7e") /* ./mat3.js */);
14566
+ const vec3 = (0, tslib_1.__importStar)(require("2c5eb22089") /* ./vec3.js */);
14567
+ const vec4 = (0, tslib_1.__importStar)(require("c1aa33d719") /* ./vec4.js */);
14554
14568
  /**
14555
14569
  * Quaternion
14556
14570
  * @module quat
@@ -14642,7 +14656,7 @@
14642
14656
  * @return {Number} Angle, in radians, between the two quaternions
14643
14657
  */
14644
14658
  function getAngle(a, b) {
14645
- var dotproduct = exports.dot(a, b);
14659
+ var dotproduct = (0, exports.dot)(a, b);
14646
14660
  return Math.acos(2 * dotproduct * dotproduct - 1);
14647
14661
  }
14648
14662
  exports.getAngle = getAngle;
@@ -14786,7 +14800,7 @@
14786
14800
  */
14787
14801
  function pow(out, a, b) {
14788
14802
  ln(out, a);
14789
- exports.scale(out, out, b);
14803
+ (0, exports.scale)(out, out, b);
14790
14804
  exp(out, out);
14791
14805
  return out;
14792
14806
  }
@@ -15144,7 +15158,7 @@
15144
15158
  out[1] = tmpvec3[1];
15145
15159
  out[2] = tmpvec3[2];
15146
15160
  out[3] = 1 + dot;
15147
- return exports.normalize(out, out);
15161
+ return (0, exports.normalize)(out, out);
15148
15162
  }
15149
15163
  };
15150
15164
  }();
@@ -15191,14 +15205,14 @@
15191
15205
  matr[2] = -view[0];
15192
15206
  matr[5] = -view[1];
15193
15207
  matr[8] = -view[2];
15194
- return exports.normalize(out, fromMat3(out, matr));
15208
+ return (0, exports.normalize)(out, fromMat3(out, matr));
15195
15209
  };
15196
15210
  }();
15197
15211
  },
15198
15212
  "2c5eb22089": /* gl-matrix/esm/vec3.js */ function _(require, module, exports, __esModule, __esExport) {
15199
15213
  __esModule();
15200
15214
  const tslib_1 = require("tslib");
15201
- const glMatrix = tslib_1.__importStar(require("68ca94c15c") /* ./common.js */);
15215
+ const glMatrix = (0, tslib_1.__importStar)(require("68ca94c15c") /* ./common.js */);
15202
15216
  /**
15203
15217
  * 3 Dimensional Vector
15204
15218
  * @module vec3
@@ -15925,7 +15939,7 @@
15925
15939
  "c1aa33d719": /* gl-matrix/esm/vec4.js */ function _(require, module, exports, __esModule, __esExport) {
15926
15940
  __esModule();
15927
15941
  const tslib_1 = require("tslib");
15928
- const glMatrix = tslib_1.__importStar(require("68ca94c15c") /* ./common.js */);
15942
+ const glMatrix = (0, tslib_1.__importStar)(require("68ca94c15c") /* ./common.js */);
15929
15943
  /**
15930
15944
  * 4 Dimensional Vector
15931
15945
  * @module vec4
@@ -16550,9 +16564,9 @@
16550
16564
  "277615c682": /* gl-matrix/esm/quat2.js */ function _(require, module, exports, __esModule, __esExport) {
16551
16565
  __esModule();
16552
16566
  const tslib_1 = require("tslib");
16553
- const glMatrix = tslib_1.__importStar(require("68ca94c15c") /* ./common.js */);
16554
- const quat = tslib_1.__importStar(require("eb06fc032a") /* ./quat.js */);
16555
- const mat4 = tslib_1.__importStar(require("a427635f32") /* ./mat4.js */);
16567
+ const glMatrix = (0, tslib_1.__importStar)(require("68ca94c15c") /* ./common.js */);
16568
+ const quat = (0, tslib_1.__importStar)(require("eb06fc032a") /* ./quat.js */);
16569
+ const mat4 = (0, tslib_1.__importStar)(require("a427635f32") /* ./mat4.js */);
16556
16570
  /**
16557
16571
  * Dual Quaternion<br>
16558
16572
  * Format: [real, dual]<br>
@@ -17119,7 +17133,7 @@
17119
17133
  */
17120
17134
  function lerp(out, a, b, t) {
17121
17135
  var mt = 1 - t;
17122
- if (exports.dot(a, b) < 0)
17136
+ if ((0, exports.dot)(a, b) < 0)
17123
17137
  t = -t;
17124
17138
  out[0] = a[0] * mt + b[0] * t;
17125
17139
  out[1] = a[1] * mt + b[1] * t;
@@ -17140,7 +17154,7 @@
17140
17154
  * @returns {quat2} out
17141
17155
  */
17142
17156
  function invert(out, a) {
17143
- var sqlen = exports.squaredLength(a);
17157
+ var sqlen = (0, exports.squaredLength)(a);
17144
17158
  out[0] = -a[0] / sqlen;
17145
17159
  out[1] = -a[1] / sqlen;
17146
17160
  out[2] = -a[2] / sqlen;
@@ -17207,7 +17221,7 @@
17207
17221
  * @function
17208
17222
  */
17209
17223
  function normalize(out, a) {
17210
- var magnitude = exports.squaredLength(a);
17224
+ var magnitude = (0, exports.squaredLength)(a);
17211
17225
  if (magnitude > 0) {
17212
17226
  magnitude = Math.sqrt(magnitude);
17213
17227
  var a0 = a[0] / magnitude;
@@ -17269,7 +17283,7 @@
17269
17283
  "c56d9ff837": /* gl-matrix/esm/vec2.js */ function _(require, module, exports, __esModule, __esExport) {
17270
17284
  __esModule();
17271
17285
  const tslib_1 = require("tslib");
17272
- const glMatrix = tslib_1.__importStar(require("68ca94c15c") /* ./common.js */);
17286
+ const glMatrix = (0, tslib_1.__importStar)(require("68ca94c15c") /* ./common.js */);
17273
17287
  /**
17274
17288
  * 2 Dimensional Vector
17275
17289
  * @module vec2
@@ -17866,7 +17880,7 @@
17866
17880
  connect_signals() {
17867
17881
  super.connect_signals();
17868
17882
  this.connect(this.model.properties.data.change, () => {
17869
- this._vtk_image_data = util_1.data2VTKImageData(this.model.data);
17883
+ this._vtk_image_data = (0, util_1.data2VTKImageData)(this.model.data);
17870
17884
  this.invalidate_render();
17871
17885
  });
17872
17886
  this.connect(this.model.properties.colormap.change, () => {
@@ -17938,7 +17952,7 @@
17938
17952
  this.connect(this.model.properties.render_background.change, () => {
17939
17953
  this._vtk_renwin
17940
17954
  .getRenderer()
17941
- .setBackground(...util_1.hexToRGB(this.model.render_background));
17955
+ .setBackground(...(0, util_1.hexToRGB)(this.model.render_background));
17942
17956
  this._vtk_renwin.getRenderWindow().render();
17943
17957
  });
17944
17958
  this.connect(this.model.properties.interpolation.change, () => {
@@ -17990,13 +18004,13 @@
17990
18004
  this._set_slices_visibility(this.model.display_slices);
17991
18005
  this._vtk_renwin
17992
18006
  .getRenderer()
17993
- .setBackground(...util_1.hexToRGB(this.model.render_background));
18007
+ .setBackground(...(0, util_1.hexToRGB)(this.model.render_background));
17994
18008
  this._set_interpolation(this.model.interpolation);
17995
18009
  this._set_camera_state();
17996
18010
  }
17997
18011
  get vtk_image_data() {
17998
18012
  if (!this._vtk_image_data)
17999
- this._vtk_image_data = util_1.data2VTKImageData(this.model.data);
18013
+ this._vtk_image_data = (0, util_1.data2VTKImageData)(this.model.data);
18000
18014
  return this._vtk_image_data;
18001
18015
  }
18002
18016
  get volume() {
@@ -18102,7 +18116,7 @@
18102
18116
  const dataArray = source.getPointData().getScalars() || source.getPointData().getArrays()[0];
18103
18117
  const dataRange = dataArray.getRange();
18104
18118
  const lookupTable = util_1.vtkns.ColorTransferFunction.newInstance();
18105
- lookupTable.onModified(() => (this.model.mapper = util_1.vtkLutToMapper(lookupTable)));
18119
+ lookupTable.onModified(() => (this.model.mapper = (0, util_1.vtkLutToMapper)(lookupTable)));
18106
18120
  const piecewiseFunction = util_1.vtkns.PiecewiseFunction.newInstance();
18107
18121
  const sampleDistance = 0.7 *
18108
18122
  Math.sqrt(source
@@ -18205,7 +18219,7 @@
18205
18219
  "4baab0b7ce": /* models/vtk/vtksynchronized.js */ function _(require, module, exports, __esModule, __esExport) {
18206
18220
  __esModule();
18207
18221
  const tslib_1 = require("tslib");
18208
- const p = tslib_1.__importStar(require("@bokehjs/core/properties"));
18222
+ const p = (0, tslib_1.__importStar)(require("@bokehjs/core/properties"));
18209
18223
  const object_1 = require("@bokehjs/core/util/object");
18210
18224
  const vtklayout_1 = require("46fdad9667") /* ./vtklayout */;
18211
18225
  const util_1 = require("4eb45e35aa") /* ./util */;
@@ -18247,7 +18261,7 @@
18247
18261
  this.invalidate_render();
18248
18262
  }
18249
18263
  else {
18250
- const state = object_1.clone(this.model.scene);
18264
+ const state = (0, object_1.clone)(this.model.scene);
18251
18265
  Promise.all(this._promises).then(() => {
18252
18266
  this._sync_plot(state, () => {
18253
18267
  this._on_scene_ready();
@@ -18269,7 +18283,7 @@
18269
18283
  plot() {
18270
18284
  this._vtk_renwin.getRenderWindow().clearOneTimeUpdaters();
18271
18285
  this._decode_arrays();
18272
- const state = object_1.clone(this.model.scene);
18286
+ const state = (0, object_1.clone)(this.model.scene);
18273
18287
  Promise.all(this._promises).then(() => {
18274
18288
  this._sync_plot(state, () => this._on_scene_ready()).then(() => {
18275
18289
  this._set_camera_state();
@@ -18440,7 +18454,7 @@
18440
18454
  };
18441
18455
  publicAPI.addController = (html) => {
18442
18456
  model.controlContainer = document.createElement("div");
18443
- util_1.applyStyle(model.controlContainer, model.controlPanelStyle || STYLE_CONTROL_PANEL);
18457
+ (0, util_1.applyStyle)(model.controlContainer, model.controlPanelStyle || STYLE_CONTROL_PANEL);
18444
18458
  model.rootContainer.appendChild(model.controlContainer);
18445
18459
  model.controlContainer.innerHTML = html;
18446
18460
  publicAPI.setControllerVisibility(model.controllerVisibility);
@@ -18491,5 +18505,5 @@
18491
18505
  };
18492
18506
  }
18493
18507
  },
18494
- }, "4e90918c0a", {"index":"4e90918c0a","models/index":"7898617fc4","models/ace":"be520eff91","models/layout":"4c755983eb","models/audio":"339f84d639","models/card":"c816112d20","models/comm_manager":"e552778259","models/tabulator":"cd0a5e2f82","models/data":"f1971f81bf","models/datetime_picker":"6e11b2cfe2","models/deckgl":"df2378664f","models/tooltips":"6e04fbe567","models/echarts":"9d046c4720","models/html":"2839081043","models/event-to-object":"3329d4aa5b","models/idom":"7d45bd3bc4","models/ipywidget":"0eae77d68f","models/json":"0d30bea0c8","models/file_download":"1767172ffa","models/katex":"7b859fb3cf","models/location":"642aa56b24","models/mathjax":"0c21036737","models/perspective":"84a772681d","models/player":"2e8044c920","models/plotly":"c23bb1717d","models/util":"990b5dd5c7","models/progress":"9f787650b9","models/reactive_html":"d536149aaa","models/singleselect":"3b85956787","models/speech_to_text":"aaa48703af","models/state":"bfa46a5f19","models/terminal":"91fe88c277","models/text_to_speech":"33cd2c254e","models/trend":"ded3463d6c","models/vega":"4feb5fa522","models/video":"ffe54b53c3","models/videostream":"e3e9b8e495","models/vtk/index":"c51f25e2a7","models/vtk/vtkjs":"34fc7779c7","models/vtk/vtklayout":"46fdad9667","models/vtk/util":"4eb45e35aa","models/vtk/vtkcolorbar":"c010237f8b","models/vtk/vtkaxes":"db7a0079c0","models/vtk/vtkvolume":"89262e43a1","models/vtk/vtksynchronized":"4baab0b7ce","models/vtk/panel_fullscreen_renwin_sync":"11e0707a8f"}, {});});
18508
+ }, "4e90918c0a", {"index":"4e90918c0a","models/index":"7898617fc4","models/ace":"9fecc8d0f9","models/layout":"4c755983eb","models/audio":"339f84d639","models/card":"c816112d20","models/comm_manager":"e552778259","models/tabulator":"32011d40fa","models/data":"f1971f81bf","models/datetime_picker":"6e11b2cfe2","models/deckgl":"df2378664f","models/tooltips":"6e04fbe567","models/echarts":"9d046c4720","models/html":"2839081043","models/event-to-object":"3329d4aa5b","models/idom":"7d45bd3bc4","models/ipywidget":"0eae77d68f","models/json":"0d30bea0c8","models/file_download":"1767172ffa","models/katex":"7b859fb3cf","models/location":"642aa56b24","models/mathjax":"0c21036737","models/perspective":"84a772681d","models/player":"2e8044c920","models/plotly":"50ac0b0178","models/util":"990b5dd5c7","models/progress":"9f787650b9","models/reactive_html":"11283de978","models/singleselect":"5ed2116e26","models/speech_to_text":"aaa48703af","models/state":"bfa46a5f19","models/terminal":"91fe88c277","models/text_to_speech":"33cd2c254e","models/trend":"effe070807","models/vega":"4feb5fa522","models/video":"ffe54b53c3","models/videostream":"e3e9b8e495","models/vtk/index":"c51f25e2a7","models/vtk/vtkjs":"34fc7779c7","models/vtk/vtklayout":"46fdad9667","models/vtk/util":"4eb45e35aa","models/vtk/vtkcolorbar":"c010237f8b","models/vtk/vtkaxes":"db7a0079c0","models/vtk/vtkvolume":"89262e43a1","models/vtk/vtksynchronized":"4baab0b7ce","models/vtk/panel_fullscreen_renwin_sync":"11e0707a8f"}, {});});
18495
18509
  //# sourceMappingURL=panel.js.map