diff --git a/static/css/bundle.css b/static/css/bundle.css
deleted file mode 100644
index ad818db..0000000
--- a/static/css/bundle.css
+++ /dev/null
@@ -1,9 +0,0 @@
-html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}a{background-color:transparent}b{font-weight:bolder}img{border-style:none}button,input{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button{text-transform:none}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type="button"]:-moz-focusring,[type="reset"]:-moz-focusring,[type="submit"]:-moz-focusring{outline:1px dotted ButtonText}[type="checkbox"],[type="radio"]{box-sizing:border-box;padding:0}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{-webkit-appearance:textfield;outline-offset:-2px}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden]{display:none}html{box-sizing:border-box;font-family:sans-serif}*,*::before,*::after{box-sizing:inherit}dl{margin:0}button{background:transparent;padding:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}ul{list-style:none;margin:0;padding:0}html{font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height:1.5}*,*::before,*::after{border-width:0;border-style:solid;border-color:#e2e8f0}img{border-style:solid}input::placeholder{color:#a0aec0}button,[role="button"]{cursor:pointer}table{border-collapse:collapse}a{color:inherit;text-decoration:inherit}button,input{padding:0;line-height:inherit;color:inherit}img,svg{display:block;vertical-align:middle}img{max-width:100%;height:auto}@font-face{font-family:'IBMPlexMono';font-style:normal;font-weight:normal;src:url(../fonts/IBMPlexMono-Regular.woff2) format('woff2');font-display:swap}@font-face{font-family:'IBMPlexMono';font-style:italic;font-weight:400;src:url(../fonts/IBMPlexMono-Italic.woff2) format('woff2');font-display:swap}@font-face{font-family:'IBMPlexMono';font-style:normal;font-weight:bold;src:url(../fonts/IBMPlexMono-Bold.woff2) format('woff2');font-display:swap}html{font-family:IBMPlexMono, Courier New, monospace}.appearance-none{appearance:none}.bg-black{background-color:#000}.bg-white{background-color:#fff}.bg-motw-red{background-color:#ff0000}.border-white{border-color:#fff}.border-motw-red{border-color:#ff0000}.border-0{border-width:0}.border-2{border-width:2px}.border-b-0{border-bottom-width:0}.border-b-2{border-bottom-width:2px}.border-b-4{border-bottom-width:4px}.border-t-8{border-top-width:8px}.border-l-8{border-left-width:8px}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.content-center{align-content:center}.float-right{float:right}.font-motw{font-family:IBMPlexMono, Courier New, monospace}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.h-0{height:0}.h-4{height:1rem}.h-10{height:2.5rem}.h-full{height:100%}.m-auto{margin:auto}.mt-1{margin-top:0.25rem}.mr-1{margin-right:0.25rem}.mb-1{margin-bottom:0.25rem}.mt-3{margin-top:0.75rem}.mt-4{margin-top:1rem}.max-w-xs{max-width:20rem}.max-w-4xl{max-width:56rem}.min-h-full{min-height:100%}.object-cover{object-fit:cover}.opacity-50{opacity:0.5}.focus\:outline-none:focus{outline:0}.overflow-auto{overflow:auto}.overflow-y-auto{overflow-y:auto}.p-1{padding:0.25rem}.p-2{padding:0.5rem}.p-6{padding:1.5rem}.py-1{padding-top:0.25rem;padding-bottom:0.25rem}.px-1{padding-left:0.25rem;padding-right:0.25rem}.px-3{padding-left:0.75rem;padding-right:0.75rem}.px-4{padding-left:1rem;padding-right:1rem}.pt-1{padding-top:0.25rem}.pr-1{padding-right:0.25rem}.pb-1{padding-bottom:0.25rem}.pl-1{padding-left:0.25rem}.pt-2{padding-top:0.5rem}.pr-2{padding-right:0.5rem}.pb-2{padding-bottom:0.5rem}.pl-2{padding-left:0.5rem}.pt-3{padding-top:0.75rem}.pr-3{padding-right:0.75rem}.pt-4{padding-top:1rem}.pr-5{padding-right:1.25rem}.pt-6{padding-top:1.5rem}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-x-0{right:0;left:0}.top-0{top:0}.bottom-0{bottom:0}.fill-current{fill:currentColor}.table-auto{table-layout:auto}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-black{color:#000}.text-white{color:#fff}.text-gray-800{color:#2d3748}.text-motw-red{color:#ff0000}.text-motw-blue{color:#007bff}.active\:text-red-200:active{color:#fed7d7}.text-sm{font-size:0.875rem}.text-base{font-size:1rem}.text-lg{font-size:1.125rem}.text-xl{font-size:1.25rem}.italic{font-style:italic}.not-italic{font-style:normal}.underline{text-decoration:underline}.hover\:underline:hover{text-decoration:underline}.select-none{user-select:none}.align-top{vertical-align:top}.visible{visibility:visible}.whitespace-no-wrap{white-space:nowrap}.w-4{width:1rem}.w-1\/4{width:25%}.w-1\/12{width:8.333333%}.w-9\/12{width:75%}.w-11\/12{width:91.666667%}.w-full{width:100%}.z-40{z-index:40}.z-50{z-index:50}@media(max-width: 599px){.monocle\:hidden{display:none}.monocle\:h-8{height:2rem}.monocle\:max-w-xs{max-width:20rem}.monocle\:px-0{padding-left:0;padding-right:0}.monocle\:px-2{padding-left:0.5rem;padding-right:0.5rem}.monocle\:px-4{padding-left:1rem;padding-right:1rem}.monocle\:pr-1{padding-right:0.25rem}.monocle\:pr-2{padding-right:0.5rem}.monocle\:pr-3{padding-right:0.75rem}.monocle\:text-xs{font-size:0.75rem}.monocle\:text-sm{font-size:0.875rem}.monocle\:text-xl{font-size:1.25rem}.monocle\:text-2xl{font-size:1.5rem}.monocle\:w-1\/3{width:33.333333%}.monocle\:w-1\/6{width:16.666667%}.monocle\:w-full{width:100%}}@media(min-width: 600px) and (max-width: 767px){.phone\:hidden{display:none}.phone\:h-8{height:2rem}.phone\:max-w-xs{max-width:20rem}.phone\:px-0{padding-left:0;padding-right:0}.phone\:px-2{padding-left:0.5rem;padding-right:0.5rem}.phone\:px-4{padding-left:1rem;padding-right:1rem}.phone\:pr-1{padding-right:0.25rem}.phone\:pr-2{padding-right:0.5rem}.phone\:pr-3{padding-right:0.75rem}.phone\:text-right{text-align:right}.phone\:text-xs{font-size:0.75rem}.phone\:text-sm{font-size:0.875rem}.phone\:text-xl{font-size:1.25rem}.phone\:text-2xl{font-size:1.5rem}.phone\:w-1\/2{width:50%}.phone\:w-1\/3{width:33.333333%}.phone\:w-1\/6{width:16.666667%}}@media(min-width: 768px){.phablet\:hidden{display:none}.phablet\:float-right{float:right}.phablet\:p-6{padding:1.5rem}.phablet\:pl-2{padding-left:0.5rem}.phablet\:w-1\/2{width:50%}.phablet\:w-1\/3{width:33.333333%}}@media(min-width: 1024px){.tablet\:w-1\/4{width:25%}}@media(min-width: 1280px){.laptop\:w-1\/6{width:16.666667%}}@media(min-width: 2048px){.suv\:text-sm{font-size:0.875rem}.suv\:w-1\/12{width:8.333333%}}
-.hamburger-icon.svelte-18c4dj9{height:0.7em;background:linear-gradient(to bottom, #fff 0%, #fff 20%, transparent 20%, transparent 40%, #fff 40%, #fff 60%, transparent 60%, transparent 80%, #fff 80%, #fff 100%)}.motw-bookmark.svelte-18c4dj9{border:1.2em solid red;border-right-color:white}.motw-bookmark.svelte-18c4dj9:active{color:#fed7d7}
-tr.svelte-cty6wm:nth-child(odd){background-color:#e7e7e7}th.svelte-cty6wm{color:#2d3748;background-color:#a7a7a7}td.svelte-cty6wm{vertical-align:top;padding-left:0.25rem;padding-right:0.25rem;padding-top:0.5rem;padding-bottom:0.25rem}a.svelte-cty6wm:hover{text-decoration:underline;text-decoration-color:red;font-weight:bold;cursor:pointer}
-.modal.svelte-xjoc7v{height:100%;width:100%;position:fixed;z-index:50;overflow:auto;display:flex;background-color:rgba(0,0,0,0.7)}.cover.svelte-xjoc7v{background-color:#fff;border-color:#fff;border-width:2px;border-top-width:8px;border-left-width:8px;min-height:4em;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2063.5%2084.7%22%20height%3D%22320%22%20width%3D%22240%22%3E%3Cpath%20d%3D%22M5.292%205.292h52.917v74.083H5.292z%22%20fill%3D%22%23e0e0e0%22%20paint-order%3D%22stroke%20fill%20markers%22%2F%3E%3Cpath%20d%3D%22M10.6%2010.6h42.3v63.5H10.6z%22%20fill%3D%22%23c0c0c0%22%20paint-order%3D%22stroke%20fill%20markers%22%2F%3E%3Cpath%20d%3D%22M15.8%2015.8h31.8v53H15.8z%22%20fill%3D%22%23a0a0a0%22%20paint-order%3D%22stroke%20fill%20markers%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:cover}
-.candilist.svelte-14w2vqu{max-height:16em}.showCandidates.svelte-14w2vqu{display:block;border-color:#ff0000;border-bottom-width:4px}.zeroBottomBorder.svelte-14w2vqu{border-bottom-width:0}.modulo1.svelte-14w2vqu{background-color:#fff}.modulo0.svelte-14w2vqu{background-color:#e7e7e7}
-.cover.svelte-18010u{min-height:16em;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2063.5%2084.7%22%20height%3D%22320%22%20width%3D%22240%22%3E%3Cpath%20d%3D%22M5.292%205.292h52.917v74.083H5.292z%22%20fill%3D%22%23e0e0e0%22%20paint-order%3D%22stroke%20fill%20markers%22%2F%3E%3Cpath%20d%3D%22M10.6%2010.6h42.3v63.5H10.6z%22%20fill%3D%22%23c0c0c0%22%20paint-order%3D%22stroke%20fill%20markers%22%2F%3E%3Cpath%20d%3D%22M15.8%2015.8h31.8v53H15.8z%22%20fill%3D%22%23a0a0a0%22%20paint-order%3D%22stroke%20fill%20markers%22%2F%3E%3C%2Fsvg%3E");background-repeat:no-repeat;background-size:cover}
-.showlist.svelte-24i4z8{border-bottom-width:4px;border-color:#ff0000;display:table;z-index:60}.hidelist.svelte-24i4z8{display:none}.dropdown-li.svelte-24i4z8{background-color:#fff;padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.75rem;padding-right:0.75rem;white-space:nowrap;color:#2d3748}.dropdown-li.svelte-24i4z8:hover{border-bottom-width:2px;border-color:#ff0000;font-style:italic;font-weight:700;padding-left:0.5rem;padding-bottom:0.25rem}li.svelte-24i4z8:nth-child(odd){background-color:#e7e7e7}
-
-/*# sourceMappingURL=bundle.css.map */
\ No newline at end of file
diff --git a/static/css/bundle.css.map b/static/css/bundle.css.map
deleted file mode 100644
index 5a3107c..0000000
--- a/static/css/bundle.css.map
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "version": 3,
- "file": "bundle.css",
- "sources": [
- "../../../src/Tailwindcss.svelte",
- "../../../src/MotwHeader.svelte",
- "../../../src/LibraryTable.svelte",
- "../../../src/BookModal.svelte",
- "../../../src/SearchBar.svelte",
- "../../../src/BookCard.svelte",
- "../../../src/Dropdown.svelte"
- ],
- "sourcesContent": [
- "\n",
- "\n\n\n
\n
\n
location.hash = \"\"} alt=\"let's share books\" class=\"cursor-pointer pt-1 pl-1 pr-1 h-10 monocle:h-8 phone:h-8\" src=\"{motw_reverse_svg}\" />\n
\n
\n
\n
show {#if t}covers{:else}list{/if}
\n
MEMORY OF THE WORLD \n
\n",
- "\n\n\n\n\n \n \n Authors \n Title \n \n \n \n \n \n \n {#each books as book (book._id)}\n \n \n {#if book.authors}\n \n {#each book.authors as author, i}\n {#if i+1 < 4 }
{author} {/if}{#if i+1 !== book.authors.length && i+i < 4 },
{:else if i+1 === 4 } et al.{/if}\n {/each}\n
\n {/if}\n \n location.hash = `#/book/${book._id}`}\" class=\"italic w-11/12 phablet:pl-2 monocle:text-xs phone:text-xs\">{book.title}{getYear(book)} \n \n {#each getFormats(book, \" \") as format}\n {format.title} \n {/each}\n \n \n {/each}\n \n
\n",
- "\n\n\n\n \n\n
\n
x “{book.title}” by {#each book.authors as author, i}{#if i+1 < 4 }{author}{/if}{#if i+1 !== book.authors.length && i+1 < 4 }, {:else if i+1 === 4 } et al.{/if}{/each}
\n
\n {#if book.cover_url}\n
\n
\n {#if book.formats != undefined && book.formats.length != 0 }\n
\n {:else}\n
.
\n {/if}\n
\n {/if}\n
\n Title: {book.title}\n
\n {#if book.authors}\n
\n
Authors: \n {#each book.authors as author, i}\n
{author} {#if i+1 !== book.authors.length}, {/if}\n {/each}\n
\n {/if}\n {#if book.publisher}\n
\n {/if}\n {#if book.series}\n
\n {/if}\n {#if book.year}\n
\n Year: {book.year}\n
\n {/if}\n {#if book.abstract}\n
\n {@html sanitizeAbstract(book.abstract)}\n
\n {/if}\n
\n {#if book.tags && book.tags.length > 0 }\n
\n
Tags: \n {#each book.tags as tag, i}\n
{tag} {#if i+1 !== book.tags.length}, {/if}\n {/each}\n
\n {/if}\n
\n
\n
\n",
- "\n\n\n\n\n
\n
\n
\n\n
\n {#each filteredCandidates as candidate, i}\n {candidate} \n {/each}\n \n
\n
SEARCH \n
\n
\n",
- "\n\n\n\n\n
window.location.hash = `#/book/${book._id}`}\" class=\"w-full min-h-full text-white\" src={book.library_url+book.cover_url} alt=\"\" />\n
\n
{book.title} \n
\n {#each book.authors as author, i}\n {#if i+1 < 4 }
{author} {/if}{#if i+1 !== book.authors.length && i+i < 4 }, {:else if i+i === 4 } et al.{/if}{/each}\n
\n
\n
\n {#if tooltip}\n
\n {/if}\n {#if book.formats != undefined && book.formats.length != 0 }\n {#each getFormats(book) as format}\n
\n {format.title} \n {/each}\n {:else}\n
. \n {/if}\n
\n
\n",
- "\n\n\n\n hidelist = true} class=\"dropdown inline-block relative\">\n
\n {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AAC,AAED,SAAS,cAAC,CAAC,AACT,OAAO,CAAE,IAAI,AACf,CAAC,AAED,YAAY,cAAC,CAAC,AACZ,gBAAgB,CAAE,IAAI,CACtB,WAAW,CAAE,OAAO,CACpB,cAAc,CAAE,OAAO,CACvB,YAAY,CAAE,OAAO,CACrB,aAAa,CAAE,OAAO,CACtB,WAAW,CAAE,MAAM,CACnB,KAAK,CAAE,OAAO,AAChB,CAAC,AAED,0BAAY,MAAM,AAAC,CAAC,AAClB,mBAAmB,CAAE,GAAG,CACxB,YAAY,CAAE,OAAO,CACrB,UAAU,CAAE,MAAM,CAClB,WAAW,CAAE,GAAG,CAChB,YAAY,CAAE,MAAM,CACpB,cAAc,CAAE,OAAO,AACzB,CAAC,AAED,gBAAE,WAAW,GAAG,CAAC,AAAC,CAAC,AACjB,gBAAgB,CAAE,OAAO,AAC3B,CAAC"
-}
\ No newline at end of file
diff --git a/static/data1.js b/static/data1.js
deleted file mode 100644
index 6e087e5..0000000
--- a/static/data1.js
+++ /dev/null
@@ -1 +0,0 @@
-CALIBRE_BOOKS1={"portable":true,"books":null}
\ No newline at end of file
diff --git a/static/data2.js b/static/data2.js
deleted file mode 100644
index 3f9c173..0000000
--- a/static/data2.js
+++ /dev/null
@@ -1 +0,0 @@
-CALIBRE_BOOKS2={"portable":true,"books":null}
\ No newline at end of file
diff --git a/static/data3.js b/static/data3.js
deleted file mode 100644
index 3e946b9..0000000
--- a/static/data3.js
+++ /dev/null
@@ -1 +0,0 @@
-CALIBRE_BOOKS3={"portable":true,"books":null}
\ No newline at end of file
diff --git a/static/data4.js b/static/data4.js
deleted file mode 100644
index fd4a22e..0000000
--- a/static/data4.js
+++ /dev/null
@@ -1 +0,0 @@
-CALIBRE_BOOKS4={"portable":true,"books":null}
\ No newline at end of file
diff --git a/static/data5.js b/static/data5.js
deleted file mode 100644
index 0ff3b03..0000000
--- a/static/data5.js
+++ /dev/null
@@ -1 +0,0 @@
-CALIBRE_BOOKS5={"portable":true,"books":null}
\ No newline at end of file
diff --git a/static/data6.js b/static/data6.js
deleted file mode 100644
index dd94be4..0000000
--- a/static/data6.js
+++ /dev/null
@@ -1 +0,0 @@
-CALIBRE_BOOKS6={"portable":true,"books":null}
\ No newline at end of file
diff --git a/static/data7.js b/static/data7.js
deleted file mode 100644
index 8d181f1..0000000
--- a/static/data7.js
+++ /dev/null
@@ -1 +0,0 @@
-CALIBRE_BOOKS7={"portable":true,"books":null}
\ No newline at end of file
diff --git a/static/data8.js b/static/data8.js
deleted file mode 100644
index cdae770..0000000
--- a/static/data8.js
+++ /dev/null
@@ -1 +0,0 @@
-CALIBRE_BOOKS8={"portable":true,"books":null}
\ No newline at end of file
diff --git a/static/favicons/android-chrome-192x192.png b/static/favicons/android-chrome-192x192.png
deleted file mode 100644
index 1aada91..0000000
Binary files a/static/favicons/android-chrome-192x192.png and /dev/null differ
diff --git a/static/favicons/android-chrome-512x512.png b/static/favicons/android-chrome-512x512.png
deleted file mode 100644
index b8a599e..0000000
Binary files a/static/favicons/android-chrome-512x512.png and /dev/null differ
diff --git a/static/favicons/apple-touch-icon.png b/static/favicons/apple-touch-icon.png
deleted file mode 100644
index 1bc5ac1..0000000
Binary files a/static/favicons/apple-touch-icon.png and /dev/null differ
diff --git a/static/favicons/favicon-16x16.png b/static/favicons/favicon-16x16.png
deleted file mode 100644
index c0dda5e..0000000
Binary files a/static/favicons/favicon-16x16.png and /dev/null differ
diff --git a/static/favicons/favicon-32x32.png b/static/favicons/favicon-32x32.png
deleted file mode 100644
index 30552b6..0000000
Binary files a/static/favicons/favicon-32x32.png and /dev/null differ
diff --git a/static/favicons/mstile-150x150.png b/static/favicons/mstile-150x150.png
deleted file mode 100644
index 0e6a7b4..0000000
Binary files a/static/favicons/mstile-150x150.png and /dev/null differ
diff --git a/static/favicons/safari-pinned-tab.svg b/static/favicons/safari-pinned-tab.svg
deleted file mode 100644
index 6872542..0000000
--- a/static/favicons/safari-pinned-tab.svg
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-
-
-Created by potrace 1.11, written by Peter Selinger 2001-2013
-
-
-
-
-
diff --git a/static/fonts/IBMPlexMono-Bold.woff2 b/static/fonts/IBMPlexMono-Bold.woff2
deleted file mode 100644
index add42af..0000000
Binary files a/static/fonts/IBMPlexMono-Bold.woff2 and /dev/null differ
diff --git a/static/fonts/IBMPlexMono-Italic.woff2 b/static/fonts/IBMPlexMono-Italic.woff2
deleted file mode 100644
index 88e4e8b..0000000
Binary files a/static/fonts/IBMPlexMono-Italic.woff2 and /dev/null differ
diff --git a/static/fonts/IBMPlexMono-Regular.woff2 b/static/fonts/IBMPlexMono-Regular.woff2
deleted file mode 100644
index d0d7ded..0000000
Binary files a/static/fonts/IBMPlexMono-Regular.woff2 and /dev/null differ
diff --git a/static/fonts/IBMPlexMono.woff2 b/static/fonts/IBMPlexMono.woff2
deleted file mode 100644
index 200a573..0000000
Binary files a/static/fonts/IBMPlexMono.woff2 and /dev/null differ
diff --git a/static/js/bundle.js b/static/js/bundle.js
deleted file mode 100644
index 4cc94c2..0000000
--- a/static/js/bundle.js
+++ /dev/null
@@ -1,2 +0,0 @@
-var app=function(){"use strict";function noop(){}function run(t){return t()}function blank_object(){return Object.create(null)}function run_all(t){t.forEach(run)}function is_function(t){return"function"==typeof t}function safe_not_equal(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function subscribe(t,e){const n=t.subscribe(e);return n.unsubscribe?()=>n.unsubscribe():n}function component_subscribe(t,e,n){t.$$.on_destroy.push(subscribe(e,n))}function append(t,e){t.appendChild(e)}function insert(t,e,n){t.insertBefore(e,n||null)}function detach(t){t.parentNode.removeChild(t)}function destroy_each(t,e){for(let n=0;nt.removeEventListener(e,n,a)}function stop_propagation(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function self(t){return function(e){e.target===this&&t.call(this,e)}}function attr(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function children(t){return Array.from(t.childNodes)}function set_data(t,e){e=""+e,t.data!==e&&(t.data=e)}function set_input_value(t,e){(null!=e||t.value)&&(t.value=e)}function toggle_class(t,e,n){t.classList[n?"add":"remove"](e)}function custom_event(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}let current_component;function set_current_component(t){current_component=t}function get_current_component(){if(!current_component)throw new Error("Function called outside component initialization");return current_component}function onMount(t){get_current_component().$$.on_mount.push(t)}function createEventDispatcher(){const t=get_current_component();return(e,n)=>{const a=t.$$.callbacks[e];if(a){const o=custom_event(e,n);a.slice().forEach(e=>{e.call(t,o)})}}}const dirty_components=[],binding_callbacks=[],render_callbacks=[],flush_callbacks=[],resolved_promise=Promise.resolve();let update_scheduled=!1;function schedule_update(){update_scheduled||(update_scheduled=!0,resolved_promise.then(flush))}function add_render_callback(t){render_callbacks.push(t)}function add_flush_callback(t){flush_callbacks.push(t)}function flush(){const t=new Set;do{for(;dirty_components.length;){const t=dirty_components.shift();set_current_component(t),update(t.$$)}for(;binding_callbacks.length;)binding_callbacks.pop()();for(let e=0;e{outroing.delete(t),a&&(n&&t.d(1),a())}),t.o(e)}}const globals="undefined"!=typeof window?window:global;function destroy_block(t,e){t.d(1),e.delete(t.key)}function outro_and_destroy_block(t,e){transition_out(t,1,1,()=>{e.delete(t.key)})}function update_keyed_each(t,e,n,a,o,r,c,l,i,s,u,d){let p=t.length,M=r.length,h=p;const _={};for(;h--;)_[t[h].key]=h;const g=[],m=new Map,f=new Map;for(h=M;h--;){const t=d(o,r,h),l=n(t);let i=c.get(l);i?a&&i.p(t,e):(i=s(l,t),i.c()),m.set(l,g[h]=i),l in _&&f.set(l,Math.abs(h-_[l]))}const L=new Set,j=new Set;function N(t){transition_in(t,1),t.m(l,u),c.set(t.key,t),u=t.first,M--}for(;p&&M;){const e=g[M-1],n=t[p-1],a=e.key,o=n.key;e===n?(u=e.first,p--,M--):m.has(o)?!c.has(a)||L.has(a)?N(e):j.has(o)?p--:f.get(a)>f.get(o)?(j.add(a),N(e)):(L.add(o),p--):(i(n,c),p--)}for(;p--;){const e=t[p];m.has(e.key)||i(e,c)}for(;M;)N(g[M-1]);return g}function bind(t,e,n){const a=t.$$.props[e];void 0!==a&&(t.$$.bound[a]=n,n(t.$$.ctx[a]))}function create_component(t){t&&t.c()}function mount_component(t,e,n){const{fragment:a,on_mount:o,on_destroy:r,after_update:c}=t.$$;a&&a.m(e,n),add_render_callback(()=>{const e=o.map(run).filter(is_function);r?r.push(...e):run_all(e),t.$$.on_mount=[]}),c.forEach(add_render_callback)}function destroy_component(t,e){const n=t.$$;null!==n.fragment&&(run_all(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function make_dirty(t,e){-1===t.$$.dirty[0]&&(dirty_components.push(t),schedule_update(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<(s.ctx&&o(s.ctx[e],s.ctx[e]=a)&&(s.bound[e]&&s.bound[e](a),u&&make_dirty(t,e)),n)):[],s.update(),u=!0,run_all(s.before_update),s.fragment=!!a&&a(s.ctx),e.target&&(e.hydrate?s.fragment&&s.fragment.l(children(e.target)):s.fragment&&s.fragment.c(),e.intro&&transition_in(t.$$.fragment),mount_component(t,e.target,e.anchor),flush()),set_current_component(l)}class SvelteComponent{$destroy(){destroy_component(this,1),this.$destroy=noop}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(){}}class Tailwindcss extends SvelteComponent{constructor(t){super(),init(this,t,null,null,safe_not_equal,{})}}function get_each_context(t,e,n){const a=t.slice();return a[9]=e[n],a}function create_each_block(t){let e,n,a,o=t[9].toUpperCase()+"";function r(...e){return t[7](t[9],...e)}return{c(){e=element("li"),n=text(o),attr(e,"class","dropdown-li svelte-24i4z8"),a=listen(e,"click",r)},m(t,a){insert(t,e,a),append(e,n)},p(e,a){t=e,2&a[0]&&o!==(o=t[9].toUpperCase()+"")&&set_data(n,o)},d(t){t&&detach(e),a()}}}function create_fragment(t){let e,n,a,o,r,c,l,i,s,u,d=t[0].toUpperCase()+"",p=t[1],M=[];for(let e=0;e{"defaultItem"in t&&n(0,a=t.defaultItem),"droplist"in t&&n(1,o=t.droplist),"selectedItem"in t&&n(5,r=t.selectedItem)},[a,o,l,i,function(){c("dropdownClick"),n(2,l=!l)},r,c,t=>i(t),()=>n(2,l=!0)]}class Dropdown extends SvelteComponent{constructor(t){super(),init(this,t,instance,create_fragment,safe_not_equal,{defaultItem:0,droplist:1,selectedItem:5})}}const subscriber_queue=[];function readable(t,e){return{subscribe:writable(t,e).subscribe}}function writable(t,e=noop){let n;const a=[];function o(e){if(safe_not_equal(t,e)&&(t=e,n)){const e=!subscriber_queue.length;for(let e=0;e{const t=a.indexOf(l);-1!==t&&a.splice(t,1),0===a.length&&(n(),n=null)}}}}const lasthash=writable('["",""]'),restapi=readable("https://books.memoryoftheworld.org/");function dynamicSort(t){var e=1;return"-"===t[0]&&(e=-1,t=t.substr(1)),function(n,a){return-1==e?a[t].localeCompare(n[t]):n[t].localeCompare(a[t])}}function mockHttpRequest(t,e,n,a="books"){let o=new URL(e),r=o.pathname.split("/"),c=r[1],l=r[2],i=decodeURIComponent(r[3]);if("librarians"==c&&"on"==l){let e=new Set;for(let n of t)e.add(n.librarian);return{_items:[...e]}}if("autocomplete"==c){if("authors"==l){let e=[];for(let n of t)for(let t of n.authors)-1!=t.toLowerCase().indexOf(r[3].toLowerCase())&&e.push(t);return{_items:e}}if("tags"==l){let e=[];for(let n of t)for(let t of n.tags)-1!=t.toLowerCase().indexOf(r[3].toLowerCase())&&e.push(t);return{_items:e}}if("titles"==l){let e=[];for(let n of t)-1!=n.title.toLowerCase().indexOf(r[3].toLowerCase())&&e.push(n.title);return{_items:e}}}if("search"==c){a="search in "+l;let e=[];for(let n of t)if(["authors","languages","tags"].includes(l))for(let t of n[l])-1!=t.toLowerCase().indexOf(i.toLowerCase())&&e.push(n);else["_id","title","titles","publisher","series","library_uuid","abstract","librarian"].includes(l)&&("titles"==l&&(l="title"),-1!=n[l].toLowerCase().indexOf(i.toLowerCase())&&e.push(n));t=e}if("book"==c){for(let e of t)if(e._id==l)return e.library_url="",e;if(CALIBRE_BOOKS1.total-t.length>0)return"TRYAGAIN"}let s={};for(let t of o.searchParams.entries())s[t[0]]=t[1];let u=s.page||0,d=Math.floor(t.length/n+1),p=Math.max(0,Math.min(d,u-1)),M=p*n,h=(p+1)*n,_=[];for(let e of t.slice(M,h))e.library_url="",_.push(e);let g={_items:_,_links:{parent:{title:"Memory of the World Library",href:"/"},self:{title:a,href:`${a}/${l}/${i}`},prev:{title:"previous page",href:`${o.pathname}?page=${p}`},next:{title:"next page",href:`${o.pathname}?page=${p+2}`},last:{title:"last page",href:`${o.pathname}?page=${d}`}},_meta:{page:p+1,max_results:n,total:t.length,status:a}};return 0==p&&delete g._links.prev,p==d-1&&delete g._links.next,g}const motw_reverse_svg="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2Ij48ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLjE0MjkgMCAwIDEuMTQyOSAtMjIuODU3IC05MzAuNDEpIj48cGF0aCBkPSJNMjQzLjg3IDkyMC4wNWEzLjgxIDMuODEgMCAwIDAtLjMyOC0uNzkxYy0uMTM3LS4yNDctLjMtLjQ3My0uNDc3LS42NjNzLS4zNzMtLjM0NC0uNTc3LS40NDhsLTkzLjQzLTQ3LjUxOGMtLjEzNy0uMDctLjI3NS0uMTYtLjQxNi0uMjc0cy0uMjg1LS4yNDgtLjQzMi0uNDA4LS4zLS4zNDYtLjQ1NC0uNTU4bC0uNDgyLS43MjRjLS4yNDctLjQwMi0uNDk4LS44Ny0uNzUtMS4zOTdsLS43NTQtMS43NDctLjczLTIuMDUtLjY3OC0yLjMtLjYwOC0yLjUyNy0uNTItMi42OTYtLjQxNS0yLjgyNi0uMjk1LTIu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create_if_block(t){let e;return{c(){e=text("covers")},m(t,n){insert(t,e,n)},d(t){t&&detach(e)}}}function create_fragment$1(t){let e,n,a,o,r,c,l,i,s,u,d,p,M,h,_;function g(e){t[8].call(null,e)}let m={defaultItem:"LIBRARIANS",droplist:t[1]};void 0!==t[2]&&(m.selectedItem=t[2]);const f=new Dropdown({props:m});function L(t,e){return t[0]?create_if_block:create_else_block}binding_callbacks.push(()=>bind(f,"selectedItem",g)),f.$on("dropdownClick",t[3]);let j=L(t),N=j(t);return{c(){e=element("div"),n=element("div"),a=element("img"),r=space(),c=element("div"),c.innerHTML='
',l=space(),create_component(f.$$.fragment),s=space(),u=element("div"),d=text("show "),N.c(),p=space(),M=element("a"),M.textContent="MEMORY OF THE WORLD",attr(a,"alt","let's share books"),attr(a,"class","cursor-pointer pt-1 pl-1 pr-1 h-10 monocle:h-8 phone:h-8"),a.src!==(o=motw_reverse_svg)&&attr(a,"src",o),attr(c,"class","pt-4 pl-1 pr-1 monocle:hidden phone:hidden"),attr(n,"class","inline-flex bg-motw-red"),attr(u,"class","hover:underline cursor-pointer pt-2 text-motw-blue bg-white text-base font-bold text-center monocle:pr-1 phone:pr-1"),attr(M,"class","motw-bookmark hover:underline monocle:hidden phone:hidden flex text-lg font-bold pr-5 h-0 text-white items-center bg-motw-red svelte-18c4dj9"),attr(M,"href","https://www.memoryoftheworld.org"),attr(e,"class","flex mb-1 mt-1 justify-between w-full"),_=[listen(a,"click",t[7]),listen(u,"click",t[4])]},m(t,o){insert(t,e,o),append(e,n),append(n,a),append(n,r),append(n,c),append(n,l),mount_component(f,n,null),append(e,s),append(e,u),append(u,d),N.m(u,null),append(e,p),append(e,M),h=!0},p(t,e){const n={};2&e[0]&&(n.droplist=t[1]),!i&&4&e[0]&&(i=!0,n.selectedItem=t[2],add_flush_callback(()=>i=!1)),f.$set(n),j!==(j=L(t))&&(N.d(1),N=j(t),N&&(N.c(),N.m(u,null)))},i(t){h||(transition_in(f.$$.fragment,t),h=!0)},o(t){transition_out(f.$$.fragment,t),h=!1},d(t){t&&detach(e),destroy_component(f),N.d(),run_all(_)}}}function instance$1(t,e,n){let a;component_subscribe(t,restapi,t=>n(6,a=t));let o,{mock:r}=e,c=[],{t:l}=e;return t.$set=t=>{"mock"in t&&n(5,r=t.mock),"t"in t&&n(0,l=t.t)},t.$$.update=()=>{4&t.$$.dirty[0]&&o&&"LIBRARIANS"!==o&&(location.hash="#/search/librarian/"+o.toLowerCase())},[l,c,o,async function(){var t=a+"librarians/on";if(r)var e=mockHttpRequest(CALIBRE_BOOKS1.books,t,48,"books");else{const n=await fetch(t);e=await n.json()}n(1,c=e._items.sort())},function(){n(0,l=!l)},r,a,()=>location.hash="",function(t){o=t,n(2,o)}]}class MotwHeader extends SvelteComponent{constructor(t){super(),init(this,t,instance$1,create_fragment$1,safe_not_equal,{mock:5,t:0})}}function get_each_context$1(t,e,n){const a=t.slice();return a[23]=e[n],a[25]=n,a}function create_each_block$1(t){let e,n,a,o,r=t[23]+"";return{c(){e=element("li"),n=text(r),attr(e,"class",a=cssCandidate+" modulo"+t[25]%2+" svelte-14w2vqu"),o=[listen(e,"mouseover",highlightCandidate),listen(e,"mouseout",dimlightCandidate)]},m(t,a){insert(t,e,a),append(e,n)},p(t,e){64&e[0]&&r!==(r=t[23]+"")&&set_data(n,r)},d(t){t&&detach(e),run_all(o)}}}function create_fragment$2(t){let e,n,a,o,r,c,l,i,s,u,d,p,M;function h(e){t[20].call(null,e)}let _={defaultItem:t[3],droplist:t[4]};void 0!==t[5]&&(_.selectedItem=t[5]);const g=new Dropdown({props:_});binding_callbacks.push(()=>bind(g,"selectedItem",h));let m=t[6],f=[];for(let e=0;e ',attr(r,"class","monocle:text-sm phone:text-sm appearance-none mt-3 border-b-4 border-motw-red focus:outline-none w-full pl-2 text-lg svelte-14w2vqu"),attr(r,"type","text"),attr(r,"aria-label","Search"),attr(r,"placeholder","Search"),toggle_class(r,"zeroBottomBorder",t[1]),attr(l,"id","candidateList"),attr(l,"class","candilist hidden cursor-pointer absolute z-50 w-full text-lg overflow-y-auto svelte-14w2vqu"),toggle_class(l,"showCandidates",t[1]),attr(o,"class","relative w-full"),attr(s,"class","monocle:hidden phone:hidden bg-motw-red active:text-red-200 focus:outline-none text-white p-2 font-bold text-lg hover:underline"),attr(s,"type","button"),attr(s,"name","B"),attr(d,"class","bg-motw-red phablet:hidden p-1"),attr(e,"class","inline-flex w-full"),M=[listen(r,"input",t[21]),listen(r,"click",t[9]),listen(r,"keyup",t[8]),listen(r,"focusout",t[10]),listen(s,"click",t[7]),listen(d,"click",t[7])]},m(n,M){insert(n,e,M),mount_component(g,e,null),append(e,a),append(e,o),append(o,r),set_input_value(r,t[0]),append(o,c),append(o,l);for(let t=0;tn=!1)),g.$set(a),1&e[0]&&r.value!==t[0]&&set_input_value(r,t[0]),2&e[0]&&toggle_class(r,"zeroBottomBorder",t[1]),64&e[0]){let n;for(m=t[6],n=0;nn(15,a=t));let o,r,{mock:c}=e,l=[],i=!1,s="",u=document.getElementById("selectedCandidate"),d=!1,p={authors:new Set,titles:new Set,tags:new Set},M="authors",h=["titles","tags"],_=[M].concat(h),g=M;async function m(t){var e=t.toLowerCase(),o=`${a}autocomplete/${g}/${e}`;if(n(12,l=[...Array.from(p[g])]),4===t.length){if(c)var i=mockHttpRequest(CALIBRE_BOOKS1.books,o,48);else{const t=await fetch(o);i=await t.json()}i._items.forEach(t=>p[g].add(t));var s=[...Array.from(p[g])].sort();n(12,l=s),l.length>0&&n(6,r=l.filter(e=>-1!==e.toLowerCase().indexOf(t.toLowerCase())))}}function f(t){o&&o.scroll(0,0),i=!1,u=document.getElementById("selectedCandidate"),resetSelectedCandidate(u),u=!1,"string"==typeof t&&n(0,s=t),d&&n(1,d=!1)}return t.$set=t=>{"mock"in t&&n(11,c=t.mock)},t.$$.update=()=>{56&t.$$.dirty[0]&&g!=M&&(n(3,M=g),n(4,h=[]),_.forEach(t=>{t!==M&&h.push(t)}),n(12,l=[...Array.from(p[M])]),f("")),4097&t.$$.dirty[0]&&n(6,r=l.filter(t=>-1!==t.toLowerCase().indexOf(s.toLowerCase()))),1&t.$$.dirty[0]&&m(s)},[s,d,o,M,h,g,r,function(t){location.hash=`#/search/${g}/${s}`},function(t){if(["ArrowLeft","ArrowRight","Backspace","Delete"].includes(t.key)&&f(s),u=document.getElementById("selectedCandidate"),"Enter"==t.key)return u&&n(0,s=u.innerText.toLowerCase()),location.hash=`#/search/${g}/${s.toLowerCase()}`,void f(s);if("Escape"!=t.key){if(r&&("ArrowDown"==t.key||s.length>0)&&n(1,d=!0),["ArrowDown","ArrowUp"].includes(t.key)){if(!u)return void setSelectedCandidate(o.firstChild);resetSelectedCandidate(u),"ArrowDown"==t.key?u.nextSibling?setSelectedCandidate(u.nextSibling):(setSelectedCandidate(o.firstChild),u=document.getElementById("selectedCandidate")):u.previousSibling?setSelectedCandidate(u.previousSibling):(setSelectedCandidate(o.lastChild),u=document.getElementById("selectedCandidate")),window.scroll(0,0),u.scrollIntoView({behavior:"smooth",block:"center"})}}else f("")},function(t){i&&0==s.length?(n(1,d=!0),i=!1):(f(s),i=!0)},function(t){d&&n(1,d=!1),u=document.getElementById("selectedCandidate"),u&&(n(0,s=u.innerText.toLowerCase()),location.hash=`#/search/${g}/${s.toLowerCase()}`,f(s))},c,l,i,u,a,p,_,m,f,function(t){g=t,n(5,g)},function(){s=this.value,n(0,s)},function(t){binding_callbacks[t?"unshift":"push"](()=>{n(2,o=t)})}]}class SearchBar extends SvelteComponent{constructor(t){super(),init(this,t,instance$2,create_fragment$2,safe_not_equal,{mock:11})}}function create_else_block_1(t){let e;return{c(){e=element("span"),e.textContent="<>",attr(e,"class","text-white cursor-default select-nonE")},m(t,n){insert(t,e,n)},p:noop,d(t){t&&detach(e)}}}function create_if_block$1(t){let e,n,a;return{c(){e=element("a"),n=text(" next >>"),attr(e,"href",a="#"+t[0].next.href),attr(e,"class","hover:underline text-motw-blue")},m(t,a){insert(t,e,a),append(e,n)},p(t,n){1&n[0]&&a!==(a="#"+t[0].next.href)&&attr(e,"href",a)},d(t){t&&detach(e)}}}function create_fragment$3(t){let e,n,a,o,r,c,l,i=t[0].searchStatus+"";function s(t,e){return(null==n||1&e[0])&&(n=!!(Object.keys(t[0]).indexOf("prev")+1)),n?create_if_block_1:create_else_block_1}let u=s(t,-1),d=u(t);function p(t,e){return(null==l||1&e[0])&&(l=!!(Object.keys(t[0]).indexOf("next")+1)),l?create_if_block$1:create_else_block$1}let M=p(t,-1),h=M(t);return{c(){e=element("div"),d.c(),a=space(),o=element("span"),r=text(i),c=space(),h.c(),attr(o,"class","text-center text-black"),attr(e,"class","flex justify-between bg-white sticky top-0 w-full z-40 p-2 items-baseline items-stretch text-base font-bold monocle:text-xs phone:text-xs")},m(t,n){insert(t,e,n),d.m(e,null),append(e,a),append(e,o),append(o,r),append(e,c),h.m(e,null)},p(t,n){u===(u=s(t,n))&&d?d.p(t,n):(d.d(1),d=u(t),d&&(d.c(),d.m(e,a))),1&n[0]&&i!==(i=t[0].searchStatus+"")&&set_data(r,i),M===(M=p(t,n))&&h?h.p(t,n):(h.d(1),h=M(t),h&&(h.c(),h.m(e,null)))},i:noop,o:noop,d(t){t&&detach(e),d.d(),h.d()}}}function instance$3(t,e,n){let{navbarLinks:a}=e;return t.$set=t=>{"navbarLinks"in t&&n(0,a=t.navbarLinks)},[a]}class NavBar extends SvelteComponent{constructor(t){super(),init(this,t,instance$3,create_fragment$3,safe_not_equal,{navbarLinks:0})}}function readableBytes(t){var e=Math.floor(Math.log(t)/Math.log(1024));return 1*(t/Math.pow(1024,e)).toFixed(2)+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][e]}function getFormats(t,e=", "){if(void 0===t.formats||0==t.formats.length)return[{url:"",size:"",title:""}];let n=[];for(let a of t.formats){let o=t.library_url+a.dir_path+a.file_name,r=a.format.toUpperCase()+e;n.push({url:o,title:r,size:readableBytes(a.size)})}return n[n.length-1].title=n[n.length-1].title.slice(0,-2),n}function get_each_context$2(t,e,n){const a=t.slice();return a[4]=e[n],a}function get_each_context_1(t,e,n){const a=t.slice();return a[7]=e[n],a[9]=n,a}function create_if_block_4(t){let e,n,a,o=t[7]+"";return{c(){e=element("a"),n=text(o),attr(e,"title","search in authors"),attr(e,"href",a="#/search/authors/"+t[7]),attr(e,"class","hover:underline")},m(t,a){insert(t,e,a),append(e,n)},p(t,r){1&r[0]&&o!==(o=t[7]+"")&&set_data(n,o),1&r[0]&&a!==(a="#/search/authors/"+t[7])&&attr(e,"href",a)},d(t){t&&detach(e)}}}function create_if_block_3(t){let e;return{c(){e=text(" et al.")},m(t,n){insert(t,e,n)},d(t){t&&detach(e)}}}function create_if_block_2(t){let e;return{c(){e=text(", ")},m(t,n){insert(t,e,n)},d(t){t&&detach(e)}}}function create_each_block_1(t){let e,n,a=t[9]+1<4&&create_if_block_4(t);function o(t,e){return t[9]+1!==t[0].authors.length&&t[9]+t[9]<4?create_if_block_2:t[9]+t[9]===4?create_if_block_3:void 0}let r=o(t),c=r&&r(t);return{c(){a&&a.c(),e=empty(),c&&c.c(),n=empty()},m(t,o){a&&a.m(t,o),insert(t,e,o),c&&c.m(t,o),insert(t,n,o)},p(t,e){t[9]+1<4&&a.p(t,e),r!==(r=o(t))&&(c&&c.d(1),c=r&&r(t),c&&(c.c(),c.m(n.parentNode,n)))},d(t){a&&a.d(t),t&&detach(e),c&&c.d(t),t&&detach(n)}}}function create_if_block_1$1(t){let e,n,a,o,r,c=t[0].librarian+"";return{c(){e=element("div"),n=text("via "),a=element("a"),o=text(c),attr(a,"title","search in librarians"),attr(a,"class","hover:underline cursor-pointer"),attr(a,"href",r="#/search/librarian/"+t[0].librarian),attr(e,"class","pb-2")},m(t,r){insert(t,e,r),append(e,n),append(e,a),append(a,o)},p(t,e){1&e[0]&&c!==(c=t[0].librarian+"")&&set_data(o,c),1&e[0]&&r!==(r="#/search/librarian/"+t[0].librarian)&&attr(a,"href",r)},d(t){t&&detach(e)}}}function create_else_block$2(t){let e;return{c(){e=element("span"),e.textContent=".",attr(e,"class","text-black")},m(t,n){insert(t,e,n)},p:noop,d(t){t&&detach(e)}}}function create_if_block$2(t){let e,n=getFormats(t[0]),a=[];for(let e=0;e{"book"in t&&n(0,a=t.book)},[a,o,function(){n(1,o=!0),setTimeout(()=>n(1,o=!1),3e3)},()=>window.location.hash="#/book/"+a._id]}class BookCard extends SvelteComponent{constructor(t){super(),init(this,t,instance$4,create_fragment$4,safe_not_equal,{book:0})}}function get_each_context$3(t,e,n){const a=t.slice();return a[1]=e[n],a}function create_each_block$3(t,e){let n,a;const o=new BookCard({props:{book:e[1]}});return{key:t,first:null,c(){n=empty(),create_component(o.$$.fragment),this.first=n},m(t,e){insert(t,n,e),mount_component(o,t,e),a=!0},p(t,e){const n={};1&e[0]&&(n.book=t[1]),o.$set(n)},i(t){a||(transition_in(o.$$.fragment,t),a=!0)},o(t){transition_out(o.$$.fragment,t),a=!1},d(t){t&&detach(n),destroy_component(o,t)}}}function create_fragment$5(t){let e,n,a=[],o=new Map,r=t[0];const c=t=>t[1]._id;for(let e=0;e{"books"in t&&n(0,a=t.books)},[a]}class LibraryCovers extends SvelteComponent{constructor(t){super(),init(this,t,instance$5,create_fragment$5,safe_not_equal,{books:0})}}function get_each_context_1$1(t,e,n){const a=t.slice();return a[5]=e[n],a}function get_each_context_2(t,e,n){const a=t.slice();return a[8]=e[n],a[10]=n,a}function get_each_context$4(t,e,n){const a=t.slice();return a[2]=e[n],a}function create_if_block$3(t){let e,n=t[2].authors,a=[];for(let e=0;et[2]._id;for(let e=0;e<_.length;e+=1){let n=get_each_context$4(t,_,e),a=g(n);h.set(a,M[e]=create_each_block$4(a,n))}return{c(){e=element("table"),n=element("thead"),a=element("tr"),o=element("th"),o.textContent="Authors",r=space(),c=element("th"),c.textContent="Title",l=space(),i=element("th"),s=element("img"),d=space(),p=element("tbody");for(let t=0;t{"books"in t&&n(0,a=t.books)},[a,t=>location.hash="#/book/"+t._id]}class LibraryTable extends SvelteComponent{constructor(t){super(),init(this,t,instance$6,create_fragment$6,safe_not_equal,{books:0})}}function HtmlWhitelistedSanitizer(t,e,n,a){if(this.escape=t,this.allowedTags=e,this.allowedCss=n,this.doc=document.implementation.createHTMLDocument(),null==a&&(a=["http://","https://"]),null==this.allowedTags){var o=function(t){return t},r={dir:o,lang:o,title:o},c=HtmlWhitelistedSanitizer.makeUrlSanitizer(a);this.allowedTags={a:HtmlWhitelistedSanitizer.mergeMap(r,{download:o,href:c,hreflang:o,ping:c,rel:o,target:o,type:o}),p:r,div:r,span:r,br:r,i:r,u:r}}null==this.allowedCss&&(this.allowedCss=[])}HtmlWhitelistedSanitizer.makeUrlSanitizer=function(t){return function(e){if(!e)return"";for(var n in t)if(e.startsWith(t[n]))return e;return""}},HtmlWhitelistedSanitizer.mergeMap=function(){var t={};for(var e in arguments)for(var n in arguments[e])t[n]=arguments[e][n];return t},HtmlWhitelistedSanitizer.prototype.sanitizeString=function(t){var e=this.doc.createElement("div");return e.innerHTML=t,this.sanitizeNode(e).innerHTML},HtmlWhitelistedSanitizer.prototype.sanitizeNode=function(t){var e=t.nodeName.toLowerCase();if("#text"==e)return t;if("#comment"==e)return this.doc.createTextNode("");if(!this.allowedTags.hasOwnProperty(e))return t.textContent?this.doc.createTextNode(t.textContent):this.doc.createTextNode("");for(var n=this.doc.createElement(e),a=0;a0;){var l=t.removeChild(t.childNodes[0]);n.appendChild(this.sanitizeNode(l))}return n};const{window:window_1}=globals;function get_each_context$5(t,e,n){const a=t.slice();return a[7]=e[n],a[9]=n,a}function get_each_context_1$2(t,e,n){const a=t.slice();return a[10]=e[n],a[9]=n,a}function get_each_context_2$1(t,e,n){const a=t.slice();return a[12]=e[n],a}function get_each_context_3(t,e,n){const a=t.slice();return a[10]=e[n],a[9]=n,a}function create_if_block_12(t){let e,n=t[10]+"";return{c(){e=text(n)},m(t,n){insert(t,e,n)},p(t,a){1&a[0]&&n!==(n=t[10]+"")&&set_data(e,n)},d(t){t&&detach(e)}}}function create_if_block_11(t){let e;return{c(){e=text("et al.")},m(t,n){insert(t,e,n)},d(t){t&&detach(e)}}}function create_if_block_10(t){let e;return{c(){e=text(", ")},m(t,n){insert(t,e,n)},d(t){t&&detach(e)}}}function create_each_block_3(t){let e,n,a=t[9]+1<4&&create_if_block_12(t);function o(t,e){return t[9]+1!==t[0].authors.length&&t[9]+1<4?create_if_block_10:t[9]+1===4?create_if_block_11:void 0}let r=o(t),c=r&&r(t);return{c(){a&&a.c(),e=empty(),c&&c.c(),n=empty()},m(t,o){a&&a.m(t,o),insert(t,e,o),c&&c.m(t,o),insert(t,n,o)},p(t,e){t[9]+1<4&&a.p(t,e),r!==(r=o(t))&&(c&&c.d(1),c=r&&r(t),c&&(c.c(),c.m(n.parentNode,n)))},d(t){a&&a.d(t),t&&detach(e),c&&c.d(t),t&&detach(n)}}}function create_if_block_8(t){let e,n,a,o;function r(t,e){return null!=t[0].formats&&0!=t[0].formats.length?create_if_block_9:create_else_block$3}let c=r(t),l=c(t);return{c(){e=element("div"),n=element("img"),o=space(),l.c(),attr(n,"class","text-white object-cover w-full"),n.src!==(a=t[0].library_url+t[0].cover_url)&&attr(n,"src",a),attr(n,"alt",""),attr(e,"class","cover phablet:w-1/2 phablet:float-right monocle:pr-3 phone:pr-3 svelte-xjoc7v")},m(t,a){insert(t,e,a),append(e,n),append(e,o),l.m(e,null)},p(t,o){1&o[0]&&n.src!==(a=t[0].library_url+t[0].cover_url)&&attr(n,"src",a),c===(c=r(t))&&l?l.p(t,o):(l.d(1),l=c(t),l&&(l.c(),l.m(e,null)))},d(t){t&&detach(e),l.d()}}}function create_else_block$3(t){let e;return{c(){e=element("div"),e.textContent=".",attr(e,"class",".inset-x-0.bottom-0 bg-black text-black")},m(t,n){insert(t,e,n)},p:noop,d(t){t&&detach(e)}}}function create_if_block_9(t){let e,n,a,o=getFormats(t[0]),r=[];for(let e=0;e0&&create_if_block$4(t);return{c(){e=element("div"),n=element("div"),a=element("div"),o=element("span"),o.textContent=" x",r=text(" “"),c=text(C),l=text("” by ");for(let t=0;t>",attr(o,"title","[ESC]"),attr(o,"class","cursor-pointer monocle:text-2xl phone:text-2xl monocle:pr-2 phone:pr-2 float-right font-extrabold text-white opacity-50"),attr(a,"class","inset-x-0.top-0 p-6 monocle:px-4 phone:px-4 bg-motw-red text-white font-extrabold text-xl monocle:text-sm phone:text-sm"),attr(p,"class","font-bold"),attr(d,"class","pt-4 monocle:px-2 phone:px-2"),attr(s,"class","bg-white phablet:p-6"),attr(b,"class","hover:underline inline-flex"),attr(b,"href",k="#/search/librarian/"+t[0].librarian),attr(I,"class","text-motw-red text-center select-none"),attr(T,"title","[←]"),attr(T,"id","prev"),attr(T,"class","hover:underline cursor-pointer"),attr(z,"title","[→]"),attr(z,"id","next"),attr(z,"class","hover:underline cursor-pointer"),attr(S,"class","font-extrabold text-white monocle:text-xl phone:text-xl monocle:pr-2 phone:pr-2"),attr(N,"class","inset-x-0.bottom-0 items-baseline bg-motw-red text-white font-bold p-6 monocle:px-2 phone:px-2 flex justify-between items-center"),attr(n,"class","pt-6 w-full max-w-4xl m-auto flex-col flex monocle:text-xs phone:text-xs"),attr(e,"class","modal px-4 monocle:px-0 phone:px-0 svelte-xjoc7v"),$=[listen(window_1,"keydown",t[1]),listen(o,"click",t[2]),listen(T,"click",t[1]),listen(z,"click",t[1]),listen(e,"click",self(t[2]))]},m(t,k){insert(t,e,k),append(e,n),append(n,a),append(a,o),append(a,r),append(a,c),append(a,l);for(let t=0;t0?R?R.p(t,e):(R=create_if_block$4(t),R.c(),R.m(n,j)):R&&(R.d(1),R=null),1&e[0]&&O!==(O=t[0].librarian+"")&&set_data(x,O),1&e[0]&&k!==(k="#/search/librarian/"+t[0].librarian)&&attr(b,"href",k)},i:noop,o:noop,d(t){t&&detach(e),destroy_each(Y,t),U&&U.d(),Q&&Q.d(),B&&B.d(),H&&H.d(),Z&&Z.d(),P&&P.d(),R&&R.d(),run_all($)}}}function sanitizeAbstract(t){return new HtmlWhitelistedSanitizer(!0).sanitizeString(t.replace("**",""))}function instance$7(t,e,n){let{book:a}=e,{bookm:o}=e,r=[];const c=createEventDispatcher();lasthash.subscribe(t=>{r=JSON.parse(t)});function l(t){r[0]=!0,lasthash.set(JSON.stringify(r)),window.location.hash=r[1],n(3,o=!1)}return t.$set=t=>{"book"in t&&n(0,a=t.book),"bookm"in t&&n(3,o=t.bookm)},[a,function(t){"Escape"===t.key?l():"ArrowRight"===t.key||"next"===t.target.id?c("nextModal",a._id):"ArrowLeft"!==t.key&&"prev"!==t.target.id||c("prevModal",a._id)},l,o]}class BookModal extends SvelteComponent{constructor(t){super(),init(this,t,instance$7,create_fragment$7,safe_not_equal,{book:0,bookm:3})}}const{window:window_1$1}=globals;function create_if_block_1$4(t){let e,n;function a(e){t[16].call(null,e)}let o={book:t[5]};void 0!==t[2]&&(o.bookm=t[2]);const r=new BookModal({props:o});return binding_callbacks.push(()=>bind(r,"bookm",a)),r.$on("nextModal",t[7]),r.$on("prevModal",t[8]),{c(){create_component(r.$$.fragment)},m(t,e){mount_component(r,t,e),n=!0},p(t,n){const a={};32&n[0]&&(a.book=t[5]),!e&&4&n[0]&&(e=!0,a.bookm=t[2],add_flush_callback(()=>e=!1)),r.$set(a)},i(t){n||(transition_in(r.$$.fragment,t),n=!0)},o(t){transition_out(r.$$.fragment,t),n=!1},d(t){destroy_component(r,t)}}}function create_else_block$4(t){let e;const n=new LibraryCovers({props:{books:t[3]}});return{c(){create_component(n.$$.fragment)},m(t,a){mount_component(n,t,a),e=!0},p(t,e){const a={};8&e[0]&&(a.books=t[3]),n.$set(a)},i(t){e||(transition_in(n.$$.fragment,t),e=!0)},o(t){transition_out(n.$$.fragment,t),e=!1},d(t){destroy_component(n,t)}}}function create_if_block$5(t){let e;const n=new LibraryTable({props:{books:t[3]}});return{c(){create_component(n.$$.fragment)},m(t,a){mount_component(n,t,a),e=!0},p(t,e){const a={};8&e[0]&&(a.books=t[3]),n.$set(a)},i(t){e||(transition_in(n.$$.fragment,t),e=!0)},o(t){transition_out(n.$$.fragment,t),e=!1},d(t){destroy_component(n,t)}}}function create_fragment$8(t){let e,n,a,o,r,c,l,i,s,u,d;const p=new Tailwindcss({});let M=t[2]&&create_if_block_1$4(t);function h(e){t[17].call(null,e)}let _={mock:t[1]};void 0!==t[0]&&(_.t=t[0]);const g=new MotwHeader({props:_});binding_callbacks.push(()=>bind(g,"t",h));const m=new SearchBar({props:{mock:t[1]}}),f=new NavBar({props:{navbarLinks:t[4]}}),L=[create_if_block$5,create_else_block$4],j=[];function N(t,e){return t[0]?0:1}l=N(t),i=j[l]=L[l](t);const b=new NavBar({props:{navbarLinks:t[4]}});return{c(){create_component(p.$$.fragment),e=space(),M&&M.c(),n=space(),create_component(g.$$.fragment),o=space(),create_component(m.$$.fragment),r=space(),create_component(f.$$.fragment),c=space(),i.c(),s=space(),create_component(b.$$.fragment),d=listen(window_1$1,"hashchange",t[6])},m(t,a){mount_component(p,t,a),insert(t,e,a),M&&M.m(t,a),insert(t,n,a),mount_component(g,t,a),insert(t,o,a),mount_component(m,t,a),insert(t,r,a),mount_component(f,t,a),insert(t,c,a),j[l].m(t,a),insert(t,s,a),mount_component(b,t,a),u=!0},p(t,e){t[2]?M?(M.p(t,e),transition_in(M,1)):(M=create_if_block_1$4(t),M.c(),transition_in(M,1),M.m(n.parentNode,n)):M&&(group_outros(),transition_out(M,1,1,()=>{M=null}),check_outros());const o={};2&e[0]&&(o.mock=t[1]),!a&&1&e[0]&&(a=!0,o.t=t[0],add_flush_callback(()=>a=!1)),g.$set(o);const r={};2&e[0]&&(r.mock=t[1]),m.$set(r);const c={};16&e[0]&&(c.navbarLinks=t[4]),f.$set(c);let u=l;l=N(t),l===u?j[l].p(t,e):(group_outros(),transition_out(j[u],1,1,()=>{j[u]=null}),check_outros(),i=j[l],i||(i=j[l]=L[l](t),i.c()),transition_in(i,1),i.m(s.parentNode,s));const d={};16&e[0]&&(d.navbarLinks=t[4]),b.$set(d)},i(t){u||(transition_in(p.$$.fragment,t),transition_in(M),transition_in(g.$$.fragment,t),transition_in(m.$$.fragment,t),transition_in(f.$$.fragment,t),transition_in(i),transition_in(b.$$.fragment,t),u=!0)},o(t){transition_out(p.$$.fragment,t),transition_out(M),transition_out(g.$$.fragment,t),transition_out(m.$$.fragment,t),transition_out(f.$$.fragment,t),transition_out(i),transition_out(b.$$.fragment,t),u=!1},d(t){destroy_component(p,t),t&&detach(e),M&&M.d(t),t&&detach(n),destroy_component(g,t),t&&detach(o),destroy_component(m,t),t&&detach(r),destroy_component(f,t),t&&detach(c),j[l].d(t),t&&detach(s),destroy_component(b,t),d()}}}function getLoadingBook(){return{title:"Loading...",authors:["Slow Network","Mere Boredom","La-di-dada","et al."],cover_url:"data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",library_url:"",pubdate:"",formats:[],publisher:"Wait until you're older; wait until the upturn;",year:"wait until it stops raining.",abstract:"You are called for interview at ten past ten only to find yourself pulling a ticket from a machine that seems designed not for the efficient parcelling of your time, only to tease, to torment. Number one hundred and forty fucking six. The practical method would be to spend such time profitably: be prepared; take a book with you. You know its going to happen because everyday you have lived, you have learned more about the deferral of events. Wait until you're older; wait until the upturn; wait until it stops raining. Whether it's the fear of failure or sheer, stupid obediance that allays the logical and most human desire to lash out at such moments is a mystery to me, but for now I'll offer no alternative. Let time sharpen your anxiety and mould it into a palpable hatred whose very formation is the precipitate of release. Just wait.",tags:[],librarian:"Amateur"}}function getLoadingBooks(){var t={title:"",authors:[""],library_url:"",cover_url:"data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",librarian:"",_id:""};return[...Array(12)].map((e,n)=>t)}function instance$8($$self,$$props,$$invalidate){let $restapi;component_subscribe($$self,restapi,t=>$$invalidate(10,$restapi=t));let t=!0,mock=!1,bookm=!1,books=[],navbarLinks={searchStatus:"loading..."},book=getLoadingBook(),lochash=[];const unsubscribe=lasthash.subscribe(t=>{lochash=JSON.parse(t)});function setLastHash(t){lochash[1]=t,lasthash.set(JSON.stringify(lochash))}async function fetchBooks(t){if(0===books.length&&$$invalidate(3,books=getLoadingBooks()),$$invalidate(4,navbarLinks={searchStatus:"loading"+".".repeat(Math.floor(4*Math.random()+2))}),mock)var e=mockHttpRequest(CALIBRE_BOOKS1.books,t,48);else{const n=await fetch(t);e=await n.json()}const n=e._meta,a=e._links.self.href.split("/");var o="";o="books"===a[0]?"all books":`${a[1]}: ${decodeURIComponent(a[2])}`.toLowerCase();const r=n.max_results*(n.page-1),c=Math.min(n.page*n.max_results,n.total);e._links.searchStatus=`${r}-${c} of ${n.total} (${o})`,$$invalidate(4,navbarLinks=e._links),$$invalidate(3,books=e._items)}async function fetchBook(t){if(t.endsWith("book/"))return getLoadingBook();if(""==lochash[lochash.length-1]&&$$invalidate(4,navbarLinks={searchStatus:""}),$$invalidate(5,book=getLoadingBook()),mock)var e=mockHttpRequest(CALIBRE_BOOKS1.books,t,48,"books");else{const n=await fetch(t);e=await n.json()}"TRYAGAIN"!==e&&("0101"!==e.pubdate.slice(0,4)&&(e.year=e.pubdate.slice(0,4)),$$invalidate(5,book=e))}function dispatchHash(){var e=location.hash;lochash[0]||e.startsWith("#/book/")||window.scrollTo(0,0),e.endsWith("t=l")&&(e=e.replace("t=l",""),$$invalidate(0,t=!0)),$$invalidate(2,bookm=!1);var n="";if(""==e||"#/?"==e)lochash[0]=!1,n="books";else{if(e.startsWith("#/book/"))return $$invalidate(2,bookm=!bookm),void fetchBook(`${$restapi}${e.slice(2)}`);e.startsWith("#/")&&(lochash[0]=!1,n=e.slice(2))}setLastHash(e),fetchBooks(`${$restapi}${n}`)}function nextModal(t){var e=books.map(t=>t._id).indexOf(t.detail);e>-1&&et._id).indexOf(t.detail);e>0?location.hash="#/book/"+books[e-1]._id:(location.hash=lochash[lochash.length-1],window.scrollTo(0,0))}function bookmodal_bookm_binding(t){bookm=t,$$invalidate(2,bookm)}function motwheader_t_binding(e){t=e,$$invalidate(0,t)}let hashChanged;return document.onreadystatechange=function(){"complete"!==document.readyState||location.hash.endsWith("t=l")||$$invalidate(0,t=!1)},onMount(()=>{CALIBRE_BOOKS1.portable&&($$invalidate(1,mock=!0),[...Array(7).keys()].forEach((function(n){var i=n+2,e=document.createElement("script");e.onload=function(){CALIBRE_BOOKS1.books=[...CALIBRE_BOOKS1.books,...eval("CALIBRE_BOOKS"+i).books],CALIBRE_BOOKS1.books.sort(dynamicSort("-last_modified")),dispatchHash()},e.src=`static/data${i}.js`,document.body.appendChild(e)}))),lasthash.set('["",""]'),dispatchHash()}),$$invalidate(6,hashChanged=()=>dispatchHash()),[t,mock,bookm,books,navbarLinks,book,hashChanged,nextModal,prevModal,lochash,$restapi,unsubscribe,setLastHash,fetchBooks,fetchBook,dispatchHash,bookmodal_bookm_binding,motwheader_t_binding]}class App extends SvelteComponent{constructor(t){super(),init(this,t,instance$8,create_fragment$8,safe_not_equal,{})}}const app=new App({target:document.body,props:{name:"world"}});return app}();
-//# sourceMappingURL=bundle.js.map
diff --git a/static/js/bundle.js.map b/static/js/bundle.js.map
deleted file mode 100644
index adab2c2..0000000
--- a/static/js/bundle.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"bundle.js","sources":["../../../node_modules/svelte/internal/index.mjs","../../../src/Dropdown.svelte","../../../node_modules/svelte/store/index.mjs","../../../src/store.js","../../../src/localCalibre.js","../../../src/svgs.js","../../../src/MotwHeader.svelte","../../../src/SearchBar.svelte","../../../src/NavBar.svelte","../../../src/utils.js","../../../src/BookCard.svelte","../../../src/LibraryCovers.svelte","../../../src/LibraryTable.svelte","../../../src/HtmlSanitizer.js","../../../src/BookModal.svelte","../../../src/App.svelte","../../../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction validate_store(store, name) {\n if (!store || typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, callback) {\n const unsub = store.subscribe(callback);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty) {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return lets;\n }\n return $$scope.dirty;\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group) {\n const value = [];\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.push(group[i].__value);\n }\n return value;\n}\nfunction to_number(value) {\n return value === '' ? undefined : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n for (let j = 0; j < node.attributes.length; j += 1) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name])\n node.removeAttribute(attribute.name);\n }\n return nodes.splice(i, 1)[0]; // TODO strip unwanted attributes\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = '' + data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n if (value != null || input.value) {\n input.value = value;\n }\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\nfunction add_resize_listener(element, fn) {\n if (getComputedStyle(element).position === 'static') {\n element.style.position = 'relative';\n }\n const object = document.createElement('object');\n object.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;');\n object.setAttribute('aria-hidden', 'true');\n object.type = 'text/html';\n object.tabIndex = -1;\n let win;\n object.onload = () => {\n win = object.contentDocument.defaultView;\n win.addEventListener('resize', fn);\n };\n if (/Trident/.test(navigator.userAgent)) {\n element.appendChild(object);\n object.data = 'about:blank';\n }\n else {\n object.data = 'about:blank';\n element.appendChild(object);\n }\n return {\n cancel: () => {\n win && win.removeEventListener && win.removeEventListener('resize', fn);\n element.removeChild(object);\n }\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\nclass HtmlTag {\n constructor(html, anchor = null) {\n this.e = element('div');\n this.a = anchor;\n this.u(html);\n }\n m(target, anchor = null) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(target, this.n[i], anchor);\n }\n this.t = target;\n }\n u(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n p(html) {\n this.d();\n this.u(html);\n this.m(this.t, this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\n\nlet stylesheet;\nlet active = 0;\nlet current_rules = {};\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n if (!current_rules[name]) {\n if (!stylesheet) {\n const style = element('style');\n document.head.appendChild(style);\n stylesheet = style.sheet;\n }\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ``}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n node.style.animation = (node.style.animation || '')\n .split(', ')\n .filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n )\n .join(', ');\n if (name && !--active)\n clear_rules();\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n current_rules = {};\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error(`Function called outside component initialization`);\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nfunction flush() {\n const seen_callbacks = new Set();\n do {\n // first, call beforeUpdate functions\n // and update components\n while (dirty_components.length) {\n const component = dirty_components.shift();\n set_current_component(component);\n update(component.$$);\n }\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n callback();\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n $$.fragment && $$.fragment.p($$.ctx, $$.dirty);\n $$.dirty = [-1];\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n info.blocks[i] = null;\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\n\nconst globals = (typeof window !== 'undefined' ? window : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction measure(blocks) {\n const rects = {};\n let i = blocks.length;\n while (i--)\n rects[blocks[i].key] = blocks[i].node.getBoundingClientRect();\n return rects;\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n const attributes = Object.assign({}, ...args);\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += \" \" + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += \" \" + name;\n }\n else if (value != null) {\n str += \" \" + name + \"=\" + JSON.stringify(String(value)\n .replace(/\"/g, '"')\n .replace(/'/g, '''));\n }\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, options = {}) => {\n on_destroy = [];\n const result = { head: '', css: new Set() };\n const html = $$render(result, props, {}, options);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : ``;\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const prop_values = options.props || {};\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : []),\n // everything else\n callbacks: blank_object(),\n dirty\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, prop_values, (i, ret, value = ret) => {\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if ($$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(children(options.target));\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n };\n}\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set() {\n // overridden by instance, if it has props\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, detail));\n}\nfunction append_dev(target, node) {\n dispatch_dev(\"SvelteDOMInsert\", { target, node });\n append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev(\"SvelteDOMInsert\", { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev(\"SvelteDOMRemove\", { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? [\"capture\"] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev(\"SvelteDOMAddEventListener\", { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev(\"SvelteDOMRemoveEventListener\", { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev(\"SvelteDOMRemoveAttribute\", { node, attribute });\n else\n dispatch_dev(\"SvelteDOMSetAttribute\", { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev(\"SvelteDOMSetProperty\", { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev(\"SvelteDOMSetDataset\", { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.data === data)\n return;\n dispatch_dev(\"SvelteDOMSetData\", { node: text, data });\n text.data = data;\n}\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(`'target' is a required option`);\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn(`Component was already destroyed`); // eslint-disable-line no-console\n };\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error(`Infinite loop detected`);\n }\n };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteElement, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_space, claim_text, clear_loops, component_subscribe, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_function, is_promise, listen, listen_dev, loop, loop_guard, measure, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_keyed_each, validate_component, validate_store, xlink_attr };\n","\n\n\n\n hidelist = true} class=\"dropdown inline-block relative\">\n
\n {defaultItem.toUpperCase()} \n \n \n \n \n \n
\n","import { safe_not_equal, noop, run_all, is_function } from '../internal';\nexport { get_store_value as get } from '../internal';\n\nconst subscriber_queue = [];\n/**\n * Creates a `Readable` store that allows reading by subscription.\n * @param value initial value\n * @param {StartStopNotifier}start start and stop notifications for subscriptions\n */\nfunction readable(value, start) {\n return {\n subscribe: writable(value, start).subscribe,\n };\n}\n/**\n * Create a `Writable` store that allows both updating and reading by subscription.\n * @param {*=}value initial value\n * @param {StartStopNotifier=}start start and stop notifications for subscriptions\n */\nfunction writable(value, start = noop) {\n let stop;\n const subscribers = [];\n function set(new_value) {\n if (safe_not_equal(value, new_value)) {\n value = new_value;\n if (stop) { // store is ready\n const run_queue = !subscriber_queue.length;\n for (let i = 0; i < subscribers.length; i += 1) {\n const s = subscribers[i];\n s[1]();\n subscriber_queue.push(s, value);\n }\n if (run_queue) {\n for (let i = 0; i < subscriber_queue.length; i += 2) {\n subscriber_queue[i][0](subscriber_queue[i + 1]);\n }\n subscriber_queue.length = 0;\n }\n }\n }\n }\n function update(fn) {\n set(fn(value));\n }\n function subscribe(run, invalidate = noop) {\n const subscriber = [run, invalidate];\n subscribers.push(subscriber);\n if (subscribers.length === 1) {\n stop = start(set) || noop;\n }\n run(value);\n return () => {\n const index = subscribers.indexOf(subscriber);\n if (index !== -1) {\n subscribers.splice(index, 1);\n }\n if (subscribers.length === 0) {\n stop();\n stop = null;\n }\n };\n }\n return { set, update, subscribe };\n}\nfunction derived(stores, fn, initial_value) {\n const single = !Array.isArray(stores);\n const stores_array = single\n ? [stores]\n : stores;\n const auto = fn.length < 2;\n return readable(initial_value, (set) => {\n let inited = false;\n const values = [];\n let pending = 0;\n let cleanup = noop;\n const sync = () => {\n if (pending) {\n return;\n }\n cleanup();\n const result = fn(single ? values[0] : values, set);\n if (auto) {\n set(result);\n }\n else {\n cleanup = is_function(result) ? result : noop;\n }\n };\n const unsubscribers = stores_array.map((store, i) => store.subscribe((value) => {\n values[i] = value;\n pending &= ~(1 << i);\n if (inited) {\n sync();\n }\n }, () => {\n pending |= (1 << i);\n }));\n inited = true;\n sync();\n return function stop() {\n run_all(unsubscribers);\n cleanup();\n };\n });\n}\n\nexport { derived, readable, writable };\n","import { writable } from 'svelte/store';\nimport { readable } from 'svelte/store';\n\nexport const lasthash = writable(\"[\\\"\\\",\\\"\\\"]\");\n// export const restapi = readable(\"http://localhost:2018/\");\nexport const restapi = readable(\"https://books.memoryoftheworld.org/\");\n","export function dynamicSort(property) {\n var sortOrder = 1;\n\n if (property[0] === \"-\") {\n sortOrder = -1;\n property = property.substr(1);\n }\n return function(a, b) {\n if (sortOrder == -1) {\n return b[property].localeCompare(a[property]);\n } else {\n return a[property].localeCompare(b[property]);\n }\n };\n}\n\nexport function mockHttpRequest(books, request_url, max_results, title = \"books\") {\n let url = new URL(request_url);\n\n let restList = url.pathname.split(\"/\");\n let restVerb = restList[1];\n let restField = restList[2];\n let restQuery = decodeURIComponent(restList[3]);\n\n if (restVerb == \"librarians\") {\n if (restField == \"on\") {\n let librarians = new Set();\n for (let b of books) {\n librarians.add(b.librarian);\n }\n return {\n \"_items\": [...librarians]\n };\n }\n }\n\n if (restVerb == \"autocomplete\") {\n if (restField == \"authors\") {\n let authors = [];\n for (let b of books) {\n for (let a of b.authors) {\n if (a.toLowerCase().indexOf(restList[3].toLowerCase()) != -1) {\n authors.push(a);\n }\n }\n }\n return {\n \"_items\": authors\n };\n } else\n if (restField == \"tags\") {\n let tags = [];\n for (let b of books) {\n for (let t of b.tags) {\n if (t.toLowerCase().indexOf(restList[3].toLowerCase()) != -1) {\n tags.push(t);\n }\n }\n }\n return {\n \"_items\": tags\n };\n } else\n if (restField == \"titles\") {\n let titles = [];\n for (let b of books) {\n if (b.title.toLowerCase().indexOf(restList[3].toLowerCase()) != -1) {\n titles.push(b.title);\n }\n }\n return {\n \"_items\": titles\n };\n }\n\n }\n\n if (restVerb == \"search\") {\n title = `search in ${restField}`;\n let bz = [];\n for (let b of books) {\n if ([\"authors\", \"languages\", \"tags\"].includes(restField)) {\n for (let f of b[restField]) {\n if (f.toLowerCase().indexOf(restQuery.toLowerCase()) != -1) {\n bz.push(b);\n }\n }\n } else\n if ([\"_id\", \"title\", \"titles\", \"publisher\", \"series\", \"library_uuid\", \"abstract\", \"librarian\"].includes(restField)) {\n if (restField == \"titles\") {\n restField = \"title\";\n }\n if (b[restField].toLowerCase().indexOf(restQuery.toLowerCase()) != -1) {\n bz.push(b);\n }\n }\n }\n books = bz;\n }\n\n if (restVerb == \"book\") {\n for (let b of books) {\n if (b._id == restField) {\n b.library_url = \"\";\n return b;\n }\n }\n if ((CALIBRE_BOOKS1.total - books.length) > 0) {\n return \"TRYAGAIN\";\n }\n }\n\n\n let params = {};\n for (let e of url.searchParams.entries()) {\n params[e[0]] = e[1];\n }\n let p = params.page || 0;\n\n let lastPage = Math.floor(books.length / max_results + 1);\n let page = Math.max(0, Math.min(lastPage, p - 1));\n\n let startCut = page * max_results;\n let endCut = (page + 1) * max_results;\n\n let bookz = [];\n for (let b of books.slice(startCut, endCut)) {\n b[\"library_url\"] = \"\";\n bookz.push(b);\n }\n let r = {\n \"_items\": bookz,\n \"_links\": {\n \"parent\": {\n \"title\": \"Memory of the World Library\",\n \"href\": \"/\"\n },\n \"self\": {\n \"title\": title,\n \"href\": `${title}/${restField}/${restQuery}`\n },\n \"prev\": {\n \"title\": \"previous page\",\n \"href\": `${url.pathname}?page=${page}`\n },\n \"next\": {\n \"title\": \"next page\",\n \"href\": `${url.pathname}?page=${page+2}`\n },\n \"last\": {\n \"title\": \"last page\",\n \"href\": `${url.pathname}?page=${lastPage}`\n },\n\n },\n \"_meta\": {\n \"page\": page + 1,\n \"max_results\": max_results,\n \"total\": books.length,\n \"status\": title\n }\n };\n if (page == 0) {\n delete r._links.prev;\n }\n if (page == lastPage - 1) {\n delete r._links.next;\n }\n return r;\n}\n\nexport const maxResults = 48;\n","export const motw_reverse_svg = \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2Ij48ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLjE0MjkgMCAwIDEuMTQyOSAtMjIuODU3IC05MzAuNDEpIj48cGF0aCBkPSJNMjQzLjg3IDkyMC4wNWEzLjgxIDMuODEgMCAwIDAtLjMyOC0uNzkxYy0uMTM3LS4yNDctLjMtLjQ3My0uNDc3LS42NjNzLS4zNzMtLjM0NC0uNTc3LS40NDhsLTkzLjQzLTQ3LjUxOGMtLjEzNy0uMDctLjI3NS0uMTYtLjQxNi0uMjc0cy0uMjg1LS4yNDgtLjQzMi0uNDA4LS4zLS4zNDYtLjQ1NC0uNTU4bC0uNDgyLS43MjRjLS4yNDctLjQwMi0uNDk4LS44Ny0uNzUtMS4zOTdsLS43NTQtMS43NDctLjczLTIuMDUtLjY3OC0yLjMtLjYwOC0yLjUyNy0uNTItMi42OTYtLjQxNS0yLjgyNi0uMjk1LTIuOTE1LS4xNzctMy43NjUuMDc0LTMuNC4zMDItMi45MzhjLjEzNi0uODk2LjMwNi0xLjcwMi41MDYtMi40MDZsLjMyLS45NzdjLjExMy0uMy4yMy0uNTcuMzU1LS44MTVhNS4zMSA1LjMxIDAgMCAxIC4zODItLjY0OSAzLjE4IDMuMTggMCAwID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A5MS4yODJDLS4wNjIgOTAuMjItLjU5MyA4OC44MDQtLjU5MyA4Ny4zODhWNjguNjIzQTUuMiA1LjIgMCAwIDEgMSA2NC43MjljMS4wNjItMS4wNjIgMi40NzgtMS41OTMgMy44OTUtMS41OTNIMzEuOThsNy45NjYgNy45NjZjMi4zIDIuMTI0IDQuOTU3IDMuMzYzIDcuOTY2IDMuMzYzczUuNjY1LTEuMDYyIDcuOTY2LTMuMzYzbDcuOTY2LTcuOTY2aDI3LjA4NWE1LjIgNS4yIDAgMCAxIDMuODk1IDEuNTkzYzEuMjQgMS4wNjIgMS43NyAyLjQ3OCAxLjc3IDMuODk1em0tMTguOTQtMzMuMjhjLjcwOCAxLjU5My4zNTQgMy4wMS0uODg1IDQuMDcybC0yNi4yIDI2LjJjLS43MDguNzA4LTEuNTkzIDEuMDYyLTIuNjU1IDEuMDYycy0xLjk0Ny0uMzU0LTIuNjU1LTEuMDYybC0yNi4yLTI2LjJjLTEuMjQtMS4wNjItMS40MTYtMi40NzgtLjg4NS00LjA3Mi43MDgtMS41OTMgMS43Ny0yLjMgMy41NC0yLjNIMzYuNzZ2LTI2LjJjMC0xLjA2Mi4zNTQtMS45NDcgMS4wNjItMi42NTVzMS41OTMtMS4wNjIgMi42NTUtMS4wNjJoMTUuMDQ3YzEuMDYyIDAgMS45NDcuMzU0IDIuNjU1IDEuMDYyUzU5LjI0IDUuNzggNTkuMjQgNi44NDJ2MjYuMmgxNS4wNDdjMS40MTYgMCAyLjY1NS44ODUgMy4zNjMgMi4zeiIgZmlsbD0iIzAwMCIvPjwvc3ZnPgo=\"\n","\n\n\n\n
\n
location.hash = \"\"} alt=\"let's share books\" class=\"cursor-pointer pt-1 pl-1 pr-1 h-10 monocle:h-8 phone:h-8\" src=\"{motw_reverse_svg}\" />\n
\n
\n
\n
show {#if t}covers{:else}list{/if}
\n
MEMORY OF THE WORLD \n
\n","\n\n\n\n\n
\n
\n
\n\n
\n {#each filteredCandidates as candidate, i}\n {candidate} \n {/each}\n \n
\n
SEARCH \n
\n
\n","\n\n\n {#if !!(Object.keys(navbarLinks).indexOf(\"prev\")+1) }\n
<< prev     \n {:else}\n
<<prev     \n {/if}\n
{navbarLinks.searchStatus} \n {#if !!(Object.keys(navbarLinks).indexOf(\"next\")+1) }\n
  next >> \n {:else}\n
  next >> \n {/if}\n
\n","function readableBytes(bytes) {\n var i = Math.floor(Math.log(bytes) / Math.log(1024)),\n sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n return (bytes / Math.pow(1024, i)).toFixed(2) * 1 + sizes[i];\n}\n\nexport function getFormats(book, sep=\", \") {\n if (book.formats === undefined || book.formats.length == 0) {\n return [{\"url\": \"\", \"size\":\"\", \"title\":\"\"}]\n }\n\n let f = [];\n for (let frm of book.formats) {\n let url = book.library_url + frm.dir_path + frm.file_name\n let title = frm.format.toUpperCase() + sep;\n f.push({\n url: url,\n title: title,\n size: readableBytes(frm.size)\n });\n }\n f[f.length - 1].title = f[f.length - 1].title.slice(0, -2)\n return f\n}\n\nexport function showLibrarian() {\n this.showLibrarianName = true;\n setTimeout(() => this.showLibrarianName = false, 2000);\n}\n","\n\n\n\n\n
window.location.hash = `#/book/${book._id}`}\" class=\"w-full min-h-full text-white\" src={book.library_url+book.cover_url} alt=\"\" />\n
\n
{book.title} \n
\n {#each book.authors as author, i}\n {#if i+1 < 4 }
{author} {/if}{#if i+1 !== book.authors.length && i+i < 4 }, {:else if i+i === 4 } et al.{/if}{/each}\n
\n
\n
\n {#if tooltip}\n
\n {/if}\n {#if book.formats != undefined && book.formats.length != 0 }\n {#each getFormats(book) as format}\n
\n {format.title} \n {/each}\n {:else}\n
. \n {/if}\n
\n
\n","\n\n\n {#each books as book (book._id)}\n {/each}\n
\n","\n\n\n\n\n \n \n Authors \n Title \n \n \n \n \n \n \n {#each books as book (book._id)}\n \n \n {#if book.authors}\n \n {#each book.authors as author, i}\n {#if i+1 < 4 }
{author} {/if}{#if i+1 !== book.authors.length && i+i < 4 },
{:else if i+1 === 4 } et al.{/if}\n {/each}\n
\n {/if}\n \n location.hash = `#/book/${book._id}`}\" class=\"italic w-11/12 phablet:pl-2 monocle:text-xs phone:text-xs\">{book.title}{getYear(book)} \n \n {#each getFormats(book, \" \") as format}\n {format.title} \n {/each}\n \n \n {/each}\n \n
\n","/**\n * Sanitizer which filters a set of whitelisted tags, attributes and css.\n * For now, the whitelist is small but can be easily extended.\n *\n * @param bool whether to escape or strip undesirable content.\n * @param map of allowed tag-attribute-attribute-parsers.\n * @param array of allowed css elements.\n * @param array of allowed url scheme\n */\nexport function HtmlWhitelistedSanitizer(escape, tags, css, urls) {\n this.escape = escape;\n this.allowedTags = tags;\n this.allowedCss = css;\n\n // Use the browser to parse the input but create a new HTMLDocument.\n // This won't evaluate any potentially dangerous scripts since the element\n // isn't attached to the window's document. It also won't cause img.src to\n // preload images.\n //\n // To be extra cautious, you can dynamically create an iframe, pass the\n // input to the iframe and get back the sanitized string.\n this.doc = document.implementation.createHTMLDocument();\n\n if (urls == null) {\n urls = ['http://', 'https://'];\n }\n\n if (this.allowedTags == null) {\n // Configure small set of default tags\n var unconstrainted = function(x) { return x; };\n var globalAttributes = {\n 'dir': unconstrainted,\n 'lang': unconstrainted,\n 'title': unconstrainted\n };\n var url_sanitizer = HtmlWhitelistedSanitizer.makeUrlSanitizer(urls);\n this.allowedTags = {\n 'a': HtmlWhitelistedSanitizer.mergeMap(globalAttributes, {\n 'download': unconstrainted,\n 'href': url_sanitizer,\n 'hreflang': unconstrainted,\n 'ping': url_sanitizer,\n 'rel': unconstrainted,\n 'target': unconstrainted,\n 'type': unconstrainted\n }),\n // 'img': HtmlWhitelistedSanitizer.mergeMap(globalAttributes, {\n // 'alt': unconstrainted,\n // 'height': unconstrainted,\n // 'src': url_sanitizer,\n // 'width': unconstrainted\n // }),\n 'p': globalAttributes,\n 'div': globalAttributes,\n 'span': globalAttributes,\n 'br': globalAttributes,\n //'b': globalAttributes,\n 'i': globalAttributes,\n 'u': globalAttributes\n };\n }\n if (this.allowedCss == null) {\n // Small set of default css properties\n //this.allowedCss = ['border', 'margin', 'padding'];\n\t this.allowedCss = [];\n }\n}\n\nHtmlWhitelistedSanitizer.makeUrlSanitizer = function(allowed_urls) {\n return function(str) {\n if (!str) { return ''; }\n for (var i in allowed_urls) {\n if (str.startsWith(allowed_urls[i])) {\n return str;\n }\n }\n return '';\n };\n}\n\nHtmlWhitelistedSanitizer.mergeMap = function(/*...*/) {\n var r = {};\n for (var arg in arguments) {\n for (var i in arguments[arg]) {\n r[i] = arguments[arg][i];\n }\n }\n return r;\n}\n\nHtmlWhitelistedSanitizer.prototype.sanitizeString = function(input) {\n var div = this.doc.createElement('div');\n div.innerHTML = input;\n\n // Return the sanitized version of the node.\n return this.sanitizeNode(div).innerHTML;\n}\n\nHtmlWhitelistedSanitizer.prototype.sanitizeNode = function(node) {\n // Note: