Spaces:
Runtime error
Runtime error
Alex Cabrera
commited on
Commit
β’
0f3dbb0
1
Parent(s):
99f0b1b
more examples
Browse filesThis view is limited to 50 files because it contains too many changes. Β
See raw diff
- evals/{.zeno_cache_emotional-intelligence β .zeno_cache_aba-mrpc}/OUTPUTgpt-3_5-turbo.pickle +2 -2
- evals/{.zeno_cache_emotional-intelligence/OUTPUTgpt-3_5-turbo-0301.pickle β .zeno_cache_aba-mrpc/OUTPUTgpt-4.pickle} +2 -2
- evals/{.zeno_cache_emotional-intelligence/POSTDISTILLcorrectgpt-3_5-turbo-0301.pickle β .zeno_cache_aba-mrpc/POSTDISTILLcorrectgpt-3_5-turbo.pickle} +2 -2
- evals/.zeno_cache_aba-mrpc/POSTDISTILLcorrectgpt-4.pickle +3 -0
- evals/{.zeno_cache_emotional-intelligence β .zeno_cache_aba-mrpc}/folders.pickle +0 -0
- evals/{.zeno_cache_emotional-intelligence β .zeno_cache_aba-mrpc}/reports.pickle +0 -0
- evals/{.zeno_cache_emotional-intelligence β .zeno_cache_aba-mrpc}/view.mjs +0 -0
- evals/.zeno_cache_country-area/OUTPUTgpt-3_5-turbo.pickle +3 -0
- evals/.zeno_cache_country-area/OUTPUTgpt-4.pickle +3 -0
- evals/{.zeno_cache_emotional-intelligence β .zeno_cache_country-area}/POSTDISTILLcorrectgpt-3_5-turbo.pickle +1 -1
- evals/.zeno_cache_country-area/POSTDISTILLcorrectgpt-4.pickle +3 -0
- evals/.zeno_cache_country-area/PREDISTILLarea.pickle +3 -0
- evals/.zeno_cache_country-area/folders.pickle +3 -0
- evals/.zeno_cache_country-area/reports.pickle +3 -0
- evals/.zeno_cache_country-area/view.mjs +1574 -0
- evals/.zeno_cache_crossword/folders.pickle +2 -2
- evals/.zeno_cache_crossword/reports.pickle +2 -2
- evals/.zeno_cache_crossword/slices.pickle +2 -2
- evals/.zeno_cache_logic-statements/OUTPUTgpt-3_5-turbo.pickle +3 -0
- evals/.zeno_cache_logic-statements/OUTPUTgpt-4.pickle +3 -0
- evals/.zeno_cache_logic-statements/POSTDISTILLcorrectgpt-3_5-turbo.pickle +3 -0
- evals/.zeno_cache_logic-statements/POSTDISTILLcorrectgpt-4.pickle +3 -0
- evals/.zeno_cache_logic-statements/folders.pickle +3 -0
- evals/.zeno_cache_logic-statements/reports.pickle +3 -0
- evals/.zeno_cache_logic-statements/view.mjs +1574 -0
- evals/.zeno_cache_logic/OUTPUTgpt-3_5-turbo.pickle +3 -0
- evals/.zeno_cache_logic/OUTPUTgpt-4.pickle +3 -0
- evals/.zeno_cache_logic/POSTDISTILLcorrectgpt-3_5-turbo.pickle +3 -0
- evals/.zeno_cache_logic/POSTDISTILLcorrectgpt-4.pickle +3 -0
- evals/.zeno_cache_logic/folders.pickle +3 -0
- evals/.zeno_cache_logic/reports.pickle +3 -0
- evals/.zeno_cache_logic/view.mjs +1574 -0
- evals/.zeno_cache_med-mcqa/OUTPUTgpt-3_5-turbo.pickle +3 -0
- evals/.zeno_cache_med-mcqa/OUTPUTgpt-4.pickle +3 -0
- evals/.zeno_cache_med-mcqa/POSTDISTILLcorrectgpt-3_5-turbo.pickle +3 -0
- evals/.zeno_cache_med-mcqa/POSTDISTILLcorrectgpt-4.pickle +3 -0
- evals/.zeno_cache_med-mcqa/folders.pickle +3 -0
- evals/.zeno_cache_med-mcqa/reports.pickle +3 -0
- evals/.zeno_cache_med-mcqa/view.mjs +1574 -0
- evals/aba-mrpc-true-false/aba-3.5-turbo.jsonl +0 -0
- evals/aba-mrpc-true-false/aba-4.jsonl +0 -0
- evals/country-area/countries-4.jsonl +202 -0
- evals/country-area/countries-turbo.jsonl +202 -0
- evals/country-area/country-areas.csv +264 -0
- evals/country-area/country_fns.py +26 -0
- evals/emotional-intelligence/emotional-intelligence-0301.jsonl +0 -0
- evals/emotional-intelligence/emotional-intelligence-turbo.jsonl +0 -0
- evals/evals.yaml +23 -8
- evals/logic/logic-4.jsonl +0 -0
- evals/logic/logic-turbo.jsonl +0 -0
evals/{.zeno_cache_emotional-intelligence β .zeno_cache_aba-mrpc}/OUTPUTgpt-3_5-turbo.pickle
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b94826626027a8d8e3bdc034caaf27599ce88742e625127a2d633667fda14ba4
|
3 |
+
size 52290
|
evals/{.zeno_cache_emotional-intelligence/OUTPUTgpt-3_5-turbo-0301.pickle β .zeno_cache_aba-mrpc/OUTPUTgpt-4.pickle}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:226d0ffd9db3b27944257bfaf5469a9a09c0c9ba064bb5a7ec7de2b47e719a4c
|
3 |
+
size 25077
|
evals/{.zeno_cache_emotional-intelligence/POSTDISTILLcorrectgpt-3_5-turbo-0301.pickle β .zeno_cache_aba-mrpc/POSTDISTILLcorrectgpt-3_5-turbo.pickle}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5fc12db94052d018116c91cd34c83edb4576d58237f37fd33db0049a4141b283
|
3 |
+
size 4155
|
evals/.zeno_cache_aba-mrpc/POSTDISTILLcorrectgpt-4.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:851f90f2cc3b30bd750e0bf4c4477cb98a9044cd87edcf084ada9938e3be9f54
|
3 |
+
size 4147
|
evals/{.zeno_cache_emotional-intelligence β .zeno_cache_aba-mrpc}/folders.pickle
RENAMED
File without changes
|
evals/{.zeno_cache_emotional-intelligence β .zeno_cache_aba-mrpc}/reports.pickle
RENAMED
File without changes
|
evals/{.zeno_cache_emotional-intelligence β .zeno_cache_aba-mrpc}/view.mjs
RENAMED
File without changes
|
evals/.zeno_cache_country-area/OUTPUTgpt-3_5-turbo.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e7867bfcccc692d7fc06078e197febd824e7db2fea681baae4e14fd9339bbe17
|
3 |
+
size 5393
|
evals/.zeno_cache_country-area/OUTPUTgpt-4.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fe04123c1bd490ed20ab541e6549313d255974a9586cc64bee00f0d3f9a7d62e
|
3 |
+
size 5169
|
evals/{.zeno_cache_emotional-intelligence β .zeno_cache_country-area}/POSTDISTILLcorrectgpt-3_5-turbo.pickle
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4125
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0033c337ecb6041ed37f1069f9b015049d5f7e105b8d718d767df9a2539bdc23
|
3 |
size 4125
|
evals/.zeno_cache_country-area/POSTDISTILLcorrectgpt-4.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f1395c3c5a91e8ba3f5449a737950f472b7ce0d01ff53134b62e3467d60ca095
|
3 |
+
size 4117
|
evals/.zeno_cache_country-area/PREDISTILLarea.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d340208354ce11868f29cc211caa8637e30d3b0db9d85ee27677a47a0150dde9
|
3 |
+
size 5885
|
evals/.zeno_cache_country-area/folders.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec0a6ccf9debf1c16781445c4b9106080d00478b0559469336db7c7b7b9711c8
|
3 |
+
size 5
|
evals/.zeno_cache_country-area/reports.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec0a6ccf9debf1c16781445c4b9106080d00478b0559469336db7c7b7b9711c8
|
3 |
+
size 5
|
evals/.zeno_cache_country-area/view.mjs
ADDED
@@ -0,0 +1,1574 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function noop() { }
|
2 |
+
function run(fn) {
|
3 |
+
return fn();
|
4 |
+
}
|
5 |
+
function blank_object() {
|
6 |
+
return Object.create(null);
|
7 |
+
}
|
8 |
+
function run_all(fns) {
|
9 |
+
fns.forEach(run);
|
10 |
+
}
|
11 |
+
function is_function(thing) {
|
12 |
+
return typeof thing === 'function';
|
13 |
+
}
|
14 |
+
function safe_not_equal(a, b) {
|
15 |
+
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
|
16 |
+
}
|
17 |
+
function is_empty(obj) {
|
18 |
+
return Object.keys(obj).length === 0;
|
19 |
+
}
|
20 |
+
function null_to_empty(value) {
|
21 |
+
return value == null ? '' : value;
|
22 |
+
}
|
23 |
+
|
24 |
+
// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM
|
25 |
+
// at the end of hydration without touching the remaining nodes.
|
26 |
+
let is_hydrating = false;
|
27 |
+
function start_hydrating() {
|
28 |
+
is_hydrating = true;
|
29 |
+
}
|
30 |
+
function end_hydrating() {
|
31 |
+
is_hydrating = false;
|
32 |
+
}
|
33 |
+
function upper_bound(low, high, key, value) {
|
34 |
+
// Return first index of value larger than input value in the range [low, high)
|
35 |
+
while (low < high) {
|
36 |
+
const mid = low + ((high - low) >> 1);
|
37 |
+
if (key(mid) <= value) {
|
38 |
+
low = mid + 1;
|
39 |
+
}
|
40 |
+
else {
|
41 |
+
high = mid;
|
42 |
+
}
|
43 |
+
}
|
44 |
+
return low;
|
45 |
+
}
|
46 |
+
function init_hydrate(target) {
|
47 |
+
if (target.hydrate_init)
|
48 |
+
return;
|
49 |
+
target.hydrate_init = true;
|
50 |
+
// We know that all children have claim_order values since the unclaimed have been detached if target is not <head>
|
51 |
+
let children = target.childNodes;
|
52 |
+
// If target is <head>, there may be children without claim_order
|
53 |
+
if (target.nodeName === 'HEAD') {
|
54 |
+
const myChildren = [];
|
55 |
+
for (let i = 0; i < children.length; i++) {
|
56 |
+
const node = children[i];
|
57 |
+
if (node.claim_order !== undefined) {
|
58 |
+
myChildren.push(node);
|
59 |
+
}
|
60 |
+
}
|
61 |
+
children = myChildren;
|
62 |
+
}
|
63 |
+
/*
|
64 |
+
* Reorder claimed children optimally.
|
65 |
+
* We can reorder claimed children optimally by finding the longest subsequence of
|
66 |
+
* nodes that are already claimed in order and only moving the rest. The longest
|
67 |
+
* subsequence of nodes that are claimed in order can be found by
|
68 |
+
* computing the longest increasing subsequence of .claim_order values.
|
69 |
+
*
|
70 |
+
* This algorithm is optimal in generating the least amount of reorder operations
|
71 |
+
* possible.
|
72 |
+
*
|
73 |
+
* Proof:
|
74 |
+
* We know that, given a set of reordering operations, the nodes that do not move
|
75 |
+
* always form an increasing subsequence, since they do not move among each other
|
76 |
+
* meaning that they must be already ordered among each other. Thus, the maximal
|
77 |
+
* set of nodes that do not move form a longest increasing subsequence.
|
78 |
+
*/
|
79 |
+
// Compute longest increasing subsequence
|
80 |
+
// m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j
|
81 |
+
const m = new Int32Array(children.length + 1);
|
82 |
+
// Predecessor indices + 1
|
83 |
+
const p = new Int32Array(children.length);
|
84 |
+
m[0] = -1;
|
85 |
+
let longest = 0;
|
86 |
+
for (let i = 0; i < children.length; i++) {
|
87 |
+
const current = children[i].claim_order;
|
88 |
+
// Find the largest subsequence length such that it ends in a value less than our current value
|
89 |
+
// upper_bound returns first greater value, so we subtract one
|
90 |
+
// with fast path for when we are on the current longest subsequence
|
91 |
+
const seqLen = ((longest > 0 && children[m[longest]].claim_order <= current) ? longest + 1 : upper_bound(1, longest, idx => children[m[idx]].claim_order, current)) - 1;
|
92 |
+
p[i] = m[seqLen] + 1;
|
93 |
+
const newLen = seqLen + 1;
|
94 |
+
// We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.
|
95 |
+
m[newLen] = i;
|
96 |
+
longest = Math.max(newLen, longest);
|
97 |
+
}
|
98 |
+
// The longest increasing subsequence of nodes (initially reversed)
|
99 |
+
const lis = [];
|
100 |
+
// The rest of the nodes, nodes that will be moved
|
101 |
+
const toMove = [];
|
102 |
+
let last = children.length - 1;
|
103 |
+
for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {
|
104 |
+
lis.push(children[cur - 1]);
|
105 |
+
for (; last >= cur; last--) {
|
106 |
+
toMove.push(children[last]);
|
107 |
+
}
|
108 |
+
last--;
|
109 |
+
}
|
110 |
+
for (; last >= 0; last--) {
|
111 |
+
toMove.push(children[last]);
|
112 |
+
}
|
113 |
+
lis.reverse();
|
114 |
+
// We sort the nodes being moved to guarantee that their insertion order matches the claim order
|
115 |
+
toMove.sort((a, b) => a.claim_order - b.claim_order);
|
116 |
+
// Finally, we move the nodes
|
117 |
+
for (let i = 0, j = 0; i < toMove.length; i++) {
|
118 |
+
while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {
|
119 |
+
j++;
|
120 |
+
}
|
121 |
+
const anchor = j < lis.length ? lis[j] : null;
|
122 |
+
target.insertBefore(toMove[i], anchor);
|
123 |
+
}
|
124 |
+
}
|
125 |
+
function append(target, node) {
|
126 |
+
target.appendChild(node);
|
127 |
+
}
|
128 |
+
function append_styles(target, style_sheet_id, styles) {
|
129 |
+
const append_styles_to = get_root_for_style(target);
|
130 |
+
if (!append_styles_to.getElementById(style_sheet_id)) {
|
131 |
+
const style = element('style');
|
132 |
+
style.id = style_sheet_id;
|
133 |
+
style.textContent = styles;
|
134 |
+
append_stylesheet(append_styles_to, style);
|
135 |
+
}
|
136 |
+
}
|
137 |
+
function get_root_for_style(node) {
|
138 |
+
if (!node)
|
139 |
+
return document;
|
140 |
+
const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;
|
141 |
+
if (root && root.host) {
|
142 |
+
return root;
|
143 |
+
}
|
144 |
+
return node.ownerDocument;
|
145 |
+
}
|
146 |
+
function append_stylesheet(node, style) {
|
147 |
+
append(node.head || node, style);
|
148 |
+
return style.sheet;
|
149 |
+
}
|
150 |
+
function append_hydration(target, node) {
|
151 |
+
if (is_hydrating) {
|
152 |
+
init_hydrate(target);
|
153 |
+
if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentNode !== target))) {
|
154 |
+
target.actual_end_child = target.firstChild;
|
155 |
+
}
|
156 |
+
// Skip nodes of undefined ordering
|
157 |
+
while ((target.actual_end_child !== null) && (target.actual_end_child.claim_order === undefined)) {
|
158 |
+
target.actual_end_child = target.actual_end_child.nextSibling;
|
159 |
+
}
|
160 |
+
if (node !== target.actual_end_child) {
|
161 |
+
// We only insert if the ordering of this node should be modified or the parent node is not target
|
162 |
+
if (node.claim_order !== undefined || node.parentNode !== target) {
|
163 |
+
target.insertBefore(node, target.actual_end_child);
|
164 |
+
}
|
165 |
+
}
|
166 |
+
else {
|
167 |
+
target.actual_end_child = node.nextSibling;
|
168 |
+
}
|
169 |
+
}
|
170 |
+
else if (node.parentNode !== target || node.nextSibling !== null) {
|
171 |
+
target.appendChild(node);
|
172 |
+
}
|
173 |
+
}
|
174 |
+
function insert_hydration(target, node, anchor) {
|
175 |
+
if (is_hydrating && !anchor) {
|
176 |
+
append_hydration(target, node);
|
177 |
+
}
|
178 |
+
else if (node.parentNode !== target || node.nextSibling != anchor) {
|
179 |
+
target.insertBefore(node, anchor || null);
|
180 |
+
}
|
181 |
+
}
|
182 |
+
function detach(node) {
|
183 |
+
if (node.parentNode) {
|
184 |
+
node.parentNode.removeChild(node);
|
185 |
+
}
|
186 |
+
}
|
187 |
+
function destroy_each(iterations, detaching) {
|
188 |
+
for (let i = 0; i < iterations.length; i += 1) {
|
189 |
+
if (iterations[i])
|
190 |
+
iterations[i].d(detaching);
|
191 |
+
}
|
192 |
+
}
|
193 |
+
function element(name) {
|
194 |
+
return document.createElement(name);
|
195 |
+
}
|
196 |
+
function svg_element(name) {
|
197 |
+
return document.createElementNS('http://www.w3.org/2000/svg', name);
|
198 |
+
}
|
199 |
+
function text(data) {
|
200 |
+
return document.createTextNode(data);
|
201 |
+
}
|
202 |
+
function space() {
|
203 |
+
return text(' ');
|
204 |
+
}
|
205 |
+
function empty() {
|
206 |
+
return text('');
|
207 |
+
}
|
208 |
+
function attr(node, attribute, value) {
|
209 |
+
if (value == null)
|
210 |
+
node.removeAttribute(attribute);
|
211 |
+
else if (node.getAttribute(attribute) !== value)
|
212 |
+
node.setAttribute(attribute, value);
|
213 |
+
}
|
214 |
+
function children(element) {
|
215 |
+
return Array.from(element.childNodes);
|
216 |
+
}
|
217 |
+
function init_claim_info(nodes) {
|
218 |
+
if (nodes.claim_info === undefined) {
|
219 |
+
nodes.claim_info = { last_index: 0, total_claimed: 0 };
|
220 |
+
}
|
221 |
+
}
|
222 |
+
function claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {
|
223 |
+
// Try to find nodes in an order such that we lengthen the longest increasing subsequence
|
224 |
+
init_claim_info(nodes);
|
225 |
+
const resultNode = (() => {
|
226 |
+
// We first try to find an element after the previous one
|
227 |
+
for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {
|
228 |
+
const node = nodes[i];
|
229 |
+
if (predicate(node)) {
|
230 |
+
const replacement = processNode(node);
|
231 |
+
if (replacement === undefined) {
|
232 |
+
nodes.splice(i, 1);
|
233 |
+
}
|
234 |
+
else {
|
235 |
+
nodes[i] = replacement;
|
236 |
+
}
|
237 |
+
if (!dontUpdateLastIndex) {
|
238 |
+
nodes.claim_info.last_index = i;
|
239 |
+
}
|
240 |
+
return node;
|
241 |
+
}
|
242 |
+
}
|
243 |
+
// Otherwise, we try to find one before
|
244 |
+
// We iterate in reverse so that we don't go too far back
|
245 |
+
for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {
|
246 |
+
const node = nodes[i];
|
247 |
+
if (predicate(node)) {
|
248 |
+
const replacement = processNode(node);
|
249 |
+
if (replacement === undefined) {
|
250 |
+
nodes.splice(i, 1);
|
251 |
+
}
|
252 |
+
else {
|
253 |
+
nodes[i] = replacement;
|
254 |
+
}
|
255 |
+
if (!dontUpdateLastIndex) {
|
256 |
+
nodes.claim_info.last_index = i;
|
257 |
+
}
|
258 |
+
else if (replacement === undefined) {
|
259 |
+
// Since we spliced before the last_index, we decrease it
|
260 |
+
nodes.claim_info.last_index--;
|
261 |
+
}
|
262 |
+
return node;
|
263 |
+
}
|
264 |
+
}
|
265 |
+
// If we can't find any matching node, we create a new one
|
266 |
+
return createNode();
|
267 |
+
})();
|
268 |
+
resultNode.claim_order = nodes.claim_info.total_claimed;
|
269 |
+
nodes.claim_info.total_claimed += 1;
|
270 |
+
return resultNode;
|
271 |
+
}
|
272 |
+
function claim_element_base(nodes, name, attributes, create_element) {
|
273 |
+
return claim_node(nodes, (node) => node.nodeName === name, (node) => {
|
274 |
+
const remove = [];
|
275 |
+
for (let j = 0; j < node.attributes.length; j++) {
|
276 |
+
const attribute = node.attributes[j];
|
277 |
+
if (!attributes[attribute.name]) {
|
278 |
+
remove.push(attribute.name);
|
279 |
+
}
|
280 |
+
}
|
281 |
+
remove.forEach(v => node.removeAttribute(v));
|
282 |
+
return undefined;
|
283 |
+
}, () => create_element(name));
|
284 |
+
}
|
285 |
+
function claim_element(nodes, name, attributes) {
|
286 |
+
return claim_element_base(nodes, name, attributes, element);
|
287 |
+
}
|
288 |
+
function claim_svg_element(nodes, name, attributes) {
|
289 |
+
return claim_element_base(nodes, name, attributes, svg_element);
|
290 |
+
}
|
291 |
+
function claim_text(nodes, data) {
|
292 |
+
return claim_node(nodes, (node) => node.nodeType === 3, (node) => {
|
293 |
+
const dataStr = '' + data;
|
294 |
+
if (node.data.startsWith(dataStr)) {
|
295 |
+
if (node.data.length !== dataStr.length) {
|
296 |
+
return node.splitText(dataStr.length);
|
297 |
+
}
|
298 |
+
}
|
299 |
+
else {
|
300 |
+
node.data = dataStr;
|
301 |
+
}
|
302 |
+
}, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements
|
303 |
+
);
|
304 |
+
}
|
305 |
+
function claim_space(nodes) {
|
306 |
+
return claim_text(nodes, ' ');
|
307 |
+
}
|
308 |
+
function set_data(text, data) {
|
309 |
+
data = '' + data;
|
310 |
+
if (text.wholeText !== data)
|
311 |
+
text.data = data;
|
312 |
+
}
|
313 |
+
|
314 |
+
let current_component;
|
315 |
+
function set_current_component(component) {
|
316 |
+
current_component = component;
|
317 |
+
}
|
318 |
+
|
319 |
+
const dirty_components = [];
|
320 |
+
const binding_callbacks = [];
|
321 |
+
const render_callbacks = [];
|
322 |
+
const flush_callbacks = [];
|
323 |
+
const resolved_promise = Promise.resolve();
|
324 |
+
let update_scheduled = false;
|
325 |
+
function schedule_update() {
|
326 |
+
if (!update_scheduled) {
|
327 |
+
update_scheduled = true;
|
328 |
+
resolved_promise.then(flush);
|
329 |
+
}
|
330 |
+
}
|
331 |
+
function add_render_callback(fn) {
|
332 |
+
render_callbacks.push(fn);
|
333 |
+
}
|
334 |
+
// flush() calls callbacks in this order:
|
335 |
+
// 1. All beforeUpdate callbacks, in order: parents before children
|
336 |
+
// 2. All bind:this callbacks, in reverse order: children before parents.
|
337 |
+
// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
|
338 |
+
// for afterUpdates called during the initial onMount, which are called in
|
339 |
+
// reverse order: children before parents.
|
340 |
+
// Since callbacks might update component values, which could trigger another
|
341 |
+
// call to flush(), the following steps guard against this:
|
342 |
+
// 1. During beforeUpdate, any updated components will be added to the
|
343 |
+
// dirty_components array and will cause a reentrant call to flush(). Because
|
344 |
+
// the flush index is kept outside the function, the reentrant call will pick
|
345 |
+
// up where the earlier call left off and go through all dirty components. The
|
346 |
+
// current_component value is saved and restored so that the reentrant call will
|
347 |
+
// not interfere with the "parent" flush() call.
|
348 |
+
// 2. bind:this callbacks cannot trigger new flush() calls.
|
349 |
+
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
350 |
+
// callback called a second time; the seen_callbacks set, outside the flush()
|
351 |
+
// function, guarantees this behavior.
|
352 |
+
const seen_callbacks = new Set();
|
353 |
+
let flushidx = 0; // Do *not* move this inside the flush() function
|
354 |
+
function flush() {
|
355 |
+
// Do not reenter flush while dirty components are updated, as this can
|
356 |
+
// result in an infinite loop. Instead, let the inner flush handle it.
|
357 |
+
// Reentrancy is ok afterwards for bindings etc.
|
358 |
+
if (flushidx !== 0) {
|
359 |
+
return;
|
360 |
+
}
|
361 |
+
const saved_component = current_component;
|
362 |
+
do {
|
363 |
+
// first, call beforeUpdate functions
|
364 |
+
// and update components
|
365 |
+
try {
|
366 |
+
while (flushidx < dirty_components.length) {
|
367 |
+
const component = dirty_components[flushidx];
|
368 |
+
flushidx++;
|
369 |
+
set_current_component(component);
|
370 |
+
update(component.$$);
|
371 |
+
}
|
372 |
+
}
|
373 |
+
catch (e) {
|
374 |
+
// reset dirty state to not end up in a deadlocked state and then rethrow
|
375 |
+
dirty_components.length = 0;
|
376 |
+
flushidx = 0;
|
377 |
+
throw e;
|
378 |
+
}
|
379 |
+
set_current_component(null);
|
380 |
+
dirty_components.length = 0;
|
381 |
+
flushidx = 0;
|
382 |
+
while (binding_callbacks.length)
|
383 |
+
binding_callbacks.pop()();
|
384 |
+
// then, once components are updated, call
|
385 |
+
// afterUpdate functions. This may cause
|
386 |
+
// subsequent updates...
|
387 |
+
for (let i = 0; i < render_callbacks.length; i += 1) {
|
388 |
+
const callback = render_callbacks[i];
|
389 |
+
if (!seen_callbacks.has(callback)) {
|
390 |
+
// ...so guard against infinite loops
|
391 |
+
seen_callbacks.add(callback);
|
392 |
+
callback();
|
393 |
+
}
|
394 |
+
}
|
395 |
+
render_callbacks.length = 0;
|
396 |
+
} while (dirty_components.length);
|
397 |
+
while (flush_callbacks.length) {
|
398 |
+
flush_callbacks.pop()();
|
399 |
+
}
|
400 |
+
update_scheduled = false;
|
401 |
+
seen_callbacks.clear();
|
402 |
+
set_current_component(saved_component);
|
403 |
+
}
|
404 |
+
function update($$) {
|
405 |
+
if ($$.fragment !== null) {
|
406 |
+
$$.update();
|
407 |
+
run_all($$.before_update);
|
408 |
+
const dirty = $$.dirty;
|
409 |
+
$$.dirty = [-1];
|
410 |
+
$$.fragment && $$.fragment.p($$.ctx, dirty);
|
411 |
+
$$.after_update.forEach(add_render_callback);
|
412 |
+
}
|
413 |
+
}
|
414 |
+
const outroing = new Set();
|
415 |
+
let outros;
|
416 |
+
function group_outros() {
|
417 |
+
outros = {
|
418 |
+
r: 0,
|
419 |
+
c: [],
|
420 |
+
p: outros // parent group
|
421 |
+
};
|
422 |
+
}
|
423 |
+
function check_outros() {
|
424 |
+
if (!outros.r) {
|
425 |
+
run_all(outros.c);
|
426 |
+
}
|
427 |
+
outros = outros.p;
|
428 |
+
}
|
429 |
+
function transition_in(block, local) {
|
430 |
+
if (block && block.i) {
|
431 |
+
outroing.delete(block);
|
432 |
+
block.i(local);
|
433 |
+
}
|
434 |
+
}
|
435 |
+
function transition_out(block, local, detach, callback) {
|
436 |
+
if (block && block.o) {
|
437 |
+
if (outroing.has(block))
|
438 |
+
return;
|
439 |
+
outroing.add(block);
|
440 |
+
outros.c.push(() => {
|
441 |
+
outroing.delete(block);
|
442 |
+
if (callback) {
|
443 |
+
if (detach)
|
444 |
+
block.d(1);
|
445 |
+
callback();
|
446 |
+
}
|
447 |
+
});
|
448 |
+
block.o(local);
|
449 |
+
}
|
450 |
+
else if (callback) {
|
451 |
+
callback();
|
452 |
+
}
|
453 |
+
}
|
454 |
+
function create_component(block) {
|
455 |
+
block && block.c();
|
456 |
+
}
|
457 |
+
function claim_component(block, parent_nodes) {
|
458 |
+
block && block.l(parent_nodes);
|
459 |
+
}
|
460 |
+
function mount_component(component, target, anchor, customElement) {
|
461 |
+
const { fragment, after_update } = component.$$;
|
462 |
+
fragment && fragment.m(target, anchor);
|
463 |
+
if (!customElement) {
|
464 |
+
// onMount happens before the initial afterUpdate
|
465 |
+
add_render_callback(() => {
|
466 |
+
const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);
|
467 |
+
// if the component was destroyed immediately
|
468 |
+
// it will update the `$$.on_destroy` reference to `null`.
|
469 |
+
// the destructured on_destroy may still reference to the old array
|
470 |
+
if (component.$$.on_destroy) {
|
471 |
+
component.$$.on_destroy.push(...new_on_destroy);
|
472 |
+
}
|
473 |
+
else {
|
474 |
+
// Edge case - component was destroyed immediately,
|
475 |
+
// most likely as a result of a binding initialising
|
476 |
+
run_all(new_on_destroy);
|
477 |
+
}
|
478 |
+
component.$$.on_mount = [];
|
479 |
+
});
|
480 |
+
}
|
481 |
+
after_update.forEach(add_render_callback);
|
482 |
+
}
|
483 |
+
function destroy_component(component, detaching) {
|
484 |
+
const $$ = component.$$;
|
485 |
+
if ($$.fragment !== null) {
|
486 |
+
run_all($$.on_destroy);
|
487 |
+
$$.fragment && $$.fragment.d(detaching);
|
488 |
+
// TODO null out other refs, including component.$$ (but need to
|
489 |
+
// preserve final state?)
|
490 |
+
$$.on_destroy = $$.fragment = null;
|
491 |
+
$$.ctx = [];
|
492 |
+
}
|
493 |
+
}
|
494 |
+
function make_dirty(component, i) {
|
495 |
+
if (component.$$.dirty[0] === -1) {
|
496 |
+
dirty_components.push(component);
|
497 |
+
schedule_update();
|
498 |
+
component.$$.dirty.fill(0);
|
499 |
+
}
|
500 |
+
component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
|
501 |
+
}
|
502 |
+
function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
|
503 |
+
const parent_component = current_component;
|
504 |
+
set_current_component(component);
|
505 |
+
const $$ = component.$$ = {
|
506 |
+
fragment: null,
|
507 |
+
ctx: [],
|
508 |
+
// state
|
509 |
+
props,
|
510 |
+
update: noop,
|
511 |
+
not_equal,
|
512 |
+
bound: blank_object(),
|
513 |
+
// lifecycle
|
514 |
+
on_mount: [],
|
515 |
+
on_destroy: [],
|
516 |
+
on_disconnect: [],
|
517 |
+
before_update: [],
|
518 |
+
after_update: [],
|
519 |
+
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
|
520 |
+
// everything else
|
521 |
+
callbacks: blank_object(),
|
522 |
+
dirty,
|
523 |
+
skip_bound: false,
|
524 |
+
root: options.target || parent_component.$$.root
|
525 |
+
};
|
526 |
+
append_styles && append_styles($$.root);
|
527 |
+
let ready = false;
|
528 |
+
$$.ctx = instance
|
529 |
+
? instance(component, options.props || {}, (i, ret, ...rest) => {
|
530 |
+
const value = rest.length ? rest[0] : ret;
|
531 |
+
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
532 |
+
if (!$$.skip_bound && $$.bound[i])
|
533 |
+
$$.bound[i](value);
|
534 |
+
if (ready)
|
535 |
+
make_dirty(component, i);
|
536 |
+
}
|
537 |
+
return ret;
|
538 |
+
})
|
539 |
+
: [];
|
540 |
+
$$.update();
|
541 |
+
ready = true;
|
542 |
+
run_all($$.before_update);
|
543 |
+
// `false` as a special case of no DOM component
|
544 |
+
$$.fragment = create_fragment ? create_fragment($$.ctx) : false;
|
545 |
+
if (options.target) {
|
546 |
+
if (options.hydrate) {
|
547 |
+
start_hydrating();
|
548 |
+
const nodes = children(options.target);
|
549 |
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
550 |
+
$$.fragment && $$.fragment.l(nodes);
|
551 |
+
nodes.forEach(detach);
|
552 |
+
}
|
553 |
+
else {
|
554 |
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
555 |
+
$$.fragment && $$.fragment.c();
|
556 |
+
}
|
557 |
+
if (options.intro)
|
558 |
+
transition_in(component.$$.fragment);
|
559 |
+
mount_component(component, options.target, options.anchor, options.customElement);
|
560 |
+
end_hydrating();
|
561 |
+
flush();
|
562 |
+
}
|
563 |
+
set_current_component(parent_component);
|
564 |
+
}
|
565 |
+
/**
|
566 |
+
* Base class for Svelte components. Used when dev=false.
|
567 |
+
*/
|
568 |
+
class SvelteComponent {
|
569 |
+
$destroy() {
|
570 |
+
destroy_component(this, 1);
|
571 |
+
this.$destroy = noop;
|
572 |
+
}
|
573 |
+
$on(type, callback) {
|
574 |
+
if (!is_function(callback)) {
|
575 |
+
return noop;
|
576 |
+
}
|
577 |
+
const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
|
578 |
+
callbacks.push(callback);
|
579 |
+
return () => {
|
580 |
+
const index = callbacks.indexOf(callback);
|
581 |
+
if (index !== -1)
|
582 |
+
callbacks.splice(index, 1);
|
583 |
+
};
|
584 |
+
}
|
585 |
+
$set($$props) {
|
586 |
+
if (this.$$set && !is_empty($$props)) {
|
587 |
+
this.$$.skip_bound = true;
|
588 |
+
this.$$set($$props);
|
589 |
+
this.$$.skip_bound = false;
|
590 |
+
}
|
591 |
+
}
|
592 |
+
}
|
593 |
+
|
594 |
+
/* src/AssistantBlock.svelte generated by Svelte v3.55.1 */
|
595 |
+
|
596 |
+
function add_css$3(target) {
|
597 |
+
append_styles(target, "svelte-1e3mbn4", ".model.svelte-1e3mbn4.svelte-1e3mbn4{fill:var(--logo)}.no-model.svelte-1e3mbn4.svelte-1e3mbn4{fill:var(--G3)}.model-border.svelte-1e3mbn4.svelte-1e3mbn4{border:1px solid var(--logo)}.no-model-border.svelte-1e3mbn4.svelte-1e3mbn4{border:1px solid rgba(224, 224, 224, 1)}.box.svelte-1e3mbn4.svelte-1e3mbn4{margin-top:10px;margin-bottom:10px;display:flex;align-items:start}.box.svelte-1e3mbn4 svg.svelte-1e3mbn4{min-width:24px;width:24px;margin-right:10px;margin-top:7px}.chat.svelte-1e3mbn4.svelte-1e3mbn4{border-radius:5px;margin:0px;padding:10px;overflow-wrap:anywhere}");
|
598 |
+
}
|
599 |
+
|
600 |
+
function create_fragment$3(ctx) {
|
601 |
+
let div;
|
602 |
+
let svg;
|
603 |
+
let path;
|
604 |
+
let svg_class_value;
|
605 |
+
let t0;
|
606 |
+
let p;
|
607 |
+
let t1;
|
608 |
+
let p_class_value;
|
609 |
+
|
610 |
+
return {
|
611 |
+
c() {
|
612 |
+
div = element("div");
|
613 |
+
svg = svg_element("svg");
|
614 |
+
path = svg_element("path");
|
615 |
+
t0 = space();
|
616 |
+
p = element("p");
|
617 |
+
t1 = text(/*input*/ ctx[0]);
|
618 |
+
this.h();
|
619 |
+
},
|
620 |
+
l(nodes) {
|
621 |
+
div = claim_element(nodes, "DIV", { class: true });
|
622 |
+
var div_nodes = children(div);
|
623 |
+
svg = claim_svg_element(div_nodes, "svg", { xmlns: true, viewBox: true, class: true });
|
624 |
+
var svg_nodes = children(svg);
|
625 |
+
path = claim_svg_element(svg_nodes, "path", { d: true });
|
626 |
+
children(path).forEach(detach);
|
627 |
+
svg_nodes.forEach(detach);
|
628 |
+
t0 = claim_space(div_nodes);
|
629 |
+
p = claim_element(div_nodes, "P", { class: true });
|
630 |
+
var p_nodes = children(p);
|
631 |
+
t1 = claim_text(p_nodes, /*input*/ ctx[0]);
|
632 |
+
p_nodes.forEach(detach);
|
633 |
+
div_nodes.forEach(detach);
|
634 |
+
this.h();
|
635 |
+
},
|
636 |
+
h() {
|
637 |
+
attr(path, "d", "M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z");
|
638 |
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
639 |
+
attr(svg, "viewBox", "0 0 640 512");
|
640 |
+
attr(svg, "class", svg_class_value = "" + (null_to_empty(/*output*/ ctx[1] ? "model" : "no-model") + " svelte-1e3mbn4"));
|
641 |
+
attr(p, "class", p_class_value = "chat " + (/*output*/ ctx[1] ? 'model-border' : 'no-model-border') + " svelte-1e3mbn4");
|
642 |
+
attr(div, "class", "box svelte-1e3mbn4");
|
643 |
+
},
|
644 |
+
m(target, anchor) {
|
645 |
+
insert_hydration(target, div, anchor);
|
646 |
+
append_hydration(div, svg);
|
647 |
+
append_hydration(svg, path);
|
648 |
+
append_hydration(div, t0);
|
649 |
+
append_hydration(div, p);
|
650 |
+
append_hydration(p, t1);
|
651 |
+
},
|
652 |
+
p(ctx, [dirty]) {
|
653 |
+
if (dirty & /*output*/ 2 && svg_class_value !== (svg_class_value = "" + (null_to_empty(/*output*/ ctx[1] ? "model" : "no-model") + " svelte-1e3mbn4"))) {
|
654 |
+
attr(svg, "class", svg_class_value);
|
655 |
+
}
|
656 |
+
|
657 |
+
if (dirty & /*input*/ 1) set_data(t1, /*input*/ ctx[0]);
|
658 |
+
|
659 |
+
if (dirty & /*output*/ 2 && p_class_value !== (p_class_value = "chat " + (/*output*/ ctx[1] ? 'model-border' : 'no-model-border') + " svelte-1e3mbn4")) {
|
660 |
+
attr(p, "class", p_class_value);
|
661 |
+
}
|
662 |
+
},
|
663 |
+
i: noop,
|
664 |
+
o: noop,
|
665 |
+
d(detaching) {
|
666 |
+
if (detaching) detach(div);
|
667 |
+
}
|
668 |
+
};
|
669 |
+
}
|
670 |
+
|
671 |
+
function instance$3($$self, $$props, $$invalidate) {
|
672 |
+
let { input } = $$props;
|
673 |
+
let { output = false } = $$props;
|
674 |
+
|
675 |
+
$$self.$$set = $$props => {
|
676 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
677 |
+
if ('output' in $$props) $$invalidate(1, output = $$props.output);
|
678 |
+
};
|
679 |
+
|
680 |
+
return [input, output];
|
681 |
+
}
|
682 |
+
|
683 |
+
class AssistantBlock extends SvelteComponent {
|
684 |
+
constructor(options) {
|
685 |
+
super();
|
686 |
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, { input: 0, output: 1 }, add_css$3);
|
687 |
+
}
|
688 |
+
}
|
689 |
+
|
690 |
+
/* src/SystemBlock.svelte generated by Svelte v3.55.1 */
|
691 |
+
|
692 |
+
function add_css$2(target) {
|
693 |
+
append_styles(target, "svelte-18o0ab2", "p.svelte-18o0ab2{margin:0px}");
|
694 |
+
}
|
695 |
+
|
696 |
+
function create_fragment$2(ctx) {
|
697 |
+
let p;
|
698 |
+
let b;
|
699 |
+
let t0;
|
700 |
+
let t1;
|
701 |
+
let span;
|
702 |
+
let t2;
|
703 |
+
|
704 |
+
return {
|
705 |
+
c() {
|
706 |
+
p = element("p");
|
707 |
+
b = element("b");
|
708 |
+
t0 = text("System:");
|
709 |
+
t1 = space();
|
710 |
+
span = element("span");
|
711 |
+
t2 = text(/*input*/ ctx[0]);
|
712 |
+
this.h();
|
713 |
+
},
|
714 |
+
l(nodes) {
|
715 |
+
p = claim_element(nodes, "P", { class: true });
|
716 |
+
var p_nodes = children(p);
|
717 |
+
b = claim_element(p_nodes, "B", {});
|
718 |
+
var b_nodes = children(b);
|
719 |
+
t0 = claim_text(b_nodes, "System:");
|
720 |
+
b_nodes.forEach(detach);
|
721 |
+
t1 = claim_space(p_nodes);
|
722 |
+
span = claim_element(p_nodes, "SPAN", {});
|
723 |
+
var span_nodes = children(span);
|
724 |
+
t2 = claim_text(span_nodes, /*input*/ ctx[0]);
|
725 |
+
span_nodes.forEach(detach);
|
726 |
+
p_nodes.forEach(detach);
|
727 |
+
this.h();
|
728 |
+
},
|
729 |
+
h() {
|
730 |
+
attr(p, "class", "svelte-18o0ab2");
|
731 |
+
},
|
732 |
+
m(target, anchor) {
|
733 |
+
insert_hydration(target, p, anchor);
|
734 |
+
append_hydration(p, b);
|
735 |
+
append_hydration(b, t0);
|
736 |
+
append_hydration(p, t1);
|
737 |
+
append_hydration(p, span);
|
738 |
+
append_hydration(span, t2);
|
739 |
+
},
|
740 |
+
p(ctx, [dirty]) {
|
741 |
+
if (dirty & /*input*/ 1) set_data(t2, /*input*/ ctx[0]);
|
742 |
+
},
|
743 |
+
i: noop,
|
744 |
+
o: noop,
|
745 |
+
d(detaching) {
|
746 |
+
if (detaching) detach(p);
|
747 |
+
}
|
748 |
+
};
|
749 |
+
}
|
750 |
+
|
751 |
+
function instance$2($$self, $$props, $$invalidate) {
|
752 |
+
let { input } = $$props;
|
753 |
+
|
754 |
+
$$self.$$set = $$props => {
|
755 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
756 |
+
};
|
757 |
+
|
758 |
+
return [input];
|
759 |
+
}
|
760 |
+
|
761 |
+
class SystemBlock extends SvelteComponent {
|
762 |
+
constructor(options) {
|
763 |
+
super();
|
764 |
+
init(this, options, instance$2, create_fragment$2, safe_not_equal, { input: 0 }, add_css$2);
|
765 |
+
}
|
766 |
+
}
|
767 |
+
|
768 |
+
/* src/UserBlock.svelte generated by Svelte v3.55.1 */
|
769 |
+
|
770 |
+
function add_css$1(target) {
|
771 |
+
append_styles(target, "svelte-1lys9p1", ".box.svelte-1lys9p1.svelte-1lys9p1{margin-top:10px;margin-bottom:10px;display:flex;align-items:start}.box.svelte-1lys9p1 svg.svelte-1lys9p1{min-width:24px;width:24px;margin-right:10px;margin-top:7px;fill:var(--G3)}.chat.svelte-1lys9p1.svelte-1lys9p1{border:1px solid rgba(224, 224, 224, 1);border-radius:5px;margin:0px;padding:10px;overflow-wrap:anywhere}");
|
772 |
+
}
|
773 |
+
|
774 |
+
function create_fragment$1(ctx) {
|
775 |
+
let div;
|
776 |
+
let svg;
|
777 |
+
let path;
|
778 |
+
let t0;
|
779 |
+
let p;
|
780 |
+
let t1;
|
781 |
+
|
782 |
+
return {
|
783 |
+
c() {
|
784 |
+
div = element("div");
|
785 |
+
svg = svg_element("svg");
|
786 |
+
path = svg_element("path");
|
787 |
+
t0 = space();
|
788 |
+
p = element("p");
|
789 |
+
t1 = text(/*input*/ ctx[0]);
|
790 |
+
this.h();
|
791 |
+
},
|
792 |
+
l(nodes) {
|
793 |
+
div = claim_element(nodes, "DIV", { class: true });
|
794 |
+
var div_nodes = children(div);
|
795 |
+
svg = claim_svg_element(div_nodes, "svg", { xmlns: true, viewBox: true, class: true });
|
796 |
+
var svg_nodes = children(svg);
|
797 |
+
path = claim_svg_element(svg_nodes, "path", { d: true });
|
798 |
+
children(path).forEach(detach);
|
799 |
+
svg_nodes.forEach(detach);
|
800 |
+
t0 = claim_space(div_nodes);
|
801 |
+
p = claim_element(div_nodes, "P", { class: true });
|
802 |
+
var p_nodes = children(p);
|
803 |
+
t1 = claim_text(p_nodes, /*input*/ ctx[0]);
|
804 |
+
p_nodes.forEach(detach);
|
805 |
+
div_nodes.forEach(detach);
|
806 |
+
this.h();
|
807 |
+
},
|
808 |
+
h() {
|
809 |
+
attr(path, "d", "M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z");
|
810 |
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
811 |
+
attr(svg, "viewBox", "0 0 448 512");
|
812 |
+
attr(svg, "class", "svelte-1lys9p1");
|
813 |
+
attr(p, "class", "chat svelte-1lys9p1");
|
814 |
+
attr(div, "class", "box svelte-1lys9p1");
|
815 |
+
},
|
816 |
+
m(target, anchor) {
|
817 |
+
insert_hydration(target, div, anchor);
|
818 |
+
append_hydration(div, svg);
|
819 |
+
append_hydration(svg, path);
|
820 |
+
append_hydration(div, t0);
|
821 |
+
append_hydration(div, p);
|
822 |
+
append_hydration(p, t1);
|
823 |
+
},
|
824 |
+
p(ctx, [dirty]) {
|
825 |
+
if (dirty & /*input*/ 1) set_data(t1, /*input*/ ctx[0]);
|
826 |
+
},
|
827 |
+
i: noop,
|
828 |
+
o: noop,
|
829 |
+
d(detaching) {
|
830 |
+
if (detaching) detach(div);
|
831 |
+
}
|
832 |
+
};
|
833 |
+
}
|
834 |
+
|
835 |
+
function instance$1($$self, $$props, $$invalidate) {
|
836 |
+
let { input } = $$props;
|
837 |
+
|
838 |
+
$$self.$$set = $$props => {
|
839 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
840 |
+
};
|
841 |
+
|
842 |
+
return [input];
|
843 |
+
}
|
844 |
+
|
845 |
+
class UserBlock extends SvelteComponent {
|
846 |
+
constructor(options) {
|
847 |
+
super();
|
848 |
+
init(this, options, instance$1, create_fragment$1, safe_not_equal, { input: 0 }, add_css$1);
|
849 |
+
}
|
850 |
+
}
|
851 |
+
|
852 |
+
/* src/InstanceView.svelte generated by Svelte v3.55.1 */
|
853 |
+
|
854 |
+
function add_css(target) {
|
855 |
+
append_styles(target, "svelte-eoma5v", "#container.svelte-eoma5v{border:0.5px solid rgb(224, 224, 224);min-width:350px;border-radius:2px;padding:10px}.label.svelte-eoma5v{margin-right:5px;font-weight:700}p.svelte-eoma5v{margin:5px;overflow-wrap:anywhere}");
|
856 |
+
}
|
857 |
+
|
858 |
+
function get_each_context(ctx, list, i) {
|
859 |
+
const child_ctx = ctx.slice();
|
860 |
+
child_ctx[6] = list[i];
|
861 |
+
return child_ctx;
|
862 |
+
}
|
863 |
+
|
864 |
+
// (21:2) {#if entry[dataColumn]}
|
865 |
+
function create_if_block_2(ctx) {
|
866 |
+
let current_block_type_index;
|
867 |
+
let if_block;
|
868 |
+
let if_block_anchor;
|
869 |
+
let current;
|
870 |
+
const if_block_creators = [create_if_block_3, create_else_block];
|
871 |
+
const if_blocks = [];
|
872 |
+
|
873 |
+
function select_block_type(ctx, dirty) {
|
874 |
+
if (typeof /*entry*/ ctx[0][/*dataColumn*/ ctx[3]] === "string") return 0;
|
875 |
+
return 1;
|
876 |
+
}
|
877 |
+
|
878 |
+
current_block_type_index = select_block_type(ctx);
|
879 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
880 |
+
|
881 |
+
return {
|
882 |
+
c() {
|
883 |
+
if_block.c();
|
884 |
+
if_block_anchor = empty();
|
885 |
+
},
|
886 |
+
l(nodes) {
|
887 |
+
if_block.l(nodes);
|
888 |
+
if_block_anchor = empty();
|
889 |
+
},
|
890 |
+
m(target, anchor) {
|
891 |
+
if_blocks[current_block_type_index].m(target, anchor);
|
892 |
+
insert_hydration(target, if_block_anchor, anchor);
|
893 |
+
current = true;
|
894 |
+
},
|
895 |
+
p(ctx, dirty) {
|
896 |
+
let previous_block_index = current_block_type_index;
|
897 |
+
current_block_type_index = select_block_type(ctx);
|
898 |
+
|
899 |
+
if (current_block_type_index === previous_block_index) {
|
900 |
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
901 |
+
} else {
|
902 |
+
group_outros();
|
903 |
+
|
904 |
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
905 |
+
if_blocks[previous_block_index] = null;
|
906 |
+
});
|
907 |
+
|
908 |
+
check_outros();
|
909 |
+
if_block = if_blocks[current_block_type_index];
|
910 |
+
|
911 |
+
if (!if_block) {
|
912 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
913 |
+
if_block.c();
|
914 |
+
} else {
|
915 |
+
if_block.p(ctx, dirty);
|
916 |
+
}
|
917 |
+
|
918 |
+
transition_in(if_block, 1);
|
919 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
920 |
+
}
|
921 |
+
},
|
922 |
+
i(local) {
|
923 |
+
if (current) return;
|
924 |
+
transition_in(if_block);
|
925 |
+
current = true;
|
926 |
+
},
|
927 |
+
o(local) {
|
928 |
+
transition_out(if_block);
|
929 |
+
current = false;
|
930 |
+
},
|
931 |
+
d(detaching) {
|
932 |
+
if_blocks[current_block_type_index].d(detaching);
|
933 |
+
if (detaching) detach(if_block_anchor);
|
934 |
+
}
|
935 |
+
};
|
936 |
+
}
|
937 |
+
|
938 |
+
// (24:4) {:else}
|
939 |
+
function create_else_block(ctx) {
|
940 |
+
let each_1_anchor;
|
941 |
+
let current;
|
942 |
+
let each_value = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]];
|
943 |
+
let each_blocks = [];
|
944 |
+
|
945 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
946 |
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
947 |
+
}
|
948 |
+
|
949 |
+
const out = i => transition_out(each_blocks[i], 1, 1, () => {
|
950 |
+
each_blocks[i] = null;
|
951 |
+
});
|
952 |
+
|
953 |
+
return {
|
954 |
+
c() {
|
955 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
956 |
+
each_blocks[i].c();
|
957 |
+
}
|
958 |
+
|
959 |
+
each_1_anchor = empty();
|
960 |
+
},
|
961 |
+
l(nodes) {
|
962 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
963 |
+
each_blocks[i].l(nodes);
|
964 |
+
}
|
965 |
+
|
966 |
+
each_1_anchor = empty();
|
967 |
+
},
|
968 |
+
m(target, anchor) {
|
969 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
970 |
+
each_blocks[i].m(target, anchor);
|
971 |
+
}
|
972 |
+
|
973 |
+
insert_hydration(target, each_1_anchor, anchor);
|
974 |
+
current = true;
|
975 |
+
},
|
976 |
+
p(ctx, dirty) {
|
977 |
+
if (dirty & /*entry, dataColumn*/ 9) {
|
978 |
+
each_value = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]];
|
979 |
+
let i;
|
980 |
+
|
981 |
+
for (i = 0; i < each_value.length; i += 1) {
|
982 |
+
const child_ctx = get_each_context(ctx, each_value, i);
|
983 |
+
|
984 |
+
if (each_blocks[i]) {
|
985 |
+
each_blocks[i].p(child_ctx, dirty);
|
986 |
+
transition_in(each_blocks[i], 1);
|
987 |
+
} else {
|
988 |
+
each_blocks[i] = create_each_block(child_ctx);
|
989 |
+
each_blocks[i].c();
|
990 |
+
transition_in(each_blocks[i], 1);
|
991 |
+
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
992 |
+
}
|
993 |
+
}
|
994 |
+
|
995 |
+
group_outros();
|
996 |
+
|
997 |
+
for (i = each_value.length; i < each_blocks.length; i += 1) {
|
998 |
+
out(i);
|
999 |
+
}
|
1000 |
+
|
1001 |
+
check_outros();
|
1002 |
+
}
|
1003 |
+
},
|
1004 |
+
i(local) {
|
1005 |
+
if (current) return;
|
1006 |
+
|
1007 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
1008 |
+
transition_in(each_blocks[i]);
|
1009 |
+
}
|
1010 |
+
|
1011 |
+
current = true;
|
1012 |
+
},
|
1013 |
+
o(local) {
|
1014 |
+
each_blocks = each_blocks.filter(Boolean);
|
1015 |
+
|
1016 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
1017 |
+
transition_out(each_blocks[i]);
|
1018 |
+
}
|
1019 |
+
|
1020 |
+
current = false;
|
1021 |
+
},
|
1022 |
+
d(detaching) {
|
1023 |
+
destroy_each(each_blocks, detaching);
|
1024 |
+
if (detaching) detach(each_1_anchor);
|
1025 |
+
}
|
1026 |
+
};
|
1027 |
+
}
|
1028 |
+
|
1029 |
+
// (22:4) {#if typeof entry[dataColumn] === "string"}
|
1030 |
+
function create_if_block_3(ctx) {
|
1031 |
+
let userblock;
|
1032 |
+
let current;
|
1033 |
+
|
1034 |
+
userblock = new UserBlock({
|
1035 |
+
props: {
|
1036 |
+
input: /*entry*/ ctx[0][/*dataColumn*/ ctx[3]]
|
1037 |
+
}
|
1038 |
+
});
|
1039 |
+
|
1040 |
+
return {
|
1041 |
+
c() {
|
1042 |
+
create_component(userblock.$$.fragment);
|
1043 |
+
},
|
1044 |
+
l(nodes) {
|
1045 |
+
claim_component(userblock.$$.fragment, nodes);
|
1046 |
+
},
|
1047 |
+
m(target, anchor) {
|
1048 |
+
mount_component(userblock, target, anchor);
|
1049 |
+
current = true;
|
1050 |
+
},
|
1051 |
+
p(ctx, dirty) {
|
1052 |
+
const userblock_changes = {};
|
1053 |
+
if (dirty & /*entry, dataColumn*/ 9) userblock_changes.input = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]];
|
1054 |
+
userblock.$set(userblock_changes);
|
1055 |
+
},
|
1056 |
+
i(local) {
|
1057 |
+
if (current) return;
|
1058 |
+
transition_in(userblock.$$.fragment, local);
|
1059 |
+
current = true;
|
1060 |
+
},
|
1061 |
+
o(local) {
|
1062 |
+
transition_out(userblock.$$.fragment, local);
|
1063 |
+
current = false;
|
1064 |
+
},
|
1065 |
+
d(detaching) {
|
1066 |
+
destroy_component(userblock, detaching);
|
1067 |
+
}
|
1068 |
+
};
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
// (30:42)
|
1072 |
+
function create_if_block_6(ctx) {
|
1073 |
+
let userblock;
|
1074 |
+
let current;
|
1075 |
+
|
1076 |
+
userblock = new UserBlock({
|
1077 |
+
props: { input: /*item*/ ctx[6]["content"] }
|
1078 |
+
});
|
1079 |
+
|
1080 |
+
return {
|
1081 |
+
c() {
|
1082 |
+
create_component(userblock.$$.fragment);
|
1083 |
+
},
|
1084 |
+
l(nodes) {
|
1085 |
+
claim_component(userblock.$$.fragment, nodes);
|
1086 |
+
},
|
1087 |
+
m(target, anchor) {
|
1088 |
+
mount_component(userblock, target, anchor);
|
1089 |
+
current = true;
|
1090 |
+
},
|
1091 |
+
p(ctx, dirty) {
|
1092 |
+
const userblock_changes = {};
|
1093 |
+
if (dirty & /*entry, dataColumn*/ 9) userblock_changes.input = /*item*/ ctx[6]["content"];
|
1094 |
+
userblock.$set(userblock_changes);
|
1095 |
+
},
|
1096 |
+
i(local) {
|
1097 |
+
if (current) return;
|
1098 |
+
transition_in(userblock.$$.fragment, local);
|
1099 |
+
current = true;
|
1100 |
+
},
|
1101 |
+
o(local) {
|
1102 |
+
transition_out(userblock.$$.fragment, local);
|
1103 |
+
current = false;
|
1104 |
+
},
|
1105 |
+
d(detaching) {
|
1106 |
+
destroy_component(userblock, detaching);
|
1107 |
+
}
|
1108 |
+
};
|
1109 |
+
}
|
1110 |
+
|
1111 |
+
// (28:47)
|
1112 |
+
function create_if_block_5(ctx) {
|
1113 |
+
let assistantblock;
|
1114 |
+
let current;
|
1115 |
+
|
1116 |
+
assistantblock = new AssistantBlock({
|
1117 |
+
props: { input: /*item*/ ctx[6]["content"] }
|
1118 |
+
});
|
1119 |
+
|
1120 |
+
return {
|
1121 |
+
c() {
|
1122 |
+
create_component(assistantblock.$$.fragment);
|
1123 |
+
},
|
1124 |
+
l(nodes) {
|
1125 |
+
claim_component(assistantblock.$$.fragment, nodes);
|
1126 |
+
},
|
1127 |
+
m(target, anchor) {
|
1128 |
+
mount_component(assistantblock, target, anchor);
|
1129 |
+
current = true;
|
1130 |
+
},
|
1131 |
+
p(ctx, dirty) {
|
1132 |
+
const assistantblock_changes = {};
|
1133 |
+
if (dirty & /*entry, dataColumn*/ 9) assistantblock_changes.input = /*item*/ ctx[6]["content"];
|
1134 |
+
assistantblock.$set(assistantblock_changes);
|
1135 |
+
},
|
1136 |
+
i(local) {
|
1137 |
+
if (current) return;
|
1138 |
+
transition_in(assistantblock.$$.fragment, local);
|
1139 |
+
current = true;
|
1140 |
+
},
|
1141 |
+
o(local) {
|
1142 |
+
transition_out(assistantblock.$$.fragment, local);
|
1143 |
+
current = false;
|
1144 |
+
},
|
1145 |
+
d(detaching) {
|
1146 |
+
destroy_component(assistantblock, detaching);
|
1147 |
+
}
|
1148 |
+
};
|
1149 |
+
}
|
1150 |
+
|
1151 |
+
// (26:8) {#if item["role"] === "system"}
|
1152 |
+
function create_if_block_4(ctx) {
|
1153 |
+
let systemblock;
|
1154 |
+
let current;
|
1155 |
+
|
1156 |
+
systemblock = new SystemBlock({
|
1157 |
+
props: { input: /*item*/ ctx[6]["content"] }
|
1158 |
+
});
|
1159 |
+
|
1160 |
+
return {
|
1161 |
+
c() {
|
1162 |
+
create_component(systemblock.$$.fragment);
|
1163 |
+
},
|
1164 |
+
l(nodes) {
|
1165 |
+
claim_component(systemblock.$$.fragment, nodes);
|
1166 |
+
},
|
1167 |
+
m(target, anchor) {
|
1168 |
+
mount_component(systemblock, target, anchor);
|
1169 |
+
current = true;
|
1170 |
+
},
|
1171 |
+
p(ctx, dirty) {
|
1172 |
+
const systemblock_changes = {};
|
1173 |
+
if (dirty & /*entry, dataColumn*/ 9) systemblock_changes.input = /*item*/ ctx[6]["content"];
|
1174 |
+
systemblock.$set(systemblock_changes);
|
1175 |
+
},
|
1176 |
+
i(local) {
|
1177 |
+
if (current) return;
|
1178 |
+
transition_in(systemblock.$$.fragment, local);
|
1179 |
+
current = true;
|
1180 |
+
},
|
1181 |
+
o(local) {
|
1182 |
+
transition_out(systemblock.$$.fragment, local);
|
1183 |
+
current = false;
|
1184 |
+
},
|
1185 |
+
d(detaching) {
|
1186 |
+
destroy_component(systemblock, detaching);
|
1187 |
+
}
|
1188 |
+
};
|
1189 |
+
}
|
1190 |
+
|
1191 |
+
// (25:6) {#each entry[dataColumn] as item}
|
1192 |
+
function create_each_block(ctx) {
|
1193 |
+
let current_block_type_index;
|
1194 |
+
let if_block;
|
1195 |
+
let if_block_anchor;
|
1196 |
+
let current;
|
1197 |
+
const if_block_creators = [create_if_block_4, create_if_block_5, create_if_block_6];
|
1198 |
+
const if_blocks = [];
|
1199 |
+
|
1200 |
+
function select_block_type_1(ctx, dirty) {
|
1201 |
+
if (/*item*/ ctx[6]["role"] === "system") return 0;
|
1202 |
+
if (/*item*/ ctx[6]["role"] === "assistant") return 1;
|
1203 |
+
if (/*item*/ ctx[6]["role"] === "user") return 2;
|
1204 |
+
return -1;
|
1205 |
+
}
|
1206 |
+
|
1207 |
+
if (~(current_block_type_index = select_block_type_1(ctx))) {
|
1208 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
1209 |
+
}
|
1210 |
+
|
1211 |
+
return {
|
1212 |
+
c() {
|
1213 |
+
if (if_block) if_block.c();
|
1214 |
+
if_block_anchor = empty();
|
1215 |
+
},
|
1216 |
+
l(nodes) {
|
1217 |
+
if (if_block) if_block.l(nodes);
|
1218 |
+
if_block_anchor = empty();
|
1219 |
+
},
|
1220 |
+
m(target, anchor) {
|
1221 |
+
if (~current_block_type_index) {
|
1222 |
+
if_blocks[current_block_type_index].m(target, anchor);
|
1223 |
+
}
|
1224 |
+
|
1225 |
+
insert_hydration(target, if_block_anchor, anchor);
|
1226 |
+
current = true;
|
1227 |
+
},
|
1228 |
+
p(ctx, dirty) {
|
1229 |
+
let previous_block_index = current_block_type_index;
|
1230 |
+
current_block_type_index = select_block_type_1(ctx);
|
1231 |
+
|
1232 |
+
if (current_block_type_index === previous_block_index) {
|
1233 |
+
if (~current_block_type_index) {
|
1234 |
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
1235 |
+
}
|
1236 |
+
} else {
|
1237 |
+
if (if_block) {
|
1238 |
+
group_outros();
|
1239 |
+
|
1240 |
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
1241 |
+
if_blocks[previous_block_index] = null;
|
1242 |
+
});
|
1243 |
+
|
1244 |
+
check_outros();
|
1245 |
+
}
|
1246 |
+
|
1247 |
+
if (~current_block_type_index) {
|
1248 |
+
if_block = if_blocks[current_block_type_index];
|
1249 |
+
|
1250 |
+
if (!if_block) {
|
1251 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
1252 |
+
if_block.c();
|
1253 |
+
} else {
|
1254 |
+
if_block.p(ctx, dirty);
|
1255 |
+
}
|
1256 |
+
|
1257 |
+
transition_in(if_block, 1);
|
1258 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
1259 |
+
} else {
|
1260 |
+
if_block = null;
|
1261 |
+
}
|
1262 |
+
}
|
1263 |
+
},
|
1264 |
+
i(local) {
|
1265 |
+
if (current) return;
|
1266 |
+
transition_in(if_block);
|
1267 |
+
current = true;
|
1268 |
+
},
|
1269 |
+
o(local) {
|
1270 |
+
transition_out(if_block);
|
1271 |
+
current = false;
|
1272 |
+
},
|
1273 |
+
d(detaching) {
|
1274 |
+
if (~current_block_type_index) {
|
1275 |
+
if_blocks[current_block_type_index].d(detaching);
|
1276 |
+
}
|
1277 |
+
|
1278 |
+
if (detaching) detach(if_block_anchor);
|
1279 |
+
}
|
1280 |
+
};
|
1281 |
+
}
|
1282 |
+
|
1283 |
+
// (36:2) {#if entry[modelColumn]}
|
1284 |
+
function create_if_block_1(ctx) {
|
1285 |
+
let assistantblock;
|
1286 |
+
let current;
|
1287 |
+
|
1288 |
+
assistantblock = new AssistantBlock({
|
1289 |
+
props: {
|
1290 |
+
input: /*entry*/ ctx[0][/*modelColumn*/ ctx[1]],
|
1291 |
+
output: true
|
1292 |
+
}
|
1293 |
+
});
|
1294 |
+
|
1295 |
+
return {
|
1296 |
+
c() {
|
1297 |
+
create_component(assistantblock.$$.fragment);
|
1298 |
+
},
|
1299 |
+
l(nodes) {
|
1300 |
+
claim_component(assistantblock.$$.fragment, nodes);
|
1301 |
+
},
|
1302 |
+
m(target, anchor) {
|
1303 |
+
mount_component(assistantblock, target, anchor);
|
1304 |
+
current = true;
|
1305 |
+
},
|
1306 |
+
p(ctx, dirty) {
|
1307 |
+
const assistantblock_changes = {};
|
1308 |
+
if (dirty & /*entry, modelColumn*/ 3) assistantblock_changes.input = /*entry*/ ctx[0][/*modelColumn*/ ctx[1]];
|
1309 |
+
assistantblock.$set(assistantblock_changes);
|
1310 |
+
},
|
1311 |
+
i(local) {
|
1312 |
+
if (current) return;
|
1313 |
+
transition_in(assistantblock.$$.fragment, local);
|
1314 |
+
current = true;
|
1315 |
+
},
|
1316 |
+
o(local) {
|
1317 |
+
transition_out(assistantblock.$$.fragment, local);
|
1318 |
+
current = false;
|
1319 |
+
},
|
1320 |
+
d(detaching) {
|
1321 |
+
destroy_component(assistantblock, detaching);
|
1322 |
+
}
|
1323 |
+
};
|
1324 |
+
}
|
1325 |
+
|
1326 |
+
// (39:2) {#if entry[labelColumn]}
|
1327 |
+
function create_if_block(ctx) {
|
1328 |
+
let p;
|
1329 |
+
let span;
|
1330 |
+
let t0;
|
1331 |
+
let t1;
|
1332 |
+
let t2_value = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] + "";
|
1333 |
+
let t2;
|
1334 |
+
|
1335 |
+
return {
|
1336 |
+
c() {
|
1337 |
+
p = element("p");
|
1338 |
+
span = element("span");
|
1339 |
+
t0 = text("Expected:");
|
1340 |
+
t1 = space();
|
1341 |
+
t2 = text(t2_value);
|
1342 |
+
this.h();
|
1343 |
+
},
|
1344 |
+
l(nodes) {
|
1345 |
+
p = claim_element(nodes, "P", { class: true });
|
1346 |
+
var p_nodes = children(p);
|
1347 |
+
span = claim_element(p_nodes, "SPAN", { class: true });
|
1348 |
+
var span_nodes = children(span);
|
1349 |
+
t0 = claim_text(span_nodes, "Expected:");
|
1350 |
+
span_nodes.forEach(detach);
|
1351 |
+
t1 = claim_space(p_nodes);
|
1352 |
+
t2 = claim_text(p_nodes, t2_value);
|
1353 |
+
p_nodes.forEach(detach);
|
1354 |
+
this.h();
|
1355 |
+
},
|
1356 |
+
h() {
|
1357 |
+
attr(span, "class", "label svelte-eoma5v");
|
1358 |
+
attr(p, "class", "svelte-eoma5v");
|
1359 |
+
},
|
1360 |
+
m(target, anchor) {
|
1361 |
+
insert_hydration(target, p, anchor);
|
1362 |
+
append_hydration(p, span);
|
1363 |
+
append_hydration(span, t0);
|
1364 |
+
append_hydration(p, t1);
|
1365 |
+
append_hydration(p, t2);
|
1366 |
+
},
|
1367 |
+
p(ctx, dirty) {
|
1368 |
+
if (dirty & /*entry, labelColumn*/ 5 && t2_value !== (t2_value = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] + "")) set_data(t2, t2_value);
|
1369 |
+
},
|
1370 |
+
d(detaching) {
|
1371 |
+
if (detaching) detach(p);
|
1372 |
+
}
|
1373 |
+
};
|
1374 |
+
}
|
1375 |
+
|
1376 |
+
function create_fragment(ctx) {
|
1377 |
+
let div;
|
1378 |
+
let t0;
|
1379 |
+
let t1;
|
1380 |
+
let current;
|
1381 |
+
let if_block0 = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]] && create_if_block_2(ctx);
|
1382 |
+
let if_block1 = /*entry*/ ctx[0][/*modelColumn*/ ctx[1]] && create_if_block_1(ctx);
|
1383 |
+
let if_block2 = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] && create_if_block(ctx);
|
1384 |
+
|
1385 |
+
return {
|
1386 |
+
c() {
|
1387 |
+
div = element("div");
|
1388 |
+
if (if_block0) if_block0.c();
|
1389 |
+
t0 = space();
|
1390 |
+
if (if_block1) if_block1.c();
|
1391 |
+
t1 = space();
|
1392 |
+
if (if_block2) if_block2.c();
|
1393 |
+
this.h();
|
1394 |
+
},
|
1395 |
+
l(nodes) {
|
1396 |
+
div = claim_element(nodes, "DIV", { id: true, class: true });
|
1397 |
+
var div_nodes = children(div);
|
1398 |
+
if (if_block0) if_block0.l(div_nodes);
|
1399 |
+
t0 = claim_space(div_nodes);
|
1400 |
+
if (if_block1) if_block1.l(div_nodes);
|
1401 |
+
t1 = claim_space(div_nodes);
|
1402 |
+
if (if_block2) if_block2.l(div_nodes);
|
1403 |
+
div_nodes.forEach(detach);
|
1404 |
+
this.h();
|
1405 |
+
},
|
1406 |
+
h() {
|
1407 |
+
attr(div, "id", "container");
|
1408 |
+
attr(div, "class", "svelte-eoma5v");
|
1409 |
+
},
|
1410 |
+
m(target, anchor) {
|
1411 |
+
insert_hydration(target, div, anchor);
|
1412 |
+
if (if_block0) if_block0.m(div, null);
|
1413 |
+
append_hydration(div, t0);
|
1414 |
+
if (if_block1) if_block1.m(div, null);
|
1415 |
+
append_hydration(div, t1);
|
1416 |
+
if (if_block2) if_block2.m(div, null);
|
1417 |
+
current = true;
|
1418 |
+
},
|
1419 |
+
p(ctx, [dirty]) {
|
1420 |
+
if (/*entry*/ ctx[0][/*dataColumn*/ ctx[3]]) {
|
1421 |
+
if (if_block0) {
|
1422 |
+
if_block0.p(ctx, dirty);
|
1423 |
+
|
1424 |
+
if (dirty & /*entry, dataColumn*/ 9) {
|
1425 |
+
transition_in(if_block0, 1);
|
1426 |
+
}
|
1427 |
+
} else {
|
1428 |
+
if_block0 = create_if_block_2(ctx);
|
1429 |
+
if_block0.c();
|
1430 |
+
transition_in(if_block0, 1);
|
1431 |
+
if_block0.m(div, t0);
|
1432 |
+
}
|
1433 |
+
} else if (if_block0) {
|
1434 |
+
group_outros();
|
1435 |
+
|
1436 |
+
transition_out(if_block0, 1, 1, () => {
|
1437 |
+
if_block0 = null;
|
1438 |
+
});
|
1439 |
+
|
1440 |
+
check_outros();
|
1441 |
+
}
|
1442 |
+
|
1443 |
+
if (/*entry*/ ctx[0][/*modelColumn*/ ctx[1]]) {
|
1444 |
+
if (if_block1) {
|
1445 |
+
if_block1.p(ctx, dirty);
|
1446 |
+
|
1447 |
+
if (dirty & /*entry, modelColumn*/ 3) {
|
1448 |
+
transition_in(if_block1, 1);
|
1449 |
+
}
|
1450 |
+
} else {
|
1451 |
+
if_block1 = create_if_block_1(ctx);
|
1452 |
+
if_block1.c();
|
1453 |
+
transition_in(if_block1, 1);
|
1454 |
+
if_block1.m(div, t1);
|
1455 |
+
}
|
1456 |
+
} else if (if_block1) {
|
1457 |
+
group_outros();
|
1458 |
+
|
1459 |
+
transition_out(if_block1, 1, 1, () => {
|
1460 |
+
if_block1 = null;
|
1461 |
+
});
|
1462 |
+
|
1463 |
+
check_outros();
|
1464 |
+
}
|
1465 |
+
|
1466 |
+
if (/*entry*/ ctx[0][/*labelColumn*/ ctx[2]]) {
|
1467 |
+
if (if_block2) {
|
1468 |
+
if_block2.p(ctx, dirty);
|
1469 |
+
} else {
|
1470 |
+
if_block2 = create_if_block(ctx);
|
1471 |
+
if_block2.c();
|
1472 |
+
if_block2.m(div, null);
|
1473 |
+
}
|
1474 |
+
} else if (if_block2) {
|
1475 |
+
if_block2.d(1);
|
1476 |
+
if_block2 = null;
|
1477 |
+
}
|
1478 |
+
},
|
1479 |
+
i(local) {
|
1480 |
+
if (current) return;
|
1481 |
+
transition_in(if_block0);
|
1482 |
+
transition_in(if_block1);
|
1483 |
+
current = true;
|
1484 |
+
},
|
1485 |
+
o(local) {
|
1486 |
+
transition_out(if_block0);
|
1487 |
+
transition_out(if_block1);
|
1488 |
+
current = false;
|
1489 |
+
},
|
1490 |
+
d(detaching) {
|
1491 |
+
if (detaching) detach(div);
|
1492 |
+
if (if_block0) if_block0.d();
|
1493 |
+
if (if_block1) if_block1.d();
|
1494 |
+
if (if_block2) if_block2.d();
|
1495 |
+
}
|
1496 |
+
};
|
1497 |
+
}
|
1498 |
+
|
1499 |
+
function instance($$self, $$props, $$invalidate) {
|
1500 |
+
let { options } = $$props;
|
1501 |
+
let { entry } = $$props;
|
1502 |
+
let { modelColumn } = $$props;
|
1503 |
+
let { labelColumn } = $$props;
|
1504 |
+
let { dataColumn } = $$props;
|
1505 |
+
let { idColumn } = $$props;
|
1506 |
+
|
1507 |
+
$$self.$$set = $$props => {
|
1508 |
+
if ('options' in $$props) $$invalidate(4, options = $$props.options);
|
1509 |
+
if ('entry' in $$props) $$invalidate(0, entry = $$props.entry);
|
1510 |
+
if ('modelColumn' in $$props) $$invalidate(1, modelColumn = $$props.modelColumn);
|
1511 |
+
if ('labelColumn' in $$props) $$invalidate(2, labelColumn = $$props.labelColumn);
|
1512 |
+
if ('dataColumn' in $$props) $$invalidate(3, dataColumn = $$props.dataColumn);
|
1513 |
+
if ('idColumn' in $$props) $$invalidate(5, idColumn = $$props.idColumn);
|
1514 |
+
};
|
1515 |
+
|
1516 |
+
return [entry, modelColumn, labelColumn, dataColumn, options, idColumn];
|
1517 |
+
}
|
1518 |
+
|
1519 |
+
class InstanceView extends SvelteComponent {
|
1520 |
+
constructor(options) {
|
1521 |
+
super();
|
1522 |
+
|
1523 |
+
init(
|
1524 |
+
this,
|
1525 |
+
options,
|
1526 |
+
instance,
|
1527 |
+
create_fragment,
|
1528 |
+
safe_not_equal,
|
1529 |
+
{
|
1530 |
+
options: 4,
|
1531 |
+
entry: 0,
|
1532 |
+
modelColumn: 1,
|
1533 |
+
labelColumn: 2,
|
1534 |
+
dataColumn: 3,
|
1535 |
+
idColumn: 5
|
1536 |
+
},
|
1537 |
+
add_css
|
1538 |
+
);
|
1539 |
+
}
|
1540 |
+
}
|
1541 |
+
|
1542 |
+
function getInstance(
|
1543 |
+
div,
|
1544 |
+
viewOptions,
|
1545 |
+
entry,
|
1546 |
+
modelColumn,
|
1547 |
+
labelColumn,
|
1548 |
+
dataColumn,
|
1549 |
+
idColumn
|
1550 |
+
) {
|
1551 |
+
new InstanceView({
|
1552 |
+
target: div,
|
1553 |
+
props: {
|
1554 |
+
entry: entry,
|
1555 |
+
viewOptions: viewOptions,
|
1556 |
+
modelColumn: modelColumn,
|
1557 |
+
labelColumn: labelColumn,
|
1558 |
+
dataColumn: dataColumn,
|
1559 |
+
idColumn: idColumn,
|
1560 |
+
},
|
1561 |
+
hydrate: true,
|
1562 |
+
});
|
1563 |
+
}
|
1564 |
+
|
1565 |
+
// export function getOptions(div, setOptions) {
|
1566 |
+
// new OptionsView({
|
1567 |
+
// target: div,
|
1568 |
+
// props: {
|
1569 |
+
// setOptions,
|
1570 |
+
// },
|
1571 |
+
// });
|
1572 |
+
// }
|
1573 |
+
|
1574 |
+
export { getInstance };
|
evals/.zeno_cache_crossword/folders.pickle
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f6c279ba236427adf976566c3d1ba0c380fa755e4d85d5e52487df00b254d160
|
3 |
+
size 51
|
evals/.zeno_cache_crossword/reports.pickle
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:aa9c8d1b4b486cac0da6fcf8ffc061e142e5c33dc5006636d681ebe9505527b0
|
3 |
+
size 6586
|
evals/.zeno_cache_crossword/slices.pickle
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:193b14ae739ef894daaa36949b136aa07616fec6d1e623c250103dd93a9ba9f0
|
3 |
+
size 5264
|
evals/.zeno_cache_logic-statements/OUTPUTgpt-3_5-turbo.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e2d64320ff26ba332e8729fd38dec1ea5fd40b05117fbfa91af1063d3f21a5fb
|
3 |
+
size 14176
|
evals/.zeno_cache_logic-statements/OUTPUTgpt-4.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:42e4a7c700e49719075c965cdc376ec7977e769543510bc4f1ab8450eda45b96
|
3 |
+
size 14924
|
evals/.zeno_cache_logic-statements/POSTDISTILLcorrectgpt-3_5-turbo.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:457d65ffcf25212437285af67f005ebc643ad5c052895c70b831510bc94a4a1e
|
3 |
+
size 5475
|
evals/.zeno_cache_logic-statements/POSTDISTILLcorrectgpt-4.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:826d7978a5a140f576ef8a09baa5e215534619b403efd4186a54eb136a8be8c0
|
3 |
+
size 5467
|
evals/.zeno_cache_logic-statements/folders.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec0a6ccf9debf1c16781445c4b9106080d00478b0559469336db7c7b7b9711c8
|
3 |
+
size 5
|
evals/.zeno_cache_logic-statements/reports.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec0a6ccf9debf1c16781445c4b9106080d00478b0559469336db7c7b7b9711c8
|
3 |
+
size 5
|
evals/.zeno_cache_logic-statements/view.mjs
ADDED
@@ -0,0 +1,1574 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function noop() { }
|
2 |
+
function run(fn) {
|
3 |
+
return fn();
|
4 |
+
}
|
5 |
+
function blank_object() {
|
6 |
+
return Object.create(null);
|
7 |
+
}
|
8 |
+
function run_all(fns) {
|
9 |
+
fns.forEach(run);
|
10 |
+
}
|
11 |
+
function is_function(thing) {
|
12 |
+
return typeof thing === 'function';
|
13 |
+
}
|
14 |
+
function safe_not_equal(a, b) {
|
15 |
+
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
|
16 |
+
}
|
17 |
+
function is_empty(obj) {
|
18 |
+
return Object.keys(obj).length === 0;
|
19 |
+
}
|
20 |
+
function null_to_empty(value) {
|
21 |
+
return value == null ? '' : value;
|
22 |
+
}
|
23 |
+
|
24 |
+
// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM
|
25 |
+
// at the end of hydration without touching the remaining nodes.
|
26 |
+
let is_hydrating = false;
|
27 |
+
function start_hydrating() {
|
28 |
+
is_hydrating = true;
|
29 |
+
}
|
30 |
+
function end_hydrating() {
|
31 |
+
is_hydrating = false;
|
32 |
+
}
|
33 |
+
function upper_bound(low, high, key, value) {
|
34 |
+
// Return first index of value larger than input value in the range [low, high)
|
35 |
+
while (low < high) {
|
36 |
+
const mid = low + ((high - low) >> 1);
|
37 |
+
if (key(mid) <= value) {
|
38 |
+
low = mid + 1;
|
39 |
+
}
|
40 |
+
else {
|
41 |
+
high = mid;
|
42 |
+
}
|
43 |
+
}
|
44 |
+
return low;
|
45 |
+
}
|
46 |
+
function init_hydrate(target) {
|
47 |
+
if (target.hydrate_init)
|
48 |
+
return;
|
49 |
+
target.hydrate_init = true;
|
50 |
+
// We know that all children have claim_order values since the unclaimed have been detached if target is not <head>
|
51 |
+
let children = target.childNodes;
|
52 |
+
// If target is <head>, there may be children without claim_order
|
53 |
+
if (target.nodeName === 'HEAD') {
|
54 |
+
const myChildren = [];
|
55 |
+
for (let i = 0; i < children.length; i++) {
|
56 |
+
const node = children[i];
|
57 |
+
if (node.claim_order !== undefined) {
|
58 |
+
myChildren.push(node);
|
59 |
+
}
|
60 |
+
}
|
61 |
+
children = myChildren;
|
62 |
+
}
|
63 |
+
/*
|
64 |
+
* Reorder claimed children optimally.
|
65 |
+
* We can reorder claimed children optimally by finding the longest subsequence of
|
66 |
+
* nodes that are already claimed in order and only moving the rest. The longest
|
67 |
+
* subsequence of nodes that are claimed in order can be found by
|
68 |
+
* computing the longest increasing subsequence of .claim_order values.
|
69 |
+
*
|
70 |
+
* This algorithm is optimal in generating the least amount of reorder operations
|
71 |
+
* possible.
|
72 |
+
*
|
73 |
+
* Proof:
|
74 |
+
* We know that, given a set of reordering operations, the nodes that do not move
|
75 |
+
* always form an increasing subsequence, since they do not move among each other
|
76 |
+
* meaning that they must be already ordered among each other. Thus, the maximal
|
77 |
+
* set of nodes that do not move form a longest increasing subsequence.
|
78 |
+
*/
|
79 |
+
// Compute longest increasing subsequence
|
80 |
+
// m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j
|
81 |
+
const m = new Int32Array(children.length + 1);
|
82 |
+
// Predecessor indices + 1
|
83 |
+
const p = new Int32Array(children.length);
|
84 |
+
m[0] = -1;
|
85 |
+
let longest = 0;
|
86 |
+
for (let i = 0; i < children.length; i++) {
|
87 |
+
const current = children[i].claim_order;
|
88 |
+
// Find the largest subsequence length such that it ends in a value less than our current value
|
89 |
+
// upper_bound returns first greater value, so we subtract one
|
90 |
+
// with fast path for when we are on the current longest subsequence
|
91 |
+
const seqLen = ((longest > 0 && children[m[longest]].claim_order <= current) ? longest + 1 : upper_bound(1, longest, idx => children[m[idx]].claim_order, current)) - 1;
|
92 |
+
p[i] = m[seqLen] + 1;
|
93 |
+
const newLen = seqLen + 1;
|
94 |
+
// We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.
|
95 |
+
m[newLen] = i;
|
96 |
+
longest = Math.max(newLen, longest);
|
97 |
+
}
|
98 |
+
// The longest increasing subsequence of nodes (initially reversed)
|
99 |
+
const lis = [];
|
100 |
+
// The rest of the nodes, nodes that will be moved
|
101 |
+
const toMove = [];
|
102 |
+
let last = children.length - 1;
|
103 |
+
for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {
|
104 |
+
lis.push(children[cur - 1]);
|
105 |
+
for (; last >= cur; last--) {
|
106 |
+
toMove.push(children[last]);
|
107 |
+
}
|
108 |
+
last--;
|
109 |
+
}
|
110 |
+
for (; last >= 0; last--) {
|
111 |
+
toMove.push(children[last]);
|
112 |
+
}
|
113 |
+
lis.reverse();
|
114 |
+
// We sort the nodes being moved to guarantee that their insertion order matches the claim order
|
115 |
+
toMove.sort((a, b) => a.claim_order - b.claim_order);
|
116 |
+
// Finally, we move the nodes
|
117 |
+
for (let i = 0, j = 0; i < toMove.length; i++) {
|
118 |
+
while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {
|
119 |
+
j++;
|
120 |
+
}
|
121 |
+
const anchor = j < lis.length ? lis[j] : null;
|
122 |
+
target.insertBefore(toMove[i], anchor);
|
123 |
+
}
|
124 |
+
}
|
125 |
+
function append(target, node) {
|
126 |
+
target.appendChild(node);
|
127 |
+
}
|
128 |
+
function append_styles(target, style_sheet_id, styles) {
|
129 |
+
const append_styles_to = get_root_for_style(target);
|
130 |
+
if (!append_styles_to.getElementById(style_sheet_id)) {
|
131 |
+
const style = element('style');
|
132 |
+
style.id = style_sheet_id;
|
133 |
+
style.textContent = styles;
|
134 |
+
append_stylesheet(append_styles_to, style);
|
135 |
+
}
|
136 |
+
}
|
137 |
+
function get_root_for_style(node) {
|
138 |
+
if (!node)
|
139 |
+
return document;
|
140 |
+
const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;
|
141 |
+
if (root && root.host) {
|
142 |
+
return root;
|
143 |
+
}
|
144 |
+
return node.ownerDocument;
|
145 |
+
}
|
146 |
+
function append_stylesheet(node, style) {
|
147 |
+
append(node.head || node, style);
|
148 |
+
return style.sheet;
|
149 |
+
}
|
150 |
+
function append_hydration(target, node) {
|
151 |
+
if (is_hydrating) {
|
152 |
+
init_hydrate(target);
|
153 |
+
if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentNode !== target))) {
|
154 |
+
target.actual_end_child = target.firstChild;
|
155 |
+
}
|
156 |
+
// Skip nodes of undefined ordering
|
157 |
+
while ((target.actual_end_child !== null) && (target.actual_end_child.claim_order === undefined)) {
|
158 |
+
target.actual_end_child = target.actual_end_child.nextSibling;
|
159 |
+
}
|
160 |
+
if (node !== target.actual_end_child) {
|
161 |
+
// We only insert if the ordering of this node should be modified or the parent node is not target
|
162 |
+
if (node.claim_order !== undefined || node.parentNode !== target) {
|
163 |
+
target.insertBefore(node, target.actual_end_child);
|
164 |
+
}
|
165 |
+
}
|
166 |
+
else {
|
167 |
+
target.actual_end_child = node.nextSibling;
|
168 |
+
}
|
169 |
+
}
|
170 |
+
else if (node.parentNode !== target || node.nextSibling !== null) {
|
171 |
+
target.appendChild(node);
|
172 |
+
}
|
173 |
+
}
|
174 |
+
function insert_hydration(target, node, anchor) {
|
175 |
+
if (is_hydrating && !anchor) {
|
176 |
+
append_hydration(target, node);
|
177 |
+
}
|
178 |
+
else if (node.parentNode !== target || node.nextSibling != anchor) {
|
179 |
+
target.insertBefore(node, anchor || null);
|
180 |
+
}
|
181 |
+
}
|
182 |
+
function detach(node) {
|
183 |
+
if (node.parentNode) {
|
184 |
+
node.parentNode.removeChild(node);
|
185 |
+
}
|
186 |
+
}
|
187 |
+
function destroy_each(iterations, detaching) {
|
188 |
+
for (let i = 0; i < iterations.length; i += 1) {
|
189 |
+
if (iterations[i])
|
190 |
+
iterations[i].d(detaching);
|
191 |
+
}
|
192 |
+
}
|
193 |
+
function element(name) {
|
194 |
+
return document.createElement(name);
|
195 |
+
}
|
196 |
+
function svg_element(name) {
|
197 |
+
return document.createElementNS('http://www.w3.org/2000/svg', name);
|
198 |
+
}
|
199 |
+
function text(data) {
|
200 |
+
return document.createTextNode(data);
|
201 |
+
}
|
202 |
+
function space() {
|
203 |
+
return text(' ');
|
204 |
+
}
|
205 |
+
function empty() {
|
206 |
+
return text('');
|
207 |
+
}
|
208 |
+
function attr(node, attribute, value) {
|
209 |
+
if (value == null)
|
210 |
+
node.removeAttribute(attribute);
|
211 |
+
else if (node.getAttribute(attribute) !== value)
|
212 |
+
node.setAttribute(attribute, value);
|
213 |
+
}
|
214 |
+
function children(element) {
|
215 |
+
return Array.from(element.childNodes);
|
216 |
+
}
|
217 |
+
function init_claim_info(nodes) {
|
218 |
+
if (nodes.claim_info === undefined) {
|
219 |
+
nodes.claim_info = { last_index: 0, total_claimed: 0 };
|
220 |
+
}
|
221 |
+
}
|
222 |
+
function claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {
|
223 |
+
// Try to find nodes in an order such that we lengthen the longest increasing subsequence
|
224 |
+
init_claim_info(nodes);
|
225 |
+
const resultNode = (() => {
|
226 |
+
// We first try to find an element after the previous one
|
227 |
+
for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {
|
228 |
+
const node = nodes[i];
|
229 |
+
if (predicate(node)) {
|
230 |
+
const replacement = processNode(node);
|
231 |
+
if (replacement === undefined) {
|
232 |
+
nodes.splice(i, 1);
|
233 |
+
}
|
234 |
+
else {
|
235 |
+
nodes[i] = replacement;
|
236 |
+
}
|
237 |
+
if (!dontUpdateLastIndex) {
|
238 |
+
nodes.claim_info.last_index = i;
|
239 |
+
}
|
240 |
+
return node;
|
241 |
+
}
|
242 |
+
}
|
243 |
+
// Otherwise, we try to find one before
|
244 |
+
// We iterate in reverse so that we don't go too far back
|
245 |
+
for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {
|
246 |
+
const node = nodes[i];
|
247 |
+
if (predicate(node)) {
|
248 |
+
const replacement = processNode(node);
|
249 |
+
if (replacement === undefined) {
|
250 |
+
nodes.splice(i, 1);
|
251 |
+
}
|
252 |
+
else {
|
253 |
+
nodes[i] = replacement;
|
254 |
+
}
|
255 |
+
if (!dontUpdateLastIndex) {
|
256 |
+
nodes.claim_info.last_index = i;
|
257 |
+
}
|
258 |
+
else if (replacement === undefined) {
|
259 |
+
// Since we spliced before the last_index, we decrease it
|
260 |
+
nodes.claim_info.last_index--;
|
261 |
+
}
|
262 |
+
return node;
|
263 |
+
}
|
264 |
+
}
|
265 |
+
// If we can't find any matching node, we create a new one
|
266 |
+
return createNode();
|
267 |
+
})();
|
268 |
+
resultNode.claim_order = nodes.claim_info.total_claimed;
|
269 |
+
nodes.claim_info.total_claimed += 1;
|
270 |
+
return resultNode;
|
271 |
+
}
|
272 |
+
function claim_element_base(nodes, name, attributes, create_element) {
|
273 |
+
return claim_node(nodes, (node) => node.nodeName === name, (node) => {
|
274 |
+
const remove = [];
|
275 |
+
for (let j = 0; j < node.attributes.length; j++) {
|
276 |
+
const attribute = node.attributes[j];
|
277 |
+
if (!attributes[attribute.name]) {
|
278 |
+
remove.push(attribute.name);
|
279 |
+
}
|
280 |
+
}
|
281 |
+
remove.forEach(v => node.removeAttribute(v));
|
282 |
+
return undefined;
|
283 |
+
}, () => create_element(name));
|
284 |
+
}
|
285 |
+
function claim_element(nodes, name, attributes) {
|
286 |
+
return claim_element_base(nodes, name, attributes, element);
|
287 |
+
}
|
288 |
+
function claim_svg_element(nodes, name, attributes) {
|
289 |
+
return claim_element_base(nodes, name, attributes, svg_element);
|
290 |
+
}
|
291 |
+
function claim_text(nodes, data) {
|
292 |
+
return claim_node(nodes, (node) => node.nodeType === 3, (node) => {
|
293 |
+
const dataStr = '' + data;
|
294 |
+
if (node.data.startsWith(dataStr)) {
|
295 |
+
if (node.data.length !== dataStr.length) {
|
296 |
+
return node.splitText(dataStr.length);
|
297 |
+
}
|
298 |
+
}
|
299 |
+
else {
|
300 |
+
node.data = dataStr;
|
301 |
+
}
|
302 |
+
}, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements
|
303 |
+
);
|
304 |
+
}
|
305 |
+
function claim_space(nodes) {
|
306 |
+
return claim_text(nodes, ' ');
|
307 |
+
}
|
308 |
+
function set_data(text, data) {
|
309 |
+
data = '' + data;
|
310 |
+
if (text.wholeText !== data)
|
311 |
+
text.data = data;
|
312 |
+
}
|
313 |
+
|
314 |
+
let current_component;
|
315 |
+
function set_current_component(component) {
|
316 |
+
current_component = component;
|
317 |
+
}
|
318 |
+
|
319 |
+
const dirty_components = [];
|
320 |
+
const binding_callbacks = [];
|
321 |
+
const render_callbacks = [];
|
322 |
+
const flush_callbacks = [];
|
323 |
+
const resolved_promise = Promise.resolve();
|
324 |
+
let update_scheduled = false;
|
325 |
+
function schedule_update() {
|
326 |
+
if (!update_scheduled) {
|
327 |
+
update_scheduled = true;
|
328 |
+
resolved_promise.then(flush);
|
329 |
+
}
|
330 |
+
}
|
331 |
+
function add_render_callback(fn) {
|
332 |
+
render_callbacks.push(fn);
|
333 |
+
}
|
334 |
+
// flush() calls callbacks in this order:
|
335 |
+
// 1. All beforeUpdate callbacks, in order: parents before children
|
336 |
+
// 2. All bind:this callbacks, in reverse order: children before parents.
|
337 |
+
// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
|
338 |
+
// for afterUpdates called during the initial onMount, which are called in
|
339 |
+
// reverse order: children before parents.
|
340 |
+
// Since callbacks might update component values, which could trigger another
|
341 |
+
// call to flush(), the following steps guard against this:
|
342 |
+
// 1. During beforeUpdate, any updated components will be added to the
|
343 |
+
// dirty_components array and will cause a reentrant call to flush(). Because
|
344 |
+
// the flush index is kept outside the function, the reentrant call will pick
|
345 |
+
// up where the earlier call left off and go through all dirty components. The
|
346 |
+
// current_component value is saved and restored so that the reentrant call will
|
347 |
+
// not interfere with the "parent" flush() call.
|
348 |
+
// 2. bind:this callbacks cannot trigger new flush() calls.
|
349 |
+
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
350 |
+
// callback called a second time; the seen_callbacks set, outside the flush()
|
351 |
+
// function, guarantees this behavior.
|
352 |
+
const seen_callbacks = new Set();
|
353 |
+
let flushidx = 0; // Do *not* move this inside the flush() function
|
354 |
+
function flush() {
|
355 |
+
// Do not reenter flush while dirty components are updated, as this can
|
356 |
+
// result in an infinite loop. Instead, let the inner flush handle it.
|
357 |
+
// Reentrancy is ok afterwards for bindings etc.
|
358 |
+
if (flushidx !== 0) {
|
359 |
+
return;
|
360 |
+
}
|
361 |
+
const saved_component = current_component;
|
362 |
+
do {
|
363 |
+
// first, call beforeUpdate functions
|
364 |
+
// and update components
|
365 |
+
try {
|
366 |
+
while (flushidx < dirty_components.length) {
|
367 |
+
const component = dirty_components[flushidx];
|
368 |
+
flushidx++;
|
369 |
+
set_current_component(component);
|
370 |
+
update(component.$$);
|
371 |
+
}
|
372 |
+
}
|
373 |
+
catch (e) {
|
374 |
+
// reset dirty state to not end up in a deadlocked state and then rethrow
|
375 |
+
dirty_components.length = 0;
|
376 |
+
flushidx = 0;
|
377 |
+
throw e;
|
378 |
+
}
|
379 |
+
set_current_component(null);
|
380 |
+
dirty_components.length = 0;
|
381 |
+
flushidx = 0;
|
382 |
+
while (binding_callbacks.length)
|
383 |
+
binding_callbacks.pop()();
|
384 |
+
// then, once components are updated, call
|
385 |
+
// afterUpdate functions. This may cause
|
386 |
+
// subsequent updates...
|
387 |
+
for (let i = 0; i < render_callbacks.length; i += 1) {
|
388 |
+
const callback = render_callbacks[i];
|
389 |
+
if (!seen_callbacks.has(callback)) {
|
390 |
+
// ...so guard against infinite loops
|
391 |
+
seen_callbacks.add(callback);
|
392 |
+
callback();
|
393 |
+
}
|
394 |
+
}
|
395 |
+
render_callbacks.length = 0;
|
396 |
+
} while (dirty_components.length);
|
397 |
+
while (flush_callbacks.length) {
|
398 |
+
flush_callbacks.pop()();
|
399 |
+
}
|
400 |
+
update_scheduled = false;
|
401 |
+
seen_callbacks.clear();
|
402 |
+
set_current_component(saved_component);
|
403 |
+
}
|
404 |
+
function update($$) {
|
405 |
+
if ($$.fragment !== null) {
|
406 |
+
$$.update();
|
407 |
+
run_all($$.before_update);
|
408 |
+
const dirty = $$.dirty;
|
409 |
+
$$.dirty = [-1];
|
410 |
+
$$.fragment && $$.fragment.p($$.ctx, dirty);
|
411 |
+
$$.after_update.forEach(add_render_callback);
|
412 |
+
}
|
413 |
+
}
|
414 |
+
const outroing = new Set();
|
415 |
+
let outros;
|
416 |
+
function group_outros() {
|
417 |
+
outros = {
|
418 |
+
r: 0,
|
419 |
+
c: [],
|
420 |
+
p: outros // parent group
|
421 |
+
};
|
422 |
+
}
|
423 |
+
function check_outros() {
|
424 |
+
if (!outros.r) {
|
425 |
+
run_all(outros.c);
|
426 |
+
}
|
427 |
+
outros = outros.p;
|
428 |
+
}
|
429 |
+
function transition_in(block, local) {
|
430 |
+
if (block && block.i) {
|
431 |
+
outroing.delete(block);
|
432 |
+
block.i(local);
|
433 |
+
}
|
434 |
+
}
|
435 |
+
function transition_out(block, local, detach, callback) {
|
436 |
+
if (block && block.o) {
|
437 |
+
if (outroing.has(block))
|
438 |
+
return;
|
439 |
+
outroing.add(block);
|
440 |
+
outros.c.push(() => {
|
441 |
+
outroing.delete(block);
|
442 |
+
if (callback) {
|
443 |
+
if (detach)
|
444 |
+
block.d(1);
|
445 |
+
callback();
|
446 |
+
}
|
447 |
+
});
|
448 |
+
block.o(local);
|
449 |
+
}
|
450 |
+
else if (callback) {
|
451 |
+
callback();
|
452 |
+
}
|
453 |
+
}
|
454 |
+
function create_component(block) {
|
455 |
+
block && block.c();
|
456 |
+
}
|
457 |
+
function claim_component(block, parent_nodes) {
|
458 |
+
block && block.l(parent_nodes);
|
459 |
+
}
|
460 |
+
function mount_component(component, target, anchor, customElement) {
|
461 |
+
const { fragment, after_update } = component.$$;
|
462 |
+
fragment && fragment.m(target, anchor);
|
463 |
+
if (!customElement) {
|
464 |
+
// onMount happens before the initial afterUpdate
|
465 |
+
add_render_callback(() => {
|
466 |
+
const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);
|
467 |
+
// if the component was destroyed immediately
|
468 |
+
// it will update the `$$.on_destroy` reference to `null`.
|
469 |
+
// the destructured on_destroy may still reference to the old array
|
470 |
+
if (component.$$.on_destroy) {
|
471 |
+
component.$$.on_destroy.push(...new_on_destroy);
|
472 |
+
}
|
473 |
+
else {
|
474 |
+
// Edge case - component was destroyed immediately,
|
475 |
+
// most likely as a result of a binding initialising
|
476 |
+
run_all(new_on_destroy);
|
477 |
+
}
|
478 |
+
component.$$.on_mount = [];
|
479 |
+
});
|
480 |
+
}
|
481 |
+
after_update.forEach(add_render_callback);
|
482 |
+
}
|
483 |
+
function destroy_component(component, detaching) {
|
484 |
+
const $$ = component.$$;
|
485 |
+
if ($$.fragment !== null) {
|
486 |
+
run_all($$.on_destroy);
|
487 |
+
$$.fragment && $$.fragment.d(detaching);
|
488 |
+
// TODO null out other refs, including component.$$ (but need to
|
489 |
+
// preserve final state?)
|
490 |
+
$$.on_destroy = $$.fragment = null;
|
491 |
+
$$.ctx = [];
|
492 |
+
}
|
493 |
+
}
|
494 |
+
function make_dirty(component, i) {
|
495 |
+
if (component.$$.dirty[0] === -1) {
|
496 |
+
dirty_components.push(component);
|
497 |
+
schedule_update();
|
498 |
+
component.$$.dirty.fill(0);
|
499 |
+
}
|
500 |
+
component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
|
501 |
+
}
|
502 |
+
function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
|
503 |
+
const parent_component = current_component;
|
504 |
+
set_current_component(component);
|
505 |
+
const $$ = component.$$ = {
|
506 |
+
fragment: null,
|
507 |
+
ctx: [],
|
508 |
+
// state
|
509 |
+
props,
|
510 |
+
update: noop,
|
511 |
+
not_equal,
|
512 |
+
bound: blank_object(),
|
513 |
+
// lifecycle
|
514 |
+
on_mount: [],
|
515 |
+
on_destroy: [],
|
516 |
+
on_disconnect: [],
|
517 |
+
before_update: [],
|
518 |
+
after_update: [],
|
519 |
+
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
|
520 |
+
// everything else
|
521 |
+
callbacks: blank_object(),
|
522 |
+
dirty,
|
523 |
+
skip_bound: false,
|
524 |
+
root: options.target || parent_component.$$.root
|
525 |
+
};
|
526 |
+
append_styles && append_styles($$.root);
|
527 |
+
let ready = false;
|
528 |
+
$$.ctx = instance
|
529 |
+
? instance(component, options.props || {}, (i, ret, ...rest) => {
|
530 |
+
const value = rest.length ? rest[0] : ret;
|
531 |
+
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
532 |
+
if (!$$.skip_bound && $$.bound[i])
|
533 |
+
$$.bound[i](value);
|
534 |
+
if (ready)
|
535 |
+
make_dirty(component, i);
|
536 |
+
}
|
537 |
+
return ret;
|
538 |
+
})
|
539 |
+
: [];
|
540 |
+
$$.update();
|
541 |
+
ready = true;
|
542 |
+
run_all($$.before_update);
|
543 |
+
// `false` as a special case of no DOM component
|
544 |
+
$$.fragment = create_fragment ? create_fragment($$.ctx) : false;
|
545 |
+
if (options.target) {
|
546 |
+
if (options.hydrate) {
|
547 |
+
start_hydrating();
|
548 |
+
const nodes = children(options.target);
|
549 |
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
550 |
+
$$.fragment && $$.fragment.l(nodes);
|
551 |
+
nodes.forEach(detach);
|
552 |
+
}
|
553 |
+
else {
|
554 |
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
555 |
+
$$.fragment && $$.fragment.c();
|
556 |
+
}
|
557 |
+
if (options.intro)
|
558 |
+
transition_in(component.$$.fragment);
|
559 |
+
mount_component(component, options.target, options.anchor, options.customElement);
|
560 |
+
end_hydrating();
|
561 |
+
flush();
|
562 |
+
}
|
563 |
+
set_current_component(parent_component);
|
564 |
+
}
|
565 |
+
/**
|
566 |
+
* Base class for Svelte components. Used when dev=false.
|
567 |
+
*/
|
568 |
+
class SvelteComponent {
|
569 |
+
$destroy() {
|
570 |
+
destroy_component(this, 1);
|
571 |
+
this.$destroy = noop;
|
572 |
+
}
|
573 |
+
$on(type, callback) {
|
574 |
+
if (!is_function(callback)) {
|
575 |
+
return noop;
|
576 |
+
}
|
577 |
+
const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
|
578 |
+
callbacks.push(callback);
|
579 |
+
return () => {
|
580 |
+
const index = callbacks.indexOf(callback);
|
581 |
+
if (index !== -1)
|
582 |
+
callbacks.splice(index, 1);
|
583 |
+
};
|
584 |
+
}
|
585 |
+
$set($$props) {
|
586 |
+
if (this.$$set && !is_empty($$props)) {
|
587 |
+
this.$$.skip_bound = true;
|
588 |
+
this.$$set($$props);
|
589 |
+
this.$$.skip_bound = false;
|
590 |
+
}
|
591 |
+
}
|
592 |
+
}
|
593 |
+
|
594 |
+
/* src/AssistantBlock.svelte generated by Svelte v3.55.1 */
|
595 |
+
|
596 |
+
function add_css$3(target) {
|
597 |
+
append_styles(target, "svelte-1e3mbn4", ".model.svelte-1e3mbn4.svelte-1e3mbn4{fill:var(--logo)}.no-model.svelte-1e3mbn4.svelte-1e3mbn4{fill:var(--G3)}.model-border.svelte-1e3mbn4.svelte-1e3mbn4{border:1px solid var(--logo)}.no-model-border.svelte-1e3mbn4.svelte-1e3mbn4{border:1px solid rgba(224, 224, 224, 1)}.box.svelte-1e3mbn4.svelte-1e3mbn4{margin-top:10px;margin-bottom:10px;display:flex;align-items:start}.box.svelte-1e3mbn4 svg.svelte-1e3mbn4{min-width:24px;width:24px;margin-right:10px;margin-top:7px}.chat.svelte-1e3mbn4.svelte-1e3mbn4{border-radius:5px;margin:0px;padding:10px;overflow-wrap:anywhere}");
|
598 |
+
}
|
599 |
+
|
600 |
+
function create_fragment$3(ctx) {
|
601 |
+
let div;
|
602 |
+
let svg;
|
603 |
+
let path;
|
604 |
+
let svg_class_value;
|
605 |
+
let t0;
|
606 |
+
let p;
|
607 |
+
let t1;
|
608 |
+
let p_class_value;
|
609 |
+
|
610 |
+
return {
|
611 |
+
c() {
|
612 |
+
div = element("div");
|
613 |
+
svg = svg_element("svg");
|
614 |
+
path = svg_element("path");
|
615 |
+
t0 = space();
|
616 |
+
p = element("p");
|
617 |
+
t1 = text(/*input*/ ctx[0]);
|
618 |
+
this.h();
|
619 |
+
},
|
620 |
+
l(nodes) {
|
621 |
+
div = claim_element(nodes, "DIV", { class: true });
|
622 |
+
var div_nodes = children(div);
|
623 |
+
svg = claim_svg_element(div_nodes, "svg", { xmlns: true, viewBox: true, class: true });
|
624 |
+
var svg_nodes = children(svg);
|
625 |
+
path = claim_svg_element(svg_nodes, "path", { d: true });
|
626 |
+
children(path).forEach(detach);
|
627 |
+
svg_nodes.forEach(detach);
|
628 |
+
t0 = claim_space(div_nodes);
|
629 |
+
p = claim_element(div_nodes, "P", { class: true });
|
630 |
+
var p_nodes = children(p);
|
631 |
+
t1 = claim_text(p_nodes, /*input*/ ctx[0]);
|
632 |
+
p_nodes.forEach(detach);
|
633 |
+
div_nodes.forEach(detach);
|
634 |
+
this.h();
|
635 |
+
},
|
636 |
+
h() {
|
637 |
+
attr(path, "d", "M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z");
|
638 |
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
639 |
+
attr(svg, "viewBox", "0 0 640 512");
|
640 |
+
attr(svg, "class", svg_class_value = "" + (null_to_empty(/*output*/ ctx[1] ? "model" : "no-model") + " svelte-1e3mbn4"));
|
641 |
+
attr(p, "class", p_class_value = "chat " + (/*output*/ ctx[1] ? 'model-border' : 'no-model-border') + " svelte-1e3mbn4");
|
642 |
+
attr(div, "class", "box svelte-1e3mbn4");
|
643 |
+
},
|
644 |
+
m(target, anchor) {
|
645 |
+
insert_hydration(target, div, anchor);
|
646 |
+
append_hydration(div, svg);
|
647 |
+
append_hydration(svg, path);
|
648 |
+
append_hydration(div, t0);
|
649 |
+
append_hydration(div, p);
|
650 |
+
append_hydration(p, t1);
|
651 |
+
},
|
652 |
+
p(ctx, [dirty]) {
|
653 |
+
if (dirty & /*output*/ 2 && svg_class_value !== (svg_class_value = "" + (null_to_empty(/*output*/ ctx[1] ? "model" : "no-model") + " svelte-1e3mbn4"))) {
|
654 |
+
attr(svg, "class", svg_class_value);
|
655 |
+
}
|
656 |
+
|
657 |
+
if (dirty & /*input*/ 1) set_data(t1, /*input*/ ctx[0]);
|
658 |
+
|
659 |
+
if (dirty & /*output*/ 2 && p_class_value !== (p_class_value = "chat " + (/*output*/ ctx[1] ? 'model-border' : 'no-model-border') + " svelte-1e3mbn4")) {
|
660 |
+
attr(p, "class", p_class_value);
|
661 |
+
}
|
662 |
+
},
|
663 |
+
i: noop,
|
664 |
+
o: noop,
|
665 |
+
d(detaching) {
|
666 |
+
if (detaching) detach(div);
|
667 |
+
}
|
668 |
+
};
|
669 |
+
}
|
670 |
+
|
671 |
+
function instance$3($$self, $$props, $$invalidate) {
|
672 |
+
let { input } = $$props;
|
673 |
+
let { output = false } = $$props;
|
674 |
+
|
675 |
+
$$self.$$set = $$props => {
|
676 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
677 |
+
if ('output' in $$props) $$invalidate(1, output = $$props.output);
|
678 |
+
};
|
679 |
+
|
680 |
+
return [input, output];
|
681 |
+
}
|
682 |
+
|
683 |
+
class AssistantBlock extends SvelteComponent {
|
684 |
+
constructor(options) {
|
685 |
+
super();
|
686 |
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, { input: 0, output: 1 }, add_css$3);
|
687 |
+
}
|
688 |
+
}
|
689 |
+
|
690 |
+
/* src/SystemBlock.svelte generated by Svelte v3.55.1 */
|
691 |
+
|
692 |
+
function add_css$2(target) {
|
693 |
+
append_styles(target, "svelte-18o0ab2", "p.svelte-18o0ab2{margin:0px}");
|
694 |
+
}
|
695 |
+
|
696 |
+
function create_fragment$2(ctx) {
|
697 |
+
let p;
|
698 |
+
let b;
|
699 |
+
let t0;
|
700 |
+
let t1;
|
701 |
+
let span;
|
702 |
+
let t2;
|
703 |
+
|
704 |
+
return {
|
705 |
+
c() {
|
706 |
+
p = element("p");
|
707 |
+
b = element("b");
|
708 |
+
t0 = text("System:");
|
709 |
+
t1 = space();
|
710 |
+
span = element("span");
|
711 |
+
t2 = text(/*input*/ ctx[0]);
|
712 |
+
this.h();
|
713 |
+
},
|
714 |
+
l(nodes) {
|
715 |
+
p = claim_element(nodes, "P", { class: true });
|
716 |
+
var p_nodes = children(p);
|
717 |
+
b = claim_element(p_nodes, "B", {});
|
718 |
+
var b_nodes = children(b);
|
719 |
+
t0 = claim_text(b_nodes, "System:");
|
720 |
+
b_nodes.forEach(detach);
|
721 |
+
t1 = claim_space(p_nodes);
|
722 |
+
span = claim_element(p_nodes, "SPAN", {});
|
723 |
+
var span_nodes = children(span);
|
724 |
+
t2 = claim_text(span_nodes, /*input*/ ctx[0]);
|
725 |
+
span_nodes.forEach(detach);
|
726 |
+
p_nodes.forEach(detach);
|
727 |
+
this.h();
|
728 |
+
},
|
729 |
+
h() {
|
730 |
+
attr(p, "class", "svelte-18o0ab2");
|
731 |
+
},
|
732 |
+
m(target, anchor) {
|
733 |
+
insert_hydration(target, p, anchor);
|
734 |
+
append_hydration(p, b);
|
735 |
+
append_hydration(b, t0);
|
736 |
+
append_hydration(p, t1);
|
737 |
+
append_hydration(p, span);
|
738 |
+
append_hydration(span, t2);
|
739 |
+
},
|
740 |
+
p(ctx, [dirty]) {
|
741 |
+
if (dirty & /*input*/ 1) set_data(t2, /*input*/ ctx[0]);
|
742 |
+
},
|
743 |
+
i: noop,
|
744 |
+
o: noop,
|
745 |
+
d(detaching) {
|
746 |
+
if (detaching) detach(p);
|
747 |
+
}
|
748 |
+
};
|
749 |
+
}
|
750 |
+
|
751 |
+
function instance$2($$self, $$props, $$invalidate) {
|
752 |
+
let { input } = $$props;
|
753 |
+
|
754 |
+
$$self.$$set = $$props => {
|
755 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
756 |
+
};
|
757 |
+
|
758 |
+
return [input];
|
759 |
+
}
|
760 |
+
|
761 |
+
class SystemBlock extends SvelteComponent {
|
762 |
+
constructor(options) {
|
763 |
+
super();
|
764 |
+
init(this, options, instance$2, create_fragment$2, safe_not_equal, { input: 0 }, add_css$2);
|
765 |
+
}
|
766 |
+
}
|
767 |
+
|
768 |
+
/* src/UserBlock.svelte generated by Svelte v3.55.1 */
|
769 |
+
|
770 |
+
function add_css$1(target) {
|
771 |
+
append_styles(target, "svelte-1lys9p1", ".box.svelte-1lys9p1.svelte-1lys9p1{margin-top:10px;margin-bottom:10px;display:flex;align-items:start}.box.svelte-1lys9p1 svg.svelte-1lys9p1{min-width:24px;width:24px;margin-right:10px;margin-top:7px;fill:var(--G3)}.chat.svelte-1lys9p1.svelte-1lys9p1{border:1px solid rgba(224, 224, 224, 1);border-radius:5px;margin:0px;padding:10px;overflow-wrap:anywhere}");
|
772 |
+
}
|
773 |
+
|
774 |
+
function create_fragment$1(ctx) {
|
775 |
+
let div;
|
776 |
+
let svg;
|
777 |
+
let path;
|
778 |
+
let t0;
|
779 |
+
let p;
|
780 |
+
let t1;
|
781 |
+
|
782 |
+
return {
|
783 |
+
c() {
|
784 |
+
div = element("div");
|
785 |
+
svg = svg_element("svg");
|
786 |
+
path = svg_element("path");
|
787 |
+
t0 = space();
|
788 |
+
p = element("p");
|
789 |
+
t1 = text(/*input*/ ctx[0]);
|
790 |
+
this.h();
|
791 |
+
},
|
792 |
+
l(nodes) {
|
793 |
+
div = claim_element(nodes, "DIV", { class: true });
|
794 |
+
var div_nodes = children(div);
|
795 |
+
svg = claim_svg_element(div_nodes, "svg", { xmlns: true, viewBox: true, class: true });
|
796 |
+
var svg_nodes = children(svg);
|
797 |
+
path = claim_svg_element(svg_nodes, "path", { d: true });
|
798 |
+
children(path).forEach(detach);
|
799 |
+
svg_nodes.forEach(detach);
|
800 |
+
t0 = claim_space(div_nodes);
|
801 |
+
p = claim_element(div_nodes, "P", { class: true });
|
802 |
+
var p_nodes = children(p);
|
803 |
+
t1 = claim_text(p_nodes, /*input*/ ctx[0]);
|
804 |
+
p_nodes.forEach(detach);
|
805 |
+
div_nodes.forEach(detach);
|
806 |
+
this.h();
|
807 |
+
},
|
808 |
+
h() {
|
809 |
+
attr(path, "d", "M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z");
|
810 |
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
811 |
+
attr(svg, "viewBox", "0 0 448 512");
|
812 |
+
attr(svg, "class", "svelte-1lys9p1");
|
813 |
+
attr(p, "class", "chat svelte-1lys9p1");
|
814 |
+
attr(div, "class", "box svelte-1lys9p1");
|
815 |
+
},
|
816 |
+
m(target, anchor) {
|
817 |
+
insert_hydration(target, div, anchor);
|
818 |
+
append_hydration(div, svg);
|
819 |
+
append_hydration(svg, path);
|
820 |
+
append_hydration(div, t0);
|
821 |
+
append_hydration(div, p);
|
822 |
+
append_hydration(p, t1);
|
823 |
+
},
|
824 |
+
p(ctx, [dirty]) {
|
825 |
+
if (dirty & /*input*/ 1) set_data(t1, /*input*/ ctx[0]);
|
826 |
+
},
|
827 |
+
i: noop,
|
828 |
+
o: noop,
|
829 |
+
d(detaching) {
|
830 |
+
if (detaching) detach(div);
|
831 |
+
}
|
832 |
+
};
|
833 |
+
}
|
834 |
+
|
835 |
+
function instance$1($$self, $$props, $$invalidate) {
|
836 |
+
let { input } = $$props;
|
837 |
+
|
838 |
+
$$self.$$set = $$props => {
|
839 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
840 |
+
};
|
841 |
+
|
842 |
+
return [input];
|
843 |
+
}
|
844 |
+
|
845 |
+
class UserBlock extends SvelteComponent {
|
846 |
+
constructor(options) {
|
847 |
+
super();
|
848 |
+
init(this, options, instance$1, create_fragment$1, safe_not_equal, { input: 0 }, add_css$1);
|
849 |
+
}
|
850 |
+
}
|
851 |
+
|
852 |
+
/* src/InstanceView.svelte generated by Svelte v3.55.1 */
|
853 |
+
|
854 |
+
function add_css(target) {
|
855 |
+
append_styles(target, "svelte-eoma5v", "#container.svelte-eoma5v{border:0.5px solid rgb(224, 224, 224);min-width:350px;border-radius:2px;padding:10px}.label.svelte-eoma5v{margin-right:5px;font-weight:700}p.svelte-eoma5v{margin:5px;overflow-wrap:anywhere}");
|
856 |
+
}
|
857 |
+
|
858 |
+
function get_each_context(ctx, list, i) {
|
859 |
+
const child_ctx = ctx.slice();
|
860 |
+
child_ctx[6] = list[i];
|
861 |
+
return child_ctx;
|
862 |
+
}
|
863 |
+
|
864 |
+
// (21:2) {#if entry[dataColumn]}
|
865 |
+
function create_if_block_2(ctx) {
|
866 |
+
let current_block_type_index;
|
867 |
+
let if_block;
|
868 |
+
let if_block_anchor;
|
869 |
+
let current;
|
870 |
+
const if_block_creators = [create_if_block_3, create_else_block];
|
871 |
+
const if_blocks = [];
|
872 |
+
|
873 |
+
function select_block_type(ctx, dirty) {
|
874 |
+
if (typeof /*entry*/ ctx[0][/*dataColumn*/ ctx[3]] === "string") return 0;
|
875 |
+
return 1;
|
876 |
+
}
|
877 |
+
|
878 |
+
current_block_type_index = select_block_type(ctx);
|
879 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
880 |
+
|
881 |
+
return {
|
882 |
+
c() {
|
883 |
+
if_block.c();
|
884 |
+
if_block_anchor = empty();
|
885 |
+
},
|
886 |
+
l(nodes) {
|
887 |
+
if_block.l(nodes);
|
888 |
+
if_block_anchor = empty();
|
889 |
+
},
|
890 |
+
m(target, anchor) {
|
891 |
+
if_blocks[current_block_type_index].m(target, anchor);
|
892 |
+
insert_hydration(target, if_block_anchor, anchor);
|
893 |
+
current = true;
|
894 |
+
},
|
895 |
+
p(ctx, dirty) {
|
896 |
+
let previous_block_index = current_block_type_index;
|
897 |
+
current_block_type_index = select_block_type(ctx);
|
898 |
+
|
899 |
+
if (current_block_type_index === previous_block_index) {
|
900 |
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
901 |
+
} else {
|
902 |
+
group_outros();
|
903 |
+
|
904 |
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
905 |
+
if_blocks[previous_block_index] = null;
|
906 |
+
});
|
907 |
+
|
908 |
+
check_outros();
|
909 |
+
if_block = if_blocks[current_block_type_index];
|
910 |
+
|
911 |
+
if (!if_block) {
|
912 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
913 |
+
if_block.c();
|
914 |
+
} else {
|
915 |
+
if_block.p(ctx, dirty);
|
916 |
+
}
|
917 |
+
|
918 |
+
transition_in(if_block, 1);
|
919 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
920 |
+
}
|
921 |
+
},
|
922 |
+
i(local) {
|
923 |
+
if (current) return;
|
924 |
+
transition_in(if_block);
|
925 |
+
current = true;
|
926 |
+
},
|
927 |
+
o(local) {
|
928 |
+
transition_out(if_block);
|
929 |
+
current = false;
|
930 |
+
},
|
931 |
+
d(detaching) {
|
932 |
+
if_blocks[current_block_type_index].d(detaching);
|
933 |
+
if (detaching) detach(if_block_anchor);
|
934 |
+
}
|
935 |
+
};
|
936 |
+
}
|
937 |
+
|
938 |
+
// (24:4) {:else}
|
939 |
+
function create_else_block(ctx) {
|
940 |
+
let each_1_anchor;
|
941 |
+
let current;
|
942 |
+
let each_value = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]];
|
943 |
+
let each_blocks = [];
|
944 |
+
|
945 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
946 |
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
947 |
+
}
|
948 |
+
|
949 |
+
const out = i => transition_out(each_blocks[i], 1, 1, () => {
|
950 |
+
each_blocks[i] = null;
|
951 |
+
});
|
952 |
+
|
953 |
+
return {
|
954 |
+
c() {
|
955 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
956 |
+
each_blocks[i].c();
|
957 |
+
}
|
958 |
+
|
959 |
+
each_1_anchor = empty();
|
960 |
+
},
|
961 |
+
l(nodes) {
|
962 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
963 |
+
each_blocks[i].l(nodes);
|
964 |
+
}
|
965 |
+
|
966 |
+
each_1_anchor = empty();
|
967 |
+
},
|
968 |
+
m(target, anchor) {
|
969 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
970 |
+
each_blocks[i].m(target, anchor);
|
971 |
+
}
|
972 |
+
|
973 |
+
insert_hydration(target, each_1_anchor, anchor);
|
974 |
+
current = true;
|
975 |
+
},
|
976 |
+
p(ctx, dirty) {
|
977 |
+
if (dirty & /*entry, dataColumn*/ 9) {
|
978 |
+
each_value = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]];
|
979 |
+
let i;
|
980 |
+
|
981 |
+
for (i = 0; i < each_value.length; i += 1) {
|
982 |
+
const child_ctx = get_each_context(ctx, each_value, i);
|
983 |
+
|
984 |
+
if (each_blocks[i]) {
|
985 |
+
each_blocks[i].p(child_ctx, dirty);
|
986 |
+
transition_in(each_blocks[i], 1);
|
987 |
+
} else {
|
988 |
+
each_blocks[i] = create_each_block(child_ctx);
|
989 |
+
each_blocks[i].c();
|
990 |
+
transition_in(each_blocks[i], 1);
|
991 |
+
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
992 |
+
}
|
993 |
+
}
|
994 |
+
|
995 |
+
group_outros();
|
996 |
+
|
997 |
+
for (i = each_value.length; i < each_blocks.length; i += 1) {
|
998 |
+
out(i);
|
999 |
+
}
|
1000 |
+
|
1001 |
+
check_outros();
|
1002 |
+
}
|
1003 |
+
},
|
1004 |
+
i(local) {
|
1005 |
+
if (current) return;
|
1006 |
+
|
1007 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
1008 |
+
transition_in(each_blocks[i]);
|
1009 |
+
}
|
1010 |
+
|
1011 |
+
current = true;
|
1012 |
+
},
|
1013 |
+
o(local) {
|
1014 |
+
each_blocks = each_blocks.filter(Boolean);
|
1015 |
+
|
1016 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
1017 |
+
transition_out(each_blocks[i]);
|
1018 |
+
}
|
1019 |
+
|
1020 |
+
current = false;
|
1021 |
+
},
|
1022 |
+
d(detaching) {
|
1023 |
+
destroy_each(each_blocks, detaching);
|
1024 |
+
if (detaching) detach(each_1_anchor);
|
1025 |
+
}
|
1026 |
+
};
|
1027 |
+
}
|
1028 |
+
|
1029 |
+
// (22:4) {#if typeof entry[dataColumn] === "string"}
|
1030 |
+
function create_if_block_3(ctx) {
|
1031 |
+
let userblock;
|
1032 |
+
let current;
|
1033 |
+
|
1034 |
+
userblock = new UserBlock({
|
1035 |
+
props: {
|
1036 |
+
input: /*entry*/ ctx[0][/*dataColumn*/ ctx[3]]
|
1037 |
+
}
|
1038 |
+
});
|
1039 |
+
|
1040 |
+
return {
|
1041 |
+
c() {
|
1042 |
+
create_component(userblock.$$.fragment);
|
1043 |
+
},
|
1044 |
+
l(nodes) {
|
1045 |
+
claim_component(userblock.$$.fragment, nodes);
|
1046 |
+
},
|
1047 |
+
m(target, anchor) {
|
1048 |
+
mount_component(userblock, target, anchor);
|
1049 |
+
current = true;
|
1050 |
+
},
|
1051 |
+
p(ctx, dirty) {
|
1052 |
+
const userblock_changes = {};
|
1053 |
+
if (dirty & /*entry, dataColumn*/ 9) userblock_changes.input = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]];
|
1054 |
+
userblock.$set(userblock_changes);
|
1055 |
+
},
|
1056 |
+
i(local) {
|
1057 |
+
if (current) return;
|
1058 |
+
transition_in(userblock.$$.fragment, local);
|
1059 |
+
current = true;
|
1060 |
+
},
|
1061 |
+
o(local) {
|
1062 |
+
transition_out(userblock.$$.fragment, local);
|
1063 |
+
current = false;
|
1064 |
+
},
|
1065 |
+
d(detaching) {
|
1066 |
+
destroy_component(userblock, detaching);
|
1067 |
+
}
|
1068 |
+
};
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
// (30:42)
|
1072 |
+
function create_if_block_6(ctx) {
|
1073 |
+
let userblock;
|
1074 |
+
let current;
|
1075 |
+
|
1076 |
+
userblock = new UserBlock({
|
1077 |
+
props: { input: /*item*/ ctx[6]["content"] }
|
1078 |
+
});
|
1079 |
+
|
1080 |
+
return {
|
1081 |
+
c() {
|
1082 |
+
create_component(userblock.$$.fragment);
|
1083 |
+
},
|
1084 |
+
l(nodes) {
|
1085 |
+
claim_component(userblock.$$.fragment, nodes);
|
1086 |
+
},
|
1087 |
+
m(target, anchor) {
|
1088 |
+
mount_component(userblock, target, anchor);
|
1089 |
+
current = true;
|
1090 |
+
},
|
1091 |
+
p(ctx, dirty) {
|
1092 |
+
const userblock_changes = {};
|
1093 |
+
if (dirty & /*entry, dataColumn*/ 9) userblock_changes.input = /*item*/ ctx[6]["content"];
|
1094 |
+
userblock.$set(userblock_changes);
|
1095 |
+
},
|
1096 |
+
i(local) {
|
1097 |
+
if (current) return;
|
1098 |
+
transition_in(userblock.$$.fragment, local);
|
1099 |
+
current = true;
|
1100 |
+
},
|
1101 |
+
o(local) {
|
1102 |
+
transition_out(userblock.$$.fragment, local);
|
1103 |
+
current = false;
|
1104 |
+
},
|
1105 |
+
d(detaching) {
|
1106 |
+
destroy_component(userblock, detaching);
|
1107 |
+
}
|
1108 |
+
};
|
1109 |
+
}
|
1110 |
+
|
1111 |
+
// (28:47)
|
1112 |
+
function create_if_block_5(ctx) {
|
1113 |
+
let assistantblock;
|
1114 |
+
let current;
|
1115 |
+
|
1116 |
+
assistantblock = new AssistantBlock({
|
1117 |
+
props: { input: /*item*/ ctx[6]["content"] }
|
1118 |
+
});
|
1119 |
+
|
1120 |
+
return {
|
1121 |
+
c() {
|
1122 |
+
create_component(assistantblock.$$.fragment);
|
1123 |
+
},
|
1124 |
+
l(nodes) {
|
1125 |
+
claim_component(assistantblock.$$.fragment, nodes);
|
1126 |
+
},
|
1127 |
+
m(target, anchor) {
|
1128 |
+
mount_component(assistantblock, target, anchor);
|
1129 |
+
current = true;
|
1130 |
+
},
|
1131 |
+
p(ctx, dirty) {
|
1132 |
+
const assistantblock_changes = {};
|
1133 |
+
if (dirty & /*entry, dataColumn*/ 9) assistantblock_changes.input = /*item*/ ctx[6]["content"];
|
1134 |
+
assistantblock.$set(assistantblock_changes);
|
1135 |
+
},
|
1136 |
+
i(local) {
|
1137 |
+
if (current) return;
|
1138 |
+
transition_in(assistantblock.$$.fragment, local);
|
1139 |
+
current = true;
|
1140 |
+
},
|
1141 |
+
o(local) {
|
1142 |
+
transition_out(assistantblock.$$.fragment, local);
|
1143 |
+
current = false;
|
1144 |
+
},
|
1145 |
+
d(detaching) {
|
1146 |
+
destroy_component(assistantblock, detaching);
|
1147 |
+
}
|
1148 |
+
};
|
1149 |
+
}
|
1150 |
+
|
1151 |
+
// (26:8) {#if item["role"] === "system"}
|
1152 |
+
function create_if_block_4(ctx) {
|
1153 |
+
let systemblock;
|
1154 |
+
let current;
|
1155 |
+
|
1156 |
+
systemblock = new SystemBlock({
|
1157 |
+
props: { input: /*item*/ ctx[6]["content"] }
|
1158 |
+
});
|
1159 |
+
|
1160 |
+
return {
|
1161 |
+
c() {
|
1162 |
+
create_component(systemblock.$$.fragment);
|
1163 |
+
},
|
1164 |
+
l(nodes) {
|
1165 |
+
claim_component(systemblock.$$.fragment, nodes);
|
1166 |
+
},
|
1167 |
+
m(target, anchor) {
|
1168 |
+
mount_component(systemblock, target, anchor);
|
1169 |
+
current = true;
|
1170 |
+
},
|
1171 |
+
p(ctx, dirty) {
|
1172 |
+
const systemblock_changes = {};
|
1173 |
+
if (dirty & /*entry, dataColumn*/ 9) systemblock_changes.input = /*item*/ ctx[6]["content"];
|
1174 |
+
systemblock.$set(systemblock_changes);
|
1175 |
+
},
|
1176 |
+
i(local) {
|
1177 |
+
if (current) return;
|
1178 |
+
transition_in(systemblock.$$.fragment, local);
|
1179 |
+
current = true;
|
1180 |
+
},
|
1181 |
+
o(local) {
|
1182 |
+
transition_out(systemblock.$$.fragment, local);
|
1183 |
+
current = false;
|
1184 |
+
},
|
1185 |
+
d(detaching) {
|
1186 |
+
destroy_component(systemblock, detaching);
|
1187 |
+
}
|
1188 |
+
};
|
1189 |
+
}
|
1190 |
+
|
1191 |
+
// (25:6) {#each entry[dataColumn] as item}
|
1192 |
+
function create_each_block(ctx) {
|
1193 |
+
let current_block_type_index;
|
1194 |
+
let if_block;
|
1195 |
+
let if_block_anchor;
|
1196 |
+
let current;
|
1197 |
+
const if_block_creators = [create_if_block_4, create_if_block_5, create_if_block_6];
|
1198 |
+
const if_blocks = [];
|
1199 |
+
|
1200 |
+
function select_block_type_1(ctx, dirty) {
|
1201 |
+
if (/*item*/ ctx[6]["role"] === "system") return 0;
|
1202 |
+
if (/*item*/ ctx[6]["role"] === "assistant") return 1;
|
1203 |
+
if (/*item*/ ctx[6]["role"] === "user") return 2;
|
1204 |
+
return -1;
|
1205 |
+
}
|
1206 |
+
|
1207 |
+
if (~(current_block_type_index = select_block_type_1(ctx))) {
|
1208 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
1209 |
+
}
|
1210 |
+
|
1211 |
+
return {
|
1212 |
+
c() {
|
1213 |
+
if (if_block) if_block.c();
|
1214 |
+
if_block_anchor = empty();
|
1215 |
+
},
|
1216 |
+
l(nodes) {
|
1217 |
+
if (if_block) if_block.l(nodes);
|
1218 |
+
if_block_anchor = empty();
|
1219 |
+
},
|
1220 |
+
m(target, anchor) {
|
1221 |
+
if (~current_block_type_index) {
|
1222 |
+
if_blocks[current_block_type_index].m(target, anchor);
|
1223 |
+
}
|
1224 |
+
|
1225 |
+
insert_hydration(target, if_block_anchor, anchor);
|
1226 |
+
current = true;
|
1227 |
+
},
|
1228 |
+
p(ctx, dirty) {
|
1229 |
+
let previous_block_index = current_block_type_index;
|
1230 |
+
current_block_type_index = select_block_type_1(ctx);
|
1231 |
+
|
1232 |
+
if (current_block_type_index === previous_block_index) {
|
1233 |
+
if (~current_block_type_index) {
|
1234 |
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
1235 |
+
}
|
1236 |
+
} else {
|
1237 |
+
if (if_block) {
|
1238 |
+
group_outros();
|
1239 |
+
|
1240 |
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
1241 |
+
if_blocks[previous_block_index] = null;
|
1242 |
+
});
|
1243 |
+
|
1244 |
+
check_outros();
|
1245 |
+
}
|
1246 |
+
|
1247 |
+
if (~current_block_type_index) {
|
1248 |
+
if_block = if_blocks[current_block_type_index];
|
1249 |
+
|
1250 |
+
if (!if_block) {
|
1251 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
1252 |
+
if_block.c();
|
1253 |
+
} else {
|
1254 |
+
if_block.p(ctx, dirty);
|
1255 |
+
}
|
1256 |
+
|
1257 |
+
transition_in(if_block, 1);
|
1258 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
1259 |
+
} else {
|
1260 |
+
if_block = null;
|
1261 |
+
}
|
1262 |
+
}
|
1263 |
+
},
|
1264 |
+
i(local) {
|
1265 |
+
if (current) return;
|
1266 |
+
transition_in(if_block);
|
1267 |
+
current = true;
|
1268 |
+
},
|
1269 |
+
o(local) {
|
1270 |
+
transition_out(if_block);
|
1271 |
+
current = false;
|
1272 |
+
},
|
1273 |
+
d(detaching) {
|
1274 |
+
if (~current_block_type_index) {
|
1275 |
+
if_blocks[current_block_type_index].d(detaching);
|
1276 |
+
}
|
1277 |
+
|
1278 |
+
if (detaching) detach(if_block_anchor);
|
1279 |
+
}
|
1280 |
+
};
|
1281 |
+
}
|
1282 |
+
|
1283 |
+
// (36:2) {#if entry[modelColumn]}
|
1284 |
+
function create_if_block_1(ctx) {
|
1285 |
+
let assistantblock;
|
1286 |
+
let current;
|
1287 |
+
|
1288 |
+
assistantblock = new AssistantBlock({
|
1289 |
+
props: {
|
1290 |
+
input: /*entry*/ ctx[0][/*modelColumn*/ ctx[1]],
|
1291 |
+
output: true
|
1292 |
+
}
|
1293 |
+
});
|
1294 |
+
|
1295 |
+
return {
|
1296 |
+
c() {
|
1297 |
+
create_component(assistantblock.$$.fragment);
|
1298 |
+
},
|
1299 |
+
l(nodes) {
|
1300 |
+
claim_component(assistantblock.$$.fragment, nodes);
|
1301 |
+
},
|
1302 |
+
m(target, anchor) {
|
1303 |
+
mount_component(assistantblock, target, anchor);
|
1304 |
+
current = true;
|
1305 |
+
},
|
1306 |
+
p(ctx, dirty) {
|
1307 |
+
const assistantblock_changes = {};
|
1308 |
+
if (dirty & /*entry, modelColumn*/ 3) assistantblock_changes.input = /*entry*/ ctx[0][/*modelColumn*/ ctx[1]];
|
1309 |
+
assistantblock.$set(assistantblock_changes);
|
1310 |
+
},
|
1311 |
+
i(local) {
|
1312 |
+
if (current) return;
|
1313 |
+
transition_in(assistantblock.$$.fragment, local);
|
1314 |
+
current = true;
|
1315 |
+
},
|
1316 |
+
o(local) {
|
1317 |
+
transition_out(assistantblock.$$.fragment, local);
|
1318 |
+
current = false;
|
1319 |
+
},
|
1320 |
+
d(detaching) {
|
1321 |
+
destroy_component(assistantblock, detaching);
|
1322 |
+
}
|
1323 |
+
};
|
1324 |
+
}
|
1325 |
+
|
1326 |
+
// (39:2) {#if entry[labelColumn]}
|
1327 |
+
function create_if_block(ctx) {
|
1328 |
+
let p;
|
1329 |
+
let span;
|
1330 |
+
let t0;
|
1331 |
+
let t1;
|
1332 |
+
let t2_value = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] + "";
|
1333 |
+
let t2;
|
1334 |
+
|
1335 |
+
return {
|
1336 |
+
c() {
|
1337 |
+
p = element("p");
|
1338 |
+
span = element("span");
|
1339 |
+
t0 = text("Expected:");
|
1340 |
+
t1 = space();
|
1341 |
+
t2 = text(t2_value);
|
1342 |
+
this.h();
|
1343 |
+
},
|
1344 |
+
l(nodes) {
|
1345 |
+
p = claim_element(nodes, "P", { class: true });
|
1346 |
+
var p_nodes = children(p);
|
1347 |
+
span = claim_element(p_nodes, "SPAN", { class: true });
|
1348 |
+
var span_nodes = children(span);
|
1349 |
+
t0 = claim_text(span_nodes, "Expected:");
|
1350 |
+
span_nodes.forEach(detach);
|
1351 |
+
t1 = claim_space(p_nodes);
|
1352 |
+
t2 = claim_text(p_nodes, t2_value);
|
1353 |
+
p_nodes.forEach(detach);
|
1354 |
+
this.h();
|
1355 |
+
},
|
1356 |
+
h() {
|
1357 |
+
attr(span, "class", "label svelte-eoma5v");
|
1358 |
+
attr(p, "class", "svelte-eoma5v");
|
1359 |
+
},
|
1360 |
+
m(target, anchor) {
|
1361 |
+
insert_hydration(target, p, anchor);
|
1362 |
+
append_hydration(p, span);
|
1363 |
+
append_hydration(span, t0);
|
1364 |
+
append_hydration(p, t1);
|
1365 |
+
append_hydration(p, t2);
|
1366 |
+
},
|
1367 |
+
p(ctx, dirty) {
|
1368 |
+
if (dirty & /*entry, labelColumn*/ 5 && t2_value !== (t2_value = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] + "")) set_data(t2, t2_value);
|
1369 |
+
},
|
1370 |
+
d(detaching) {
|
1371 |
+
if (detaching) detach(p);
|
1372 |
+
}
|
1373 |
+
};
|
1374 |
+
}
|
1375 |
+
|
1376 |
+
function create_fragment(ctx) {
|
1377 |
+
let div;
|
1378 |
+
let t0;
|
1379 |
+
let t1;
|
1380 |
+
let current;
|
1381 |
+
let if_block0 = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]] && create_if_block_2(ctx);
|
1382 |
+
let if_block1 = /*entry*/ ctx[0][/*modelColumn*/ ctx[1]] && create_if_block_1(ctx);
|
1383 |
+
let if_block2 = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] && create_if_block(ctx);
|
1384 |
+
|
1385 |
+
return {
|
1386 |
+
c() {
|
1387 |
+
div = element("div");
|
1388 |
+
if (if_block0) if_block0.c();
|
1389 |
+
t0 = space();
|
1390 |
+
if (if_block1) if_block1.c();
|
1391 |
+
t1 = space();
|
1392 |
+
if (if_block2) if_block2.c();
|
1393 |
+
this.h();
|
1394 |
+
},
|
1395 |
+
l(nodes) {
|
1396 |
+
div = claim_element(nodes, "DIV", { id: true, class: true });
|
1397 |
+
var div_nodes = children(div);
|
1398 |
+
if (if_block0) if_block0.l(div_nodes);
|
1399 |
+
t0 = claim_space(div_nodes);
|
1400 |
+
if (if_block1) if_block1.l(div_nodes);
|
1401 |
+
t1 = claim_space(div_nodes);
|
1402 |
+
if (if_block2) if_block2.l(div_nodes);
|
1403 |
+
div_nodes.forEach(detach);
|
1404 |
+
this.h();
|
1405 |
+
},
|
1406 |
+
h() {
|
1407 |
+
attr(div, "id", "container");
|
1408 |
+
attr(div, "class", "svelte-eoma5v");
|
1409 |
+
},
|
1410 |
+
m(target, anchor) {
|
1411 |
+
insert_hydration(target, div, anchor);
|
1412 |
+
if (if_block0) if_block0.m(div, null);
|
1413 |
+
append_hydration(div, t0);
|
1414 |
+
if (if_block1) if_block1.m(div, null);
|
1415 |
+
append_hydration(div, t1);
|
1416 |
+
if (if_block2) if_block2.m(div, null);
|
1417 |
+
current = true;
|
1418 |
+
},
|
1419 |
+
p(ctx, [dirty]) {
|
1420 |
+
if (/*entry*/ ctx[0][/*dataColumn*/ ctx[3]]) {
|
1421 |
+
if (if_block0) {
|
1422 |
+
if_block0.p(ctx, dirty);
|
1423 |
+
|
1424 |
+
if (dirty & /*entry, dataColumn*/ 9) {
|
1425 |
+
transition_in(if_block0, 1);
|
1426 |
+
}
|
1427 |
+
} else {
|
1428 |
+
if_block0 = create_if_block_2(ctx);
|
1429 |
+
if_block0.c();
|
1430 |
+
transition_in(if_block0, 1);
|
1431 |
+
if_block0.m(div, t0);
|
1432 |
+
}
|
1433 |
+
} else if (if_block0) {
|
1434 |
+
group_outros();
|
1435 |
+
|
1436 |
+
transition_out(if_block0, 1, 1, () => {
|
1437 |
+
if_block0 = null;
|
1438 |
+
});
|
1439 |
+
|
1440 |
+
check_outros();
|
1441 |
+
}
|
1442 |
+
|
1443 |
+
if (/*entry*/ ctx[0][/*modelColumn*/ ctx[1]]) {
|
1444 |
+
if (if_block1) {
|
1445 |
+
if_block1.p(ctx, dirty);
|
1446 |
+
|
1447 |
+
if (dirty & /*entry, modelColumn*/ 3) {
|
1448 |
+
transition_in(if_block1, 1);
|
1449 |
+
}
|
1450 |
+
} else {
|
1451 |
+
if_block1 = create_if_block_1(ctx);
|
1452 |
+
if_block1.c();
|
1453 |
+
transition_in(if_block1, 1);
|
1454 |
+
if_block1.m(div, t1);
|
1455 |
+
}
|
1456 |
+
} else if (if_block1) {
|
1457 |
+
group_outros();
|
1458 |
+
|
1459 |
+
transition_out(if_block1, 1, 1, () => {
|
1460 |
+
if_block1 = null;
|
1461 |
+
});
|
1462 |
+
|
1463 |
+
check_outros();
|
1464 |
+
}
|
1465 |
+
|
1466 |
+
if (/*entry*/ ctx[0][/*labelColumn*/ ctx[2]]) {
|
1467 |
+
if (if_block2) {
|
1468 |
+
if_block2.p(ctx, dirty);
|
1469 |
+
} else {
|
1470 |
+
if_block2 = create_if_block(ctx);
|
1471 |
+
if_block2.c();
|
1472 |
+
if_block2.m(div, null);
|
1473 |
+
}
|
1474 |
+
} else if (if_block2) {
|
1475 |
+
if_block2.d(1);
|
1476 |
+
if_block2 = null;
|
1477 |
+
}
|
1478 |
+
},
|
1479 |
+
i(local) {
|
1480 |
+
if (current) return;
|
1481 |
+
transition_in(if_block0);
|
1482 |
+
transition_in(if_block1);
|
1483 |
+
current = true;
|
1484 |
+
},
|
1485 |
+
o(local) {
|
1486 |
+
transition_out(if_block0);
|
1487 |
+
transition_out(if_block1);
|
1488 |
+
current = false;
|
1489 |
+
},
|
1490 |
+
d(detaching) {
|
1491 |
+
if (detaching) detach(div);
|
1492 |
+
if (if_block0) if_block0.d();
|
1493 |
+
if (if_block1) if_block1.d();
|
1494 |
+
if (if_block2) if_block2.d();
|
1495 |
+
}
|
1496 |
+
};
|
1497 |
+
}
|
1498 |
+
|
1499 |
+
function instance($$self, $$props, $$invalidate) {
|
1500 |
+
let { options } = $$props;
|
1501 |
+
let { entry } = $$props;
|
1502 |
+
let { modelColumn } = $$props;
|
1503 |
+
let { labelColumn } = $$props;
|
1504 |
+
let { dataColumn } = $$props;
|
1505 |
+
let { idColumn } = $$props;
|
1506 |
+
|
1507 |
+
$$self.$$set = $$props => {
|
1508 |
+
if ('options' in $$props) $$invalidate(4, options = $$props.options);
|
1509 |
+
if ('entry' in $$props) $$invalidate(0, entry = $$props.entry);
|
1510 |
+
if ('modelColumn' in $$props) $$invalidate(1, modelColumn = $$props.modelColumn);
|
1511 |
+
if ('labelColumn' in $$props) $$invalidate(2, labelColumn = $$props.labelColumn);
|
1512 |
+
if ('dataColumn' in $$props) $$invalidate(3, dataColumn = $$props.dataColumn);
|
1513 |
+
if ('idColumn' in $$props) $$invalidate(5, idColumn = $$props.idColumn);
|
1514 |
+
};
|
1515 |
+
|
1516 |
+
return [entry, modelColumn, labelColumn, dataColumn, options, idColumn];
|
1517 |
+
}
|
1518 |
+
|
1519 |
+
class InstanceView extends SvelteComponent {
|
1520 |
+
constructor(options) {
|
1521 |
+
super();
|
1522 |
+
|
1523 |
+
init(
|
1524 |
+
this,
|
1525 |
+
options,
|
1526 |
+
instance,
|
1527 |
+
create_fragment,
|
1528 |
+
safe_not_equal,
|
1529 |
+
{
|
1530 |
+
options: 4,
|
1531 |
+
entry: 0,
|
1532 |
+
modelColumn: 1,
|
1533 |
+
labelColumn: 2,
|
1534 |
+
dataColumn: 3,
|
1535 |
+
idColumn: 5
|
1536 |
+
},
|
1537 |
+
add_css
|
1538 |
+
);
|
1539 |
+
}
|
1540 |
+
}
|
1541 |
+
|
1542 |
+
function getInstance(
|
1543 |
+
div,
|
1544 |
+
viewOptions,
|
1545 |
+
entry,
|
1546 |
+
modelColumn,
|
1547 |
+
labelColumn,
|
1548 |
+
dataColumn,
|
1549 |
+
idColumn
|
1550 |
+
) {
|
1551 |
+
new InstanceView({
|
1552 |
+
target: div,
|
1553 |
+
props: {
|
1554 |
+
entry: entry,
|
1555 |
+
viewOptions: viewOptions,
|
1556 |
+
modelColumn: modelColumn,
|
1557 |
+
labelColumn: labelColumn,
|
1558 |
+
dataColumn: dataColumn,
|
1559 |
+
idColumn: idColumn,
|
1560 |
+
},
|
1561 |
+
hydrate: true,
|
1562 |
+
});
|
1563 |
+
}
|
1564 |
+
|
1565 |
+
// export function getOptions(div, setOptions) {
|
1566 |
+
// new OptionsView({
|
1567 |
+
// target: div,
|
1568 |
+
// props: {
|
1569 |
+
// setOptions,
|
1570 |
+
// },
|
1571 |
+
// });
|
1572 |
+
// }
|
1573 |
+
|
1574 |
+
export { getInstance };
|
evals/.zeno_cache_logic/OUTPUTgpt-3_5-turbo.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e2d64320ff26ba332e8729fd38dec1ea5fd40b05117fbfa91af1063d3f21a5fb
|
3 |
+
size 14176
|
evals/.zeno_cache_logic/OUTPUTgpt-4.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:42e4a7c700e49719075c965cdc376ec7977e769543510bc4f1ab8450eda45b96
|
3 |
+
size 14924
|
evals/.zeno_cache_logic/POSTDISTILLcorrectgpt-3_5-turbo.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:457d65ffcf25212437285af67f005ebc643ad5c052895c70b831510bc94a4a1e
|
3 |
+
size 5475
|
evals/.zeno_cache_logic/POSTDISTILLcorrectgpt-4.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:826d7978a5a140f576ef8a09baa5e215534619b403efd4186a54eb136a8be8c0
|
3 |
+
size 5467
|
evals/.zeno_cache_logic/folders.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec0a6ccf9debf1c16781445c4b9106080d00478b0559469336db7c7b7b9711c8
|
3 |
+
size 5
|
evals/.zeno_cache_logic/reports.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec0a6ccf9debf1c16781445c4b9106080d00478b0559469336db7c7b7b9711c8
|
3 |
+
size 5
|
evals/.zeno_cache_logic/view.mjs
ADDED
@@ -0,0 +1,1574 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function noop() { }
|
2 |
+
function run(fn) {
|
3 |
+
return fn();
|
4 |
+
}
|
5 |
+
function blank_object() {
|
6 |
+
return Object.create(null);
|
7 |
+
}
|
8 |
+
function run_all(fns) {
|
9 |
+
fns.forEach(run);
|
10 |
+
}
|
11 |
+
function is_function(thing) {
|
12 |
+
return typeof thing === 'function';
|
13 |
+
}
|
14 |
+
function safe_not_equal(a, b) {
|
15 |
+
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
|
16 |
+
}
|
17 |
+
function is_empty(obj) {
|
18 |
+
return Object.keys(obj).length === 0;
|
19 |
+
}
|
20 |
+
function null_to_empty(value) {
|
21 |
+
return value == null ? '' : value;
|
22 |
+
}
|
23 |
+
|
24 |
+
// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM
|
25 |
+
// at the end of hydration without touching the remaining nodes.
|
26 |
+
let is_hydrating = false;
|
27 |
+
function start_hydrating() {
|
28 |
+
is_hydrating = true;
|
29 |
+
}
|
30 |
+
function end_hydrating() {
|
31 |
+
is_hydrating = false;
|
32 |
+
}
|
33 |
+
function upper_bound(low, high, key, value) {
|
34 |
+
// Return first index of value larger than input value in the range [low, high)
|
35 |
+
while (low < high) {
|
36 |
+
const mid = low + ((high - low) >> 1);
|
37 |
+
if (key(mid) <= value) {
|
38 |
+
low = mid + 1;
|
39 |
+
}
|
40 |
+
else {
|
41 |
+
high = mid;
|
42 |
+
}
|
43 |
+
}
|
44 |
+
return low;
|
45 |
+
}
|
46 |
+
function init_hydrate(target) {
|
47 |
+
if (target.hydrate_init)
|
48 |
+
return;
|
49 |
+
target.hydrate_init = true;
|
50 |
+
// We know that all children have claim_order values since the unclaimed have been detached if target is not <head>
|
51 |
+
let children = target.childNodes;
|
52 |
+
// If target is <head>, there may be children without claim_order
|
53 |
+
if (target.nodeName === 'HEAD') {
|
54 |
+
const myChildren = [];
|
55 |
+
for (let i = 0; i < children.length; i++) {
|
56 |
+
const node = children[i];
|
57 |
+
if (node.claim_order !== undefined) {
|
58 |
+
myChildren.push(node);
|
59 |
+
}
|
60 |
+
}
|
61 |
+
children = myChildren;
|
62 |
+
}
|
63 |
+
/*
|
64 |
+
* Reorder claimed children optimally.
|
65 |
+
* We can reorder claimed children optimally by finding the longest subsequence of
|
66 |
+
* nodes that are already claimed in order and only moving the rest. The longest
|
67 |
+
* subsequence of nodes that are claimed in order can be found by
|
68 |
+
* computing the longest increasing subsequence of .claim_order values.
|
69 |
+
*
|
70 |
+
* This algorithm is optimal in generating the least amount of reorder operations
|
71 |
+
* possible.
|
72 |
+
*
|
73 |
+
* Proof:
|
74 |
+
* We know that, given a set of reordering operations, the nodes that do not move
|
75 |
+
* always form an increasing subsequence, since they do not move among each other
|
76 |
+
* meaning that they must be already ordered among each other. Thus, the maximal
|
77 |
+
* set of nodes that do not move form a longest increasing subsequence.
|
78 |
+
*/
|
79 |
+
// Compute longest increasing subsequence
|
80 |
+
// m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j
|
81 |
+
const m = new Int32Array(children.length + 1);
|
82 |
+
// Predecessor indices + 1
|
83 |
+
const p = new Int32Array(children.length);
|
84 |
+
m[0] = -1;
|
85 |
+
let longest = 0;
|
86 |
+
for (let i = 0; i < children.length; i++) {
|
87 |
+
const current = children[i].claim_order;
|
88 |
+
// Find the largest subsequence length such that it ends in a value less than our current value
|
89 |
+
// upper_bound returns first greater value, so we subtract one
|
90 |
+
// with fast path for when we are on the current longest subsequence
|
91 |
+
const seqLen = ((longest > 0 && children[m[longest]].claim_order <= current) ? longest + 1 : upper_bound(1, longest, idx => children[m[idx]].claim_order, current)) - 1;
|
92 |
+
p[i] = m[seqLen] + 1;
|
93 |
+
const newLen = seqLen + 1;
|
94 |
+
// We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.
|
95 |
+
m[newLen] = i;
|
96 |
+
longest = Math.max(newLen, longest);
|
97 |
+
}
|
98 |
+
// The longest increasing subsequence of nodes (initially reversed)
|
99 |
+
const lis = [];
|
100 |
+
// The rest of the nodes, nodes that will be moved
|
101 |
+
const toMove = [];
|
102 |
+
let last = children.length - 1;
|
103 |
+
for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {
|
104 |
+
lis.push(children[cur - 1]);
|
105 |
+
for (; last >= cur; last--) {
|
106 |
+
toMove.push(children[last]);
|
107 |
+
}
|
108 |
+
last--;
|
109 |
+
}
|
110 |
+
for (; last >= 0; last--) {
|
111 |
+
toMove.push(children[last]);
|
112 |
+
}
|
113 |
+
lis.reverse();
|
114 |
+
// We sort the nodes being moved to guarantee that their insertion order matches the claim order
|
115 |
+
toMove.sort((a, b) => a.claim_order - b.claim_order);
|
116 |
+
// Finally, we move the nodes
|
117 |
+
for (let i = 0, j = 0; i < toMove.length; i++) {
|
118 |
+
while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {
|
119 |
+
j++;
|
120 |
+
}
|
121 |
+
const anchor = j < lis.length ? lis[j] : null;
|
122 |
+
target.insertBefore(toMove[i], anchor);
|
123 |
+
}
|
124 |
+
}
|
125 |
+
function append(target, node) {
|
126 |
+
target.appendChild(node);
|
127 |
+
}
|
128 |
+
function append_styles(target, style_sheet_id, styles) {
|
129 |
+
const append_styles_to = get_root_for_style(target);
|
130 |
+
if (!append_styles_to.getElementById(style_sheet_id)) {
|
131 |
+
const style = element('style');
|
132 |
+
style.id = style_sheet_id;
|
133 |
+
style.textContent = styles;
|
134 |
+
append_stylesheet(append_styles_to, style);
|
135 |
+
}
|
136 |
+
}
|
137 |
+
function get_root_for_style(node) {
|
138 |
+
if (!node)
|
139 |
+
return document;
|
140 |
+
const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;
|
141 |
+
if (root && root.host) {
|
142 |
+
return root;
|
143 |
+
}
|
144 |
+
return node.ownerDocument;
|
145 |
+
}
|
146 |
+
function append_stylesheet(node, style) {
|
147 |
+
append(node.head || node, style);
|
148 |
+
return style.sheet;
|
149 |
+
}
|
150 |
+
function append_hydration(target, node) {
|
151 |
+
if (is_hydrating) {
|
152 |
+
init_hydrate(target);
|
153 |
+
if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentNode !== target))) {
|
154 |
+
target.actual_end_child = target.firstChild;
|
155 |
+
}
|
156 |
+
// Skip nodes of undefined ordering
|
157 |
+
while ((target.actual_end_child !== null) && (target.actual_end_child.claim_order === undefined)) {
|
158 |
+
target.actual_end_child = target.actual_end_child.nextSibling;
|
159 |
+
}
|
160 |
+
if (node !== target.actual_end_child) {
|
161 |
+
// We only insert if the ordering of this node should be modified or the parent node is not target
|
162 |
+
if (node.claim_order !== undefined || node.parentNode !== target) {
|
163 |
+
target.insertBefore(node, target.actual_end_child);
|
164 |
+
}
|
165 |
+
}
|
166 |
+
else {
|
167 |
+
target.actual_end_child = node.nextSibling;
|
168 |
+
}
|
169 |
+
}
|
170 |
+
else if (node.parentNode !== target || node.nextSibling !== null) {
|
171 |
+
target.appendChild(node);
|
172 |
+
}
|
173 |
+
}
|
174 |
+
function insert_hydration(target, node, anchor) {
|
175 |
+
if (is_hydrating && !anchor) {
|
176 |
+
append_hydration(target, node);
|
177 |
+
}
|
178 |
+
else if (node.parentNode !== target || node.nextSibling != anchor) {
|
179 |
+
target.insertBefore(node, anchor || null);
|
180 |
+
}
|
181 |
+
}
|
182 |
+
function detach(node) {
|
183 |
+
if (node.parentNode) {
|
184 |
+
node.parentNode.removeChild(node);
|
185 |
+
}
|
186 |
+
}
|
187 |
+
function destroy_each(iterations, detaching) {
|
188 |
+
for (let i = 0; i < iterations.length; i += 1) {
|
189 |
+
if (iterations[i])
|
190 |
+
iterations[i].d(detaching);
|
191 |
+
}
|
192 |
+
}
|
193 |
+
function element(name) {
|
194 |
+
return document.createElement(name);
|
195 |
+
}
|
196 |
+
function svg_element(name) {
|
197 |
+
return document.createElementNS('http://www.w3.org/2000/svg', name);
|
198 |
+
}
|
199 |
+
function text(data) {
|
200 |
+
return document.createTextNode(data);
|
201 |
+
}
|
202 |
+
function space() {
|
203 |
+
return text(' ');
|
204 |
+
}
|
205 |
+
function empty() {
|
206 |
+
return text('');
|
207 |
+
}
|
208 |
+
function attr(node, attribute, value) {
|
209 |
+
if (value == null)
|
210 |
+
node.removeAttribute(attribute);
|
211 |
+
else if (node.getAttribute(attribute) !== value)
|
212 |
+
node.setAttribute(attribute, value);
|
213 |
+
}
|
214 |
+
function children(element) {
|
215 |
+
return Array.from(element.childNodes);
|
216 |
+
}
|
217 |
+
function init_claim_info(nodes) {
|
218 |
+
if (nodes.claim_info === undefined) {
|
219 |
+
nodes.claim_info = { last_index: 0, total_claimed: 0 };
|
220 |
+
}
|
221 |
+
}
|
222 |
+
function claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {
|
223 |
+
// Try to find nodes in an order such that we lengthen the longest increasing subsequence
|
224 |
+
init_claim_info(nodes);
|
225 |
+
const resultNode = (() => {
|
226 |
+
// We first try to find an element after the previous one
|
227 |
+
for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {
|
228 |
+
const node = nodes[i];
|
229 |
+
if (predicate(node)) {
|
230 |
+
const replacement = processNode(node);
|
231 |
+
if (replacement === undefined) {
|
232 |
+
nodes.splice(i, 1);
|
233 |
+
}
|
234 |
+
else {
|
235 |
+
nodes[i] = replacement;
|
236 |
+
}
|
237 |
+
if (!dontUpdateLastIndex) {
|
238 |
+
nodes.claim_info.last_index = i;
|
239 |
+
}
|
240 |
+
return node;
|
241 |
+
}
|
242 |
+
}
|
243 |
+
// Otherwise, we try to find one before
|
244 |
+
// We iterate in reverse so that we don't go too far back
|
245 |
+
for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {
|
246 |
+
const node = nodes[i];
|
247 |
+
if (predicate(node)) {
|
248 |
+
const replacement = processNode(node);
|
249 |
+
if (replacement === undefined) {
|
250 |
+
nodes.splice(i, 1);
|
251 |
+
}
|
252 |
+
else {
|
253 |
+
nodes[i] = replacement;
|
254 |
+
}
|
255 |
+
if (!dontUpdateLastIndex) {
|
256 |
+
nodes.claim_info.last_index = i;
|
257 |
+
}
|
258 |
+
else if (replacement === undefined) {
|
259 |
+
// Since we spliced before the last_index, we decrease it
|
260 |
+
nodes.claim_info.last_index--;
|
261 |
+
}
|
262 |
+
return node;
|
263 |
+
}
|
264 |
+
}
|
265 |
+
// If we can't find any matching node, we create a new one
|
266 |
+
return createNode();
|
267 |
+
})();
|
268 |
+
resultNode.claim_order = nodes.claim_info.total_claimed;
|
269 |
+
nodes.claim_info.total_claimed += 1;
|
270 |
+
return resultNode;
|
271 |
+
}
|
272 |
+
function claim_element_base(nodes, name, attributes, create_element) {
|
273 |
+
return claim_node(nodes, (node) => node.nodeName === name, (node) => {
|
274 |
+
const remove = [];
|
275 |
+
for (let j = 0; j < node.attributes.length; j++) {
|
276 |
+
const attribute = node.attributes[j];
|
277 |
+
if (!attributes[attribute.name]) {
|
278 |
+
remove.push(attribute.name);
|
279 |
+
}
|
280 |
+
}
|
281 |
+
remove.forEach(v => node.removeAttribute(v));
|
282 |
+
return undefined;
|
283 |
+
}, () => create_element(name));
|
284 |
+
}
|
285 |
+
function claim_element(nodes, name, attributes) {
|
286 |
+
return claim_element_base(nodes, name, attributes, element);
|
287 |
+
}
|
288 |
+
function claim_svg_element(nodes, name, attributes) {
|
289 |
+
return claim_element_base(nodes, name, attributes, svg_element);
|
290 |
+
}
|
291 |
+
function claim_text(nodes, data) {
|
292 |
+
return claim_node(nodes, (node) => node.nodeType === 3, (node) => {
|
293 |
+
const dataStr = '' + data;
|
294 |
+
if (node.data.startsWith(dataStr)) {
|
295 |
+
if (node.data.length !== dataStr.length) {
|
296 |
+
return node.splitText(dataStr.length);
|
297 |
+
}
|
298 |
+
}
|
299 |
+
else {
|
300 |
+
node.data = dataStr;
|
301 |
+
}
|
302 |
+
}, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements
|
303 |
+
);
|
304 |
+
}
|
305 |
+
function claim_space(nodes) {
|
306 |
+
return claim_text(nodes, ' ');
|
307 |
+
}
|
308 |
+
function set_data(text, data) {
|
309 |
+
data = '' + data;
|
310 |
+
if (text.wholeText !== data)
|
311 |
+
text.data = data;
|
312 |
+
}
|
313 |
+
|
314 |
+
let current_component;
|
315 |
+
function set_current_component(component) {
|
316 |
+
current_component = component;
|
317 |
+
}
|
318 |
+
|
319 |
+
const dirty_components = [];
|
320 |
+
const binding_callbacks = [];
|
321 |
+
const render_callbacks = [];
|
322 |
+
const flush_callbacks = [];
|
323 |
+
const resolved_promise = Promise.resolve();
|
324 |
+
let update_scheduled = false;
|
325 |
+
function schedule_update() {
|
326 |
+
if (!update_scheduled) {
|
327 |
+
update_scheduled = true;
|
328 |
+
resolved_promise.then(flush);
|
329 |
+
}
|
330 |
+
}
|
331 |
+
function add_render_callback(fn) {
|
332 |
+
render_callbacks.push(fn);
|
333 |
+
}
|
334 |
+
// flush() calls callbacks in this order:
|
335 |
+
// 1. All beforeUpdate callbacks, in order: parents before children
|
336 |
+
// 2. All bind:this callbacks, in reverse order: children before parents.
|
337 |
+
// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
|
338 |
+
// for afterUpdates called during the initial onMount, which are called in
|
339 |
+
// reverse order: children before parents.
|
340 |
+
// Since callbacks might update component values, which could trigger another
|
341 |
+
// call to flush(), the following steps guard against this:
|
342 |
+
// 1. During beforeUpdate, any updated components will be added to the
|
343 |
+
// dirty_components array and will cause a reentrant call to flush(). Because
|
344 |
+
// the flush index is kept outside the function, the reentrant call will pick
|
345 |
+
// up where the earlier call left off and go through all dirty components. The
|
346 |
+
// current_component value is saved and restored so that the reentrant call will
|
347 |
+
// not interfere with the "parent" flush() call.
|
348 |
+
// 2. bind:this callbacks cannot trigger new flush() calls.
|
349 |
+
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
350 |
+
// callback called a second time; the seen_callbacks set, outside the flush()
|
351 |
+
// function, guarantees this behavior.
|
352 |
+
const seen_callbacks = new Set();
|
353 |
+
let flushidx = 0; // Do *not* move this inside the flush() function
|
354 |
+
function flush() {
|
355 |
+
// Do not reenter flush while dirty components are updated, as this can
|
356 |
+
// result in an infinite loop. Instead, let the inner flush handle it.
|
357 |
+
// Reentrancy is ok afterwards for bindings etc.
|
358 |
+
if (flushidx !== 0) {
|
359 |
+
return;
|
360 |
+
}
|
361 |
+
const saved_component = current_component;
|
362 |
+
do {
|
363 |
+
// first, call beforeUpdate functions
|
364 |
+
// and update components
|
365 |
+
try {
|
366 |
+
while (flushidx < dirty_components.length) {
|
367 |
+
const component = dirty_components[flushidx];
|
368 |
+
flushidx++;
|
369 |
+
set_current_component(component);
|
370 |
+
update(component.$$);
|
371 |
+
}
|
372 |
+
}
|
373 |
+
catch (e) {
|
374 |
+
// reset dirty state to not end up in a deadlocked state and then rethrow
|
375 |
+
dirty_components.length = 0;
|
376 |
+
flushidx = 0;
|
377 |
+
throw e;
|
378 |
+
}
|
379 |
+
set_current_component(null);
|
380 |
+
dirty_components.length = 0;
|
381 |
+
flushidx = 0;
|
382 |
+
while (binding_callbacks.length)
|
383 |
+
binding_callbacks.pop()();
|
384 |
+
// then, once components are updated, call
|
385 |
+
// afterUpdate functions. This may cause
|
386 |
+
// subsequent updates...
|
387 |
+
for (let i = 0; i < render_callbacks.length; i += 1) {
|
388 |
+
const callback = render_callbacks[i];
|
389 |
+
if (!seen_callbacks.has(callback)) {
|
390 |
+
// ...so guard against infinite loops
|
391 |
+
seen_callbacks.add(callback);
|
392 |
+
callback();
|
393 |
+
}
|
394 |
+
}
|
395 |
+
render_callbacks.length = 0;
|
396 |
+
} while (dirty_components.length);
|
397 |
+
while (flush_callbacks.length) {
|
398 |
+
flush_callbacks.pop()();
|
399 |
+
}
|
400 |
+
update_scheduled = false;
|
401 |
+
seen_callbacks.clear();
|
402 |
+
set_current_component(saved_component);
|
403 |
+
}
|
404 |
+
function update($$) {
|
405 |
+
if ($$.fragment !== null) {
|
406 |
+
$$.update();
|
407 |
+
run_all($$.before_update);
|
408 |
+
const dirty = $$.dirty;
|
409 |
+
$$.dirty = [-1];
|
410 |
+
$$.fragment && $$.fragment.p($$.ctx, dirty);
|
411 |
+
$$.after_update.forEach(add_render_callback);
|
412 |
+
}
|
413 |
+
}
|
414 |
+
const outroing = new Set();
|
415 |
+
let outros;
|
416 |
+
function group_outros() {
|
417 |
+
outros = {
|
418 |
+
r: 0,
|
419 |
+
c: [],
|
420 |
+
p: outros // parent group
|
421 |
+
};
|
422 |
+
}
|
423 |
+
function check_outros() {
|
424 |
+
if (!outros.r) {
|
425 |
+
run_all(outros.c);
|
426 |
+
}
|
427 |
+
outros = outros.p;
|
428 |
+
}
|
429 |
+
function transition_in(block, local) {
|
430 |
+
if (block && block.i) {
|
431 |
+
outroing.delete(block);
|
432 |
+
block.i(local);
|
433 |
+
}
|
434 |
+
}
|
435 |
+
function transition_out(block, local, detach, callback) {
|
436 |
+
if (block && block.o) {
|
437 |
+
if (outroing.has(block))
|
438 |
+
return;
|
439 |
+
outroing.add(block);
|
440 |
+
outros.c.push(() => {
|
441 |
+
outroing.delete(block);
|
442 |
+
if (callback) {
|
443 |
+
if (detach)
|
444 |
+
block.d(1);
|
445 |
+
callback();
|
446 |
+
}
|
447 |
+
});
|
448 |
+
block.o(local);
|
449 |
+
}
|
450 |
+
else if (callback) {
|
451 |
+
callback();
|
452 |
+
}
|
453 |
+
}
|
454 |
+
function create_component(block) {
|
455 |
+
block && block.c();
|
456 |
+
}
|
457 |
+
function claim_component(block, parent_nodes) {
|
458 |
+
block && block.l(parent_nodes);
|
459 |
+
}
|
460 |
+
function mount_component(component, target, anchor, customElement) {
|
461 |
+
const { fragment, after_update } = component.$$;
|
462 |
+
fragment && fragment.m(target, anchor);
|
463 |
+
if (!customElement) {
|
464 |
+
// onMount happens before the initial afterUpdate
|
465 |
+
add_render_callback(() => {
|
466 |
+
const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);
|
467 |
+
// if the component was destroyed immediately
|
468 |
+
// it will update the `$$.on_destroy` reference to `null`.
|
469 |
+
// the destructured on_destroy may still reference to the old array
|
470 |
+
if (component.$$.on_destroy) {
|
471 |
+
component.$$.on_destroy.push(...new_on_destroy);
|
472 |
+
}
|
473 |
+
else {
|
474 |
+
// Edge case - component was destroyed immediately,
|
475 |
+
// most likely as a result of a binding initialising
|
476 |
+
run_all(new_on_destroy);
|
477 |
+
}
|
478 |
+
component.$$.on_mount = [];
|
479 |
+
});
|
480 |
+
}
|
481 |
+
after_update.forEach(add_render_callback);
|
482 |
+
}
|
483 |
+
function destroy_component(component, detaching) {
|
484 |
+
const $$ = component.$$;
|
485 |
+
if ($$.fragment !== null) {
|
486 |
+
run_all($$.on_destroy);
|
487 |
+
$$.fragment && $$.fragment.d(detaching);
|
488 |
+
// TODO null out other refs, including component.$$ (but need to
|
489 |
+
// preserve final state?)
|
490 |
+
$$.on_destroy = $$.fragment = null;
|
491 |
+
$$.ctx = [];
|
492 |
+
}
|
493 |
+
}
|
494 |
+
function make_dirty(component, i) {
|
495 |
+
if (component.$$.dirty[0] === -1) {
|
496 |
+
dirty_components.push(component);
|
497 |
+
schedule_update();
|
498 |
+
component.$$.dirty.fill(0);
|
499 |
+
}
|
500 |
+
component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
|
501 |
+
}
|
502 |
+
function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
|
503 |
+
const parent_component = current_component;
|
504 |
+
set_current_component(component);
|
505 |
+
const $$ = component.$$ = {
|
506 |
+
fragment: null,
|
507 |
+
ctx: [],
|
508 |
+
// state
|
509 |
+
props,
|
510 |
+
update: noop,
|
511 |
+
not_equal,
|
512 |
+
bound: blank_object(),
|
513 |
+
// lifecycle
|
514 |
+
on_mount: [],
|
515 |
+
on_destroy: [],
|
516 |
+
on_disconnect: [],
|
517 |
+
before_update: [],
|
518 |
+
after_update: [],
|
519 |
+
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
|
520 |
+
// everything else
|
521 |
+
callbacks: blank_object(),
|
522 |
+
dirty,
|
523 |
+
skip_bound: false,
|
524 |
+
root: options.target || parent_component.$$.root
|
525 |
+
};
|
526 |
+
append_styles && append_styles($$.root);
|
527 |
+
let ready = false;
|
528 |
+
$$.ctx = instance
|
529 |
+
? instance(component, options.props || {}, (i, ret, ...rest) => {
|
530 |
+
const value = rest.length ? rest[0] : ret;
|
531 |
+
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
532 |
+
if (!$$.skip_bound && $$.bound[i])
|
533 |
+
$$.bound[i](value);
|
534 |
+
if (ready)
|
535 |
+
make_dirty(component, i);
|
536 |
+
}
|
537 |
+
return ret;
|
538 |
+
})
|
539 |
+
: [];
|
540 |
+
$$.update();
|
541 |
+
ready = true;
|
542 |
+
run_all($$.before_update);
|
543 |
+
// `false` as a special case of no DOM component
|
544 |
+
$$.fragment = create_fragment ? create_fragment($$.ctx) : false;
|
545 |
+
if (options.target) {
|
546 |
+
if (options.hydrate) {
|
547 |
+
start_hydrating();
|
548 |
+
const nodes = children(options.target);
|
549 |
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
550 |
+
$$.fragment && $$.fragment.l(nodes);
|
551 |
+
nodes.forEach(detach);
|
552 |
+
}
|
553 |
+
else {
|
554 |
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
555 |
+
$$.fragment && $$.fragment.c();
|
556 |
+
}
|
557 |
+
if (options.intro)
|
558 |
+
transition_in(component.$$.fragment);
|
559 |
+
mount_component(component, options.target, options.anchor, options.customElement);
|
560 |
+
end_hydrating();
|
561 |
+
flush();
|
562 |
+
}
|
563 |
+
set_current_component(parent_component);
|
564 |
+
}
|
565 |
+
/**
|
566 |
+
* Base class for Svelte components. Used when dev=false.
|
567 |
+
*/
|
568 |
+
class SvelteComponent {
|
569 |
+
$destroy() {
|
570 |
+
destroy_component(this, 1);
|
571 |
+
this.$destroy = noop;
|
572 |
+
}
|
573 |
+
$on(type, callback) {
|
574 |
+
if (!is_function(callback)) {
|
575 |
+
return noop;
|
576 |
+
}
|
577 |
+
const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
|
578 |
+
callbacks.push(callback);
|
579 |
+
return () => {
|
580 |
+
const index = callbacks.indexOf(callback);
|
581 |
+
if (index !== -1)
|
582 |
+
callbacks.splice(index, 1);
|
583 |
+
};
|
584 |
+
}
|
585 |
+
$set($$props) {
|
586 |
+
if (this.$$set && !is_empty($$props)) {
|
587 |
+
this.$$.skip_bound = true;
|
588 |
+
this.$$set($$props);
|
589 |
+
this.$$.skip_bound = false;
|
590 |
+
}
|
591 |
+
}
|
592 |
+
}
|
593 |
+
|
594 |
+
/* src/AssistantBlock.svelte generated by Svelte v3.55.1 */
|
595 |
+
|
596 |
+
function add_css$3(target) {
|
597 |
+
append_styles(target, "svelte-1e3mbn4", ".model.svelte-1e3mbn4.svelte-1e3mbn4{fill:var(--logo)}.no-model.svelte-1e3mbn4.svelte-1e3mbn4{fill:var(--G3)}.model-border.svelte-1e3mbn4.svelte-1e3mbn4{border:1px solid var(--logo)}.no-model-border.svelte-1e3mbn4.svelte-1e3mbn4{border:1px solid rgba(224, 224, 224, 1)}.box.svelte-1e3mbn4.svelte-1e3mbn4{margin-top:10px;margin-bottom:10px;display:flex;align-items:start}.box.svelte-1e3mbn4 svg.svelte-1e3mbn4{min-width:24px;width:24px;margin-right:10px;margin-top:7px}.chat.svelte-1e3mbn4.svelte-1e3mbn4{border-radius:5px;margin:0px;padding:10px;overflow-wrap:anywhere}");
|
598 |
+
}
|
599 |
+
|
600 |
+
function create_fragment$3(ctx) {
|
601 |
+
let div;
|
602 |
+
let svg;
|
603 |
+
let path;
|
604 |
+
let svg_class_value;
|
605 |
+
let t0;
|
606 |
+
let p;
|
607 |
+
let t1;
|
608 |
+
let p_class_value;
|
609 |
+
|
610 |
+
return {
|
611 |
+
c() {
|
612 |
+
div = element("div");
|
613 |
+
svg = svg_element("svg");
|
614 |
+
path = svg_element("path");
|
615 |
+
t0 = space();
|
616 |
+
p = element("p");
|
617 |
+
t1 = text(/*input*/ ctx[0]);
|
618 |
+
this.h();
|
619 |
+
},
|
620 |
+
l(nodes) {
|
621 |
+
div = claim_element(nodes, "DIV", { class: true });
|
622 |
+
var div_nodes = children(div);
|
623 |
+
svg = claim_svg_element(div_nodes, "svg", { xmlns: true, viewBox: true, class: true });
|
624 |
+
var svg_nodes = children(svg);
|
625 |
+
path = claim_svg_element(svg_nodes, "path", { d: true });
|
626 |
+
children(path).forEach(detach);
|
627 |
+
svg_nodes.forEach(detach);
|
628 |
+
t0 = claim_space(div_nodes);
|
629 |
+
p = claim_element(div_nodes, "P", { class: true });
|
630 |
+
var p_nodes = children(p);
|
631 |
+
t1 = claim_text(p_nodes, /*input*/ ctx[0]);
|
632 |
+
p_nodes.forEach(detach);
|
633 |
+
div_nodes.forEach(detach);
|
634 |
+
this.h();
|
635 |
+
},
|
636 |
+
h() {
|
637 |
+
attr(path, "d", "M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z");
|
638 |
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
639 |
+
attr(svg, "viewBox", "0 0 640 512");
|
640 |
+
attr(svg, "class", svg_class_value = "" + (null_to_empty(/*output*/ ctx[1] ? "model" : "no-model") + " svelte-1e3mbn4"));
|
641 |
+
attr(p, "class", p_class_value = "chat " + (/*output*/ ctx[1] ? 'model-border' : 'no-model-border') + " svelte-1e3mbn4");
|
642 |
+
attr(div, "class", "box svelte-1e3mbn4");
|
643 |
+
},
|
644 |
+
m(target, anchor) {
|
645 |
+
insert_hydration(target, div, anchor);
|
646 |
+
append_hydration(div, svg);
|
647 |
+
append_hydration(svg, path);
|
648 |
+
append_hydration(div, t0);
|
649 |
+
append_hydration(div, p);
|
650 |
+
append_hydration(p, t1);
|
651 |
+
},
|
652 |
+
p(ctx, [dirty]) {
|
653 |
+
if (dirty & /*output*/ 2 && svg_class_value !== (svg_class_value = "" + (null_to_empty(/*output*/ ctx[1] ? "model" : "no-model") + " svelte-1e3mbn4"))) {
|
654 |
+
attr(svg, "class", svg_class_value);
|
655 |
+
}
|
656 |
+
|
657 |
+
if (dirty & /*input*/ 1) set_data(t1, /*input*/ ctx[0]);
|
658 |
+
|
659 |
+
if (dirty & /*output*/ 2 && p_class_value !== (p_class_value = "chat " + (/*output*/ ctx[1] ? 'model-border' : 'no-model-border') + " svelte-1e3mbn4")) {
|
660 |
+
attr(p, "class", p_class_value);
|
661 |
+
}
|
662 |
+
},
|
663 |
+
i: noop,
|
664 |
+
o: noop,
|
665 |
+
d(detaching) {
|
666 |
+
if (detaching) detach(div);
|
667 |
+
}
|
668 |
+
};
|
669 |
+
}
|
670 |
+
|
671 |
+
function instance$3($$self, $$props, $$invalidate) {
|
672 |
+
let { input } = $$props;
|
673 |
+
let { output = false } = $$props;
|
674 |
+
|
675 |
+
$$self.$$set = $$props => {
|
676 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
677 |
+
if ('output' in $$props) $$invalidate(1, output = $$props.output);
|
678 |
+
};
|
679 |
+
|
680 |
+
return [input, output];
|
681 |
+
}
|
682 |
+
|
683 |
+
class AssistantBlock extends SvelteComponent {
|
684 |
+
constructor(options) {
|
685 |
+
super();
|
686 |
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, { input: 0, output: 1 }, add_css$3);
|
687 |
+
}
|
688 |
+
}
|
689 |
+
|
690 |
+
/* src/SystemBlock.svelte generated by Svelte v3.55.1 */
|
691 |
+
|
692 |
+
function add_css$2(target) {
|
693 |
+
append_styles(target, "svelte-18o0ab2", "p.svelte-18o0ab2{margin:0px}");
|
694 |
+
}
|
695 |
+
|
696 |
+
function create_fragment$2(ctx) {
|
697 |
+
let p;
|
698 |
+
let b;
|
699 |
+
let t0;
|
700 |
+
let t1;
|
701 |
+
let span;
|
702 |
+
let t2;
|
703 |
+
|
704 |
+
return {
|
705 |
+
c() {
|
706 |
+
p = element("p");
|
707 |
+
b = element("b");
|
708 |
+
t0 = text("System:");
|
709 |
+
t1 = space();
|
710 |
+
span = element("span");
|
711 |
+
t2 = text(/*input*/ ctx[0]);
|
712 |
+
this.h();
|
713 |
+
},
|
714 |
+
l(nodes) {
|
715 |
+
p = claim_element(nodes, "P", { class: true });
|
716 |
+
var p_nodes = children(p);
|
717 |
+
b = claim_element(p_nodes, "B", {});
|
718 |
+
var b_nodes = children(b);
|
719 |
+
t0 = claim_text(b_nodes, "System:");
|
720 |
+
b_nodes.forEach(detach);
|
721 |
+
t1 = claim_space(p_nodes);
|
722 |
+
span = claim_element(p_nodes, "SPAN", {});
|
723 |
+
var span_nodes = children(span);
|
724 |
+
t2 = claim_text(span_nodes, /*input*/ ctx[0]);
|
725 |
+
span_nodes.forEach(detach);
|
726 |
+
p_nodes.forEach(detach);
|
727 |
+
this.h();
|
728 |
+
},
|
729 |
+
h() {
|
730 |
+
attr(p, "class", "svelte-18o0ab2");
|
731 |
+
},
|
732 |
+
m(target, anchor) {
|
733 |
+
insert_hydration(target, p, anchor);
|
734 |
+
append_hydration(p, b);
|
735 |
+
append_hydration(b, t0);
|
736 |
+
append_hydration(p, t1);
|
737 |
+
append_hydration(p, span);
|
738 |
+
append_hydration(span, t2);
|
739 |
+
},
|
740 |
+
p(ctx, [dirty]) {
|
741 |
+
if (dirty & /*input*/ 1) set_data(t2, /*input*/ ctx[0]);
|
742 |
+
},
|
743 |
+
i: noop,
|
744 |
+
o: noop,
|
745 |
+
d(detaching) {
|
746 |
+
if (detaching) detach(p);
|
747 |
+
}
|
748 |
+
};
|
749 |
+
}
|
750 |
+
|
751 |
+
function instance$2($$self, $$props, $$invalidate) {
|
752 |
+
let { input } = $$props;
|
753 |
+
|
754 |
+
$$self.$$set = $$props => {
|
755 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
756 |
+
};
|
757 |
+
|
758 |
+
return [input];
|
759 |
+
}
|
760 |
+
|
761 |
+
class SystemBlock extends SvelteComponent {
|
762 |
+
constructor(options) {
|
763 |
+
super();
|
764 |
+
init(this, options, instance$2, create_fragment$2, safe_not_equal, { input: 0 }, add_css$2);
|
765 |
+
}
|
766 |
+
}
|
767 |
+
|
768 |
+
/* src/UserBlock.svelte generated by Svelte v3.55.1 */
|
769 |
+
|
770 |
+
function add_css$1(target) {
|
771 |
+
append_styles(target, "svelte-1lys9p1", ".box.svelte-1lys9p1.svelte-1lys9p1{margin-top:10px;margin-bottom:10px;display:flex;align-items:start}.box.svelte-1lys9p1 svg.svelte-1lys9p1{min-width:24px;width:24px;margin-right:10px;margin-top:7px;fill:var(--G3)}.chat.svelte-1lys9p1.svelte-1lys9p1{border:1px solid rgba(224, 224, 224, 1);border-radius:5px;margin:0px;padding:10px;overflow-wrap:anywhere}");
|
772 |
+
}
|
773 |
+
|
774 |
+
function create_fragment$1(ctx) {
|
775 |
+
let div;
|
776 |
+
let svg;
|
777 |
+
let path;
|
778 |
+
let t0;
|
779 |
+
let p;
|
780 |
+
let t1;
|
781 |
+
|
782 |
+
return {
|
783 |
+
c() {
|
784 |
+
div = element("div");
|
785 |
+
svg = svg_element("svg");
|
786 |
+
path = svg_element("path");
|
787 |
+
t0 = space();
|
788 |
+
p = element("p");
|
789 |
+
t1 = text(/*input*/ ctx[0]);
|
790 |
+
this.h();
|
791 |
+
},
|
792 |
+
l(nodes) {
|
793 |
+
div = claim_element(nodes, "DIV", { class: true });
|
794 |
+
var div_nodes = children(div);
|
795 |
+
svg = claim_svg_element(div_nodes, "svg", { xmlns: true, viewBox: true, class: true });
|
796 |
+
var svg_nodes = children(svg);
|
797 |
+
path = claim_svg_element(svg_nodes, "path", { d: true });
|
798 |
+
children(path).forEach(detach);
|
799 |
+
svg_nodes.forEach(detach);
|
800 |
+
t0 = claim_space(div_nodes);
|
801 |
+
p = claim_element(div_nodes, "P", { class: true });
|
802 |
+
var p_nodes = children(p);
|
803 |
+
t1 = claim_text(p_nodes, /*input*/ ctx[0]);
|
804 |
+
p_nodes.forEach(detach);
|
805 |
+
div_nodes.forEach(detach);
|
806 |
+
this.h();
|
807 |
+
},
|
808 |
+
h() {
|
809 |
+
attr(path, "d", "M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z");
|
810 |
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
811 |
+
attr(svg, "viewBox", "0 0 448 512");
|
812 |
+
attr(svg, "class", "svelte-1lys9p1");
|
813 |
+
attr(p, "class", "chat svelte-1lys9p1");
|
814 |
+
attr(div, "class", "box svelte-1lys9p1");
|
815 |
+
},
|
816 |
+
m(target, anchor) {
|
817 |
+
insert_hydration(target, div, anchor);
|
818 |
+
append_hydration(div, svg);
|
819 |
+
append_hydration(svg, path);
|
820 |
+
append_hydration(div, t0);
|
821 |
+
append_hydration(div, p);
|
822 |
+
append_hydration(p, t1);
|
823 |
+
},
|
824 |
+
p(ctx, [dirty]) {
|
825 |
+
if (dirty & /*input*/ 1) set_data(t1, /*input*/ ctx[0]);
|
826 |
+
},
|
827 |
+
i: noop,
|
828 |
+
o: noop,
|
829 |
+
d(detaching) {
|
830 |
+
if (detaching) detach(div);
|
831 |
+
}
|
832 |
+
};
|
833 |
+
}
|
834 |
+
|
835 |
+
function instance$1($$self, $$props, $$invalidate) {
|
836 |
+
let { input } = $$props;
|
837 |
+
|
838 |
+
$$self.$$set = $$props => {
|
839 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
840 |
+
};
|
841 |
+
|
842 |
+
return [input];
|
843 |
+
}
|
844 |
+
|
845 |
+
class UserBlock extends SvelteComponent {
|
846 |
+
constructor(options) {
|
847 |
+
super();
|
848 |
+
init(this, options, instance$1, create_fragment$1, safe_not_equal, { input: 0 }, add_css$1);
|
849 |
+
}
|
850 |
+
}
|
851 |
+
|
852 |
+
/* src/InstanceView.svelte generated by Svelte v3.55.1 */
|
853 |
+
|
854 |
+
function add_css(target) {
|
855 |
+
append_styles(target, "svelte-eoma5v", "#container.svelte-eoma5v{border:0.5px solid rgb(224, 224, 224);min-width:350px;border-radius:2px;padding:10px}.label.svelte-eoma5v{margin-right:5px;font-weight:700}p.svelte-eoma5v{margin:5px;overflow-wrap:anywhere}");
|
856 |
+
}
|
857 |
+
|
858 |
+
function get_each_context(ctx, list, i) {
|
859 |
+
const child_ctx = ctx.slice();
|
860 |
+
child_ctx[6] = list[i];
|
861 |
+
return child_ctx;
|
862 |
+
}
|
863 |
+
|
864 |
+
// (21:2) {#if entry[dataColumn]}
|
865 |
+
function create_if_block_2(ctx) {
|
866 |
+
let current_block_type_index;
|
867 |
+
let if_block;
|
868 |
+
let if_block_anchor;
|
869 |
+
let current;
|
870 |
+
const if_block_creators = [create_if_block_3, create_else_block];
|
871 |
+
const if_blocks = [];
|
872 |
+
|
873 |
+
function select_block_type(ctx, dirty) {
|
874 |
+
if (typeof /*entry*/ ctx[0][/*dataColumn*/ ctx[3]] === "string") return 0;
|
875 |
+
return 1;
|
876 |
+
}
|
877 |
+
|
878 |
+
current_block_type_index = select_block_type(ctx);
|
879 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
880 |
+
|
881 |
+
return {
|
882 |
+
c() {
|
883 |
+
if_block.c();
|
884 |
+
if_block_anchor = empty();
|
885 |
+
},
|
886 |
+
l(nodes) {
|
887 |
+
if_block.l(nodes);
|
888 |
+
if_block_anchor = empty();
|
889 |
+
},
|
890 |
+
m(target, anchor) {
|
891 |
+
if_blocks[current_block_type_index].m(target, anchor);
|
892 |
+
insert_hydration(target, if_block_anchor, anchor);
|
893 |
+
current = true;
|
894 |
+
},
|
895 |
+
p(ctx, dirty) {
|
896 |
+
let previous_block_index = current_block_type_index;
|
897 |
+
current_block_type_index = select_block_type(ctx);
|
898 |
+
|
899 |
+
if (current_block_type_index === previous_block_index) {
|
900 |
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
901 |
+
} else {
|
902 |
+
group_outros();
|
903 |
+
|
904 |
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
905 |
+
if_blocks[previous_block_index] = null;
|
906 |
+
});
|
907 |
+
|
908 |
+
check_outros();
|
909 |
+
if_block = if_blocks[current_block_type_index];
|
910 |
+
|
911 |
+
if (!if_block) {
|
912 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
913 |
+
if_block.c();
|
914 |
+
} else {
|
915 |
+
if_block.p(ctx, dirty);
|
916 |
+
}
|
917 |
+
|
918 |
+
transition_in(if_block, 1);
|
919 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
920 |
+
}
|
921 |
+
},
|
922 |
+
i(local) {
|
923 |
+
if (current) return;
|
924 |
+
transition_in(if_block);
|
925 |
+
current = true;
|
926 |
+
},
|
927 |
+
o(local) {
|
928 |
+
transition_out(if_block);
|
929 |
+
current = false;
|
930 |
+
},
|
931 |
+
d(detaching) {
|
932 |
+
if_blocks[current_block_type_index].d(detaching);
|
933 |
+
if (detaching) detach(if_block_anchor);
|
934 |
+
}
|
935 |
+
};
|
936 |
+
}
|
937 |
+
|
938 |
+
// (24:4) {:else}
|
939 |
+
function create_else_block(ctx) {
|
940 |
+
let each_1_anchor;
|
941 |
+
let current;
|
942 |
+
let each_value = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]];
|
943 |
+
let each_blocks = [];
|
944 |
+
|
945 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
946 |
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
947 |
+
}
|
948 |
+
|
949 |
+
const out = i => transition_out(each_blocks[i], 1, 1, () => {
|
950 |
+
each_blocks[i] = null;
|
951 |
+
});
|
952 |
+
|
953 |
+
return {
|
954 |
+
c() {
|
955 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
956 |
+
each_blocks[i].c();
|
957 |
+
}
|
958 |
+
|
959 |
+
each_1_anchor = empty();
|
960 |
+
},
|
961 |
+
l(nodes) {
|
962 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
963 |
+
each_blocks[i].l(nodes);
|
964 |
+
}
|
965 |
+
|
966 |
+
each_1_anchor = empty();
|
967 |
+
},
|
968 |
+
m(target, anchor) {
|
969 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
970 |
+
each_blocks[i].m(target, anchor);
|
971 |
+
}
|
972 |
+
|
973 |
+
insert_hydration(target, each_1_anchor, anchor);
|
974 |
+
current = true;
|
975 |
+
},
|
976 |
+
p(ctx, dirty) {
|
977 |
+
if (dirty & /*entry, dataColumn*/ 9) {
|
978 |
+
each_value = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]];
|
979 |
+
let i;
|
980 |
+
|
981 |
+
for (i = 0; i < each_value.length; i += 1) {
|
982 |
+
const child_ctx = get_each_context(ctx, each_value, i);
|
983 |
+
|
984 |
+
if (each_blocks[i]) {
|
985 |
+
each_blocks[i].p(child_ctx, dirty);
|
986 |
+
transition_in(each_blocks[i], 1);
|
987 |
+
} else {
|
988 |
+
each_blocks[i] = create_each_block(child_ctx);
|
989 |
+
each_blocks[i].c();
|
990 |
+
transition_in(each_blocks[i], 1);
|
991 |
+
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
992 |
+
}
|
993 |
+
}
|
994 |
+
|
995 |
+
group_outros();
|
996 |
+
|
997 |
+
for (i = each_value.length; i < each_blocks.length; i += 1) {
|
998 |
+
out(i);
|
999 |
+
}
|
1000 |
+
|
1001 |
+
check_outros();
|
1002 |
+
}
|
1003 |
+
},
|
1004 |
+
i(local) {
|
1005 |
+
if (current) return;
|
1006 |
+
|
1007 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
1008 |
+
transition_in(each_blocks[i]);
|
1009 |
+
}
|
1010 |
+
|
1011 |
+
current = true;
|
1012 |
+
},
|
1013 |
+
o(local) {
|
1014 |
+
each_blocks = each_blocks.filter(Boolean);
|
1015 |
+
|
1016 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
1017 |
+
transition_out(each_blocks[i]);
|
1018 |
+
}
|
1019 |
+
|
1020 |
+
current = false;
|
1021 |
+
},
|
1022 |
+
d(detaching) {
|
1023 |
+
destroy_each(each_blocks, detaching);
|
1024 |
+
if (detaching) detach(each_1_anchor);
|
1025 |
+
}
|
1026 |
+
};
|
1027 |
+
}
|
1028 |
+
|
1029 |
+
// (22:4) {#if typeof entry[dataColumn] === "string"}
|
1030 |
+
function create_if_block_3(ctx) {
|
1031 |
+
let userblock;
|
1032 |
+
let current;
|
1033 |
+
|
1034 |
+
userblock = new UserBlock({
|
1035 |
+
props: {
|
1036 |
+
input: /*entry*/ ctx[0][/*dataColumn*/ ctx[3]]
|
1037 |
+
}
|
1038 |
+
});
|
1039 |
+
|
1040 |
+
return {
|
1041 |
+
c() {
|
1042 |
+
create_component(userblock.$$.fragment);
|
1043 |
+
},
|
1044 |
+
l(nodes) {
|
1045 |
+
claim_component(userblock.$$.fragment, nodes);
|
1046 |
+
},
|
1047 |
+
m(target, anchor) {
|
1048 |
+
mount_component(userblock, target, anchor);
|
1049 |
+
current = true;
|
1050 |
+
},
|
1051 |
+
p(ctx, dirty) {
|
1052 |
+
const userblock_changes = {};
|
1053 |
+
if (dirty & /*entry, dataColumn*/ 9) userblock_changes.input = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]];
|
1054 |
+
userblock.$set(userblock_changes);
|
1055 |
+
},
|
1056 |
+
i(local) {
|
1057 |
+
if (current) return;
|
1058 |
+
transition_in(userblock.$$.fragment, local);
|
1059 |
+
current = true;
|
1060 |
+
},
|
1061 |
+
o(local) {
|
1062 |
+
transition_out(userblock.$$.fragment, local);
|
1063 |
+
current = false;
|
1064 |
+
},
|
1065 |
+
d(detaching) {
|
1066 |
+
destroy_component(userblock, detaching);
|
1067 |
+
}
|
1068 |
+
};
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
// (30:42)
|
1072 |
+
function create_if_block_6(ctx) {
|
1073 |
+
let userblock;
|
1074 |
+
let current;
|
1075 |
+
|
1076 |
+
userblock = new UserBlock({
|
1077 |
+
props: { input: /*item*/ ctx[6]["content"] }
|
1078 |
+
});
|
1079 |
+
|
1080 |
+
return {
|
1081 |
+
c() {
|
1082 |
+
create_component(userblock.$$.fragment);
|
1083 |
+
},
|
1084 |
+
l(nodes) {
|
1085 |
+
claim_component(userblock.$$.fragment, nodes);
|
1086 |
+
},
|
1087 |
+
m(target, anchor) {
|
1088 |
+
mount_component(userblock, target, anchor);
|
1089 |
+
current = true;
|
1090 |
+
},
|
1091 |
+
p(ctx, dirty) {
|
1092 |
+
const userblock_changes = {};
|
1093 |
+
if (dirty & /*entry, dataColumn*/ 9) userblock_changes.input = /*item*/ ctx[6]["content"];
|
1094 |
+
userblock.$set(userblock_changes);
|
1095 |
+
},
|
1096 |
+
i(local) {
|
1097 |
+
if (current) return;
|
1098 |
+
transition_in(userblock.$$.fragment, local);
|
1099 |
+
current = true;
|
1100 |
+
},
|
1101 |
+
o(local) {
|
1102 |
+
transition_out(userblock.$$.fragment, local);
|
1103 |
+
current = false;
|
1104 |
+
},
|
1105 |
+
d(detaching) {
|
1106 |
+
destroy_component(userblock, detaching);
|
1107 |
+
}
|
1108 |
+
};
|
1109 |
+
}
|
1110 |
+
|
1111 |
+
// (28:47)
|
1112 |
+
function create_if_block_5(ctx) {
|
1113 |
+
let assistantblock;
|
1114 |
+
let current;
|
1115 |
+
|
1116 |
+
assistantblock = new AssistantBlock({
|
1117 |
+
props: { input: /*item*/ ctx[6]["content"] }
|
1118 |
+
});
|
1119 |
+
|
1120 |
+
return {
|
1121 |
+
c() {
|
1122 |
+
create_component(assistantblock.$$.fragment);
|
1123 |
+
},
|
1124 |
+
l(nodes) {
|
1125 |
+
claim_component(assistantblock.$$.fragment, nodes);
|
1126 |
+
},
|
1127 |
+
m(target, anchor) {
|
1128 |
+
mount_component(assistantblock, target, anchor);
|
1129 |
+
current = true;
|
1130 |
+
},
|
1131 |
+
p(ctx, dirty) {
|
1132 |
+
const assistantblock_changes = {};
|
1133 |
+
if (dirty & /*entry, dataColumn*/ 9) assistantblock_changes.input = /*item*/ ctx[6]["content"];
|
1134 |
+
assistantblock.$set(assistantblock_changes);
|
1135 |
+
},
|
1136 |
+
i(local) {
|
1137 |
+
if (current) return;
|
1138 |
+
transition_in(assistantblock.$$.fragment, local);
|
1139 |
+
current = true;
|
1140 |
+
},
|
1141 |
+
o(local) {
|
1142 |
+
transition_out(assistantblock.$$.fragment, local);
|
1143 |
+
current = false;
|
1144 |
+
},
|
1145 |
+
d(detaching) {
|
1146 |
+
destroy_component(assistantblock, detaching);
|
1147 |
+
}
|
1148 |
+
};
|
1149 |
+
}
|
1150 |
+
|
1151 |
+
// (26:8) {#if item["role"] === "system"}
|
1152 |
+
function create_if_block_4(ctx) {
|
1153 |
+
let systemblock;
|
1154 |
+
let current;
|
1155 |
+
|
1156 |
+
systemblock = new SystemBlock({
|
1157 |
+
props: { input: /*item*/ ctx[6]["content"] }
|
1158 |
+
});
|
1159 |
+
|
1160 |
+
return {
|
1161 |
+
c() {
|
1162 |
+
create_component(systemblock.$$.fragment);
|
1163 |
+
},
|
1164 |
+
l(nodes) {
|
1165 |
+
claim_component(systemblock.$$.fragment, nodes);
|
1166 |
+
},
|
1167 |
+
m(target, anchor) {
|
1168 |
+
mount_component(systemblock, target, anchor);
|
1169 |
+
current = true;
|
1170 |
+
},
|
1171 |
+
p(ctx, dirty) {
|
1172 |
+
const systemblock_changes = {};
|
1173 |
+
if (dirty & /*entry, dataColumn*/ 9) systemblock_changes.input = /*item*/ ctx[6]["content"];
|
1174 |
+
systemblock.$set(systemblock_changes);
|
1175 |
+
},
|
1176 |
+
i(local) {
|
1177 |
+
if (current) return;
|
1178 |
+
transition_in(systemblock.$$.fragment, local);
|
1179 |
+
current = true;
|
1180 |
+
},
|
1181 |
+
o(local) {
|
1182 |
+
transition_out(systemblock.$$.fragment, local);
|
1183 |
+
current = false;
|
1184 |
+
},
|
1185 |
+
d(detaching) {
|
1186 |
+
destroy_component(systemblock, detaching);
|
1187 |
+
}
|
1188 |
+
};
|
1189 |
+
}
|
1190 |
+
|
1191 |
+
// (25:6) {#each entry[dataColumn] as item}
|
1192 |
+
function create_each_block(ctx) {
|
1193 |
+
let current_block_type_index;
|
1194 |
+
let if_block;
|
1195 |
+
let if_block_anchor;
|
1196 |
+
let current;
|
1197 |
+
const if_block_creators = [create_if_block_4, create_if_block_5, create_if_block_6];
|
1198 |
+
const if_blocks = [];
|
1199 |
+
|
1200 |
+
function select_block_type_1(ctx, dirty) {
|
1201 |
+
if (/*item*/ ctx[6]["role"] === "system") return 0;
|
1202 |
+
if (/*item*/ ctx[6]["role"] === "assistant") return 1;
|
1203 |
+
if (/*item*/ ctx[6]["role"] === "user") return 2;
|
1204 |
+
return -1;
|
1205 |
+
}
|
1206 |
+
|
1207 |
+
if (~(current_block_type_index = select_block_type_1(ctx))) {
|
1208 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
1209 |
+
}
|
1210 |
+
|
1211 |
+
return {
|
1212 |
+
c() {
|
1213 |
+
if (if_block) if_block.c();
|
1214 |
+
if_block_anchor = empty();
|
1215 |
+
},
|
1216 |
+
l(nodes) {
|
1217 |
+
if (if_block) if_block.l(nodes);
|
1218 |
+
if_block_anchor = empty();
|
1219 |
+
},
|
1220 |
+
m(target, anchor) {
|
1221 |
+
if (~current_block_type_index) {
|
1222 |
+
if_blocks[current_block_type_index].m(target, anchor);
|
1223 |
+
}
|
1224 |
+
|
1225 |
+
insert_hydration(target, if_block_anchor, anchor);
|
1226 |
+
current = true;
|
1227 |
+
},
|
1228 |
+
p(ctx, dirty) {
|
1229 |
+
let previous_block_index = current_block_type_index;
|
1230 |
+
current_block_type_index = select_block_type_1(ctx);
|
1231 |
+
|
1232 |
+
if (current_block_type_index === previous_block_index) {
|
1233 |
+
if (~current_block_type_index) {
|
1234 |
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
1235 |
+
}
|
1236 |
+
} else {
|
1237 |
+
if (if_block) {
|
1238 |
+
group_outros();
|
1239 |
+
|
1240 |
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
1241 |
+
if_blocks[previous_block_index] = null;
|
1242 |
+
});
|
1243 |
+
|
1244 |
+
check_outros();
|
1245 |
+
}
|
1246 |
+
|
1247 |
+
if (~current_block_type_index) {
|
1248 |
+
if_block = if_blocks[current_block_type_index];
|
1249 |
+
|
1250 |
+
if (!if_block) {
|
1251 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
1252 |
+
if_block.c();
|
1253 |
+
} else {
|
1254 |
+
if_block.p(ctx, dirty);
|
1255 |
+
}
|
1256 |
+
|
1257 |
+
transition_in(if_block, 1);
|
1258 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
1259 |
+
} else {
|
1260 |
+
if_block = null;
|
1261 |
+
}
|
1262 |
+
}
|
1263 |
+
},
|
1264 |
+
i(local) {
|
1265 |
+
if (current) return;
|
1266 |
+
transition_in(if_block);
|
1267 |
+
current = true;
|
1268 |
+
},
|
1269 |
+
o(local) {
|
1270 |
+
transition_out(if_block);
|
1271 |
+
current = false;
|
1272 |
+
},
|
1273 |
+
d(detaching) {
|
1274 |
+
if (~current_block_type_index) {
|
1275 |
+
if_blocks[current_block_type_index].d(detaching);
|
1276 |
+
}
|
1277 |
+
|
1278 |
+
if (detaching) detach(if_block_anchor);
|
1279 |
+
}
|
1280 |
+
};
|
1281 |
+
}
|
1282 |
+
|
1283 |
+
// (36:2) {#if entry[modelColumn]}
|
1284 |
+
function create_if_block_1(ctx) {
|
1285 |
+
let assistantblock;
|
1286 |
+
let current;
|
1287 |
+
|
1288 |
+
assistantblock = new AssistantBlock({
|
1289 |
+
props: {
|
1290 |
+
input: /*entry*/ ctx[0][/*modelColumn*/ ctx[1]],
|
1291 |
+
output: true
|
1292 |
+
}
|
1293 |
+
});
|
1294 |
+
|
1295 |
+
return {
|
1296 |
+
c() {
|
1297 |
+
create_component(assistantblock.$$.fragment);
|
1298 |
+
},
|
1299 |
+
l(nodes) {
|
1300 |
+
claim_component(assistantblock.$$.fragment, nodes);
|
1301 |
+
},
|
1302 |
+
m(target, anchor) {
|
1303 |
+
mount_component(assistantblock, target, anchor);
|
1304 |
+
current = true;
|
1305 |
+
},
|
1306 |
+
p(ctx, dirty) {
|
1307 |
+
const assistantblock_changes = {};
|
1308 |
+
if (dirty & /*entry, modelColumn*/ 3) assistantblock_changes.input = /*entry*/ ctx[0][/*modelColumn*/ ctx[1]];
|
1309 |
+
assistantblock.$set(assistantblock_changes);
|
1310 |
+
},
|
1311 |
+
i(local) {
|
1312 |
+
if (current) return;
|
1313 |
+
transition_in(assistantblock.$$.fragment, local);
|
1314 |
+
current = true;
|
1315 |
+
},
|
1316 |
+
o(local) {
|
1317 |
+
transition_out(assistantblock.$$.fragment, local);
|
1318 |
+
current = false;
|
1319 |
+
},
|
1320 |
+
d(detaching) {
|
1321 |
+
destroy_component(assistantblock, detaching);
|
1322 |
+
}
|
1323 |
+
};
|
1324 |
+
}
|
1325 |
+
|
1326 |
+
// (39:2) {#if entry[labelColumn]}
|
1327 |
+
function create_if_block(ctx) {
|
1328 |
+
let p;
|
1329 |
+
let span;
|
1330 |
+
let t0;
|
1331 |
+
let t1;
|
1332 |
+
let t2_value = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] + "";
|
1333 |
+
let t2;
|
1334 |
+
|
1335 |
+
return {
|
1336 |
+
c() {
|
1337 |
+
p = element("p");
|
1338 |
+
span = element("span");
|
1339 |
+
t0 = text("Expected:");
|
1340 |
+
t1 = space();
|
1341 |
+
t2 = text(t2_value);
|
1342 |
+
this.h();
|
1343 |
+
},
|
1344 |
+
l(nodes) {
|
1345 |
+
p = claim_element(nodes, "P", { class: true });
|
1346 |
+
var p_nodes = children(p);
|
1347 |
+
span = claim_element(p_nodes, "SPAN", { class: true });
|
1348 |
+
var span_nodes = children(span);
|
1349 |
+
t0 = claim_text(span_nodes, "Expected:");
|
1350 |
+
span_nodes.forEach(detach);
|
1351 |
+
t1 = claim_space(p_nodes);
|
1352 |
+
t2 = claim_text(p_nodes, t2_value);
|
1353 |
+
p_nodes.forEach(detach);
|
1354 |
+
this.h();
|
1355 |
+
},
|
1356 |
+
h() {
|
1357 |
+
attr(span, "class", "label svelte-eoma5v");
|
1358 |
+
attr(p, "class", "svelte-eoma5v");
|
1359 |
+
},
|
1360 |
+
m(target, anchor) {
|
1361 |
+
insert_hydration(target, p, anchor);
|
1362 |
+
append_hydration(p, span);
|
1363 |
+
append_hydration(span, t0);
|
1364 |
+
append_hydration(p, t1);
|
1365 |
+
append_hydration(p, t2);
|
1366 |
+
},
|
1367 |
+
p(ctx, dirty) {
|
1368 |
+
if (dirty & /*entry, labelColumn*/ 5 && t2_value !== (t2_value = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] + "")) set_data(t2, t2_value);
|
1369 |
+
},
|
1370 |
+
d(detaching) {
|
1371 |
+
if (detaching) detach(p);
|
1372 |
+
}
|
1373 |
+
};
|
1374 |
+
}
|
1375 |
+
|
1376 |
+
function create_fragment(ctx) {
|
1377 |
+
let div;
|
1378 |
+
let t0;
|
1379 |
+
let t1;
|
1380 |
+
let current;
|
1381 |
+
let if_block0 = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]] && create_if_block_2(ctx);
|
1382 |
+
let if_block1 = /*entry*/ ctx[0][/*modelColumn*/ ctx[1]] && create_if_block_1(ctx);
|
1383 |
+
let if_block2 = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] && create_if_block(ctx);
|
1384 |
+
|
1385 |
+
return {
|
1386 |
+
c() {
|
1387 |
+
div = element("div");
|
1388 |
+
if (if_block0) if_block0.c();
|
1389 |
+
t0 = space();
|
1390 |
+
if (if_block1) if_block1.c();
|
1391 |
+
t1 = space();
|
1392 |
+
if (if_block2) if_block2.c();
|
1393 |
+
this.h();
|
1394 |
+
},
|
1395 |
+
l(nodes) {
|
1396 |
+
div = claim_element(nodes, "DIV", { id: true, class: true });
|
1397 |
+
var div_nodes = children(div);
|
1398 |
+
if (if_block0) if_block0.l(div_nodes);
|
1399 |
+
t0 = claim_space(div_nodes);
|
1400 |
+
if (if_block1) if_block1.l(div_nodes);
|
1401 |
+
t1 = claim_space(div_nodes);
|
1402 |
+
if (if_block2) if_block2.l(div_nodes);
|
1403 |
+
div_nodes.forEach(detach);
|
1404 |
+
this.h();
|
1405 |
+
},
|
1406 |
+
h() {
|
1407 |
+
attr(div, "id", "container");
|
1408 |
+
attr(div, "class", "svelte-eoma5v");
|
1409 |
+
},
|
1410 |
+
m(target, anchor) {
|
1411 |
+
insert_hydration(target, div, anchor);
|
1412 |
+
if (if_block0) if_block0.m(div, null);
|
1413 |
+
append_hydration(div, t0);
|
1414 |
+
if (if_block1) if_block1.m(div, null);
|
1415 |
+
append_hydration(div, t1);
|
1416 |
+
if (if_block2) if_block2.m(div, null);
|
1417 |
+
current = true;
|
1418 |
+
},
|
1419 |
+
p(ctx, [dirty]) {
|
1420 |
+
if (/*entry*/ ctx[0][/*dataColumn*/ ctx[3]]) {
|
1421 |
+
if (if_block0) {
|
1422 |
+
if_block0.p(ctx, dirty);
|
1423 |
+
|
1424 |
+
if (dirty & /*entry, dataColumn*/ 9) {
|
1425 |
+
transition_in(if_block0, 1);
|
1426 |
+
}
|
1427 |
+
} else {
|
1428 |
+
if_block0 = create_if_block_2(ctx);
|
1429 |
+
if_block0.c();
|
1430 |
+
transition_in(if_block0, 1);
|
1431 |
+
if_block0.m(div, t0);
|
1432 |
+
}
|
1433 |
+
} else if (if_block0) {
|
1434 |
+
group_outros();
|
1435 |
+
|
1436 |
+
transition_out(if_block0, 1, 1, () => {
|
1437 |
+
if_block0 = null;
|
1438 |
+
});
|
1439 |
+
|
1440 |
+
check_outros();
|
1441 |
+
}
|
1442 |
+
|
1443 |
+
if (/*entry*/ ctx[0][/*modelColumn*/ ctx[1]]) {
|
1444 |
+
if (if_block1) {
|
1445 |
+
if_block1.p(ctx, dirty);
|
1446 |
+
|
1447 |
+
if (dirty & /*entry, modelColumn*/ 3) {
|
1448 |
+
transition_in(if_block1, 1);
|
1449 |
+
}
|
1450 |
+
} else {
|
1451 |
+
if_block1 = create_if_block_1(ctx);
|
1452 |
+
if_block1.c();
|
1453 |
+
transition_in(if_block1, 1);
|
1454 |
+
if_block1.m(div, t1);
|
1455 |
+
}
|
1456 |
+
} else if (if_block1) {
|
1457 |
+
group_outros();
|
1458 |
+
|
1459 |
+
transition_out(if_block1, 1, 1, () => {
|
1460 |
+
if_block1 = null;
|
1461 |
+
});
|
1462 |
+
|
1463 |
+
check_outros();
|
1464 |
+
}
|
1465 |
+
|
1466 |
+
if (/*entry*/ ctx[0][/*labelColumn*/ ctx[2]]) {
|
1467 |
+
if (if_block2) {
|
1468 |
+
if_block2.p(ctx, dirty);
|
1469 |
+
} else {
|
1470 |
+
if_block2 = create_if_block(ctx);
|
1471 |
+
if_block2.c();
|
1472 |
+
if_block2.m(div, null);
|
1473 |
+
}
|
1474 |
+
} else if (if_block2) {
|
1475 |
+
if_block2.d(1);
|
1476 |
+
if_block2 = null;
|
1477 |
+
}
|
1478 |
+
},
|
1479 |
+
i(local) {
|
1480 |
+
if (current) return;
|
1481 |
+
transition_in(if_block0);
|
1482 |
+
transition_in(if_block1);
|
1483 |
+
current = true;
|
1484 |
+
},
|
1485 |
+
o(local) {
|
1486 |
+
transition_out(if_block0);
|
1487 |
+
transition_out(if_block1);
|
1488 |
+
current = false;
|
1489 |
+
},
|
1490 |
+
d(detaching) {
|
1491 |
+
if (detaching) detach(div);
|
1492 |
+
if (if_block0) if_block0.d();
|
1493 |
+
if (if_block1) if_block1.d();
|
1494 |
+
if (if_block2) if_block2.d();
|
1495 |
+
}
|
1496 |
+
};
|
1497 |
+
}
|
1498 |
+
|
1499 |
+
function instance($$self, $$props, $$invalidate) {
|
1500 |
+
let { options } = $$props;
|
1501 |
+
let { entry } = $$props;
|
1502 |
+
let { modelColumn } = $$props;
|
1503 |
+
let { labelColumn } = $$props;
|
1504 |
+
let { dataColumn } = $$props;
|
1505 |
+
let { idColumn } = $$props;
|
1506 |
+
|
1507 |
+
$$self.$$set = $$props => {
|
1508 |
+
if ('options' in $$props) $$invalidate(4, options = $$props.options);
|
1509 |
+
if ('entry' in $$props) $$invalidate(0, entry = $$props.entry);
|
1510 |
+
if ('modelColumn' in $$props) $$invalidate(1, modelColumn = $$props.modelColumn);
|
1511 |
+
if ('labelColumn' in $$props) $$invalidate(2, labelColumn = $$props.labelColumn);
|
1512 |
+
if ('dataColumn' in $$props) $$invalidate(3, dataColumn = $$props.dataColumn);
|
1513 |
+
if ('idColumn' in $$props) $$invalidate(5, idColumn = $$props.idColumn);
|
1514 |
+
};
|
1515 |
+
|
1516 |
+
return [entry, modelColumn, labelColumn, dataColumn, options, idColumn];
|
1517 |
+
}
|
1518 |
+
|
1519 |
+
class InstanceView extends SvelteComponent {
|
1520 |
+
constructor(options) {
|
1521 |
+
super();
|
1522 |
+
|
1523 |
+
init(
|
1524 |
+
this,
|
1525 |
+
options,
|
1526 |
+
instance,
|
1527 |
+
create_fragment,
|
1528 |
+
safe_not_equal,
|
1529 |
+
{
|
1530 |
+
options: 4,
|
1531 |
+
entry: 0,
|
1532 |
+
modelColumn: 1,
|
1533 |
+
labelColumn: 2,
|
1534 |
+
dataColumn: 3,
|
1535 |
+
idColumn: 5
|
1536 |
+
},
|
1537 |
+
add_css
|
1538 |
+
);
|
1539 |
+
}
|
1540 |
+
}
|
1541 |
+
|
1542 |
+
function getInstance(
|
1543 |
+
div,
|
1544 |
+
viewOptions,
|
1545 |
+
entry,
|
1546 |
+
modelColumn,
|
1547 |
+
labelColumn,
|
1548 |
+
dataColumn,
|
1549 |
+
idColumn
|
1550 |
+
) {
|
1551 |
+
new InstanceView({
|
1552 |
+
target: div,
|
1553 |
+
props: {
|
1554 |
+
entry: entry,
|
1555 |
+
viewOptions: viewOptions,
|
1556 |
+
modelColumn: modelColumn,
|
1557 |
+
labelColumn: labelColumn,
|
1558 |
+
dataColumn: dataColumn,
|
1559 |
+
idColumn: idColumn,
|
1560 |
+
},
|
1561 |
+
hydrate: true,
|
1562 |
+
});
|
1563 |
+
}
|
1564 |
+
|
1565 |
+
// export function getOptions(div, setOptions) {
|
1566 |
+
// new OptionsView({
|
1567 |
+
// target: div,
|
1568 |
+
// props: {
|
1569 |
+
// setOptions,
|
1570 |
+
// },
|
1571 |
+
// });
|
1572 |
+
// }
|
1573 |
+
|
1574 |
+
export { getInstance };
|
evals/.zeno_cache_med-mcqa/OUTPUTgpt-3_5-turbo.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9a1dea80f5d14daf234f4b17afb362862c91dc756d3c35b73773b52f2ee4a09a
|
3 |
+
size 14751
|
evals/.zeno_cache_med-mcqa/OUTPUTgpt-4.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c387eaf2a1a91b61d8c423f5fcf03a1b041910167503ff338616cf10d71678bd
|
3 |
+
size 14181
|
evals/.zeno_cache_med-mcqa/POSTDISTILLcorrectgpt-3_5-turbo.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:93a1ea71707e92e1d1c0e5da10558617f1620ceed9393131b0d0b5e343311f0a
|
3 |
+
size 7084
|
evals/.zeno_cache_med-mcqa/POSTDISTILLcorrectgpt-4.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0b25a0cab75b70977ab5607ca6fc618f6568f412831fa415750c2d0c5f96ebc3
|
3 |
+
size 7076
|
evals/.zeno_cache_med-mcqa/folders.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec0a6ccf9debf1c16781445c4b9106080d00478b0559469336db7c7b7b9711c8
|
3 |
+
size 5
|
evals/.zeno_cache_med-mcqa/reports.pickle
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ec0a6ccf9debf1c16781445c4b9106080d00478b0559469336db7c7b7b9711c8
|
3 |
+
size 5
|
evals/.zeno_cache_med-mcqa/view.mjs
ADDED
@@ -0,0 +1,1574 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function noop() { }
|
2 |
+
function run(fn) {
|
3 |
+
return fn();
|
4 |
+
}
|
5 |
+
function blank_object() {
|
6 |
+
return Object.create(null);
|
7 |
+
}
|
8 |
+
function run_all(fns) {
|
9 |
+
fns.forEach(run);
|
10 |
+
}
|
11 |
+
function is_function(thing) {
|
12 |
+
return typeof thing === 'function';
|
13 |
+
}
|
14 |
+
function safe_not_equal(a, b) {
|
15 |
+
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
|
16 |
+
}
|
17 |
+
function is_empty(obj) {
|
18 |
+
return Object.keys(obj).length === 0;
|
19 |
+
}
|
20 |
+
function null_to_empty(value) {
|
21 |
+
return value == null ? '' : value;
|
22 |
+
}
|
23 |
+
|
24 |
+
// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM
|
25 |
+
// at the end of hydration without touching the remaining nodes.
|
26 |
+
let is_hydrating = false;
|
27 |
+
function start_hydrating() {
|
28 |
+
is_hydrating = true;
|
29 |
+
}
|
30 |
+
function end_hydrating() {
|
31 |
+
is_hydrating = false;
|
32 |
+
}
|
33 |
+
function upper_bound(low, high, key, value) {
|
34 |
+
// Return first index of value larger than input value in the range [low, high)
|
35 |
+
while (low < high) {
|
36 |
+
const mid = low + ((high - low) >> 1);
|
37 |
+
if (key(mid) <= value) {
|
38 |
+
low = mid + 1;
|
39 |
+
}
|
40 |
+
else {
|
41 |
+
high = mid;
|
42 |
+
}
|
43 |
+
}
|
44 |
+
return low;
|
45 |
+
}
|
46 |
+
function init_hydrate(target) {
|
47 |
+
if (target.hydrate_init)
|
48 |
+
return;
|
49 |
+
target.hydrate_init = true;
|
50 |
+
// We know that all children have claim_order values since the unclaimed have been detached if target is not <head>
|
51 |
+
let children = target.childNodes;
|
52 |
+
// If target is <head>, there may be children without claim_order
|
53 |
+
if (target.nodeName === 'HEAD') {
|
54 |
+
const myChildren = [];
|
55 |
+
for (let i = 0; i < children.length; i++) {
|
56 |
+
const node = children[i];
|
57 |
+
if (node.claim_order !== undefined) {
|
58 |
+
myChildren.push(node);
|
59 |
+
}
|
60 |
+
}
|
61 |
+
children = myChildren;
|
62 |
+
}
|
63 |
+
/*
|
64 |
+
* Reorder claimed children optimally.
|
65 |
+
* We can reorder claimed children optimally by finding the longest subsequence of
|
66 |
+
* nodes that are already claimed in order and only moving the rest. The longest
|
67 |
+
* subsequence of nodes that are claimed in order can be found by
|
68 |
+
* computing the longest increasing subsequence of .claim_order values.
|
69 |
+
*
|
70 |
+
* This algorithm is optimal in generating the least amount of reorder operations
|
71 |
+
* possible.
|
72 |
+
*
|
73 |
+
* Proof:
|
74 |
+
* We know that, given a set of reordering operations, the nodes that do not move
|
75 |
+
* always form an increasing subsequence, since they do not move among each other
|
76 |
+
* meaning that they must be already ordered among each other. Thus, the maximal
|
77 |
+
* set of nodes that do not move form a longest increasing subsequence.
|
78 |
+
*/
|
79 |
+
// Compute longest increasing subsequence
|
80 |
+
// m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j
|
81 |
+
const m = new Int32Array(children.length + 1);
|
82 |
+
// Predecessor indices + 1
|
83 |
+
const p = new Int32Array(children.length);
|
84 |
+
m[0] = -1;
|
85 |
+
let longest = 0;
|
86 |
+
for (let i = 0; i < children.length; i++) {
|
87 |
+
const current = children[i].claim_order;
|
88 |
+
// Find the largest subsequence length such that it ends in a value less than our current value
|
89 |
+
// upper_bound returns first greater value, so we subtract one
|
90 |
+
// with fast path for when we are on the current longest subsequence
|
91 |
+
const seqLen = ((longest > 0 && children[m[longest]].claim_order <= current) ? longest + 1 : upper_bound(1, longest, idx => children[m[idx]].claim_order, current)) - 1;
|
92 |
+
p[i] = m[seqLen] + 1;
|
93 |
+
const newLen = seqLen + 1;
|
94 |
+
// We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.
|
95 |
+
m[newLen] = i;
|
96 |
+
longest = Math.max(newLen, longest);
|
97 |
+
}
|
98 |
+
// The longest increasing subsequence of nodes (initially reversed)
|
99 |
+
const lis = [];
|
100 |
+
// The rest of the nodes, nodes that will be moved
|
101 |
+
const toMove = [];
|
102 |
+
let last = children.length - 1;
|
103 |
+
for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {
|
104 |
+
lis.push(children[cur - 1]);
|
105 |
+
for (; last >= cur; last--) {
|
106 |
+
toMove.push(children[last]);
|
107 |
+
}
|
108 |
+
last--;
|
109 |
+
}
|
110 |
+
for (; last >= 0; last--) {
|
111 |
+
toMove.push(children[last]);
|
112 |
+
}
|
113 |
+
lis.reverse();
|
114 |
+
// We sort the nodes being moved to guarantee that their insertion order matches the claim order
|
115 |
+
toMove.sort((a, b) => a.claim_order - b.claim_order);
|
116 |
+
// Finally, we move the nodes
|
117 |
+
for (let i = 0, j = 0; i < toMove.length; i++) {
|
118 |
+
while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {
|
119 |
+
j++;
|
120 |
+
}
|
121 |
+
const anchor = j < lis.length ? lis[j] : null;
|
122 |
+
target.insertBefore(toMove[i], anchor);
|
123 |
+
}
|
124 |
+
}
|
125 |
+
function append(target, node) {
|
126 |
+
target.appendChild(node);
|
127 |
+
}
|
128 |
+
function append_styles(target, style_sheet_id, styles) {
|
129 |
+
const append_styles_to = get_root_for_style(target);
|
130 |
+
if (!append_styles_to.getElementById(style_sheet_id)) {
|
131 |
+
const style = element('style');
|
132 |
+
style.id = style_sheet_id;
|
133 |
+
style.textContent = styles;
|
134 |
+
append_stylesheet(append_styles_to, style);
|
135 |
+
}
|
136 |
+
}
|
137 |
+
function get_root_for_style(node) {
|
138 |
+
if (!node)
|
139 |
+
return document;
|
140 |
+
const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;
|
141 |
+
if (root && root.host) {
|
142 |
+
return root;
|
143 |
+
}
|
144 |
+
return node.ownerDocument;
|
145 |
+
}
|
146 |
+
function append_stylesheet(node, style) {
|
147 |
+
append(node.head || node, style);
|
148 |
+
return style.sheet;
|
149 |
+
}
|
150 |
+
function append_hydration(target, node) {
|
151 |
+
if (is_hydrating) {
|
152 |
+
init_hydrate(target);
|
153 |
+
if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentNode !== target))) {
|
154 |
+
target.actual_end_child = target.firstChild;
|
155 |
+
}
|
156 |
+
// Skip nodes of undefined ordering
|
157 |
+
while ((target.actual_end_child !== null) && (target.actual_end_child.claim_order === undefined)) {
|
158 |
+
target.actual_end_child = target.actual_end_child.nextSibling;
|
159 |
+
}
|
160 |
+
if (node !== target.actual_end_child) {
|
161 |
+
// We only insert if the ordering of this node should be modified or the parent node is not target
|
162 |
+
if (node.claim_order !== undefined || node.parentNode !== target) {
|
163 |
+
target.insertBefore(node, target.actual_end_child);
|
164 |
+
}
|
165 |
+
}
|
166 |
+
else {
|
167 |
+
target.actual_end_child = node.nextSibling;
|
168 |
+
}
|
169 |
+
}
|
170 |
+
else if (node.parentNode !== target || node.nextSibling !== null) {
|
171 |
+
target.appendChild(node);
|
172 |
+
}
|
173 |
+
}
|
174 |
+
function insert_hydration(target, node, anchor) {
|
175 |
+
if (is_hydrating && !anchor) {
|
176 |
+
append_hydration(target, node);
|
177 |
+
}
|
178 |
+
else if (node.parentNode !== target || node.nextSibling != anchor) {
|
179 |
+
target.insertBefore(node, anchor || null);
|
180 |
+
}
|
181 |
+
}
|
182 |
+
function detach(node) {
|
183 |
+
if (node.parentNode) {
|
184 |
+
node.parentNode.removeChild(node);
|
185 |
+
}
|
186 |
+
}
|
187 |
+
function destroy_each(iterations, detaching) {
|
188 |
+
for (let i = 0; i < iterations.length; i += 1) {
|
189 |
+
if (iterations[i])
|
190 |
+
iterations[i].d(detaching);
|
191 |
+
}
|
192 |
+
}
|
193 |
+
function element(name) {
|
194 |
+
return document.createElement(name);
|
195 |
+
}
|
196 |
+
function svg_element(name) {
|
197 |
+
return document.createElementNS('http://www.w3.org/2000/svg', name);
|
198 |
+
}
|
199 |
+
function text(data) {
|
200 |
+
return document.createTextNode(data);
|
201 |
+
}
|
202 |
+
function space() {
|
203 |
+
return text(' ');
|
204 |
+
}
|
205 |
+
function empty() {
|
206 |
+
return text('');
|
207 |
+
}
|
208 |
+
function attr(node, attribute, value) {
|
209 |
+
if (value == null)
|
210 |
+
node.removeAttribute(attribute);
|
211 |
+
else if (node.getAttribute(attribute) !== value)
|
212 |
+
node.setAttribute(attribute, value);
|
213 |
+
}
|
214 |
+
function children(element) {
|
215 |
+
return Array.from(element.childNodes);
|
216 |
+
}
|
217 |
+
function init_claim_info(nodes) {
|
218 |
+
if (nodes.claim_info === undefined) {
|
219 |
+
nodes.claim_info = { last_index: 0, total_claimed: 0 };
|
220 |
+
}
|
221 |
+
}
|
222 |
+
function claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {
|
223 |
+
// Try to find nodes in an order such that we lengthen the longest increasing subsequence
|
224 |
+
init_claim_info(nodes);
|
225 |
+
const resultNode = (() => {
|
226 |
+
// We first try to find an element after the previous one
|
227 |
+
for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {
|
228 |
+
const node = nodes[i];
|
229 |
+
if (predicate(node)) {
|
230 |
+
const replacement = processNode(node);
|
231 |
+
if (replacement === undefined) {
|
232 |
+
nodes.splice(i, 1);
|
233 |
+
}
|
234 |
+
else {
|
235 |
+
nodes[i] = replacement;
|
236 |
+
}
|
237 |
+
if (!dontUpdateLastIndex) {
|
238 |
+
nodes.claim_info.last_index = i;
|
239 |
+
}
|
240 |
+
return node;
|
241 |
+
}
|
242 |
+
}
|
243 |
+
// Otherwise, we try to find one before
|
244 |
+
// We iterate in reverse so that we don't go too far back
|
245 |
+
for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {
|
246 |
+
const node = nodes[i];
|
247 |
+
if (predicate(node)) {
|
248 |
+
const replacement = processNode(node);
|
249 |
+
if (replacement === undefined) {
|
250 |
+
nodes.splice(i, 1);
|
251 |
+
}
|
252 |
+
else {
|
253 |
+
nodes[i] = replacement;
|
254 |
+
}
|
255 |
+
if (!dontUpdateLastIndex) {
|
256 |
+
nodes.claim_info.last_index = i;
|
257 |
+
}
|
258 |
+
else if (replacement === undefined) {
|
259 |
+
// Since we spliced before the last_index, we decrease it
|
260 |
+
nodes.claim_info.last_index--;
|
261 |
+
}
|
262 |
+
return node;
|
263 |
+
}
|
264 |
+
}
|
265 |
+
// If we can't find any matching node, we create a new one
|
266 |
+
return createNode();
|
267 |
+
})();
|
268 |
+
resultNode.claim_order = nodes.claim_info.total_claimed;
|
269 |
+
nodes.claim_info.total_claimed += 1;
|
270 |
+
return resultNode;
|
271 |
+
}
|
272 |
+
function claim_element_base(nodes, name, attributes, create_element) {
|
273 |
+
return claim_node(nodes, (node) => node.nodeName === name, (node) => {
|
274 |
+
const remove = [];
|
275 |
+
for (let j = 0; j < node.attributes.length; j++) {
|
276 |
+
const attribute = node.attributes[j];
|
277 |
+
if (!attributes[attribute.name]) {
|
278 |
+
remove.push(attribute.name);
|
279 |
+
}
|
280 |
+
}
|
281 |
+
remove.forEach(v => node.removeAttribute(v));
|
282 |
+
return undefined;
|
283 |
+
}, () => create_element(name));
|
284 |
+
}
|
285 |
+
function claim_element(nodes, name, attributes) {
|
286 |
+
return claim_element_base(nodes, name, attributes, element);
|
287 |
+
}
|
288 |
+
function claim_svg_element(nodes, name, attributes) {
|
289 |
+
return claim_element_base(nodes, name, attributes, svg_element);
|
290 |
+
}
|
291 |
+
function claim_text(nodes, data) {
|
292 |
+
return claim_node(nodes, (node) => node.nodeType === 3, (node) => {
|
293 |
+
const dataStr = '' + data;
|
294 |
+
if (node.data.startsWith(dataStr)) {
|
295 |
+
if (node.data.length !== dataStr.length) {
|
296 |
+
return node.splitText(dataStr.length);
|
297 |
+
}
|
298 |
+
}
|
299 |
+
else {
|
300 |
+
node.data = dataStr;
|
301 |
+
}
|
302 |
+
}, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements
|
303 |
+
);
|
304 |
+
}
|
305 |
+
function claim_space(nodes) {
|
306 |
+
return claim_text(nodes, ' ');
|
307 |
+
}
|
308 |
+
function set_data(text, data) {
|
309 |
+
data = '' + data;
|
310 |
+
if (text.wholeText !== data)
|
311 |
+
text.data = data;
|
312 |
+
}
|
313 |
+
|
314 |
+
let current_component;
|
315 |
+
function set_current_component(component) {
|
316 |
+
current_component = component;
|
317 |
+
}
|
318 |
+
|
319 |
+
const dirty_components = [];
|
320 |
+
const binding_callbacks = [];
|
321 |
+
const render_callbacks = [];
|
322 |
+
const flush_callbacks = [];
|
323 |
+
const resolved_promise = Promise.resolve();
|
324 |
+
let update_scheduled = false;
|
325 |
+
function schedule_update() {
|
326 |
+
if (!update_scheduled) {
|
327 |
+
update_scheduled = true;
|
328 |
+
resolved_promise.then(flush);
|
329 |
+
}
|
330 |
+
}
|
331 |
+
function add_render_callback(fn) {
|
332 |
+
render_callbacks.push(fn);
|
333 |
+
}
|
334 |
+
// flush() calls callbacks in this order:
|
335 |
+
// 1. All beforeUpdate callbacks, in order: parents before children
|
336 |
+
// 2. All bind:this callbacks, in reverse order: children before parents.
|
337 |
+
// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT
|
338 |
+
// for afterUpdates called during the initial onMount, which are called in
|
339 |
+
// reverse order: children before parents.
|
340 |
+
// Since callbacks might update component values, which could trigger another
|
341 |
+
// call to flush(), the following steps guard against this:
|
342 |
+
// 1. During beforeUpdate, any updated components will be added to the
|
343 |
+
// dirty_components array and will cause a reentrant call to flush(). Because
|
344 |
+
// the flush index is kept outside the function, the reentrant call will pick
|
345 |
+
// up where the earlier call left off and go through all dirty components. The
|
346 |
+
// current_component value is saved and restored so that the reentrant call will
|
347 |
+
// not interfere with the "parent" flush() call.
|
348 |
+
// 2. bind:this callbacks cannot trigger new flush() calls.
|
349 |
+
// 3. During afterUpdate, any updated components will NOT have their afterUpdate
|
350 |
+
// callback called a second time; the seen_callbacks set, outside the flush()
|
351 |
+
// function, guarantees this behavior.
|
352 |
+
const seen_callbacks = new Set();
|
353 |
+
let flushidx = 0; // Do *not* move this inside the flush() function
|
354 |
+
function flush() {
|
355 |
+
// Do not reenter flush while dirty components are updated, as this can
|
356 |
+
// result in an infinite loop. Instead, let the inner flush handle it.
|
357 |
+
// Reentrancy is ok afterwards for bindings etc.
|
358 |
+
if (flushidx !== 0) {
|
359 |
+
return;
|
360 |
+
}
|
361 |
+
const saved_component = current_component;
|
362 |
+
do {
|
363 |
+
// first, call beforeUpdate functions
|
364 |
+
// and update components
|
365 |
+
try {
|
366 |
+
while (flushidx < dirty_components.length) {
|
367 |
+
const component = dirty_components[flushidx];
|
368 |
+
flushidx++;
|
369 |
+
set_current_component(component);
|
370 |
+
update(component.$$);
|
371 |
+
}
|
372 |
+
}
|
373 |
+
catch (e) {
|
374 |
+
// reset dirty state to not end up in a deadlocked state and then rethrow
|
375 |
+
dirty_components.length = 0;
|
376 |
+
flushidx = 0;
|
377 |
+
throw e;
|
378 |
+
}
|
379 |
+
set_current_component(null);
|
380 |
+
dirty_components.length = 0;
|
381 |
+
flushidx = 0;
|
382 |
+
while (binding_callbacks.length)
|
383 |
+
binding_callbacks.pop()();
|
384 |
+
// then, once components are updated, call
|
385 |
+
// afterUpdate functions. This may cause
|
386 |
+
// subsequent updates...
|
387 |
+
for (let i = 0; i < render_callbacks.length; i += 1) {
|
388 |
+
const callback = render_callbacks[i];
|
389 |
+
if (!seen_callbacks.has(callback)) {
|
390 |
+
// ...so guard against infinite loops
|
391 |
+
seen_callbacks.add(callback);
|
392 |
+
callback();
|
393 |
+
}
|
394 |
+
}
|
395 |
+
render_callbacks.length = 0;
|
396 |
+
} while (dirty_components.length);
|
397 |
+
while (flush_callbacks.length) {
|
398 |
+
flush_callbacks.pop()();
|
399 |
+
}
|
400 |
+
update_scheduled = false;
|
401 |
+
seen_callbacks.clear();
|
402 |
+
set_current_component(saved_component);
|
403 |
+
}
|
404 |
+
function update($$) {
|
405 |
+
if ($$.fragment !== null) {
|
406 |
+
$$.update();
|
407 |
+
run_all($$.before_update);
|
408 |
+
const dirty = $$.dirty;
|
409 |
+
$$.dirty = [-1];
|
410 |
+
$$.fragment && $$.fragment.p($$.ctx, dirty);
|
411 |
+
$$.after_update.forEach(add_render_callback);
|
412 |
+
}
|
413 |
+
}
|
414 |
+
const outroing = new Set();
|
415 |
+
let outros;
|
416 |
+
function group_outros() {
|
417 |
+
outros = {
|
418 |
+
r: 0,
|
419 |
+
c: [],
|
420 |
+
p: outros // parent group
|
421 |
+
};
|
422 |
+
}
|
423 |
+
function check_outros() {
|
424 |
+
if (!outros.r) {
|
425 |
+
run_all(outros.c);
|
426 |
+
}
|
427 |
+
outros = outros.p;
|
428 |
+
}
|
429 |
+
function transition_in(block, local) {
|
430 |
+
if (block && block.i) {
|
431 |
+
outroing.delete(block);
|
432 |
+
block.i(local);
|
433 |
+
}
|
434 |
+
}
|
435 |
+
function transition_out(block, local, detach, callback) {
|
436 |
+
if (block && block.o) {
|
437 |
+
if (outroing.has(block))
|
438 |
+
return;
|
439 |
+
outroing.add(block);
|
440 |
+
outros.c.push(() => {
|
441 |
+
outroing.delete(block);
|
442 |
+
if (callback) {
|
443 |
+
if (detach)
|
444 |
+
block.d(1);
|
445 |
+
callback();
|
446 |
+
}
|
447 |
+
});
|
448 |
+
block.o(local);
|
449 |
+
}
|
450 |
+
else if (callback) {
|
451 |
+
callback();
|
452 |
+
}
|
453 |
+
}
|
454 |
+
function create_component(block) {
|
455 |
+
block && block.c();
|
456 |
+
}
|
457 |
+
function claim_component(block, parent_nodes) {
|
458 |
+
block && block.l(parent_nodes);
|
459 |
+
}
|
460 |
+
function mount_component(component, target, anchor, customElement) {
|
461 |
+
const { fragment, after_update } = component.$$;
|
462 |
+
fragment && fragment.m(target, anchor);
|
463 |
+
if (!customElement) {
|
464 |
+
// onMount happens before the initial afterUpdate
|
465 |
+
add_render_callback(() => {
|
466 |
+
const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);
|
467 |
+
// if the component was destroyed immediately
|
468 |
+
// it will update the `$$.on_destroy` reference to `null`.
|
469 |
+
// the destructured on_destroy may still reference to the old array
|
470 |
+
if (component.$$.on_destroy) {
|
471 |
+
component.$$.on_destroy.push(...new_on_destroy);
|
472 |
+
}
|
473 |
+
else {
|
474 |
+
// Edge case - component was destroyed immediately,
|
475 |
+
// most likely as a result of a binding initialising
|
476 |
+
run_all(new_on_destroy);
|
477 |
+
}
|
478 |
+
component.$$.on_mount = [];
|
479 |
+
});
|
480 |
+
}
|
481 |
+
after_update.forEach(add_render_callback);
|
482 |
+
}
|
483 |
+
function destroy_component(component, detaching) {
|
484 |
+
const $$ = component.$$;
|
485 |
+
if ($$.fragment !== null) {
|
486 |
+
run_all($$.on_destroy);
|
487 |
+
$$.fragment && $$.fragment.d(detaching);
|
488 |
+
// TODO null out other refs, including component.$$ (but need to
|
489 |
+
// preserve final state?)
|
490 |
+
$$.on_destroy = $$.fragment = null;
|
491 |
+
$$.ctx = [];
|
492 |
+
}
|
493 |
+
}
|
494 |
+
function make_dirty(component, i) {
|
495 |
+
if (component.$$.dirty[0] === -1) {
|
496 |
+
dirty_components.push(component);
|
497 |
+
schedule_update();
|
498 |
+
component.$$.dirty.fill(0);
|
499 |
+
}
|
500 |
+
component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));
|
501 |
+
}
|
502 |
+
function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) {
|
503 |
+
const parent_component = current_component;
|
504 |
+
set_current_component(component);
|
505 |
+
const $$ = component.$$ = {
|
506 |
+
fragment: null,
|
507 |
+
ctx: [],
|
508 |
+
// state
|
509 |
+
props,
|
510 |
+
update: noop,
|
511 |
+
not_equal,
|
512 |
+
bound: blank_object(),
|
513 |
+
// lifecycle
|
514 |
+
on_mount: [],
|
515 |
+
on_destroy: [],
|
516 |
+
on_disconnect: [],
|
517 |
+
before_update: [],
|
518 |
+
after_update: [],
|
519 |
+
context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
|
520 |
+
// everything else
|
521 |
+
callbacks: blank_object(),
|
522 |
+
dirty,
|
523 |
+
skip_bound: false,
|
524 |
+
root: options.target || parent_component.$$.root
|
525 |
+
};
|
526 |
+
append_styles && append_styles($$.root);
|
527 |
+
let ready = false;
|
528 |
+
$$.ctx = instance
|
529 |
+
? instance(component, options.props || {}, (i, ret, ...rest) => {
|
530 |
+
const value = rest.length ? rest[0] : ret;
|
531 |
+
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
532 |
+
if (!$$.skip_bound && $$.bound[i])
|
533 |
+
$$.bound[i](value);
|
534 |
+
if (ready)
|
535 |
+
make_dirty(component, i);
|
536 |
+
}
|
537 |
+
return ret;
|
538 |
+
})
|
539 |
+
: [];
|
540 |
+
$$.update();
|
541 |
+
ready = true;
|
542 |
+
run_all($$.before_update);
|
543 |
+
// `false` as a special case of no DOM component
|
544 |
+
$$.fragment = create_fragment ? create_fragment($$.ctx) : false;
|
545 |
+
if (options.target) {
|
546 |
+
if (options.hydrate) {
|
547 |
+
start_hydrating();
|
548 |
+
const nodes = children(options.target);
|
549 |
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
550 |
+
$$.fragment && $$.fragment.l(nodes);
|
551 |
+
nodes.forEach(detach);
|
552 |
+
}
|
553 |
+
else {
|
554 |
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
555 |
+
$$.fragment && $$.fragment.c();
|
556 |
+
}
|
557 |
+
if (options.intro)
|
558 |
+
transition_in(component.$$.fragment);
|
559 |
+
mount_component(component, options.target, options.anchor, options.customElement);
|
560 |
+
end_hydrating();
|
561 |
+
flush();
|
562 |
+
}
|
563 |
+
set_current_component(parent_component);
|
564 |
+
}
|
565 |
+
/**
|
566 |
+
* Base class for Svelte components. Used when dev=false.
|
567 |
+
*/
|
568 |
+
class SvelteComponent {
|
569 |
+
$destroy() {
|
570 |
+
destroy_component(this, 1);
|
571 |
+
this.$destroy = noop;
|
572 |
+
}
|
573 |
+
$on(type, callback) {
|
574 |
+
if (!is_function(callback)) {
|
575 |
+
return noop;
|
576 |
+
}
|
577 |
+
const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));
|
578 |
+
callbacks.push(callback);
|
579 |
+
return () => {
|
580 |
+
const index = callbacks.indexOf(callback);
|
581 |
+
if (index !== -1)
|
582 |
+
callbacks.splice(index, 1);
|
583 |
+
};
|
584 |
+
}
|
585 |
+
$set($$props) {
|
586 |
+
if (this.$$set && !is_empty($$props)) {
|
587 |
+
this.$$.skip_bound = true;
|
588 |
+
this.$$set($$props);
|
589 |
+
this.$$.skip_bound = false;
|
590 |
+
}
|
591 |
+
}
|
592 |
+
}
|
593 |
+
|
594 |
+
/* src/AssistantBlock.svelte generated by Svelte v3.55.1 */
|
595 |
+
|
596 |
+
function add_css$3(target) {
|
597 |
+
append_styles(target, "svelte-1e3mbn4", ".model.svelte-1e3mbn4.svelte-1e3mbn4{fill:var(--logo)}.no-model.svelte-1e3mbn4.svelte-1e3mbn4{fill:var(--G3)}.model-border.svelte-1e3mbn4.svelte-1e3mbn4{border:1px solid var(--logo)}.no-model-border.svelte-1e3mbn4.svelte-1e3mbn4{border:1px solid rgba(224, 224, 224, 1)}.box.svelte-1e3mbn4.svelte-1e3mbn4{margin-top:10px;margin-bottom:10px;display:flex;align-items:start}.box.svelte-1e3mbn4 svg.svelte-1e3mbn4{min-width:24px;width:24px;margin-right:10px;margin-top:7px}.chat.svelte-1e3mbn4.svelte-1e3mbn4{border-radius:5px;margin:0px;padding:10px;overflow-wrap:anywhere}");
|
598 |
+
}
|
599 |
+
|
600 |
+
function create_fragment$3(ctx) {
|
601 |
+
let div;
|
602 |
+
let svg;
|
603 |
+
let path;
|
604 |
+
let svg_class_value;
|
605 |
+
let t0;
|
606 |
+
let p;
|
607 |
+
let t1;
|
608 |
+
let p_class_value;
|
609 |
+
|
610 |
+
return {
|
611 |
+
c() {
|
612 |
+
div = element("div");
|
613 |
+
svg = svg_element("svg");
|
614 |
+
path = svg_element("path");
|
615 |
+
t0 = space();
|
616 |
+
p = element("p");
|
617 |
+
t1 = text(/*input*/ ctx[0]);
|
618 |
+
this.h();
|
619 |
+
},
|
620 |
+
l(nodes) {
|
621 |
+
div = claim_element(nodes, "DIV", { class: true });
|
622 |
+
var div_nodes = children(div);
|
623 |
+
svg = claim_svg_element(div_nodes, "svg", { xmlns: true, viewBox: true, class: true });
|
624 |
+
var svg_nodes = children(svg);
|
625 |
+
path = claim_svg_element(svg_nodes, "path", { d: true });
|
626 |
+
children(path).forEach(detach);
|
627 |
+
svg_nodes.forEach(detach);
|
628 |
+
t0 = claim_space(div_nodes);
|
629 |
+
p = claim_element(div_nodes, "P", { class: true });
|
630 |
+
var p_nodes = children(p);
|
631 |
+
t1 = claim_text(p_nodes, /*input*/ ctx[0]);
|
632 |
+
p_nodes.forEach(detach);
|
633 |
+
div_nodes.forEach(detach);
|
634 |
+
this.h();
|
635 |
+
},
|
636 |
+
h() {
|
637 |
+
attr(path, "d", "M320 0c17.7 0 32 14.3 32 32V96H472c39.8 0 72 32.2 72 72V440c0 39.8-32.2 72-72 72H168c-39.8 0-72-32.2-72-72V168c0-39.8 32.2-72 72-72H288V32c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H208zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H304zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16h32c8.8 0 16-7.2 16-16s-7.2-16-16-16H400zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224H64V416H48c-26.5 0-48-21.5-48-48V272c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H576V224h16z");
|
638 |
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
639 |
+
attr(svg, "viewBox", "0 0 640 512");
|
640 |
+
attr(svg, "class", svg_class_value = "" + (null_to_empty(/*output*/ ctx[1] ? "model" : "no-model") + " svelte-1e3mbn4"));
|
641 |
+
attr(p, "class", p_class_value = "chat " + (/*output*/ ctx[1] ? 'model-border' : 'no-model-border') + " svelte-1e3mbn4");
|
642 |
+
attr(div, "class", "box svelte-1e3mbn4");
|
643 |
+
},
|
644 |
+
m(target, anchor) {
|
645 |
+
insert_hydration(target, div, anchor);
|
646 |
+
append_hydration(div, svg);
|
647 |
+
append_hydration(svg, path);
|
648 |
+
append_hydration(div, t0);
|
649 |
+
append_hydration(div, p);
|
650 |
+
append_hydration(p, t1);
|
651 |
+
},
|
652 |
+
p(ctx, [dirty]) {
|
653 |
+
if (dirty & /*output*/ 2 && svg_class_value !== (svg_class_value = "" + (null_to_empty(/*output*/ ctx[1] ? "model" : "no-model") + " svelte-1e3mbn4"))) {
|
654 |
+
attr(svg, "class", svg_class_value);
|
655 |
+
}
|
656 |
+
|
657 |
+
if (dirty & /*input*/ 1) set_data(t1, /*input*/ ctx[0]);
|
658 |
+
|
659 |
+
if (dirty & /*output*/ 2 && p_class_value !== (p_class_value = "chat " + (/*output*/ ctx[1] ? 'model-border' : 'no-model-border') + " svelte-1e3mbn4")) {
|
660 |
+
attr(p, "class", p_class_value);
|
661 |
+
}
|
662 |
+
},
|
663 |
+
i: noop,
|
664 |
+
o: noop,
|
665 |
+
d(detaching) {
|
666 |
+
if (detaching) detach(div);
|
667 |
+
}
|
668 |
+
};
|
669 |
+
}
|
670 |
+
|
671 |
+
function instance$3($$self, $$props, $$invalidate) {
|
672 |
+
let { input } = $$props;
|
673 |
+
let { output = false } = $$props;
|
674 |
+
|
675 |
+
$$self.$$set = $$props => {
|
676 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
677 |
+
if ('output' in $$props) $$invalidate(1, output = $$props.output);
|
678 |
+
};
|
679 |
+
|
680 |
+
return [input, output];
|
681 |
+
}
|
682 |
+
|
683 |
+
class AssistantBlock extends SvelteComponent {
|
684 |
+
constructor(options) {
|
685 |
+
super();
|
686 |
+
init(this, options, instance$3, create_fragment$3, safe_not_equal, { input: 0, output: 1 }, add_css$3);
|
687 |
+
}
|
688 |
+
}
|
689 |
+
|
690 |
+
/* src/SystemBlock.svelte generated by Svelte v3.55.1 */
|
691 |
+
|
692 |
+
function add_css$2(target) {
|
693 |
+
append_styles(target, "svelte-18o0ab2", "p.svelte-18o0ab2{margin:0px}");
|
694 |
+
}
|
695 |
+
|
696 |
+
function create_fragment$2(ctx) {
|
697 |
+
let p;
|
698 |
+
let b;
|
699 |
+
let t0;
|
700 |
+
let t1;
|
701 |
+
let span;
|
702 |
+
let t2;
|
703 |
+
|
704 |
+
return {
|
705 |
+
c() {
|
706 |
+
p = element("p");
|
707 |
+
b = element("b");
|
708 |
+
t0 = text("System:");
|
709 |
+
t1 = space();
|
710 |
+
span = element("span");
|
711 |
+
t2 = text(/*input*/ ctx[0]);
|
712 |
+
this.h();
|
713 |
+
},
|
714 |
+
l(nodes) {
|
715 |
+
p = claim_element(nodes, "P", { class: true });
|
716 |
+
var p_nodes = children(p);
|
717 |
+
b = claim_element(p_nodes, "B", {});
|
718 |
+
var b_nodes = children(b);
|
719 |
+
t0 = claim_text(b_nodes, "System:");
|
720 |
+
b_nodes.forEach(detach);
|
721 |
+
t1 = claim_space(p_nodes);
|
722 |
+
span = claim_element(p_nodes, "SPAN", {});
|
723 |
+
var span_nodes = children(span);
|
724 |
+
t2 = claim_text(span_nodes, /*input*/ ctx[0]);
|
725 |
+
span_nodes.forEach(detach);
|
726 |
+
p_nodes.forEach(detach);
|
727 |
+
this.h();
|
728 |
+
},
|
729 |
+
h() {
|
730 |
+
attr(p, "class", "svelte-18o0ab2");
|
731 |
+
},
|
732 |
+
m(target, anchor) {
|
733 |
+
insert_hydration(target, p, anchor);
|
734 |
+
append_hydration(p, b);
|
735 |
+
append_hydration(b, t0);
|
736 |
+
append_hydration(p, t1);
|
737 |
+
append_hydration(p, span);
|
738 |
+
append_hydration(span, t2);
|
739 |
+
},
|
740 |
+
p(ctx, [dirty]) {
|
741 |
+
if (dirty & /*input*/ 1) set_data(t2, /*input*/ ctx[0]);
|
742 |
+
},
|
743 |
+
i: noop,
|
744 |
+
o: noop,
|
745 |
+
d(detaching) {
|
746 |
+
if (detaching) detach(p);
|
747 |
+
}
|
748 |
+
};
|
749 |
+
}
|
750 |
+
|
751 |
+
function instance$2($$self, $$props, $$invalidate) {
|
752 |
+
let { input } = $$props;
|
753 |
+
|
754 |
+
$$self.$$set = $$props => {
|
755 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
756 |
+
};
|
757 |
+
|
758 |
+
return [input];
|
759 |
+
}
|
760 |
+
|
761 |
+
class SystemBlock extends SvelteComponent {
|
762 |
+
constructor(options) {
|
763 |
+
super();
|
764 |
+
init(this, options, instance$2, create_fragment$2, safe_not_equal, { input: 0 }, add_css$2);
|
765 |
+
}
|
766 |
+
}
|
767 |
+
|
768 |
+
/* src/UserBlock.svelte generated by Svelte v3.55.1 */
|
769 |
+
|
770 |
+
function add_css$1(target) {
|
771 |
+
append_styles(target, "svelte-1lys9p1", ".box.svelte-1lys9p1.svelte-1lys9p1{margin-top:10px;margin-bottom:10px;display:flex;align-items:start}.box.svelte-1lys9p1 svg.svelte-1lys9p1{min-width:24px;width:24px;margin-right:10px;margin-top:7px;fill:var(--G3)}.chat.svelte-1lys9p1.svelte-1lys9p1{border:1px solid rgba(224, 224, 224, 1);border-radius:5px;margin:0px;padding:10px;overflow-wrap:anywhere}");
|
772 |
+
}
|
773 |
+
|
774 |
+
function create_fragment$1(ctx) {
|
775 |
+
let div;
|
776 |
+
let svg;
|
777 |
+
let path;
|
778 |
+
let t0;
|
779 |
+
let p;
|
780 |
+
let t1;
|
781 |
+
|
782 |
+
return {
|
783 |
+
c() {
|
784 |
+
div = element("div");
|
785 |
+
svg = svg_element("svg");
|
786 |
+
path = svg_element("path");
|
787 |
+
t0 = space();
|
788 |
+
p = element("p");
|
789 |
+
t1 = text(/*input*/ ctx[0]);
|
790 |
+
this.h();
|
791 |
+
},
|
792 |
+
l(nodes) {
|
793 |
+
div = claim_element(nodes, "DIV", { class: true });
|
794 |
+
var div_nodes = children(div);
|
795 |
+
svg = claim_svg_element(div_nodes, "svg", { xmlns: true, viewBox: true, class: true });
|
796 |
+
var svg_nodes = children(svg);
|
797 |
+
path = claim_svg_element(svg_nodes, "path", { d: true });
|
798 |
+
children(path).forEach(detach);
|
799 |
+
svg_nodes.forEach(detach);
|
800 |
+
t0 = claim_space(div_nodes);
|
801 |
+
p = claim_element(div_nodes, "P", { class: true });
|
802 |
+
var p_nodes = children(p);
|
803 |
+
t1 = claim_text(p_nodes, /*input*/ ctx[0]);
|
804 |
+
p_nodes.forEach(detach);
|
805 |
+
div_nodes.forEach(detach);
|
806 |
+
this.h();
|
807 |
+
},
|
808 |
+
h() {
|
809 |
+
attr(path, "d", "M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z");
|
810 |
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
811 |
+
attr(svg, "viewBox", "0 0 448 512");
|
812 |
+
attr(svg, "class", "svelte-1lys9p1");
|
813 |
+
attr(p, "class", "chat svelte-1lys9p1");
|
814 |
+
attr(div, "class", "box svelte-1lys9p1");
|
815 |
+
},
|
816 |
+
m(target, anchor) {
|
817 |
+
insert_hydration(target, div, anchor);
|
818 |
+
append_hydration(div, svg);
|
819 |
+
append_hydration(svg, path);
|
820 |
+
append_hydration(div, t0);
|
821 |
+
append_hydration(div, p);
|
822 |
+
append_hydration(p, t1);
|
823 |
+
},
|
824 |
+
p(ctx, [dirty]) {
|
825 |
+
if (dirty & /*input*/ 1) set_data(t1, /*input*/ ctx[0]);
|
826 |
+
},
|
827 |
+
i: noop,
|
828 |
+
o: noop,
|
829 |
+
d(detaching) {
|
830 |
+
if (detaching) detach(div);
|
831 |
+
}
|
832 |
+
};
|
833 |
+
}
|
834 |
+
|
835 |
+
function instance$1($$self, $$props, $$invalidate) {
|
836 |
+
let { input } = $$props;
|
837 |
+
|
838 |
+
$$self.$$set = $$props => {
|
839 |
+
if ('input' in $$props) $$invalidate(0, input = $$props.input);
|
840 |
+
};
|
841 |
+
|
842 |
+
return [input];
|
843 |
+
}
|
844 |
+
|
845 |
+
class UserBlock extends SvelteComponent {
|
846 |
+
constructor(options) {
|
847 |
+
super();
|
848 |
+
init(this, options, instance$1, create_fragment$1, safe_not_equal, { input: 0 }, add_css$1);
|
849 |
+
}
|
850 |
+
}
|
851 |
+
|
852 |
+
/* src/InstanceView.svelte generated by Svelte v3.55.1 */
|
853 |
+
|
854 |
+
function add_css(target) {
|
855 |
+
append_styles(target, "svelte-eoma5v", "#container.svelte-eoma5v{border:0.5px solid rgb(224, 224, 224);min-width:350px;border-radius:2px;padding:10px}.label.svelte-eoma5v{margin-right:5px;font-weight:700}p.svelte-eoma5v{margin:5px;overflow-wrap:anywhere}");
|
856 |
+
}
|
857 |
+
|
858 |
+
function get_each_context(ctx, list, i) {
|
859 |
+
const child_ctx = ctx.slice();
|
860 |
+
child_ctx[6] = list[i];
|
861 |
+
return child_ctx;
|
862 |
+
}
|
863 |
+
|
864 |
+
// (21:2) {#if entry[dataColumn]}
|
865 |
+
function create_if_block_2(ctx) {
|
866 |
+
let current_block_type_index;
|
867 |
+
let if_block;
|
868 |
+
let if_block_anchor;
|
869 |
+
let current;
|
870 |
+
const if_block_creators = [create_if_block_3, create_else_block];
|
871 |
+
const if_blocks = [];
|
872 |
+
|
873 |
+
function select_block_type(ctx, dirty) {
|
874 |
+
if (typeof /*entry*/ ctx[0][/*dataColumn*/ ctx[3]] === "string") return 0;
|
875 |
+
return 1;
|
876 |
+
}
|
877 |
+
|
878 |
+
current_block_type_index = select_block_type(ctx);
|
879 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
880 |
+
|
881 |
+
return {
|
882 |
+
c() {
|
883 |
+
if_block.c();
|
884 |
+
if_block_anchor = empty();
|
885 |
+
},
|
886 |
+
l(nodes) {
|
887 |
+
if_block.l(nodes);
|
888 |
+
if_block_anchor = empty();
|
889 |
+
},
|
890 |
+
m(target, anchor) {
|
891 |
+
if_blocks[current_block_type_index].m(target, anchor);
|
892 |
+
insert_hydration(target, if_block_anchor, anchor);
|
893 |
+
current = true;
|
894 |
+
},
|
895 |
+
p(ctx, dirty) {
|
896 |
+
let previous_block_index = current_block_type_index;
|
897 |
+
current_block_type_index = select_block_type(ctx);
|
898 |
+
|
899 |
+
if (current_block_type_index === previous_block_index) {
|
900 |
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
901 |
+
} else {
|
902 |
+
group_outros();
|
903 |
+
|
904 |
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
905 |
+
if_blocks[previous_block_index] = null;
|
906 |
+
});
|
907 |
+
|
908 |
+
check_outros();
|
909 |
+
if_block = if_blocks[current_block_type_index];
|
910 |
+
|
911 |
+
if (!if_block) {
|
912 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
913 |
+
if_block.c();
|
914 |
+
} else {
|
915 |
+
if_block.p(ctx, dirty);
|
916 |
+
}
|
917 |
+
|
918 |
+
transition_in(if_block, 1);
|
919 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
920 |
+
}
|
921 |
+
},
|
922 |
+
i(local) {
|
923 |
+
if (current) return;
|
924 |
+
transition_in(if_block);
|
925 |
+
current = true;
|
926 |
+
},
|
927 |
+
o(local) {
|
928 |
+
transition_out(if_block);
|
929 |
+
current = false;
|
930 |
+
},
|
931 |
+
d(detaching) {
|
932 |
+
if_blocks[current_block_type_index].d(detaching);
|
933 |
+
if (detaching) detach(if_block_anchor);
|
934 |
+
}
|
935 |
+
};
|
936 |
+
}
|
937 |
+
|
938 |
+
// (24:4) {:else}
|
939 |
+
function create_else_block(ctx) {
|
940 |
+
let each_1_anchor;
|
941 |
+
let current;
|
942 |
+
let each_value = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]];
|
943 |
+
let each_blocks = [];
|
944 |
+
|
945 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
946 |
+
each_blocks[i] = create_each_block(get_each_context(ctx, each_value, i));
|
947 |
+
}
|
948 |
+
|
949 |
+
const out = i => transition_out(each_blocks[i], 1, 1, () => {
|
950 |
+
each_blocks[i] = null;
|
951 |
+
});
|
952 |
+
|
953 |
+
return {
|
954 |
+
c() {
|
955 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
956 |
+
each_blocks[i].c();
|
957 |
+
}
|
958 |
+
|
959 |
+
each_1_anchor = empty();
|
960 |
+
},
|
961 |
+
l(nodes) {
|
962 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
963 |
+
each_blocks[i].l(nodes);
|
964 |
+
}
|
965 |
+
|
966 |
+
each_1_anchor = empty();
|
967 |
+
},
|
968 |
+
m(target, anchor) {
|
969 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
970 |
+
each_blocks[i].m(target, anchor);
|
971 |
+
}
|
972 |
+
|
973 |
+
insert_hydration(target, each_1_anchor, anchor);
|
974 |
+
current = true;
|
975 |
+
},
|
976 |
+
p(ctx, dirty) {
|
977 |
+
if (dirty & /*entry, dataColumn*/ 9) {
|
978 |
+
each_value = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]];
|
979 |
+
let i;
|
980 |
+
|
981 |
+
for (i = 0; i < each_value.length; i += 1) {
|
982 |
+
const child_ctx = get_each_context(ctx, each_value, i);
|
983 |
+
|
984 |
+
if (each_blocks[i]) {
|
985 |
+
each_blocks[i].p(child_ctx, dirty);
|
986 |
+
transition_in(each_blocks[i], 1);
|
987 |
+
} else {
|
988 |
+
each_blocks[i] = create_each_block(child_ctx);
|
989 |
+
each_blocks[i].c();
|
990 |
+
transition_in(each_blocks[i], 1);
|
991 |
+
each_blocks[i].m(each_1_anchor.parentNode, each_1_anchor);
|
992 |
+
}
|
993 |
+
}
|
994 |
+
|
995 |
+
group_outros();
|
996 |
+
|
997 |
+
for (i = each_value.length; i < each_blocks.length; i += 1) {
|
998 |
+
out(i);
|
999 |
+
}
|
1000 |
+
|
1001 |
+
check_outros();
|
1002 |
+
}
|
1003 |
+
},
|
1004 |
+
i(local) {
|
1005 |
+
if (current) return;
|
1006 |
+
|
1007 |
+
for (let i = 0; i < each_value.length; i += 1) {
|
1008 |
+
transition_in(each_blocks[i]);
|
1009 |
+
}
|
1010 |
+
|
1011 |
+
current = true;
|
1012 |
+
},
|
1013 |
+
o(local) {
|
1014 |
+
each_blocks = each_blocks.filter(Boolean);
|
1015 |
+
|
1016 |
+
for (let i = 0; i < each_blocks.length; i += 1) {
|
1017 |
+
transition_out(each_blocks[i]);
|
1018 |
+
}
|
1019 |
+
|
1020 |
+
current = false;
|
1021 |
+
},
|
1022 |
+
d(detaching) {
|
1023 |
+
destroy_each(each_blocks, detaching);
|
1024 |
+
if (detaching) detach(each_1_anchor);
|
1025 |
+
}
|
1026 |
+
};
|
1027 |
+
}
|
1028 |
+
|
1029 |
+
// (22:4) {#if typeof entry[dataColumn] === "string"}
|
1030 |
+
function create_if_block_3(ctx) {
|
1031 |
+
let userblock;
|
1032 |
+
let current;
|
1033 |
+
|
1034 |
+
userblock = new UserBlock({
|
1035 |
+
props: {
|
1036 |
+
input: /*entry*/ ctx[0][/*dataColumn*/ ctx[3]]
|
1037 |
+
}
|
1038 |
+
});
|
1039 |
+
|
1040 |
+
return {
|
1041 |
+
c() {
|
1042 |
+
create_component(userblock.$$.fragment);
|
1043 |
+
},
|
1044 |
+
l(nodes) {
|
1045 |
+
claim_component(userblock.$$.fragment, nodes);
|
1046 |
+
},
|
1047 |
+
m(target, anchor) {
|
1048 |
+
mount_component(userblock, target, anchor);
|
1049 |
+
current = true;
|
1050 |
+
},
|
1051 |
+
p(ctx, dirty) {
|
1052 |
+
const userblock_changes = {};
|
1053 |
+
if (dirty & /*entry, dataColumn*/ 9) userblock_changes.input = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]];
|
1054 |
+
userblock.$set(userblock_changes);
|
1055 |
+
},
|
1056 |
+
i(local) {
|
1057 |
+
if (current) return;
|
1058 |
+
transition_in(userblock.$$.fragment, local);
|
1059 |
+
current = true;
|
1060 |
+
},
|
1061 |
+
o(local) {
|
1062 |
+
transition_out(userblock.$$.fragment, local);
|
1063 |
+
current = false;
|
1064 |
+
},
|
1065 |
+
d(detaching) {
|
1066 |
+
destroy_component(userblock, detaching);
|
1067 |
+
}
|
1068 |
+
};
|
1069 |
+
}
|
1070 |
+
|
1071 |
+
// (30:42)
|
1072 |
+
function create_if_block_6(ctx) {
|
1073 |
+
let userblock;
|
1074 |
+
let current;
|
1075 |
+
|
1076 |
+
userblock = new UserBlock({
|
1077 |
+
props: { input: /*item*/ ctx[6]["content"] }
|
1078 |
+
});
|
1079 |
+
|
1080 |
+
return {
|
1081 |
+
c() {
|
1082 |
+
create_component(userblock.$$.fragment);
|
1083 |
+
},
|
1084 |
+
l(nodes) {
|
1085 |
+
claim_component(userblock.$$.fragment, nodes);
|
1086 |
+
},
|
1087 |
+
m(target, anchor) {
|
1088 |
+
mount_component(userblock, target, anchor);
|
1089 |
+
current = true;
|
1090 |
+
},
|
1091 |
+
p(ctx, dirty) {
|
1092 |
+
const userblock_changes = {};
|
1093 |
+
if (dirty & /*entry, dataColumn*/ 9) userblock_changes.input = /*item*/ ctx[6]["content"];
|
1094 |
+
userblock.$set(userblock_changes);
|
1095 |
+
},
|
1096 |
+
i(local) {
|
1097 |
+
if (current) return;
|
1098 |
+
transition_in(userblock.$$.fragment, local);
|
1099 |
+
current = true;
|
1100 |
+
},
|
1101 |
+
o(local) {
|
1102 |
+
transition_out(userblock.$$.fragment, local);
|
1103 |
+
current = false;
|
1104 |
+
},
|
1105 |
+
d(detaching) {
|
1106 |
+
destroy_component(userblock, detaching);
|
1107 |
+
}
|
1108 |
+
};
|
1109 |
+
}
|
1110 |
+
|
1111 |
+
// (28:47)
|
1112 |
+
function create_if_block_5(ctx) {
|
1113 |
+
let assistantblock;
|
1114 |
+
let current;
|
1115 |
+
|
1116 |
+
assistantblock = new AssistantBlock({
|
1117 |
+
props: { input: /*item*/ ctx[6]["content"] }
|
1118 |
+
});
|
1119 |
+
|
1120 |
+
return {
|
1121 |
+
c() {
|
1122 |
+
create_component(assistantblock.$$.fragment);
|
1123 |
+
},
|
1124 |
+
l(nodes) {
|
1125 |
+
claim_component(assistantblock.$$.fragment, nodes);
|
1126 |
+
},
|
1127 |
+
m(target, anchor) {
|
1128 |
+
mount_component(assistantblock, target, anchor);
|
1129 |
+
current = true;
|
1130 |
+
},
|
1131 |
+
p(ctx, dirty) {
|
1132 |
+
const assistantblock_changes = {};
|
1133 |
+
if (dirty & /*entry, dataColumn*/ 9) assistantblock_changes.input = /*item*/ ctx[6]["content"];
|
1134 |
+
assistantblock.$set(assistantblock_changes);
|
1135 |
+
},
|
1136 |
+
i(local) {
|
1137 |
+
if (current) return;
|
1138 |
+
transition_in(assistantblock.$$.fragment, local);
|
1139 |
+
current = true;
|
1140 |
+
},
|
1141 |
+
o(local) {
|
1142 |
+
transition_out(assistantblock.$$.fragment, local);
|
1143 |
+
current = false;
|
1144 |
+
},
|
1145 |
+
d(detaching) {
|
1146 |
+
destroy_component(assistantblock, detaching);
|
1147 |
+
}
|
1148 |
+
};
|
1149 |
+
}
|
1150 |
+
|
1151 |
+
// (26:8) {#if item["role"] === "system"}
|
1152 |
+
function create_if_block_4(ctx) {
|
1153 |
+
let systemblock;
|
1154 |
+
let current;
|
1155 |
+
|
1156 |
+
systemblock = new SystemBlock({
|
1157 |
+
props: { input: /*item*/ ctx[6]["content"] }
|
1158 |
+
});
|
1159 |
+
|
1160 |
+
return {
|
1161 |
+
c() {
|
1162 |
+
create_component(systemblock.$$.fragment);
|
1163 |
+
},
|
1164 |
+
l(nodes) {
|
1165 |
+
claim_component(systemblock.$$.fragment, nodes);
|
1166 |
+
},
|
1167 |
+
m(target, anchor) {
|
1168 |
+
mount_component(systemblock, target, anchor);
|
1169 |
+
current = true;
|
1170 |
+
},
|
1171 |
+
p(ctx, dirty) {
|
1172 |
+
const systemblock_changes = {};
|
1173 |
+
if (dirty & /*entry, dataColumn*/ 9) systemblock_changes.input = /*item*/ ctx[6]["content"];
|
1174 |
+
systemblock.$set(systemblock_changes);
|
1175 |
+
},
|
1176 |
+
i(local) {
|
1177 |
+
if (current) return;
|
1178 |
+
transition_in(systemblock.$$.fragment, local);
|
1179 |
+
current = true;
|
1180 |
+
},
|
1181 |
+
o(local) {
|
1182 |
+
transition_out(systemblock.$$.fragment, local);
|
1183 |
+
current = false;
|
1184 |
+
},
|
1185 |
+
d(detaching) {
|
1186 |
+
destroy_component(systemblock, detaching);
|
1187 |
+
}
|
1188 |
+
};
|
1189 |
+
}
|
1190 |
+
|
1191 |
+
// (25:6) {#each entry[dataColumn] as item}
|
1192 |
+
function create_each_block(ctx) {
|
1193 |
+
let current_block_type_index;
|
1194 |
+
let if_block;
|
1195 |
+
let if_block_anchor;
|
1196 |
+
let current;
|
1197 |
+
const if_block_creators = [create_if_block_4, create_if_block_5, create_if_block_6];
|
1198 |
+
const if_blocks = [];
|
1199 |
+
|
1200 |
+
function select_block_type_1(ctx, dirty) {
|
1201 |
+
if (/*item*/ ctx[6]["role"] === "system") return 0;
|
1202 |
+
if (/*item*/ ctx[6]["role"] === "assistant") return 1;
|
1203 |
+
if (/*item*/ ctx[6]["role"] === "user") return 2;
|
1204 |
+
return -1;
|
1205 |
+
}
|
1206 |
+
|
1207 |
+
if (~(current_block_type_index = select_block_type_1(ctx))) {
|
1208 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
1209 |
+
}
|
1210 |
+
|
1211 |
+
return {
|
1212 |
+
c() {
|
1213 |
+
if (if_block) if_block.c();
|
1214 |
+
if_block_anchor = empty();
|
1215 |
+
},
|
1216 |
+
l(nodes) {
|
1217 |
+
if (if_block) if_block.l(nodes);
|
1218 |
+
if_block_anchor = empty();
|
1219 |
+
},
|
1220 |
+
m(target, anchor) {
|
1221 |
+
if (~current_block_type_index) {
|
1222 |
+
if_blocks[current_block_type_index].m(target, anchor);
|
1223 |
+
}
|
1224 |
+
|
1225 |
+
insert_hydration(target, if_block_anchor, anchor);
|
1226 |
+
current = true;
|
1227 |
+
},
|
1228 |
+
p(ctx, dirty) {
|
1229 |
+
let previous_block_index = current_block_type_index;
|
1230 |
+
current_block_type_index = select_block_type_1(ctx);
|
1231 |
+
|
1232 |
+
if (current_block_type_index === previous_block_index) {
|
1233 |
+
if (~current_block_type_index) {
|
1234 |
+
if_blocks[current_block_type_index].p(ctx, dirty);
|
1235 |
+
}
|
1236 |
+
} else {
|
1237 |
+
if (if_block) {
|
1238 |
+
group_outros();
|
1239 |
+
|
1240 |
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
1241 |
+
if_blocks[previous_block_index] = null;
|
1242 |
+
});
|
1243 |
+
|
1244 |
+
check_outros();
|
1245 |
+
}
|
1246 |
+
|
1247 |
+
if (~current_block_type_index) {
|
1248 |
+
if_block = if_blocks[current_block_type_index];
|
1249 |
+
|
1250 |
+
if (!if_block) {
|
1251 |
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
1252 |
+
if_block.c();
|
1253 |
+
} else {
|
1254 |
+
if_block.p(ctx, dirty);
|
1255 |
+
}
|
1256 |
+
|
1257 |
+
transition_in(if_block, 1);
|
1258 |
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
1259 |
+
} else {
|
1260 |
+
if_block = null;
|
1261 |
+
}
|
1262 |
+
}
|
1263 |
+
},
|
1264 |
+
i(local) {
|
1265 |
+
if (current) return;
|
1266 |
+
transition_in(if_block);
|
1267 |
+
current = true;
|
1268 |
+
},
|
1269 |
+
o(local) {
|
1270 |
+
transition_out(if_block);
|
1271 |
+
current = false;
|
1272 |
+
},
|
1273 |
+
d(detaching) {
|
1274 |
+
if (~current_block_type_index) {
|
1275 |
+
if_blocks[current_block_type_index].d(detaching);
|
1276 |
+
}
|
1277 |
+
|
1278 |
+
if (detaching) detach(if_block_anchor);
|
1279 |
+
}
|
1280 |
+
};
|
1281 |
+
}
|
1282 |
+
|
1283 |
+
// (36:2) {#if entry[modelColumn]}
|
1284 |
+
function create_if_block_1(ctx) {
|
1285 |
+
let assistantblock;
|
1286 |
+
let current;
|
1287 |
+
|
1288 |
+
assistantblock = new AssistantBlock({
|
1289 |
+
props: {
|
1290 |
+
input: /*entry*/ ctx[0][/*modelColumn*/ ctx[1]],
|
1291 |
+
output: true
|
1292 |
+
}
|
1293 |
+
});
|
1294 |
+
|
1295 |
+
return {
|
1296 |
+
c() {
|
1297 |
+
create_component(assistantblock.$$.fragment);
|
1298 |
+
},
|
1299 |
+
l(nodes) {
|
1300 |
+
claim_component(assistantblock.$$.fragment, nodes);
|
1301 |
+
},
|
1302 |
+
m(target, anchor) {
|
1303 |
+
mount_component(assistantblock, target, anchor);
|
1304 |
+
current = true;
|
1305 |
+
},
|
1306 |
+
p(ctx, dirty) {
|
1307 |
+
const assistantblock_changes = {};
|
1308 |
+
if (dirty & /*entry, modelColumn*/ 3) assistantblock_changes.input = /*entry*/ ctx[0][/*modelColumn*/ ctx[1]];
|
1309 |
+
assistantblock.$set(assistantblock_changes);
|
1310 |
+
},
|
1311 |
+
i(local) {
|
1312 |
+
if (current) return;
|
1313 |
+
transition_in(assistantblock.$$.fragment, local);
|
1314 |
+
current = true;
|
1315 |
+
},
|
1316 |
+
o(local) {
|
1317 |
+
transition_out(assistantblock.$$.fragment, local);
|
1318 |
+
current = false;
|
1319 |
+
},
|
1320 |
+
d(detaching) {
|
1321 |
+
destroy_component(assistantblock, detaching);
|
1322 |
+
}
|
1323 |
+
};
|
1324 |
+
}
|
1325 |
+
|
1326 |
+
// (39:2) {#if entry[labelColumn]}
|
1327 |
+
function create_if_block(ctx) {
|
1328 |
+
let p;
|
1329 |
+
let span;
|
1330 |
+
let t0;
|
1331 |
+
let t1;
|
1332 |
+
let t2_value = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] + "";
|
1333 |
+
let t2;
|
1334 |
+
|
1335 |
+
return {
|
1336 |
+
c() {
|
1337 |
+
p = element("p");
|
1338 |
+
span = element("span");
|
1339 |
+
t0 = text("Expected:");
|
1340 |
+
t1 = space();
|
1341 |
+
t2 = text(t2_value);
|
1342 |
+
this.h();
|
1343 |
+
},
|
1344 |
+
l(nodes) {
|
1345 |
+
p = claim_element(nodes, "P", { class: true });
|
1346 |
+
var p_nodes = children(p);
|
1347 |
+
span = claim_element(p_nodes, "SPAN", { class: true });
|
1348 |
+
var span_nodes = children(span);
|
1349 |
+
t0 = claim_text(span_nodes, "Expected:");
|
1350 |
+
span_nodes.forEach(detach);
|
1351 |
+
t1 = claim_space(p_nodes);
|
1352 |
+
t2 = claim_text(p_nodes, t2_value);
|
1353 |
+
p_nodes.forEach(detach);
|
1354 |
+
this.h();
|
1355 |
+
},
|
1356 |
+
h() {
|
1357 |
+
attr(span, "class", "label svelte-eoma5v");
|
1358 |
+
attr(p, "class", "svelte-eoma5v");
|
1359 |
+
},
|
1360 |
+
m(target, anchor) {
|
1361 |
+
insert_hydration(target, p, anchor);
|
1362 |
+
append_hydration(p, span);
|
1363 |
+
append_hydration(span, t0);
|
1364 |
+
append_hydration(p, t1);
|
1365 |
+
append_hydration(p, t2);
|
1366 |
+
},
|
1367 |
+
p(ctx, dirty) {
|
1368 |
+
if (dirty & /*entry, labelColumn*/ 5 && t2_value !== (t2_value = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] + "")) set_data(t2, t2_value);
|
1369 |
+
},
|
1370 |
+
d(detaching) {
|
1371 |
+
if (detaching) detach(p);
|
1372 |
+
}
|
1373 |
+
};
|
1374 |
+
}
|
1375 |
+
|
1376 |
+
function create_fragment(ctx) {
|
1377 |
+
let div;
|
1378 |
+
let t0;
|
1379 |
+
let t1;
|
1380 |
+
let current;
|
1381 |
+
let if_block0 = /*entry*/ ctx[0][/*dataColumn*/ ctx[3]] && create_if_block_2(ctx);
|
1382 |
+
let if_block1 = /*entry*/ ctx[0][/*modelColumn*/ ctx[1]] && create_if_block_1(ctx);
|
1383 |
+
let if_block2 = /*entry*/ ctx[0][/*labelColumn*/ ctx[2]] && create_if_block(ctx);
|
1384 |
+
|
1385 |
+
return {
|
1386 |
+
c() {
|
1387 |
+
div = element("div");
|
1388 |
+
if (if_block0) if_block0.c();
|
1389 |
+
t0 = space();
|
1390 |
+
if (if_block1) if_block1.c();
|
1391 |
+
t1 = space();
|
1392 |
+
if (if_block2) if_block2.c();
|
1393 |
+
this.h();
|
1394 |
+
},
|
1395 |
+
l(nodes) {
|
1396 |
+
div = claim_element(nodes, "DIV", { id: true, class: true });
|
1397 |
+
var div_nodes = children(div);
|
1398 |
+
if (if_block0) if_block0.l(div_nodes);
|
1399 |
+
t0 = claim_space(div_nodes);
|
1400 |
+
if (if_block1) if_block1.l(div_nodes);
|
1401 |
+
t1 = claim_space(div_nodes);
|
1402 |
+
if (if_block2) if_block2.l(div_nodes);
|
1403 |
+
div_nodes.forEach(detach);
|
1404 |
+
this.h();
|
1405 |
+
},
|
1406 |
+
h() {
|
1407 |
+
attr(div, "id", "container");
|
1408 |
+
attr(div, "class", "svelte-eoma5v");
|
1409 |
+
},
|
1410 |
+
m(target, anchor) {
|
1411 |
+
insert_hydration(target, div, anchor);
|
1412 |
+
if (if_block0) if_block0.m(div, null);
|
1413 |
+
append_hydration(div, t0);
|
1414 |
+
if (if_block1) if_block1.m(div, null);
|
1415 |
+
append_hydration(div, t1);
|
1416 |
+
if (if_block2) if_block2.m(div, null);
|
1417 |
+
current = true;
|
1418 |
+
},
|
1419 |
+
p(ctx, [dirty]) {
|
1420 |
+
if (/*entry*/ ctx[0][/*dataColumn*/ ctx[3]]) {
|
1421 |
+
if (if_block0) {
|
1422 |
+
if_block0.p(ctx, dirty);
|
1423 |
+
|
1424 |
+
if (dirty & /*entry, dataColumn*/ 9) {
|
1425 |
+
transition_in(if_block0, 1);
|
1426 |
+
}
|
1427 |
+
} else {
|
1428 |
+
if_block0 = create_if_block_2(ctx);
|
1429 |
+
if_block0.c();
|
1430 |
+
transition_in(if_block0, 1);
|
1431 |
+
if_block0.m(div, t0);
|
1432 |
+
}
|
1433 |
+
} else if (if_block0) {
|
1434 |
+
group_outros();
|
1435 |
+
|
1436 |
+
transition_out(if_block0, 1, 1, () => {
|
1437 |
+
if_block0 = null;
|
1438 |
+
});
|
1439 |
+
|
1440 |
+
check_outros();
|
1441 |
+
}
|
1442 |
+
|
1443 |
+
if (/*entry*/ ctx[0][/*modelColumn*/ ctx[1]]) {
|
1444 |
+
if (if_block1) {
|
1445 |
+
if_block1.p(ctx, dirty);
|
1446 |
+
|
1447 |
+
if (dirty & /*entry, modelColumn*/ 3) {
|
1448 |
+
transition_in(if_block1, 1);
|
1449 |
+
}
|
1450 |
+
} else {
|
1451 |
+
if_block1 = create_if_block_1(ctx);
|
1452 |
+
if_block1.c();
|
1453 |
+
transition_in(if_block1, 1);
|
1454 |
+
if_block1.m(div, t1);
|
1455 |
+
}
|
1456 |
+
} else if (if_block1) {
|
1457 |
+
group_outros();
|
1458 |
+
|
1459 |
+
transition_out(if_block1, 1, 1, () => {
|
1460 |
+
if_block1 = null;
|
1461 |
+
});
|
1462 |
+
|
1463 |
+
check_outros();
|
1464 |
+
}
|
1465 |
+
|
1466 |
+
if (/*entry*/ ctx[0][/*labelColumn*/ ctx[2]]) {
|
1467 |
+
if (if_block2) {
|
1468 |
+
if_block2.p(ctx, dirty);
|
1469 |
+
} else {
|
1470 |
+
if_block2 = create_if_block(ctx);
|
1471 |
+
if_block2.c();
|
1472 |
+
if_block2.m(div, null);
|
1473 |
+
}
|
1474 |
+
} else if (if_block2) {
|
1475 |
+
if_block2.d(1);
|
1476 |
+
if_block2 = null;
|
1477 |
+
}
|
1478 |
+
},
|
1479 |
+
i(local) {
|
1480 |
+
if (current) return;
|
1481 |
+
transition_in(if_block0);
|
1482 |
+
transition_in(if_block1);
|
1483 |
+
current = true;
|
1484 |
+
},
|
1485 |
+
o(local) {
|
1486 |
+
transition_out(if_block0);
|
1487 |
+
transition_out(if_block1);
|
1488 |
+
current = false;
|
1489 |
+
},
|
1490 |
+
d(detaching) {
|
1491 |
+
if (detaching) detach(div);
|
1492 |
+
if (if_block0) if_block0.d();
|
1493 |
+
if (if_block1) if_block1.d();
|
1494 |
+
if (if_block2) if_block2.d();
|
1495 |
+
}
|
1496 |
+
};
|
1497 |
+
}
|
1498 |
+
|
1499 |
+
function instance($$self, $$props, $$invalidate) {
|
1500 |
+
let { options } = $$props;
|
1501 |
+
let { entry } = $$props;
|
1502 |
+
let { modelColumn } = $$props;
|
1503 |
+
let { labelColumn } = $$props;
|
1504 |
+
let { dataColumn } = $$props;
|
1505 |
+
let { idColumn } = $$props;
|
1506 |
+
|
1507 |
+
$$self.$$set = $$props => {
|
1508 |
+
if ('options' in $$props) $$invalidate(4, options = $$props.options);
|
1509 |
+
if ('entry' in $$props) $$invalidate(0, entry = $$props.entry);
|
1510 |
+
if ('modelColumn' in $$props) $$invalidate(1, modelColumn = $$props.modelColumn);
|
1511 |
+
if ('labelColumn' in $$props) $$invalidate(2, labelColumn = $$props.labelColumn);
|
1512 |
+
if ('dataColumn' in $$props) $$invalidate(3, dataColumn = $$props.dataColumn);
|
1513 |
+
if ('idColumn' in $$props) $$invalidate(5, idColumn = $$props.idColumn);
|
1514 |
+
};
|
1515 |
+
|
1516 |
+
return [entry, modelColumn, labelColumn, dataColumn, options, idColumn];
|
1517 |
+
}
|
1518 |
+
|
1519 |
+
class InstanceView extends SvelteComponent {
|
1520 |
+
constructor(options) {
|
1521 |
+
super();
|
1522 |
+
|
1523 |
+
init(
|
1524 |
+
this,
|
1525 |
+
options,
|
1526 |
+
instance,
|
1527 |
+
create_fragment,
|
1528 |
+
safe_not_equal,
|
1529 |
+
{
|
1530 |
+
options: 4,
|
1531 |
+
entry: 0,
|
1532 |
+
modelColumn: 1,
|
1533 |
+
labelColumn: 2,
|
1534 |
+
dataColumn: 3,
|
1535 |
+
idColumn: 5
|
1536 |
+
},
|
1537 |
+
add_css
|
1538 |
+
);
|
1539 |
+
}
|
1540 |
+
}
|
1541 |
+
|
1542 |
+
function getInstance(
|
1543 |
+
div,
|
1544 |
+
viewOptions,
|
1545 |
+
entry,
|
1546 |
+
modelColumn,
|
1547 |
+
labelColumn,
|
1548 |
+
dataColumn,
|
1549 |
+
idColumn
|
1550 |
+
) {
|
1551 |
+
new InstanceView({
|
1552 |
+
target: div,
|
1553 |
+
props: {
|
1554 |
+
entry: entry,
|
1555 |
+
viewOptions: viewOptions,
|
1556 |
+
modelColumn: modelColumn,
|
1557 |
+
labelColumn: labelColumn,
|
1558 |
+
dataColumn: dataColumn,
|
1559 |
+
idColumn: idColumn,
|
1560 |
+
},
|
1561 |
+
hydrate: true,
|
1562 |
+
});
|
1563 |
+
}
|
1564 |
+
|
1565 |
+
// export function getOptions(div, setOptions) {
|
1566 |
+
// new OptionsView({
|
1567 |
+
// target: div,
|
1568 |
+
// props: {
|
1569 |
+
// setOptions,
|
1570 |
+
// },
|
1571 |
+
// });
|
1572 |
+
// }
|
1573 |
+
|
1574 |
+
export { getInstance };
|
evals/aba-mrpc-true-false/aba-3.5-turbo.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
evals/aba-mrpc-true-false/aba-4.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
evals/country-area/countries-4.jsonl
ADDED
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{"spec": {"completion_fns": ["gpt-4"], "eval_name": "compare-countries-area.dev.v0", "base_eval": "compare-countries-area", "split": "dev", "run_config": {"completion_fns": ["gpt-4"], "eval_spec": {"cls": "evals.elsuite.basic.match:Match", "args": {"samples_jsonl": "compare-countries-area/samples.jsonl"}, "key": "compare-countries-area.dev.v0", "group": "compare-countries-area"}, "seed": 20220722, "max_samples": null, "command": "/Users/acabrera/dev-research/22-zeno/openai-eval/evals/evals/cli/oaieval.py gpt-4 compare-countries-area", "initial_settings": {"visible": true}}, "created_by": "", "run_id": "230502220053WFIIYNGV", "created_at": "2023-05-02 22:00:53.948570"}}
|
2 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 0, "sample_id": "compare-countries-area.dev.29", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Nigeria, Venezuela, Namibia, Mozambique"}], "sampled": ["Nigeria"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.316450+00:00"}
|
3 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 1, "sample_id": "compare-countries-area.dev.29", "type": "match", "data": {"correct": true, "expected": "Nigeria", "picked": "Nigeria", "sampled": "Nigeria", "options": ["Nigeria"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.316539+00:00"}
|
4 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 2, "sample_id": "compare-countries-area.dev.75", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Guyana, Belarus, Kyrgyzstan, Senegal"}], "sampled": ["Kyrgyzstan"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.397253+00:00"}
|
5 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 3, "sample_id": "compare-countries-area.dev.75", "type": "match", "data": {"correct": false, "expected": "Guyana", "picked": null, "sampled": "Kyrgyzstan", "options": ["Guyana"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.397285+00:00"}
|
6 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 4, "sample_id": "compare-countries-area.dev.87", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Greece, Nicaragua, North Korea, Malawi"}], "sampled": ["North Korea"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.419556+00:00"}
|
7 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 5, "sample_id": "compare-countries-area.dev.87", "type": "match", "data": {"correct": false, "expected": "Greece", "picked": null, "sampled": "North Korea", "options": ["Greece"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.419591+00:00"}
|
8 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 6, "sample_id": "compare-countries-area.dev.93", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Honduras, Liberia, Bulgaria, Cuba"}], "sampled": ["Cuba"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.456541+00:00"}
|
9 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 7, "sample_id": "compare-countries-area.dev.93", "type": "match", "data": {"correct": false, "expected": "Honduras", "picked": null, "sampled": "Cuba", "options": ["Honduras"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.456579+00:00"}
|
10 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 8, "sample_id": "compare-countries-area.dev.7", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Kazakhstan, Algeria, Democratic Republic of the Congo, Saudi Arabia"}], "sampled": ["Kazakhstan"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.500769+00:00"}
|
11 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 9, "sample_id": "compare-countries-area.dev.7", "type": "match", "data": {"correct": true, "expected": "Kazakhstan", "picked": "Kazakhstan", "sampled": "Kazakhstan", "options": ["Kazakhstan"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.500806+00:00"}
|
12 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 10, "sample_id": "compare-countries-area.dev.50", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Papua New Guinea, Uzbekistan, Iraq, Paraguay"}], "sampled": ["Uzbekistan"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.554841+00:00"}
|
13 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 11, "sample_id": "compare-countries-area.dev.50", "type": "match", "data": {"correct": false, "expected": "Papua New Guinea", "picked": null, "sampled": "Uzbekistan", "options": ["Papua New Guinea"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.554892+00:00"}
|
14 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 12, "sample_id": "compare-countries-area.dev.63", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Oman, Italy, Philippines, Burkina Faso"}], "sampled": ["Oman"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.646810+00:00"}
|
15 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 13, "sample_id": "compare-countries-area.dev.63", "type": "match", "data": {"correct": true, "expected": "Oman", "picked": "Oman", "sampled": "Oman", "options": ["Oman"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.646872+00:00"}
|
16 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 14, "sample_id": "compare-countries-area.dev.67", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. New Zealand, Gabon, Guinea, United Kingdom"}], "sampled": ["Gabon"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.740755+00:00"}
|
17 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 15, "sample_id": "compare-countries-area.dev.67", "type": "match", "data": {"correct": false, "expected": "New Zealand", "picked": null, "sampled": "Gabon", "options": ["New Zealand"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.740794+00:00"}
|
18 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 16, "sample_id": "compare-countries-area.dev.64", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Italy, Philippines, Burkina Faso, New Zealand"}], "sampled": ["Burkina Faso"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.856600+00:00"}
|
19 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 17, "sample_id": "compare-countries-area.dev.64", "type": "match", "data": {"correct": false, "expected": "Italy", "picked": null, "sampled": "Burkina Faso", "options": ["Italy"]}, "created_by": "", "created_at": "2023-05-02 22:00:55.856648+00:00"}
|
20 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 18, "sample_id": "compare-countries-area.dev.44", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Kenya, Yemen, Thailand, Spain"}], "sampled": ["Spain"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.408689+00:00"}
|
21 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 19, "sample_id": "compare-countries-area.dev.44", "type": "match", "data": {"correct": false, "expected": "Kenya", "picked": null, "sampled": "Spain", "options": ["Kenya"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.408737+00:00"}
|
22 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 20, "sample_id": "compare-countries-area.dev.24", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Ethiopia, Bolivia, Mauritania, Egypt"}], "sampled": ["Egypt"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.466658+00:00"}
|
23 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 21, "sample_id": "compare-countries-area.dev.24", "type": "match", "data": {"correct": false, "expected": "Ethiopia", "picked": null, "sampled": "Egypt", "options": ["Ethiopia"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.466694+00:00"}
|
24 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 22, "sample_id": "compare-countries-area.dev.84", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Bangladesh, Nepal, Tajikistan, Greece"}], "sampled": ["Tajikistan"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.486987+00:00"}
|
25 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 23, "sample_id": "compare-countries-area.dev.84", "type": "match", "data": {"correct": false, "expected": "Bangladesh", "picked": null, "sampled": "Tajikistan", "options": ["Bangladesh"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.487033+00:00"}
|
26 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 24, "sample_id": "compare-countries-area.dev.60", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Malaysia, Cote d'Ivoire, Poland, Oman"}], "sampled": ["Malaysia"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.580569+00:00"}
|
27 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 25, "sample_id": "compare-countries-area.dev.60", "type": "match", "data": {"correct": true, "expected": "Malaysia", "picked": "Malaysia", "sampled": "Malaysia", "options": ["Malaysia"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.580617+00:00"}
|
28 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 26, "sample_id": "compare-countries-area.dev.22", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. South Africa, Colombia, Ethiopia, Bolivia"}], "sampled": ["Bolivia"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.803035+00:00"}
|
29 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 27, "sample_id": "compare-countries-area.dev.22", "type": "match", "data": {"correct": false, "expected": "South Africa", "picked": null, "sampled": "Bolivia", "options": ["South Africa"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.803093+00:00"}
|
30 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 28, "sample_id": "compare-countries-area.dev.1", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Canada, United States, Brazil, Australia"}], "sampled": ["Canada"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.916036+00:00"}
|
31 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 29, "sample_id": "compare-countries-area.dev.1", "type": "match", "data": {"correct": true, "expected": "Canada", "picked": "Canada", "sampled": "Canada", "options": ["Canada"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.916096+00:00"}
|
32 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 30, "sample_id": "compare-countries-area.dev.9", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Democratic Republic of the Congo, Saudi Arabia, Mexico, Indonesia"}], "sampled": ["Saudi Arabia"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.938527+00:00"}
|
33 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 31, "sample_id": "compare-countries-area.dev.9", "type": "match", "data": {"correct": false, "expected": "Democratic Republic of the Congo", "picked": null, "sampled": "Saudi Arabia", "options": ["Democratic Republic of the Congo"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.938574+00:00"}
|
34 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 32, "sample_id": "compare-countries-area.dev.3", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Brazil, Australia, India, Argentina"}], "sampled": ["Brazil"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.984279+00:00"}
|
35 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 33, "sample_id": "compare-countries-area.dev.3", "type": "match", "data": {"correct": true, "expected": "Brazil", "picked": "Brazil", "sampled": "Brazil", "options": ["Brazil"]}, "created_by": "", "created_at": "2023-05-02 22:00:56.984312+00:00"}
|
36 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 34, "sample_id": "compare-countries-area.dev.14", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Libya, Iran, Mongolia, Peru"}], "sampled": ["Mongolia"]}, "created_by": "", "created_at": "2023-05-02 22:00:57.226900+00:00"}
|
37 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 35, "sample_id": "compare-countries-area.dev.14", "type": "match", "data": {"correct": false, "expected": "Libya", "picked": null, "sampled": "Mongolia", "options": ["Libya"]}, "created_by": "", "created_at": "2023-05-02 22:00:57.227007+00:00"}
|
38 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 36, "sample_id": "compare-countries-area.dev.45", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Yemen, Thailand, Spain, Turkmenistan"}], "sampled": ["Turkmenistan"]}, "created_by": "", "created_at": "2023-05-02 22:00:57.615849+00:00"}
|
39 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 37, "sample_id": "compare-countries-area.dev.45", "type": "match", "data": {"correct": false, "expected": "Yemen", "picked": null, "sampled": "Turkmenistan", "options": ["Yemen"]}, "created_by": "", "created_at": "2023-05-02 22:00:57.615910+00:00"}
|
40 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 38, "sample_id": "compare-countries-area.dev.85", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Nepal, Tajikistan, Greece, Nicaragua"}], "sampled": ["Nicaragua"]}, "created_by": "", "created_at": "2023-05-02 22:00:57.758067+00:00"}
|
41 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 39, "sample_id": "compare-countries-area.dev.85", "type": "match", "data": {"correct": false, "expected": "Nepal", "picked": null, "sampled": "Nicaragua", "options": ["Nepal"]}, "created_by": "", "created_at": "2023-05-02 22:00:57.758183+00:00"}
|
42 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 40, "sample_id": "compare-countries-area.dev.12", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Indonesia, Sudan, Libya, Iran"}], "sampled": ["Indonesia"]}, "created_by": "", "created_at": "2023-05-02 22:00:57.842279+00:00"}
|
43 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 41, "sample_id": "compare-countries-area.dev.12", "type": "match", "data": {"correct": true, "expected": "Indonesia", "picked": "Indonesia", "sampled": "Indonesia", "options": ["Indonesia"]}, "created_by": "", "created_at": "2023-05-02 22:00:57.842360+00:00"}
|
44 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 42, "sample_id": "compare-countries-area.dev.10", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Saudi Arabia, Mexico, Indonesia, Sudan"}], "sampled": ["Saudi Arabia"]}, "created_by": "", "created_at": "2023-05-02 22:00:57.858982+00:00"}
|
45 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 43, "sample_id": "compare-countries-area.dev.10", "type": "match", "data": {"correct": true, "expected": "Saudi Arabia", "picked": "Saudi Arabia", "sampled": "Saudi Arabia", "options": ["Saudi Arabia"]}, "created_by": "", "created_at": "2023-05-02 22:00:57.859028+00:00"}
|
46 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 44, "sample_id": "compare-countries-area.dev.74", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Laos, Guyana, Belarus, Kyrgyzstan"}], "sampled": ["Kyrgyzstan"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.055811+00:00"}
|
47 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 45, "sample_id": "compare-countries-area.dev.74", "type": "match", "data": {"correct": false, "expected": "Laos", "picked": null, "sampled": "Kyrgyzstan", "options": ["Laos"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.055857+00:00"}
|
48 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 46, "sample_id": "compare-countries-area.dev.54", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Zimbabwe, Japan, Germany, Republic of the Congo"}], "sampled": ["Republic of the Congo"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.133180+00:00"}
|
49 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 47, "sample_id": "compare-countries-area.dev.54", "type": "match", "data": {"correct": false, "expected": "Zimbabwe", "picked": null, "sampled": "Republic of the Congo", "options": ["Zimbabwe"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.133226+00:00"}
|
50 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 48, "sample_id": "compare-countries-area.dev.96", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Cuba, Guatemala, Iceland, South Korea"}], "sampled": ["Iceland"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.150770+00:00"}
|
51 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 49, "sample_id": "compare-countries-area.dev.96", "type": "match", "data": {"correct": false, "expected": "Cuba", "picked": null, "sampled": "Iceland", "options": ["Cuba"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.150811+00:00"}
|
52 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 50, "sample_id": "compare-countries-area.dev.28", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Tanzania, Nigeria, Venezuela, Namibia"}], "sampled": ["Tanzania"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.241408+00:00"}
|
53 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 51, "sample_id": "compare-countries-area.dev.28", "type": "match", "data": {"correct": true, "expected": "Tanzania", "picked": "Tanzania", "sampled": "Tanzania", "options": ["Tanzania"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.241454+00:00"}
|
54 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 52, "sample_id": "compare-countries-area.dev.15", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Iran, Mongolia, Peru, Chad"}], "sampled": ["Mongolia"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.270289+00:00"}
|
55 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 53, "sample_id": "compare-countries-area.dev.15", "type": "match", "data": {"correct": false, "expected": "Iran", "picked": null, "sampled": "Mongolia", "options": ["Iran"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.270338+00:00"}
|
56 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 54, "sample_id": "compare-countries-area.dev.69", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Guinea, United Kingdom, Uganda, Ghana"}], "sampled": ["United Kingdom"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.697944+00:00"}
|
57 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 55, "sample_id": "compare-countries-area.dev.69", "type": "match", "data": {"correct": false, "expected": "Guinea", "picked": null, "sampled": "United Kingdom", "options": ["Guinea"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.698109+00:00"}
|
58 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 56, "sample_id": "compare-countries-area.dev.82", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Suriname, Tunisia, Bangladesh, Nepal"}], "sampled": ["Suriname"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.831838+00:00"}
|
59 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 57, "sample_id": "compare-countries-area.dev.82", "type": "match", "data": {"correct": true, "expected": "Suriname", "picked": "Suriname", "sampled": "Suriname", "options": ["Suriname"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.831898+00:00"}
|
60 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 58, "sample_id": "compare-countries-area.dev.35", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Zambia, Morocco, Burma, Afghanistan"}], "sampled": ["Zambia"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.941127+00:00"}
|
61 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 59, "sample_id": "compare-countries-area.dev.35", "type": "match", "data": {"correct": true, "expected": "Zambia", "picked": "Zambia", "sampled": "Zambia", "options": ["Zambia"]}, "created_by": "", "created_at": "2023-05-02 22:00:58.941186+00:00"}
|
62 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 60, "sample_id": "compare-countries-area.dev.46", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Thailand, Spain, Turkmenistan, Cameroon"}], "sampled": ["Turkmenistan"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.068328+00:00"}
|
63 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 61, "sample_id": "compare-countries-area.dev.46", "type": "match", "data": {"correct": false, "expected": "Thailand", "picked": null, "sampled": "Turkmenistan", "options": ["Thailand"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.068384+00:00"}
|
64 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 62, "sample_id": "compare-countries-area.dev.83", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Tunisia, Bangladesh, Nepal, Tajikistan"}], "sampled": ["Tajikistan"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.114516+00:00"}
|
65 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 63, "sample_id": "compare-countries-area.dev.83", "type": "match", "data": {"correct": false, "expected": "Tunisia", "picked": null, "sampled": "Tajikistan", "options": ["Tunisia"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.114568+00:00"}
|
66 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 64, "sample_id": "compare-countries-area.dev.39", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Somalia, Central African Republic, Ukraine, Madagascar"}], "sampled": ["Ukraine"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.180474+00:00"}
|
67 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 65, "sample_id": "compare-countries-area.dev.39", "type": "match", "data": {"correct": false, "expected": "Somalia", "picked": null, "sampled": "Ukraine", "options": ["Somalia"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.180533+00:00"}
|
68 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 66, "sample_id": "compare-countries-area.dev.26", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Mauritania, Egypt, Tanzania, Nigeria"}], "sampled": ["Egypt"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.329501+00:00"}
|
69 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 67, "sample_id": "compare-countries-area.dev.26", "type": "match", "data": {"correct": false, "expected": "Mauritania", "picked": null, "sampled": "Egypt", "options": ["Mauritania"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.329549+00:00"}
|
70 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 68, "sample_id": "compare-countries-area.dev.23", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Colombia, Ethiopia, Bolivia, Mauritania"}], "sampled": ["Colombia"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.437241+00:00"}
|
71 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 69, "sample_id": "compare-countries-area.dev.23", "type": "match", "data": {"correct": true, "expected": "Colombia", "picked": "Colombia", "sampled": "Colombia", "options": ["Colombia"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.437300+00:00"}
|
72 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 70, "sample_id": "compare-countries-area.dev.81", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Uruguay, Suriname, Tunisia, Bangladesh"}], "sampled": ["Uruguay"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.808527+00:00"}
|
73 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 71, "sample_id": "compare-countries-area.dev.81", "type": "match", "data": {"correct": true, "expected": "Uruguay", "picked": "Uruguay", "sampled": "Uruguay", "options": ["Uruguay"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.808565+00:00"}
|
74 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 72, "sample_id": "compare-countries-area.dev.25", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Bolivia, Mauritania, Egypt, Tanzania"}], "sampled": ["Egypt"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.867368+00:00"}
|
75 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 73, "sample_id": "compare-countries-area.dev.25", "type": "match", "data": {"correct": false, "expected": "Bolivia", "picked": null, "sampled": "Egypt", "options": ["Bolivia"]}, "created_by": "", "created_at": "2023-05-02 22:00:59.867408+00:00"}
|
76 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 74, "sample_id": "compare-countries-area.dev.27", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Egypt, Tanzania, Nigeria, Venezuela"}], "sampled": ["Egypt"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.190246+00:00"}
|
77 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 75, "sample_id": "compare-countries-area.dev.27", "type": "match", "data": {"correct": true, "expected": "Egypt", "picked": "Egypt", "sampled": "Egypt", "options": ["Egypt"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.190301+00:00"}
|
78 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 76, "sample_id": "compare-countries-area.dev.91", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Eritrea, Benin, Honduras, Liberia"}], "sampled": ["Honduras"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.197211+00:00"}
|
79 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 77, "sample_id": "compare-countries-area.dev.91", "type": "match", "data": {"correct": false, "expected": "Eritrea", "picked": null, "sampled": "Honduras", "options": ["Eritrea"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.197275+00:00"}
|
80 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 78, "sample_id": "compare-countries-area.dev.41", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Ukraine, Madagascar, Botswana, Kenya"}], "sampled": ["Ukraine"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.285398+00:00"}
|
81 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 79, "sample_id": "compare-countries-area.dev.41", "type": "match", "data": {"correct": true, "expected": "Ukraine", "picked": "Ukraine", "sampled": "Ukraine", "options": ["Ukraine"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.285455+00:00"}
|
82 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 80, "sample_id": "compare-countries-area.dev.56", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Germany, Republic of the Congo, Finland, Vietnam"}], "sampled": ["Republic of the Congo"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.301495+00:00"}
|
83 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 81, "sample_id": "compare-countries-area.dev.56", "type": "match", "data": {"correct": false, "expected": "Germany", "picked": null, "sampled": "Republic of the Congo", "options": ["Germany"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.301541+00:00"}
|
84 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 82, "sample_id": "compare-countries-area.dev.32", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Mozambique, Turkey (Turkiye), Chile, Zambia"}], "sampled": ["Turkey"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.425284+00:00"}
|
85 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 83, "sample_id": "compare-countries-area.dev.32", "type": "match", "data": {"correct": false, "expected": "Mozambique", "picked": null, "sampled": "Turkey", "options": ["Mozambique"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.425323+00:00"}
|
86 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 84, "sample_id": "compare-countries-area.dev.73", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Romania, Laos, Guyana, Belarus"}], "sampled": ["Romania"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.641117+00:00"}
|
87 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 85, "sample_id": "compare-countries-area.dev.73", "type": "match", "data": {"correct": true, "expected": "Romania", "picked": "Romania", "sampled": "Romania", "options": ["Romania"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.641157+00:00"}
|
88 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 86, "sample_id": "compare-countries-area.dev.95", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Bulgaria, Cuba, Guatemala, Iceland"}], "sampled": ["Iceland"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.842373+00:00"}
|
89 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 87, "sample_id": "compare-countries-area.dev.95", "type": "match", "data": {"correct": false, "expected": "Bulgaria", "picked": null, "sampled": "Iceland", "options": ["Bulgaria"]}, "created_by": "", "created_at": "2023-05-02 22:01:00.842412+00:00"}
|
90 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 88, "sample_id": "compare-countries-area.dev.80", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Cambodia, Uruguay, Suriname, Tunisia"}], "sampled": ["Suriname"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.207156+00:00"}
|
91 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 89, "sample_id": "compare-countries-area.dev.80", "type": "match", "data": {"correct": false, "expected": "Cambodia", "picked": null, "sampled": "Suriname", "options": ["Cambodia"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.207188+00:00"}
|
92 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 90, "sample_id": "compare-countries-area.dev.62", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Poland, Oman, Italy, Philippines"}], "sampled": ["Oman"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.293808+00:00"}
|
93 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 91, "sample_id": "compare-countries-area.dev.62", "type": "match", "data": {"correct": false, "expected": "Poland", "picked": null, "sampled": "Oman", "options": ["Poland"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.293837+00:00"}
|
94 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 92, "sample_id": "compare-countries-area.dev.33", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Turkey (Turkiye), Chile, Zambia, Morocco"}], "sampled": ["Turkey"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.420751+00:00"}
|
95 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 93, "sample_id": "compare-countries-area.dev.33", "type": "match", "data": {"correct": false, "expected": "Turkey (Turkiye)", "picked": null, "sampled": "Turkey", "options": ["Turkey (Turkiye)"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.420842+00:00"}
|
96 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 94, "sample_id": "compare-countries-area.dev.72", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Ghana, Romania, Laos, Guyana"}], "sampled": ["Romania"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.438715+00:00"}
|
97 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 95, "sample_id": "compare-countries-area.dev.72", "type": "match", "data": {"correct": false, "expected": "Ghana", "picked": null, "sampled": "Romania", "options": ["Ghana"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.438752+00:00"}
|
98 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 96, "sample_id": "compare-countries-area.dev.59", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Vietnam, Malaysia, Cote d'Ivoire, Poland"}], "sampled": ["Poland"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.610115+00:00"}
|
99 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 97, "sample_id": "compare-countries-area.dev.59", "type": "match", "data": {"correct": false, "expected": "Vietnam", "picked": null, "sampled": "Poland", "options": ["Vietnam"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.610162+00:00"}
|
100 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 98, "sample_id": "compare-countries-area.dev.58", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Finland, Vietnam, Malaysia, Cote d'Ivoire"}], "sampled": ["Finland"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.632806+00:00"}
|
101 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 99, "sample_id": "compare-countries-area.dev.58", "type": "match", "data": {"correct": true, "expected": "Finland", "picked": "Finland", "sampled": "Finland", "options": ["Finland"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.632847+00:00"}
|
102 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 100, "sample_id": "compare-countries-area.dev.70", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. United Kingdom, Uganda, Ghana, Romania"}], "sampled": ["Romania"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.828989+00:00"}
|
103 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 101, "sample_id": "compare-countries-area.dev.70", "type": "match", "data": {"correct": false, "expected": "United Kingdom", "picked": null, "sampled": "Romania", "options": ["United Kingdom"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.829030+00:00"}
|
104 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 102, "sample_id": "compare-countries-area.dev.51", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Uzbekistan, Iraq, Paraguay, Zimbabwe"}], "sampled": ["Uzbekistan"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.829704+00:00"}
|
105 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 103, "sample_id": "compare-countries-area.dev.51", "type": "match", "data": {"correct": true, "expected": "Uzbekistan", "picked": "Uzbekistan", "sampled": "Uzbekistan", "options": ["Uzbekistan"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.829738+00:00"}
|
106 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 104, "sample_id": "compare-countries-area.dev.38", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Afghanistan, Somalia, Central African Republic, Ukraine"}], "sampled": ["Ukraine"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.849477+00:00"}
|
107 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 105, "sample_id": "compare-countries-area.dev.38", "type": "match", "data": {"correct": false, "expected": "Afghanistan", "picked": null, "sampled": "Ukraine", "options": ["Afghanistan"]}, "created_by": "", "created_at": "2023-05-02 22:01:01.849521+00:00"}
|
108 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 106, "sample_id": "compare-countries-area.dev.47", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Spain, Turkmenistan, Cameroon, Papua New Guinea"}], "sampled": ["Turkmenistan"]}, "created_by": "", "created_at": "2023-05-02 22:01:02.330502+00:00"}
|
109 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 107, "sample_id": "compare-countries-area.dev.47", "type": "match", "data": {"correct": false, "expected": "Spain", "picked": null, "sampled": "Turkmenistan", "options": ["Spain"]}, "created_by": "", "created_at": "2023-05-02 22:01:02.330563+00:00"}
|
110 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 108, "sample_id": "compare-countries-area.dev.53", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Paraguay, Zimbabwe, Japan, Germany"}], "sampled": ["Paraguay"]}, "created_by": "", "created_at": "2023-05-02 22:01:02.612420+00:00"}
|
111 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 109, "sample_id": "compare-countries-area.dev.53", "type": "match", "data": {"correct": true, "expected": "Paraguay", "picked": "Paraguay", "sampled": "Paraguay", "options": ["Paraguay"]}, "created_by": "", "created_at": "2023-05-02 22:01:02.612460+00:00"}
|
112 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 110, "sample_id": "compare-countries-area.dev.65", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Philippines, Burkina Faso, New Zealand, Gabon"}], "sampled": ["New Zealand"]}, "created_by": "", "created_at": "2023-05-02 22:01:02.721642+00:00"}
|
113 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 111, "sample_id": "compare-countries-area.dev.65", "type": "match", "data": {"correct": false, "expected": "Philippines", "picked": null, "sampled": "New Zealand", "options": ["Philippines"]}, "created_by": "", "created_at": "2023-05-02 22:01:02.721679+00:00"}
|
114 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 112, "sample_id": "compare-countries-area.dev.19", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Niger, Angola, Mali, South Africa"}], "sampled": ["Mali"]}, "created_by": "", "created_at": "2023-05-02 22:01:02.798661+00:00"}
|
115 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 113, "sample_id": "compare-countries-area.dev.19", "type": "match", "data": {"correct": false, "expected": "Niger", "picked": null, "sampled": "Mali", "options": ["Niger"]}, "created_by": "", "created_at": "2023-05-02 22:01:02.798700+00:00"}
|
116 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 114, "sample_id": "compare-countries-area.dev.61", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Cote d'Ivoire, Poland, Oman, Italy"}], "sampled": ["Oman"]}, "created_by": "", "created_at": "2023-05-02 22:01:02.884042+00:00"}
|
117 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 115, "sample_id": "compare-countries-area.dev.61", "type": "match", "data": {"correct": false, "expected": "Cote d'Ivoire", "picked": null, "sampled": "Oman", "options": ["Cote d'Ivoire"]}, "created_by": "", "created_at": "2023-05-02 22:01:02.884104+00:00"}
|
118 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 116, "sample_id": "compare-countries-area.dev.66", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Burkina Faso, New Zealand, Gabon, Guinea"}], "sampled": ["Guinea"]}, "created_by": "", "created_at": "2023-05-02 22:01:03.036786+00:00"}
|
119 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 117, "sample_id": "compare-countries-area.dev.66", "type": "match", "data": {"correct": false, "expected": "Burkina Faso", "picked": null, "sampled": "Guinea", "options": ["Burkina Faso"]}, "created_by": "", "created_at": "2023-05-02 22:01:03.036833+00:00"}
|
120 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 118, "sample_id": "compare-countries-area.dev.36", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Morocco, Burma, Afghanistan, Somalia"}], "sampled": ["Afghanistan"]}, "created_by": "", "created_at": "2023-05-02 22:01:03.047561+00:00"}
|
121 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 119, "sample_id": "compare-countries-area.dev.36", "type": "match", "data": {"correct": false, "expected": "Morocco", "picked": null, "sampled": "Afghanistan", "options": ["Morocco"]}, "created_by": "", "created_at": "2023-05-02 22:01:03.047613+00:00"}
|
122 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 120, "sample_id": "compare-countries-area.dev.49", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Cameroon, Papua New Guinea, Uzbekistan, Iraq"}], "sampled": ["Uzbekistan"]}, "created_by": "", "created_at": "2023-05-02 22:01:03.323754+00:00"}
|
123 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 121, "sample_id": "compare-countries-area.dev.49", "type": "match", "data": {"correct": false, "expected": "Cameroon", "picked": null, "sampled": "Uzbekistan", "options": ["Cameroon"]}, "created_by": "", "created_at": "2023-05-02 22:01:03.323803+00:00"}
|
124 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 122, "sample_id": "compare-countries-area.dev.21", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Mali, South Africa, Colombia, Ethiopia"}], "sampled": ["Mali"]}, "created_by": "", "created_at": "2023-05-02 22:01:03.954457+00:00"}
|
125 |
+
{"final_report": {"accuracy": 0.34}}
|
126 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 123, "sample_id": "compare-countries-area.dev.21", "type": "match", "data": {"correct": true, "expected": "Mali", "picked": "Mali", "sampled": "Mali", "options": ["Mali"]}, "created_by": "", "created_at": "2023-05-02 22:01:03.966239+00:00"}
|
127 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 124, "sample_id": "compare-countries-area.dev.37", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Burma, Afghanistan, Somalia, Central African Republic"}], "sampled": ["Central African Republic"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.132253+00:00"}
|
128 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 125, "sample_id": "compare-countries-area.dev.37", "type": "match", "data": {"correct": false, "expected": "Burma", "picked": null, "sampled": "Central African Republic", "options": ["Burma"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.132295+00:00"}
|
129 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 126, "sample_id": "compare-countries-area.dev.78", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Senegal, Syria, Cambodia, Uruguay"}], "sampled": ["Senegal"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.246528+00:00"}
|
130 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 127, "sample_id": "compare-countries-area.dev.78", "type": "match", "data": {"correct": true, "expected": "Senegal", "picked": "Senegal", "sampled": "Senegal", "options": ["Senegal"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.246577+00:00"}
|
131 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 128, "sample_id": "compare-countries-area.dev.77", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Kyrgyzstan, Senegal, Syria, Cambodia"}], "sampled": ["Kyrgyzstan"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.248201+00:00"}
|
132 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 129, "sample_id": "compare-countries-area.dev.77", "type": "match", "data": {"correct": true, "expected": "Kyrgyzstan", "picked": "Kyrgyzstan", "sampled": "Kyrgyzstan", "options": ["Kyrgyzstan"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.248317+00:00"}
|
133 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 130, "sample_id": "compare-countries-area.dev.30", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Venezuela, Namibia, Mozambique, Turkey (Turkiye)"}], "sampled": ["Venezuela"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.249202+00:00"}
|
134 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 131, "sample_id": "compare-countries-area.dev.30", "type": "match", "data": {"correct": true, "expected": "Venezuela", "picked": "Venezuela", "sampled": "Venezuela", "options": ["Venezuela"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.249277+00:00"}
|
135 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 132, "sample_id": "compare-countries-area.dev.5", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. India, Argentina, Kazakhstan, Algeria"}], "sampled": ["Kazakhstan"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.398013+00:00"}
|
136 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 133, "sample_id": "compare-countries-area.dev.5", "type": "match", "data": {"correct": false, "expected": "India", "picked": null, "sampled": "Kazakhstan", "options": ["India"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.398073+00:00"}
|
137 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 134, "sample_id": "compare-countries-area.dev.16", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Mongolia, Peru, Chad, Niger"}], "sampled": ["Mongolia"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.467268+00:00"}
|
138 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 135, "sample_id": "compare-countries-area.dev.16", "type": "match", "data": {"correct": true, "expected": "Mongolia", "picked": "Mongolia", "sampled": "Mongolia", "options": ["Mongolia"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.467315+00:00"}
|
139 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 136, "sample_id": "compare-countries-area.dev.2", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. United States, Brazil, Australia, India"}], "sampled": ["Russia"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.593204+00:00"}
|
140 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 137, "sample_id": "compare-countries-area.dev.2", "type": "match", "data": {"correct": false, "expected": "United States", "picked": null, "sampled": "Russia", "options": ["United States"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.593284+00:00"}
|
141 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 138, "sample_id": "compare-countries-area.dev.94", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Liberia, Bulgaria, Cuba, Guatemala"}], "sampled": ["Cuba"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.601947+00:00"}
|
142 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 139, "sample_id": "compare-countries-area.dev.94", "type": "match", "data": {"correct": false, "expected": "Liberia", "picked": null, "sampled": "Cuba", "options": ["Liberia"]}, "created_by": "", "created_at": "2023-05-02 22:01:04.601988+00:00"}
|
143 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 140, "sample_id": "compare-countries-area.dev.8", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Algeria, Democratic Republic of the Congo, Saudi Arabia, Mexico"}], "sampled": ["Democratic Republic of the Congo"]}, "created_by": "", "created_at": "2023-05-02 22:01:05.358992+00:00"}
|
144 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 141, "sample_id": "compare-countries-area.dev.8", "type": "match", "data": {"correct": false, "expected": "Algeria", "picked": null, "sampled": "Democratic Republic of the Congo", "options": ["Algeria"]}, "created_by": "", "created_at": "2023-05-02 22:01:05.359035+00:00"}
|
145 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 142, "sample_id": "compare-countries-area.dev.57", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Republic of the Congo, Finland, Vietnam, Malaysia"}], "sampled": ["Republic of the Congo"]}, "created_by": "", "created_at": "2023-05-02 22:01:05.532228+00:00"}
|
146 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 143, "sample_id": "compare-countries-area.dev.57", "type": "match", "data": {"correct": true, "expected": "Republic of the Congo", "picked": "Republic of the Congo", "sampled": "Republic of the Congo", "options": ["Republic of the Congo"]}, "created_by": "", "created_at": "2023-05-02 22:01:05.532268+00:00"}
|
147 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 144, "sample_id": "compare-countries-area.dev.40", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Central African Republic, Ukraine, Madagascar, Botswana"}], "sampled": ["Ukraine"]}, "created_by": "", "created_at": "2023-05-02 22:01:05.658089+00:00"}
|
148 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 145, "sample_id": "compare-countries-area.dev.40", "type": "match", "data": {"correct": false, "expected": "Central African Republic", "picked": null, "sampled": "Ukraine", "options": ["Central African Republic"]}, "created_by": "", "created_at": "2023-05-02 22:01:05.658187+00:00"}
|
149 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 146, "sample_id": "compare-countries-area.dev.76", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Belarus, Kyrgyzstan, Senegal, Syria"}], "sampled": ["Kyrgyzstan"]}, "created_by": "", "created_at": "2023-05-02 22:01:05.695281+00:00"}
|
150 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 147, "sample_id": "compare-countries-area.dev.76", "type": "match", "data": {"correct": false, "expected": "Belarus", "picked": null, "sampled": "Kyrgyzstan", "options": ["Belarus"]}, "created_by": "", "created_at": "2023-05-02 22:01:05.695329+00:00"}
|
151 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 148, "sample_id": "compare-countries-area.dev.79", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Syria, Cambodia, Uruguay, Suriname"}], "sampled": ["Syria"]}, "created_by": "", "created_at": "2023-05-02 22:01:05.820417+00:00"}
|
152 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 149, "sample_id": "compare-countries-area.dev.79", "type": "match", "data": {"correct": true, "expected": "Syria", "picked": "Syria", "sampled": "Syria", "options": ["Syria"]}, "created_by": "", "created_at": "2023-05-02 22:01:05.820489+00:00"}
|
153 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 150, "sample_id": "compare-countries-area.dev.18", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Chad, Niger, Angola, Mali"}], "sampled": ["Mali"]}, "created_by": "", "created_at": "2023-05-02 22:01:05.930911+00:00"}
|
154 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 151, "sample_id": "compare-countries-area.dev.18", "type": "match", "data": {"correct": false, "expected": "Chad", "picked": null, "sampled": "Mali", "options": ["Chad"]}, "created_by": "", "created_at": "2023-05-02 22:01:05.930949+00:00"}
|
155 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 152, "sample_id": "compare-countries-area.dev.55", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Japan, Germany, Republic of the Congo, Finland"}], "sampled": ["Republic of the Congo"]}, "created_by": "", "created_at": "2023-05-02 22:01:06.082906+00:00"}
|
156 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 153, "sample_id": "compare-countries-area.dev.55", "type": "match", "data": {"correct": false, "expected": "Japan", "picked": null, "sampled": "Republic of the Congo", "options": ["Japan"]}, "created_by": "", "created_at": "2023-05-02 22:01:06.082964+00:00"}
|
157 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 154, "sample_id": "compare-countries-area.dev.0", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Russia, Canada, United States, Brazil"}], "sampled": ["Russia"]}, "created_by": "", "created_at": "2023-05-02 22:01:06.135911+00:00"}
|
158 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 155, "sample_id": "compare-countries-area.dev.0", "type": "match", "data": {"correct": true, "expected": "Russia", "picked": "Russia", "sampled": "Russia", "options": ["Russia"]}, "created_by": "", "created_at": "2023-05-02 22:01:06.135957+00:00"}
|
159 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 156, "sample_id": "compare-countries-area.dev.97", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Guatemala, Iceland, South Korea, Hungary"}], "sampled": ["Iceland"]}, "created_by": "", "created_at": "2023-05-02 22:01:06.146102+00:00"}
|
160 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 157, "sample_id": "compare-countries-area.dev.97", "type": "match", "data": {"correct": false, "expected": "Guatemala", "picked": null, "sampled": "Iceland", "options": ["Guatemala"]}, "created_by": "", "created_at": "2023-05-02 22:01:06.146137+00:00"}
|
161 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 158, "sample_id": "compare-countries-area.dev.92", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Benin, Honduras, Liberia, Bulgaria"}], "sampled": ["Honduras"]}, "created_by": "", "created_at": "2023-05-02 22:01:06.432798+00:00"}
|
162 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 159, "sample_id": "compare-countries-area.dev.92", "type": "match", "data": {"correct": false, "expected": "Benin", "picked": null, "sampled": "Honduras", "options": ["Benin"]}, "created_by": "", "created_at": "2023-05-02 22:01:06.432846+00:00"}
|
163 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 160, "sample_id": "compare-countries-area.dev.31", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Namibia, Mozambique, Turkey (Turkiye), Chile"}], "sampled": ["Namibia"]}, "created_by": "", "created_at": "2023-05-02 22:01:06.803731+00:00"}
|
164 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 161, "sample_id": "compare-countries-area.dev.31", "type": "match", "data": {"correct": true, "expected": "Namibia", "picked": "Namibia", "sampled": "Namibia", "options": ["Namibia"]}, "created_by": "", "created_at": "2023-05-02 22:01:06.803790+00:00"}
|
165 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 162, "sample_id": "compare-countries-area.dev.86", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Tajikistan, Greece, Nicaragua, North Korea"}], "sampled": ["North Korea"]}, "created_by": "", "created_at": "2023-05-02 22:01:06.883323+00:00"}
|
166 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 163, "sample_id": "compare-countries-area.dev.86", "type": "match", "data": {"correct": false, "expected": "Tajikistan", "picked": null, "sampled": "North Korea", "options": ["Tajikistan"]}, "created_by": "", "created_at": "2023-05-02 22:01:06.883362+00:00"}
|
167 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 164, "sample_id": "compare-countries-area.dev.88", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Nicaragua, North Korea, Malawi, Eritrea"}], "sampled": ["North Korea"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.145276+00:00"}
|
168 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 165, "sample_id": "compare-countries-area.dev.88", "type": "match", "data": {"correct": false, "expected": "Nicaragua", "picked": null, "sampled": "North Korea", "options": ["Nicaragua"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.145307+00:00"}
|
169 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 166, "sample_id": "compare-countries-area.dev.90", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Malawi, Eritrea, Benin, Honduras"}], "sampled": ["Honduras"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.187047+00:00"}
|
170 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 167, "sample_id": "compare-countries-area.dev.90", "type": "match", "data": {"correct": false, "expected": "Malawi", "picked": null, "sampled": "Honduras", "options": ["Malawi"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.187077+00:00"}
|
171 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 168, "sample_id": "compare-countries-area.dev.89", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. North Korea, Malawi, Eritrea, Benin"}], "sampled": ["North Korea"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.259816+00:00"}
|
172 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 169, "sample_id": "compare-countries-area.dev.89", "type": "match", "data": {"correct": true, "expected": "North Korea", "picked": "North Korea", "sampled": "North Korea", "options": ["North Korea"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.259875+00:00"}
|
173 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 170, "sample_id": "compare-countries-area.dev.43", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Botswana, Kenya, Yemen, Thailand"}], "sampled": ["Botswana"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.440412+00:00"}
|
174 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 171, "sample_id": "compare-countries-area.dev.43", "type": "match", "data": {"correct": true, "expected": "Botswana", "picked": "Botswana", "sampled": "Botswana", "options": ["Botswana"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.440470+00:00"}
|
175 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 172, "sample_id": "compare-countries-area.dev.20", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Angola, Mali, South Africa, Colombia"}], "sampled": ["Mali"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.463677+00:00"}
|
176 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 173, "sample_id": "compare-countries-area.dev.20", "type": "match", "data": {"correct": false, "expected": "Angola", "picked": null, "sampled": "Mali", "options": ["Angola"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.463726+00:00"}
|
177 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 174, "sample_id": "compare-countries-area.dev.17", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Peru, Chad, Niger, Angola"}], "sampled": ["Chad"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.475710+00:00"}
|
178 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 175, "sample_id": "compare-countries-area.dev.17", "type": "match", "data": {"correct": false, "expected": "Peru", "picked": null, "sampled": "Chad", "options": ["Peru"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.475761+00:00"}
|
179 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 176, "sample_id": "compare-countries-area.dev.42", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Madagascar, Botswana, Kenya, Yemen"}], "sampled": ["Botswana"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.969527+00:00"}
|
180 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 177, "sample_id": "compare-countries-area.dev.42", "type": "match", "data": {"correct": false, "expected": "Madagascar", "picked": null, "sampled": "Botswana", "options": ["Madagascar"]}, "created_by": "", "created_at": "2023-05-02 22:01:07.969566+00:00"}
|
181 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 178, "sample_id": "compare-countries-area.dev.71", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Uganda, Ghana, Romania, Laos"}], "sampled": ["Romania"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.059011+00:00"}
|
182 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 179, "sample_id": "compare-countries-area.dev.71", "type": "match", "data": {"correct": false, "expected": "Uganda", "picked": null, "sampled": "Romania", "options": ["Uganda"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.059056+00:00"}
|
183 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 180, "sample_id": "compare-countries-area.dev.11", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Mexico, Indonesia, Sudan, Libya"}], "sampled": ["Libya"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.231788+00:00"}
|
184 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 181, "sample_id": "compare-countries-area.dev.11", "type": "match", "data": {"correct": false, "expected": "Mexico", "picked": null, "sampled": "Libya", "options": ["Mexico"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.231848+00:00"}
|
185 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 182, "sample_id": "compare-countries-area.dev.13", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Sudan, Libya, Iran, Mongolia"}], "sampled": ["Mongolia"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.281839+00:00"}
|
186 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 183, "sample_id": "compare-countries-area.dev.13", "type": "match", "data": {"correct": false, "expected": "Sudan", "picked": null, "sampled": "Mongolia", "options": ["Sudan"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.281920+00:00"}
|
187 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 184, "sample_id": "compare-countries-area.dev.98", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Iceland, South Korea, Hungary, Portugal"}], "sampled": ["Iceland"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.299851+00:00"}
|
188 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 185, "sample_id": "compare-countries-area.dev.98", "type": "match", "data": {"correct": true, "expected": "Iceland", "picked": "Iceland", "sampled": "Iceland", "options": ["Iceland"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.299910+00:00"}
|
189 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 186, "sample_id": "compare-countries-area.dev.68", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Gabon, Guinea, United Kingdom, Uganda"}], "sampled": ["Guinea"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.356606+00:00"}
|
190 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 187, "sample_id": "compare-countries-area.dev.68", "type": "match", "data": {"correct": false, "expected": "Gabon", "picked": null, "sampled": "Guinea", "options": ["Gabon"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.356665+00:00"}
|
191 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 188, "sample_id": "compare-countries-area.dev.48", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Turkmenistan, Cameroon, Papua New Guinea, Uzbekistan"}], "sampled": ["Turkmenistan"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.531996+00:00"}
|
192 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 189, "sample_id": "compare-countries-area.dev.48", "type": "match", "data": {"correct": true, "expected": "Turkmenistan", "picked": "Turkmenistan", "sampled": "Turkmenistan", "options": ["Turkmenistan"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.532045+00:00"}
|
193 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 190, "sample_id": "compare-countries-area.dev.99", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. South Korea, Hungary, Portugal, Jordan"}], "sampled": ["Portugal"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.706003+00:00"}
|
194 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 191, "sample_id": "compare-countries-area.dev.99", "type": "match", "data": {"correct": false, "expected": "South Korea", "picked": null, "sampled": "Portugal", "options": ["South Korea"]}, "created_by": "", "created_at": "2023-05-02 22:01:08.706100+00:00"}
|
195 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 192, "sample_id": "compare-countries-area.dev.52", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Iraq, Paraguay, Zimbabwe, Japan"}], "sampled": ["Iraq"]}, "created_by": "", "created_at": "2023-05-02 22:01:09.065081+00:00"}
|
196 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 193, "sample_id": "compare-countries-area.dev.52", "type": "match", "data": {"correct": true, "expected": "Iraq", "picked": "Iraq", "sampled": "Iraq", "options": ["Iraq"]}, "created_by": "", "created_at": "2023-05-02 22:01:09.065142+00:00"}
|
197 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 194, "sample_id": "compare-countries-area.dev.6", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Argentina, Kazakhstan, Algeria, Democratic Republic of the Congo"}], "sampled": ["Kazakhstan"]}, "created_by": "", "created_at": "2023-05-02 22:01:09.292687+00:00"}
|
198 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 195, "sample_id": "compare-countries-area.dev.6", "type": "match", "data": {"correct": false, "expected": "Argentina", "picked": null, "sampled": "Kazakhstan", "options": ["Argentina"]}, "created_by": "", "created_at": "2023-05-02 22:01:09.292736+00:00"}
|
199 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 196, "sample_id": "compare-countries-area.dev.4", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Australia, India, Argentina, Kazakhstan"}], "sampled": ["Kazakhstan"]}, "created_by": "", "created_at": "2023-05-02 22:01:09.404514+00:00"}
|
200 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 197, "sample_id": "compare-countries-area.dev.4", "type": "match", "data": {"correct": false, "expected": "Australia", "picked": null, "sampled": "Kazakhstan", "options": ["Australia"]}, "created_by": "", "created_at": "2023-05-02 22:01:09.404571+00:00"}
|
201 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 198, "sample_id": "compare-countries-area.dev.34", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Chile, Zambia, Morocco, Burma"}], "sampled": ["Chile"]}, "created_by": "", "created_at": "2023-05-02 22:01:09.432356+00:00"}
|
202 |
+
{"run_id": "230502220053WFIIYNGV", "event_id": 199, "sample_id": "compare-countries-area.dev.34", "type": "match", "data": {"correct": true, "expected": "Chile", "picked": "Chile", "sampled": "Chile", "options": ["Chile"]}, "created_by": "", "created_at": "2023-05-02 22:01:09.432446+00:00"}
|
evals/country-area/countries-turbo.jsonl
ADDED
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{"spec": {"completion_fns": ["gpt-3.5-turbo"], "eval_name": "compare-countries-area.dev.v0", "base_eval": "compare-countries-area", "split": "dev", "run_config": {"completion_fns": ["gpt-3.5-turbo"], "eval_spec": {"cls": "evals.elsuite.basic.match:Match", "args": {"samples_jsonl": "compare-countries-area/samples.jsonl"}, "key": "compare-countries-area.dev.v0", "group": "compare-countries-area"}, "seed": 20220722, "max_samples": null, "command": "/Users/acabrera/dev-research/22-zeno/openai-eval/evals/evals/cli/oaieval.py gpt-3.5-turbo compare-countries-area", "initial_settings": {"visible": true}}, "created_by": "", "run_id": "230502214435SJ6IKUJX", "created_at": "2023-05-02 21:44:35.099929"}}
|
2 |
+
{"final_report": {"accuracy": 0.3}}
|
3 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 0, "sample_id": "compare-countries-area.dev.67", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. New Zealand, Gabon, Guinea, United Kingdom"}], "sampled": ["Gabon."]}, "created_by": "", "created_at": "2023-05-02 21:44:36.196279+00:00"}
|
4 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 1, "sample_id": "compare-countries-area.dev.67", "type": "match", "data": {"correct": false, "expected": "New Zealand", "picked": null, "sampled": "Gabon.", "options": ["New Zealand"]}, "created_by": "", "created_at": "2023-05-02 21:44:36.196362+00:00"}
|
5 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 2, "sample_id": "compare-countries-area.dev.87", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Greece, Nicaragua, North Korea, Malawi"}], "sampled": ["North Korea."]}, "created_by": "", "created_at": "2023-05-02 21:44:36.196597+00:00"}
|
6 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 3, "sample_id": "compare-countries-area.dev.87", "type": "match", "data": {"correct": false, "expected": "Greece", "picked": null, "sampled": "North Korea.", "options": ["Greece"]}, "created_by": "", "created_at": "2023-05-02 21:44:36.196621+00:00"}
|
7 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 4, "sample_id": "compare-countries-area.dev.75", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Guyana, Belarus, Kyrgyzstan, Senegal"}], "sampled": ["Belarus."]}, "created_by": "", "created_at": "2023-05-02 21:44:36.198275+00:00"}
|
8 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 5, "sample_id": "compare-countries-area.dev.75", "type": "match", "data": {"correct": false, "expected": "Guyana", "picked": null, "sampled": "Belarus.", "options": ["Guyana"]}, "created_by": "", "created_at": "2023-05-02 21:44:36.198306+00:00"}
|
9 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 6, "sample_id": "compare-countries-area.dev.64", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Italy, Philippines, Burkina Faso, New Zealand"}], "sampled": ["Burkina Faso."]}, "created_by": "", "created_at": "2023-05-02 21:44:36.203807+00:00"}
|
10 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 7, "sample_id": "compare-countries-area.dev.64", "type": "match", "data": {"correct": false, "expected": "Italy", "picked": null, "sampled": "Burkina Faso.", "options": ["Italy"]}, "created_by": "", "created_at": "2023-05-02 21:44:36.203861+00:00"}
|
11 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 8, "sample_id": "compare-countries-area.dev.7", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Kazakhstan, Algeria, Democratic Republic of the Congo, Saudi Arabia"}], "sampled": ["Saudi Arabia."]}, "created_by": "", "created_at": "2023-05-02 21:44:36.211767+00:00"}
|
12 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 9, "sample_id": "compare-countries-area.dev.7", "type": "match", "data": {"correct": false, "expected": "Kazakhstan", "picked": null, "sampled": "Saudi Arabia.", "options": ["Kazakhstan"]}, "created_by": "", "created_at": "2023-05-02 21:44:36.211810+00:00"}
|
13 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 10, "sample_id": "compare-countries-area.dev.63", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Oman, Italy, Philippines, Burkina Faso"}], "sampled": ["Oman."]}, "created_by": "", "created_at": "2023-05-02 21:44:36.212832+00:00"}
|
14 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 11, "sample_id": "compare-countries-area.dev.63", "type": "match", "data": {"correct": true, "expected": "Oman", "picked": "Oman", "sampled": "Oman.", "options": ["Oman"]}, "created_by": "", "created_at": "2023-05-02 21:44:36.212881+00:00"}
|
15 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 12, "sample_id": "compare-countries-area.dev.93", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Honduras, Liberia, Bulgaria, Cuba"}], "sampled": ["Cuba."]}, "created_by": "", "created_at": "2023-05-02 21:44:36.214340+00:00"}
|
16 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 13, "sample_id": "compare-countries-area.dev.93", "type": "match", "data": {"correct": false, "expected": "Honduras", "picked": null, "sampled": "Cuba.", "options": ["Honduras"]}, "created_by": "", "created_at": "2023-05-02 21:44:36.214379+00:00"}
|
17 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 14, "sample_id": "compare-countries-area.dev.50", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Papua New Guinea, Uzbekistan, Iraq, Paraguay"}], "sampled": ["Papua New Guinea."]}, "created_by": "", "created_at": "2023-05-02 21:44:36.214620+00:00"}
|
18 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 15, "sample_id": "compare-countries-area.dev.50", "type": "match", "data": {"correct": true, "expected": "Papua New Guinea", "picked": "Papua New Guinea", "sampled": "Papua New Guinea.", "options": ["Papua New Guinea"]}, "created_by": "", "created_at": "2023-05-02 21:44:36.214650+00:00"}
|
19 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 16, "sample_id": "compare-countries-area.dev.84", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Bangladesh, Nepal, Tajikistan, Greece"}], "sampled": ["Tajikistan."]}, "created_by": "", "created_at": "2023-05-02 21:44:36.217032+00:00"}
|
20 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 17, "sample_id": "compare-countries-area.dev.84", "type": "match", "data": {"correct": false, "expected": "Bangladesh", "picked": null, "sampled": "Tajikistan.", "options": ["Bangladesh"]}, "created_by": "", "created_at": "2023-05-02 21:44:36.217170+00:00"}
|
21 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 18, "sample_id": "compare-countries-area.dev.29", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Nigeria, Venezuela, Namibia, Mozambique"}], "sampled": ["Mozambique."]}, "created_by": "", "created_at": "2023-05-02 21:44:36.322842+00:00"}
|
22 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 19, "sample_id": "compare-countries-area.dev.29", "type": "match", "data": {"correct": false, "expected": "Nigeria", "picked": null, "sampled": "Mozambique.", "options": ["Nigeria"]}, "created_by": "", "created_at": "2023-05-02 21:44:36.322877+00:00"}
|
23 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 20, "sample_id": "compare-countries-area.dev.24", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Ethiopia, Bolivia, Mauritania, Egypt"}], "sampled": ["Mauritania."]}, "created_by": "", "created_at": "2023-05-02 21:44:36.926448+00:00"}
|
24 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 21, "sample_id": "compare-countries-area.dev.24", "type": "match", "data": {"correct": false, "expected": "Ethiopia", "picked": null, "sampled": "Mauritania.", "options": ["Ethiopia"]}, "created_by": "", "created_at": "2023-05-02 21:44:36.926501+00:00"}
|
25 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 22, "sample_id": "compare-countries-area.dev.9", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Democratic Republic of the Congo, Saudi Arabia, Mexico, Indonesia"}], "sampled": ["Democratic Republic of the Congo."]}, "created_by": "", "created_at": "2023-05-02 21:44:36.986074+00:00"}
|
26 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 23, "sample_id": "compare-countries-area.dev.9", "type": "match", "data": {"correct": true, "expected": "Democratic Republic of the Congo", "picked": "Democratic Republic of the Congo", "sampled": "Democratic Republic of the Congo.", "options": ["Democratic Republic of the Congo"]}, "created_by": "", "created_at": "2023-05-02 21:44:36.986124+00:00"}
|
27 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 24, "sample_id": "compare-countries-area.dev.60", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Malaysia, Cote d'Ivoire, Poland, Oman"}], "sampled": ["Oman."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.035113+00:00"}
|
28 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 25, "sample_id": "compare-countries-area.dev.60", "type": "match", "data": {"correct": false, "expected": "Malaysia", "picked": null, "sampled": "Oman.", "options": ["Malaysia"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.035149+00:00"}
|
29 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 26, "sample_id": "compare-countries-area.dev.14", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Libya, Iran, Mongolia, Peru"}], "sampled": ["Mongolia."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.047574+00:00"}
|
30 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 27, "sample_id": "compare-countries-area.dev.14", "type": "match", "data": {"correct": false, "expected": "Libya", "picked": null, "sampled": "Mongolia.", "options": ["Libya"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.047611+00:00"}
|
31 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 28, "sample_id": "compare-countries-area.dev.3", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Brazil, Australia, India, Argentina"}], "sampled": ["Australia."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.069281+00:00"}
|
32 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 29, "sample_id": "compare-countries-area.dev.3", "type": "match", "data": {"correct": false, "expected": "Brazil", "picked": null, "sampled": "Australia.", "options": ["Brazil"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.069346+00:00"}
|
33 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 30, "sample_id": "compare-countries-area.dev.44", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Kenya, Yemen, Thailand, Spain"}], "sampled": ["Spain."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.088344+00:00"}
|
34 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 31, "sample_id": "compare-countries-area.dev.44", "type": "match", "data": {"correct": false, "expected": "Kenya", "picked": null, "sampled": "Spain.", "options": ["Kenya"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.088434+00:00"}
|
35 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 32, "sample_id": "compare-countries-area.dev.28", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Tanzania, Nigeria, Venezuela, Namibia"}], "sampled": ["Namibia."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.127536+00:00"}
|
36 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 33, "sample_id": "compare-countries-area.dev.28", "type": "match", "data": {"correct": false, "expected": "Tanzania", "picked": null, "sampled": "Namibia.", "options": ["Tanzania"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.127569+00:00"}
|
37 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 34, "sample_id": "compare-countries-area.dev.22", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. South Africa, Colombia, Ethiopia, Bolivia"}], "sampled": ["Bolivia."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.132650+00:00"}
|
38 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 35, "sample_id": "compare-countries-area.dev.22", "type": "match", "data": {"correct": false, "expected": "South Africa", "picked": null, "sampled": "Bolivia.", "options": ["South Africa"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.132683+00:00"}
|
39 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 36, "sample_id": "compare-countries-area.dev.1", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Canada, United States, Brazil, Australia"}], "sampled": ["Canada."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.136727+00:00"}
|
40 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 37, "sample_id": "compare-countries-area.dev.1", "type": "match", "data": {"correct": true, "expected": "Canada", "picked": "Canada", "sampled": "Canada.", "options": ["Canada"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.136758+00:00"}
|
41 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 38, "sample_id": "compare-countries-area.dev.45", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Yemen, Thailand, Spain, Turkmenistan"}], "sampled": ["Turkmenistan."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.159589+00:00"}
|
42 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 39, "sample_id": "compare-countries-area.dev.45", "type": "match", "data": {"correct": false, "expected": "Yemen", "picked": null, "sampled": "Turkmenistan.", "options": ["Yemen"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.159625+00:00"}
|
43 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 40, "sample_id": "compare-countries-area.dev.12", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Indonesia, Sudan, Libya, Iran"}], "sampled": ["Indonesia."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.609789+00:00"}
|
44 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 41, "sample_id": "compare-countries-area.dev.12", "type": "match", "data": {"correct": true, "expected": "Indonesia", "picked": "Indonesia", "sampled": "Indonesia.", "options": ["Indonesia"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.609838+00:00"}
|
45 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 42, "sample_id": "compare-countries-area.dev.85", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Nepal, Tajikistan, Greece, Nicaragua"}], "sampled": ["Tajikistan."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.810015+00:00"}
|
46 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 43, "sample_id": "compare-countries-area.dev.85", "type": "match", "data": {"correct": false, "expected": "Nepal", "picked": null, "sampled": "Tajikistan.", "options": ["Nepal"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.810054+00:00"}
|
47 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 44, "sample_id": "compare-countries-area.dev.69", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Guinea, United Kingdom, Uganda, Ghana"}], "sampled": ["Guinea."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.850210+00:00"}
|
48 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 45, "sample_id": "compare-countries-area.dev.69", "type": "match", "data": {"correct": true, "expected": "Guinea", "picked": "Guinea", "sampled": "Guinea.", "options": ["Guinea"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.850250+00:00"}
|
49 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 46, "sample_id": "compare-countries-area.dev.74", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Laos, Guyana, Belarus, Kyrgyzstan"}], "sampled": ["Belarus."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.858665+00:00"}
|
50 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 47, "sample_id": "compare-countries-area.dev.74", "type": "match", "data": {"correct": false, "expected": "Laos", "picked": null, "sampled": "Belarus.", "options": ["Laos"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.858719+00:00"}
|
51 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 48, "sample_id": "compare-countries-area.dev.15", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Iran, Mongolia, Peru, Chad"}], "sampled": ["Mongolia."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.879389+00:00"}
|
52 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 49, "sample_id": "compare-countries-area.dev.15", "type": "match", "data": {"correct": false, "expected": "Iran", "picked": null, "sampled": "Mongolia.", "options": ["Iran"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.879430+00:00"}
|
53 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 50, "sample_id": "compare-countries-area.dev.46", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Thailand, Spain, Turkmenistan, Cameroon"}], "sampled": ["Turkmenistan."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.882585+00:00"}
|
54 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 51, "sample_id": "compare-countries-area.dev.46", "type": "match", "data": {"correct": false, "expected": "Thailand", "picked": null, "sampled": "Turkmenistan.", "options": ["Thailand"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.882623+00:00"}
|
55 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 52, "sample_id": "compare-countries-area.dev.10", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Saudi Arabia, Mexico, Indonesia, Sudan"}], "sampled": ["Saudi Arabia."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.909125+00:00"}
|
56 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 53, "sample_id": "compare-countries-area.dev.10", "type": "match", "data": {"correct": true, "expected": "Saudi Arabia", "picked": "Saudi Arabia", "sampled": "Saudi Arabia.", "options": ["Saudi Arabia"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.909166+00:00"}
|
57 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 54, "sample_id": "compare-countries-area.dev.96", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Cuba, Guatemala, Iceland, South Korea"}], "sampled": ["Guatemala."]}, "created_by": "", "created_at": "2023-05-02 21:44:37.911764+00:00"}
|
58 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 55, "sample_id": "compare-countries-area.dev.96", "type": "match", "data": {"correct": false, "expected": "Cuba", "picked": null, "sampled": "Guatemala.", "options": ["Cuba"]}, "created_by": "", "created_at": "2023-05-02 21:44:37.911857+00:00"}
|
59 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 56, "sample_id": "compare-countries-area.dev.54", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Zimbabwe, Japan, Germany, Republic of the Congo"}], "sampled": ["Republic of the Congo."]}, "created_by": "", "created_at": "2023-05-02 21:44:38.019666+00:00"}
|
60 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 57, "sample_id": "compare-countries-area.dev.54", "type": "match", "data": {"correct": false, "expected": "Zimbabwe", "picked": null, "sampled": "Republic of the Congo.", "options": ["Zimbabwe"]}, "created_by": "", "created_at": "2023-05-02 21:44:38.019730+00:00"}
|
61 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 58, "sample_id": "compare-countries-area.dev.39", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Somalia, Central African Republic, Ukraine, Madagascar"}], "sampled": ["Madagascar."]}, "created_by": "", "created_at": "2023-05-02 21:44:38.533738+00:00"}
|
62 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 59, "sample_id": "compare-countries-area.dev.39", "type": "match", "data": {"correct": false, "expected": "Somalia", "picked": null, "sampled": "Madagascar.", "options": ["Somalia"]}, "created_by": "", "created_at": "2023-05-02 21:44:38.533796+00:00"}
|
63 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 60, "sample_id": "compare-countries-area.dev.83", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Tunisia, Bangladesh, Nepal, Tajikistan"}], "sampled": ["Tajikistan."]}, "created_by": "", "created_at": "2023-05-02 21:44:38.552079+00:00"}
|
64 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 61, "sample_id": "compare-countries-area.dev.83", "type": "match", "data": {"correct": false, "expected": "Tunisia", "picked": null, "sampled": "Tajikistan.", "options": ["Tunisia"]}, "created_by": "", "created_at": "2023-05-02 21:44:38.552139+00:00"}
|
65 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 62, "sample_id": "compare-countries-area.dev.91", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Eritrea, Benin, Honduras, Liberia"}], "sampled": ["Honduras."]}, "created_by": "", "created_at": "2023-05-02 21:44:38.646058+00:00"}
|
66 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 63, "sample_id": "compare-countries-area.dev.91", "type": "match", "data": {"correct": false, "expected": "Eritrea", "picked": null, "sampled": "Honduras.", "options": ["Eritrea"]}, "created_by": "", "created_at": "2023-05-02 21:44:38.646097+00:00"}
|
67 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 64, "sample_id": "compare-countries-area.dev.47", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Spain, Turkmenistan, Cameroon, Papua New Guinea"}], "sampled": ["Turkmenistan."]}, "created_by": "", "created_at": "2023-05-02 21:44:38.710861+00:00"}
|
68 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 65, "sample_id": "compare-countries-area.dev.47", "type": "match", "data": {"correct": false, "expected": "Spain", "picked": null, "sampled": "Turkmenistan.", "options": ["Spain"]}, "created_by": "", "created_at": "2023-05-02 21:44:38.710900+00:00"}
|
69 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 66, "sample_id": "compare-countries-area.dev.82", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Suriname, Tunisia, Bangladesh, Nepal"}], "sampled": ["Nepal."]}, "created_by": "", "created_at": "2023-05-02 21:44:38.750414+00:00"}
|
70 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 67, "sample_id": "compare-countries-area.dev.82", "type": "match", "data": {"correct": false, "expected": "Suriname", "picked": null, "sampled": "Nepal.", "options": ["Suriname"]}, "created_by": "", "created_at": "2023-05-02 21:44:38.750453+00:00"}
|
71 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 68, "sample_id": "compare-countries-area.dev.35", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Zambia, Morocco, Burma, Afghanistan"}], "sampled": ["Burma (also known as Myanmar) has the largest area among the given countries."]}, "created_by": "", "created_at": "2023-05-02 21:44:38.772538+00:00"}
|
72 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 69, "sample_id": "compare-countries-area.dev.35", "type": "match", "data": {"correct": false, "expected": "Zambia", "picked": null, "sampled": "Burma (also known as Myanmar) has the largest area among the given countries.", "options": ["Zambia"]}, "created_by": "", "created_at": "2023-05-02 21:44:38.772591+00:00"}
|
73 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 70, "sample_id": "compare-countries-area.dev.56", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Germany, Republic of the Congo, Finland, Vietnam"}], "sampled": ["Republic of the Congo."]}, "created_by": "", "created_at": "2023-05-02 21:44:38.796903+00:00"}
|
74 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 71, "sample_id": "compare-countries-area.dev.56", "type": "match", "data": {"correct": false, "expected": "Germany", "picked": null, "sampled": "Republic of the Congo.", "options": ["Germany"]}, "created_by": "", "created_at": "2023-05-02 21:44:38.796959+00:00"}
|
75 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 72, "sample_id": "compare-countries-area.dev.23", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Colombia, Ethiopia, Bolivia, Mauritania"}], "sampled": ["Mauritania."]}, "created_by": "", "created_at": "2023-05-02 21:44:38.809186+00:00"}
|
76 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 73, "sample_id": "compare-countries-area.dev.23", "type": "match", "data": {"correct": false, "expected": "Colombia", "picked": null, "sampled": "Mauritania.", "options": ["Colombia"]}, "created_by": "", "created_at": "2023-05-02 21:44:38.809224+00:00"}
|
77 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 74, "sample_id": "compare-countries-area.dev.26", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Mauritania, Egypt, Tanzania, Nigeria"}], "sampled": ["Nigeria."]}, "created_by": "", "created_at": "2023-05-02 21:44:38.875003+00:00"}
|
78 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 75, "sample_id": "compare-countries-area.dev.26", "type": "match", "data": {"correct": false, "expected": "Mauritania", "picked": null, "sampled": "Nigeria.", "options": ["Mauritania"]}, "created_by": "", "created_at": "2023-05-02 21:44:38.875050+00:00"}
|
79 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 76, "sample_id": "compare-countries-area.dev.81", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Uruguay, Suriname, Tunisia, Bangladesh"}], "sampled": ["Bangladesh."]}, "created_by": "", "created_at": "2023-05-02 21:44:38.921603+00:00"}
|
80 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 77, "sample_id": "compare-countries-area.dev.81", "type": "match", "data": {"correct": false, "expected": "Uruguay", "picked": null, "sampled": "Bangladesh.", "options": ["Uruguay"]}, "created_by": "", "created_at": "2023-05-02 21:44:38.921658+00:00"}
|
81 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 78, "sample_id": "compare-countries-area.dev.27", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Egypt, Tanzania, Nigeria, Venezuela"}], "sampled": ["Nigeria."]}, "created_by": "", "created_at": "2023-05-02 21:44:39.366286+00:00"}
|
82 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 79, "sample_id": "compare-countries-area.dev.27", "type": "match", "data": {"correct": false, "expected": "Egypt", "picked": null, "sampled": "Nigeria.", "options": ["Egypt"]}, "created_by": "", "created_at": "2023-05-02 21:44:39.366326+00:00"}
|
83 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 80, "sample_id": "compare-countries-area.dev.95", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Bulgaria, Cuba, Guatemala, Iceland"}], "sampled": ["Guatemala."]}, "created_by": "", "created_at": "2023-05-02 21:44:39.395015+00:00"}
|
84 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 81, "sample_id": "compare-countries-area.dev.95", "type": "match", "data": {"correct": false, "expected": "Bulgaria", "picked": null, "sampled": "Guatemala.", "options": ["Bulgaria"]}, "created_by": "", "created_at": "2023-05-02 21:44:39.395053+00:00"}
|
85 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 82, "sample_id": "compare-countries-area.dev.32", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Mozambique, Turkey (Turkiye), Chile, Zambia"}], "sampled": ["Mozambique."]}, "created_by": "", "created_at": "2023-05-02 21:44:39.404087+00:00"}
|
86 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 83, "sample_id": "compare-countries-area.dev.32", "type": "match", "data": {"correct": true, "expected": "Mozambique", "picked": "Mozambique", "sampled": "Mozambique.", "options": ["Mozambique"]}, "created_by": "", "created_at": "2023-05-02 21:44:39.404133+00:00"}
|
87 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 84, "sample_id": "compare-countries-area.dev.41", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Ukraine, Madagascar, Botswana, Kenya"}], "sampled": ["Botswana."]}, "created_by": "", "created_at": "2023-05-02 21:44:39.410442+00:00"}
|
88 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 85, "sample_id": "compare-countries-area.dev.41", "type": "match", "data": {"correct": false, "expected": "Ukraine", "picked": null, "sampled": "Botswana.", "options": ["Ukraine"]}, "created_by": "", "created_at": "2023-05-02 21:44:39.410480+00:00"}
|
89 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 86, "sample_id": "compare-countries-area.dev.73", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Romania, Laos, Guyana, Belarus"}], "sampled": ["Belarus."]}, "created_by": "", "created_at": "2023-05-02 21:44:39.417983+00:00"}
|
90 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 87, "sample_id": "compare-countries-area.dev.73", "type": "match", "data": {"correct": false, "expected": "Romania", "picked": null, "sampled": "Belarus.", "options": ["Romania"]}, "created_by": "", "created_at": "2023-05-02 21:44:39.418020+00:00"}
|
91 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 88, "sample_id": "compare-countries-area.dev.62", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Poland, Oman, Italy, Philippines"}], "sampled": ["Oman."]}, "created_by": "", "created_at": "2023-05-02 21:44:39.439179+00:00"}
|
92 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 89, "sample_id": "compare-countries-area.dev.62", "type": "match", "data": {"correct": false, "expected": "Poland", "picked": null, "sampled": "Oman.", "options": ["Poland"]}, "created_by": "", "created_at": "2023-05-02 21:44:39.439212+00:00"}
|
93 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 90, "sample_id": "compare-countries-area.dev.25", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Bolivia, Mauritania, Egypt, Tanzania"}], "sampled": ["Tanzania."]}, "created_by": "", "created_at": "2023-05-02 21:44:39.444596+00:00"}
|
94 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 91, "sample_id": "compare-countries-area.dev.25", "type": "match", "data": {"correct": false, "expected": "Bolivia", "picked": null, "sampled": "Tanzania.", "options": ["Bolivia"]}, "created_by": "", "created_at": "2023-05-02 21:44:39.444627+00:00"}
|
95 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 92, "sample_id": "compare-countries-area.dev.58", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Finland, Vietnam, Malaysia, Cote d'Ivoire"}], "sampled": ["Finland."]}, "created_by": "", "created_at": "2023-05-02 21:44:39.614038+00:00"}
|
96 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 93, "sample_id": "compare-countries-area.dev.58", "type": "match", "data": {"correct": true, "expected": "Finland", "picked": "Finland", "sampled": "Finland.", "options": ["Finland"]}, "created_by": "", "created_at": "2023-05-02 21:44:39.614080+00:00"}
|
97 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 94, "sample_id": "compare-countries-area.dev.80", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Cambodia, Uruguay, Suriname, Tunisia"}], "sampled": ["Suriname."]}, "created_by": "", "created_at": "2023-05-02 21:44:39.624795+00:00"}
|
98 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 95, "sample_id": "compare-countries-area.dev.80", "type": "match", "data": {"correct": false, "expected": "Cambodia", "picked": null, "sampled": "Suriname.", "options": ["Cambodia"]}, "created_by": "", "created_at": "2023-05-02 21:44:39.624838+00:00"}
|
99 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 96, "sample_id": "compare-countries-area.dev.72", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Ghana, Romania, Laos, Guyana"}], "sampled": ["Guyana."]}, "created_by": "", "created_at": "2023-05-02 21:44:39.757173+00:00"}
|
100 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 97, "sample_id": "compare-countries-area.dev.72", "type": "match", "data": {"correct": false, "expected": "Ghana", "picked": null, "sampled": "Guyana.", "options": ["Ghana"]}, "created_by": "", "created_at": "2023-05-02 21:44:39.757233+00:00"}
|
101 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 98, "sample_id": "compare-countries-area.dev.19", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Niger, Angola, Mali, South Africa"}], "sampled": ["Angola."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.049794+00:00"}
|
102 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 99, "sample_id": "compare-countries-area.dev.19", "type": "match", "data": {"correct": false, "expected": "Niger", "picked": null, "sampled": "Angola.", "options": ["Niger"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.049879+00:00"}
|
103 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 100, "sample_id": "compare-countries-area.dev.21", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Mali, South Africa, Colombia, Ethiopia"}], "sampled": ["Mali."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.079659+00:00"}
|
104 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 101, "sample_id": "compare-countries-area.dev.21", "type": "match", "data": {"correct": true, "expected": "Mali", "picked": "Mali", "sampled": "Mali.", "options": ["Mali"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.079699+00:00"}
|
105 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 102, "sample_id": "compare-countries-area.dev.70", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. United Kingdom, Uganda, Ghana, Romania"}], "sampled": ["Uganda."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.092396+00:00"}
|
106 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 103, "sample_id": "compare-countries-area.dev.70", "type": "match", "data": {"correct": false, "expected": "United Kingdom", "picked": null, "sampled": "Uganda.", "options": ["United Kingdom"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.092442+00:00"}
|
107 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 104, "sample_id": "compare-countries-area.dev.33", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Turkey (Turkiye), Chile, Zambia, Morocco"}], "sampled": ["Turkey (Turkiye)"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.144668+00:00"}
|
108 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 105, "sample_id": "compare-countries-area.dev.33", "type": "match", "data": {"correct": true, "expected": "Turkey (Turkiye)", "picked": "Turkey (Turkiye)", "sampled": "Turkey (Turkiye)", "options": ["Turkey (Turkiye)"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.144707+00:00"}
|
109 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 106, "sample_id": "compare-countries-area.dev.38", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Afghanistan, Somalia, Central African Republic, Ukraine"}], "sampled": ["Ukraine."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.168881+00:00"}
|
110 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 107, "sample_id": "compare-countries-area.dev.38", "type": "match", "data": {"correct": false, "expected": "Afghanistan", "picked": null, "sampled": "Ukraine.", "options": ["Afghanistan"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.168924+00:00"}
|
111 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 108, "sample_id": "compare-countries-area.dev.53", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Paraguay, Zimbabwe, Japan, Germany"}], "sampled": ["Paraguay."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.230957+00:00"}
|
112 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 109, "sample_id": "compare-countries-area.dev.53", "type": "match", "data": {"correct": true, "expected": "Paraguay", "picked": "Paraguay", "sampled": "Paraguay.", "options": ["Paraguay"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.231000+00:00"}
|
113 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 110, "sample_id": "compare-countries-area.dev.49", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Cameroon, Papua New Guinea, Uzbekistan, Iraq"}], "sampled": ["Papua New Guinea."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.259760+00:00"}
|
114 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 111, "sample_id": "compare-countries-area.dev.49", "type": "match", "data": {"correct": false, "expected": "Cameroon", "picked": null, "sampled": "Papua New Guinea.", "options": ["Cameroon"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.259859+00:00"}
|
115 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 112, "sample_id": "compare-countries-area.dev.59", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Vietnam, Malaysia, Cote d'Ivoire, Poland"}], "sampled": ["Poland."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.261878+00:00"}
|
116 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 113, "sample_id": "compare-countries-area.dev.59", "type": "match", "data": {"correct": false, "expected": "Vietnam", "picked": null, "sampled": "Poland.", "options": ["Vietnam"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.261937+00:00"}
|
117 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 114, "sample_id": "compare-countries-area.dev.51", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Uzbekistan, Iraq, Paraguay, Zimbabwe"}], "sampled": ["Uzbekistan."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.354815+00:00"}
|
118 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 115, "sample_id": "compare-countries-area.dev.51", "type": "match", "data": {"correct": true, "expected": "Uzbekistan", "picked": "Uzbekistan", "sampled": "Uzbekistan.", "options": ["Uzbekistan"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.354887+00:00"}
|
119 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 116, "sample_id": "compare-countries-area.dev.65", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Philippines, Burkina Faso, New Zealand, Gabon"}], "sampled": ["Gabon."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.427189+00:00"}
|
120 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 117, "sample_id": "compare-countries-area.dev.65", "type": "match", "data": {"correct": false, "expected": "Philippines", "picked": null, "sampled": "Gabon.", "options": ["Philippines"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.427258+00:00"}
|
121 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 118, "sample_id": "compare-countries-area.dev.78", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Senegal, Syria, Cambodia, Uruguay"}], "sampled": ["Uruguay."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.655154+00:00"}
|
122 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 119, "sample_id": "compare-countries-area.dev.78", "type": "match", "data": {"correct": false, "expected": "Senegal", "picked": null, "sampled": "Uruguay.", "options": ["Senegal"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.655192+00:00"}
|
123 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 120, "sample_id": "compare-countries-area.dev.66", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Burkina Faso, New Zealand, Gabon, Guinea"}], "sampled": ["New Zealand."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.735295+00:00"}
|
124 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 121, "sample_id": "compare-countries-area.dev.66", "type": "match", "data": {"correct": false, "expected": "Burkina Faso", "picked": null, "sampled": "New Zealand.", "options": ["Burkina Faso"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.735332+00:00"}
|
125 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 122, "sample_id": "compare-countries-area.dev.30", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Venezuela, Namibia, Mozambique, Turkey (Turkiye)"}], "sampled": ["Mozambique."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.753142+00:00"}
|
126 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 123, "sample_id": "compare-countries-area.dev.30", "type": "match", "data": {"correct": false, "expected": "Venezuela", "picked": null, "sampled": "Mozambique.", "options": ["Venezuela"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.753173+00:00"}
|
127 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 124, "sample_id": "compare-countries-area.dev.61", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Cote d'Ivoire, Poland, Oman, Italy"}], "sampled": ["Oman."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.799350+00:00"}
|
128 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 125, "sample_id": "compare-countries-area.dev.61", "type": "match", "data": {"correct": false, "expected": "Cote d'Ivoire", "picked": null, "sampled": "Oman.", "options": ["Cote d'Ivoire"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.799402+00:00"}
|
129 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 126, "sample_id": "compare-countries-area.dev.36", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Morocco, Burma, Afghanistan, Somalia"}], "sampled": ["Burma."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.864399+00:00"}
|
130 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 127, "sample_id": "compare-countries-area.dev.36", "type": "match", "data": {"correct": false, "expected": "Morocco", "picked": null, "sampled": "Burma.", "options": ["Morocco"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.864450+00:00"}
|
131 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 128, "sample_id": "compare-countries-area.dev.37", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Burma, Afghanistan, Somalia, Central African Republic"}], "sampled": ["Burma."]}, "created_by": "", "created_at": "2023-05-02 21:44:40.985833+00:00"}
|
132 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 129, "sample_id": "compare-countries-area.dev.37", "type": "match", "data": {"correct": true, "expected": "Burma", "picked": "Burma", "sampled": "Burma.", "options": ["Burma"]}, "created_by": "", "created_at": "2023-05-02 21:44:40.985887+00:00"}
|
133 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 130, "sample_id": "compare-countries-area.dev.77", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Kyrgyzstan, Senegal, Syria, Cambodia"}], "sampled": ["Kyrgyzstan."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.104581+00:00"}
|
134 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 131, "sample_id": "compare-countries-area.dev.77", "type": "match", "data": {"correct": true, "expected": "Kyrgyzstan", "picked": "Kyrgyzstan", "sampled": "Kyrgyzstan.", "options": ["Kyrgyzstan"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.104622+00:00"}
|
135 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 132, "sample_id": "compare-countries-area.dev.2", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. United States, Brazil, Australia, India"}], "sampled": ["Australia."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.118383+00:00"}
|
136 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 133, "sample_id": "compare-countries-area.dev.2", "type": "match", "data": {"correct": false, "expected": "United States", "picked": null, "sampled": "Australia.", "options": ["United States"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.118424+00:00"}
|
137 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 134, "sample_id": "compare-countries-area.dev.16", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Mongolia, Peru, Chad, Niger"}], "sampled": ["Mongolia."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.146608+00:00"}
|
138 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 135, "sample_id": "compare-countries-area.dev.16", "type": "match", "data": {"correct": true, "expected": "Mongolia", "picked": "Mongolia", "sampled": "Mongolia.", "options": ["Mongolia"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.146647+00:00"}
|
139 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 136, "sample_id": "compare-countries-area.dev.94", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Liberia, Bulgaria, Cuba, Guatemala"}], "sampled": ["Guatemala."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.169158+00:00"}
|
140 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 137, "sample_id": "compare-countries-area.dev.94", "type": "match", "data": {"correct": false, "expected": "Liberia", "picked": null, "sampled": "Guatemala.", "options": ["Liberia"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.169193+00:00"}
|
141 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 138, "sample_id": "compare-countries-area.dev.18", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Chad, Niger, Angola, Mali"}], "sampled": ["Angola."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.176598+00:00"}
|
142 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 139, "sample_id": "compare-countries-area.dev.18", "type": "match", "data": {"correct": false, "expected": "Chad", "picked": null, "sampled": "Angola.", "options": ["Chad"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.176629+00:00"}
|
143 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 140, "sample_id": "compare-countries-area.dev.5", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. India, Argentina, Kazakhstan, Algeria"}], "sampled": ["Kazakhstan."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.240907+00:00"}
|
144 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 141, "sample_id": "compare-countries-area.dev.5", "type": "match", "data": {"correct": false, "expected": "India", "picked": null, "sampled": "Kazakhstan.", "options": ["India"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.240940+00:00"}
|
145 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 142, "sample_id": "compare-countries-area.dev.57", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Republic of the Congo, Finland, Vietnam, Malaysia"}], "sampled": ["Republic of the Congo."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.312591+00:00"}
|
146 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 143, "sample_id": "compare-countries-area.dev.57", "type": "match", "data": {"correct": true, "expected": "Republic of the Congo", "picked": "Republic of the Congo", "sampled": "Republic of the Congo.", "options": ["Republic of the Congo"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.312644+00:00"}
|
147 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 144, "sample_id": "compare-countries-area.dev.40", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Central African Republic, Ukraine, Madagascar, Botswana"}], "sampled": ["Central African Republic."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.525494+00:00"}
|
148 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 145, "sample_id": "compare-countries-area.dev.40", "type": "match", "data": {"correct": true, "expected": "Central African Republic", "picked": "Central African Republic", "sampled": "Central African Republic.", "options": ["Central African Republic"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.525551+00:00"}
|
149 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 146, "sample_id": "compare-countries-area.dev.8", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Algeria, Democratic Republic of the Congo, Saudi Arabia, Mexico"}], "sampled": ["Saudi Arabia."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.609392+00:00"}
|
150 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 147, "sample_id": "compare-countries-area.dev.8", "type": "match", "data": {"correct": false, "expected": "Algeria", "picked": null, "sampled": "Saudi Arabia.", "options": ["Algeria"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.609446+00:00"}
|
151 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 148, "sample_id": "compare-countries-area.dev.79", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Syria, Cambodia, Uruguay, Suriname"}], "sampled": ["Suriname."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.678751+00:00"}
|
152 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 149, "sample_id": "compare-countries-area.dev.79", "type": "match", "data": {"correct": false, "expected": "Syria", "picked": null, "sampled": "Suriname.", "options": ["Syria"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.678802+00:00"}
|
153 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 150, "sample_id": "compare-countries-area.dev.92", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Benin, Honduras, Liberia, Bulgaria"}], "sampled": ["Bulgaria."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.737124+00:00"}
|
154 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 151, "sample_id": "compare-countries-area.dev.92", "type": "match", "data": {"correct": false, "expected": "Benin", "picked": null, "sampled": "Bulgaria.", "options": ["Benin"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.737161+00:00"}
|
155 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 152, "sample_id": "compare-countries-area.dev.97", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Guatemala, Iceland, South Korea, Hungary"}], "sampled": ["Guatemala."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.754621+00:00"}
|
156 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 153, "sample_id": "compare-countries-area.dev.97", "type": "match", "data": {"correct": true, "expected": "Guatemala", "picked": "Guatemala", "sampled": "Guatemala.", "options": ["Guatemala"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.754671+00:00"}
|
157 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 154, "sample_id": "compare-countries-area.dev.55", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Japan, Germany, Republic of the Congo, Finland"}], "sampled": ["Republic of the Congo."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.781319+00:00"}
|
158 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 155, "sample_id": "compare-countries-area.dev.55", "type": "match", "data": {"correct": false, "expected": "Japan", "picked": null, "sampled": "Republic of the Congo.", "options": ["Japan"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.781352+00:00"}
|
159 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 156, "sample_id": "compare-countries-area.dev.0", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Russia, Canada, United States, Brazil"}], "sampled": ["Russia."]}, "created_by": "", "created_at": "2023-05-02 21:44:41.899045+00:00"}
|
160 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 157, "sample_id": "compare-countries-area.dev.0", "type": "match", "data": {"correct": true, "expected": "Russia", "picked": "Russia", "sampled": "Russia.", "options": ["Russia"]}, "created_by": "", "created_at": "2023-05-02 21:44:41.899133+00:00"}
|
161 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 158, "sample_id": "compare-countries-area.dev.31", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Namibia, Mozambique, Turkey (Turkiye), Chile"}], "sampled": ["Namibia."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.102190+00:00"}
|
162 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 159, "sample_id": "compare-countries-area.dev.31", "type": "match", "data": {"correct": true, "expected": "Namibia", "picked": "Namibia", "sampled": "Namibia.", "options": ["Namibia"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.102236+00:00"}
|
163 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 160, "sample_id": "compare-countries-area.dev.76", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Belarus, Kyrgyzstan, Senegal, Syria"}], "sampled": ["Belarus."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.155424+00:00"}
|
164 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 161, "sample_id": "compare-countries-area.dev.76", "type": "match", "data": {"correct": true, "expected": "Belarus", "picked": "Belarus", "sampled": "Belarus.", "options": ["Belarus"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.155488+00:00"}
|
165 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 162, "sample_id": "compare-countries-area.dev.86", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Tajikistan, Greece, Nicaragua, North Korea"}], "sampled": ["Tajikistan."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.168199+00:00"}
|
166 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 163, "sample_id": "compare-countries-area.dev.86", "type": "match", "data": {"correct": true, "expected": "Tajikistan", "picked": "Tajikistan", "sampled": "Tajikistan.", "options": ["Tajikistan"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.168240+00:00"}
|
167 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 164, "sample_id": "compare-countries-area.dev.89", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. North Korea, Malawi, Eritrea, Benin"}], "sampled": ["Eritrea."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.302618+00:00"}
|
168 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 165, "sample_id": "compare-countries-area.dev.89", "type": "match", "data": {"correct": false, "expected": "North Korea", "picked": null, "sampled": "Eritrea.", "options": ["North Korea"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.302779+00:00"}
|
169 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 166, "sample_id": "compare-countries-area.dev.90", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Malawi, Eritrea, Benin, Honduras"}], "sampled": ["Honduras."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.322366+00:00"}
|
170 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 167, "sample_id": "compare-countries-area.dev.90", "type": "match", "data": {"correct": false, "expected": "Malawi", "picked": null, "sampled": "Honduras.", "options": ["Malawi"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.322418+00:00"}
|
171 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 168, "sample_id": "compare-countries-area.dev.17", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Peru, Chad, Niger, Angola"}], "sampled": ["Angola."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.356199+00:00"}
|
172 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 169, "sample_id": "compare-countries-area.dev.17", "type": "match", "data": {"correct": false, "expected": "Peru", "picked": null, "sampled": "Angola.", "options": ["Peru"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.356254+00:00"}
|
173 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 170, "sample_id": "compare-countries-area.dev.20", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Angola, Mali, South Africa, Colombia"}], "sampled": ["Angola."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.395308+00:00"}
|
174 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 171, "sample_id": "compare-countries-area.dev.20", "type": "match", "data": {"correct": true, "expected": "Angola", "picked": "Angola", "sampled": "Angola.", "options": ["Angola"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.395360+00:00"}
|
175 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 172, "sample_id": "compare-countries-area.dev.99", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. South Korea, Hungary, Portugal, Jordan"}], "sampled": ["Jordan."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.422946+00:00"}
|
176 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 173, "sample_id": "compare-countries-area.dev.99", "type": "match", "data": {"correct": false, "expected": "South Korea", "picked": null, "sampled": "Jordan.", "options": ["South Korea"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.423005+00:00"}
|
177 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 174, "sample_id": "compare-countries-area.dev.88", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Nicaragua, North Korea, Malawi, Eritrea"}], "sampled": ["North Korea."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.501000+00:00"}
|
178 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 175, "sample_id": "compare-countries-area.dev.88", "type": "match", "data": {"correct": false, "expected": "Nicaragua", "picked": null, "sampled": "North Korea.", "options": ["Nicaragua"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.501094+00:00"}
|
179 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 176, "sample_id": "compare-countries-area.dev.43", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Botswana, Kenya, Yemen, Thailand"}], "sampled": ["Botswana."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.569761+00:00"}
|
180 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 177, "sample_id": "compare-countries-area.dev.43", "type": "match", "data": {"correct": true, "expected": "Botswana", "picked": "Botswana", "sampled": "Botswana.", "options": ["Botswana"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.569805+00:00"}
|
181 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 178, "sample_id": "compare-countries-area.dev.42", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Madagascar, Botswana, Kenya, Yemen"}], "sampled": ["Madagascar."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.767918+00:00"}
|
182 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 179, "sample_id": "compare-countries-area.dev.42", "type": "match", "data": {"correct": true, "expected": "Madagascar", "picked": "Madagascar", "sampled": "Madagascar.", "options": ["Madagascar"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.768004+00:00"}
|
183 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 180, "sample_id": "compare-countries-area.dev.71", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Uganda, Ghana, Romania, Laos"}], "sampled": ["Uganda."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.774420+00:00"}
|
184 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 181, "sample_id": "compare-countries-area.dev.71", "type": "match", "data": {"correct": true, "expected": "Uganda", "picked": "Uganda", "sampled": "Uganda.", "options": ["Uganda"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.774474+00:00"}
|
185 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 182, "sample_id": "compare-countries-area.dev.68", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Gabon, Guinea, United Kingdom, Uganda"}], "sampled": ["Uganda."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.846498+00:00"}
|
186 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 183, "sample_id": "compare-countries-area.dev.68", "type": "match", "data": {"correct": false, "expected": "Gabon", "picked": null, "sampled": "Uganda.", "options": ["Gabon"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.846584+00:00"}
|
187 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 184, "sample_id": "compare-countries-area.dev.98", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Iceland, South Korea, Hungary, Portugal"}], "sampled": ["Iceland."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.889205+00:00"}
|
188 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 185, "sample_id": "compare-countries-area.dev.98", "type": "match", "data": {"correct": true, "expected": "Iceland", "picked": "Iceland", "sampled": "Iceland.", "options": ["Iceland"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.889288+00:00"}
|
189 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 186, "sample_id": "compare-countries-area.dev.48", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Turkmenistan, Cameroon, Papua New Guinea, Uzbekistan"}], "sampled": ["Papua New Guinea."]}, "created_by": "", "created_at": "2023-05-02 21:44:42.906358+00:00"}
|
190 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 187, "sample_id": "compare-countries-area.dev.48", "type": "match", "data": {"correct": false, "expected": "Turkmenistan", "picked": null, "sampled": "Papua New Guinea.", "options": ["Turkmenistan"]}, "created_by": "", "created_at": "2023-05-02 21:44:42.906406+00:00"}
|
191 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 188, "sample_id": "compare-countries-area.dev.52", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Iraq, Paraguay, Zimbabwe, Japan"}], "sampled": ["Iraq."]}, "created_by": "", "created_at": "2023-05-02 21:44:43.014388+00:00"}
|
192 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 189, "sample_id": "compare-countries-area.dev.52", "type": "match", "data": {"correct": true, "expected": "Iraq", "picked": "Iraq", "sampled": "Iraq.", "options": ["Iraq"]}, "created_by": "", "created_at": "2023-05-02 21:44:43.014423+00:00"}
|
193 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 190, "sample_id": "compare-countries-area.dev.13", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Sudan, Libya, Iran, Mongolia"}], "sampled": ["Mongolia."]}, "created_by": "", "created_at": "2023-05-02 21:44:43.052116+00:00"}
|
194 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 191, "sample_id": "compare-countries-area.dev.13", "type": "match", "data": {"correct": false, "expected": "Sudan", "picked": null, "sampled": "Mongolia.", "options": ["Sudan"]}, "created_by": "", "created_at": "2023-05-02 21:44:43.052152+00:00"}
|
195 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 192, "sample_id": "compare-countries-area.dev.4", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Australia, India, Argentina, Kazakhstan"}], "sampled": ["Australia."]}, "created_by": "", "created_at": "2023-05-02 21:44:43.090386+00:00"}
|
196 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 193, "sample_id": "compare-countries-area.dev.4", "type": "match", "data": {"correct": true, "expected": "Australia", "picked": "Australia", "sampled": "Australia.", "options": ["Australia"]}, "created_by": "", "created_at": "2023-05-02 21:44:43.090443+00:00"}
|
197 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 194, "sample_id": "compare-countries-area.dev.11", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Mexico, Indonesia, Sudan, Libya"}], "sampled": ["Indonesia."]}, "created_by": "", "created_at": "2023-05-02 21:44:43.166065+00:00"}
|
198 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 195, "sample_id": "compare-countries-area.dev.11", "type": "match", "data": {"correct": false, "expected": "Mexico", "picked": null, "sampled": "Indonesia.", "options": ["Mexico"]}, "created_by": "", "created_at": "2023-05-02 21:44:43.166145+00:00"}
|
199 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 196, "sample_id": "compare-countries-area.dev.34", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Chile, Zambia, Morocco, Burma"}], "sampled": ["Burma."]}, "created_by": "", "created_at": "2023-05-02 21:44:43.198599+00:00"}
|
200 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 197, "sample_id": "compare-countries-area.dev.34", "type": "match", "data": {"correct": false, "expected": "Chile", "picked": null, "sampled": "Burma.", "options": ["Chile"]}, "created_by": "", "created_at": "2023-05-02 21:44:43.198696+00:00"}
|
201 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 198, "sample_id": "compare-countries-area.dev.6", "type": "sampling", "data": {"prompt": [{"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "You are presented with several countries. Answer the name of the country with the largest area among the given countries. Do not explain. Argentina, Kazakhstan, Algeria, Democratic Republic of the Congo"}], "sampled": ["Kazakhstan."]}, "created_by": "", "created_at": "2023-05-02 21:44:43.375919+00:00"}
|
202 |
+
{"run_id": "230502214435SJ6IKUJX", "event_id": 199, "sample_id": "compare-countries-area.dev.6", "type": "match", "data": {"correct": false, "expected": "Argentina", "picked": null, "sampled": "Kazakhstan.", "options": ["Argentina"]}, "created_by": "", "created_at": "2023-05-02 21:44:43.375958+00:00"}
|
evals/country-area/country-areas.csv
ADDED
@@ -0,0 +1,264 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Rank,country,Total in km2 (mi2),land,Water in km2 (mi2),% water,Notes
|
2 |
+
β,World,"510,072,000 (196,940,000)","148,940,000 (57,510,000)","361,132,000 (139,434,000)",70.8,
|
3 |
+
1,Russia,"17,098,246 (6,601,670)","16,378,410 (6,323,740)","719,836 (277,930)",4.2,
|
4 |
+
β,Antarctica,"14,200,000 (5,500,000)","14,200,000 (5,500,000)",0 (0),0,
|
5 |
+
2,Canada,"9,984,670 (3,855,100)","9,093,507 (3,511,023)","891,163 (344,080)",8.9,
|
6 |
+
3 or 4,China,"9,596,961 (3,705,407)","9,326,410 (3,600,950)","270,550 (104,460)",2.8,
|
7 |
+
3 or 4,United States,"9,833,517 (3,796,742)","9,147,593 (3,531,905)","685,924 (264,837)",7.0,
|
8 |
+
5,Brazil,"8,515,767 (3,287,956)","8,460,415 (3,266,584)","55,352 (21,372)",0.6,
|
9 |
+
6,Australia,"7,692,024 (2,969,907)","7,633,565 (2,947,336)","58,459 (22,571)",0.8,
|
10 |
+
7,India,"3,287,263 (1,269,219)","2,973,190 (1,147,960)","314,073 (121,264)",9.6,
|
11 |
+
8,Argentina,"2,780,400 (1,073,500)","2,736,690 (1,056,640)","43,710 (16,880)",1.6,
|
12 |
+
9,Kazakhstan,"2,724,900 (1,052,100)","2,699,700 (1,042,400)","25,200 (9,700)",0.9,
|
13 |
+
10,Algeria,"2,381,741 (919,595)","2,381,741 (919,595)",0 (0),0,
|
14 |
+
11,DR Congo,"2,344,858 (905,355)","2,267,048 (875,312)","77,810 (30,040)",3.3,
|
15 |
+
β,Kingdom of Denmark,"2,220,093 (857,183)","2,220,072 (857,175)",21 (8.1),0,
|
16 |
+
β,Greenland (Denmark),"2,166,086 (836,330)","2,166,086 (836,330)",0 (0),0,
|
17 |
+
12,Saudi Arabia,"2,149,690 (830,000)","2,149,690 (830,000)",0 (0),0,
|
18 |
+
13,Mexico,"1,964,375 (758,449)","1,943,945 (750,561)","20,430 (7,890)",1.0,
|
19 |
+
14,Indonesia,"1,904,569 (735,358)","1,811,569 (699,451)","93,000 (36,000)",4.9,
|
20 |
+
15,Sudan,"1,861,484 (718,723)","1,731,671 (668,602)","129,813 (50,121)",7.0,
|
21 |
+
16,Libya,"1,759,540 (679,360)","1,759,540 (679,360)",0 (0),0,
|
22 |
+
17,Iran,"1,648,195 (636,372)","1,531,595 (591,352)","116,600 (45,000)",7.1,
|
23 |
+
18,Mongolia,"1,564,110 (603,910)","1,553,556 (599,831)","10,560 (4,080)",0.7,
|
24 |
+
19,Peru,"1,285,216 (496,225)","1,279,996 (494,209)","5,220 (2,020)",0.4,
|
25 |
+
20,Chad,"1,284,000 (496,000)","1,259,200 (486,200)","24,800 (9,600)",1.9,
|
26 |
+
21,Niger,"1,267,000 (489,000)","1,266,700 (489,100)",300 (120),0,
|
27 |
+
22,Angola,"1,246,700 (481,400)","1,246,700 (481,400)",0 (0),0,
|
28 |
+
23,Mali,"1,240,192 (478,841)","1,220,190 (471,120)","20,002 (7,723)",1.6,
|
29 |
+
24,South Africa,"1,221,037 (471,445)","1,214,470 (468,910)","4,620 (1,780)",0.4,
|
30 |
+
25,Colombia,"1,141,748 (440,831)","1,038,700 (401,000)","100,210 (38,690)",8.8,
|
31 |
+
26,Ethiopia,"1,104,300 (426,400)","1,096,630 (423,410)","7,670 (2,960)",0.7,
|
32 |
+
27,Bolivia,"1,098,581 (424,164)","1,083,301 (418,265)","15,280 (5,900)",1.4,
|
33 |
+
28,Mauritania,"1,030,700 (398,000)","1,025,520 (395,960)","4,480 (1,730)",0.4,
|
34 |
+
29,Egypt,"1,002,450 (387,050)","995,450 (384,350)","6,000 (2,300)",0.6,
|
35 |
+
30,Tanzania,"945,087 (364,900)","885,800 (342,000)","61,500 (23,700)",6.5,
|
36 |
+
31,Nigeria,"923,768 (356,669)","910,768 (351,649)","13,000 (5,000)",1.4,
|
37 |
+
32,Venezuela,"916,445 (353,841)","882,050 (340,560)","30,000 (12,000)",3.3,
|
38 |
+
33,Pakistan,"881,913 (340,509)","856,690 (330,770)","25,223 (9,739)",2.9,
|
39 |
+
34,Namibia,"825,615 (318,772)","823,290 (317,870)","2,425 (936)",0.3,
|
40 |
+
35,Mozambique,"801,590 (309,500)","786,380 (303,620)","13,000 (5,000)",1.6,
|
41 |
+
36,Turkey,"783,562 (302,535)","769,632 (297,157)","13,930 (5,380)",1.8,
|
42 |
+
37,Chile,"756,102 (291,933)","743,812 (287,187)","12,290 (4,750)",1.6,
|
43 |
+
38,Zambia,"752,612 (290,585)","743,398 (287,028)","9,220 (3,560)",1.2,
|
44 |
+
39,Myanmar,"676,578 (261,228)","653,508 (252,321)","23,070 (8,910)",3.4,
|
45 |
+
40,Afghanistan,"652,867 (252,073)","652,867 (252,073)",0 (0),0
|
46 |
+
41,South Sudan,"644,329 (248,777)","644,329 (248,777)",0 (0),0,
|
47 |
+
42,France,"640,679 (247,368)","640,427 (247,270)","3,374 (1,303)",0.5,
|
48 |
+
43,Somalia,"637,657 (246,201)","627,337 (242,216)","10,320 (3,980)",1.6,
|
49 |
+
44,Central African Republic,"622,984 (240,535)","622,984 (240,535)",0 (0),0,
|
50 |
+
45,Ukraine,"603,550 (233,030)","579,300 (223,700)","24,250 (9,360)",4.0,
|
51 |
+
46,Madagascar,"587,041 (226,658)","581,540 (224,530)","5,501 (2,124)",0.9,
|
52 |
+
47,Botswana,"581,730 (224,610)","566,730 (218,820)","15,000 (5,800)",2.6,
|
53 |
+
48,Kenya,"580,367 (224,081)","569,140 (219,750)","11,227 (4,335)",1.9,
|
54 |
+
49,Yemen,"555,000 (214,000)","555,000 (214,000)",0 (0),0,
|
55 |
+
β,France (metropolitan),"543,940 (210,020)",,,,
|
56 |
+
50,Thailand,"513,120 (198,120)","510,890 (197,260)","2,230 (860)",0.4,
|
57 |
+
51,Spain,"505,992 (195,365)","498,980 (192,660)","6,390 (2,470)",1.3,
|
58 |
+
52,Turkmenistan,"488,100 (188,500)","469,930 (181,440)","18,170 (7,020)",3.7,
|
59 |
+
53,Cameroon,"475,442 (183,569)","472,710 (182,510)","2,730 (1,050)",0.6,
|
60 |
+
54,Papua New Guinea,"462,840 (178,700)","452,860 (174,850)","9,980 (3,850)",2.2,
|
61 |
+
55,Sweden,"447,425 (172,752)","407,284 (157,253)","40,142 (15,499)",9.0,
|
62 |
+
56,Uzbekistan,"447,400 (172,700)","425,400 (164,200)","22,000 (8,500)",4.9,
|
63 |
+
57,Morocco,"446,550 (172,410)","446,300 (172,300)",250 (97),0.1,
|
64 |
+
58,Iraq,"438,317 (169,235)","437,367 (168,868)",950 (370),0.2,
|
65 |
+
59,Paraguay,"406,752 (157,048)","397,302 (153,399)","9,450 (3,650)",2.3,
|
66 |
+
60,Zimbabwe,"390,757 (150,872)","386,847 (149,362)","3,910 (1,510)",1.0,
|
67 |
+
61,Norway,"385,207 (148,729)","365,957 (141,297)","19,520 (7,540)",5.1,
|
68 |
+
62,Japan,"377,976 (145,937)","364,546 (140,752)","13,430 (5,190)",3.6,
|
69 |
+
63,Germany,"357,114 (137,882)","348,672 (134,623)","8,350 (3,220)",2.3,
|
70 |
+
64,Congo,"342,000 (132,000)","341,500 (131,900)",500 (190),0.1,
|
71 |
+
65,Finland,"338,425 (130,667)","303,816 (117,304)","34,330 (13,250)",10.1,
|
72 |
+
66,Vietnam,"331,212 (127,882)","310,070 (119,720)","21,140 (8,160)",6.4,
|
73 |
+
67,Malaysia,"330,803 (127,724)","329,613 (127,264)","1,190 (460)",0.4,
|
74 |
+
β,Norway (mainland),"323,802 (125,021)","304,282 (117,484)","19,520 (7,540)",6.0,
|
75 |
+
68,Ivory Coast,"322,463 (124,504)","318,003 (122,782)","4,460 (1,720)",1.4,
|
76 |
+
69,Poland,"312,696 (120,733)","311,888 (120,421)",791 (305),0.3,
|
77 |
+
70,Oman,"309,500 (119,500)","309,500 (119,500)",0 (0),0,
|
78 |
+
71,Italy,"301,339 (116,348)","294,140 (113,570)","7,200 (2,800)",2.4,
|
79 |
+
72,Philippines,"300,000 (120,000)","298,170 (115,120)","1,830 (710)",0.6,
|
80 |
+
73,Ecuador,"276,841 (106,889)","256,369 (98,985)","6,720 (2,590)",2.4,
|
81 |
+
74,Burkina Faso,"274,222 (105,878)","273,602 (105,638)",620 (240),0.2,
|
82 |
+
75,New Zealand,"270,467 (104,428)","262,443 (101,330)","4,395 (1,697)",1.6,
|
83 |
+
76,Gabon,"267,668 (103,347)","257,667 (99,486)","10,001 (3,861)",3.7,
|
84 |
+
β,Western Sahara,"266,000 (103,000)","266,000 (103,000)",0 (0),0,
|
85 |
+
77,Guinea,"245,857 (94,926)","245,717 (94,872)",140 (54),0.1,
|
86 |
+
78,United Kingdom,"242,495 (93,628)","241,930 (93,410)","1,680 (650)",0.7,
|
87 |
+
79,Uganda,"241,550 (93,260)","197,100 (76,100)","43,938 (16,965)",18.2,
|
88 |
+
80,Ghana,"238,533 (92,098)","227,533 (87,851)","11,000 (4,200)",4.6,
|
89 |
+
81,Romania,"238,397 (92,046)","231,291 (89,302)","7,100 (2,700)",3.0,
|
90 |
+
82,Laos,"236,800 (91,400)","230,800 (89,100)","6,000 (2,300)",2.5,
|
91 |
+
83,Guyana,"214,969 (83,000)","196,849 (76,004)","18,120 (7,000)",8.4,
|
92 |
+
84,Belarus,"207,600 (80,200)","202,900 (78,300)","4,700 (1,800)",2.3,
|
93 |
+
85,Kyrgyzstan,"199,951 (77,202)","191,801 (74,055)","8,150 (3,150)",4.1,
|
94 |
+
86,Senegal,"196,722 (75,955)","192,530 (74,340)","4,192 (1,619)",2.1,
|
95 |
+
87,Syria,"185,180 (71,500)","183,630 (70,900)","1,550 (600)",0.8,
|
96 |
+
88,Cambodia,"181,035 (69,898)","176,515 (68,153)","4,520 (1,750)",2.5,
|
97 |
+
89,Uruguay,"176,215 (68,037)","175,015 (67,574)","1,200 (460)",0.7,
|
98 |
+
β,Somaliland,"176,120 (68,000)",,,,
|
99 |
+
90,Suriname,"163,820 (63,250)","156,000 (60,000)","7,820 (3,020)",4.8,
|
100 |
+
91,Tunisia,"163,610 (63,170)","155,360 (59,980)","8,250 (3,190)",5.0,
|
101 |
+
92,Bangladesh,"148,460 (57,320)","134,208 (51,818)","14,252 (5,503)",9.6,
|
102 |
+
93,Nepal,"147,516 (56,956)","143,686 (55,477)","3,830 (1,480)",2.6,
|
103 |
+
94,Tajikistan,"143,100 (55,300)","141,510 (54,640)","2,590 (1,000)",1.8,
|
104 |
+
95,Greece,"131,957 (50,949)","130,647 (50,443)","1,310 (510)",1.0,
|
105 |
+
96,Nicaragua,"130,373 (50,337)","119,990 (46,330)","10,380 (4,010)",8.0,
|
106 |
+
97,Eritrea,"125,000 (48,000)","125,000 (48,000)",0 (0),0,
|
107 |
+
98,North Korea,"120,540 (46,540)","120,538 (46,540)",2 (0.77),0,
|
108 |
+
99,Malawi,"118,484 (45,747)","94,080 (36,320)","24,404 (9,422)",20.6,
|
109 |
+
100,Benin,"114,763 (44,310)","114,305 (44,133)",457.569 (176.668),0.4,
|
110 |
+
101,Honduras,"112,492 (43,433)","111,890 (43,200)",200 (77),0.2,
|
111 |
+
102,Liberia,"111,369 (43,000)","96,320 (37,190)","15,049 (5,810)",13.5,
|
112 |
+
103,Bulgaria,"111,002 (42,858)","108,612 (41,935)","2,390 (920)",2.2,
|
113 |
+
104,Cuba,"109,884 (42,426)","109,884 (42,426)",0 (0),0,
|
114 |
+
105,Guatemala,"108,889 (42,042)","107,159 (41,374)","1,730 (670)",1.6,
|
115 |
+
106,Iceland,"103,000 (40,000)","100,250 (38,710)","2,750 (1,060)",2.7,
|
116 |
+
107,South Korea,"100,210 (38,690)","99,909 (38,575)",301 (116),0.3,
|
117 |
+
108,Hungary,"93,028 (35,918)","89,608 (34,598)","3,420 (1,320)",3.7,
|
118 |
+
109,Portugal,"92,226 (35,609)","91,119 (35,181)","1,107 (427)",1.2,
|
119 |
+
110,Jordan,"89,342 (34,495)","88,802 (34,287)",540 (210),0.6,
|
120 |
+
111,Serbia,"88,361 (34,116)","88,246 (34,072)",115 (44),0.1,
|
121 |
+
112,Azerbaijan,"86,600 (33,400)","86,100 (33,200)",500 (190),0.6,
|
122 |
+
113,Austria,"83,871 (32,383)","82,445 (31,832)","1,426 (551)",1.7,
|
123 |
+
114,United Arab Emirates,"83,600 (32,300)","83,600 (32,300)",0 (0),0,
|
124 |
+
115,Czech Republic,"78,871 (30,452)","77,187 (29,802)","1,684 (650)",2.1,
|
125 |
+
116,Panama,"75,417 (29,119)","74,340 (28,700)","1,080 (420)",1.4,
|
126 |
+
117,Sierra Leone,"71,740 (27,700)","71,620 (27,650)",120 (46),0.2,
|
127 |
+
118,Ireland,"70,273 (27,133)","68,883 (26,596)","1,390 (540)",2.0,
|
128 |
+
119,Georgia,"69,700 (26,900)","69,700 (26,900)",0 (0),0,
|
129 |
+
120,Sri Lanka,"65,610 (25,330)","62,732 (24,221)","2,878 (1,111)",4.4,
|
130 |
+
121,Lithuania,"65,300 (25,200)","62,680 (24,200)","2,620 (1,010)",4.0,
|
131 |
+
122,Latvia,"64,559 (24,926)","62,249 (24,034)","2,340 (900)",3.6,
|
132 |
+
β,Svalbard (Norway),"62,045 (23,956)","62,045 (23,956)",0 (0),0,
|
133 |
+
123,Togo,"56,785 (21,925)","54,385 (20,998)","2,400 (930)",4.2,
|
134 |
+
124,Croatia,"56,594 (21,851)","55,974 (21,612)",620 (240),1.1,
|
135 |
+
125,Bosnia and Herzegovina,"51,209 (19,772)","51,187 (19,763)",10 (3.9),0,
|
136 |
+
126,Costa Rica,"51,100 (19,700)","51,060 (19,710)",40 (15),0.1,
|
137 |
+
127,Slovakia,"49,037 (18,933)","48,105 (18,573)",930 (360),1.9,
|
138 |
+
128,Dominican Republic,"48,671 (18,792)","48,320 (18,660)",350 (140),0.7,
|
139 |
+
129,Estonia,"45,227 (17,462)","42,388 (16,366)","2,840 (1,100)",6.3,
|
140 |
+
130,Denmark,"43,094 (16,639)","42,434 (16,384)",660 (250),1.5,
|
141 |
+
131,Netherlands,"41,850 (16,160)","33,893 (13,086)","7,957 (3,072)",19.0,
|
142 |
+
132,Switzerland,"41,284 (15,940)","39,997 (15,443)","1,280 (490)",3.1,
|
143 |
+
133,Bhutan,"38,394 (14,824)","38,394 (14,824)",0 (0),0,
|
144 |
+
β,Taiwan,"36,193 (13,974)","32,260 (12,460)","3,720 (1,440)",10.3,
|
145 |
+
134,Guinea-Bissau,"36,125 (13,948)","28,120 (10,860)","8,005 (3,091)",22.2,
|
146 |
+
135,Moldova,"33,846 (13,068)","32,891 (12,699)",960 (370),2.8,
|
147 |
+
136,Belgium,"30,528 (11,787)","30,278 (11,690)",250 (97),0.8,
|
148 |
+
137,Lesotho,"30,355 (11,720)","30,355 (11,720)",0 (0),0,
|
149 |
+
138,Armenia,"29,743 (11,484)","28,342 (10,943)","1,401 (541)",4.7,
|
150 |
+
139,Solomon Islands,"28,896 (11,157)","27,986 (10,805)",910 (350),3.1,
|
151 |
+
140,Albania,"28,748 (11,100)","27,398 (10,578)","1,350 (520)",4.7,
|
152 |
+
141,Equatorial Guinea,"28,051 (10,831)","28,051 (10,831)",0 (0),0,
|
153 |
+
142,Burundi,"27,834 (10,747)","25,680 (9,920)","2,150 (830)",7.7,
|
154 |
+
143,Haiti,"27,750 (10,710)","27,560 (10,640)",190 (73),0.7,
|
155 |
+
144,Rwanda,"26,338 (10,169)","24,668 (9,524)","1,670 (640)",6.3,
|
156 |
+
145,North Macedonia,"25,713 (9,928)","25,433 (9,820)",280 (110),1.1,
|
157 |
+
146,Djibouti,"23,200 (9,000)","23,180 (8,950)",20 (7.7),0.1,
|
158 |
+
147,Belize,"22,966 (8,867)","22,806 (8,805)",160 (62),0.7,
|
159 |
+
148,El Salvador,"21,041 (8,124)","20,721 (8,000)",320 (120),1.5,
|
160 |
+
149,Israel,"20,770 (8,020)","20,330 (7,850)",440 (170),2.1,
|
161 |
+
150,Slovenia,"20,273 (7,827)","20,151 (7,780)",122 (47),0.6,
|
162 |
+
β,New Caledonia (France),"18,575 (7,172)","18,275 (7,056)",300 (120),1.6,
|
163 |
+
151,Fiji,"18,272 (7,055)","18,274 (7,056)",0 (0),0,
|
164 |
+
152,Kuwait,"17,818 (6,880)","17,818 (6,880)",0 (0),0,
|
165 |
+
153,Eswatini,"17,364 (6,704)","17,204 (6,643)",160 (62),0.9,
|
166 |
+
154,East Timor,"14,919 (5,760)","14,919 (5,760)",0 (0),0,
|
167 |
+
155,Bahamas,"13,943 (5,383)","10,010 (3,860)","3,870 (1,490)",27.8,
|
168 |
+
156,Montenegro,"13,812 (5,333)","13,452 (5,194)",360 (140),2.6,
|
169 |
+
157,Vanuatu,"12,189 (4,706)","12,189 (4,706)",0 (0),0,
|
170 |
+
β,Falkland Islands (United Kingdom),"12,173 (4,700)","12,173 (4,700)",0 (0),0,
|
171 |
+
158,Qatar,"11,586 (4,473)","11,586 (4,473)",0 (0),0,
|
172 |
+
159,Gambia,"11,295 (4,361)","10,000 (3,900)","1,295 (500)",11.5,
|
173 |
+
160,Jamaica,"10,991 (4,244)","10,831 (4,182)",160 (62),1.5,
|
174 |
+
β,Kosovo,"10,887 (4,203)",,,,
|
175 |
+
161,Lebanon,"10,452 (4,036)","10,230 (3,950)",170 (66),1.6,
|
176 |
+
162,Cyprus,"9,251 (3,572)","9,241 (3,568)",10 (3.9),0.1,
|
177 |
+
β,Puerto Rico (United States),"9,104 (3,515)","8,959 (3,459)",145 (56),1.6,
|
178 |
+
β,Abkhazia,"8,660 (3,340)",,,,
|
179 |
+
β,French Southern Territories (France),"7,747 (2,991)","7,668 (2,961)",79.8 (30.8),1.0,
|
180 |
+
163,Palestine,"6,220 (2,400)","6,000 (2,300)",220 (85),3.5,
|
181 |
+
164,Brunei,"5,765 (2,226)","5,265 (2,033)",500 (190),8.7,
|
182 |
+
165,Trinidad and Tobago,"5,130 (1,980)","5,128 (1,980)",0 (0),0,
|
183 |
+
β,French Polynesia (France),"4,167 (1,609)","3,827 (1,478)",340 (130),8.2,
|
184 |
+
β,Transnistria,"4,163 (1,607)",,,,
|
185 |
+
166,Cape Verde,"4,033 (1,557)","4,033 (1,557)",0 (0),0,
|
186 |
+
β,South Georgia and the South Sandwich Islands (United Kingdom),"3,903 (1,507)","3,903 (1,507)",0 (0),0,
|
187 |
+
β,South Ossetia,"3,900 (1,500)",,,,
|
188 |
+
β,Northern Cyprus,"3,355 (1,295)",,,,
|
189 |
+
β,Artsakh,"3,170 (1,220)","3,170 (1,220)",-,-,
|
190 |
+
167,Samoa,"2,842 (1,097)","2,821 (1,089)",10 (3.9),0.4,
|
191 |
+
β,Hong Kong (China),"2,755 (1,064)","1,106 (427)","1,649 (637)",59.9,
|
192 |
+
168,Luxembourg,"2,586 (998)","2,586 (998)",0 (0),0,
|
193 |
+
β,Bir Tawil (terra nullius),"2,060 (800)","2,060 (800)",0 (0),0,
|
194 |
+
169,Mauritius,"2,040 (790)","2,030 (780)",10 (3.9),0.5,
|
195 |
+
170,Comoros,"1,862 (719)","1,862 (719)",0 (0),0,
|
196 |
+
β,Γ
land (Finland),"1,580 (610)",,,,
|
197 |
+
β,Faroe Islands (Denmark),"1,399 (540)","1,393 (538)",negligible,negl.,
|
198 |
+
171,SΓ£o TomΓ© and PrΓncipe,964 (372),964 (372),0 (0),0,
|
199 |
+
β,Turks and Caicos Islands (United Kingdom),948 (366),430 (170),0 (0),0,
|
200 |
+
172,Kiribati,811 (313),811 (313),0 (0),0,
|
201 |
+
173,Bahrain,786 (303),786 (303),0 (0),0,
|
202 |
+
174,Dominica,751 (290),751 (290),0 (0),0,
|
203 |
+
175,Tonga,747 (288),717 (277),30 (12),4.0,
|
204 |
+
176,Singapore,728 (281),716 (276),10 (3.9),1.4,
|
205 |
+
177,Micronesia,702 (271),702 (271),negligible,negl.,
|
206 |
+
178,Saint Lucia,616 (238),606 (234),10 (3.9),1.6,
|
207 |
+
β,Isle of Man (British Crown Dependency),572 (221),572 (221),0 (0),0,
|
208 |
+
β,Guam (United States),549 (212),544 (210),0 (0),0,
|
209 |
+
179,Andorra,468 (181),468 (181),0 (0),0,
|
210 |
+
β,Northern Mariana Islands (United States),464 (179),464 (179),0 (0),0,
|
211 |
+
180,Palau,459 (177),459 (177),0 (0),0,
|
212 |
+
181,Seychelles,452 (175),455 (176),0 (0),0,
|
213 |
+
β,CuraΓ§ao (Netherlands),444 (171),444 (171),0 (0),0,
|
214 |
+
182,Antigua and Barbuda,442 (171),442 (171),0 (0),0,
|
215 |
+
183,Barbados,430 (170),431 (166),0 (0),0,
|
216 |
+
β,Heard Island and McDonald Islands (Australia),412 (159),412 (159),0 (0),0,
|
217 |
+
184,Saint Vincent and the Grenadines,389 (150),389 (150),0 (0),0,
|
218 |
+
β,Jan Mayen (Norway),377 (146),377 (146),0 (0),0,
|
219 |
+
β,U.S. Virgin Islands (United States),347 (134),346 (134),negligible,negl.,
|
220 |
+
185,Grenada,344 (133),344 (133),0 (0),0,
|
221 |
+
186,Malta,316 (122),316 (122),0 (0),0,
|
222 |
+
β,"Saint Helena, Ascension and Tristan da Cunha (United Kingdom)",308 (119),308 (119),0 (0),0,
|
223 |
+
187,Maldives,300 (120),298 (115),0 (0),0,
|
224 |
+
β,Bonaire (Netherlands),294 (114),294 (114),0 (0),0,
|
225 |
+
β,Cayman Islands (United Kingdom),264 (102),264 (102),0 (0),0,
|
226 |
+
188,Saint Kitts and Nevis,261 (101),261 (101),0 (0),0,
|
227 |
+
β,Niue,260 (100),260 (100),0 (0),0,
|
228 |
+
β,Akrotiri and Dhekelia (United Kingdom),254 (98),not determined,not determined,not det.,
|
229 |
+
β,Saint Pierre and Miquelon (France),242 (93),242 (93),0 (0),0,
|
230 |
+
β,Cook Islands,236 (91),236 (91),0 (0),0,
|
231 |
+
β,American Samoa (United States),199 (77),199 (77),0 (0),0,
|
232 |
+
189,Marshall Islands,181 (70),181 (70),0 (0),0,
|
233 |
+
β,Aruba (Netherlands),180 (69),180 (69),0 (0),0,
|
234 |
+
β,Easter Island (Chile),163 (63),163 (63),0 (0),0,
|
235 |
+
190,Liechtenstein,160 (62),160 (62),0 (0),0,
|
236 |
+
β,British Virgin Islands (United Kingdom),151 (58),151 (58),0 (0),0,
|
237 |
+
β,Wallis and Futuna (France),142 (55),142 (55),0 (0),0,
|
238 |
+
β,Christmas Island (Australia),135 (52),135 (52),0 (0),0,
|
239 |
+
β,Jersey (British Crown Dependency),116 (45),116 (45),0 (0),0,
|
240 |
+
β,Montserrat (United Kingdom),102 (39),102 (39),0 (0),0,
|
241 |
+
β,Anguilla (United Kingdom),91 (35),91 (35),0 (0),0,
|
242 |
+
β,Guernsey (British Crown Dependency),78 (30),78 (30),0 (0),0,
|
243 |
+
191,San Marino,61 (24),61 (24),0 (0),0,
|
244 |
+
β,British Indian Ocean Territory (United Kingdom),60 (23),60 (23),negligible,negl.,
|
245 |
+
β,Saint Martin (France),54 (21),54.4 (21.0),negligible,negl.,
|
246 |
+
β,Bermuda (United Kingdom),54 (21),54 (21),0 (0),0,
|
247 |
+
β,Bouvet Island (Norway),49 (19),49 (19),0 (0),0,
|
248 |
+
β,Pitcairn Islands (United Kingdom),47 (18),47 (18),0 (0),0,
|
249 |
+
β,Norfolk Island (Australia),36 (14),36 (14),0 (0),0,
|
250 |
+
β,Sint Maarten (Netherlands),34 (13),34 (13),0 (0),0,
|
251 |
+
β,Macao (China),31 (12),28 (11),0 (0),0,
|
252 |
+
192,Tuvalu,26 (10),26 (10),0 (0),0,
|
253 |
+
193,Nauru,21 (8.1),21 (8.1),0 (0),0,
|
254 |
+
β,Saint BarthΓ©lemy (France),21 (8.1),not determined,not determined,not det.,
|
255 |
+
β,Sint Eustatius (Netherlands),21 (8.1),not determined,not determined,not det.,
|
256 |
+
β,United States Minor Outlying Islands,19 (7.3),19 (7.3),0 (0),0,
|
257 |
+
β,Cocos (Keeling) Islands (Australia),14 (5.4),14 (5.4),0 (0),0,
|
258 |
+
β,Saba (Netherlands),13 (5.0),not determined,not determined,not det.,
|
259 |
+
β,Tokelau (New Zealand),12 (4.6),12 (4.6),0 (0),0,
|
260 |
+
β,Gibraltar (United Kingdom),6 (2.3),6.5 (2.5),0 (0),0,
|
261 |
+
β,Clipperton Island (France),6 (2.3),2 (0.77),4 (1.5),66.7,
|
262 |
+
β,Ashmore and Cartier Islands (Australia),5 (1.9),5 (1.9),0 (0),0,
|
263 |
+
194,Monaco,2.02 (0.78),2.02 (0.78),0 (0),0,
|
264 |
+
195,Vatican City,0.49 (0.19),0.49 (0.19),0 (0),0,
|
evals/country-area/country_fns.py
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
import pandas as pd
|
4 |
+
from zeno import DistillReturn, distill
|
5 |
+
|
6 |
+
# read file from same directory as this file
|
7 |
+
area_df = pd.read_csv(os.path.dirname(__file__) + "/country-areas.csv")
|
8 |
+
# set index to country
|
9 |
+
area_df.set_index("country", inplace=True)
|
10 |
+
# given a string like 23,180 (8,950) extract the first number
|
11 |
+
|
12 |
+
area_df = area_df[area_df["land"] != "not determined"]
|
13 |
+
area_df["area"] = area_df["land"].apply(
|
14 |
+
lambda x: x if isinstance(x, float) else float(x.split(" ")[0].replace(",", ""))
|
15 |
+
)
|
16 |
+
|
17 |
+
|
18 |
+
@distill
|
19 |
+
def area(df, ops):
|
20 |
+
areas = []
|
21 |
+
for output in df[ops.label_column]:
|
22 |
+
if output in area_df.index:
|
23 |
+
areas.append(area_df.loc[output]["area"])
|
24 |
+
else:
|
25 |
+
areas.append(-1)
|
26 |
+
return DistillReturn(distill_output=areas)
|
evals/emotional-intelligence/emotional-intelligence-0301.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
evals/emotional-intelligence/emotional-intelligence-turbo.jsonl
DELETED
The diff for this file is too large to render.
See raw diff
|
|
evals/evals.yaml
CHANGED
@@ -2,11 +2,26 @@
|
|
2 |
results-file: ./crossword/crossword-turbo.jsonl
|
3 |
second-results-file: ./crossword/crossword-4.jsonl
|
4 |
functions-file: ./crossword/crossword_fns.py
|
5 |
-
link: https://github.com/openai/evals/
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
-
|
10 |
-
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
results-file: ./crossword/crossword-turbo.jsonl
|
3 |
second-results-file: ./crossword/crossword-4.jsonl
|
4 |
functions-file: ./crossword/crossword_fns.py
|
5 |
+
link: https://github.com/openai/evals/commit/fa192552a19c297c65a8a398ede53b62a289ab9c
|
6 |
+
description: Given a clue and a partially filled crossword answer, provide the filled in answer
|
7 |
+
- country-area:
|
8 |
+
results-file: ./country-area/countries-turbo.jsonl
|
9 |
+
second-results-file: ./country-area/countries-4.jsonl
|
10 |
+
functions-file: ./country-area/country_fns.py
|
11 |
+
link: https://github.com/openai/evals/commit/24dae81ae06ebc70808690c7a147f2710e3e54bf
|
12 |
+
description: Select the country with the biggest area from a list of countries
|
13 |
+
- med-mcqa:
|
14 |
+
results-file: ./medmcqa/med-3.5-turbo.jsonl
|
15 |
+
second-results-file: ./medmcqa/med-4.jsonl
|
16 |
+
link: https://github.com/openai/evals/commit/19b2cf9ff96b08af68f5c3b4d2c90184844a4fe6
|
17 |
+
description: Multiple choice questions from different medical areas.
|
18 |
+
- aba-mrpc:
|
19 |
+
results-file: ./aba-mrpc-true-false/aba-3.5-turbo.jsonl
|
20 |
+
second-results-file: ./aba-mrpc-true-false/aba-4.jsonl
|
21 |
+
link: https://github.com/openai/evals/commit/9badb0395b696958e539f001e62d377ed0e237de
|
22 |
+
description: True/False questions based on the American Bar Association's Model Rules of Professional Conduct
|
23 |
+
- logic-statements:
|
24 |
+
results-file: ./logic/logic-turbo.jsonl
|
25 |
+
second-results-file: ./logic/logic-4.jsonl
|
26 |
+
link: https://github.com/openai/evals/commit/81b959c37c7ed2ffe0c4c145e9e3eee955d27cc3
|
27 |
+
description: Tests of simple logical reasoning statements.
|
evals/logic/logic-4.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
evals/logic/logic-turbo.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|