lightly-studio 0.3.1__py3-none-any.whl → 0.3.2__py3-none-any.whl
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.
Potentially problematic release.
This version of lightly-studio might be problematic. Click here for more details.
- lightly_studio/__init__.py +4 -4
- lightly_studio/api/app.py +1 -1
- lightly_studio/api/routes/api/annotation.py +6 -16
- lightly_studio/api/routes/api/annotation_label.py +2 -5
- lightly_studio/api/routes/api/annotation_task.py +4 -5
- lightly_studio/api/routes/api/classifier.py +2 -5
- lightly_studio/api/routes/api/dataset.py +2 -3
- lightly_studio/api/routes/api/dataset_tag.py +2 -3
- lightly_studio/api/routes/api/metadata.py +2 -4
- lightly_studio/api/routes/api/metrics.py +2 -6
- lightly_studio/api/routes/api/sample.py +5 -13
- lightly_studio/api/routes/api/settings.py +2 -6
- lightly_studio/api/routes/images.py +6 -6
- lightly_studio/core/add_samples.py +383 -0
- lightly_studio/core/dataset.py +250 -362
- lightly_studio/core/dataset_query/__init__.py +0 -0
- lightly_studio/core/dataset_query/boolean_expression.py +67 -0
- lightly_studio/core/dataset_query/dataset_query.py +211 -0
- lightly_studio/core/dataset_query/field.py +113 -0
- lightly_studio/core/dataset_query/field_expression.py +79 -0
- lightly_studio/core/dataset_query/match_expression.py +23 -0
- lightly_studio/core/dataset_query/order_by.py +79 -0
- lightly_studio/core/dataset_query/sample_field.py +28 -0
- lightly_studio/core/dataset_query/tags_expression.py +46 -0
- lightly_studio/core/sample.py +159 -32
- lightly_studio/core/start_gui.py +35 -0
- lightly_studio/dataset/edge_embedding_generator.py +13 -8
- lightly_studio/dataset/embedding_generator.py +2 -3
- lightly_studio/dataset/embedding_manager.py +74 -6
- lightly_studio/dataset/fsspec_lister.py +275 -0
- lightly_studio/dataset/loader.py +49 -30
- lightly_studio/dataset/mobileclip_embedding_generator.py +6 -4
- lightly_studio/db_manager.py +145 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.BBm0IWdq.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.BNTuXSAe.css +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/2O287xak.js +3 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{O-EABkf9.js → 7YNGEs1C.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BBoGk9hq.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BRnH9v23.js +92 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Bg1Y5eUZ.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{DOlTMNyt.js → BqBqV92V.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/C0JiMuYn.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{DjfY96ND.js → C98Hk3r5.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{r64xT6ao.js → CG0dMCJi.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{C8I8rFJQ.js → Ccq4ZD0B.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cpy-nab_.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{Bu7uvVrG.js → Crk-jcvV.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cs31G8Qn.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CsKrY2zA.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{x9G_hzyY.js → Cur71c3O.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CzgC3GFB.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D8GZDMNN.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DFRh-Spp.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{BylOuP6i.js → DRZO-E-T.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{l7KrR96u.js → DcGCxgpH.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{Bsi3UGy5.js → Df3aMO5B.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{hQVEETDE.js → DkR_EZ_B.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DqUGznj_.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/KpAtIldw.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/M1Q1F7bw.js +4 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{CDnpyLsT.js → OH7-C_mc.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/{D6su9Aln.js → gLNdjSzu.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/i0ZZ4z06.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/app.BI-EA5gL.js +2 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.CcsRl3cZ.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/0.BbO4Zc3r.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{1.B4rNYwVp.js → 1._I9GR805.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/10.J2RBFrSr.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/12.Cmqj25a-.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/2.C45iKJHA.js +6 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{3.CWHpKonm.js → 3.w9g4AcAx.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{4.OUWOLQeV.js → 4.BBI8KwnD.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.huHuxdiF.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/6.CrbkRPam.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/7.FomEdhD6.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.Cb_ADSLk.js +1 -0
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/{9.CPu3CiBc.js → 9.CajIG5ce.js} +1 -1
- lightly_studio/dist_lightly_studio_view_app/_app/version.json +1 -1
- lightly_studio/dist_lightly_studio_view_app/index.html +14 -14
- lightly_studio/examples/example.py +13 -12
- lightly_studio/examples/example_coco.py +13 -0
- lightly_studio/examples/example_metadata.py +83 -98
- lightly_studio/examples/example_selection.py +7 -19
- lightly_studio/examples/example_split_work.py +12 -36
- lightly_studio/examples/{example_v2.py → example_yolo.py} +3 -4
- lightly_studio/models/annotation/annotation_base.py +7 -8
- lightly_studio/models/annotation/instance_segmentation.py +8 -8
- lightly_studio/models/annotation/object_detection.py +4 -4
- lightly_studio/models/dataset.py +6 -2
- lightly_studio/models/sample.py +10 -3
- lightly_studio/resolvers/dataset_resolver.py +10 -0
- lightly_studio/resolvers/embedding_model_resolver.py +22 -0
- lightly_studio/resolvers/sample_resolver.py +53 -9
- lightly_studio/resolvers/tag_resolver.py +23 -0
- lightly_studio/selection/select.py +55 -46
- lightly_studio/selection/select_via_db.py +23 -19
- lightly_studio/selection/selection_config.py +6 -3
- lightly_studio/services/annotations_service/__init__.py +4 -0
- lightly_studio/services/annotations_service/update_annotation.py +21 -32
- lightly_studio/services/annotations_service/update_annotation_bounding_box.py +36 -0
- lightly_studio-0.3.2.dist-info/METADATA +689 -0
- {lightly_studio-0.3.1.dist-info → lightly_studio-0.3.2.dist-info}/RECORD +104 -91
- lightly_studio/api/db.py +0 -133
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.OwPEPQZu.css +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.b653GmVf.css +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/B2FVR0s0.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/B9zumHo5.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BJXwVxaE.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Bx1xMsFy.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CcaPhhk3.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CvOmgdoc.js +0 -93
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CxtLVaYz.js +0 -3
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D5-A_Ffd.js +0 -4
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D6RI2Zrd.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D98V7j6A.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DIRAtgl0.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DjUWrjOv.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/XO7A28GO.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/nAHhluT7.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/vC4nQVEB.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/app.CjnvpsmS.js +0 -2
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.0o1H7wM9.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/0.XRq_TUwu.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/10.DfBwOEhN.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/12.CwF2_8mP.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/2.CS4muRY-.js +0 -6
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.Dm6t9F5W.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/6.Bw5ck4gK.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/7.CF0EDTR6.js +0 -1
- lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.Cw30LEcV.js +0 -1
- lightly_studio-0.3.1.dist-info/METADATA +0 -520
- /lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/{OpenSans- → OpenSans-Medium.DVUZMR_6.ttf} +0 -0
- {lightly_studio-0.3.1.dist-info → lightly_studio-0.3.2.dist-info}/WHEEL +0 -0
|
@@ -1,117 +1,129 @@
|
|
|
1
|
-
lightly_studio/__init__.py,sha256=
|
|
1
|
+
lightly_studio/__init__.py,sha256=WOc8Eow6HovMVe7ePU3vj2rzbKiPy6k8cGGuaOXLjBk,563
|
|
2
|
+
lightly_studio/db_manager.py,sha256=BTjYzPThvcjRASpy7CJUr0zyxVEPkq43XSCH3BE-zmU,4891
|
|
2
3
|
lightly_studio/export_schema.py,sha256=tjJnekCJFacaK6Hraabfbat0hUknwRW7DqO1lddXcA0,484
|
|
3
4
|
lightly_studio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
5
|
lightly_studio/setup_logging.py,sha256=o4xDUKJ-YkATLvKOqgwSzHaOjGXzN_-1HkiG5hbHXB8,672
|
|
5
6
|
lightly_studio/type_definitions.py,sha256=W2L-SQBD8OtgUc0kbvRbltSqSrIGE1BZzYg_POPOQ0Y,562
|
|
6
7
|
lightly_studio/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
lightly_studio/api/app.py,sha256=
|
|
8
|
+
lightly_studio/api/app.py,sha256=lbUXJ4Jnp5FzSM6avxPuD6UbLk4EBZoDNEk03HXnV6o,2933
|
|
8
9
|
lightly_studio/api/cache.py,sha256=eJF4VYBFhx_p5rItfIIe18SDqUJVkKIDROXv61Tv1Zo,2478
|
|
9
|
-
lightly_studio/api/db.py,sha256=LQZZLqB9i9rDjbRcw_GWKcb43m0rqoizxahC4yxlxzc,4311
|
|
10
10
|
lightly_studio/api/db_tables.py,sha256=Bn4K6lLhECUVu9tCjLFYxV1Yt8F_qAZblAaBzPn9BRs,1339
|
|
11
11
|
lightly_studio/api/features.py,sha256=4iwYUj8KMvpC3nvA2bbJQnABacgFC9MfD0jX9hHeYm0,242
|
|
12
12
|
lightly_studio/api/server.py,sha256=dsHBdgPkD3z43GCP4VEoXmC77Pir12Woap4qc7LN52Y,2513
|
|
13
13
|
lightly_studio/api/routes/healthz.py,sha256=4wfMBPqpwYsFenUo006aVA1aIcZg4fg9biM93D0HMlk,356
|
|
14
|
-
lightly_studio/api/routes/images.py,sha256=
|
|
14
|
+
lightly_studio/api/routes/images.py,sha256=J8HSgdmVSMzW9cKmx2Qx2fciFluAU9c6W7nQwg_J-p0,2883
|
|
15
15
|
lightly_studio/api/routes/webapp.py,sha256=7l0-OlShofB0FMZu7X0Kgafp76_S38Exy-hOLsJXdZs,1691
|
|
16
|
-
lightly_studio/api/routes/api/annotation.py,sha256=
|
|
17
|
-
lightly_studio/api/routes/api/annotation_label.py,sha256=
|
|
18
|
-
lightly_studio/api/routes/api/annotation_task.py,sha256=
|
|
19
|
-
lightly_studio/api/routes/api/classifier.py,sha256=
|
|
20
|
-
lightly_studio/api/routes/api/dataset.py,sha256=
|
|
21
|
-
lightly_studio/api/routes/api/dataset_tag.py,sha256=
|
|
16
|
+
lightly_studio/api/routes/api/annotation.py,sha256=1e4FDKKtNyo8IGOdg19RrRW-8VAG3sZudpxIPGI4fFY,7564
|
|
17
|
+
lightly_studio/api/routes/api/annotation_label.py,sha256=YZHcgGwzDUo8TTVfWw_hIxRW9Now7sL8gv7-iKaNsCA,2678
|
|
18
|
+
lightly_studio/api/routes/api/annotation_task.py,sha256=ChP3kFtKT86PzPhdeziYNRQtgHKUuyT2F1_C2WQtvgo,1181
|
|
19
|
+
lightly_studio/api/routes/api/classifier.py,sha256=ZBT8LVolL27SAjZjx2YCEGTGervDQeKWWQh4Fa3DKsI,10877
|
|
20
|
+
lightly_studio/api/routes/api/dataset.py,sha256=0b7Gb084d_F5A5q1pScERpLCtPSnPVIMXB6PS1-Il70,5281
|
|
21
|
+
lightly_studio/api/routes/api/dataset_tag.py,sha256=5SwrguT5Ds4AkIlCLFPpbLYvkS_vVeB9j7VNDfh251c,7607
|
|
22
22
|
lightly_studio/api/routes/api/exceptions.py,sha256=89QD_JVXSCtHUSyTAK_5ganPu7J943KHTXcIkqSU9UY,3331
|
|
23
23
|
lightly_studio/api/routes/api/features.py,sha256=X3o_iCSLK6f32ctwVQQAKQolUYRA_9SyM7QPKNtPoD8,477
|
|
24
|
-
lightly_studio/api/routes/api/metadata.py,sha256=
|
|
25
|
-
lightly_studio/api/routes/api/metrics.py,sha256=
|
|
26
|
-
lightly_studio/api/routes/api/sample.py,sha256=
|
|
27
|
-
lightly_studio/api/routes/api/settings.py,sha256=
|
|
24
|
+
lightly_studio/api/routes/api/metadata.py,sha256=mHSXdRny9dn3f1oamaOxyZSbI2Zh0tGIqoExJOagq6Y,1137
|
|
25
|
+
lightly_studio/api/routes/api/metrics.py,sha256=lKwOcftI-Z_K2WaFjIzhphKlHotWe2eFJ0R7TGWbs7o,2574
|
|
26
|
+
lightly_studio/api/routes/api/sample.py,sha256=k3-Wm2VBva3PxOIc3ZTbn64m3nMgPrJU-Zun56NNVjw,6523
|
|
27
|
+
lightly_studio/api/routes/api/settings.py,sha256=x-Mr_m02diehh4MBq_F6M5DEFXD6MvgRD-06Bef985g,954
|
|
28
28
|
lightly_studio/api/routes/api/status.py,sha256=PCXra08H8UCepaSc7PxQ7ySNwyC7U-Gsr818bVfawv4,528
|
|
29
29
|
lightly_studio/api/routes/api/text_embedding.py,sha256=ypKHPVg8NpJu40j2yAypzF14eKxrJBQZc9tFQC92ZrY,1456
|
|
30
30
|
lightly_studio/api/routes/api/validators.py,sha256=2I70qb9bXnnhVk-hMYXbGBJDGSws0bqWICb77PaxD6k,539
|
|
31
31
|
lightly_studio/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
|
-
lightly_studio/core/
|
|
33
|
-
lightly_studio/core/
|
|
34
|
-
lightly_studio/core/
|
|
32
|
+
lightly_studio/core/add_samples.py,sha256=o8h78UyzRJjxB7ZPz-aqgkt2N08MTeMoh0KgsIOHxy0,14314
|
|
33
|
+
lightly_studio/core/dataset.py,sha256=wq5pHHLKxKHBeKCMZu-ZhQooBXzDFitnnEkD4HdZtjo,14499
|
|
34
|
+
lightly_studio/core/sample.py,sha256=I0ev9Ak1TXrzzWwUBOPokvv4zbzq_1dkR_ZsnURXob0,6503
|
|
35
|
+
lightly_studio/core/start_gui.py,sha256=ZwO76xMTfHp8ztYzBuRHnNcRAWZoN5KMDQkJ4NayR8w,1605
|
|
36
|
+
lightly_studio/core/dataset_query/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
|
+
lightly_studio/core/dataset_query/boolean_expression.py,sha256=pDRYTcNoaUcPrVjbxz5vut_TMa5kK7vP73DPfof-gxc,2041
|
|
38
|
+
lightly_studio/core/dataset_query/dataset_query.py,sha256=Y_r2JFuDf8Nas6ZvnWATvTrND8hOgXfWj52kcsuJYR0,7736
|
|
39
|
+
lightly_studio/core/dataset_query/field.py,sha256=aKTeiVWcFyc22VO8v79j01CkcfdaLHIl70pn7aTa3Cg,3825
|
|
40
|
+
lightly_studio/core/dataset_query/field_expression.py,sha256=tfu0nwHwbUc1W4kcsDuurR60aJLLVWFwZh1zP3OqhM8,2502
|
|
41
|
+
lightly_studio/core/dataset_query/match_expression.py,sha256=hAsYjxcwon-3iU3pdI0gUa3XRbmxnHT1xwSI18zCdC4,651
|
|
42
|
+
lightly_studio/core/dataset_query/order_by.py,sha256=DJFOyMF3ZYpowi8kZZ4wjjLGboS0qcTVF7AlzXE8PO0,2278
|
|
43
|
+
lightly_studio/core/dataset_query/sample_field.py,sha256=iaswBMsIQMuiVQu0Sus0-HW2w7ybbvUbEfWjcaXJs8w,917
|
|
44
|
+
lightly_studio/core/dataset_query/tags_expression.py,sha256=ZOKbhiDM9CmPfyJipzz3HzQ1AC_mz6VGxXKNPL-vjY8,1369
|
|
35
45
|
lightly_studio/dataset/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
|
-
lightly_studio/dataset/edge_embedding_generator.py,sha256=
|
|
37
|
-
lightly_studio/dataset/embedding_generator.py,sha256=
|
|
38
|
-
lightly_studio/dataset/embedding_manager.py,sha256=
|
|
46
|
+
lightly_studio/dataset/edge_embedding_generator.py,sha256=obLsDHxOId9QM-MAaZqDOujJArfjp-eJMgeucWBUjos,4552
|
|
47
|
+
lightly_studio/dataset/embedding_generator.py,sha256=OClb60y4thJiVU-rU4JWKQwp-1s2bw9nJJm2yqxyGzo,2835
|
|
48
|
+
lightly_studio/dataset/embedding_manager.py,sha256=QBN6ev_PhaP0wFqTfjOkYbV6zqxkwolK_6IF-AbjCLY,8147
|
|
39
49
|
lightly_studio/dataset/env.py,sha256=ydzkLXmVMWQHuG040sYRhwFOyBpG2phYLVB4zLWWB34,688
|
|
40
50
|
lightly_studio/dataset/file_utils.py,sha256=ig3xKMz0AAEsZsLeB6xMtWm4D58MGiNh4neVXLmdjBI,878
|
|
41
|
-
lightly_studio/dataset/
|
|
42
|
-
lightly_studio/dataset/
|
|
51
|
+
lightly_studio/dataset/fsspec_lister.py,sha256=WezfO5KiiFoiCSBh3aocrPSbDZBauOxWuh0qaEkOb5g,8779
|
|
52
|
+
lightly_studio/dataset/loader.py,sha256=tVsfS7vLUV-hkfIytN4S3BR-knqcuef84yITIivhJl0,22655
|
|
53
|
+
lightly_studio/dataset/mobileclip_embedding_generator.py,sha256=ZVD-6eTg7wTlgVjhLC8nW8jUnQgGwmt4Z4KuVU2Am7s,4983
|
|
43
54
|
lightly_studio/dist_lightly_studio_view_app/apple-touch-icon-precomposed.png,sha256=UUbtebSGy54c3N14FM0irnjnDOsw-ga0zZoWzxIbyeY,1571
|
|
44
55
|
lightly_studio/dist_lightly_studio_view_app/apple-touch-icon.png,sha256=UUbtebSGy54c3N14FM0irnjnDOsw-ga0zZoWzxIbyeY,1571
|
|
45
56
|
lightly_studio/dist_lightly_studio_view_app/favicon.png,sha256=UUbtebSGy54c3N14FM0irnjnDOsw-ga0zZoWzxIbyeY,1571
|
|
46
|
-
lightly_studio/dist_lightly_studio_view_app/index.html,sha256=
|
|
57
|
+
lightly_studio/dist_lightly_studio_view_app/index.html,sha256=MH0bGJzWyCCr3_1E_U8wsbQQsu8o_1RWiwRlpi4fGAM,1842
|
|
47
58
|
lightly_studio/dist_lightly_studio_view_app/_app/env.js,sha256=hLh9EQqXP13H3XQjod8C7qhob7-CvlByIRZBZ0M37fw,85
|
|
48
|
-
lightly_studio/dist_lightly_studio_view_app/_app/version.json,sha256=
|
|
59
|
+
lightly_studio/dist_lightly_studio_view_app/_app/version.json,sha256=tiUGpFK6E-Fh5VmhhR7sOl_9RK0l-ERsiIuzk8mkb3c,27
|
|
49
60
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/0.DenzbfeK.css,sha256=36gMSOcyD4sjN43L3cxgpLlBSGkM8W2YWQ0OJxrEHOI,52772
|
|
50
61
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/LightlyLogo.BNjCIww-.png,sha256=Hu4gPw9s4pxEOk85ro5VjB4GKLoiMrQCT2LB4cFtpg8,17123
|
|
51
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/OpenSans-,sha256=KrFWKUJKzobUKdvA5ae-sw0q89uZiisDpxYB7mllwzQ,130976
|
|
52
62
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/OpenSans-Bold.DGvYQtcs.ttf,sha256=vHPEXlgQoJcevq7062w13shGB9vgLaZ1f59D2Vi22l8,130860
|
|
53
63
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/OpenSans-Italic-VariableFont_wdth_wght.B4AZ-wl6.ttf,sha256=QSoWv9h46CRX_fdlqFM3O2d3-PF3R1srnb4zUezcLm0,580280
|
|
64
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/OpenSans-Medium.DVUZMR_6.ttf,sha256=KrFWKUJKzobUKdvA5ae-sw0q89uZiisDpxYB7mllwzQ,130976
|
|
54
65
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/OpenSans-Regular.DxJTClRG.ttf,sha256=ZTBIAnfaYu_eBH6ybnin5TLRz67skWA-aNY4drlmnw0,130832
|
|
55
66
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/OpenSans-SemiBold.D3TTYgdB.ttf,sha256=5gMTXMOxIAxyYLNPN_nLHyF4pCs2MDfiah4YJ2q3i_A,130760
|
|
56
67
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/OpenSans-VariableFont_wdth_wght.BZBpG5Iz.ttf,sha256=E3RLvAefD0kuT7OxShXSQrjZYA-qzUI9WM35N_6nzms,529700
|
|
57
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.
|
|
58
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.
|
|
68
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.BBm0IWdq.css,sha256=0GpfecaXedWTTVy4kPO7x7H_s1EDjgBN-ygO2DwPcg4,1105
|
|
69
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.BNTuXSAe.css,sha256=geMOgI1jYpkAWNsN1e8kPrXOg1wtEdM_X4LBb6fqIkc,817
|
|
59
70
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/_layout.T-zjSUd3.css,sha256=TYHxEVhjpzQwCzuIM9ZQBoNPwK1g1LGFJhjHOvs5xiE,52832
|
|
60
71
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/useFeatureFlags.CV-KWLNP.css,sha256=d3gUJK0pHvJ1f6ZiL2mJ4AmvKUONRGPDbQU_UdWZbs8,289
|
|
72
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/2O287xak.js,sha256=h8RG9Q2kIUSA__9gr2WMgafgS8pxwproLfIVw5GJlsg,32475
|
|
61
73
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/69_IOA4Y.js,sha256=ZeRHEle237-CUEan-VArVExxfKi9XafXM591ylj_ecs,34
|
|
62
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
74
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/7YNGEs1C.js,sha256=ckzuYi3UF6ZlpxwLJoI8BLjEqmV89PpmkZfcouB2lX8,517
|
|
63
75
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/B90CZVMX.js,sha256=NSrXzdg71WFiRRhYQIfnoZLpblfPyXvuXXCWIJ1-FQ4,110
|
|
64
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
65
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
66
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
67
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
68
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
69
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
70
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
71
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CDnpyLsT.js,sha256=i__MTemn0QP9-fHceg9uW1CRMbEcZQRMxldSNjsc42s,1003
|
|
76
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BBoGk9hq.js,sha256=1wV-JeO34LPL5lZtpYZZXdHpz5q2oX3qlXHKlMTjcBo,2647
|
|
77
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BRnH9v23.js,sha256=QghBXg62Wt0KtrVk5OTolsp-m--Q-qHUMR1AS5_Mems,447191
|
|
78
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Bg1Y5eUZ.js,sha256=qh_DMfKCxqae-5n-Qq06z1yB-Tt-7pVJgVkqfVzdz5c,207
|
|
79
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/BqBqV92V.js,sha256=dJAQMMUw4HDN2uwiD-7ZdT1LNXvd-aakpjidkb1A38I,7293
|
|
80
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/C0JiMuYn.js,sha256=kwEwiVionPuijDXwBp2hiMQwLOASQw2NiDOBE_ZUpEM,7140
|
|
81
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/C98Hk3r5.js,sha256=5EukfhOw4LqrFVPbpgSM-D_TNqVhJw-X0K-98pbnw8w,2247
|
|
82
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CG0dMCJi.js,sha256=r3_g0atRT6wkMsiYq_i5AdOlOuBwIIepOFdGtUw8MRU,712
|
|
72
83
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CWj6FrbW.js,sha256=U8gujwcJTusJSlmztmyz71B67fviyXJdA4sx4tz-wvY,106
|
|
73
84
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CYgJF_JY.js,sha256=wIbvC8qcEbFh6Wuxi6tST_Zensm43mTMXLYV4HCoGjI,336
|
|
74
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
75
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
76
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
77
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
78
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
79
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
80
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
81
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
85
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Ccq4ZD0B.js,sha256=qD33D9HpMHwPUSUwp1TMbh7Y9brLu3yHZ6z49pROD-Q,227
|
|
86
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cpy-nab_.js,sha256=NDlvFJ0uqaIAF1srXBaN6TJHJaJ4bkgMBbuDtmeXIBQ,8975
|
|
87
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Crk-jcvV.js,sha256=L5Pv2dt9Fqrer9QMiih4XHibd4B-4IYFLosgekjefIQ,1222
|
|
88
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cs31G8Qn.js,sha256=Z2yzdYA0SMhwmxanN7YdOntiLhyQpRRf14ZPrhQiF5I,8915
|
|
89
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CsKrY2zA.js,sha256=G5DqpO-sJ-eLVkl2j-hkf1YJfX7bSg2Fk2Yoc9AR4No,464
|
|
90
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Cur71c3O.js,sha256=Nh_B00A0b73ffUziXGfviRBtf0El_szpTsmhgFHR86s,1008
|
|
91
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/CzgC3GFB.js,sha256=BBFwwF55cBM-JBlRHmIG-LcJlRGJ7oTmUP3tnVInglc,11946
|
|
92
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/D8GZDMNN.js,sha256=X61M1yxeNrATScHQq_eeDC97Jsiz96NlF1NDt8VnUnE,5977
|
|
93
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DFRh-Spp.js,sha256=_h_7A1hWxvtKDBkalFaUcR_utNXl14s6NASRGAA-92M,20007
|
|
82
94
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DIeogL5L.js,sha256=Ux-9DG7TuJMhTle8qli8iEz061qYxmM9ZlDzFdqSTc8,62
|
|
83
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
84
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
85
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
95
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DRZO-E-T.js,sha256=olDmvTqtd5U2h0gvwBfBPt8r5UVpE3e_F1r3TBnDC20,1515
|
|
96
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DcGCxgpH.js,sha256=0Rs9R6OgOOssMyUbxaD0nUDLYwCINAJQNTjGMHCV048,15074
|
|
97
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/Df3aMO5B.js,sha256=nond8dtWA1H5oH4EqU2nIR8tgsk_senWqgs6CTe2pIw,313
|
|
98
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DkR_EZ_B.js,sha256=iqYriNOmOgh183jGmswI0SZb0j4YjM29HitzXVrwDh8,389
|
|
99
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/DqUGznj_.js,sha256=pzVsKoUiaAIog_wSZXRMoyVjgMVE6TbpjJSdxgogItc,1257
|
|
86
100
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/H7C68rOM.js,sha256=5mXutIexRaQU7WbR4RL8IA1NvxoZoYHAVXQ68_WsFuU,1023
|
|
87
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
88
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
89
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
90
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
91
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/
|
|
92
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/
|
|
93
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/
|
|
94
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/
|
|
95
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/
|
|
96
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/
|
|
97
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/0.XRq_TUwu.js,sha256=Vlofz4X3sWP2OBPMdO2lpX0m2eu8841Ff7rNuep2vzU,60426
|
|
98
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/1.B4rNYwVp.js,sha256=OV6dRRIJuWXrQPQzDcYbTIBnbHeCxKOdKV36pAhQ19c,544
|
|
99
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/10.DfBwOEhN.js,sha256=l7r5ngWTOhp7GA5QGcly5vSX2K5YxlZ369aZEbvuEss,961
|
|
101
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/KpAtIldw.js,sha256=SZhYH8Nq-ZtdF4B3MvZZzEpshU2WAqrsSYkH-ChOMmk,2965
|
|
102
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/M1Q1F7bw.js,sha256=KAfq3CGaZbwJi8A2wJljiMfVESBk_A10XpUmeEP7_zY,3132
|
|
103
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/OH7-C_mc.js,sha256=atzGhrMi91twuZazAs00iTYOhJSLcjWPzeZ1giPivIM,1003
|
|
104
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/gLNdjSzu.js,sha256=eBKNMhBEGGrQAfjy8Tu4DO5u3SHGB1Xdy9Xi_nXSe40,976
|
|
105
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/chunks/i0ZZ4z06.js,sha256=D2jZVekpdZCzOFF7BgRk3HswtbqGI-tTHtJTBq2sXno,24638
|
|
106
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/app.BI-EA5gL.js,sha256=wYfi1Tn3NNlGWk0hjLq0x-_cVB-Nu1UC-7TwidCtJqY,8899
|
|
107
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/entry/start.CcsRl3cZ.js,sha256=yI--CdpmGs6YfVw7q1NhVpF8lIJ1MsDIDRSJp0Pb9P4,83
|
|
108
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/0.BbO4Zc3r.js,sha256=xcoLne0SHf19X0LbPFXnH0r6OHEl3OWKPtDv12iDJg0,61427
|
|
109
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/1._I9GR805.js,sha256=bUnZrBnuegiARh94XgyDCCpJCvMa5NmM4c7yxbB1Uqc,544
|
|
110
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/10.J2RBFrSr.js,sha256=sIK1UnPd3vtFRlnZezjqbSZisWJaaXmsE3U_XrMKhfc,931
|
|
100
111
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/11.CWG1ehzT.js,sha256=Z_ycfijsaOCIM9oWR-PD0RPyMfgqfQqKKXMjr3Xmt_g,99
|
|
101
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/12.
|
|
102
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/2.
|
|
103
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/3.
|
|
104
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/4.
|
|
105
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.
|
|
106
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/6.
|
|
107
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/7.
|
|
108
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.
|
|
109
|
-
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/9.
|
|
110
|
-
lightly_studio/examples/example.py,sha256=
|
|
111
|
-
lightly_studio/examples/
|
|
112
|
-
lightly_studio/examples/
|
|
113
|
-
lightly_studio/examples/
|
|
114
|
-
lightly_studio/examples/
|
|
112
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/12.Cmqj25a-.js,sha256=-bmuKMWPjx1eh-8NH3bEQYLYe-s3gi6sSpazo0qPHFE,2939
|
|
113
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/2.C45iKJHA.js,sha256=y2xABhiSPfhcta0wT9qCG9gLXefQwHRrP-NdmrN7CgI,39475
|
|
114
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/3.w9g4AcAx.js,sha256=sn6ZZji2BeGzTnKsQg68SeBYzfKnJbT62qBhyhAAVfo,468
|
|
115
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/4.BBI8KwnD.js,sha256=7hOBPn4zc6O2HH69ViHv4MZHgglqMDaaOVwDX0jq6fY,595
|
|
116
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/5.huHuxdiF.js,sha256=V3BA27gKJUrzaqYiDPh8mMKyuoP-up4YJuPWDygwsqg,9065
|
|
117
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/6.CrbkRPam.js,sha256=BpNVuC8p6vQqZTGggiL4qMSjhhUo0kPrWn6Umkz47R4,555
|
|
118
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/7.FomEdhD6.js,sha256=sTq5MsY_HXp6JeITRLf7Ud437lfwszgJVVo_dsaXXVE,853
|
|
119
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/8.Cb_ADSLk.js,sha256=4hZtap-5cvJnvLmiFaWUsdwXGC4WgOopBd4SwGh--yA,14093
|
|
120
|
+
lightly_studio/dist_lightly_studio_view_app/_app/immutable/nodes/9.CajIG5ce.js,sha256=9GbUDftlN2OfZBgsm3cphD7bRRkhOD5WMflQs-yAV3M,683
|
|
121
|
+
lightly_studio/examples/example.py,sha256=lxw-Zc72ikoxIEJo7SFV5V5vzwKCUHsAu6Xxt-qKuX4,578
|
|
122
|
+
lightly_studio/examples/example_coco.py,sha256=ttwFSSlVP0IKuASJXeepQQm25WBEkVMNO6EdTRnZ1oE,359
|
|
123
|
+
lightly_studio/examples/example_metadata.py,sha256=Pxp9NpCEvyd601q-UokvGlnUu0yMywUrICJJ4a_7YRA,12729
|
|
124
|
+
lightly_studio/examples/example_selection.py,sha256=UcQ5W0ZTzWZ5TnX-FWsmNJ0sNLz4DODvk0lnAbAGpXs,666
|
|
125
|
+
lightly_studio/examples/example_split_work.py,sha256=0je9xsAPhuvGc7-E7tcx5wbaGRARwSUHzKNskFTmOz4,1236
|
|
126
|
+
lightly_studio/examples/example_yolo.py,sha256=4AZqi2jO2ycH-WPXCDCh9j9y41qW_C-Jgh0jtOdA8pk,477
|
|
115
127
|
lightly_studio/few_shot_classifier/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
116
128
|
lightly_studio/few_shot_classifier/classifier.py,sha256=BpPHd69cxMGpNZPJetW9XKmLzVlt9qRoAoSArdt2V50,2444
|
|
117
129
|
lightly_studio/few_shot_classifier/classifier_manager.py,sha256=R6Mk3_avEldCR5AFOIsBbZv5Eg-twRjX1wk6w4W2D7E,25148
|
|
@@ -126,28 +138,28 @@ lightly_studio/models/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdr
|
|
|
126
138
|
lightly_studio/models/annotation_label.py,sha256=oMOai50vyXOccgAONAvfQPPxiTwPFibgPtDXjT1nK58,1272
|
|
127
139
|
lightly_studio/models/annotation_task.py,sha256=LR-yCwmMJjmlVl_mu25WEHZ_lDMbCdVPijnEAlonAhE,795
|
|
128
140
|
lightly_studio/models/classifier.py,sha256=jSyEEvVhE2pQbkup1kAcdJaXBQSDSBfS1kXbpC3OOXc,446
|
|
129
|
-
lightly_studio/models/dataset.py,sha256=
|
|
141
|
+
lightly_studio/models/dataset.py,sha256=uYTxrBvOrA0sgm_4vhGXAWRTTje2RFlHF1PNVpmEueQ,2800
|
|
130
142
|
lightly_studio/models/embedding_model.py,sha256=nlCxVyuBNDooYfnyFUmPd5xIOpaY7x1o_w2FrJg0hCI,995
|
|
131
143
|
lightly_studio/models/metadata.py,sha256=uE-Meo585PZ95b9LzknzLCYCN7Sm6k23Fc_vjuPCuoU,6574
|
|
132
|
-
lightly_studio/models/sample.py,sha256=
|
|
144
|
+
lightly_studio/models/sample.py,sha256=gjt4mJCxQQ0jCOFbVuA2P6OaG4mhCrA0dQk2H7Fo1bU,5698
|
|
133
145
|
lightly_studio/models/sample_embedding.py,sha256=2rCnT1bLpAYsGqeewTqvLDP4TBALKpgZl-UJY7q0M9k,1090
|
|
134
146
|
lightly_studio/models/settings.py,sha256=I0qC96sLi9-EJcgn6M00MdStISZius0X14Dp4Gc5P1I,1703
|
|
135
147
|
lightly_studio/models/tag.py,sha256=gdKjEKx_6uRs09SegzeVbssaeOEEiLvrwPG2u65WNxo,2479
|
|
136
148
|
lightly_studio/models/annotation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
137
|
-
lightly_studio/models/annotation/annotation_base.py,sha256=
|
|
138
|
-
lightly_studio/models/annotation/instance_segmentation.py,sha256=
|
|
149
|
+
lightly_studio/models/annotation/annotation_base.py,sha256=Cqo4HVDtUj7L74Ql00GswBnGub0uocCxj7BMOm4N-7E,5398
|
|
150
|
+
lightly_studio/models/annotation/instance_segmentation.py,sha256=URv5sOyBHsxmYX2huqlW7qDHuDCzL3LRBqmSzG8pSsw,1596
|
|
139
151
|
lightly_studio/models/annotation/links.py,sha256=FoFGeoznbr8gHVrJo4l4xSvs7ko4SS2ddMQl1SiRRXQ,510
|
|
140
|
-
lightly_studio/models/annotation/object_detection.py,sha256=
|
|
152
|
+
lightly_studio/models/annotation/object_detection.py,sha256=lOvkt8uyPqXljy7oUmXx9_3IB1xdpjuVAxRQVgugsp8,1114
|
|
141
153
|
lightly_studio/models/annotation/semantic_segmentation.py,sha256=HVM3djqtM1KNq2mFYcDfjmNz8Fs3glEVjUOQ5tj5FFs,1348
|
|
142
154
|
lightly_studio/resolvers/__init__.py,sha256=fMGTt_WiKFrqk6W8UlCkZL_cZBHiUej4Q0pxHS3VWdo,137
|
|
143
155
|
lightly_studio/resolvers/annotation_task_resolver.py,sha256=QuhUQrh8D5yUI6pfqbMQSxUiWrUED-JfxSjJlbdbsqU,1066
|
|
144
|
-
lightly_studio/resolvers/dataset_resolver.py,sha256=
|
|
145
|
-
lightly_studio/resolvers/embedding_model_resolver.py,sha256=
|
|
156
|
+
lightly_studio/resolvers/dataset_resolver.py,sha256=sIiDxKPw2IFDpS76NcP_2cyMsvUQygmv8hT3sjZp48c,10445
|
|
157
|
+
lightly_studio/resolvers/embedding_model_resolver.py,sha256=GfcsSYj8Dw1WwFh0Zz4NPEPF2EgNJXTosTKW7_uo2YQ,4391
|
|
146
158
|
lightly_studio/resolvers/sample_embedding_resolver.py,sha256=M7Uw6Bv6XBHPXraV8ja_KpjJ35rQzlwGys-fAQLtwn0,2937
|
|
147
|
-
lightly_studio/resolvers/sample_resolver.py,sha256=
|
|
159
|
+
lightly_studio/resolvers/sample_resolver.py,sha256=dS8khKwxmsvyc8tYfswYLIkq4UFLOKEqpdYo0st5WIk,10901
|
|
148
160
|
lightly_studio/resolvers/samples_filter.py,sha256=-76zxZb-GnrhpnhjEXVzQtdNGqyIJjPH6rpkNRzswTA,3182
|
|
149
161
|
lightly_studio/resolvers/settings_resolver.py,sha256=15mSvoBALtHps4un3s_dk2lB2F-e8v_II97vwn056sg,1628
|
|
150
|
-
lightly_studio/resolvers/tag_resolver.py,sha256=
|
|
162
|
+
lightly_studio/resolvers/tag_resolver.py,sha256=PuMQflQ-PumQF96EwAUcVkSIeFzi11JeqJDnXYwyyic,8782
|
|
151
163
|
lightly_studio/resolvers/annotation_label_resolver/__init__.py,sha256=dpGvay0BNAvk6tAF7tc3IDoKX5cNVVAlgEm2DcO81Nw,487
|
|
152
164
|
lightly_studio/resolvers/annotation_label_resolver/create.py,sha256=q2vrnOXd8S6FMp6BrM-d4Kz_ydeo9n-0gFZSOM-sY7E,750
|
|
153
165
|
lightly_studio/resolvers/annotation_label_resolver/delete.py,sha256=uGpcC_PG96MdHxNdmv-1-PhxUrAy6A3bC4f8twwZ4Tw,653
|
|
@@ -179,12 +191,13 @@ lightly_studio/resolvers/metadata_resolver/sample/get_value_for_sample.py,sha256
|
|
|
179
191
|
lightly_studio/resolvers/metadata_resolver/sample/set_value_for_sample.py,sha256=HNs5t8VACf9h_qJ69R_h34K1TPGa7UjQokkpEcl9530,1289
|
|
180
192
|
lightly_studio/selection/README.md,sha256=X9KTCy5GmLxpVmb-MELqpBQKhlRxaQ0aQt5i3fnAOKQ,320
|
|
181
193
|
lightly_studio/selection/mundig.py,sha256=okpQi0fL35vuJbqY3fA9MxTak41O__2eaHChPKZ7Sdo,4012
|
|
182
|
-
lightly_studio/selection/select.py,sha256=
|
|
183
|
-
lightly_studio/selection/select_via_db.py,sha256=
|
|
184
|
-
lightly_studio/selection/selection_config.py,sha256=
|
|
185
|
-
lightly_studio/services/annotations_service/__init__.py,sha256=
|
|
194
|
+
lightly_studio/selection/select.py,sha256=OQU8iw_h3qHRzq7L9rD2NlU56wRRosxJlZfdBa7EvGg,3663
|
|
195
|
+
lightly_studio/selection/select_via_db.py,sha256=tLmNLuPaQqzSqdvmEo0Mc8-sFNMptikG9eruXqXlblE,3621
|
|
196
|
+
lightly_studio/selection/selection_config.py,sha256=o5jCAzchBNyVkb3dB-wMHgfNAenfjuUQEf10zbjE1HA,758
|
|
197
|
+
lightly_studio/services/annotations_service/__init__.py,sha256=FQnDOTzUKtQwVQiNoI_ohl6NVQU-hqbHPUVH7T9Jmso,758
|
|
186
198
|
lightly_studio/services/annotations_service/get_annotation_by_id.py,sha256=95OyWCE5egmiY97P2_3xAbul_gWLDMM0Gf7Kgf9bKiM,804
|
|
187
|
-
lightly_studio/services/annotations_service/update_annotation.py,sha256=
|
|
199
|
+
lightly_studio/services/annotations_service/update_annotation.py,sha256=KzSB0XWSk2pj2CImkup8s12uy4urEAzVw4reUVewtC0,1569
|
|
200
|
+
lightly_studio/services/annotations_service/update_annotation_bounding_box.py,sha256=zL76GVl9lmmPEHOlNbfmusKK1QO_uP0GSkzHQ15iZlw,1008
|
|
188
201
|
lightly_studio/services/annotations_service/update_annotation_label.py,sha256=B84_9XkHdyCu-Tp7SW8yVtVRv1jmFtdHTEkLwMgpANA,1279
|
|
189
202
|
lightly_studio/services/annotations_service/update_annotations.py,sha256=WAR8hLEE7FAJL7F8E6HQ63fQZzPBRSjxMtgSFaFZSZg,866
|
|
190
203
|
lightly_studio/vendor/ACKNOWLEDGEMENTS,sha256=H99jquLjJeLv3hrtHTzJrdsGPqYKMfQNKlZL18KawoM,22903
|
|
@@ -214,6 +227,6 @@ lightly_studio/vendor/mobileclip/modules/image/replknet.py,sha256=kbcZTT3KAdpv7I
|
|
|
214
227
|
lightly_studio/vendor/mobileclip/modules/text/__init__.py,sha256=xIBdotHUSILUTw9Um4NfLunDEtNuQVKRcZlVhwJih38,104
|
|
215
228
|
lightly_studio/vendor/mobileclip/modules/text/repmixer.py,sha256=baFcHH8bLVeW2VET9gZvg2bUy080yLDVxDr4cuH2upg,9401
|
|
216
229
|
lightly_studio/vendor/mobileclip/modules/text/tokenizer.py,sha256=g569KONPF33J-2BWgghUy3Xcj0vDE-g00W1YpOZiGwk,1328
|
|
217
|
-
lightly_studio-0.3.
|
|
218
|
-
lightly_studio-0.3.
|
|
219
|
-
lightly_studio-0.3.
|
|
230
|
+
lightly_studio-0.3.2.dist-info/METADATA,sha256=7iG3u_p6WLeLb06s_c616oyYPWJZduvkKiUmXZYp0cY,19865
|
|
231
|
+
lightly_studio-0.3.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
232
|
+
lightly_studio-0.3.2.dist-info/RECORD,,
|
lightly_studio/api/db.py
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"""Module provides functions to initialize and manage the DuckDB."""
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import logging
|
|
6
|
-
import os
|
|
7
|
-
from contextlib import contextmanager
|
|
8
|
-
from typing import Generator
|
|
9
|
-
|
|
10
|
-
from sqlalchemy.engine import Engine
|
|
11
|
-
from sqlmodel import Session, SQLModel, create_engine
|
|
12
|
-
|
|
13
|
-
import lightly_studio.api.db_tables # noqa: F401, required for SQLModel to work properly
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
class MockDatabaseManager:
|
|
17
|
-
"""Mock version of DatabaseManager."""
|
|
18
|
-
|
|
19
|
-
_persistent_session: Session | None = None
|
|
20
|
-
|
|
21
|
-
def __init__(self) -> None:
|
|
22
|
-
"""Create a new instance of the MockDatabaseManager."""
|
|
23
|
-
self.engine = create_engine("duckdb:///:memory:")
|
|
24
|
-
self._session_instance = Session(self.engine, close_resets_only=False)
|
|
25
|
-
# Initialize tables
|
|
26
|
-
SQLModel.metadata.create_all(self.engine)
|
|
27
|
-
|
|
28
|
-
@contextmanager
|
|
29
|
-
def session(self) -> Generator[Session, None, None]:
|
|
30
|
-
"""Return the database session."""
|
|
31
|
-
try:
|
|
32
|
-
yield self._session_instance
|
|
33
|
-
if not self._session_instance.in_transaction():
|
|
34
|
-
self._session_instance.commit()
|
|
35
|
-
except Exception:
|
|
36
|
-
self._session_instance.rollback()
|
|
37
|
-
raise
|
|
38
|
-
finally:
|
|
39
|
-
self._session_instance.close()
|
|
40
|
-
|
|
41
|
-
def persistent_session(self) -> Session:
|
|
42
|
-
"""Create a persistent session."""
|
|
43
|
-
if self._persistent_session is None:
|
|
44
|
-
self._persistent_session = Session(self.engine, close_resets_only=False)
|
|
45
|
-
return self._persistent_session
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
class DatabaseManager:
|
|
49
|
-
"""Manages database connections and ensures proper resource handling."""
|
|
50
|
-
|
|
51
|
-
_instance: DatabaseManager | None = None
|
|
52
|
-
engine: Engine | None = None
|
|
53
|
-
_persistent_session: Session | None = None
|
|
54
|
-
|
|
55
|
-
@staticmethod
|
|
56
|
-
def database_exists(db_file: str) -> bool:
|
|
57
|
-
"""Check if database file exists.
|
|
58
|
-
|
|
59
|
-
Args:
|
|
60
|
-
db_file: Path to the database file
|
|
61
|
-
|
|
62
|
-
Returns:
|
|
63
|
-
True if database file exists, False otherwise
|
|
64
|
-
"""
|
|
65
|
-
return os.path.exists(db_file)
|
|
66
|
-
|
|
67
|
-
@staticmethod
|
|
68
|
-
def cleanup_database(db_file: str) -> None:
|
|
69
|
-
"""Delete database file if it exists.
|
|
70
|
-
|
|
71
|
-
Args:
|
|
72
|
-
db_file: Path to the database file to delete
|
|
73
|
-
"""
|
|
74
|
-
if DatabaseManager.database_exists(db_file):
|
|
75
|
-
os.remove(db_file)
|
|
76
|
-
logging.info(f"Deleted existing database: {db_file}")
|
|
77
|
-
|
|
78
|
-
def __new__(
|
|
79
|
-
cls, db_file: str = "lightly_studio.db", cleanup_existing: bool = False
|
|
80
|
-
) -> DatabaseManager:
|
|
81
|
-
"""Create a new instance of the DatabaseManager.
|
|
82
|
-
|
|
83
|
-
Args:
|
|
84
|
-
db_file: Path to the database file
|
|
85
|
-
cleanup_existing: If True, deletes existing database
|
|
86
|
-
before creating a new one
|
|
87
|
-
|
|
88
|
-
Returns:
|
|
89
|
-
DatabaseManager instance
|
|
90
|
-
"""
|
|
91
|
-
if cleanup_existing:
|
|
92
|
-
cls.cleanup_database(db_file)
|
|
93
|
-
|
|
94
|
-
if cls._instance is None:
|
|
95
|
-
cls._instance = super().__new__(cls)
|
|
96
|
-
# File-based DuckDB
|
|
97
|
-
cls._instance.engine = create_engine(f"duckdb:///{db_file}")
|
|
98
|
-
# Initialize tables
|
|
99
|
-
SQLModel.metadata.create_all(cls._instance.engine)
|
|
100
|
-
return cls._instance
|
|
101
|
-
|
|
102
|
-
@contextmanager
|
|
103
|
-
def session(self) -> Generator[Session, None, None]:
|
|
104
|
-
"""Create a new database session."""
|
|
105
|
-
session = Session(self.engine, close_resets_only=False)
|
|
106
|
-
try:
|
|
107
|
-
yield session
|
|
108
|
-
session.commit()
|
|
109
|
-
except Exception:
|
|
110
|
-
session.rollback()
|
|
111
|
-
raise
|
|
112
|
-
finally:
|
|
113
|
-
session.close()
|
|
114
|
-
|
|
115
|
-
def persistent_session(self) -> Session:
|
|
116
|
-
"""Create a persistent session."""
|
|
117
|
-
if self._persistent_session is None:
|
|
118
|
-
# TODO(Michal, 08/2025): Consider setting close_resets_only=True
|
|
119
|
-
# before the release. The current solution is more strict and prevents
|
|
120
|
-
# bugs but it might be too restrictive for users.
|
|
121
|
-
self._persistent_session = Session(self.engine, close_resets_only=False)
|
|
122
|
-
return self._persistent_session
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
# Global instance
|
|
126
|
-
db_manager = DatabaseManager(cleanup_existing=True)
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
# For FastAPI dependency injection
|
|
130
|
-
def get_session() -> Generator[Session, None, None]:
|
|
131
|
-
"""Yield a new session for database operations."""
|
|
132
|
-
with db_manager.session() as session:
|
|
133
|
-
yield session
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.OwPEPQZu.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spinner.svelte-18zpdab{fill:hsl(var(--primary) / var(--tw-bg-opacity, 1))}.crop.svelte-20k33o{position:relative;overflow:hidden}.annotation-box.svelte-20k33o{position:absolute;border:1px solid rgba(0,0,0,0);box-sizing:content-box}.annotation-label.svelte-20k33o{position:absolute;transform:translate3d(-1px,-100%,0);padding:1px 6px 2px;white-space:nowrap;cursor:pointer}.annotation-selected.svelte-20k33o{outline:drop-shadow(1px 1px 1px hsl(var(--primary))) drop-shadow(1px -1px 1px hsl(var(--primary))) drop-shadow(-1px -1px 1px hsl(var(--primary))) drop-shadow(-1px 1px 1px hsl(var(--primary)))}.sample-image.svelte-1c6bz0a{width:var(--sample-width);height:var(--sample-height);-o-object-fit:var(--object-fit);object-fit:var(--object-fit)}.loading-wave-dots.svelte-10h86fq{position:relative}.loading-wave-dots.svelte-10h86fq .wave-item:where(.svelte-10h86fq){position:absolute;top:50%;left:50%;display:inline-block;margin-top:-4px;width:8px;height:8px;border-radius:50%;animation:svelte-10h86fq-loading-wave-dots linear 2.8s infinite}.loading-wave-dots.svelte-10h86fq .wave-item:where(.svelte-10h86fq):first-child{margin-left:-36px}.loading-wave-dots.svelte-10h86fq .wave-item:where(.svelte-10h86fq):nth-child(2){margin-left:-20px;animation-delay:.14s}.loading-wave-dots.svelte-10h86fq .wave-item:where(.svelte-10h86fq):nth-child(3){margin-left:-4px;animation-delay:.28s}.loading-wave-dots.svelte-10h86fq .wave-item:where(.svelte-10h86fq):nth-child(4){margin-left:12px;animation-delay:.42s}.loading-wave-dots.svelte-10h86fq .wave-item:where(.svelte-10h86fq):last-child{margin-left:28px;animation-delay:.56s}@keyframes svelte-10h86fq-loading-wave-dots{0%{transform:translateY(0);background:#bbb}10%{transform:translateY(-6px);background:#999}20%{transform:translateY(0);background:#bbb}to{transform:translateY(0);background:#bbb}}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq){width:5px;height:5px;animation:svelte-10h86fq-loading-circles linear .75s infinite}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):first-child{margin-top:-14.5px;margin-left:-2.5px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(2){margin-top:-11.26px;margin-left:6.26px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(3){margin-top:-2.5px;margin-left:9.5px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(4){margin-top:6.26px;margin-left:6.26px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(5){margin-top:9.5px;margin-left:-2.5px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(6){margin-top:6.26px;margin-left:-11.26px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(7){margin-top:-2.5px;margin-left:-14.5px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):last-child{margin-top:-11.26px;margin-left:-11.26px}@keyframes svelte-10h86fq-loading-circles{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq){background:#666;animation:svelte-10h86fq-loading-bubbles linear .75s infinite}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):first-child{margin-top:-12.5px;margin-left:-.5px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(2){margin-top:-9.26px;margin-left:8.26px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(3){margin-top:-.5px;margin-left:11.5px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(4){margin-top:8.26px;margin-left:8.26px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(5){margin-top:11.5px;margin-left:-.5px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(6){margin-top:8.26px;margin-left:-9.26px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(7){margin-top:-.5px;margin-left:-12.5px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):last-child{margin-top:-9.26px;margin-left:-9.26px}@keyframes svelte-10h86fq-loading-bubbles{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}.loading-default.svelte-10h86fq{position:relative;border:1px solid #999;animation:svelte-10h86fq-loading-rotating ease 1.5s infinite}.loading-default.svelte-10h86fq:before{content:"";position:absolute;display:block;top:0;left:50%;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#999;border-radius:50%}.loading-spiral.svelte-10h86fq{border:2px solid #777;border-right-color:transparent;animation:svelte-10h86fq-loading-rotating linear .85s infinite}@keyframes svelte-10h86fq-loading-rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-bubbles.svelte-10h86fq,.loading-circles.svelte-10h86fq{position:relative}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq){position:absolute;top:50%;left:50%;display:inline-block;border-radius:50%}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(2),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(2){animation-delay:93ms}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(3),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(3){animation-delay:.186s}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(4),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(4){animation-delay:.279s}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(5),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(5){animation-delay:.372s}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(6),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(6){animation-delay:.465s}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(7),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(7){animation-delay:.558s}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):last-child,.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):last-child{animation-delay:.651s}.loading-bubbles.svelte-10h86fq,.loading-circles.svelte-10h86fq,.loading-spiral.svelte-10h86fq,.loading-wave-dots.svelte-10h86fq,.loading-default.svelte-10h86fq{display:inline-block;margin:5px 0;width:28px;height:28px;font-size:28px;line-height:28px;border-radius:50%}.infinite-loading-container.svelte-o3w4bf{clear:both;text-align:center}.btn-try-infinite.svelte-o3w4bf{margin-top:5px;padding:5px 10px;color:#999;font-size:14px;line-height:1;background:transparent;border:1px solid #ccc;border-radius:3px;outline:none;cursor:pointer}.btn-try-infinite.svelte-o3w4bf:not(:active):hover{opacity:.8}.viewport.svelte-gzepom{overflow-y:hidden}.group.svelte-15p83yz{outline:0}
|
lightly_studio/dist_lightly_studio_view_app/_app/immutable/assets/SelectableSvgGroup.b653GmVf.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.spinner.svelte-18zpdab{fill:hsl(var(--primary) / var(--tw-bg-opacity, 1))}[data-select-viewport],[data-combobox-viewport]{scrollbar-width:none!important;-ms-overflow-style:none!important;-webkit-overflow-scrolling:touch!important}[data-combobox-viewport]::-webkit-scrollbar{display:none!important}[data-select-viewport]::-webkit-scrollbar{display:none!important}.crop.svelte-20k33o{position:relative;overflow:hidden}.annotation-box.svelte-20k33o{position:absolute;border:1px solid rgba(0,0,0,0);box-sizing:content-box}.annotation-label.svelte-20k33o{position:absolute;transform:translate3d(-1px,-100%,0);padding:1px 6px 2px;white-space:nowrap;cursor:pointer}.annotation-selected.svelte-20k33o{outline:drop-shadow(1px 1px 1px hsl(var(--primary))) drop-shadow(1px -1px 1px hsl(var(--primary))) drop-shadow(-1px -1px 1px hsl(var(--primary))) drop-shadow(-1px 1px 1px hsl(var(--primary)))}.sample-image.svelte-1c6bz0a{width:var(--sample-width);height:var(--sample-height);-o-object-fit:var(--object-fit);object-fit:var(--object-fit)}.loading-wave-dots.svelte-10h86fq{position:relative}.loading-wave-dots.svelte-10h86fq .wave-item:where(.svelte-10h86fq){position:absolute;top:50%;left:50%;display:inline-block;margin-top:-4px;width:8px;height:8px;border-radius:50%;animation:svelte-10h86fq-loading-wave-dots linear 2.8s infinite}.loading-wave-dots.svelte-10h86fq .wave-item:where(.svelte-10h86fq):first-child{margin-left:-36px}.loading-wave-dots.svelte-10h86fq .wave-item:where(.svelte-10h86fq):nth-child(2){margin-left:-20px;animation-delay:.14s}.loading-wave-dots.svelte-10h86fq .wave-item:where(.svelte-10h86fq):nth-child(3){margin-left:-4px;animation-delay:.28s}.loading-wave-dots.svelte-10h86fq .wave-item:where(.svelte-10h86fq):nth-child(4){margin-left:12px;animation-delay:.42s}.loading-wave-dots.svelte-10h86fq .wave-item:where(.svelte-10h86fq):last-child{margin-left:28px;animation-delay:.56s}@keyframes svelte-10h86fq-loading-wave-dots{0%{transform:translateY(0);background:#bbb}10%{transform:translateY(-6px);background:#999}20%{transform:translateY(0);background:#bbb}to{transform:translateY(0);background:#bbb}}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq){width:5px;height:5px;animation:svelte-10h86fq-loading-circles linear .75s infinite}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):first-child{margin-top:-14.5px;margin-left:-2.5px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(2){margin-top:-11.26px;margin-left:6.26px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(3){margin-top:-2.5px;margin-left:9.5px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(4){margin-top:6.26px;margin-left:6.26px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(5){margin-top:9.5px;margin-left:-2.5px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(6){margin-top:6.26px;margin-left:-11.26px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(7){margin-top:-2.5px;margin-left:-14.5px}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):last-child{margin-top:-11.26px;margin-left:-11.26px}@keyframes svelte-10h86fq-loading-circles{0%{background:#dfdfdf}90%{background:#505050}to{background:#dfdfdf}}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq){background:#666;animation:svelte-10h86fq-loading-bubbles linear .75s infinite}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):first-child{margin-top:-12.5px;margin-left:-.5px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(2){margin-top:-9.26px;margin-left:8.26px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(3){margin-top:-.5px;margin-left:11.5px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(4){margin-top:8.26px;margin-left:8.26px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(5){margin-top:11.5px;margin-left:-.5px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(6){margin-top:8.26px;margin-left:-9.26px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(7){margin-top:-.5px;margin-left:-12.5px}.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):last-child{margin-top:-9.26px;margin-left:-9.26px}@keyframes svelte-10h86fq-loading-bubbles{0%{width:1px;height:1px;box-shadow:0 0 0 3px #666}90%{width:1px;height:1px;box-shadow:0 0 #666}to{width:1px;height:1px;box-shadow:0 0 0 3px #666}}.loading-default.svelte-10h86fq{position:relative;border:1px solid #999;animation:svelte-10h86fq-loading-rotating ease 1.5s infinite}.loading-default.svelte-10h86fq:before{content:"";position:absolute;display:block;top:0;left:50%;margin-top:-3px;margin-left:-3px;width:6px;height:6px;background-color:#999;border-radius:50%}.loading-spiral.svelte-10h86fq{border:2px solid #777;border-right-color:transparent;animation:svelte-10h86fq-loading-rotating linear .85s infinite}@keyframes svelte-10h86fq-loading-rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-bubbles.svelte-10h86fq,.loading-circles.svelte-10h86fq{position:relative}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq){position:absolute;top:50%;left:50%;display:inline-block;border-radius:50%}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(2),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(2){animation-delay:93ms}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(3),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(3){animation-delay:.186s}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(4),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(4){animation-delay:.279s}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(5),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(5){animation-delay:.372s}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(6),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(6){animation-delay:.465s}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):nth-child(7),.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):nth-child(7){animation-delay:.558s}.loading-circles.svelte-10h86fq .circle-item:where(.svelte-10h86fq):last-child,.loading-bubbles.svelte-10h86fq .bubble-item:where(.svelte-10h86fq):last-child{animation-delay:.651s}.loading-bubbles.svelte-10h86fq,.loading-circles.svelte-10h86fq,.loading-spiral.svelte-10h86fq,.loading-wave-dots.svelte-10h86fq,.loading-default.svelte-10h86fq{display:inline-block;margin:5px 0;width:28px;height:28px;font-size:28px;line-height:28px;border-radius:50%}.infinite-loading-container.svelte-o3w4bf{clear:both;text-align:center}.btn-try-infinite.svelte-o3w4bf{margin-top:5px;padding:5px 10px;color:#999;font-size:14px;line-height:1;background:transparent;border:1px solid #ccc;border-radius:3px;outline:none;cursor:pointer}.btn-try-infinite.svelte-o3w4bf:not(:active):hover{opacity:.8}.viewport.svelte-gzepom{overflow-y:hidden}.group.svelte-15p83yz{outline:0}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./CWj6FrbW.js";import{p as D,f as Q,s as p,g as t,d as i,a as R,t as V,c as z,r as I,V as U,L as Y}from"./l7KrR96u.js";import{t as Z,a as L,n as W}from"./Bu7uvVrG.js";import{i as E,s as $,a as O}from"./XO7A28GO.js";import{p as v,b as tt}from"./D98V7j6A.js";import{l as ot,m as w,n as et,o as at,p as nt,s as e}from"./CvOmgdoc.js";import"./vC4nQVEB.js";import"./CxtLVaYz.js";import"./D6su9Aln.js";import"./Bx1xMsFy.js";import"./Bsi3UGy5.js";import"./69_IOA4Y.js";import"./BJXwVxaE.js";import{s as it}from"./D6RI2Zrd.js";var rt=Z("<!> <!> <!>",1);function Lt(_,o){var T,M;D(o,!0);const[m,g]=$(),b=()=>O(u,"$taskMap",m),h=()=>O(f,"$customLabelColorsStore",m),l=v(o,"showLabel",3,!1),{taskMap:u}=ot(),{customLabelColorsStore:f}=at(),{annotation_task_id:a}=o.annotation,s=i(()=>o.annotation.annotation_label.annotation_label_name),c=i(()=>nt(o.annotation)),d=i(()=>t(c).x),r=i(()=>t(c).y),S=i(()=>t(c).width),x=i(()=>t(c).height),y=(M=(T=o.annotation)==null?void 0:T.instance_segmentation_details)==null?void 0:M.segmentation_mask,k=i(()=>a&&b().has(a)?b().get(a).is_prediction:!1),X=i(()=>o.annotation.annotation_id),j=i(()=>w(t(s),1)),q=i(()=>{var n;return((n=h()[t(s)])==null?void 0:n.color)??w(t(s),1).color}),C=i(()=>{var n;return((n=h()[t(s)])==null?void 0:n.color)??w(t(s),.4).color}),B=i(()=>{var n;return((n=h()[t(s)])==null?void 0:n.alpha)*.4});var P=rt(),A=Q(P);{var G=n=>{const N=i(()=>[t(d),t(r)]);dt(n,{get coordinates(){return t(N)},get colorText(){return t(j)},get label(){return t(s)},get isPrediction(){return t(k)}})};E(A,n=>{l()&&n(G)})}var F=p(A,2);{var H=n=>{et(n,{segmentation:y,get width(){return o.imageWidth},get colorFill(){return t(C)},get opacity(){return t(B)}})};E(F,n=>{y&&n(H)})}var J=p(F,2);const K=i(()=>[t(d),t(r),t(S),t(x)]);lt(J,{get bbox(){return t(K)},get annotationId(){return t(X)},get label(){return t(s)},get colorStroke(){return t(q)},get colorFill(){return t(C)},get opacity(){return t(B)},get isPrediction(){return t(k)}}),L(_,P),R(),g()}var st=W('<rect vector-effect="non-scaling-stroke" stroke-width="2" pointer-events="all" data-testid="annotation_box"></rect>');function lt(_,o){const m=v(o,"isPrediction",3,!1),[g,b,h,l]=o.bbox,u=m()?"5,5":"none",f=m()?.8:1;var a=st();e(a,"x",g),e(a,"y",b),e(a,"width",h),e(a,"height",l),e(a,"stroke-opacity",f),e(a,"stroke-dasharray",u),V(()=>{e(a,"stroke",o.colorStroke),e(a,"fill",o.colorFill),e(a,"fill-opacity",o.opacity),e(a,"aria-label",o.label),e(a,"data-annotation-id",o.annotationId)}),L(_,a)}var ct=W('<g class="unscaled"><rect></rect><text class="annotation-label-text" data-testid="svg-annotation-text"> </text></g>');function dt(_,o){D(o,!0);const m=v(o,"fontSize",3,14),g=v(o,"isPrediction",3,!1),[b,h]=o.coordinates;let l=U(null);const u=i(()=>t(l)?(t(l).textContent=g()?`${o.label} (pred)`:o.label,t(l).getBBox()):{width:0,height:0}),f=5,a=g()?.8:1,s=g()?"italic":"normal";var c=ct();e(c,"transform",`translate(${b}, ${h})`);var d=z(c);e(d,"opacity",a);var r=p(d);e(r,"x",f),e(r,"y",-5),e(r,"font-style",s);var S=z(r,!0);I(r),tt(r,x=>Y(l,x),()=>t(l)),I(c),V(()=>{var x,y,k;e(d,"y",-((x=t(u))==null?void 0:x.height)),e(d,"width",((y=t(u))==null?void 0:y.width)+f*2),e(d,"height",(k=t(u))==null?void 0:k.height),e(d,"fill",o.colorText.color),e(r,"fill",o.colorText.contrastColor),e(r,"font-size",m()),it(S,g()?`${o.label} (pred)`:o.label)}),L(_,c),R()}export{Lt as S};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./CWj6FrbW.js";import{f as m}from"./l7KrR96u.js";import{c as i,a as p}from"./Bu7uvVrG.js";import{s as n}from"./DIRAtgl0.js";function d(o,a){var r=i(),t=m(r);n(t,()=>a.children),p(o,r)}export{d as L};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const B=/\{[^{}]+\}/g,G=()=>{var t,r;return typeof process=="object"&&Number.parseInt((r=(t=process==null?void 0:process.versions)==null?void 0:t.node)==null?void 0:r.substring(0,2))>=18&&process.versions.undici};function F(){return Math.random().toString(36).slice(2,11)}function M(t){let{baseUrl:r="",Request:e=globalThis.Request,fetch:a=globalThis.fetch,querySerializer:n,bodySerializer:s,headers:l,requestInitExt:f=void 0,...P}={...t};f=G()?f:void 0,r=L(r);const y=[];async function h(i,o){const{baseUrl:m,fetch:O=a,Request:V=e,headers:v,params:p={},parseAs:$="json",querySerializer:E,bodySerializer:I=s??J,body:C,...A}=o||{};m&&(r=L(m));let U=typeof n=="function"?n:D(n);E&&(U=typeof E=="function"?E:D({...typeof n=="object"?n:{},...E}));const q=C===void 0?void 0:I(C),N=q===void 0||q instanceof FormData?{}:{"Content-Type":"application/json"},k={redirect:"follow",...P,...A,body:q,headers:Y(N,l,v,p.header)};let g,j,b=new e(Q(i,{baseUrl:r,params:p,querySerializer:U}),k);for(const u in A)u in b||(b[u]=A[u]);if(y.length){g=F(),j=Object.freeze({baseUrl:r,fetch:O,parseAs:$,querySerializer:U,bodySerializer:I});for(const u of y)if(u&&typeof u=="object"&&typeof u.onRequest=="function"){const d=await u.onRequest({request:b,schemaPath:i,params:p,options:j,id:g});if(d){if(!(d instanceof e))throw new Error("onRequest: must return new Request() when modifying the request");b=d}}}let c;try{c=await O(b,f)}catch(u){let d=u;if(y.length)for(let w=y.length-1;w>=0;w--){const S=y[w];if(S&&typeof S=="object"&&typeof S.onError=="function"){const R=await S.onError({request:b,error:d,schemaPath:i,params:p,options:j,id:g});if(R){if(R instanceof Response){d=void 0,c=R;break}if(R instanceof Error){d=R;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(d)throw d}if(y.length)for(let u=y.length-1;u>=0;u--){const d=y[u];if(d&&typeof d=="object"&&typeof d.onResponse=="function"){const w=await d.onResponse({request:b,response:c,schemaPath:i,params:p,options:j,id:g});if(w){if(!(w instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");c=w}}}if(c.status===204||c.headers.get("Content-Length")==="0")return c.ok?{data:void 0,response:c}:{error:void 0,response:c};if(c.ok)return $==="stream"?{data:c.body,response:c}:{data:await c[$](),response:c};let x=await c.text();try{x=JSON.parse(x)}catch{}return{error:x,response:c}}return{request(i,o,m){return h(o,{...m,method:i.toUpperCase()})},GET(i,o){return h(i,{...o,method:"GET"})},PUT(i,o){return h(i,{...o,method:"PUT"})},POST(i,o){return h(i,{...o,method:"POST"})},DELETE(i,o){return h(i,{...o,method:"DELETE"})},OPTIONS(i,o){return h(i,{...o,method:"OPTIONS"})},HEAD(i,o){return h(i,{...o,method:"HEAD"})},PATCH(i,o){return h(i,{...o,method:"PATCH"})},TRACE(i,o){return h(i,{...o,method:"TRACE"})},use(...i){for(const o of i)if(o){if(typeof o!="object"||!("onRequest"in o||"onResponse"in o||"onError"in o))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");y.push(o)}},eject(...i){for(const o of i){const m=y.indexOf(o);m!==-1&&y.splice(m,1)}}}}function T(t,r,e){if(r==null)return"";if(typeof r=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${(e==null?void 0:e.allowReserved)===!0?r:encodeURIComponent(r)}`}function _(t,r,e){if(!r||typeof r!="object")return"";const a=[],n={simple:",",label:".",matrix:";"}[e.style]||"&";if(e.style!=="deepObject"&&e.explode===!1){for(const f in r)a.push(f,e.allowReserved===!0?r[f]:encodeURIComponent(r[f]));const l=a.join(",");switch(e.style){case"form":return`${t}=${l}`;case"label":return`.${l}`;case"matrix":return`;${t}=${l}`;default:return l}}for(const l in r){const f=e.style==="deepObject"?`${t}[${l}]`:l;a.push(T(f,r[l],e))}const s=a.join(n);return e.style==="label"||e.style==="matrix"?`${n}${s}`:s}function H(t,r,e){if(!Array.isArray(r))return"";if(e.explode===!1){const s={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[e.style]||",",l=(e.allowReserved===!0?r:r.map(f=>encodeURIComponent(f))).join(s);switch(e.style){case"simple":return l;case"label":return`.${l}`;case"matrix":return`;${t}=${l}`;default:return`${t}=${l}`}}const a={simple:",",label:".",matrix:";"}[e.style]||"&",n=[];for(const s of r)e.style==="simple"||e.style==="label"?n.push(e.allowReserved===!0?s:encodeURIComponent(s)):n.push(T(t,s,e));return e.style==="label"||e.style==="matrix"?`${a}${n.join(a)}`:n.join(a)}function D(t){return function(e){const a=[];if(e&&typeof e=="object")for(const n in e){const s=e[n];if(s!=null){if(Array.isArray(s)){if(s.length===0)continue;a.push(H(n,s,{style:"form",explode:!0,...t==null?void 0:t.array,allowReserved:(t==null?void 0:t.allowReserved)||!1}));continue}if(typeof s=="object"){a.push(_(n,s,{style:"deepObject",explode:!0,...t==null?void 0:t.object,allowReserved:(t==null?void 0:t.allowReserved)||!1}));continue}a.push(T(n,s,t))}}return a.join("&")}}function W(t,r){let e=t;for(const a of t.match(B)??[]){let n=a.substring(1,a.length-1),s=!1,l="simple";if(n.endsWith("*")&&(s=!0,n=n.substring(0,n.length-1)),n.startsWith(".")?(l="label",n=n.substring(1)):n.startsWith(";")&&(l="matrix",n=n.substring(1)),!r||r[n]===void 0||r[n]===null)continue;const f=r[n];if(Array.isArray(f)){e=e.replace(a,H(n,f,{style:l,explode:s}));continue}if(typeof f=="object"){e=e.replace(a,_(n,f,{style:l,explode:s}));continue}if(l==="matrix"){e=e.replace(a,`;${T(n,f)}`);continue}e=e.replace(a,l==="label"?`.${encodeURIComponent(f)}`:encodeURIComponent(f))}return e}function J(t){return t instanceof FormData?t:JSON.stringify(t)}function Q(t,r){var n;let e=`${r.baseUrl}${t}`;(n=r.params)!=null&&n.path&&(e=W(e,r.params.path));let a=r.querySerializer(r.params.query??{});return a.startsWith("?")&&(a=a.substring(1)),a&&(e+=`?${a}`),e}function Y(...t){const r=new Headers;for(const e of t){if(!e||typeof e!="object")continue;const a=e instanceof Headers?e.entries():Object.entries(e);for(const[n,s]of a)if(s===null)r.delete(n);else if(Array.isArray(s))for(const l of s)r.append(n,l);else s!==void 0&&r.set(n,s)}return r}function L(t){return t.endsWith("/")?t.substring(0,t.length-1):t}const X="/images",K="/",z=M({baseUrl:K,fetch}),Z=async t=>{const r={data:void 0,error:void 0};try{const e=await z.GET("/api/datasets/{dataset_id}",{params:{path:{dataset_id:t}}});if(e.error)throw new Error(JSON.stringify(e.error,null,2));if(!e.data)throw new Error("No data");r.data=e.data}catch(e){r.error="Error loading dataset: "+String(e)}return r},ee=async()=>{const t={data:void 0,error:void 0};try{const{data:r}=await z.GET("/api/datasets");if(!r)throw new Error("No data");const e=r.sort((n,s)=>Date.parse(s.created_at)-Date.parse(n.created_at))[0].dataset_id,a=await z.GET("/api/datasets/{dataset_id}",{params:{path:{dataset_id:e}}});if(a.error)throw new Error(JSON.stringify(a.error,null,2));if(!a.data)throw new Error("No data");t.data=a.data}catch(r){t.error="Error loading dataset: "+String(r)}return t};export{X as P,Z as a,z as c,ee as l};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var vt=Object.defineProperty;var Ke=e=>{throw TypeError(e)};var gt=(e,t,s)=>t in e?vt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var $e=(e,t,s)=>gt(e,typeof t!="symbol"?t+"":t,s),me=(e,t,s)=>t.has(e)||Ke("Cannot "+s);var n=(e,t,s)=>(me(e,t,"read from private field"),s?s.call(e):t.get(e)),p=(e,t,s)=>t.has(e)?Ke("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,s),l=(e,t,s,r)=>(me(e,t,"write to private field"),r?r.call(e,s):t.set(e,s),s),g=(e,t,s)=>(me(e,t,"access private method"),s);import{az as tt,aA as we,aB as St,z as ve,l as wt}from"./l7KrR96u.js";const Ct={bodySerializer:e=>JSON.stringify(e,(t,s)=>typeof s=="bigint"?s.toString():s)},Ot=async(e,t)=>{const s=typeof t=="function"?await t(e):t;if(s)return e.scheme==="bearer"?`Bearer ${s}`:e.scheme==="basic"?`Basic ${btoa(s)}`:s},Rt=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},jt=e=>{switch(e){case"form":return",";case"pipeDelimited":return"|";case"spaceDelimited":return"%20";default:return","}},At=e=>{switch(e){case"label":return".";case"matrix":return";";case"simple":return",";default:return"&"}},st=({allowReserved:e,explode:t,name:s,style:r,value:a})=>{if(!t){const i=(e?a:a.map(h=>encodeURIComponent(h))).join(jt(r));switch(r){case"label":return`.${i}`;case"matrix":return`;${s}=${i}`;case"simple":return i;default:return`${s}=${i}`}}const u=Rt(r),o=a.map(i=>r==="label"||r==="simple"?e?i:encodeURIComponent(i):pe({allowReserved:e,name:s,value:i})).join(u);return r==="label"||r==="matrix"?u+o:o},pe=({allowReserved:e,name:t,value:s})=>{if(s==null)return"";if(typeof s=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?s:encodeURIComponent(s)}`},rt=({allowReserved:e,explode:t,name:s,style:r,value:a,valueOnly:u})=>{if(a instanceof Date)return u?a.toISOString():`${s}=${a.toISOString()}`;if(r!=="deepObject"&&!t){let h=[];Object.entries(a).forEach(([d,c])=>{h=[...h,d,e?c:encodeURIComponent(c)]});const m=h.join(",");switch(r){case"form":return`${s}=${m}`;case"label":return`.${m}`;case"matrix":return`;${s}=${m}`;default:return m}}const o=At(r),i=Object.entries(a).map(([h,m])=>pe({allowReserved:e,name:r==="deepObject"?`${s}[${h}]`:h,value:m})).join(o);return r==="label"||r==="matrix"?o+i:i},Et=/\{[^{}]+\}/g,Ft=({path:e,url:t})=>{let s=t;const r=t.match(Et);if(r)for(const a of r){let u=!1,o=a.substring(1,a.length-1),i="simple";o.endsWith("*")&&(u=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(o=o.substring(1),i="label"):o.startsWith(";")&&(o=o.substring(1),i="matrix");const h=e[o];if(h==null)continue;if(Array.isArray(h)){s=s.replace(a,st({explode:u,name:o,style:i,value:h}));continue}if(typeof h=="object"){s=s.replace(a,rt({explode:u,name:o,style:i,value:h,valueOnly:!0}));continue}if(i==="matrix"){s=s.replace(a,`;${pe({name:o,value:h})}`);continue}const m=encodeURIComponent(i==="label"?`.${h}`:h);s=s.replace(a,m)}return s},nt=({allowReserved:e,array:t,object:s}={})=>a=>{const u=[];if(a&&typeof a=="object")for(const o in a){const i=a[o];if(i!=null)if(Array.isArray(i)){const h=st({allowReserved:e,explode:!0,name:o,style:"form",value:i,...t});h&&u.push(h)}else if(typeof i=="object"){const h=rt({allowReserved:e,explode:!0,name:o,style:"deepObject",value:i,...s});h&&u.push(h)}else{const h=pe({allowReserved:e,name:o,value:i});h&&u.push(h)}}return u.join("&")},Tt=e=>{var s;if(!e)return"stream";const t=(s=e.split(";")[0])==null?void 0:s.trim();if(t){if(t.startsWith("application/json")||t.endsWith("+json"))return"json";if(t==="multipart/form-data")return"formData";if(["application/","audio/","image/","video/"].some(r=>t.startsWith(r)))return"blob";if(t.startsWith("text/"))return"text"}},It=async({security:e,...t})=>{for(const s of e){const r=await Ot(s,t.auth);if(!r)continue;const a=s.name??"Authorization";switch(s.in){case"query":t.query||(t.query={}),t.query[a]=r;break;case"cookie":t.headers.append("Cookie",`${a}=${r}`);break;case"header":default:t.headers.set(a,r);break}return}},He=e=>Ut({baseUrl:e.baseUrl,path:e.path,query:e.query,querySerializer:typeof e.querySerializer=="function"?e.querySerializer:nt(e.querySerializer),url:e.url}),Ut=({baseUrl:e,path:t,query:s,querySerializer:r,url:a})=>{const u=a.startsWith("/")?a:`/${a}`;let o=(e??"")+u;t&&(o=Ft({path:t,url:o}));let i=s?r(s):"";return i.startsWith("?")&&(i=i.substring(1)),i&&(o+=`?${i}`),o},Be=(e,t)=>{var r;const s={...e,...t};return(r=s.baseUrl)!=null&&r.endsWith("/")&&(s.baseUrl=s.baseUrl.substring(0,s.baseUrl.length-1)),s.headers=it(e.headers,t.headers),s},it=(...e)=>{const t=new Headers;for(const s of e){if(!s||typeof s!="object")continue;const r=s instanceof Headers?s.entries():Object.entries(s);for(const[a,u]of r)if(u===null)t.delete(a);else if(Array.isArray(u))for(const o of u)t.append(a,o);else u!==void 0&&t.set(a,typeof u=="object"?JSON.stringify(u):u)}return t};class ge{constructor(){$e(this,"_fns");this._fns=[]}clear(){this._fns=[]}getInterceptorIndex(t){return typeof t=="number"?this._fns[t]?t:-1:this._fns.indexOf(t)}exists(t){const s=this.getInterceptorIndex(t);return!!this._fns[s]}eject(t){const s=this.getInterceptorIndex(t);this._fns[s]&&(this._fns[s]=null)}update(t,s){const r=this.getInterceptorIndex(t);return this._fns[r]?(this._fns[r]=s,t):!1}use(t){return this._fns=[...this._fns,t],this._fns.length-1}}const qt=()=>({error:new ge,request:new ge,response:new ge}),xt=nt({allowReserved:!1,array:{explode:!0,style:"form"},object:{explode:!0,style:"deepObject"}}),Dt={"Content-Type":"application/json"},at=(e={})=>({...Ct,headers:Dt,parseAs:"auto",querySerializer:xt,...e}),_t=(e={})=>{let t=Be(at(),e);const s=()=>({...t}),r=o=>(t=Be(t,o),s()),a=qt(),u=async o=>{const i={...t,...o,fetch:o.fetch??t.fetch??globalThis.fetch,headers:it(t.headers,o.headers)};i.security&&await It({...i,security:i.security}),i.requestValidator&&await i.requestValidator(i),i.body&&i.bodySerializer&&(i.body=i.bodySerializer(i.body)),(i.body===void 0||i.body==="")&&i.headers.delete("Content-Type");const h=He(i),m={redirect:"follow",...i};let d=new Request(h,m);for(const C of a.request._fns)C&&(d=await C(d,i));const c=i.fetch;let f=await c(d);for(const C of a.response._fns)C&&(f=await C(f,d,i));const w={request:d,response:f};if(f.ok){if(f.status===204||f.headers.get("Content-Length")==="0")return i.responseStyle==="data"?{}:{data:{},...w};const C=(i.parseAs==="auto"?Tt(f.headers.get("Content-Type")):i.parseAs)??"json";let F;switch(C){case"arrayBuffer":case"blob":case"formData":case"json":case"text":F=await f[C]();break;case"stream":return i.responseStyle==="data"?f.body:{data:f.body,...w}}return C==="json"&&(i.responseValidator&&await i.responseValidator(F),i.responseTransformer&&(F=await i.responseTransformer(F))),i.responseStyle==="data"?F:{data:F,...w}}const j=await f.text();let v;try{v=JSON.parse(j)}catch{}const S=v??j;let O=S;for(const C of a.error._fns)C&&(O=await C(S,f,d,i));if(O=O||{},i.throwOnError)throw O;return i.responseStyle==="data"?void 0:{error:O,...w}};return{buildUrl:He,connect:o=>u({...o,method:"CONNECT"}),delete:o=>u({...o,method:"DELETE"}),get:o=>u({...o,method:"GET"}),getConfig:s,head:o=>u({...o,method:"HEAD"}),interceptors:a,options:o=>u({...o,method:"OPTIONS"}),patch:o=>u({...o,method:"PATCH"}),post:o=>u({...o,method:"POST"}),put:o=>u({...o,method:"PUT"}),request:u,setConfig:r,trace:o=>u({...o,method:"TRACE"})}},Pt=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),ot=e=>(e.tags&&(e.tags=e.tags.map(t=>Pt(t))),e),Qt=e=>(e.data=e.data.map(t=>ot(t)),e),Mt=async e=>(e=Qt(e),e),Lt=async e=>(e=ot(e),e),zt=e=>(e.created_at&&(e.created_at=new Date(e.created_at)),e),kt=async e=>(e=e.map(t=>zt(t)),e),Kt=e=>(e.created_at=new Date(e.created_at),e.updated_at=new Date(e.updated_at),e),$t=async e=>(e=Kt(e),e),x=_t(at()),Es=e=>(e.client??x).post({responseTransformer:Mt,url:"/api/datasets/{dataset_id}/samples/list",...e,headers:{"Content-Type":"application/json",...e.headers}}),Ht=e=>(e.client??x).get({responseTransformer:Lt,url:"/api/datasets/{dataset_id}/samples/{sample_id}",...e}),Bt=e=>((e==null?void 0:e.client)??x).get({url:"/api/annotation_labels",...e}),Vt=e=>(e.client??x).get({url:"/api/datasets/{dataset_id}/annotations/count",...e,headers:{"Content-Type":"application/json",...e.headers}}),Nt=e=>(e.client??x).get({url:"/api/datasets/{dataset_id}/annotations",...e}),Wt=e=>(e.client??x).put({responseTransformer:kt,url:"/api/datasets/{dataset_id}/annotations",...e,headers:{"Content-Type":"application/json",...e.headers}}),Gt=e=>(e.client??x).get({url:"/api/datasets/{dataset_id}/annotations/{annotation_id}",...e}),Fs=e=>((e==null?void 0:e.client)??x).get({responseTransformer:$t,url:"/api/settings",...e}),Ts=e=>(e.client??x).get({url:"/api/classifiers/{classifier_id}/sample_history",...e}),Jt=e=>(e.client??x).get({url:"/api/datasets/{dataset_id}/metadata/info",...e});var Qe=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ie=typeof window>"u"||"Deno"in globalThis;function Ce(){}function Is(e,t){return typeof e=="function"?e(t):e}function Oe(e){return typeof e=="number"&&e>=0&&e!==1/0}function ut(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ye(e,t){return typeof e=="function"?e(t):e}function q(e,t){return typeof e=="function"?e(t):e}function Us(e,t){const{type:s="all",exact:r,fetchStatus:a,predicate:u,queryKey:o,stale:i}=e;if(o){if(r){if(t.queryHash!==Xt(o,t.options))return!1}else if(!Me(t.queryKey,o))return!1}if(s!=="all"){const h=t.isActive();if(s==="active"&&!h||s==="inactive"&&h)return!1}return!(typeof i=="boolean"&&t.isStale()!==i||a&&a!==t.state.fetchStatus||u&&!u(t))}function qs(e,t){const{exact:s,status:r,predicate:a,mutationKey:u}=e;if(u){if(!t.options.mutationKey)return!1;if(s){if(Re(t.options.mutationKey)!==Re(u))return!1}else if(!Me(t.options.mutationKey,u))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Xt(e,t){return((t==null?void 0:t.queryKeyHashFn)||Re)(e)}function Re(e){return JSON.stringify(e,(t,s)=>Ae(s)?Object.keys(s).sort().reduce((r,a)=>(r[a]=s[a],r),{}):s)}function Me(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(s=>!Me(e[s],t[s])):!1}function ct(e,t){if(e===t)return e;const s=Ve(e)&&Ve(t);if(s||Ae(e)&&Ae(t)){const r=s?e:Object.keys(e),a=r.length,u=s?t:Object.keys(t),o=u.length,i=s?[]:{};let h=0;for(let m=0;m<o;m++){const d=s?m:u[m];(!s&&r.includes(d)||s)&&e[d]===void 0&&t[d]===void 0?(i[d]=void 0,h++):(i[d]=ct(e[d],t[d]),i[d]===e[d]&&e[d]!==void 0&&h++)}return a===o&&h===a?e:i}return t}function je(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const s in e)if(e[s]!==t[s])return!1;return!0}function Ve(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ae(e){if(!Ne(e))return!1;const t=e.constructor;if(t===void 0)return!0;const s=t.prototype;return!(!Ne(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ne(e){return Object.prototype.toString.call(e)==="[object Object]"}function Yt(e){return new Promise(t=>{setTimeout(t,e)})}function Ee(e,t,s){return typeof s.structuralSharing=="function"?s.structuralSharing(e,t):s.structuralSharing!==!1?ct(e,t):t}function xs(e,t,s=0){const r=[...e,t];return s&&r.length>s?r.slice(1):r}function Ds(e,t,s=0){const r=[t,...e];return s&&r.length>s?r.slice(0,-1):r}var ht=Symbol();function Zt(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===ht?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var k,Q,J,Je,es=(Je=class extends Qe{constructor(){super();p(this,k);p(this,Q);p(this,J);l(this,J,t=>{if(!ie&&window.addEventListener){const s=()=>t();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){n(this,Q)||this.setEventListener(n(this,J))}onUnsubscribe(){var t;this.hasListeners()||((t=n(this,Q))==null||t.call(this),l(this,Q,void 0))}setEventListener(t){var s;l(this,J,t),(s=n(this,Q))==null||s.call(this),l(this,Q,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){n(this,k)!==t&&(l(this,k,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(s=>{s(t)})}isFocused(){var t;return typeof n(this,k)=="boolean"?n(this,k):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},k=new WeakMap,Q=new WeakMap,J=new WeakMap,Je),lt=new es,X,M,Y,Xe,ts=(Xe=class extends Qe{constructor(){super();p(this,X,!0);p(this,M);p(this,Y);l(this,Y,t=>{if(!ie&&window.addEventListener){const s=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",r)}}})}onSubscribe(){n(this,M)||this.setEventListener(n(this,Y))}onUnsubscribe(){var t;this.hasListeners()||((t=n(this,M))==null||t.call(this),l(this,M,void 0))}setEventListener(t){var s;l(this,Y,t),(s=n(this,M))==null||s.call(this),l(this,M,t(this.setOnline.bind(this)))}setOnline(t){n(this,X)!==t&&(l(this,X,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return n(this,X)}},X=new WeakMap,M=new WeakMap,Y=new WeakMap,Xe),dt=new ts;function Fe(){let e,t;const s=new Promise((a,u)=>{e=a,t=u});s.status="pending",s.catch(()=>{});function r(a){Object.assign(s,a),delete s.resolve,delete s.reject}return s.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},s.reject=a=>{r({status:"rejected",reason:a}),t(a)},s}function ss(e){return Math.min(1e3*2**e,3e4)}function ft(e){return(e??"online")==="online"?dt.isOnline():!0}var yt=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Se(e){return e instanceof yt}function rs(e){let t=!1,s=0,r=!1,a;const u=Fe(),o=v=>{var S;r||(f(new yt(v)),(S=e.abort)==null||S.call(e))},i=()=>{t=!0},h=()=>{t=!1},m=()=>lt.isFocused()&&(e.networkMode==="always"||dt.isOnline())&&e.canRun(),d=()=>ft(e.networkMode)&&e.canRun(),c=v=>{var S;r||(r=!0,(S=e.onSuccess)==null||S.call(e,v),a==null||a(),u.resolve(v))},f=v=>{var S;r||(r=!0,(S=e.onError)==null||S.call(e,v),a==null||a(),u.reject(v))},w=()=>new Promise(v=>{var S;a=O=>{(r||m())&&v(O)},(S=e.onPause)==null||S.call(e)}).then(()=>{var v;a=void 0,r||(v=e.onContinue)==null||v.call(e)}),j=()=>{if(r)return;let v;const S=s===0?e.initialPromise:void 0;try{v=S??e.fn()}catch(O){v=Promise.reject(O)}Promise.resolve(v).then(c).catch(O=>{var be;if(r)return;const C=e.retry??(ie?0:3),F=e.retryDelay??ss,le=typeof F=="function"?F(s,O):F,de=C===!0||typeof C=="number"&&s<C||typeof C=="function"&&C(s,O);if(t||!de){f(O);return}s++,(be=e.onFail)==null||be.call(e,s,O),Yt(le).then(()=>m()?void 0:w()).then(()=>{t?f(O):j()})})};return{promise:u,cancel:o,continue:()=>(a==null||a(),u),cancelRetry:i,continueRetry:h,canStart:d,start:()=>(d()?j():w().then(j),u)}}function ns(){let e=[],t=0,s=i=>{i()},r=i=>{i()},a=i=>setTimeout(i,0);const u=i=>{t?e.push(i):a(()=>{s(i)})},o=()=>{const i=e;e=[],i.length&&a(()=>{r(()=>{i.forEach(h=>{s(h)})})})};return{batch:i=>{let h;t++;try{h=i()}finally{t--,t||o()}return h},batchCalls:i=>(...h)=>{u(()=>{i(...h)})},schedule:u,setNotifyFunction:i=>{s=i},setBatchNotifyFunction:i=>{r=i},setScheduler:i=>{a=i}}}var Le=ns(),K,Ye,is=(Ye=class{constructor(){p(this,K)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oe(this.gcTime)&&l(this,K,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ie?1/0:5*60*1e3))}clearGcTimeout(){n(this,K)&&(clearTimeout(n(this,K)),l(this,K,void 0))}},K=new WeakMap,Ye),Z,ee,I,$,R,ue,H,U,P,Ze,_s=(Ze=class extends is{constructor(t){super();p(this,U);p(this,Z);p(this,ee);p(this,I);p(this,$);p(this,R);p(this,ue);p(this,H);l(this,H,!1),l(this,ue,t.defaultOptions),this.setOptions(t.options),this.observers=[],l(this,$,t.client),l(this,I,n(this,$).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,l(this,Z,as(this.options)),this.state=t.state??n(this,Z),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=n(this,R))==null?void 0:t.promise}setOptions(t){this.options={...n(this,ue),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&n(this,I).remove(this)}setData(t,s){const r=Ee(this.state.data,t,this.options);return g(this,U,P).call(this,{data:r,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),r}setState(t,s){g(this,U,P).call(this,{type:"setState",state:t,setStateOptions:s})}cancel(t){var r,a;const s=(r=n(this,R))==null?void 0:r.promise;return(a=n(this,R))==null||a.cancel(t),s?s.then(Ce).catch(Ce):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(n(this,Z))}isActive(){return this.observers.some(t=>q(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ht||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!ut(this.state.dataUpdatedAt,t)}onFocus(){var s;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(s=n(this,R))==null||s.continue()}onOnline(){var s;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(s=n(this,R))==null||s.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),n(this,I).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(s=>s!==t),this.observers.length||(n(this,R)&&(n(this,H)?n(this,R).cancel({revert:!0}):n(this,R).cancelRetry()),this.scheduleGc()),n(this,I).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||g(this,U,P).call(this,{type:"invalidate"})}fetch(t,s){var h,m,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(n(this,R))return n(this,R).continueRetry(),n(this,R).promise}if(t&&this.setOptions(t),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}const r=new AbortController,a=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(l(this,H,!0),r.signal)})},u=()=>{const c=Zt(this.options,s),f={client:n(this,$),queryKey:this.queryKey,meta:this.meta};return a(f),l(this,H,!1),this.options.persister?this.options.persister(c,f,this):c(f)},o={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:n(this,$),state:this.state,fetchFn:u};a(o),(h=this.options.behavior)==null||h.onFetch(o,this),l(this,ee,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((m=o.fetchOptions)==null?void 0:m.meta))&&g(this,U,P).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta});const i=c=>{var f,w,j,v;Se(c)&&c.silent||g(this,U,P).call(this,{type:"error",error:c}),Se(c)||((w=(f=n(this,I).config).onError)==null||w.call(f,c,this),(v=(j=n(this,I).config).onSettled)==null||v.call(j,this.state.data,c,this)),this.scheduleGc()};return l(this,R,rs({initialPromise:s==null?void 0:s.initialPromise,fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:c=>{var f,w,j,v;if(c===void 0){i(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(S){i(S);return}(w=(f=n(this,I).config).onSuccess)==null||w.call(f,c,this),(v=(j=n(this,I).config).onSettled)==null||v.call(j,c,this.state.error,this),this.scheduleGc()},onError:i,onFail:(c,f)=>{g(this,U,P).call(this,{type:"failed",failureCount:c,error:f})},onPause:()=>{g(this,U,P).call(this,{type:"pause"})},onContinue:()=>{g(this,U,P).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),n(this,R).start()}},Z=new WeakMap,ee=new WeakMap,I=new WeakMap,$=new WeakMap,R=new WeakMap,ue=new WeakMap,H=new WeakMap,U=new WeakSet,P=function(t){const s=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...pt(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return Se(a)&&a.revert&&n(this,ee)?{...n(this,ee),fetchStatus:"idle"}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=s(this.state),Le.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),n(this,I).notify({query:this,type:"updated",action:t})})},Ze);function pt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ft(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function as(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,s=t!==void 0,r=s?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var T,y,ce,E,B,te,L,_,he,se,re,V,N,z,ne,b,oe,Te,Ie,Ue,qe,xe,De,_e,bt,et,os=(et=class extends Qe{constructor(t,s){super();p(this,b);p(this,T);p(this,y);p(this,ce);p(this,E);p(this,B);p(this,te);p(this,L);p(this,_);p(this,he);p(this,se);p(this,re);p(this,V);p(this,N);p(this,z);p(this,ne,new Set);this.options=s,l(this,T,t),l(this,_,null),l(this,L,Fe()),this.options.experimental_prefetchInRender||n(this,L).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(n(this,y).addObserver(this),We(n(this,y),this.options)?g(this,b,oe).call(this):this.updateResult(),g(this,b,qe).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pe(n(this,y),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pe(n(this,y),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,g(this,b,xe).call(this),g(this,b,De).call(this),n(this,y).removeObserver(this)}setOptions(t,s){const r=this.options,a=n(this,y);if(this.options=n(this,T).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof q(this.options.enabled,n(this,y))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");g(this,b,_e).call(this),n(this,y).setOptions(this.options),r._defaulted&&!je(this.options,r)&&n(this,T).getQueryCache().notify({type:"observerOptionsUpdated",query:n(this,y),observer:this});const u=this.hasListeners();u&&Ge(n(this,y),a,this.options,r)&&g(this,b,oe).call(this),this.updateResult(s),u&&(n(this,y)!==a||q(this.options.enabled,n(this,y))!==q(r.enabled,n(this,y))||ye(this.options.staleTime,n(this,y))!==ye(r.staleTime,n(this,y)))&&g(this,b,Te).call(this);const o=g(this,b,Ie).call(this);u&&(n(this,y)!==a||q(this.options.enabled,n(this,y))!==q(r.enabled,n(this,y))||o!==n(this,z))&&g(this,b,Ue).call(this,o)}getOptimisticResult(t){const s=n(this,T).getQueryCache().build(n(this,T),t),r=this.createResult(s,t);return cs(this,r)&&(l(this,E,r),l(this,te,this.options),l(this,B,n(this,y).state)),r}getCurrentResult(){return n(this,E)}trackResult(t,s){const r={};return Object.keys(t).forEach(a=>{Object.defineProperty(r,a,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(a),s==null||s(a),t[a])})}),r}trackProp(t){n(this,ne).add(t)}getCurrentQuery(){return n(this,y)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const s=n(this,T).defaultQueryOptions(t),r=n(this,T).getQueryCache().build(n(this,T),s);return r.fetch().then(()=>this.createResult(r,s))}fetch(t){return g(this,b,oe).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),n(this,E)))}createResult(t,s){var ke;const r=n(this,y),a=this.options,u=n(this,E),o=n(this,B),i=n(this,te),m=t!==r?t.state:n(this,ce),{state:d}=t;let c={...d},f=!1,w;if(s._optimisticResults){const A=this.hasListeners(),W=!A&&We(t,s),G=A&&Ge(t,r,s,a);(W||G)&&(c={...c,...pt(d.data,t.options)}),s._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:j,errorUpdatedAt:v,status:S}=c;if(s.select&&c.data!==void 0)if(u&&c.data===(o==null?void 0:o.data)&&s.select===n(this,he))w=n(this,se);else try{l(this,he,s.select),w=s.select(c.data),w=Ee(u==null?void 0:u.data,w,s),l(this,se,w),l(this,_,null)}catch(A){l(this,_,A)}else w=c.data;if(s.placeholderData!==void 0&&w===void 0&&S==="pending"){let A;if(u!=null&&u.isPlaceholderData&&s.placeholderData===(i==null?void 0:i.placeholderData))A=u.data;else if(A=typeof s.placeholderData=="function"?s.placeholderData((ke=n(this,re))==null?void 0:ke.state.data,n(this,re)):s.placeholderData,s.select&&A!==void 0)try{A=s.select(A),l(this,_,null)}catch(W){l(this,_,W)}A!==void 0&&(S="success",w=Ee(u==null?void 0:u.data,A,s),f=!0)}n(this,_)&&(j=n(this,_),w=n(this,se),v=Date.now(),S="error");const O=c.fetchStatus==="fetching",C=S==="pending",F=S==="error",le=C&&O,de=w!==void 0,D={status:S,fetchStatus:c.fetchStatus,isPending:C,isSuccess:S==="success",isError:F,isInitialLoading:le,isLoading:le,data:w,dataUpdatedAt:c.dataUpdatedAt,error:j,errorUpdatedAt:v,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>m.dataUpdateCount||c.errorUpdateCount>m.errorUpdateCount,isFetching:O,isRefetching:O&&!C,isLoadingError:F&&!de,isPaused:c.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:F&&de,isStale:ze(t,s),refetch:this.refetch,promise:n(this,L)};if(this.options.experimental_prefetchInRender){const A=fe=>{D.status==="error"?fe.reject(D.error):D.data!==void 0&&fe.resolve(D.data)},W=()=>{const fe=l(this,L,D.promise=Fe());A(fe)},G=n(this,L);switch(G.status){case"pending":t.queryHash===r.queryHash&&A(G);break;case"fulfilled":(D.status==="error"||D.data!==G.value)&&W();break;case"rejected":(D.status!=="error"||D.error!==G.reason)&&W();break}}return D}updateResult(t){const s=n(this,E),r=this.createResult(n(this,y),this.options);if(l(this,B,n(this,y).state),l(this,te,this.options),n(this,B).data!==void 0&&l(this,re,n(this,y)),je(r,s))return;l(this,E,r);const a={},u=()=>{if(!s)return!0;const{notifyOnChangeProps:o}=this.options,i=typeof o=="function"?o():o;if(i==="all"||!i&&!n(this,ne).size)return!0;const h=new Set(i??n(this,ne));return this.options.throwOnError&&h.add("error"),Object.keys(n(this,E)).some(m=>{const d=m;return n(this,E)[d]!==s[d]&&h.has(d)})};(t==null?void 0:t.listeners)!==!1&&u()&&(a.listeners=!0),g(this,b,bt).call(this,{...a,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&g(this,b,qe).call(this)}},T=new WeakMap,y=new WeakMap,ce=new WeakMap,E=new WeakMap,B=new WeakMap,te=new WeakMap,L=new WeakMap,_=new WeakMap,he=new WeakMap,se=new WeakMap,re=new WeakMap,V=new WeakMap,N=new WeakMap,z=new WeakMap,ne=new WeakMap,b=new WeakSet,oe=function(t){g(this,b,_e).call(this);let s=n(this,y).fetch(this.options,t);return t!=null&&t.throwOnError||(s=s.catch(Ce)),s},Te=function(){g(this,b,xe).call(this);const t=ye(this.options.staleTime,n(this,y));if(ie||n(this,E).isStale||!Oe(t))return;const r=ut(n(this,E).dataUpdatedAt,t)+1;l(this,V,setTimeout(()=>{n(this,E).isStale||this.updateResult()},r))},Ie=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(n(this,y)):this.options.refetchInterval)??!1},Ue=function(t){g(this,b,De).call(this),l(this,z,t),!(ie||q(this.options.enabled,n(this,y))===!1||!Oe(n(this,z))||n(this,z)===0)&&l(this,N,setInterval(()=>{(this.options.refetchIntervalInBackground||lt.isFocused())&&g(this,b,oe).call(this)},n(this,z)))},qe=function(){g(this,b,Te).call(this),g(this,b,Ue).call(this,g(this,b,Ie).call(this))},xe=function(){n(this,V)&&(clearTimeout(n(this,V)),l(this,V,void 0))},De=function(){n(this,N)&&(clearInterval(n(this,N)),l(this,N,void 0))},_e=function(){const t=n(this,T).getQueryCache().build(n(this,T),this.options);if(t===n(this,y))return;const s=n(this,y);l(this,y,t),l(this,ce,t.state),this.hasListeners()&&(s==null||s.removeObserver(this),t.addObserver(this))},bt=function(t){Le.batch(()=>{t.listeners&&this.listeners.forEach(s=>{s(n(this,E))}),n(this,T).getQueryCache().notify({query:n(this,y),type:"observerResultsUpdated"})})},et);function us(e,t){return q(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function We(e,t){return us(e,t)||e.state.data!==void 0&&Pe(e,t,t.refetchOnMount)}function Pe(e,t,s){if(q(t.enabled,e)!==!1){const r=typeof s=="function"?s(e):s;return r==="always"||r!==!1&&ze(e,t)}return!1}function Ge(e,t,s,r){return(e!==t||q(r.enabled,e)===!1)&&(!s.suspense||e.state.status!=="error")&&ze(e,s)}function ze(e,t){return q(t.enabled,e)!==!1&&e.isStaleByTime(ye(t.staleTime,e))}function cs(e,t){return!je(e.getCurrentResult(),t)}const mt="$$_queryClient",hs=()=>{const e=tt(mt);if(!e)throw new Error("No QueryClient was found in Svelte context. Did you forget to wrap your component with QueryClientProvider?");return e},Ps=e=>{St(mt,e)},ls="$$_isRestoring",ds=()=>{try{const e=tt(ls);return e||we(!1)}catch{return we(!1)}};function fs(){return ds()}function ys(e){return hs()}function ps(e){return"subscribe"in e&&typeof e.subscribe=="function"}function bs(){}function ms(e,t,s){const r=ys(),a=fs(),u=ps(e)?e:we(e),o=ve([u,a],([d,c])=>{const f=r.defaultQueryOptions(d);return f._optimisticResults=c?"isRestoring":"optimistic",f}),i=new t(r,wt(o));o.subscribe(d=>{i.setOptions(d,{listeners:!1})});const h=ve(a,(d,c)=>{const f=d?bs:i.subscribe(Le.batchCalls(c));return i.updateResult(),f}),{subscribe:m}=ve([h,o],([d,c])=>(d=i.getOptimisticResult(c),c.notifyOnChangeProps?d:i.trackResult(d)));return{subscribe:m}}function Qs(e,t){return ms(e,os)}const ae=(e,t,s)=>{const r={_id:e,baseUrl:(t==null?void 0:t.baseUrl)||((t==null?void 0:t.client)??x).getConfig().baseUrl};return s&&(r._infinite=s),t!=null&&t.body&&(r.body=t.body),t!=null&&t.headers&&(r.headers=t.headers),t!=null&&t.path&&(r.path=t.path),t!=null&&t.query&&(r.query=t.query),[r]},vs=(e,t)=>{const s={...e[0]};return t.body&&(s.body={...e[0].body,...t.body}),t.headers&&(s.headers={...e[0].headers,...t.headers}),t.path&&(s.path={...e[0].path,...t.path}),t.query&&(s.query={...e[0].query,...t.query}),s},gs=e=>ae("readSample",e),Ms=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:r}=await Ht({...e,...t[0],signal:s,throwOnError:!0});return r},queryKey:gs(e)}),Ss=e=>ae("readAnnotationLabels",e),Ls=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:r}=await Bt({...e,...t[0],signal:s,throwOnError:!0});return r},queryKey:Ss(e)}),ws=e=>ae("countAnnotationsByDataset",e),zs=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:r}=await Vt({...e,...t[0],signal:s,throwOnError:!0});return r},queryKey:ws(e)}),Cs=e=>ae("readAnnotations",e,!0),ks=e=>({queryFn:async({pageParam:t,queryKey:s,signal:r})=>{const u=vs(s,typeof t=="object"?t:{query:{cursor:t}}),{data:o}=await Nt({...e,...u,signal:r,throwOnError:!0});return o},queryKey:Cs(e)}),Ks=e=>({mutationFn:async s=>{const{data:r}=await Wt({...e,...s,throwOnError:!0});return r}}),Os=e=>ae("getAnnotation",e),$s=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:r}=await Gt({...e,...t[0],signal:s,throwOnError:!0});return r},queryKey:Os(e)}),Rs=e=>ae("getMetadataInfo",e),Hs=e=>({queryFn:async({queryKey:t,signal:s})=>{const{data:r}=await Jt({...e,...t[0],signal:s,throwOnError:!0});return r},queryKey:Rs(e)});export{ms as A,ps as B,bs as C,Ks as D,ks as E,Ls as F,Ts as G,$s as H,_s as Q,is as R,Qe as S,zs as a,Ms as b,Qs as c,qs as d,Ce as e,lt as f,Hs as g,Xt as h,ye as i,Is as j,Re as k,Ps as l,Us as m,Le as n,dt as o,Me as p,Fs as q,Es as r,ht as s,rs as t,ys as u,Zt as v,Ds as w,xs as x,os as y,je as z};
|