gradio-leaderboard 0.0.10__tar.gz → 0.0.11rc0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/PKG-INFO +1 -1
  2. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/backend/gradio_leaderboard/templates/component/index.js +72 -71
  3. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/demo/docs.md +1 -1
  4. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/frontend/Index.svelte +2 -2
  5. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/frontend/shared/Table.svelte +3 -0
  6. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/pyproject.toml +2 -2
  7. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/.gitignore +0 -0
  8. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/README.md +0 -0
  9. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/backend/gradio_leaderboard/__init__.py +0 -0
  10. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/backend/gradio_leaderboard/leaderboard.py +0 -0
  11. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/backend/gradio_leaderboard/leaderboard.pyi +0 -0
  12. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/backend/gradio_leaderboard/templates/component/__vite-browser-external-2447137e.js +0 -0
  13. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/backend/gradio_leaderboard/templates/component/style.css +0 -0
  14. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/backend/gradio_leaderboard/templates/component/wrapper-6f348d45-19fa94bf.js +0 -0
  15. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/backend/gradio_leaderboard/templates/example/index.js +0 -0
  16. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/backend/gradio_leaderboard/templates/example/style.css +0 -0
  17. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/demo/__init__.py +0 -0
  18. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/demo/app.py +0 -0
  19. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/demo/config.py +0 -0
  20. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/demo/css.css +0 -0
  21. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/demo/leaderboard_data.json +0 -0
  22. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/demo/space.py +0 -0
  23. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/frontend/Example.svelte +0 -0
  24. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/frontend/package-lock.json +0 -0
  25. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/frontend/package.json +0 -0
  26. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/frontend/shared/Checkboxgroup.svelte +0 -0
  27. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/frontend/shared/EditableCell.svelte +0 -0
  28. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/frontend/shared/Example.svelte +0 -0
  29. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/frontend/shared/RangeSlider.svelte +0 -0
  30. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/frontend/shared/SimpleTextbox.svelte +0 -0
  31. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/frontend/shared/VirtualTable.svelte +0 -0
  32. {gradio_leaderboard-0.0.10 → gradio_leaderboard-0.0.11rc0}/frontend/shared/utils.ts +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: gradio_leaderboard
3
- Version: 0.0.10
3
+ Version: 0.0.11rc0
4
4
  Summary: Super fast , batteries included Leaderboard component ⚡️
5
5
  Author-email: YOUR NAME <YOUREMAIL@domain.com>
6
6
  License-Expression: MIT
@@ -1362,11 +1362,11 @@ function Tm(t, e) {
1362
1362
  );
1363
1363
  return new Promise((ke, $) => {
1364
1364
  const xe = ve(oe, K, de);
1365
- let Se;
1365
+ let Ae;
1366
1366
  xe.on("data", (We) => {
1367
- ee && (xe.destroy(), ke(We)), V = !0, Se = We;
1367
+ ee && (xe.destroy(), ke(We)), V = !0, Ae = We;
1368
1368
  }).on("status", (We) => {
1369
- We.stage === "error" && $(We), We.stage === "complete" && (ee = !0, V && (xe.destroy(), ke(Se)));
1369
+ We.stage === "error" && $(We), We.stage === "complete" && (ee = !0, V && (xe.destroy(), ke(Ae)));
1370
1370
  });
1371
1371
  });
1372
1372
  }
@@ -1383,7 +1383,7 @@ function Tm(t, e) {
1383
1383
  "There is no endpoint matching that name of fn_index matching that number."
1384
1384
  );
1385
1385
  let ke, $, xe = z.protocol ?? "ws";
1386
- const Se = typeof oe == "number" ? "/predict" : oe;
1386
+ const Ae = typeof oe == "number" ? "/predict" : oe;
1387
1387
  let We, Ie = null, Xe = !1;
1388
1388
  const Ue = {};
1389
1389
  let zt = "";
@@ -1397,13 +1397,13 @@ function Tm(t, e) {
1397
1397
  }, Bm(ee, z))
