@progress/telerik-react-report-viewer 28.25.1119 → 29.26.211

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.
@@ -1,7 +1,7 @@
1
1
  var $ = require("jquery");
2
2
  /*
3
- * TelerikReporting v19.3.25.1119 (https://www.telerik.com/products/reporting.aspx)
4
- * Copyright 2025 Progress Software EAD. All rights reserved.
3
+ * TelerikReporting v20.0.26.211 (https://www.telerik.com/products/reporting.aspx)
4
+ * Copyright 2026 Progress Software EAD. All rights reserved.
5
5
  *
6
6
  * Telerik Reporting commercial licenses may be obtained at
7
7
  * https://www.telerik.com/purchase/license-agreement/reporting.aspx
@@ -251,20 +251,11 @@ var telerikReportViewer = (function (exports) {
251
251
  // https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
252
252
  const NODE_TYPE = {
253
253
  element: 1,
254
- attribute: 2,
255
254
  text: 3,
256
- cdataSection: 4,
257
- entityReference: 5,
258
- // Deprecated
259
- entityNode: 6,
260
255
  // Deprecated
261
256
  progressingInstruction: 7,
262
257
  comment: 8,
263
- document: 9,
264
- documentType: 10,
265
- documentFragment: 11,
266
- notation: 12 // Deprecated
267
- };
258
+ document: 9};
268
259
  const getGlobal = function getGlobal() {
269
260
  return typeof window === 'undefined' ? null : window;
270
261
  };
@@ -1370,96 +1361,91 @@ var telerikReportViewer = (function (exports) {
1370
1361
  return purify_cjs;
1371
1362
  }
1372
1363
 
1373
- dist.exports;
1374
- (function(module, exports) {
1364
+ (function(module, exports$1) {
1375
1365
  !function(e, t) {
1376
- t(exports, requirePurify_cjs()) ;
1366
+ t(exports$1, requirePurify_cjs()) ;
1377
1367
  }(commonjsGlobal, function(e, t) {
1378
- function i(e2) {
1379
- return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
1380
- }
1381
- var n, r = i(t);
1382
- function s(e2, t2, i2, n2) {
1383
- return new (i2 || (i2 = Promise))(function(r2, s2) {
1384
- function o2(e3) {
1368
+ function i(e2, t2, i2, n2) {
1369
+ return new (i2 || (i2 = Promise))(function(t3, r2) {
1370
+ function s2(e3) {
1385
1371
  try {
1386
- l2(n2.next(e3));
1372
+ a2(n2.next(e3));
1387
1373
  } catch (e4) {
1388
- s2(e4);
1374
+ r2(e4);
1389
1375
  }
1390
1376
  }
1391
- function a2(e3) {
1377
+ function o2(e3) {
1392
1378
  try {
1393
- l2(n2.throw(e3));
1379
+ a2(n2.throw(e3));
1394
1380
  } catch (e4) {
1395
- s2(e4);
1381
+ r2(e4);
1396
1382
  }
1397
1383
  }
1398
- function l2(e3) {
1399
- var t3;
1400
- e3.done ? r2(e3.value) : (t3 = e3.value, t3 instanceof i2 ? t3 : new i2(function(e4) {
1401
- e4(t3);
1402
- })).then(o2, a2);
1384
+ function a2(e3) {
1385
+ var n3;
1386
+ e3.done ? t3(e3.value) : (n3 = e3.value, n3 instanceof i2 ? n3 : new i2(function(e4) {
1387
+ e4(n3);
1388
+ })).then(s2, o2);
1403
1389
  }
1404
- l2((n2 = n2.apply(e2, t2 || [])).next());
1390
+ a2((n2 = n2.apply(e2, [])).next());
1405
1391
  });
1406
1392
  }
1407
- class o {
1393
+ class n {
1408
1394
  constructor() {
1409
1395
  this.BasePath = "", this.ImmediatePrint = false, this.ContentOnly = false, this.UseSVG = false, this.enableSearch = false, this.enableAccessibility = false, this.contentTabIndex = 0;
1410
1396
  }
1411
1397
  }
1412
- class a {
1398
+ class r {
1413
1399
  constructor() {
1414
1400
  this.from = "", this.to = "", this.cc = "", this.subject = "", this.format = "", this.body = "";
1415
1401
  }
1416
1402
  }
1417
- class l {
1403
+ class s {
1418
1404
  constructor(e2, t2) {
1419
1405
  this.cancel = false, this.element = e2, this.action = t2;
1420
1406
  }
1421
1407
  }
1422
- class h {
1408
+ class o {
1423
1409
  constructor(e2, t2) {
1424
1410
  this.id = "", this.type = "", this.id = e2, this.type = t2;
1425
1411
  }
1426
1412
  }
1427
- class c {
1413
+ class a {
1428
1414
  constructor(e2, t2) {
1429
1415
  this.isCancelled = false, this.format = "", this.deviceInfo = e2, this.format = t2;
1430
1416
  }
1431
1417
  }
1432
- class d {
1418
+ class l {
1433
1419
  constructor(e2, t2) {
1434
1420
  this.handled = false, this.deviceInfo = e2, this.format = t2;
1435
1421
  }
1436
1422
  }
1437
- class u {
1423
+ class h {
1438
1424
  constructor(e2, t2, i2) {
1439
1425
  this.handled = false, this.url = e2, this.format = t2, this.windowOpenTarget = i2;
1440
1426
  }
1441
1427
  }
1442
- class p {
1428
+ class c {
1443
1429
  constructor(e2) {
1444
1430
  this.handled = false, this.deviceInfo = e2;
1445
1431
  }
1446
1432
  }
1447
- class g {
1433
+ class d {
1448
1434
  constructor(e2) {
1449
1435
  this.handled = false, this.url = e2;
1450
1436
  }
1451
1437
  }
1452
- class m {
1438
+ class u {
1453
1439
  constructor(e2, t2) {
1454
1440
  this.page = e2, this.reportDocumentId = t2;
1455
1441
  }
1456
1442
  }
1457
- class f {
1443
+ class p {
1458
1444
  constructor(e2, t2, i2, n2 = null) {
1459
1445
  this.element = e2, this.text = t2, this.title = i2, this.eventArgs = n2;
1460
1446
  }
1461
1447
  }
1462
- class v {
1448
+ class g {
1463
1449
  constructor(e2, t2) {
1464
1450
  this._responseText = e2, this._error = t2;
1465
1451
  try {
@@ -1482,14 +1468,14 @@ var telerikReportViewer = (function (exports) {
1482
1468
  return (null === (e2 = this.responseJSON) || void 0 === e2 ? void 0 : e2.exceptionMessage) || (null === (t2 = this.responseJSON) || void 0 === t2 ? void 0 : t2.ExceptionMessage);
1483
1469
  }
1484
1470
  }
1485
- function P(e2, t2 = false, i2 = false) {
1471
+ function m(e2, t2 = false, i2 = false) {
1486
1472
  let n2 = { Accept: "application/json, text/javascript, */*; q=0.01" };
1487
1473
  return t2 && (n2["Content-Type"] = i2 ? "application/x-www-form-urlencoded; charset=UTF-8" : "application/json; charset=UTF-8"), e2 && (n2.authorization = "Bearer " + e2), n2;
1488
1474
  }
1489
- function C(e2) {
1490
- return s(this, void 0, void 0, function* () {
1475
+ function f(e2) {
1476
+ return i(this, 0, void 0, function* () {
1491
1477
  if (!e2.ok) {
1492
- let t2 = yield e2.text(), i2 = new v(t2, e2.statusText);
1478
+ let t2 = yield e2.text(), i2 = new g(t2, e2.statusText);
1493
1479
  return Promise.reject(i2);
1494
1480
  }
1495
1481
  if (204 == e2.status)
@@ -1497,15 +1483,15 @@ var telerikReportViewer = (function (exports) {
1497
1483
  return (e2.headers.get("content-type") || "").includes("application/json") ? e2.json() : e2.text();
1498
1484
  });
1499
1485
  }
1500
- function y(e2, t2 = {}, i2 = "", n2 = false) {
1501
- return fetch(e2, { method: "POST", headers: P(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(C);
1486
+ function v(e2, t2 = {}, i2 = "", n2 = false) {
1487
+ return fetch(e2, { method: "POST", headers: m(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(f);
1502
1488
  }
1503
- class S {
1489
+ class P {
1504
1490
  authenticatePromise() {
1505
1491
  return Promise.resolve("");
1506
1492
  }
1507
1493
  }
1508
- class I {
1494
+ class C {
1509
1495
  constructor(e2) {
1510
1496
  this.connectionConfig = e2;
1511
1497
  }
@@ -1513,59 +1499,60 @@ var telerikReportViewer = (function (exports) {
1513
1499
  var e2, t2;
1514
1500
  if (this.connectionConfig && this.connectionConfig.tokenUrl && (this.connectionConfig.username || this.connectionConfig.password)) {
1515
1501
  let i2 = `grant_type=password&username=${encodeURIComponent((null === (e2 = this.connectionConfig) || void 0 === e2 ? void 0 : e2.username) || "")}&password=${encodeURIComponent((null === (t2 = this.connectionConfig) || void 0 === t2 ? void 0 : t2.password) || "")}`;
1516
- return y(this.connectionConfig.tokenUrl, i2, "", true).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3));
1502
+ return v(this.connectionConfig.tokenUrl, i2, "", true).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3));
1517
1503
  }
1518
1504
  return Promise.reject("Failed to connect to Report Server with user credentials. Are you missing the reportServer.url, reportServer.username or reportServer.password values?");
1519
1505
  }
1520
1506
  }
1521
- class b {
1507
+ class y {
1522
1508
  constructor(e2) {
1523
1509
  this.connectionConfig = e2;
1524
1510
  }
1525
1511
  authenticatePromise(e2, t2) {
1526
- return e2 ? y(this.connectionConfig.refreshTokenUrl, { RefreshToken: t2 }).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3)) : this.connectionConfig && this.connectionConfig.personalTokenUrl && this.connectionConfig.getPersonalAccessToken ? this.connectionConfig.getPersonalAccessToken().then((e3) => y(this.connectionConfig.personalTokenUrl, e3).then((e4) => (e4.expiresAt = Date.now() + 1e3 * e4.expiresIn, e4))) : Promise.reject("Failed to connect to Report Server with personal access token. Are you missing the reportServer.url or reportServer.getPersonalAccessToken values?");
1512
+ return e2 ? v(this.connectionConfig.refreshTokenUrl, { RefreshToken: t2 }).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3)) : this.connectionConfig && this.connectionConfig.personalTokenUrl && this.connectionConfig.getPersonalAccessToken ? this.connectionConfig.getPersonalAccessToken().then((e3) => v(this.connectionConfig.personalTokenUrl, e3).then((e4) => (e4.expiresAt = Date.now() + 1e3 * e4.expiresIn, e4))) : Promise.reject("Failed to connect to Report Server with personal access token. Are you missing the reportServer.url or reportServer.getPersonalAccessToken values?");
1527
1513
  }
1528
1514
  }
1529
- e.AuthType = void 0, (n = e.AuthType || (e.AuthType = {}))[n.None = 0] = "None", n[n.Basic = 1] = "Basic", n[n.PersonalToken = 2] = "PersonalToken";
1530
- class w {
1515
+ var S, I;
1516
+ e.AuthType = void 0, (S = e.AuthType || (e.AuthType = {}))[S.None = 0] = "None", S[S.Basic = 1] = "Basic", S[S.PersonalToken = 2] = "PersonalToken";
1517
+ class b {
1531
1518
  constructor(e2) {
1532
1519
  this.baseUrl = null == e2 ? void 0 : e2.replace(/\/$/, "");
1533
1520
  }
1534
1521
  }
1535
- class T extends w {
1522
+ class w extends b {
1536
1523
  constructor(t2) {
1537
1524
  super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl;
1538
1525
  }
1539
1526
  }
1540
- class A extends w {
1527
+ class T extends b {
1541
1528
  constructor(t2) {
1542
1529
  super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl + "/api/reports";
1543
1530
  }
1544
1531
  }
1545
- class R extends A {
1532
+ class A extends T {
1546
1533
  constructor(t2, i2, n2) {
1547
1534
  super(t2), this.authType = e.AuthType.Basic, this.username = i2, this.password = n2, this.tokenUrl = this.baseUrl + "/Token";
1548
1535
  }
1549
1536
  }
1550
- class E extends A {
1537
+ class R extends T {
1551
1538
  constructor(t2, i2) {
1552
1539
  super(t2), this.authType = e.AuthType.PersonalToken, this.getPersonalAccessToken = i2, this.personalTokenUrl = this.baseUrl + "/PersonalToken", this.refreshTokenUrl = this.baseUrl + "/refresh";
1553
1540
  }
1554
1541
  }
1555
- function M() {
1542
+ function E() {
1556
1543
  }
1557
- function x() {
1558
- x.init.call(this);
1544
+ function M() {
1545
+ M.init.call(this);
1559
1546
  }
1560
- function k(e2) {
1561
- return void 0 === e2._maxListeners ? x.defaultMaxListeners : e2._maxListeners;
1547
+ function x(e2) {
1548
+ return void 0 === e2._maxListeners ? M.defaultMaxListeners : e2._maxListeners;
1562
1549
  }
1563
- function L(e2, t2, i2, n2) {
1550
+ function k(e2, t2, i2, n2) {
1564
1551
  var r2, s2, o2, a2;
1565
1552
  if ("function" != typeof i2)
1566
1553
  throw new TypeError('"listener" argument must be a function');
1567
- if ((s2 = e2._events) ? (s2.newListener && (e2.emit("newListener", t2, i2.listener ? i2.listener : i2), s2 = e2._events), o2 = s2[t2]) : (s2 = e2._events = new M(), e2._eventsCount = 0), o2) {
1568
- if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 = k(e2)) && r2 > 0 && o2.length > r2) {
1554
+ if ((s2 = e2._events) ? (s2.newListener && (e2.emit("newListener", t2, i2.listener ? i2.listener : i2), s2 = e2._events), o2 = s2[t2]) : (s2 = e2._events = new E(), e2._eventsCount = 0), o2) {
1555
+ if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 = x(e2)) && r2 > 0 && o2.length > r2) {
1569
1556
  o2.warned = true;
1570
1557
  var l2 = new Error("Possible EventEmitter memory leak detected. " + o2.length + " " + t2 + " listeners added. Use emitter.setMaxListeners() to increase limit");
1571
1558
  l2.name = "MaxListenersExceededWarning", l2.emitter = e2, l2.type = t2, l2.count = o2.length, a2 = l2, "function" == typeof console.warn ? console.warn(a2) : console.log(a2);
@@ -1574,7 +1561,7 @@ var telerikReportViewer = (function (exports) {
1574
1561
  o2 = s2[t2] = i2, ++e2._eventsCount;
1575
1562
  return e2;
1576
1563
  }
1577
- function D(e2, t2, i2) {
1564
+ function L(e2, t2, i2) {
1578
1565
  var n2 = false;
1579
1566
  function r2() {
1580
1567
  e2.removeListener(t2, r2), n2 || (n2 = true, i2.apply(e2, arguments));
@@ -1592,20 +1579,20 @@ var telerikReportViewer = (function (exports) {
1592
1579
  }
1593
1580
  return 0;
1594
1581
  }
1595
- function F(e2, t2) {
1582
+ function D(e2, t2) {
1596
1583
  for (var i2 = new Array(t2); t2--; )
1597
1584
  i2[t2] = e2[t2];
1598
1585
  return i2;
1599
1586
  }
1600
- M.prototype = /* @__PURE__ */ Object.create(null), x.EventEmitter = x, x.usingDomains = false, x.prototype.domain = void 0, x.prototype._events = void 0, x.prototype._maxListeners = void 0, x.defaultMaxListeners = 10, x.init = function() {
1601
- this.domain = null, x.usingDomains && (void 0).active, this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new M(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
1602
- }, x.prototype.setMaxListeners = function(e2) {
1587
+ E.prototype = /* @__PURE__ */ Object.create(null), M.EventEmitter = M, M.usingDomains = false, M.prototype.domain = void 0, M.prototype._events = void 0, M.prototype._maxListeners = void 0, M.defaultMaxListeners = 10, M.init = function() {
1588
+ this.domain = null, M.usingDomains && (!I.active || this instanceof I.Domain || (this.domain = I.active)), this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new E(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
1589
+ }, M.prototype.setMaxListeners = function(e2) {
1603
1590
  if ("number" != typeof e2 || e2 < 0 || isNaN(e2))
1604
1591
  throw new TypeError('"n" argument must be a positive number');
1605
1592
  return this._maxListeners = e2, this;
1606
- }, x.prototype.getMaxListeners = function() {
1607
- return k(this);
1608
- }, x.prototype.emit = function(e2) {
1593
+ }, M.prototype.getMaxListeners = function() {
1594
+ return x(this);
1595
+ }, M.prototype.emit = function(e2) {
1609
1596
  var t2, i2, n2, r2, s2, o2, a2, l2 = "error" === e2;
1610
1597
  if (o2 = this._events)
1611
1598
  l2 = l2 && null == o2.error;
@@ -1629,7 +1616,7 @@ var telerikReportViewer = (function (exports) {
1629
1616
  if (t3)
1630
1617
  e3.call(i3);
1631
1618
  else
1632
- for (var n3 = e3.length, r3 = F(e3, n3), s3 = 0; s3 < n3; ++s3)
1619
+ for (var n3 = e3.length, r3 = D(e3, n3), s3 = 0; s3 < n3; ++s3)
1633
1620
  r3[s3].call(i3);
1634
1621
  }(i2, c2, this);
1635
1622
  break;
@@ -1638,7 +1625,7 @@ var telerikReportViewer = (function (exports) {
1638
1625
  if (t3)
1639
1626
  e3.call(i3, n3);
1640
1627
  else
1641
- for (var r3 = e3.length, s3 = F(e3, r3), o3 = 0; o3 < r3; ++o3)
1628
+ for (var r3 = e3.length, s3 = D(e3, r3), o3 = 0; o3 < r3; ++o3)
1642
1629
  s3[o3].call(i3, n3);
1643
1630
  }(i2, c2, this, arguments[1]);
1644
1631
  break;
@@ -1647,7 +1634,7 @@ var telerikReportViewer = (function (exports) {
1647
1634
  if (t3)
1648
1635
  e3.call(i3, n3, r3);
1649
1636
  else
1650
- for (var s3 = e3.length, o3 = F(e3, s3), a3 = 0; a3 < s3; ++a3)
1637
+ for (var s3 = e3.length, o3 = D(e3, s3), a3 = 0; a3 < s3; ++a3)
1651
1638
  o3[a3].call(i3, n3, r3);
1652
1639
  }(i2, c2, this, arguments[1], arguments[2]);
1653
1640
  break;
@@ -1656,7 +1643,7 @@ var telerikReportViewer = (function (exports) {
1656
1643
  if (t3)
1657
1644
  e3.call(i3, n3, r3, s3);
1658
1645
  else
1659
- for (var o3 = e3.length, a3 = F(e3, o3), l3 = 0; l3 < o3; ++l3)
1646
+ for (var o3 = e3.length, a3 = D(e3, o3), l3 = 0; l3 < o3; ++l3)
1660
1647
  a3[l3].call(i3, n3, r3, s3);
1661
1648
  }(i2, c2, this, arguments[1], arguments[2], arguments[3]);
1662
1649
  break;
@@ -1667,24 +1654,24 @@ var telerikReportViewer = (function (exports) {
1667
1654
  if (t3)
1668
1655
  e3.apply(i3, n3);
1669
1656
  else
1670
- for (var r3 = e3.length, s3 = F(e3, r3), o3 = 0; o3 < r3; ++o3)
1657
+ for (var r3 = e3.length, s3 = D(e3, r3), o3 = 0; o3 < r3; ++o3)
1671
1658
  s3[o3].apply(i3, n3);
1672
1659
  }(i2, c2, this, r2);
1673
1660
  }
1674
1661
  return true;
1675
- }, x.prototype.addListener = function(e2, t2) {
1676
- return L(this, e2, t2, false);
1677
- }, x.prototype.on = x.prototype.addListener, x.prototype.prependListener = function(e2, t2) {
1678
- return L(this, e2, t2, true);
1679
- }, x.prototype.once = function(e2, t2) {
1662
+ }, M.prototype.addListener = function(e2, t2) {
1663
+ return k(this, e2, t2, false);
1664
+ }, M.prototype.on = M.prototype.addListener, M.prototype.prependListener = function(e2, t2) {
1665
+ return k(this, e2, t2, true);
1666
+ }, M.prototype.once = function(e2, t2) {
1680
1667
  if ("function" != typeof t2)
1681
1668
  throw new TypeError('"listener" argument must be a function');
1682
- return this.on(e2, D(this, e2, t2)), this;
1683
- }, x.prototype.prependOnceListener = function(e2, t2) {
1669
+ return this.on(e2, L(this, e2, t2)), this;
1670
+ }, M.prototype.prependOnceListener = function(e2, t2) {
1684
1671
  if ("function" != typeof t2)
1685
1672
  throw new TypeError('"listener" argument must be a function');
1686
- return this.prependListener(e2, D(this, e2, t2)), this;
1687
- }, x.prototype.removeListener = function(e2, t2) {
1673
+ return this.prependListener(e2, L(this, e2, t2)), this;
1674
+ }, M.prototype.removeListener = function(e2, t2) {
1688
1675
  var i2, n2, r2, s2, o2;
1689
1676
  if ("function" != typeof t2)
1690
1677
  throw new TypeError('"listener" argument must be a function');
@@ -1693,7 +1680,7 @@ var telerikReportViewer = (function (exports) {
1693
1680
  if (!(i2 = n2[e2]))
1694
1681
  return this;
1695
1682
  if (i2 === t2 || i2.listener && i2.listener === t2)
1696
- 0 == --this._eventsCount ? this._events = new M() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
1683
+ 0 == --this._eventsCount ? this._events = new E() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
1697
1684
  else if ("function" != typeof i2) {
1698
1685
  for (r2 = -1, s2 = i2.length; s2-- > 0; )
1699
1686
  if (i2[s2] === t2 || i2[s2].listener && i2[s2].listener === t2) {
@@ -1704,7 +1691,7 @@ var telerikReportViewer = (function (exports) {
1704
1691
  return this;
1705
1692
  if (1 === i2.length) {
1706
1693
  if (i2[0] = void 0, 0 == --this._eventsCount)
1707
- return this._events = new M(), this;
1694
+ return this._events = new E(), this;
1708
1695
  delete n2[e2];
1709
1696
  } else
1710
1697
  !function(e3, t3) {
@@ -1715,18 +1702,18 @@ var telerikReportViewer = (function (exports) {
1715
1702
  n2.removeListener && this.emit("removeListener", e2, o2 || t2);
1716
1703
  }
1717
1704
  return this;
1718
- }, x.prototype.off = function(e2, t2) {
1705
+ }, M.prototype.off = function(e2, t2) {
1719
1706
  return this.removeListener(e2, t2);
1720
- }, x.prototype.removeAllListeners = function(e2) {
1707
+ }, M.prototype.removeAllListeners = function(e2) {
1721
1708
  var t2, i2;
1722
1709
  if (!(i2 = this._events))
1723
1710
  return this;
1724
1711
  if (!i2.removeListener)
1725
- return 0 === arguments.length ? (this._events = new M(), this._eventsCount = 0) : i2[e2] && (0 == --this._eventsCount ? this._events = new M() : delete i2[e2]), this;
1712
+ return 0 === arguments.length ? (this._events = new E(), this._eventsCount = 0) : i2[e2] && (0 == --this._eventsCount ? this._events = new E() : delete i2[e2]), this;
1726
1713
  if (0 === arguments.length) {
1727
1714
  for (var n2, r2 = Object.keys(i2), s2 = 0; s2 < r2.length; ++s2)
1728
1715
  "removeListener" !== (n2 = r2[s2]) && this.removeAllListeners(n2);
1729
- return this.removeAllListeners("removeListener"), this._events = new M(), this._eventsCount = 0, this;
1716
+ return this.removeAllListeners("removeListener"), this._events = new E(), this._eventsCount = 0, this;
1730
1717
  }
1731
1718
  if ("function" == typeof (t2 = i2[e2]))
1732
1719
  this.removeListener(e2, t2);
@@ -1735,34 +1722,34 @@ var telerikReportViewer = (function (exports) {
1735
1722
  this.removeListener(e2, t2[t2.length - 1]);
1736
1723
  } while (t2[0]);
1737
1724
  return this;
1738
- }, x.prototype.listeners = function(e2) {
1725
+ }, M.prototype.listeners = function(e2) {
1739
1726
  var t2, i2 = this._events;
1740
1727
  return i2 && (t2 = i2[e2]) ? "function" == typeof t2 ? [t2.listener || t2] : function(e3) {
1741
1728
  for (var t3 = new Array(e3.length), i3 = 0; i3 < t3.length; ++i3)
1742
1729
  t3[i3] = e3[i3].listener || e3[i3];
1743
1730
  return t3;
1744
1731
  }(t2) : [];
1745
- }, x.listenerCount = function(e2, t2) {
1732
+ }, M.listenerCount = function(e2, t2) {
1746
1733
  return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : N.call(e2, t2);
1747
- }, x.prototype.listenerCount = N, x.prototype.eventNames = function() {
1734
+ }, M.prototype.listenerCount = N, M.prototype.eventNames = function() {
1748
1735
  return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
1749
1736
  };
1750
- const O = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
1751
- function V(e2) {
1737
+ const F = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
1738
+ function O(e2) {
1752
1739
  if ("string" != typeof e2 && "symbol" != typeof e2)
1753
1740
  throw new TypeError("type is not type of string or symbol!");
1754
1741
  }
1755
- function z(e2) {
1742
+ function V(e2) {
1756
1743
  if ("function" != typeof e2)
1757
1744
  throw new TypeError("fn is not type of Function!");
1758
1745
  }
1759
- function _(e2) {
1760
- return { [O]: "always", fn: e2 };
1746
+ function z(e2) {
1747
+ return { [F]: "always", fn: e2 };
1761
1748
  }
1762
- function U(e2) {
1763
- return { [O]: "once", fn: e2 };
1749
+ function _(e2) {
1750
+ return { [F]: "once", fn: e2 };
1764
1751
  }
1765
- class $ {
1752
+ class U {
1766
1753
  constructor() {
1767
1754
  this._events = {};
1768
1755
  }
@@ -1770,25 +1757,25 @@ var telerikReportViewer = (function (exports) {
1770
1757
  return this.on(e2, t2);
1771
1758
  }
1772
1759
  on(e2, t2) {
1773
- return V(e2), z(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(_(t2)), this;
1760
+ return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(z(t2)), this;
1774
1761
  }
1775
1762
  prependListener(e2, t2) {
1776
1763
  return this.prepend(e2, t2);
1777
1764
  }
1778
1765
  prepend(e2, t2) {
1779
- return V(e2), z(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(_(t2)), this;
1766
+ return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(z(t2)), this;
1780
1767
  }
1781
1768
  prependOnceListener(e2, t2) {
1782
1769
  return this.prependOnce(e2, t2);
1783
1770
  }
1784
1771
  prependOnce(e2, t2) {
1785
- return V(e2), z(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(U(t2)), this;
1772
+ return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(_(t2)), this;
1786
1773
  }
1787
1774
  listeners(e2) {
1788
1775
  return (this._events[e2] || []).map((e3) => e3.fn);
1789
1776
  }
1790
1777
  once(e2, t2) {
1791
- return V(e2), z(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(U(t2)), this;
1778
+ return O(e2), V(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(_(t2)), this;
1792
1779
  }
1793
1780
  removeAllListeners() {
1794
1781
  this._events = {};
@@ -1797,7 +1784,7 @@ var telerikReportViewer = (function (exports) {
1797
1784
  return this.removeListener(e2, t2);
1798
1785
  }
1799
1786
  removeListener(e2, t2) {
1800
- V(e2);
1787
+ O(e2);
1801
1788
  const i2 = this.listeners(e2);
1802
1789
  if ("function" == typeof t2) {
1803
1790
  let n2 = -1, r2 = false;
@@ -1808,13 +1795,13 @@ var telerikReportViewer = (function (exports) {
1808
1795
  return delete this._events[e2];
1809
1796
  }
1810
1797
  emit(e2, ...t2) {
1811
- return s(this, void 0, void 0, function* () {
1812
- V(e2);
1798
+ return i(this, 0, void 0, function* () {
1799
+ O(e2);
1813
1800
  const i2 = this.listeners(e2), n2 = [];
1814
1801
  if (i2 && i2.length) {
1815
1802
  for (let r2 = 0; r2 < i2.length; r2++) {
1816
1803
  const s2 = i2[r2], o2 = s2.apply(this, t2);
1817
- o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
1804
+ o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][F] && n2.push(s2);
1818
1805
  }
1819
1806
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
1820
1807
  }
@@ -1822,21 +1809,21 @@ var telerikReportViewer = (function (exports) {
1822
1809
  });
1823
1810
  }
1824
1811
  emitSync(e2, ...t2) {
1825
- V(e2);
1812
+ O(e2);
1826
1813
  const i2 = this.listeners(e2), n2 = [];
1827
1814
  if (i2 && i2.length) {
1828
1815
  for (let r2 = 0; r2 < i2.length; r2++) {
1829
1816
  const s2 = i2[r2];
1830
- s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
1817
+ s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][F] && n2.push(s2);
1831
1818
  }
1832
1819
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
1833
1820
  }
1834
1821
  return false;
1835
1822
  }
1836
1823
  }
1837
- class H {
1824
+ class $ {
1838
1825
  constructor() {
1839
- this.eventEmitter = new x(), this.awaitEventEmitter = new $();
1826
+ this.eventEmitter = new M(), this.awaitEventEmitter = new U();
1840
1827
  }
1841
1828
  on(e2, t2) {
1842
1829
  return this.eventEmitter.on(e2, t2), this;
@@ -1848,12 +1835,12 @@ var telerikReportViewer = (function (exports) {
1848
1835
  return this.awaitEventEmitter.on(e2, t2), this;
1849
1836
  }
1850
1837
  emitAsync(e2, ...t2) {
1851
- return s(this, void 0, void 0, function* () {
1838
+ return i(this, 0, void 0, function* () {
1852
1839
  yield this.awaitEventEmitter.emit(e2, ...t2);
1853
1840
  });
1854
1841
  }
1855
1842
  }
1856
- class B {
1843
+ class H {
1857
1844
  hasPdfPlugin() {
1858
1845
  let e2 = ["AcroPDF.PDF.1", "PDF.PdfCtrl.6", "PDF.PdfCtrl.5"];
1859
1846
  for (let t2 of e2)
@@ -1866,7 +1853,7 @@ var telerikReportViewer = (function (exports) {
1866
1853
  return false;
1867
1854
  }
1868
1855
  }
1869
- class q {
1856
+ class B {
1870
1857
  hasPdfPlugin() {
1871
1858
  let e2 = /Firefox[/\s](\d+\.\d+)/.exec(navigator.userAgent);
1872
1859
  if (null !== e2 && e2.length > 1) {
@@ -1881,7 +1868,7 @@ var telerikReportViewer = (function (exports) {
1881
1868
  return false;
1882
1869
  }
1883
1870
  }
1884
- class W {
1871
+ class q {
1885
1872
  constructor(e2) {
1886
1873
  this.defaultPlugin = e2;
1887
1874
  }
@@ -1892,22 +1879,22 @@ var telerikReportViewer = (function (exports) {
1892
1879
  return false;
1893
1880
  }
1894
1881
  }
1895
- class j {
1882
+ class W {
1896
1883
  hasPdfPlugin() {
1897
1884
  return false;
1898
1885
  }
1899
1886
  }
1900
- function J() {
1887
+ function j() {
1901
1888
  return window.navigator && window.navigator.msSaveOrOpenBlob;
1902
1889
  }
1903
- class G {
1890
+ class J {
1904
1891
  constructor() {
1905
1892
  this.hasPdfPlugin = false, this.iframe = null, this.hasPdfPlugin = function() {
1906
1893
  if (window.navigator) {
1907
1894
  let e2 = window.navigator.userAgent.toLowerCase();
1908
- return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new B() : e2.indexOf("firefox") > -1 ? new q() : e2.indexOf("edg/") > -1 ? new W("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new W("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new W("WebKit built-in PDF") : new j();
1895
+ return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new H() : e2.indexOf("firefox") > -1 ? new B() : e2.indexOf("edg/") > -1 ? new q("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new q("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new q("WebKit built-in PDF") : new W();
1909
1896
  }
1910
- return new j();
1897
+ return new W();
1911
1898
  }().hasPdfPlugin(), this.isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1912
1899
  }
1913
1900
  destroy() {
@@ -1925,13 +1912,13 @@ var telerikReportViewer = (function (exports) {
1925
1912
  }), function(e3) {
1926
1913
  let t3 = window.location, i3 = document.createElement("a");
1927
1914
  return i3.setAttribute("href", e3), "" == i3.host && (i3.href = i3.href), t3.hostname === i3.hostname && t3.protocol === i3.protocol && t3.port === i3.port;
1928
- }(e2) && J())
1915
+ }(e2) && j())
1929
1916
  return this.iframe.src = e2, void document.body.appendChild(this.iframe);
1930
1917
  let i2 = new XMLHttpRequest(), n2 = this;
1931
1918
  i2.open("GET", e2, true), i2.responseType = "arraybuffer", i2.onload = function() {
1932
1919
  if (200 === this.status) {
1933
1920
  let e3 = new Blob([this.response], { type: "application/pdf" });
1934
- J() ? window.navigator.msSaveOrOpenBlob(e3) : (t2 = (window.URL || window.webkitURL).createObjectURL(e3), null != n2.iframe && (n2.iframe.src = t2, document.body.appendChild(n2.iframe)));
1921
+ j() ? window.navigator.msSaveOrOpenBlob(e3) : (t2 = (window.URL || window.webkitURL).createObjectURL(e3), null != n2.iframe && (n2.iframe.src = t2, document.body.appendChild(n2.iframe)));
1935
1922
  } else
1936
1923
  console.log("Could not retrieve remote PDF document.");
1937
1924
  }, i2.send();
@@ -1946,10 +1933,10 @@ var telerikReportViewer = (function (exports) {
1946
1933
  return this.hasPdfPlugin;
1947
1934
  }
1948
1935
  }
1949
- function Z(e2) {
1936
+ function G(e2) {
1950
1937
  return 1e3 * e2;
1951
1938
  }
1952
- class K {
1939
+ class Z {
1953
1940
  constructor(e2, t2, i2) {
1954
1941
  if (this.pingMilliseconds = 0, !e2)
1955
1942
  throw "Error";
@@ -1958,7 +1945,7 @@ var telerikReportViewer = (function (exports) {
1958
1945
  initSessionTimeout(e2) {
1959
1946
  if (!isFinite(e2))
1960
1947
  throw "sessionTimeoutSeconds must be finite";
1961
- this.pingMilliseconds = e2 <= 120 ? Z(e2) / 2 : Z(e2 - 60);
1948
+ this.pingMilliseconds = e2 <= 120 ? G(e2) / 2 : G(e2 - 60);
1962
1949
  }
1963
1950
  start() {
1964
1951
  this.pingMilliseconds <= 0 || (this.interval = setInterval(() => {
@@ -1969,33 +1956,33 @@ var telerikReportViewer = (function (exports) {
1969
1956
  this.interval && (clearInterval(this.interval), this.interval = null);
1970
1957
  }
1971
1958
  }
1972
- var X, Y, Q, ee, te;
1973
- function ie(e2, t2 = "", i2 = "") {
1959
+ var K, X, Y, Q, ee;
1960
+ function te(e2, t2 = "", i2 = "") {
1974
1961
  let n2 = document.createElement(e2);
1975
- return t2 && (n2.id = t2), ne(n2, i2), n2;
1962
+ return t2 && (n2.id = t2), ie(n2, i2), n2;
1976
1963
  }
1977
- function ne(e2, t2) {
1964
+ function ie(e2, t2) {
1978
1965
  if ("" === t2 || !e2)
1979
1966
  return;
1980
1967
  let i2 = t2.trim().split(" ");
1981
1968
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.add(...i2);
1982
1969
  }
1983
- function re(e2, t2) {
1970
+ function ne(e2, t2) {
1984
1971
  if ("" === t2 || !e2)
1985
1972
  return;
1986
1973
  let i2 = t2.trim().split(" ");
1987
1974
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.remove(...i2);
1988
1975
  }
1989
- function se(e2, t2) {
1976
+ function re(e2, t2) {
1990
1977
  return e2.classList.contains(t2);
1991
1978
  }
1992
- function oe(e2) {
1979
+ function se(e2) {
1993
1980
  return e2.offsetParent;
1994
1981
  }
1995
- function ae(e2) {
1982
+ function oe(e2) {
1996
1983
  return parseInt(e2, 10) || 0;
1997
1984
  }
1998
- function le(e2, t2, i2, n2 = 0, r2 = 0) {
1985
+ function ae(e2, t2, i2, n2 = 0, r2 = 0) {
1999
1986
  let s2 = `${n2 = n2 || 0} ${r2 = r2 || 0}`;
2000
1987
  !function(e3, t3) {
2001
1988
  e3.style.setProperty("transform", t3), e3.style.setProperty("-moz-transform", t3), e3.style.setProperty("-ms-transform", t3), e3.style.setProperty("-webkit-transform", t3), e3.style.setProperty("-o-transform", t3);
@@ -2003,11 +1990,11 @@ var telerikReportViewer = (function (exports) {
2003
1990
  e3.style.setProperty("transform-origin", t3), e3.style.setProperty("-moz-transform-origin", t3), e3.style.setProperty("-ms-transform-origin", t3), e3.style.setProperty("-webkit-transform-origin", t3), e3.style.setProperty("-o-transform-origin", t3);
2004
1991
  }(e2, s2);
2005
1992
  }
2006
- function he(e2) {
2007
- let t2 = ie("div");
1993
+ function le(e2) {
1994
+ let t2 = te("div");
2008
1995
  return t2.textContent = e2, t2.innerHTML;
2009
1996
  }
2010
- function ce(e2) {
1997
+ function he(e2) {
2011
1998
  if (e2 && e2.length < 6) {
2012
1999
  let t3 = 1, i2 = e2.split("");
2013
2000
  for ("#" !== i2[0] && (t3 = 0); t3 < i2.length; t3++)
@@ -2017,16 +2004,16 @@ var telerikReportViewer = (function (exports) {
2017
2004
  let t2 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e2);
2018
2005
  return t2 ? parseInt(t2[1], 16) + ", " + parseInt(t2[2], 16) + ", " + parseInt(t2[3], 16) : null;
2019
2006
  }
2020
- function de(e2) {
2007
+ function ce(e2) {
2021
2008
  return !!e2 && e2.indexOf(",") > -1;
2022
2009
  }
2023
- function ue(e2) {
2010
+ function de(e2) {
2024
2011
  if ("transparent" === e2.toLowerCase())
2025
2012
  return 0;
2026
- if (!de(e2))
2013
+ if (!ce(e2))
2027
2014
  return 1;
2028
2015
  if (-1 !== e2.indexOf("#")) {
2029
- let t3 = ce(e2);
2016
+ let t3 = he(e2);
2030
2017
  if (null === t3)
2031
2018
  return 1;
2032
2019
  e2 = t3;
@@ -2036,34 +2023,34 @@ var telerikReportViewer = (function (exports) {
2036
2023
  });
2037
2024
  return 4 === t2.length ? parseFloat((parseFloat(t2[3].replace(/[()]/g, "")) / 255).toFixed(2)) : 1;
2038
2025
  }
2039
- function pe(e2, t2) {
2040
- let i2 = ie("div");
2026
+ function ue(e2, t2) {
2027
+ let i2 = te("div");
2041
2028
  for (i2.innerHTML = t2; i2.childNodes.length; )
2042
2029
  e2.appendChild(i2.childNodes[0]);
2043
2030
  }
2044
- function ge(e2, t2) {
2045
- let i2 = ie("div");
2031
+ function pe(e2, t2) {
2032
+ let i2 = te("div");
2046
2033
  for (i2.innerHTML = t2; i2.childNodes.length; )
2047
2034
  e2.prepend(i2.childNodes[i2.childNodes.length - 1]);
2048
2035
  }
2049
- function me(e2, t2) {
2036
+ function ge(e2, t2) {
2050
2037
  return e2 ? e2.querySelector(t2) : null;
2051
2038
  }
2052
- function fe(e2, t2) {
2039
+ function me(e2, t2) {
2053
2040
  var i2;
2054
2041
  return e2 && e2.attributes && (null === (i2 = e2.attributes[t2]) || void 0 === i2 ? void 0 : i2.value) || "";
2055
2042
  }
2056
- function ve(e2) {
2043
+ function fe(e2) {
2057
2044
  let t2 = e2.parentElement;
2058
- return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : ve(t2) : null;
2045
+ return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : fe(t2) : null;
2059
2046
  }
2060
- function Pe(e2, t2 = 300) {
2047
+ function ve(e2, t2 = 300) {
2061
2048
  let i2;
2062
2049
  return function(...n2) {
2063
2050
  clearTimeout(i2), i2 = setTimeout(() => e2.apply(this, n2), t2);
2064
2051
  };
2065
2052
  }
2066
- function Ce(e2, t2) {
2053
+ function Pe(e2, t2) {
2067
2054
  let i2 = null;
2068
2055
  return function(n2, ...r2) {
2069
2056
  i2 || (i2 = setTimeout(function() {
@@ -2071,24 +2058,24 @@ var telerikReportViewer = (function (exports) {
2071
2058
  }, t2));
2072
2059
  };
2073
2060
  }
2074
- function ye(e2, t2) {
2061
+ function Ce(e2, t2) {
2075
2062
  return !!e2.responseJSON && e2.responseJSON.exceptionType === t2;
2076
2063
  }
2064
+ function ye(e2) {
2065
+ return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
2066
+ }
2077
2067
  function Se(e2) {
2078
- return ye(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
2068
+ return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
2079
2069
  }
2080
2070
  function Ie(e2) {
2081
- return ye(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
2082
- }
2083
- function be(e2) {
2084
2071
  return !!e2 && "internalservererror" === e2.split(" ").join("").toLowerCase();
2085
2072
  }
2086
- function we(e2, ...t2) {
2073
+ function be(e2, ...t2) {
2087
2074
  return e2.replace(/{(\d+)}/g, (e3, i2) => t2[i2] || "");
2088
2075
  }
2089
- function Te(e2, t2) {
2076
+ function we(e2, t2) {
2090
2077
  let i2, n2;
2091
- if (Ae(e2))
2078
+ if (Te(e2))
2092
2079
  for (i2 = e2.length, n2 = 0; n2 < i2 && false !== t2.call(e2[n2], n2, e2[n2]); n2++)
2093
2080
  ;
2094
2081
  else
@@ -2097,40 +2084,40 @@ var telerikReportViewer = (function (exports) {
2097
2084
  break;
2098
2085
  return e2;
2099
2086
  }
2100
- function Ae(e2) {
2087
+ function Te(e2) {
2101
2088
  if (Array.isArray(e2))
2102
2089
  return true;
2103
2090
  return "number" == typeof (!!e2 && "length" in e2 && e2.length);
2104
2091
  }
2105
- function Re(e2) {
2092
+ function Ae(e2) {
2106
2093
  return /^(\-|\+)?([0-9]+)$/.test(e2) ? Number(e2) : NaN;
2107
2094
  }
2108
- function Ee(e2) {
2095
+ function Re(e2) {
2109
2096
  return /^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(e2) ? Number(e2) : NaN;
2110
2097
  }
2111
- function Me(e2) {
2098
+ function Ee(e2) {
2112
2099
  return e2 instanceof Date ? e2 : (/Z|[\+\-]\d\d:?\d\d/i.test(e2) || (e2 += "Z"), new Date(e2));
2113
2100
  }
2114
- e.PageMode = void 0, (X = e.PageMode || (e.PageMode = {}))[X.ContinuousScroll = 0] = "ContinuousScroll", X[X.SinglePage = 1] = "SinglePage", e.PrintMode = void 0, (Y = e.PrintMode || (e.PrintMode = {}))[Y.AutoSelect = 0] = "AutoSelect", Y[Y.ForcePDFPlugin = 1] = "ForcePDFPlugin", Y[Y.ForcePDFFile = 2] = "ForcePDFFile", e.ScaleMode = void 0, (Q = e.ScaleMode || (e.ScaleMode = {}))[Q.FitPageWidth = 0] = "FitPageWidth", Q[Q.FitPage = 1] = "FitPage", Q[Q.Specific = 2] = "Specific", e.ServiceType = void 0, (ee = e.ServiceType || (e.ServiceType = {}))[ee.REST = 0] = "REST", ee[ee.ReportServer = 1] = "ReportServer", e.ViewMode = void 0, (te = e.ViewMode || (e.ViewMode = {}))[te.Interactive = 0] = "Interactive", te[te.PrintPreview = 1] = "PrintPreview";
2115
- class xe {
2101
+ e.PageMode = void 0, (K = e.PageMode || (e.PageMode = {}))[K.ContinuousScroll = 0] = "ContinuousScroll", K[K.SinglePage = 1] = "SinglePage", e.PrintMode = void 0, (X = e.PrintMode || (e.PrintMode = {}))[X.AutoSelect = 0] = "AutoSelect", X[X.ForcePDFPlugin = 1] = "ForcePDFPlugin", X[X.ForcePDFFile = 2] = "ForcePDFFile", e.ScaleMode = void 0, (Y = e.ScaleMode || (e.ScaleMode = {}))[Y.FitPageWidth = 0] = "FitPageWidth", Y[Y.FitPage = 1] = "FitPage", Y[Y.Specific = 2] = "Specific", e.ServiceType = void 0, (Q = e.ServiceType || (e.ServiceType = {}))[Q.REST = 0] = "REST", Q[Q.ReportServer = 1] = "ReportServer", e.ViewMode = void 0, (ee = e.ViewMode || (e.ViewMode = {}))[ee.Interactive = 0] = "Interactive", ee[ee.PrintPreview = 1] = "PrintPreview";
2102
+ class Me {
2116
2103
  constructor(e2, t2) {
2117
2104
  this.handled = false, this.deviceInfo = e2, this.format = t2;
2118
2105
  }
2119
2106
  }
2120
- class ke extends a {
2107
+ class xe extends r {
2121
2108
  constructor(e2, t2, i2) {
2122
2109
  super(), this.handled = false, this.body = e2.body, this.cc = e2.cc, this.format = e2.format, this.from = e2.from, this.subject = e2.subject, this.to = e2.to, this.deviceInfo = t2, this.url = i2;
2123
2110
  }
2124
2111
  }
2125
- const Le = "System.Int64", De = "System.Double", Ne = "System.String", Fe = "System.DateTime", Oe = "System.Boolean";
2126
- var Ve = function() {
2112
+ const ke = "System.Int64", Le = "System.Double", Ne = "System.String", De = "System.DateTime", Fe = "System.Boolean";
2113
+ var Oe = function() {
2127
2114
  var e2 = {};
2128
2115
  function t2(e3, t3, i3, n2) {
2129
2116
  var r2 = [].concat(t3).map(function(t4) {
2130
2117
  return function(e4, t5, i4) {
2131
2118
  if (e4.availableValues) {
2132
2119
  var n3 = false;
2133
- if (Te(e4.availableValues, function(e5, r3) {
2120
+ if (we(e4.availableValues, function(e5, r3) {
2134
2121
  return !(n3 = i4(t5, r3.value));
2135
2122
  }), !n3) {
2136
2123
  if (e4.allowNull && !t5)
@@ -2167,9 +2154,9 @@ var telerikReportViewer = (function (exports) {
2167
2154
  }, function(e4, t3) {
2168
2155
  return e4 == t3;
2169
2156
  });
2170
- } }, e2[De] = { validate: function(e3, n2) {
2157
+ } }, e2[Le] = { validate: function(e3, n2) {
2171
2158
  return t2(e3, n2, function(t3) {
2172
- var n3 = Ee(t3);
2159
+ var n3 = Re(t3);
2173
2160
  if (isNaN(n3)) {
2174
2161
  if (i2(e3, t3))
2175
2162
  return null;
@@ -2177,11 +2164,11 @@ var telerikReportViewer = (function (exports) {
2177
2164
  }
2178
2165
  return n3;
2179
2166
  }, function(e4, t3) {
2180
- return Ee(e4) == Ee(t3);
2167
+ return Re(e4) == Re(t3);
2181
2168
  });
2182
- } }, e2[Le] = { validate: function(e3, n2) {
2169
+ } }, e2[ke] = { validate: function(e3, n2) {
2183
2170
  return t2(e3, n2, function(t3) {
2184
- var n3 = Re(t3);
2171
+ var n3 = Ae(t3);
2185
2172
  if (isNaN(n3)) {
2186
2173
  if (i2(e3, t3))
2187
2174
  return null;
@@ -2189,19 +2176,19 @@ var telerikReportViewer = (function (exports) {
2189
2176
  }
2190
2177
  return n3;
2191
2178
  }, function(e4, t3) {
2192
- return Re(e4) == Ee(t3);
2179
+ return Ae(e4) == Re(t3);
2193
2180
  });
2194
- } }, e2[Fe] = { validate: function(e3, i3) {
2181
+ } }, e2[De] = { validate: function(e3, i3) {
2195
2182
  return t2(e3, i3, function(t3) {
2196
2183
  if (e3.allowNull && (null === t3 || "" === t3 || void 0 === t3))
2197
2184
  return null;
2198
2185
  if (!isNaN(Date.parse(t3)))
2199
- return e3.availableValues ? t3 : Me(t3);
2186
+ return e3.availableValues ? t3 : Ee(t3);
2200
2187
  throw "Please input a valid date.";
2201
2188
  }, function(e4, t3) {
2202
- return e4 = Me(e4), t3 = Me(t3), e4.getTime() == t3.getTime();
2189
+ return e4 = Ee(e4), t3 = Ee(t3), e4.getTime() == t3.getTime();
2203
2190
  });
2204
- } }, e2[Oe] = { validate: function(e3, n2) {
2191
+ } }, e2[Fe] = { validate: function(e3, n2) {
2205
2192
  return t2(e3, n2, function(t3) {
2206
2193
  if (-1 != ["true", "false"].indexOf(String(t3).toLowerCase()))
2207
2194
  return Boolean(t3);
@@ -2214,11 +2201,11 @@ var telerikReportViewer = (function (exports) {
2214
2201
  } }, { validate: function(t3, i3) {
2215
2202
  var n2 = e2[t3.type];
2216
2203
  if (!n2)
2217
- throw we("Cannot validate parameter of type {type}.", t3);
2204
+ throw be("Cannot validate parameter of type {type}.", t3);
2218
2205
  return n2.validate(t3, i3);
2219
2206
  } };
2220
2207
  }();
2221
- function ze(e2, t2, i2) {
2208
+ function Ve(e2, t2, i2) {
2222
2209
  try {
2223
2210
  const n2 = e2.availableValues.find((e3) => e3.value === t2);
2224
2211
  if (!n2) {
@@ -2231,18 +2218,18 @@ var telerikReportViewer = (function (exports) {
2231
2218
  return;
2232
2219
  }
2233
2220
  }
2234
- function _e(e2, t2, i2) {
2221
+ function ze(e2, t2, i2) {
2235
2222
  const n2 = [];
2236
2223
  for (let r2 in t2)
2237
- n2.push(ze(e2, t2[r2], i2));
2224
+ n2.push(Ve(e2, t2[r2], i2));
2238
2225
  return n2;
2239
2226
  }
2240
- class Ue {
2227
+ class _e {
2241
2228
  constructor(e2 = "", t2 = {}) {
2242
2229
  this.report = e2, this.parameters = t2;
2243
2230
  }
2244
2231
  }
2245
- class $e extends H {
2232
+ class Ue extends $ {
2246
2233
  constructor(e2) {
2247
2234
  super(), this.resizeObserver = null, this.element = e2, this.initResizeObserver();
2248
2235
  }
@@ -2250,7 +2237,7 @@ var telerikReportViewer = (function (exports) {
2250
2237
  this.destroyResizeObserver();
2251
2238
  }
2252
2239
  initResizeObserver() {
2253
- this.debounceResize = Pe(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
2240
+ this.debounceResize = ve(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
2254
2241
  }
2255
2242
  destroyResizeObserver() {
2256
2243
  this.resizeObserver && this.resizeObserver.unobserve(this.element), this.resizeObserver = this.debounceResize = null;
@@ -2259,8 +2246,8 @@ var telerikReportViewer = (function (exports) {
2259
2246
  e2[0].target === this.element && this.emit("resize");
2260
2247
  }
2261
2248
  }
2262
- const He = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" style="{1}" data-page="{0}"><div class="trv-skeleton-wrapper" style="{2}"></div></div>';
2263
- class Be {
2249
+ const $e = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" style="{1}" data-page="{0}"><div class="trv-skeleton-wrapper" style="{2}"></div></div>';
2250
+ class He {
2264
2251
  constructor(t2, i2, n2) {
2265
2252
  this.enabled = false, this.viewMode = e.ViewMode.Interactive, this.scrollInProgress = false, this.additionalTopOffset = 130, this.onClickHandler = null, this.debounceScroll = null, this.throttleScroll = null, this.oldScrollTopPosition = 0, this.lastLoadedPage = null, this.placeholder = t2, this.pageContainer = t2.querySelector(".trv-page-container"), this.pageWrapper = t2.querySelector(".trv-page-wrapper"), this.contentArea = i2, this.controller = n2, this.controller.getPageMode() === e.PageMode.ContinuousScroll && this.enable(), this.controller.on("loadedReportChange", this.disable.bind(this)).on("viewModeChanged", this.disable.bind(this)).on("scaleChanged", this.onScaleChanged.bind(this)).on("interactiveActionExecuting", this.onInteractiveActionExecuting.bind(this)).on("pageLoaded", this.onPageLoaded.bind(this));
2266
2253
  }
@@ -2282,10 +2269,10 @@ var telerikReportViewer = (function (exports) {
2282
2269
  return this.enabled;
2283
2270
  }
2284
2271
  enable() {
2285
- this.enabled = true, ne(this.placeholder, "scrollable"), this.initEvents();
2272
+ this.enabled = true, ie(this.placeholder, "scrollable"), this.initEvents();
2286
2273
  }
2287
2274
  disable() {
2288
- this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, re(this.placeholder, "scrollable"), this.unbind());
2275
+ this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, ne(this.placeholder, "scrollable"), this.unbind());
2289
2276
  }
2290
2277
  renderPage(e2) {
2291
2278
  let t2 = this.controller.getViewMode(), i2 = this.findPageElement(e2.pageNumber);
@@ -2300,7 +2287,7 @@ var telerikReportViewer = (function (exports) {
2300
2287
  this.enabled && this.currentPageNumber() > 0 && this.keepCurrentPageInToView();
2301
2288
  }
2302
2289
  setCurrentPage(e2) {
2303
- e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (re(this.findElement(".k-state-default"), "k-state-default"), ne(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
2290
+ e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (ne(this.findElement(".k-state-default"), "k-state-default"), ie(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
2304
2291
  }
2305
2292
  updatePageArea(e2) {
2306
2293
  var t2;
@@ -2325,18 +2312,18 @@ var telerikReportViewer = (function (exports) {
2325
2312
  return this.controller.getCurrentPageNumber();
2326
2313
  }
2327
2314
  isSkeletonScreen(e2, t2) {
2328
- return !(!e2 && !(e2 = this.findPageElement(t2))) && se(e2, "trv-skeleton-" + t2);
2315
+ return !(!e2 && !(e2 = this.findPageElement(t2))) && re(e2, "trv-skeleton-" + t2);
2329
2316
  }
2330
2317
  addSkeletonScreen(e2, t2) {
2331
- let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 = fe(n2, "style"), s2 = fe(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = we(He, e2, r2, s2);
2332
- t2 ? ge(this.pageWrapper, o2) : pe(this.pageWrapper, o2);
2318
+ let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 = me(n2, "style"), s2 = me(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = be($e, e2, r2, s2);
2319
+ t2 ? pe(this.pageWrapper, o2) : ue(this.pageWrapper, o2);
2333
2320
  }
2334
2321
  generateSkeletonScreens(e2) {
2335
2322
  var t2;
2336
- let i2 = "", n2 = this.findPageElement(1), r2 = fe(n2, "style"), s2 = fe(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = null === (t2 = this.findLastElement(".trv-report-page")) || void 0 === t2 ? void 0 : t2.dataset.page, a2 = o2 ? parseInt(o2) + 1 : 1;
2323
+ let i2 = "", n2 = this.findPageElement(1), r2 = me(n2, "style"), s2 = me(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = null === (t2 = this.findLastElement(".trv-report-page")) || void 0 === t2 ? void 0 : t2.dataset.page, a2 = o2 ? parseInt(o2) + 1 : 1;
2337
2324
  for (; a2 < e2; a2++)
2338
- i2 += we(He, a2, r2, s2);
2339
- pe(this.pageWrapper, i2);
2325
+ i2 += be($e, a2, r2, s2);
2326
+ ue(this.pageWrapper, i2);
2340
2327
  }
2341
2328
  loadMorePages() {
2342
2329
  var e2;
@@ -2387,10 +2374,10 @@ var telerikReportViewer = (function (exports) {
2387
2374
  }
2388
2375
  }
2389
2376
  initEvents() {
2390
- this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = Pe(() => {
2377
+ this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = ve(() => {
2391
2378
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
2392
2379
  !this.scrollInProgress && e2.length && this.oldScrollTopPosition !== t2 && this.advanceCurrentPage(Array.from(e2));
2393
- }, 250), this.throttleScroll = Ce(() => {
2380
+ }, 250), this.throttleScroll = Pe(() => {
2394
2381
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
2395
2382
  this.scrollInProgress || this.oldScrollTopPosition === t2 || (this.oldScrollTopPosition > t2 ? this.scrollUp(Array.from(e2)) : this.scrollDown(Array.from(e2), t2)), this.oldScrollTopPosition = t2;
2396
2383
  }, 250), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("scroll", this.debounceScroll), this.pageContainer.addEventListener("scroll", this.throttleScroll);
@@ -2485,7 +2472,7 @@ var telerikReportViewer = (function (exports) {
2485
2472
  return i2 && i2.length ? i2[i2.length - 1] : null;
2486
2473
  }
2487
2474
  }
2488
- class qe {
2475
+ class Be {
2489
2476
  constructor() {
2490
2477
  this.scaleFactor = 0, this.placeholder = null, this.scrollableContainer = null, this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.freezeMaxZIndex = {}, this.freezeBGColor = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} }, this.zIndex = 1;
2491
2478
  }
@@ -2493,7 +2480,7 @@ var telerikReportViewer = (function (exports) {
2493
2480
  this.reset(e2), this.attachToScrollEvent();
2494
2481
  }
2495
2482
  reset(e2) {
2496
- this.placeholder = e2, this.scrollableContainer = me(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
2483
+ this.placeholder = e2, this.scrollableContainer = ge(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
2497
2484
  }
2498
2485
  setScaleFactor(e2) {
2499
2486
  this.scaleFactor = e2;
@@ -2516,7 +2503,7 @@ var telerikReportViewer = (function (exports) {
2516
2503
  saveFreezeItemsInitialState(e2) {
2517
2504
  var t2, i2, n2;
2518
2505
  let r2 = null === (t2 = this.placeholder) || void 0 === t2 ? void 0 : t2.querySelectorAll("[data-sticky-direction][data-sticky-id='" + e2 + "']"), s2 = null === (i2 = this.placeholder) || void 0 === i2 ? void 0 : i2.querySelectorAll("[data-reporting-action][data-sticky-id='" + e2 + "']"), o2 = null, a2 = null, l2 = null, h2 = null;
2519
- this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = me(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
2506
+ this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = ge(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
2520
2507
  var i3;
2521
2508
  let n3 = t3.dataset.stickyDirection, r3 = (null === (i3 = t3.dataset.id) || void 0 === i3 ? void 0 : i3.toString()) || "", s3 = t3.offsetLeft / this.scaleFactor, c2 = t3.offsetLeft + t3.offsetWidth * this.scaleFactor, d2 = t3.offsetTop / this.scaleFactor, u2 = t3.offsetTop + t3.offsetHeight * this.scaleFactor, p2 = (e3, t4) => null === e3 || t4 < e3 ? t4 : e3, g2 = (e3, t4) => null === e3 || t4 > e3 ? t4 : e3;
2522
2509
  switch (n3) {
@@ -2538,7 +2525,7 @@ var telerikReportViewer = (function (exports) {
2538
2525
  }
2539
2526
  updateFreezeItemsOnScroll(e2, t2, i2) {
2540
2527
  var n2, r2;
2541
- let s2 = me(this.placeholder, "div[data-id='" + e2 + "']");
2528
+ let s2 = ge(this.placeholder, "div[data-id='" + e2 + "']");
2542
2529
  if (!s2)
2543
2530
  return;
2544
2531
  let o2 = null === (n2 = this.placeholder) || void 0 === n2 ? void 0 : n2.querySelectorAll("[data-sticky-direction*='Horizontal'][data-sticky-id='" + e2 + "']"), a2 = null === (r2 = this.placeholder) || void 0 === r2 ? void 0 : r2.querySelectorAll("[data-sticky-direction*='Vertical'][data-sticky-id='" + e2 + "']");
@@ -2563,7 +2550,7 @@ var telerikReportViewer = (function (exports) {
2563
2550
  "IMG" !== e2.tagName && (t2 && this.isFrozen(r2) && !i2 ? e2.style.backgroundColor = this.freezeBGColor[r2] : e2.style.backgroundColor = n2 ? this.freezeBGColor[r2] : "initial");
2564
2551
  }
2565
2552
  hasSetBgColor(e2) {
2566
- return ue(e2) > 0;
2553
+ return de(e2) > 0;
2567
2554
  }
2568
2555
  isFrozen(e2) {
2569
2556
  return this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2];
@@ -2583,21 +2570,21 @@ var telerikReportViewer = (function (exports) {
2583
2570
  return e2.top > t2.scrollTop - n2 && e2.top < t2.scrollTop + n2 + i2.height;
2584
2571
  }
2585
2572
  }
2586
- const We = /{(\w+?)}/g, je = "trv-initial-image-styles";
2587
- function Je(e2, t2) {
2573
+ const qe = /{(\w+?)}/g, We = "trv-initial-image-styles";
2574
+ function je(e2, t2) {
2588
2575
  let i2 = Array.isArray(t2);
2589
- return e2 ? e2.replace(We, function(e3, n2) {
2576
+ return e2 ? e2.replace(qe, function(e3, n2) {
2590
2577
  return t2[i2 ? parseInt(n2) : n2];
2591
2578
  }) : "";
2592
2579
  }
2593
- const Ge = "trv-search-dialog-shaded-result", Ze = "trv-search-dialog-highlighted-result";
2594
- e.BasicAuth = I, e.BookmarkNode = class {
2580
+ const Je = "trv-search-dialog-shaded-result", Ge = "trv-search-dialog-highlighted-result";
2581
+ e.BasicAuth = C, e.BookmarkNode = class {
2595
2582
  constructor() {
2596
2583
  this.id = "", this.text = "", this.page = 0, this.items = null;
2597
2584
  }
2598
- }, e.ConnectionConfig = w, e.ConnectionConfigNoAuth = T, e.ConnectionConfigServerCredentials = R, e.ConnectionConfigServerNoAuth = A, e.ConnectionConfigServerToken = E, e.ContentArea = class {
2585
+ }, e.ConnectionConfig = b, e.ConnectionConfigNoAuth = w, e.ConnectionConfigServerCredentials = A, e.ConnectionConfigServerNoAuth = T, e.ConnectionConfigServerToken = R, e.ContentArea = class {
2599
2586
  constructor(e2, t2, i2, n2 = {}) {
2600
- this.actions = [], this.pendingElement = null, this.documentReady = true, this.reportPageIsLoaded = false, this.navigateToPageOnDocReady = 0, this.navigateToElementOnDocReady = null, this.onClickHandler = null, this.onMouseEnterHandler = null, this.onMouseLeaveHandler = null, this.isNewReportSource = false, this.uiFreezeCoordinator = null, this.initialPageAreaImageUrl = "", this.showPageAreaImage = false, this.placeholder = e2.querySelector(".trv-pages-pane, .trv-pages-area"), this.pageContainer = e2.querySelector(".trv-page-container"), this.pageWrapper = e2.querySelector(".trv-page-wrapper"), this.parametersContainer = e2.querySelector(".trv-parameters-area"), this.notification = e2.querySelector(".trv-notification, .trv-error-pane"), this.scrollManager = new Be(this.placeholder, this, t2), this.resizeService = new $e(this.pageContainer), this.resizeService.on("resize", this.onResize.bind(this)), this.controller = t2, this.controller.on("pageReady", this.onPageReady.bind(this)).on("navigateToPage", this.navigateToPage.bind(this)).on("serverActionStarted", this.onServerActionStarted.bind(this)).on("reportSourceChanged", this.onReportSourceChanged.bind(this)).on("scaleChanged", this.updatePageDimensions.bind(this)).on("scaleModeChanged", this.updatePageDimensions.bind(this)).on("printStarted", this.onPrintStarted.bind(this)).on("printDocumentReady", this.onPrintDocumentReady.bind(this)).on("exportStarted", this.onExportStarted.bind(this)).on("exportDocumentReady", this.onExportDocumentReady.bind(this)).onAsync("beforeLoadReport", this.onBeforeLoadReport.bind(this)).on("beginLoadReport", this.onBeginLoadReport.bind(this)).on("reportLoadProgress", this.onReportLoadProgress.bind(this)).onAsync("reportLoadComplete", this.onReportLoadComplete.bind(this)).onAsync("reportAutoRunOff", this.onReportAutoRunOff.bind(this)).on("renderingStopped", this.onRenderingStopped.bind(this)).on("missingOrInvalidParameters", this.onMissingOrInvalidParameters.bind(this)).on("noReport", this.onNoReport.bind(this)).on("error", this.onError.bind(this)), this.messages = i2, this.enableAccessibility = n2.enableAccessibility || false, this.initialPageAreaImageUrl = n2.initialPageAreaImageUrl || "";
2587
+ this.actions = [], this.pendingElement = null, this.documentReady = true, this.reportPageIsLoaded = false, this.navigateToPageOnDocReady = 0, this.navigateToElementOnDocReady = null, this.onClickHandler = null, this.onMouseEnterHandler = null, this.onMouseLeaveHandler = null, this.isNewReportSource = false, this.uiFreezeCoordinator = null, this.initialPageAreaImageUrl = "", this.showPageAreaImage = false, this.placeholder = e2.querySelector(".trv-pages-pane, .trv-pages-area"), this.pageContainer = e2.querySelector(".trv-page-container"), this.pageWrapper = e2.querySelector(".trv-page-wrapper"), this.parametersContainer = e2.querySelector(".trv-parameters-area"), this.notification = e2.querySelector(".trv-notification, .trv-error-pane"), this.scrollManager = new He(this.placeholder, this, t2), this.resizeService = new Ue(this.pageContainer), this.resizeService.on("resize", this.onResize.bind(this)), this.controller = t2, this.controller.on("pageReady", this.onPageReady.bind(this)).on("navigateToPage", this.navigateToPage.bind(this)).on("serverActionStarted", this.onServerActionStarted.bind(this)).on("reportSourceChanged", this.onReportSourceChanged.bind(this)).on("scaleChanged", this.updatePageDimensions.bind(this)).on("scaleModeChanged", this.updatePageDimensions.bind(this)).on("printStarted", this.onPrintStarted.bind(this)).on("printDocumentReady", this.onPrintDocumentReady.bind(this)).on("exportStarted", this.onExportStarted.bind(this)).on("exportDocumentReady", this.onExportDocumentReady.bind(this)).onAsync("beforeLoadReport", this.onBeforeLoadReport.bind(this)).on("beginLoadReport", this.onBeginLoadReport.bind(this)).on("reportLoadProgress", this.onReportLoadProgress.bind(this)).onAsync("reportLoadComplete", this.onReportLoadComplete.bind(this)).onAsync("reportAutoRunOff", this.onReportAutoRunOff.bind(this)).on("renderingStopped", this.onRenderingStopped.bind(this)).on("missingOrInvalidParameters", this.onMissingOrInvalidParameters.bind(this)).on("noReport", this.onNoReport.bind(this)).on("error", this.onError.bind(this)).on("showNotification", this.onShowNotification.bind(this)), this.messages = i2, this.enableAccessibility = n2.enableAccessibility || false, this.initialPageAreaImageUrl = n2.initialPageAreaImageUrl || "";
2601
2588
  }
2602
2589
  destroy() {
2603
2590
  this.resizeService && this.resizeService.destroy();
@@ -2624,10 +2611,10 @@ var telerikReportViewer = (function (exports) {
2624
2611
  this.documentReady = true, this.invalidateCurrentlyLoadedPage();
2625
2612
  }
2626
2613
  onReportLoadProgress(e2) {
2627
- this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(Je(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
2614
+ this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(je(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
2628
2615
  }
2629
2616
  onReportLoadComplete(t2) {
2630
- 0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(Je(this.messages.ReportViewer_LoadedReportPagesComplete, [t2.pageCount])), this.showNotificationTimeoutId = window.setTimeout(this.hideNotification.bind(this), 2e3), this.disableParametersArea(false), this.enableInteractivity()), t2.containsFrozenContent && null === this.uiFreezeCoordinator && (this.uiFreezeCoordinator = new qe(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
2617
+ 0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(je(this.messages.ReportViewer_LoadedReportPagesComplete, [t2.pageCount])), this.showNotificationTimeoutId = window.setTimeout(this.hideNotification.bind(this), 2e3), this.disableParametersArea(false), this.enableInteractivity()), t2.containsFrozenContent && null === this.uiFreezeCoordinator && (this.uiFreezeCoordinator = new Be(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
2631
2618
  }
2632
2619
  onReportAutoRunOff() {
2633
2620
  this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
@@ -2638,6 +2625,9 @@ var telerikReportViewer = (function (exports) {
2638
2625
  onMissingOrInvalidParameters() {
2639
2626
  this.initialPageAreaImageUrl && !this.reportPageIsLoaded && (this.clearPage(), this.setPageAreaImage());
2640
2627
  }
2628
+ onShowNotification(e2) {
2629
+ this.showNotification(e2);
2630
+ }
2641
2631
  onError(e2, t2 = true) {
2642
2632
  t2 && (this.disablePagesArea(false), this.disableParametersArea(false), this.clearPage()), this.showError(e2);
2643
2633
  }
@@ -2721,14 +2711,14 @@ var telerikReportViewer = (function (exports) {
2721
2711
  }
2722
2712
  let e3 = 0, i3 = 0;
2723
2713
  for (; n2 && n2 !== this.pageContainer; ) {
2724
- if (se(n2, "trv-page-wrapper")) {
2714
+ if (re(n2, "trv-page-wrapper")) {
2725
2715
  let t3 = n2.dataset.pageScale;
2726
2716
  if ("string" == typeof t3) {
2727
2717
  let n3 = parseFloat(t3);
2728
2718
  e3 *= n3, i3 *= n3;
2729
2719
  }
2730
2720
  }
2731
- e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = oe(n2);
2721
+ e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = se(n2);
2732
2722
  }
2733
2723
  this.scrollManager.getEnabled() && t2 ? this.scrollManager.navigateToElement(e3, t2) : (this.pageContainer.scrollTop = e3, this.pageContainer.scrollLeft = i3);
2734
2724
  } else
@@ -2742,7 +2732,7 @@ var telerikReportViewer = (function (exports) {
2742
2732
  return !isNaN(t2) && t2 > -1 ? e2 : this.findNextFocusableElement(e2.nextElementSibling);
2743
2733
  }
2744
2734
  disablePagesArea(e2) {
2745
- e2 ? ne(this.placeholder, "trv-loading") : re(this.placeholder, "trv-loading");
2735
+ e2 ? ie(this.placeholder, "trv-loading") : ne(this.placeholder, "trv-loading");
2746
2736
  }
2747
2737
  disableParametersArea(e2) {
2748
2738
  var t2, i2;
@@ -2753,13 +2743,13 @@ var telerikReportViewer = (function (exports) {
2753
2743
  }
2754
2744
  showNotification(e2 = "", t2 = "info") {
2755
2745
  let i2 = this.notification.dataset.type;
2756
- i2 && re(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
2746
+ i2 && ne(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
2757
2747
  let n2 = this.notification.querySelector(".k-notification-content, .trv-error-message"), r2 = null == e2 ? void 0 : e2.split(/\r?\n/);
2758
- n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", ne(this.notification, `k-notification-${t2}`), re(this.notification, "k-hidden");
2748
+ n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", ie(this.notification, `k-notification-${t2}`), ne(this.notification, "k-hidden");
2759
2749
  }
2760
2750
  hideNotification() {
2761
2751
  let e2 = String(this.notification.dataset.type);
2762
- delete this.notification.dataset.type, re(this.notification, `k-notification-${e2}`), ne(this.notification, "k-hidden");
2752
+ delete this.notification.dataset.type, ne(this.notification, `k-notification-${e2}`), ie(this.notification, "k-hidden");
2763
2753
  }
2764
2754
  pageNo(e2) {
2765
2755
  var t2;
@@ -2782,7 +2772,7 @@ var telerikReportViewer = (function (exports) {
2782
2772
  r2 = JSON.parse(n2.dataset.box);
2783
2773
  else {
2784
2774
  let e2 = getComputedStyle(n2), i3 = getComputedStyle(t2);
2785
- r2 = { padLeft: ae(i3.marginLeft) + ae(e2.borderLeftWidth) + ae(e2.paddingLeft), padRight: ae(i3.marginRight) + ae(e2.borderRightWidth) + ae(e2.paddingRight), padTop: ae(i3.marginTop) + ae(e2.borderTopWidth) + ae(e2.paddingTop), padBottom: ae(i3.marginBottom) + ae(e2.borderBottomWidth) + ae(e2.paddingBottom) }, n2.dataset.box = JSON.stringify(r2);
2775
+ r2 = { padLeft: oe(i3.marginLeft) + oe(e2.borderLeftWidth) + oe(e2.paddingLeft), padRight: oe(i3.marginRight) + oe(e2.borderRightWidth) + oe(e2.paddingRight), padTop: oe(i3.marginTop) + oe(e2.borderTopWidth) + oe(e2.paddingTop), padBottom: oe(i3.marginBottom) + oe(e2.borderBottomWidth) + oe(e2.paddingBottom) }, n2.dataset.box = JSON.stringify(r2);
2786
2776
  }
2787
2777
  let a2 = s2.offsetWidth, l2 = s2.offsetHeight;
2788
2778
  if (0 === a2) {
@@ -2791,7 +2781,7 @@ var telerikReportViewer = (function (exports) {
2791
2781
  }
2792
2782
  const h2 = this.controller.getScaleMode(), c2 = l2 > a2 && h2 === e.ScaleMode.FitPageWidth ? 20 : 0, d2 = (this.pageContainer.clientWidth - c2 - r2.padLeft - r2.padRight) / a2, u2 = (this.pageContainer.clientHeight - 1 - r2.padTop - r2.padBottom) / l2;
2793
2783
  let p2 = this.controller.getScale();
2794
- h2 === e.ScaleMode.FitPageWidth ? p2 = d2 : p2 && h2 !== e.ScaleMode.FitPage || (p2 = Math.min(d2, u2)), null !== this.uiFreezeCoordinator && this.uiFreezeCoordinator.setScaleFactor(p2), t2.dataset.pageScale = p2.toString(), n2.dataset.pageScale = p2.toString(), o2 || le(s2, p2, p2), n2.style.height = p2 * l2 + "px", n2.style.width = p2 * a2 + "px", this.controller.setScale(p2, true);
2784
+ h2 === e.ScaleMode.FitPageWidth ? p2 = d2 : p2 && h2 !== e.ScaleMode.FitPage || (p2 = Math.min(d2, u2)), null !== this.uiFreezeCoordinator && this.uiFreezeCoordinator.setScaleFactor(p2), t2.dataset.pageScale = p2.toString(), n2.dataset.pageScale = p2.toString(), o2 || ae(s2, p2, p2), n2.style.height = p2 * l2 + "px", n2.style.width = p2 * a2 + "px", this.controller.setScale(p2, true);
2795
2785
  }
2796
2786
  enableInteractivity() {
2797
2787
  this.onClickHandler = this.onClick.bind(this), this.onMouseEnterHandler = this.onMouseEnter.bind(this), this.onMouseLeaveHandler = this.onMouseLeave.bind(this), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("mouseenter", this.onMouseEnterHandler, true), this.pageContainer.addEventListener("mouseleave", this.onMouseLeaveHandler, true);
@@ -2814,24 +2804,24 @@ var telerikReportViewer = (function (exports) {
2814
2804
  onInteractiveItemClick(e2, t2) {
2815
2805
  var i2;
2816
2806
  let n2 = (null === (i2 = e2.dataset.reportingAction) || void 0 === i2 ? void 0 : i2.toString()) || "", r2 = this.getAction(n2);
2817
- r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new l(e2, r2))), t2.stopPropagation();
2807
+ r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new s(e2, r2))), t2.stopPropagation();
2818
2808
  }
2819
2809
  onInteractiveItemEnter(e2) {
2820
2810
  var t2;
2821
2811
  let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
2822
- n2 && this.controller.reportActionEnter(new l(e2, n2));
2812
+ n2 && this.controller.reportActionEnter(new s(e2, n2));
2823
2813
  }
2824
2814
  onInteractiveItemLeave(e2) {
2825
2815
  var t2;
2826
2816
  let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
2827
- n2 && this.controller.reportActionLeave(new l(e2, n2));
2817
+ n2 && this.controller.reportActionLeave(new s(e2, n2));
2828
2818
  }
2829
2819
  onToolTipItemEnter(e2, t2) {
2830
2820
  let i2 = e2.dataset.tooltipTitle, n2 = e2.dataset.tooltipText;
2831
- (i2 || n2) && this.controller.reportTooltipOpening(new f(e2, n2 || "", i2 || "", t2));
2821
+ (i2 || n2) && this.controller.reportTooltipOpening(new p(e2, n2 || "", i2 || "", t2));
2832
2822
  }
2833
2823
  onToolTipItemLeave(e2) {
2834
- this.controller.reportTooltipClosing(new f(e2, "", "", null));
2824
+ this.controller.reportTooltipClosing(new p(e2, "", "", null));
2835
2825
  }
2836
2826
  getNavigateToPageOnDocReady(e2, t2) {
2837
2827
  var i2;
@@ -2849,7 +2839,7 @@ var telerikReportViewer = (function (exports) {
2849
2839
  var t2;
2850
2840
  let i2 = "trv-" + this.controller.getClientId() + "-styles";
2851
2841
  null === (t2 = document.getElementById(i2)) || void 0 === t2 || t2.remove();
2852
- let n2 = ie("style", i2);
2842
+ let n2 = te("style", i2);
2853
2843
  n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
2854
2844
  }
2855
2845
  setPageContent(e2) {
@@ -2861,26 +2851,26 @@ var telerikReportViewer = (function (exports) {
2861
2851
  this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
2862
2852
  }
2863
2853
  renderPageElement(e2) {
2864
- let t2 = ie("div");
2854
+ let t2 = te("div");
2865
2855
  t2.innerHTML = e2.pageContent;
2866
2856
  let i2 = t2.querySelector("div.sheet");
2867
2857
  i2.style.margin = "0";
2868
- let n2 = ie("div", "", "trv-report-page");
2869
- return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(ie("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
2858
+ let n2 = te("div", "", "trv-report-page");
2859
+ return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(te("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
2870
2860
  }
2871
2861
  applyPlaceholderViewModeClass() {
2872
- this.controller.getViewMode() === e.ViewMode.Interactive ? (re(this.placeholder, "printpreview"), ne(this.placeholder, "interactive")) : (re(this.placeholder, "interactive"), ne(this.placeholder, "printpreview"));
2862
+ this.controller.getViewMode() === e.ViewMode.Interactive ? (ne(this.placeholder, "printpreview"), ie(this.placeholder, "interactive")) : (ne(this.placeholder, "interactive"), ie(this.placeholder, "printpreview"));
2873
2863
  }
2874
2864
  setPageAreaImage() {
2875
2865
  this.clearPageAreaImage();
2876
- let e2 = ie("style", je);
2877
- e2.innerHTML = Je('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
2866
+ let e2 = te("style", We);
2867
+ e2.innerHTML = je('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
2878
2868
  }
2879
2869
  clearPageAreaImage() {
2880
2870
  var e2;
2881
- null === (e2 = document.getElementById(je)) || void 0 === e2 || e2.remove();
2871
+ null === (e2 = document.getElementById(We)) || void 0 === e2 || e2.remove();
2882
2872
  }
2883
- }, e.CurrentPageChangedEventArgs = m, e.DeviceInfo = o, e.DocumentInfo = class {
2873
+ }, e.CurrentPageChangedEventArgs = u, e.DeviceInfo = n, e.DocumentInfo = class {
2884
2874
  constructor() {
2885
2875
  this.documentReady = false, this.documentMapAvailable = false, this.containsFrozenContent = false, this.pageCount = 0, this.documentMapNodes = [], this.bookmarkNodes = [], this.renderingExtensions = [], this.autoRunEnabled = true;
2886
2876
  }
@@ -2888,29 +2878,29 @@ var telerikReportViewer = (function (exports) {
2888
2878
  constructor() {
2889
2879
  this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
2890
2880
  }
2891
- }, e.EmailInfo = a, e.ExportDocumentReadyEventArgs = u, e.ExportStartEventArgs = c, e.ExportStartedEventArgs = d, e.KeepClientAliveSentinel = K, e.NoAuth = S, e.PageAction = class {
2881
+ }, e.EmailInfo = r, e.ExportDocumentReadyEventArgs = h, e.ExportStartEventArgs = a, e.ExportStartedEventArgs = l, e.KeepClientAliveSentinel = Z, e.NoAuth = P, e.PageAction = class {
2892
2882
  constructor() {
2893
2883
  this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
2894
2884
  }
2895
- }, e.PageActionEventArgs = l, e.PageInfo = class {
2885
+ }, e.PageActionEventArgs = s, e.PageInfo = class {
2896
2886
  constructor() {
2897
2887
  this.pageNumber = 0, this.pageReady = false, this.pageStyles = "", this.pageContent = "", this.pageActions = [];
2898
2888
  }
2899
- }, e.PageTargetElement = h, e.ParameterInfo = class {
2889
+ }, e.PageTargetElement = o, e.ParameterInfo = class {
2900
2890
  constructor() {
2901
2891
  this.name = "", this.type = "", this.text = "", this.multivalue = false, this.allowNull = false, this.allowBlank = false, this.isVisible = false, this.autoRefresh = false, this.hasChildParameters = false, this.childParameters = [], this.availableValues = [], this.value = "", this.id = "", this.label = "";
2902
2892
  }
2903
- }, e.ParameterValidators = Ve, e.ParameterValue = class {
2893
+ }, e.ParameterValidators = Oe, e.ParameterValue = class {
2904
2894
  constructor() {
2905
2895
  this.name = "", this.value = null;
2906
2896
  }
2907
- }, e.PersonalTokenAuth = b, e.PrintDocumentReadyEventArgs = g, e.PrintStartedEventArgs = p, e.RenderingExtension = class {
2897
+ }, e.PersonalTokenAuth = y, e.PrintDocumentReadyEventArgs = d, e.PrintStartedEventArgs = c, e.RenderingExtension = class {
2908
2898
  constructor() {
2909
2899
  this.name = "", this.localizedName = "";
2910
2900
  }
2911
- }, e.ReportController = class extends H {
2901
+ }, e.ReportController = class extends $ {
2912
2902
  constructor(e2, t2) {
2913
- super(), this.configurationInfo = null, this.keepClientAliveSentinel = null, this.registerClientPromise = null, this.registerInstancePromise = null, this.documentFormatsPromise = null, this.clientId = "", this.reportInstanceId = "", this.documentId = "", this.threadId = "", this.parameterValues = {}, this.bookmarkNodes = [], this.renderingExtensions = null, this.pageCount = 0, this.currentPageNumber = 0, this.clientHasExpired = false, this.cancelLoad = false, this.searchInitiated = false, this.aiPromptInitiated = false, this.contentTabIndex = 0, this.respectAutoRun = true, this.processedParameterValues = {}, this.options = t2, t2.reportSource && this.setParameters(t2.reportSource.parameters), this.printManager = new G(), this.serviceClient = e2, t2.authenticationToken && this.serviceClient.setAccessToken(t2.authenticationToken);
2903
+ super(), this.configurationInfo = null, this.keepClientAliveSentinel = null, this.registerClientPromise = null, this.registerInstancePromise = null, this.documentFormatsPromise = null, this.clientId = "", this.reportInstanceId = "", this.documentId = "", this.threadId = "", this.parameterValues = {}, this.bookmarkNodes = [], this.renderingExtensions = null, this.pageCount = 0, this.currentPageNumber = 0, this.clientHasExpired = false, this.cancelLoad = false, this.searchInitiated = false, this.aiPromptInitiated = false, this.contentTabIndex = 0, this.respectAutoRun = true, this.processedParameterValues = {}, this.options = t2, t2.reportSource && this.setParameters(t2.reportSource.parameters), this.printManager = new J(), this.serviceClient = e2, t2.authenticationToken && this.serviceClient.setAccessToken(t2.authenticationToken);
2914
2904
  }
2915
2905
  get autoRunEnabled() {
2916
2906
  var e2 = !this.parameterValues || !("trv_AutoRun" in this.parameterValues) || this.parameterValues.trv_AutoRun;
@@ -2941,29 +2931,43 @@ var telerikReportViewer = (function (exports) {
2941
2931
  this.cancelLoad = true, this.resetPageNumbers(), this.emit("renderingStopped");
2942
2932
  });
2943
2933
  }
2944
- refreshReport(e2, t2, i2 = false) {
2945
- if (this.emit("loadedReportChange"), this.cancelLoad = false, this.respectAutoRun = i2 || this.respectAutoRun, this.clientHasExpired && (this.clientHasExpired = false, this.clearClientId()), "" == this.getReport())
2934
+ refreshReport(e2, t2, i2 = false, n2 = false) {
2935
+ if (n2 || this.emit("loadedReportChange"), this.cancelLoad = false, this.respectAutoRun = i2 || this.respectAutoRun, this.clientHasExpired && (this.clientHasExpired = false, this.clearClientId()), "" == this.getReport())
2946
2936
  return void this.emit("noReport");
2947
- let n2 = this.loadParameters();
2948
- n2.then((i3) => {
2949
- this.emit("parametersLoaded", i3), this.processParameters(i3, e2, t2);
2950
- }), this.emit("reloadParameters", n2);
2951
- }
2952
- processParameters(e2, t2, i2) {
2953
- let n2 = {}, r2 = [], s2 = false;
2954
- for (let t3 of e2)
2937
+ let r2 = this.loadParameters();
2938
+ r2.then((i3) => {
2939
+ this.emit("parametersLoaded", i3);
2940
+ this.processParameters(i3) || n2 || (this.autoRunEnabled ? this.refreshReportCore(e2, t2) : this.emitAsync("reportAutoRunOff"));
2941
+ }), this.emit("reloadParameters", r2);
2942
+ }
2943
+ processParameters(e2) {
2944
+ let t2 = {}, i2 = [], n2 = false;
2945
+ for (let r2 of e2)
2955
2946
  try {
2956
- let e3 = Ve.validate(t3, t3.value);
2957
- n2[t3.id] = e3;
2947
+ let e3 = Oe.validate(r2, r2.value);
2948
+ t2[r2.id] = e3;
2958
2949
  } catch (e3) {
2959
- s2 = true, r2.push(t3);
2950
+ n2 = true, i2.push(r2);
2960
2951
  }
2961
- s2 ? this.missingOrInvalidParameters(r2) : (this.setParameters(n2), this.autoRunEnabled ? this.refreshReportCore(t2, i2) : this.emitAsync("reportAutoRunOff"));
2952
+ return n2 ? this.missingOrInvalidParameters(i2) : this.setParameters(t2), n2;
2953
+ }
2954
+ allParametersAutoRefresh(e2) {
2955
+ if (!e2 || !e2.length)
2956
+ return true;
2957
+ return Array.from(e2).every((e3) => !e3.isVisible || e3.autoRefresh);
2958
+ }
2959
+ allParametersValidForAutoRefresh(e2, t2) {
2960
+ let i2 = true;
2961
+ for (let n2 = e2.length - 1; i2 && n2 >= 0; n2--) {
2962
+ let r2 = e2[n2];
2963
+ i2 = r2.id in t2 && (Boolean(r2.autoRefresh) || !r2.isVisible);
2964
+ }
2965
+ return i2;
2962
2966
  }
2963
2967
  hasInvalidParameter(e2) {
2964
2968
  for (const t2 of e2)
2965
2969
  try {
2966
- Ve.validate(t2, t2.value);
2970
+ Oe.validate(t2, t2.value);
2967
2971
  } catch (e3) {
2968
2972
  return true;
2969
2973
  }
@@ -2995,7 +2999,7 @@ var telerikReportViewer = (function (exports) {
2995
2999
  }
2996
3000
  getReportSource() {
2997
3001
  var e2;
2998
- return new Ue(null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report, this.parameterValues);
3002
+ return new _e(null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report, this.parameterValues);
2999
3003
  }
3000
3004
  setReportSource(e2) {
3001
3005
  this.options.reportSource = e2, this.setParameters(this.options.reportSource.parameters), this.emit("reportSourceChanged", e2);
@@ -3040,7 +3044,7 @@ var telerikReportViewer = (function (exports) {
3040
3044
  return this.currentPageNumber;
3041
3045
  }
3042
3046
  setCurrentPageNumber(e2) {
3043
- this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new m(e2, this.documentId)));
3047
+ this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new u(e2, this.documentId)));
3044
3048
  }
3045
3049
  getPageCount() {
3046
3050
  return this.pageCount;
@@ -3055,9 +3059,9 @@ var telerikReportViewer = (function (exports) {
3055
3059
  if ("navigateToReport" === t2.Type) {
3056
3060
  this.emit("serverActionStarted");
3057
3061
  let e3 = t2.Value, i2 = this.fixDataContractJsonSerializer(e3.ParameterValues);
3058
- this.respectAutoRun = true, this.emit("navigateToReport", new Ue(e3.Report, i2));
3062
+ this.respectAutoRun = true, this.emit("navigateToReport", new _e(e3.Report, i2));
3059
3063
  } else if ("navigateToBookmark" === t2.Type) {
3060
- let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new h(t2.Value, "bookmark");
3064
+ let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new o(t2.Value, "bookmark");
3061
3065
  this.navigateToPage(e3, i2);
3062
3066
  } else if ("sorting" === t2.Type)
3063
3067
  this.execServerAction(t2.Id);
@@ -3083,40 +3087,40 @@ var telerikReportViewer = (function (exports) {
3083
3087
  this.emit("toolTipClosing", e2);
3084
3088
  }
3085
3089
  printReport() {
3086
- return s(this, void 0, void 0, function* () {
3090
+ return i(this, 0, void 0, function* () {
3087
3091
  let e2 = this.createDeviceInfo();
3088
3092
  e2.ImmediatePrint = true;
3089
- let t2 = new p(e2);
3093
+ let t2 = new c(e2);
3090
3094
  this.emit("printStarted", t2), t2.handled || (this.setUIState("PrintInProgress", true), this.exportAsync("PDF", e2).then((e3) => {
3091
3095
  let t3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, e3);
3092
3096
  t3 += `?${"response-content-disposition=" + (this.getCanUsePlugin() ? "inline" : "attachment")}`;
3093
- let i2 = new g(t3);
3097
+ let i2 = new d(t3);
3094
3098
  this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
3095
3099
  }));
3096
3100
  });
3097
3101
  }
3098
3102
  exportReport(e2) {
3099
- return s(this, void 0, void 0, function* () {
3100
- let t2 = this.createDeviceInfo(), i2 = new c(t2, e2);
3101
- if (yield this.emitAsync("exportStart", i2), !i2.isCancelled) {
3102
- let n2 = new d(t2, e2);
3103
- if (this.emit("exportStarted", n2), n2.handled)
3103
+ return i(this, 0, void 0, function* () {
3104
+ let t2 = this.createDeviceInfo(), n2 = new a(t2, e2);
3105
+ if (yield this.emitAsync("exportStart", n2), !n2.isCancelled) {
3106
+ let r2 = new l(t2, e2);
3107
+ if (this.emit("exportStarted", r2), r2.handled)
3104
3108
  return;
3105
- this.setUIState("ExportInProgress", true), this.exportAsync(e2, i2.deviceInfo).then((t3) => s(this, void 0, void 0, function* () {
3106
- let i3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t3);
3107
- i3 += "?response-content-disposition=attachment";
3108
- let n3 = new u(i3, e2, "_self");
3109
- yield this.emitAsync("exportEnd", n3), this.emit("exportDocumentReady", n3), this.setUIState("ExportInProgress", false), n3.handled || window.open(i3, n3.windowOpenTarget);
3109
+ this.setUIState("ExportInProgress", true), this.exportAsync(e2, n2.deviceInfo).then((t3) => i(this, 0, void 0, function* () {
3110
+ let i2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t3);
3111
+ i2 += "?response-content-disposition=attachment";
3112
+ let n3 = new h(i2, e2, "_self");
3113
+ yield this.emitAsync("exportEnd", n3), this.emit("exportDocumentReady", n3), this.setUIState("ExportInProgress", false), n3.handled || window.open(i2, n3.windowOpenTarget);
3110
3114
  }));
3111
3115
  }
3112
3116
  });
3113
3117
  }
3114
3118
  sendReport(e2) {
3115
- let t2 = this.createDeviceInfo(), i2 = new xe(t2, e2.format);
3119
+ let t2 = this.createDeviceInfo(), i2 = new Me(t2, e2.format);
3116
3120
  this.emit("sendEmailStarted", i2), i2.handled || this.exportAsync(e2.format, t2).then((i3) => {
3117
3121
  let n2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, i3);
3118
3122
  n2 += "?response-content-disposition=attachment";
3119
- let r2 = new ke(e2, t2, n2);
3123
+ let r2 = new xe(e2, t2, n2);
3120
3124
  this.emit("sendEmailDocumentReady", r2), r2.handled || this.sendDocumentAsync(i3, e2);
3121
3125
  });
3122
3126
  }
@@ -3125,9 +3129,9 @@ var telerikReportViewer = (function (exports) {
3125
3129
  }
3126
3130
  createAIThread() {
3127
3131
  return this.serviceClient.createAIThread(this.clientId, this.reportInstanceId, this.getReport(), this.parameterValues).catch((e2) => this.raiseError(e2.exceptionMessage, false)).then((e2) => {
3128
- if (this.threadId = (null == e2 ? void 0 : e2.threadId) || "", e2.consentMessage && (e2.consentMessage = r.default.sanitize(e2.consentMessage, { USE_PROFILES: { html: true } }), r.default.removed && r.default.removed.length > 0 && console.warn("The AI-Powered Insights consent message was sanitized as it contained potentially malicious HTML elements or attributes.")), e2.predefinedPrompts)
3129
- for (let t2 = 0; t2 < e2.predefinedPrompts.length; t2++)
3130
- e2.predefinedPrompts[t2] = r.default.sanitize(e2.predefinedPrompts[t2], { USE_PROFILES: { html: true } }), r.default.removed && r.default.removed.length > 0 && console.warn("An AI-Powered Insights predefined prompt was sanitized as it contained potentially malicious HTML elements or attributes.");
3132
+ if (this.threadId = (null == e2 ? void 0 : e2.threadId) || "", e2.consentMessage && (e2.consentMessage = t.sanitize(e2.consentMessage, { USE_PROFILES: { html: true } }), t.removed && t.removed.length > 0 && console.warn("The AI-Powered Insights consent message was sanitized as it contained potentially malicious HTML elements or attributes.")), e2.predefinedPrompts)
3133
+ for (let i2 = 0; i2 < e2.predefinedPrompts.length; i2++)
3134
+ e2.predefinedPrompts[i2] = t.sanitize(e2.predefinedPrompts[i2], { USE_PROFILES: { html: true } }), t.removed && t.removed.length > 0 && console.warn("An AI-Powered Insights predefined prompt was sanitized as it contained potentially malicious HTML elements or attributes.");
3131
3135
  return e2;
3132
3136
  });
3133
3137
  }
@@ -3135,13 +3139,13 @@ var telerikReportViewer = (function (exports) {
3135
3139
  return this.serviceClient.getAIResponse(this.clientId, this.reportInstanceId, this.documentId, this.threadId, e2).then((e3) => e3 || "");
3136
3140
  }
3137
3141
  exportAsync(e2, t2) {
3138
- return this.initializeClient().then(this.registerInstance.bind(this)).then(() => this.registerDocumentAsync(e2, t2, false, this.documentId)).then((e3) => s(this, void 0, void 0, function* () {
3142
+ return this.initializeClient().then(this.registerInstance.bind(this)).then(() => this.registerDocumentAsync(e2, t2, false, this.documentId)).then((e3) => i(this, 0, void 0, function* () {
3139
3143
  return yield this.getDocumentInfo(false, e3).catch((e4) => this.raiseError(e4)), e3;
3140
3144
  }));
3141
3145
  }
3142
3146
  sendDocumentAsync(e2, t2) {
3143
3147
  return this.serviceClient.sendDocument(this.clientId, this.reportInstanceId, e2, t2).catch((e3) => {
3144
- this.handleRequestError(e3, we(this.options.messages.ReportViewer_ErrorSendingDocument, he(this.getReport())));
3148
+ this.handleRequestError(e3, be(this.options.messages.ReportViewer_ErrorSendingDocument, le(this.getReport())));
3145
3149
  });
3146
3150
  }
3147
3151
  loadParameters(e2 = void 0) {
@@ -3154,7 +3158,7 @@ var telerikReportViewer = (function (exports) {
3154
3158
  }
3155
3159
  initializeAndStartSentinel() {
3156
3160
  this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
3157
- this.keepClientAliveSentinel = new K(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
3161
+ this.keepClientAliveSentinel = new Z(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
3158
3162
  });
3159
3163
  }
3160
3164
  stopSentinel() {
@@ -3179,7 +3183,7 @@ var telerikReportViewer = (function (exports) {
3179
3183
  this.pageCount = 0, this.currentPageNumber = 0;
3180
3184
  }
3181
3185
  handleSearchRequestError(e2) {
3182
- if (!ye(e2, "System.ArgumentException"))
3186
+ if (!Ce(e2, "System.ArgumentException"))
3183
3187
  throw this.handleRequestError(e2, "", true), null;
3184
3188
  this.throwPromiseError(e2);
3185
3189
  }
@@ -3187,8 +3191,8 @@ var telerikReportViewer = (function (exports) {
3187
3191
  throw e2.exceptionMessage ? e2.exceptionMessage : this.options.messages.ReportViewer_PromisesChainStopError;
3188
3192
  }
3189
3193
  handleRequestError(e2, t2 = "", i2 = false) {
3190
- Se(e2) && this.onClientExpired();
3191
- let n2 = be(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
3194
+ ye(e2) && this.onClientExpired();
3195
+ let n2 = Ie(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
3192
3196
  this.raiseError(r2), i2 || this.throwPromiseError(e2);
3193
3197
  }
3194
3198
  formatRequestError(e2, t2, i2) {
@@ -3196,34 +3200,37 @@ var telerikReportViewer = (function (exports) {
3196
3200
  if (n2) {
3197
3201
  if (401 == n2.status || 403 == n2.status)
3198
3202
  return this.options.messages.ReportViewer_ErrorUnauthorizedOrForbidden || "You don't have permission to access this report document.";
3199
- if (Ie(e2))
3203
+ if (Se(e2))
3200
3204
  return this.options.messages.ReportViewer_MissingOrInvalidParameter;
3201
- r2 = he(n2.message);
3202
- let t3 = he(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
3205
+ r2 = le(n2.message);
3206
+ let t3 = le(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
3203
3207
  t3 && (r2 ? r2 += " " + t3 : r2 = t3);
3204
3208
  } else
3205
- r2 = he(e2.responseText);
3206
- return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = he(i2 || t2) + r2), Se(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
3209
+ r2 = le(e2.responseText);
3210
+ return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = le(i2 || t2) + r2), ye(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
3207
3211
  }
3208
3212
  raiseError(e2, t2 = true) {
3209
3213
  this.emit("error", e2, t2);
3210
3214
  }
3215
+ showNotification(e2) {
3216
+ this.emit("showNotification", e2);
3217
+ }
3211
3218
  onClientExpired() {
3212
3219
  this.clientHasExpired = true, this.emit("clientExpired");
3213
3220
  }
3214
3221
  initializeClient() {
3215
3222
  return this.registerClientPromise || (this.registerClientPromise = this.serviceClient.registerClient().catch((e2) => {
3216
- const t2 = we(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
3223
+ const t2 = be(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
3217
3224
  this.handleRequestError(e2, t2);
3218
3225
  }).then(this.setClientId.bind(this)).catch(this.clearClientId.bind(this))), this.registerClientPromise;
3219
3226
  }
3220
3227
  registerInstance() {
3221
3228
  return this.registerInstancePromise || (this.registerInstancePromise = this.serviceClient.createReportInstance(this.clientId, this.getReport(), this.parameterValues).then(this.setReportInstanceId.bind(this)).catch(this.clearReportInstanceId.bind(this))), this.registerInstancePromise;
3222
3229
  }
3223
- registerDocumentAsync(e2, t2, i2, n2 = "", r2 = "") {
3224
- return s(this, void 0, void 0, function* () {
3225
- return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e2, t2, !i2, n2, r2).catch((t3) => {
3226
- this.handleRequestError(t3, we(this.options.messages.ReportViewer_ErrorCreatingReportDocument, he(this.getReport()), he(e2)));
3230
+ registerDocumentAsync(e2, t2, n2, r2 = "", s2 = "") {
3231
+ return i(this, 0, void 0, function* () {
3232
+ return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e2, t2, !n2, r2, s2).catch((t3) => {
3233
+ this.handleRequestError(t3, be(this.options.messages.ReportViewer_ErrorCreatingReportDocument, le(this.getReport()), le(e2)));
3227
3234
  })) || "";
3228
3235
  });
3229
3236
  }
@@ -3245,7 +3252,7 @@ var telerikReportViewer = (function (exports) {
3245
3252
  return e2.ContentOnly = true, e2.UseSVG = true, e2;
3246
3253
  }
3247
3254
  createDeviceInfo() {
3248
- let e2 = new o();
3255
+ let e2 = new n();
3249
3256
  this.options.enableAccessibility && (e2.enableAccessibility = true, e2.contentTabIndex = this.getContentTabIndex());
3250
3257
  let t2 = this.getSearchInitiated(), i2 = this.options.searchMetadataOnDemand;
3251
3258
  return e2.enableSearch = !i2 || t2, e2;
@@ -3261,7 +3268,7 @@ var telerikReportViewer = (function (exports) {
3261
3268
  const e2 = {}, t2 = this.getProcessedParameterValues();
3262
3269
  for (let i2 in t2) {
3263
3270
  const n2 = t2[i2], r2 = this.parameterValues[i2];
3264
- n2 && n2.availableValues ? n2.multivalue ? e2[i2] = _e(n2, r2, i2) : e2[i2] = ze(n2, r2, i2) : e2[i2] = r2;
3271
+ n2 && n2.availableValues ? n2.multivalue ? e2[i2] = ze(n2, r2, i2) : e2[i2] = Ve(n2, r2, i2) : e2[i2] = r2;
3265
3272
  }
3266
3273
  return e2;
3267
3274
  }
@@ -3271,11 +3278,11 @@ var telerikReportViewer = (function (exports) {
3271
3278
  getProcessedParameterValues() {
3272
3279
  return this.processedParameterValues;
3273
3280
  }
3274
- getDocumentInfo(t2, i2) {
3275
- return t2 && this.emit("beginLoadReport"), new Promise((n2, r2) => {
3276
- let o2 = () => s(this, void 0, void 0, function* () {
3277
- this.cancelLoad ? r2(this.options.messages.ReportViewer_RenderingCancelled) : (yield this.registerInstancePromise, this.serviceClient.getDocumentInfo(this.clientId, this.reportInstanceId, i2).then((i3) => {
3278
- i3 && i3.documentReady ? n2(i3) : (t2 && (this.getPageMode() === e.PageMode.ContinuousScroll && i3.pageCount > this.pageCount && this.emit("pageLoaded"), this.pageCount = i3.pageCount, this.emit("reportLoadProgress", i3)), window.setTimeout(o2, 500));
3281
+ getDocumentInfo(t2, n2) {
3282
+ return t2 && this.emit("beginLoadReport"), new Promise((r2, s2) => {
3283
+ let o2 = () => i(this, 0, void 0, function* () {
3284
+ this.cancelLoad ? s2(this.options.messages.ReportViewer_RenderingCancelled) : (yield this.registerInstancePromise, this.serviceClient.getDocumentInfo(this.clientId, this.reportInstanceId, n2).then((i2) => {
3285
+ i2 && i2.documentReady ? r2(i2) : (t2 && (this.getPageMode() === e.PageMode.ContinuousScroll && i2.pageCount > this.pageCount && this.emit("pageLoaded"), this.pageCount = i2.pageCount, this.emit("reportLoadProgress", i2)), window.setTimeout(o2, 500));
3279
3286
  }).catch((e2) => {
3280
3287
  "InvalidDocumentException" !== e2.responseJSON.exceptionType ? this.handleRequestError(e2, "", true) : console.warn("getDocumentInfo failed or was canceled by the user: " + e2.exceptionMessage);
3281
3288
  }));
@@ -3334,11 +3341,14 @@ var telerikReportViewer = (function (exports) {
3334
3341
  }
3335
3342
  missingOrInvalidParameters(e2) {
3336
3343
  let t2 = this.options.messages.ReportViewer_MissingOrInvalidParameter;
3337
- e2.forEach((e3) => {
3344
+ null == e2 || e2.forEach((e3) => {
3338
3345
  t2 += `\r
3339
3346
  ${e3.text} (${e3.id})`;
3340
3347
  }), this.raiseError(t2), this.emit("missingOrInvalidParameters");
3341
3348
  }
3349
+ handleParametersNotification(e2) {
3350
+ e2 ? this.showNotification(this.options.messages.ReportViewer_TryReportPreview || "The report may now be previewed.") : this.missingOrInvalidParameters(null);
3351
+ }
3342
3352
  setSearchInitiated(e2) {
3343
3353
  this.searchInitiated = e2;
3344
3354
  }
@@ -3403,13 +3413,13 @@ ${e3.text} (${e3.id})`;
3403
3413
  constructor(e2, t2) {
3404
3414
  this.url = e2, this.getPersonalAccessToken = t2;
3405
3415
  }
3406
- }, e.ReportSourceOptions = Ue, e.RequestError = v, e.SearchInfo = class {
3416
+ }, e.ReportSourceOptions = _e, e.RequestError = g, e.SearchInfo = class {
3407
3417
  constructor() {
3408
3418
  this.searchToken = "", this.matchCase = false, this.matchWholeWord = false, this.useRegularExpressions = false;
3409
3419
  }
3410
- }, e.SearchManager = class extends H {
3420
+ }, e.SearchManager = class extends $ {
3411
3421
  constructor(e2, t2) {
3412
- super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = me(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
3422
+ super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = ge(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
3413
3423
  }
3414
3424
  search(e2) {
3415
3425
  this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
@@ -3418,15 +3428,15 @@ ${e3.text} (${e3.id})`;
3418
3428
  this.isActive = false, this.clearColoredItems(), this.searchResults = [];
3419
3429
  }
3420
3430
  highlightSearchItem(t2) {
3421
- t2 && (this.currentHighlightedElement && (re(this.currentHighlightedElement, Ze), ne(this.currentHighlightedElement, Ge)), t2.page === this.controller.getCurrentPageNumber() ? this.highlightItem(t2) : this.controller.getPageMode() === e.PageMode.SinglePage ? this.clearColoredItems() : this.highlightItem(t2), this.pendingHighlightItem = t2, this.navigateToPage(t2));
3431
+ t2 && (this.currentHighlightedElement && (ne(this.currentHighlightedElement, Ge), ie(this.currentHighlightedElement, Je)), t2.page === this.controller.getCurrentPageNumber() ? this.highlightItem(t2) : this.controller.getPageMode() === e.PageMode.SinglePage ? this.clearColoredItems() : this.highlightItem(t2), this.pendingHighlightItem = t2, this.navigateToPage(t2));
3422
3432
  }
3423
3433
  navigateToPage(e2) {
3424
- this.controller.navigateToPage(e2.page, new h(e2.id, "search"));
3434
+ this.controller.navigateToPage(e2.page, new o(e2.id, "search"));
3425
3435
  }
3426
3436
  colorPageElements(e2) {
3427
3437
  e2 && 0 !== e2.length && (e2.forEach((e3) => {
3428
- let t2 = me(this.pageContainer, "[data-search-id=" + e3.id + "]");
3429
- t2 && (ne(t2, Ge), this.highlightedElements.push(t2));
3438
+ let t2 = ge(this.pageContainer, "[data-search-id=" + e3.id + "]");
3439
+ t2 && (ie(t2, Je), this.highlightedElements.push(t2));
3430
3440
  }), this.highlightItem(this.pendingHighlightItem));
3431
3441
  }
3432
3442
  highlightItem(e2) {
@@ -3434,13 +3444,13 @@ ${e3.text} (${e3.id})`;
3434
3444
  let t2 = this.highlightedElements.find(function(t3) {
3435
3445
  return t3.dataset.searchId === e2.id;
3436
3446
  });
3437
- t2 && (this.currentHighlightedElement = t2, re(t2, Ge), ne(t2, Ze));
3447
+ t2 && (this.currentHighlightedElement = t2, ne(t2, Je), ie(t2, Ge));
3438
3448
  }
3439
3449
  }
3440
3450
  clearColoredItems() {
3441
3451
  this.highlightedElements && this.highlightedElements.length > 0 && this.highlightedElements.forEach((e2) => {
3442
- re(e2, Ge);
3443
- }), this.currentHighlightedElement && re(this.currentHighlightedElement, Ze), this.highlightedElements = [], this.currentHighlightedElement = null;
3452
+ ne(e2, Je);
3453
+ }), this.currentHighlightedElement && ne(this.currentHighlightedElement, Ge), this.highlightedElements = [], this.currentHighlightedElement = null;
3444
3454
  }
3445
3455
  applySearchColors() {
3446
3456
  this.isActive && this.colorPageElements(this.searchResults);
@@ -3457,18 +3467,18 @@ ${e3.text} (${e3.id})`;
3457
3467
  this.connectionConfig = this.getConnectionConfig(e2), this.authStrategy = this.getAuthStrategy(this.connectionConfig);
3458
3468
  }
3459
3469
  getConnectionConfig(e2) {
3460
- return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new R(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new E(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new A(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new E("", () => Promise.resolve(e2.serverShareToken)) : new T(e2.serviceUrl);
3470
+ return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new A(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new R(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new T(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new R("", () => Promise.resolve(e2.serverShareToken)) : new w(e2.serviceUrl);
3461
3471
  }
3462
3472
  getAuthStrategy(t2) {
3463
3473
  switch (t2.authType) {
3464
3474
  case e.AuthType.None:
3465
- return new S();
3475
+ return new P();
3466
3476
  case e.AuthType.Basic:
3467
- return new I(t2);
3477
+ return new C(t2);
3468
3478
  case e.AuthType.PersonalToken:
3469
- return new b(t2);
3479
+ return new y(t2);
3470
3480
  default:
3471
- return new S();
3481
+ return new P();
3472
3482
  }
3473
3483
  }
3474
3484
  validateClientID(e2) {
@@ -3477,15 +3487,15 @@ ${e3.text} (${e3.id})`;
3477
3487
  }
3478
3488
  authenticatedGet(e2) {
3479
3489
  return this.login().then((t2) => (null == t2 ? void 0 : t2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedGet(e2)) : function(e3, t3) {
3480
- return fetch(e3, { headers: P(t3) }).then(C);
3490
+ return fetch(e3, { headers: m(t3) }).then(f);
3481
3491
  }(e2, t2.access_token || t2.accessToken));
3482
3492
  }
3483
3493
  authenticatedPost(e2, t2) {
3484
- return this.login().then((i2) => (null == i2 ? void 0 : i2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, i2.refreshToken), this.authenticatedPost(e2, t2)) : y(e2, t2, i2.access_token || i2.accessToken));
3494
+ return this.login().then((i2) => (null == i2 ? void 0 : i2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, i2.refreshToken), this.authenticatedPost(e2, t2)) : v(e2, t2, i2.access_token || i2.accessToken));
3485
3495
  }
3486
3496
  authenticatedDelete(e2) {
3487
3497
  return this.login().then((t2) => t2.expiresAt < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedDelete(e2)) : function(e3, t3) {
3488
- return fetch(e3, { method: "DELETE", headers: P(t3) }).then(C);
3498
+ return fetch(e3, { method: "DELETE", headers: m(t3) }).then(f);
3489
3499
  }(e2, t2.access_token || t2.accessToken));
3490
3500
  }
3491
3501
  login() {
@@ -3569,15 +3579,15 @@ ${e3.text} (${e3.id})`;
3569
3579
  return e2.clientSessionTimeout;
3570
3580
  });
3571
3581
  }
3572
- }, e.TooltipEventArgs = f, e.addClass = ne, e.appendHtml = pe, e.createElement = ie, e.debounce = Pe, e.each = Te, e.escapeHtml = he, e.findElement = me, e.getColorAlphaValue = ue, e.getElementAttributeValue = fe, e.getElementScrollParent = ve, e.getOffsetParent = oe, e.hasClass = se, e.isArray = Ae, e.isExceptionOfType = ye, e.isInternalServerError = be, e.isInvalidClientException = Se, e.isInvalidParameterException = Ie, e.isRgbColor = de, e.keepElementInView = function(e2) {
3582
+ }, e.TooltipEventArgs = p, e.addClass = ie, e.appendHtml = ue, e.createElement = te, e.debounce = ve, e.each = we, e.escapeHtml = le, e.findElement = ge, e.getColorAlphaValue = de, e.getElementAttributeValue = me, e.getElementScrollParent = fe, e.getOffsetParent = se, e.hasClass = re, e.isArray = Te, e.isExceptionOfType = Ce, e.isInternalServerError = Ie, e.isInvalidClientException = ye, e.isInvalidParameterException = Se, e.isRgbColor = ce, e.keepElementInView = function(e2) {
3573
3583
  if (!e2)
3574
3584
  return;
3575
- let t2 = ve(e2);
3585
+ let t2 = fe(e2);
3576
3586
  if (!t2)
3577
3587
  return;
3578
3588
  let i2 = e2.offsetTop, n2 = i2 + e2.offsetHeight, r2 = t2.scrollTop + t2.offsetHeight;
3579
3589
  i2 < t2.scrollTop ? t2.scrollTop = i2 : n2 > r2 && (t2.scrollTop += n2 - r2);
3580
- }, e.parseToLocalDate = Me, e.prependHtml = ge, e.removeClass = re, e.reportSourcesAreEqual = function(e2) {
3590
+ }, e.parseToLocalDate = Ee, e.prependHtml = pe, e.removeClass = ne, e.reportSourcesAreEqual = function(e2) {
3581
3591
  const t2 = e2.firstReportSource, i2 = e2.secondReportSource;
3582
3592
  if (t2 && i2 && t2.report === i2.report) {
3583
3593
  let e3 = "";
@@ -3586,7 +3596,7 @@ ${e3.text} (${e3.id})`;
3586
3596
  return i2.parameters && (n2 = JSON.stringify(i2.parameters)), e3 === n2;
3587
3597
  }
3588
3598
  return false;
3589
- }, e.scaleElement = le, e.stringFormat = we, e.throttle = Ce, e.toPixel = ae, e.toRgbColor = ce, e.tryParseFloat = Ee, e.tryParseInt = Re, Object.defineProperty(e, "__esModule", { value: true });
3599
+ }, e.scaleElement = ae, e.stringFormat = be, e.throttle = Pe, e.toPixel = oe, e.toRgbColor = he, e.tryParseFloat = Re, e.tryParseInt = Ae;
3590
3600
  });
3591
3601
  })(dist, dist.exports);
3592
3602
  var distExports = dist.exports;
@@ -3825,33 +3835,33 @@ ${e3.text} (${e3.id})`;
3825
3835
 
3826
3836
  const utils = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3827
3837
  __proto__: null,
3828
- isSpecialKey,
3829
- rectangle,
3830
- generateGuidString,
3831
- trim,
3832
- replaceAll,
3833
- lTrim,
3834
- rTrim,
3835
- stringFormat,
3836
- escapeHtml,
3837
3838
  adjustTimezone,
3838
- unadjustTimezone,
3839
3839
  areEqual,
3840
3840
  areEqualArrays,
3841
- isApplicationException,
3842
- isApplicationExceptionInstance,
3841
+ escapeHtml,
3843
3842
  exceptionTypeNamesMatch,
3844
- parseJSON,
3845
- getExceptionInstance,
3846
3843
  filterUniqueLastOccurrence,
3844
+ generateGuidString,
3845
+ getColorAlphaValue,
3846
+ getExceptionInstance,
3847
+ isApplicationException,
3848
+ isApplicationExceptionInstance,
3849
+ isRgbColor,
3850
+ isSpecialKey,
3851
+ lTrim,
3847
3852
  logError,
3853
+ parseJSON,
3854
+ parseToLocalDate: distExports.parseToLocalDate,
3855
+ rTrim,
3856
+ rectangle,
3857
+ replaceAll,
3858
+ reportSourcesAreEqual: distExports.reportSourcesAreEqual,
3859
+ stringFormat,
3848
3860
  toRgbColor,
3849
- isRgbColor,
3850
- getColorAlphaValue,
3851
- tryParseInt: distExports.tryParseInt,
3861
+ trim,
3852
3862
  tryParseFloat: distExports.tryParseFloat,
3853
- parseToLocalDate: distExports.parseToLocalDate,
3854
- reportSourcesAreEqual: distExports.reportSourcesAreEqual
3863
+ tryParseInt: distExports.tryParseInt,
3864
+ unadjustTimezone
3855
3865
  }, Symbol.toStringTag, { value: 'Module' }));
3856
3866
 
3857
3867
  function toPixels(value) {
@@ -3896,9 +3906,9 @@ ${e3.text} (${e3.id})`;
3896
3906
 
3897
3907
  const domUtils = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
3898
3908
  __proto__: null,
3909
+ getBorderWidth,
3899
3910
  getMargins,
3900
3911
  getPadding,
3901
- getBorderWidth,
3902
3912
  scale
3903
3913
  }, Symbol.toStringTag, { value: 'Module' }));
3904
3914
 
@@ -3934,8 +3944,8 @@ ${e3.text} (${e3.id})`;
3934
3944
  if (content.length > 0) {
3935
3945
  content.focus();
3936
3946
  }
3937
- }).on("pageReady", (event, page) => {
3938
- initPage(page);
3947
+ }).on("pageReady", (pageInfo) => {
3948
+ initPage(pageInfo);
3939
3949
  }).on("error", (event, message) => {
3940
3950
  focusOnErrorMessage();
3941
3951
  window.setTimeout(setAccessibilityUI, 500);
@@ -3956,8 +3966,8 @@ ${e3.text} (${e3.id})`;
3956
3966
  $errMsg.attr("tabIndex", 0);
3957
3967
  $errMsg.focus();
3958
3968
  }
3959
- function initPage(page) {
3960
- if (!page) {
3969
+ function initPage(pageInfo) {
3970
+ if (!pageInfo) {
3961
3971
  return;
3962
3972
  }
3963
3973
  setAccessibilityUI();
@@ -6233,7 +6243,7 @@ ${e3.text} (${e3.id})`;
6233
6243
  // #endregion
6234
6244
  }
6235
6245
 
6236
- class EventEmitter$1 extends EventTarget {
6246
+ let EventEmitter$1 = class EventEmitter extends EventTarget {
6237
6247
  _events;
6238
6248
  _eventsCount;
6239
6249
  constructor() {
@@ -6351,7 +6361,7 @@ ${e3.text} (${e3.id})`;
6351
6361
  }
6352
6362
  return this.removeListener(type, listener);
6353
6363
  }
6354
- }
6364
+ };
6355
6365
 
6356
6366
  var defaultOptions$3 = {};
6357
6367
  var Events = {
@@ -6415,7 +6425,7 @@ ${e3.text} (${e3.id})`;
6415
6425
  this.$previewButton.attr("aria-label", stringResources[this.$previewButton.attr("aria-label")]);
6416
6426
  this.$previewButton.on("click", (e) => {
6417
6427
  e.preventDefault();
6418
- if (this.allParametersValid()) {
6428
+ if (!this.controller.hasInvalidParameter(this.parameters)) {
6419
6429
  this.applyParameters();
6420
6430
  }
6421
6431
  });
@@ -6556,22 +6566,7 @@ ${e3.text} (${e3.id})`;
6556
6566
  (error ? $.fn.addClass : $.fn.removeClass).call(this.$element, "trv-error");
6557
6567
  }
6558
6568
  showPreviewButton(parameters) {
6559
- (this.allParametersAutoRefresh(parameters) && this.controller.autoRunEnabled ? $.fn.removeClass : $.fn.addClass).call(this.$element, "preview");
6560
- }
6561
- allParametersAutoRefresh(parameters) {
6562
- if (!parameters) {
6563
- return true;
6564
- }
6565
- var allAuto = Array.from(parameters).every((parameter) => {
6566
- return !parameter.isVisible || parameter.autoRefresh;
6567
- });
6568
- return allAuto;
6569
- }
6570
- allParametersValid() {
6571
- var allValid = Array.from(this.parameters).every((parameter) => {
6572
- return !parameter.Error;
6573
- });
6574
- return allValid;
6569
+ (this.controller.allParametersAutoRefresh(parameters) && this.controller.autoRunEnabled ? $.fn.removeClass : $.fn.addClass).call(this.$element, "preview");
6575
6570
  }
6576
6571
  clearEditors() {
6577
6572
  Object.entries(this.editors).forEach(([key, editor]) => {
@@ -6642,7 +6637,7 @@ ${e3.text} (${e3.id})`;
6642
6637
  }
6643
6638
  }
6644
6639
  this.showPreviewButton(this.parameters);
6645
- var allValid = this.allParametersValid();
6640
+ var allValid = !this.controller.hasInvalidParameter(this.parameters);
6646
6641
  this.enablePreviewButton(allValid);
6647
6642
  this.applyProcessedParameters();
6648
6643
  }
@@ -6653,17 +6648,9 @@ ${e3.text} (${e3.id})`;
6653
6648
  applyProcessedParameters() {
6654
6649
  this.controller.setProcessedParameterValues($.extend({}, this.processedParameterValues));
6655
6650
  }
6656
- allParametersValidForAutoRefresh() {
6657
- var triggerAutoUpdate = true;
6658
- for (var i = this.parameters.length - 1; triggerAutoUpdate && i >= 0; i--) {
6659
- var p = this.parameters[i];
6660
- triggerAutoUpdate = p.id in this.recentParameterValues && (Boolean(p.autoRefresh) || !p.isVisible);
6661
- }
6662
- return triggerAutoUpdate;
6663
- }
6664
6651
  tryRefreshReport() {
6665
6652
  this.trigger(Events.PARAMETERS_READY, this.recentParameterValues);
6666
- if (this.allParametersValidForAutoRefresh() && this.controller.autoRunEnabled) {
6653
+ if (this.controller.allParametersValidForAutoRefresh(this.parameters, this.recentParameterValues) && this.controller.autoRunEnabled) {
6667
6654
  this.applyParameters();
6668
6655
  }
6669
6656
  }
@@ -6702,7 +6689,7 @@ ${e3.text} (${e3.id})`;
6702
6689
  if (parameter.childParameters) {
6703
6690
  this.updateParameters(this.tryRefreshReport.bind(this));
6704
6691
  } else {
6705
- var allValid = this.allParametersValid();
6692
+ var allValid = !this.controller.hasInvalidParameter(this.parameters);
6706
6693
  this.enablePreviewButton(allValid);
6707
6694
  if (allValid) {
6708
6695
  var errorMsg = document.querySelector(".trv-pages-area .trv-error-message");
@@ -8633,48 +8620,49 @@ ${e3.text} (${e3.id})`;
8633
8620
  promptSuggestions
8634
8621
  });
8635
8622
  this.kendoAiPrompt.activeView(this.kendoAiPrompt.activeView());
8636
- return;
8637
- }
8638
- const aiPromptElement = this.kendoAiPromptDialog?.element?.find("#trv-ai-prompt");
8639
- if (!aiPromptElement) {
8640
- console.warn('Failed to initialize AI prompt dialog due to missing element with id "trv-ai-prompt".');
8641
- return;
8642
- }
8643
- const that = this;
8644
- this.kendoAiPrompt = new kendo.ui.AIPrompt(aiPromptElement, {
8645
- activeView: 0,
8646
- promptRequest: function(event) {
8647
- if (!event.prompt) {
8648
- this.activeView(0);
8649
- return;
8650
- }
8651
- that.controller.getAIResponse(event.prompt).then((response) => {
8652
- this.addPromptOutput(that.createPromptOutputFromResponse(response, event));
8653
- this.activeView(1);
8654
- }).catch((error) => {
8655
- this.addPromptOutput(that.createPromptOutputFromResponse(error?._responseJSON?.exceptionMessage || error?._responseJSON?.ExceptionMessage, event));
8656
- this.activeView(1);
8657
- });
8658
- },
8659
- toolbarItems: [
8660
- { type: "spacer" },
8661
- { type: "button", icon: "x", fillMode: "flat", themeColor: "primary", click: (e) => {
8662
- this.close();
8663
- } }
8664
- ],
8665
- promptSuggestions,
8666
- views: [
8667
- {
8668
- type: "prompt",
8669
- messages: {
8670
- promptPlaceholder: "Enter your prompt"
8623
+ } else {
8624
+ const aiPromptElement = this.kendoAiPromptDialog?.element?.find("#trv-ai-prompt");
8625
+ if (!aiPromptElement) {
8626
+ console.warn('Failed to initialize AI prompt dialog due to missing element with id "trv-ai-prompt".');
8627
+ return;
8628
+ }
8629
+ const that = this;
8630
+ this.kendoAiPrompt = new kendo.ui.AIPrompt(aiPromptElement, {
8631
+ activeView: 0,
8632
+ promptRequest: function(event) {
8633
+ if (!event.prompt) {
8634
+ this.activeView(0);
8635
+ return;
8671
8636
  }
8637
+ that.controller.getAIResponse(event.prompt).then((response) => {
8638
+ this.addPromptOutput(that.createPromptOutputFromResponse(response, event));
8639
+ this.activeView(1);
8640
+ }).catch((error) => {
8641
+ this.addPromptOutput(that.createPromptOutputFromResponse(error?._responseJSON?.exceptionMessage || error?._responseJSON?.ExceptionMessage, event));
8642
+ this.activeView(1);
8643
+ });
8672
8644
  },
8673
- {
8674
- type: "output"
8675
- }
8676
- ]
8677
- });
8645
+ toolbarItems: [
8646
+ { type: "spacer" },
8647
+ { type: "button", icon: "x", fillMode: "flat", themeColor: "primary", click: (e) => {
8648
+ this.close();
8649
+ } }
8650
+ ],
8651
+ promptSuggestions,
8652
+ views: [
8653
+ {
8654
+ type: "prompt",
8655
+ messages: {
8656
+ promptPlaceholder: "Enter your prompt"
8657
+ }
8658
+ },
8659
+ {
8660
+ type: "output"
8661
+ }
8662
+ ]
8663
+ });
8664
+ this.aiPromptInitialized = true;
8665
+ }
8678
8666
  this.disableAiPromptTextArea(promptSuggestions && promptSuggestions.length > 0);
8679
8667
  const aiPromptToolbar = this.kendoAiPrompt.element.find(".k-prompt-header .k-toolbar").data("kendoToolBar");
8680
8668
  aiPromptToolbar && aiPromptToolbar.bind("toggle", (e) => {
@@ -8682,7 +8670,6 @@ ${e3.text} (${e3.id})`;
8682
8670
  this.disableAiPromptTextArea(promptSuggestions && promptSuggestions.length > 0);
8683
8671
  }
8684
8672
  });
8685
- this.aiPromptInitialized = true;
8686
8673
  }
8687
8674
  disableAiPromptTextArea(hasPromptSuggestions) {
8688
8675
  if (this.allowCustomPrompts) {
@@ -8888,7 +8875,7 @@ ${e3.text} (${e3.id})`;
8888
8875
  if (!validateOptions(options)) {
8889
8876
  return;
8890
8877
  }
8891
- var version = "19.3.25.1119";
8878
+ var version = "20.0.26.211";
8892
8879
  options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
8893
8880
  settings = new ReportViewerSettings(
8894
8881
  persistanceKey,
@@ -9903,7 +9890,7 @@ ${e3.text} (${e3.id})`;
9903
9890
  exports.parameterEditorsMatch = parameterEditorsMatch;
9904
9891
  exports.utils = utils;
9905
9892
 
9906
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
9893
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
9907
9894
 
9908
9895
  return exports;
9909
9896