1398
1398
  Re({
1399
1399
  type: "status",
1400
- endpoint: Se,
1400
+ endpoint: Ae,
1401
1401
  stage: "pending",
1402
1402
  queue: !1,
1403
1403
  fn_index: ee,
1404
1404
  time: /* @__PURE__ */ new Date()
1405
1405
  }), n(
1406
- `${z.root}/run${Se.startsWith("/") ? Se : `/${Se}`}${zt ? "?" + zt : ""}`,
1406
+ `${z.root}/run${Ae.startsWith("/") ? Ae : `/${Ae}`}${zt ? "?" + zt : ""}`,
1407
1407
  {
1408
1408
  ...We,
1409
1409
  session_hash: U
@@ -1413,13 +1413,13 @@ function Tm(t, e) {
1413
1413
  const Oe = Ee.data;
1414
1414
  me == 200 ? (Re({
1415
1415
  type: "data",
1416
- endpoint: Se,
1416
+ endpoint: Ae,
1417
1417
  fn_index: ee,
1418
1418
  data: Oe,
1419
1419
  time: /* @__PURE__ */ new Date()
1420
1420
  }), Re({
1421
1421
  type: "status",
1422
- endpoint: Se,
1422
+ endpoint: Ae,
1423
1423
  fn_index: ee,
1424
1424
  stage: "complete",
1425
1425
  eta: Ee.average_duration,
@@ -1428,7 +1428,7 @@ function Tm(t, e) {
1428
1428
  })) : Re({
1429
1429
  type: "status",
1430
1430
  stage: "error",
1431
- endpoint: Se,
1431
+ endpoint: Ae,
1432
1432
  fn_index: ee,
1433
1433
  message: Ee.error,
1434
1434
  queue: !1,
@@ -1439,7 +1439,7 @@ function Tm(t, e) {
1439
1439
  type: "status",
1440
1440
  stage: "error",
1441
1441
  message: Ee.message,
1442
- endpoint: Se,
1442
+ endpoint: Ae,
1443
1443
  fn_index: ee,
1444
1444
  queue: !1,
1445
1445
  time: /* @__PURE__ */ new Date()
@@ -1450,7 +1450,7 @@ function Tm(t, e) {
1450
1450
  type: "status",
1451
1451
  stage: "pending",
1452
1452
  queue: !0,
1453
- endpoint: Se,
1453
+ endpoint: Ae,
1454
1454
  fn_index: ee,
1455
1455
  time: /* @__PURE__ */ new Date()
1456
1456
  });
@@ -1467,7 +1467,7 @@ function Tm(t, e) {
1467
1467
  broken: !0,
1468
1468
  message: j0,
1469
1469
  queue: !0,
1470
- endpoint: Se,
1470
+ endpoint: Ae,
1471
1471
  fn_index: ee,
1472
1472
  time: /* @__PURE__ */ new Date()
1473
1473
  });
@@ -1479,7 +1479,7 @@ function Tm(t, e) {
1479
1479
  if (et === "update" && Ce && !Xe)
1480
1480
  Re({
1481
1481
  type: "status",
1482
- endpoint: Se,
1482
+ endpoint: Ae,
1483
1483
  fn_index: ee,
1484
1484
  time: /* @__PURE__ */ new Date(),
1485
1485
  ...Ce
@@ -1492,7 +1492,7 @@ function Tm(t, e) {
1492
1492
  type: "log",
1493
1493
  log: Le.log,
1494
1494
  level: Le.level,
1495
- endpoint: Se,
1495
+ endpoint: Ae,
1496
1496
  fn_index: ee
1497
1497
  }) : et === "generating" && Re({
1498
1498
  type: "status",
@@ -1500,14 +1500,14 @@ function Tm(t, e) {
1500
1500
  ...Ce,
1501
1501
  stage: Ce == null ? void 0 : Ce.stage,
1502
1502
  queue: !0,
1503
- endpoint: Se,
1503
+ endpoint: Ae,
1504
1504
  fn_index: ee
1505
1505
  });
1506
1506
  Le && (Re({
1507
1507
  type: "data",
1508
1508
  time: /* @__PURE__ */ new Date(),
1509
1509
  data: Le.data,
1510
- endpoint: Se,
1510
+ endpoint: Ae,
1511
1511
  fn_index: ee
1512
1512
  }), Xe && (Re({
1513
1513
  type: "status",
@@ -1515,7 +1515,7 @@ function Tm(t, e) {
1515
1515
  ...Xe,
1516
1516
  stage: Ce == null ? void 0 : Ce.stage,
1517
1517
  queue: !0,
1518
- endpoint: Se,
1518
+ endpoint: Ae,
1519
1519
  fn_index: ee
1520
1520
  }), ke.close()));
1521
1521
  }, Ou(z.version || "2.0.0", "3.6") < 0 && addEventListener(
@@ -1527,7 +1527,7 @@ function Tm(t, e) {
1527
1527
  type: "status",
1528
1528
  stage: "pending",
1529
1529
  queue: !0,
1530
- endpoint: Se,
1530
+ endpoint: Ae,
1531
1531
  fn_index: ee,
1532
1532
  time: /* @__PURE__ */ new Date()
1533
1533
  });
@@ -1546,7 +1546,7 @@ function Tm(t, e) {
1546
1546
  if (et === "update" && Ce && !Xe)
1547
1547
  Re({
1548
1548
  type: "status",
1549
- endpoint: Se,
1549
+ endpoint: Ae,
1550
1550
  fn_index: ee,
1551
1551
  time: /* @__PURE__ */ new Date(),
1552
1552
  ...Ce
@@ -1567,7 +1567,7 @@ function Tm(t, e) {
1567
1567
  stage: "error",
1568
1568
  message: j0,
1569
1569
  queue: !0,
1570
- endpoint: Se,
1570
+ endpoint: Ae,
1571
1571
  fn_index: ee,
1572
1572
  time: /* @__PURE__ */ new Date()
1573
1573
  }), $.close());
@@ -1576,7 +1576,7 @@ function Tm(t, e) {
1576
1576
  type: "log",
1577
1577
  log: Le.log,
1578
1578
  level: Le.level,
1579
- endpoint: Se,
1579
+ endpoint: Ae,
1580
1580
  fn_index: ee
1581
1581
  }) : et === "generating" && Re({
1582
1582
  type: "status",
@@ -1584,14 +1584,14 @@ function Tm(t, e) {
1584
1584
  ...Ce,
1585
1585
  stage: Ce == null ? void 0 : Ce.stage,
1586
1586
  queue: !0,
1587
- endpoint: Se,
1587
+ endpoint: Ae,
1588
1588
  fn_index: ee
1589
1589
  });
1590
1590
  Le && (Re({
1591
1591
  type: "data",
1592
1592
  time: /* @__PURE__ */ new Date(),
1593
1593
  data: Le.data,
1594
- endpoint: Se,
1594
+ endpoint: Ae,
1595
1595
  fn_index: ee
1596
1596
  }), Xe && (Re({
1597
1597
  type: "status",
@@ -1599,7 +1599,7 @@ function Tm(t, e) {
1599
1599
  ...Xe,
1600
1600
  stage: Ce == null ? void 0 : Ce.stage,
1601
1601
  queue: !0,
1602
- endpoint: Se,
1602
+ endpoint: Ae,
1603
1603
  fn_index: ee
1604
1604
  }), $.close()));
1605
1605
  };
@@ -1608,7 +1608,7 @@ function Tm(t, e) {
1608
1608
  type: "status",
1609
1609
  stage: "pending",
1610
1610
  queue: !0,
1611
- endpoint: Se,
1611
+ endpoint: Ae,
1612
1612
  fn_index: ee,
1613
1613
  time: /* @__PURE__ */ new Date()
1614
1614
  }), n(
@@ -1625,7 +1625,7 @@ function Tm(t, e) {
1625
1625
  stage: "error",
1626
1626
  message: Af,
1627
1627
  queue: !0,
1628
- endpoint: Se,
1628
+ endpoint: Ae,
1629
1629
  fn_index: ee,
1630
1630
  time: /* @__PURE__ */ new Date()
1631
1631
  });
@@ -1635,7 +1635,7 @@ function Tm(t, e) {
1635
1635
  stage: "error",
1636
1636
  message: j0,
1637
1637
  queue: !0,
1638
- endpoint: Se,
1638
+ endpoint: Ae,
1639
1639
  fn_index: ee,
1640
1640
  time: /* @__PURE__ */ new Date()
1641
1641
  });
@@ -1652,7 +1652,7 @@ function Tm(t, e) {
1652
1652
  if (Ce === "update" && Le && !Xe)
1653
1653
  Re({
1654
1654
  type: "status",
1655
- endpoint: Se,
1655
+ endpoint: Ae,
1656
1656
  fn_index: ee,
1657
1657
  time: /* @__PURE__ */ new Date(),
1658
1658
  ...Le
@@ -1665,7 +1665,7 @@ function Tm(t, e) {
1665
1665
  stage: "error",
1666
1666
  message: (Le == null ? void 0 : Le.message) || "An Unexpected Error Occurred!",
1667
1667
  queue: !0,
1668
- endpoint: Se,
1668
+ endpoint: Ae,
1669
1669
  fn_index: ee,
1670
1670
  time: /* @__PURE__ */ new Date()
1671
1671
  });
@@ -1674,7 +1674,7 @@ function Tm(t, e) {
1674
1674
  type: "log",
1675
1675
  log: tt.log,
1676
1676
  level: tt.level,
1677
- endpoint: Se,
1677
+ endpoint: Ae,
1678
1678
  fn_index: ee
1679
1679
  });
1680
1680
  return;
@@ -1685,14 +1685,14 @@ function Tm(t, e) {
1685
1685
  ...Le,
1686
1686
  stage: Le == null ? void 0 : Le.stage,
1687
1687
  queue: !0,
1688
- endpoint: Se,
1688
+ endpoint: Ae,
1689
1689
  fn_index: ee
1690
1690
  }), tt && ["sse_v2", "sse_v2.1", "sse_v3"].includes(xe) && Nn(Ie, tt));
1691
1691
  tt && (Re({
1692
1692
  type: "data",
1693
1693
  time: /* @__PURE__ */ new Date(),
1694
1694
  data: tt.data,
1695
- endpoint: Se,
1695
+ endpoint: Ae,
1696
1696
  fn_index: ee
1697
1697
  }), Xe && Re({
1698
1698
  type: "status",
@@ -1700,7 +1700,7 @@ function Tm(t, e) {
1700
1700
  ...Xe,
1701
1701
  stage: Le == null ? void 0 : Le.stage,
1702
1702
  queue: !0,
1703
- endpoint: Se,
1703
+ endpoint: Ae,
1704
1704
  fn_index: ee
1705
1705
  })), ((Le == null ? void 0 : Le.stage) === "complete" || (Le == null ? void 0 : Le.stage) === "error") && (R[Ie] && delete R[Ie], Ie in E && delete E[Ie]);
1706
1706
  } catch (Ce) {
@@ -1709,7 +1709,7 @@ function Tm(t, e) {
1709
1709
  stage: "error",
1710
1710
  message: "An Unexpected Error Occurred!",
1711
1711
  queue: !0,
1712
- endpoint: Se,
1712
+ endpoint: Ae,
1713
1713
  fn_index: ee,
1714
1714
  time: /* @__PURE__ */ new Date()
1715
1715
  }), ["sse_v2", "sse_v2.1"].includes(xe) && he();
@@ -1755,7 +1755,7 @@ function Tm(t, e) {
1755
1755
  Xe = ye, Re({
1756
1756
  ...ye,
1757
1757
  type: "status",
1758
- endpoint: Se,
1758
+ endpoint: Ae,
1759
1759
  fn_index: ee
1760
1760
  });
1761
1761
  let Fe = {};
@@ -1830,7 +1830,7 @@ function Tm(t, e) {
1830
1830
  const ee = { "Content-Type": "application/json" };
1831
1831
  _ && (ee.Authorization = `Bearer ${_}`);
1832
1832
  let we, ke = z.components.find(
1833
- (Se) => Se.id === oe
1833
+ (Ae) => Ae.id === oe
1834
1834
  );
1835
1835
  (V = ke == null ? void 0 : ke.props) != null && V.root_url ? we = ke.props.root_url : we = z.root;
1836
1836
  const $ = await t(
@@ -6818,7 +6818,7 @@ function wh() {
6818
6818
  enumerable: !0,
6819
6819
  value: !1
6820
6820
  }
6821
- })), we = null, ke = null, $ = !0, xe = !0, Se = !1, We = !0, Ie = !1, Xe = !0, Ue = !1, zt = !1, Nn = !1, Re = !1, $t = !1, Ot = !1, Ct = !0, Q = !1;
6821
+ })), we = null, ke = null, $ = !0, xe = !0, Ae = !1, We = !0, Ie = !1, Xe = !0, Ue = !1, zt = !1, Nn = !1, Re = !1, $t = !1, Ot = !1, Ct = !0, Q = !1;
6822
6822
  const ye = "user-content-";
6823
6823
  let Fe = !0, Ee = !1, me = {}, Oe = null;
6824
6824
  const et = Ve({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
@@ -6851,7 +6851,7 @@ function wh() {
6851
6851
  // eslint-disable-line indent
6852
6852
  yt
6853
6853
  // eslint-disable-line indent
6854
- ) : Le, Oe = Ln(G, "FORBID_CONTENTS") ? Ve({}, G.FORBID_CONTENTS, yt) : et, we = Ln(G, "FORBID_TAGS") ? Ve({}, G.FORBID_TAGS, yt) : {}, ke = Ln(G, "FORBID_ATTR") ? Ve({}, G.FORBID_ATTR, yt) : {}, me = Ln(G, "USE_PROFILES") ? G.USE_PROFILES : !1, $ = G.ALLOW_ARIA_ATTR !== !1, xe = G.ALLOW_DATA_ATTR !== !1, Se = G.ALLOW_UNKNOWN_PROTOCOLS || !1, We = G.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ie = G.SAFE_FOR_TEMPLATES || !1, Xe = G.SAFE_FOR_XML !== !1, Ue = G.WHOLE_DOCUMENT || !1, Re = G.RETURN_DOM || !1, $t = G.RETURN_DOM_FRAGMENT || !1, Ot = G.RETURN_TRUSTED_TYPE || !1, Nn = G.FORCE_BODY || !1, Ct = G.SANITIZE_DOM !== !1, Q = G.SANITIZE_NAMED_PROPS || !1, Fe = G.KEEP_CONTENT !== !1, Ee = G.IN_PLACE || !1, Be = G.ALLOWED_URI_REGEXP || _h, Ze = G.NAMESPACE || It, ee = G.CUSTOM_ELEMENT_HANDLING || {}, G.CUSTOM_ELEMENT_HANDLING && jt(G.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ee.tagNameCheck = G.CUSTOM_ELEMENT_HANDLING.tagNameCheck), G.CUSTOM_ELEMENT_HANDLING && jt(G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ee.attributeNameCheck = G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), G.CUSTOM_ELEMENT_HANDLING && typeof G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ee.allowCustomizedBuiltInElements = G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ie && (xe = !1), $t && (Re = !0), me && (oe = Ve({}, bc), de = [], me.html === !0 && (Ve(oe, _c), Ve(de, wc)), me.svg === !0 && (Ve(oe, Yl), Ve(de, Ql), Ve(de, Ys)), me.svgFilters === !0 && (Ve(oe, Zl), Ve(de, Ql), Ve(de, Ys)), me.mathMl === !0 && (Ve(oe, Jl), Ve(de, yc), Ve(de, Ys))), G.ADD_TAGS && (oe === K && (oe = Y0(oe)), Ve(oe, G.ADD_TAGS, yt)), G.ADD_ATTR && (de === V && (de = Y0(de)), Ve(de, G.ADD_ATTR, yt)), G.ADD_URI_SAFE_ATTR && Ve(tt, G.ADD_URI_SAFE_ATTR, yt), G.FORBID_CONTENTS && (Oe === et && (Oe = Y0(Oe)), Ve(Oe, G.FORBID_CONTENTS, yt)), Fe && (oe["#text"] = !0), Ue && Ve(oe, ["html", "head", "body"]), oe.table && (Ve(oe, ["tbody"]), delete we.tbody), G.TRUSTED_TYPES_POLICY) {
6854
+ ) : Le, Oe = Ln(G, "FORBID_CONTENTS") ? Ve({}, G.FORBID_CONTENTS, yt) : et, we = Ln(G, "FORBID_TAGS") ? Ve({}, G.FORBID_TAGS, yt) : {}, ke = Ln(G, "FORBID_ATTR") ? Ve({}, G.FORBID_ATTR, yt) : {}, me = Ln(G, "USE_PROFILES") ? G.USE_PROFILES : !1, $ = G.ALLOW_ARIA_ATTR !== !1, xe = G.ALLOW_DATA_ATTR !== !1, Ae = G.ALLOW_UNKNOWN_PROTOCOLS || !1, We = G.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ie = G.SAFE_FOR_TEMPLATES || !1, Xe = G.SAFE_FOR_XML !== !1, Ue = G.WHOLE_DOCUMENT || !1, Re = G.RETURN_DOM || !1, $t = G.RETURN_DOM_FRAGMENT || !1, Ot = G.RETURN_TRUSTED_TYPE || !1, Nn = G.FORCE_BODY || !1, Ct = G.SANITIZE_DOM !== !1, Q = G.SANITIZE_NAMED_PROPS || !1, Fe = G.KEEP_CONTENT !== !1, Ee = G.IN_PLACE || !1, Be = G.ALLOWED_URI_REGEXP || _h, Ze = G.NAMESPACE || It, ee = G.CUSTOM_ELEMENT_HANDLING || {}, G.CUSTOM_ELEMENT_HANDLING && jt(G.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (ee.tagNameCheck = G.CUSTOM_ELEMENT_HANDLING.tagNameCheck), G.CUSTOM_ELEMENT_HANDLING && jt(G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (ee.attributeNameCheck = G.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), G.CUSTOM_ELEMENT_HANDLING && typeof G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (ee.allowCustomizedBuiltInElements = G.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ie && (xe = !1), $t && (Re = !0), me && (oe = Ve({}, bc), de = [], me.html === !0 && (Ve(oe, _c), Ve(de, wc)), me.svg === !0 && (Ve(oe, Yl), Ve(de, Ql), Ve(de, Ys)), me.svgFilters === !0 && (Ve(oe, Zl), Ve(de, Ql), Ve(de, Ys)), me.mathMl === !0 && (Ve(oe, Jl), Ve(de, yc), Ve(de, Ys))), G.ADD_TAGS && (oe === K && (oe = Y0(oe)), Ve(oe, G.ADD_TAGS, yt)), G.ADD_ATTR && (de === V && (de = Y0(de)), Ve(de, G.ADD_ATTR, yt)), G.ADD_URI_SAFE_ATTR && Ve(tt, G.ADD_URI_SAFE_ATTR, yt), G.FORBID_CONTENTS && (Oe === et && (Oe = Y0(Oe)), Ve(Oe, G.FORBID_CONTENTS, yt)), Fe && (oe["#text"] = !0), Ue && Ve(oe, ["html", "head", "body"]), oe.table && (Ve(oe, ["tbody"]), delete we.tbody), G.TRUSTED_TYPES_POLICY) {
6855
6855
  if (typeof G.TRUSTED_TYPES_POLICY.createHTML != "function")
6856
6856
  throw Yr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
6857
6857
  if (typeof G.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -6987,7 +6987,7 @@ function wh() {
6987
6987
  } else if (!tt[ie]) {
6988
6988
  if (!an(Be, Xr(x, he, ""))) {
6989
6989
  if (!((ie === "src" || ie === "xlink:href" || ie === "href") && G !== "script" && pp(x, "data:") === 0 && Ce[G])) {
6990
- if (!(Se && !an(ue, Xr(x, he, "")))) {
6990
+ if (!(Ae && !an(ue, Xr(x, he, "")))) {
6991
6991
  if (x)
6992
6992
  return !1;
6993
6993
  }
@@ -7019,31 +7019,31 @@ function wh() {
7019
7019
  namespaceURI: Vt,
7020
7020
  value: Un
7021
7021
  } = H, Gn = yt(Lt);
7022
- let Ae = Lt === "value" ? Un : gp(Un);
7023
- if (x.attrName = Gn, x.attrValue = Ae, x.keepAttr = !0, x.forceKeepAttr = void 0, B("uponSanitizeAttribute", G, x), Ae = x.attrValue, x.forceKeepAttr || (q(Lt, G), !x.keepAttr))
7022
+ let Se = Lt === "value" ? Un : gp(Un);
7023
+ if (x.attrName = Gn, x.attrValue = Se, x.keepAttr = !0, x.forceKeepAttr = void 0, B("uponSanitizeAttribute", G, x), Se = x.attrValue, x.forceKeepAttr || (q(Lt, G), !x.keepAttr))
7024
7024
  continue;
7025
- if (!We && an(/\/>/i, Ae)) {
7025
+ if (!We && an(/\/>/i, Se)) {
7026
7026
  q(Lt, G);
7027
7027
  continue;
7028
7028
  }
7029
7029
  Ie && Ws([re, pe, Me], (q0) => {
7030
- Ae = Xr(Ae, q0, " ");
7030
+ Se = Xr(Se, q0, " ");
7031
7031
  });
7032
7032
  const or = yt(G.nodeName);
7033
- if (fe(or, Gn, Ae)) {
7034
- if (Q && (Gn === "id" || Gn === "name") && (q(Lt, G), Ae = ye + Ae), D && typeof T == "object" && typeof T.getAttributeType == "function" && !Vt)
7033
+ if (fe(or, Gn, Se)) {
7034
+ if (Q && (Gn === "id" || Gn === "name") && (q(Lt, G), Se = ye + Se), D && typeof T == "object" && typeof T.getAttributeType == "function" && !Vt)
7035
7035
  switch (T.getAttributeType(or, Gn)) {
7036
7036
  case "TrustedHTML": {
7037
- Ae = D.createHTML(Ae);
7037
+ Se = D.createHTML(Se);
7038
7038
  break;
7039
7039
  }
7040
7040
  case "TrustedScriptURL": {
7041
- Ae = D.createScriptURL(Ae);
7041
+ Se = D.createScriptURL(Se);
7042
7042
  break;
7043
7043
  }
7044
7044
  }
7045
7045
  try {
7046
- Vt ? G.setAttributeNS(Vt, Lt, Ae) : G.setAttribute(Lt, Ae), pc(e.removed);
7046
+ Vt ? G.setAttributeNS(Vt, Lt, Se) : G.setAttribute(Lt, Se), pc(e.removed);
7047
7047
  } catch {
7048
7048
  }
7049
7049
  }
@@ -7531,7 +7531,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
7531
7531
  s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
7532
7532
  c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
7533
7533
  M` + (1001 + i) + " " + s + "h400000v" + (40 + i) + "h-400000z";
7534
- }, Se = function(i, s) {
7534
+ }, Ae = function(i, s) {
7535
7535
  return "M983 " + (10 + i + s) + `
7536
7536
  l` + i / 3.13 + " -" + i + `
7537
7537
  c4,-6.7,10,-10,18,-10 H400000v` + (40 + i) + `
@@ -7584,7 +7584,7 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
7584
7584
  f = xe(s, ke);
7585
7585
  break;
7586
7586
  case "sqrtSize2":
7587
- f = Se(s, ke);
7587
+ f = Ae(s, ke);
7588
7588
  break;
7589
7589
  case "sqrtSize3":
7590
7590
  f = We(s, ke);
@@ -10734,15 +10734,15 @@ l0,-` + (s + 144) + `c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
10734
10734
  d(g, y, De, s, s), d(Z, y, H, s, s);
10735
10735
  }
10736
10736
  d(g, B, H, "C", "ℂ"), d(Z, B, H, "C", "ℂ"), d(g, B, H, "H", "ℍ"), d(Z, B, H, "H", "ℍ"), d(g, B, H, "N", "ℕ"), d(Z, B, H, "N", "ℕ"), d(g, B, H, "P", "ℙ"), d(Z, B, H, "P", "ℙ"), d(g, B, H, "Q", "ℚ"), d(Z, B, H, "Q", "ℚ"), d(g, B, H, "R", "ℝ"), d(Z, B, H, "R", "ℝ"), d(g, B, H, "Z", "ℤ"), d(Z, B, H, "Z", "ℤ"), d(g, y, De, "h", "ℎ"), d(Z, y, De, "h", "ℎ");
10737
- let Ae = "";
10737
+ let Se = "";
10738
10738
  for (let i = 0; i < Gn.length; i++) {
10739
10739
  const s = Gn.charAt(i);
10740
- Ae = String.fromCharCode(55349, 56320 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae), Ae = String.fromCharCode(55349, 56372 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae), Ae = String.fromCharCode(55349, 56424 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae), Ae = String.fromCharCode(55349, 56580 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae), Ae = String.fromCharCode(55349, 56684 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae), Ae = String.fromCharCode(55349, 56736 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae), Ae = String.fromCharCode(55349, 56788 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae), Ae = String.fromCharCode(55349, 56840 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae), Ae = String.fromCharCode(55349, 56944 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae), i < 26 && (Ae = String.fromCharCode(55349, 56632 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae), Ae = String.fromCharCode(55349, 56476 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae));
10740
+ Se = String.fromCharCode(55349, 56320 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se), Se = String.fromCharCode(55349, 56372 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se), Se = String.fromCharCode(55349, 56424 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se), Se = String.fromCharCode(55349, 56580 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se), Se = String.fromCharCode(55349, 56684 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se), Se = String.fromCharCode(55349, 56736 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se), Se = String.fromCharCode(55349, 56788 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se), Se = String.fromCharCode(55349, 56840 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se), Se = String.fromCharCode(55349, 56944 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se), i < 26 && (Se = String.fromCharCode(55349, 56632 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se), Se = String.fromCharCode(55349, 56476 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se));
10741
10741
  }
10742
- Ae = "𝕜", d(g, y, De, "k", Ae), d(Z, y, H, "k", Ae);
10742
+ Se = "𝕜", d(g, y, De, "k", Se), d(Z, y, H, "k", Se);
10743
10743
  for (let i = 0; i < 10; i++) {
10744
10744
  const s = i.toString();
10745
- Ae = String.fromCharCode(55349, 57294 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae), Ae = String.fromCharCode(55349, 57314 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae), Ae = String.fromCharCode(55349, 57324 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae), Ae = String.fromCharCode(55349, 57334 + i), d(g, y, De, s, Ae), d(Z, y, H, s, Ae);
10745
+ Se = String.fromCharCode(55349, 57294 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se), Se = String.fromCharCode(55349, 57314 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se), Se = String.fromCharCode(55349, 57324 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se), Se = String.fromCharCode(55349, 57334 + i), d(g, y, De, s, Se), d(Z, y, H, s, Se);
10746
10746
  }
10747
10747
  const or = "ÐÞþ";
10748
10748
  for (let i = 0; i < or.length; i++) {
@@ -20363,12 +20363,12 @@ var Oh = { exports: {} };
20363
20363
  K--, oe = N.slice(Be, ee), de.index -= Be;
20364
20364
  } else if (de = p(he, 0, oe, Me), !de)
20365
20365
  continue;
20366
- var ke = de.index, $ = de[0], xe = oe.slice(0, ke), Se = oe.slice(ke + $.length), We = Be + oe.length;
20366
+ var ke = de.index, $ = de[0], xe = oe.slice(0, ke), Ae = oe.slice(ke + $.length), We = Be + oe.length;
20367
20367
  I && We > I.reach && (I.reach = We);
20368
20368
  var Ie = le.prev;
20369
20369
  xe && (Ie = k(D, Ie, xe), Be += xe.length), T(D, Ie, K);
20370
20370
  var Xe = new h(z, pe ? u.tokenize($, pe) : $, ve, $);
20371
- if (le = k(D, Ie, Xe), Se && k(D, le, Se), K > 1) {
20371
+ if (le = k(D, Ie, Xe), Ae && k(D, le, Ae), K > 1) {
20372
20372
  var Ue = {
20373
20373
  cause: z + "," + ne,
20374
20374
  reach: We
@@ -23225,8 +23225,8 @@ function g7(t, e, n) {
23225
23225
  (We) => We.height
23226
23226
  ]);
23227
23227
  xe || (xe = T);
23228
- const Se = N[V] = xe;
23229
- ne += Se, V += 1;
23228
+ const Ae = N[V] = xe;
23229
+ ne += Ae, V += 1;
23230
23230
  }
23231
23231
  n(11, v = V);
23232
23232
  const ee = K.length - v, we = R.offsetHeight - R.clientHeight;
@@ -23259,10 +23259,10 @@ function g7(t, e, n) {
23259
23259
  let ke = 0;
23260
23260
  for (let Xe = 0; Xe < E.length; Xe += 1)
23261
23261
  N[_ + Xe] = E[Xe].getBoundingClientRect().height;
23262
- let $ = 0, xe = U + ee / 2, Se = [];
23262
+ let $ = 0, xe = U + ee / 2, Ae = [];
23263
23263
  for (; $ < r.length; ) {
23264
23264
  const Xe = N[$] || T;
23265
- if (Se[$] = Xe, xe + Xe + we > de) {
23265
+ if (Ae[$] = Xe, xe + Xe + we > de) {
23266
23266
  ke = $, n(6, C = xe - (U + ee / 2));
23267
23267
  break;
23268
23268
  }
@@ -25043,9 +25043,9 @@ function R7(t, e, n) {
25043
25043
  async function $(q, d) {
25044
25044
  Cn(ne, [q, d]) || (n(26, Ie = !1), n(28, Ue = !1), n(22, ne = !1), n(16, C = [q, d]), await ni(), Ee.focus());
25045
25045
  }
25046
- let xe, Se;
25046
+ let xe, Ae;
25047
25047
  function We(q) {
25048
- typeof Se != "number" || Se !== q ? (n(18, xe = "asc"), n(19, Se = q)) : xe === "asc" ? n(18, xe = "des") : xe === "des" && n(18, xe = "asc");
25048
+ typeof Ae != "number" || Ae !== q ? (n(18, xe = "asc"), n(19, Ae = q)) : xe === "asc" ? n(18, xe = "des") : xe === "des" && n(18, xe = "asc");
25049
25049
  }
25050
25050
  let Ie, Xe = !1, Ue = !1;
25051
25051
  async function zt(q, d = !1) {
@@ -25204,7 +25204,8 @@ function R7(t, e, n) {
25204
25204
  return t.$$set = (q) => {
25205
25205
  "datatype" in q && n(0, o = q.datatype), "label" in q && n(1, c = q.label), "show_label" in q && n(2, u = q.show_label), "headers" in q && n(48, h = q.headers), "values" in q && n(49, p = q.values), "col_count" in q && n(3, _ = q.col_count), "row_count" in q && n(4, v = q.row_count), "latex_delimiters" in q && n(5, k = q.latex_delimiters), "editable" in q && n(6, T = q.editable), "wrap" in q && n(7, O = q.wrap), "root" in q && n(8, P = q.root), "i18n" in q && n(9, U = q.i18n), "height" in q && n(10, M = q.height), "line_breaks" in q && n(11, N = q.line_breaks), "column_widths" in q && n(12, D = q.column_widths), "hide_columns" in q && n(13, E = q.hide_columns), "display_value" in q && n(14, R = q.display_value), "styling" in q && n(15, I = q.styling);
25206
25206
  }, t.$$.update = () => {
25207
- if (t.$$.dirty[0] & /*selected*/
25207
+ if (t.$$.dirty[1] & /*values*/
25208
+ 262144 && console.log("values", p), t.$$.dirty[0] & /*selected*/
25208
25209
  65536 && C !== !1) {
25209
25210
  const [q, d] = C;
25210
25211
  !isNaN(q) && !isNaN(d) && Y("select", {
@@ -25214,11 +25215,11 @@ function R7(t, e, n) {
25214
25215
  }
25215
25216
  t.$$.dirty[1] & /*headers, old_headers*/
25216
25217
  655360 && (Cn(h, ue) || he()), t.$$.dirty[1] & /*values, old_val*/
25217
- 1310720 && (Cn(p, Be) || (n(17, le = Ne(p)), n(51, Be = p))), t.$$.dirty[0] & /*data*/
25218
+ 1310720 && (Cn(p, Be) || (n(17, le = Ne(p)), n(51, Be = p), n(19, Ae = void 0))), t.$$.dirty[0] & /*data*/
25218
25219
  131072 && le && oe(), t.$$.dirty[0] & /*data*/
25219
25220
  131072 && n(35, r = ye(le)), t.$$.dirty[0] & /*cells*/
25220
25221
  1048576 && Fe[0] && Oe(), t.$$.dirty[0] & /*data, display_value, styling, sort_by, sort_direction*/
25221
- 966656 && Le(le, R, I, Se, xe), t.$$.dirty[0] & /*selected*/
25222
+ 966656 && Le(le, R, I, Ae, xe), t.$$.dirty[0] & /*selected*/
25222
25223
  65536 && n(34, l = !!C && C[0]);
25223
25224
  }, [
25224
25225
  o,
@@ -25240,7 +25241,7 @@ function R7(t, e, n) {
25240
25241
  C,
25241
25242
  le,
25242
25243
  xe,
25243
- Se,
25244
+ Ae,
25244
25245
  Fe,
25245
25246
  z,
25246
25247
  ne,
@@ -27748,7 +27749,7 @@ function R9(t, e, n) {
27748
27749
  let { label: r } = e, { info: l = void 0 } = e, { value: o = [] } = e, c = [], { value_is_output: u = !1 } = e, { max_choices: h = null } = e, { choices: p } = e, _, { disabled: v = !1 } = e, { show_label: k } = e, { container: T = !0 } = e, { allow_custom_value: O = !1 } = e, { filterable: P = !0 } = e, { i18n: U } = e, M, N = "", D = "", E = !1, C, R, I = [], z = null, Y = [], ne = [];
27749
27750
  const re = C9();
27750
27751
  Array.isArray(o) && o.forEach(($) => {
27751
- const xe = p.map((Se) => Se[1]).indexOf($);
27752
+ const xe = p.map((Ae) => Ae[1]).indexOf($);
27752
27753
  xe !== -1 ? Y.push(xe) : Y.push($);
27753
27754
  });
27754
27755
  function pe() {
@@ -27779,7 +27780,7 @@ function R9(t, e, n) {
27779
27780
  n(12, Y = []), n(10, N = ""), $.preventDefault();
27780
27781
  }
27781
27782
  function le($) {
27782
- n(11, I = p.map((xe, Se) => Se)), (h === null || Y.length < h) && n(14, E = !0), re("focus");
27783
+ n(11, I = p.map((xe, Ae) => Ae)), (h === null || Y.length < h) && n(14, E = !0), re("focus");
27783
27784
  }
27784
27785
  function Be($) {
27785
27786
  n(14, [E, z] = D9($, z, I), E, (n(16, z), n(3, p), n(27, _), n(10, N), n(28, D), n(7, O), n(11, I))), $.key === "Enter" && (z !== null ? ue(z) : O && (Ne(N), n(10, N = ""))), $.key === "Backspace" && N === "" && n(12, Y = [...Y.slice(0, -1)]), Y.length === h && (n(14, E = !1), n(16, z = null));
@@ -29325,7 +29326,7 @@ function F_(t, e, n) {
29325
29326
  const Ze = It !== -1 ? tt : Le;
29326
29327
  (Q[Ce][kn] === null ? "" : Q[Ce][kn].toString()).toLowerCase().includes(Jt.toLowerCase()) ? Ze.push(!0) : Ze.push(!1);
29327
29328
  }
29328
- Le.length && !tt.length ? Oe[Ce] = Le.some((Rt) => Rt) : tt.length && !Le.length ? Oe[Ce] = tt.every((Rt) => !!Rt) : Le.length && tt.length && (Oe[Ce] = Le.some((Rt) => Rt) && tt.every((Rt) => !!Rt));
29329
+ Le.length && !tt.length ? Oe[Ce] = Le.some((Rt) => Rt) : tt.length && !Le.length ? Oe[Ce] = tt.some((Rt) => !!Rt) : Le.length && tt.length && (Oe[Ce] = Le.some((Rt) => Rt) || tt.every((Rt) => !!Rt));
29329
29330
  }
29330
29331
  return Oe;
29331
29332
  }
@@ -29337,7 +29338,7 @@ function F_(t, e, n) {
29337
29338
  const Oe = ke(ue, ye, Ee, me), et = Fe.map((Ce) => we($(Ce[0]), Ce[1])).concat([Oe]);
29338
29339
  return Q.filter((Ce, Le) => et.every((tt) => tt[Le]));
29339
29340
  }
29340
- function Se(Q, ye, Fe) {
29341
+ function Ae(Q, ye, Fe) {
29341
29342
  n(23, Be = ee(ue, Q)), n(23, Be = xe(Be, ve, ye, R, Fe)), Be.length === 0 && n(23, Be = [Array(Q.length).fill("")]);
29342
29343
  }
29343
29344
  V(), a_(() => {
@@ -29374,7 +29375,7 @@ function F_(t, e, n) {
29374
29375
  "headers" in Q && n(0, r = Q.headers), "elem_id" in Q && n(28, l = Q.elem_id), "elem_classes" in Q && n(29, o = Q.elem_classes), "visible" in Q && n(30, c = Q.visible), "value" in Q && n(26, u = Q.value), "bool_checkboxgroup_label" in Q && n(1, h = Q.bool_checkboxgroup_label), "value_is_output" in Q && n(27, _ = Q.value_is_output), "col_count" in Q && n(31, v = Q.col_count), "label" in Q && n(2, k = Q.label), "show_label" in Q && n(3, T = Q.show_label), "wrap" in Q && n(4, O = Q.wrap), "datatype" in Q && n(5, P = Q.datatype), "scale" in Q && n(32, U = Q.scale), "min_width" in Q && n(33, M = Q.min_width), "root" in Q && n(6, N = Q.root), "filter_columns" in Q && n(34, D = Q.filter_columns), "select_columns_config" in Q && n(7, E = Q.select_columns_config), "hide_columns" in Q && n(8, C = Q.hide_columns), "search_columns" in Q && n(9, R = Q.search_columns), "line_breaks" in Q && n(10, I = Q.line_breaks), "column_widths" in Q && n(11, z = Q.column_widths), "gradio" in Q && n(12, Y = Q.gradio), "latex_delimiters" in Q && n(13, ne = Q.latex_delimiters), "height" in Q && n(14, re = Q.height), "loading_status" in Q && n(15, pe = Q.loading_status), "interactive" in Q && n(16, Me = Q.interactive);
29375
29376
  }, t.$$.update = () => {
29376
29377
  t.$$.dirty[0] & /*default_selection, filter_values, search_value*/
29377
- 917504 && Se(de, oe, K), t.$$.dirty[0] & /*value*/
29378
+ 917504 && Ae(de, oe, K), t.$$.dirty[0] & /*value*/
29378
29379
  67108864 | t.$$.dirty[1] & /*old_value*/
29379
29380
  16 && JSON.stringify(u) !== p && (n(35, p = JSON.stringify(u)), ve = u.headers.map((Q) => Q), ue = u.data.map((Q) => Q), V());
29380
29381
  }, [
@@ -101,7 +101,7 @@ Searching follows the following rules:
101
101
  1. Multiple queries can be separated by a semicolon `;`.
102
102
  2. Any subquery is matched against the `primary search column` by default.
103
103
  3. To match against a `secondary search column`, the query must be preceded by the column name and a colon (`:`), e.g. `Name: Maria`.
104
- 4. The returned rows are those that match against `ANY` primary search column and `ALL` secondary search columns.
104
+ 4. The returned rows are those that match against `ANY` primary search column or `ANY` secondary search columns.
105
105
 
106
106
  You can configure searching with the `search_columns` parameter. It's value can be:
107
107
  * `a list`: In which case the first element is the `primary search column` and the remaining are the `secondary search columns`.
@@ -178,9 +178,9 @@
178
178
  if (primary_column_matches.length && !secondary_column_matches.length){
179
179
  mask[i] = primary_column_matches.some(s => s);
180
180
  } else if (secondary_column_matches.length && !primary_column_matches.length){
181
- mask[i] = secondary_column_matches.every(s => Boolean(s));
181
+ mask[i] = secondary_column_matches.some(s => Boolean(s));
182
182
  } else if (primary_column_matches.length && secondary_column_matches.length){
183
- mask[i] = primary_column_matches.some(s => s) && secondary_column_matches.every(s => Boolean(s));
183
+ mask[i] = primary_column_matches.some(s => s) || secondary_column_matches.every(s => Boolean(s));
184
184
  }
185
185
  }
186
186
  return mask;
@@ -45,6 +45,8 @@
45
45
  export let styling: string[][] | null = null;
46
46
  let t_rect: DOMRectReadOnly;
47
47
 
48
+ $: console.log("values", values);
49
+
48
50
  const dispatch = createEventDispatcher<{
49
51
  change: {
50
52
  data: (string | number)[][];
@@ -156,6 +158,7 @@
156
158
  $: if (!dequal(values, old_val)) {
157
159
  data = process_data(values as (string | number)[][]);
158
160
  old_val = values as (string | number)[][];
161
+ sort_by = undefined;
159
162
  }
160
163
 
161
164
  let data: { id: string; value: string | number }[][] = [[]];
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
8
8
 
9
9
  [project]
10
10
  name = "gradio_leaderboard"
11
- version = "0.0.10"
11
+ version = "0.0.11rc"
12
12
  description = "Super fast , batteries included Leaderboard component ⚡️"
13
13
  readme = "README.md"
14
14
  license = "MIT"
@@ -36,7 +36,7 @@ classifiers = [
36
36
  dev = ["build", "twine"]
37
37
 
38
38
  [tool.hatch.build]
39
- artifacts = ["/backend/gradio_leaderboard/templates", "*.pyi", "backend/gradio_leaderboard/templates", "backend/gradio_leaderboard/templates", "backend/gradio_leaderboard/templates", "backend/gradio_leaderboard/templates", "backend/gradio_leaderboard/templates"]
39
+ artifacts = ["/backend/gradio_leaderboard/templates", "*.pyi", "backend/gradio_leaderboard/templates", "backend/gradio_leaderboard/templates", "backend/gradio_leaderboard/templates"]
40
40
 
41
41
  [tool.hatch.build.targets.wheel]
42
42
  packages = ["/backend/gradio_leaderboard"]