diff --git a/packages/mdbook-morsels/search-ui-dist/0b134177364a1f8427a1.module.wasm b/packages/mdbook-morsels/search-ui-dist/0b134177364a1f8427a1.module.wasm new file mode 100644 index 00000000..4a744d38 Binary files /dev/null and b/packages/mdbook-morsels/search-ui-dist/0b134177364a1f8427a1.module.wasm differ diff --git a/packages/mdbook-morsels/search-ui-dist/19fd499eaaa4e7a24082.module.wasm b/packages/mdbook-morsels/search-ui-dist/19fd499eaaa4e7a24082.module.wasm deleted file mode 100644 index c2d10b1a..00000000 Binary files a/packages/mdbook-morsels/search-ui-dist/19fd499eaaa4e7a24082.module.wasm and /dev/null differ diff --git a/packages/mdbook-morsels/search-ui-dist/311f63f6150fb336c4f4.module.wasm b/packages/mdbook-morsels/search-ui-dist/311f63f6150fb336c4f4.module.wasm deleted file mode 100644 index 50da303a..00000000 Binary files a/packages/mdbook-morsels/search-ui-dist/311f63f6150fb336c4f4.module.wasm and /dev/null differ diff --git a/packages/mdbook-morsels/search-ui-dist/770d87836eafac8298d6.module.wasm b/packages/mdbook-morsels/search-ui-dist/770d87836eafac8298d6.module.wasm deleted file mode 100644 index f21b16ef..00000000 Binary files a/packages/mdbook-morsels/search-ui-dist/770d87836eafac8298d6.module.wasm and /dev/null differ diff --git a/packages/mdbook-morsels/search-ui-dist/cc2346e9f54cffbde632.module.wasm b/packages/mdbook-morsels/search-ui-dist/cc2346e9f54cffbde632.module.wasm new file mode 100644 index 00000000..5bb5dc4c Binary files /dev/null and b/packages/mdbook-morsels/search-ui-dist/cc2346e9f54cffbde632.module.wasm differ diff --git a/packages/mdbook-morsels/search-ui-dist/cf6131d890b0d0dc6778.module.wasm b/packages/mdbook-morsels/search-ui-dist/cf6131d890b0d0dc6778.module.wasm new file mode 100644 index 00000000..c212b631 Binary files /dev/null and b/packages/mdbook-morsels/search-ui-dist/cf6131d890b0d0dc6778.module.wasm differ diff --git a/packages/mdbook-morsels/search-ui-dist/search-ui-dark.css b/packages/mdbook-morsels/search-ui-dist/search-ui-dark.css new file mode 100644 index 00000000..112c93b7 --- /dev/null +++ b/packages/mdbook-morsels/search-ui-dist/search-ui-dark.css @@ -0,0 +1 @@ +.morsels-root{--morsels-dropdown-max-width:512px;--morsels-dropdown-max-height:32em;--morsels-font-size:14px;--morsels-border:none;--morsels-item-spacing:13px;--morsels-item-sub-border:none;--morsels-fs-item-spacing:11px;--morsels-fs-desktop-width:650px;--morsels-fs-desktop-height:70vh;box-sizing:border-box;display:inline-block;font-size:var(--morsels-font-size);position:relative;width:100%}@media screen and (max-width:1025px){.morsels-root{--morsels-dropdown-max-width:100vw;--morsels-dropdown-max-height:75vh}}.morsels-root *{box-sizing:border-box}.morsels-fs-backdrop{--morsels-fs-backdrop-bg:rgba(0,0,0,.15);background:var(--morsels-fs-backdrop-bg);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:1000}.morsels-fs-root{background:var(--morsels-bg);height:100%;overflow:hidden;position:absolute;width:100%;z-index:1000}.morsels-fs-input-button-wrapper{align-items:center;background:var(--morsels-fs-header-bg);border-bottom:var(--morsels-fs-header-border-bottom);display:flex;font-size:1.2em;justify-content:space-between;padding:10px;z-index:1000}.morsels-fs-input{background:var(--morsels-fs-input-bg);border:var(--morsels-fs-input-border);border-radius:30px;color:var(--morsels-fs-input-fg);flex:1 0 0;font-size:inherit;outline:none;padding:.2em .8em;width:0}.morsels-fs-input:focus{border:var(--morsels-fs-input-focus-border);box-shadow:var(--morsels-fs-input-focus-box-shadow)}.morsels-input-close-fs{background:var(--morsels-fs-header-close-bg);border:none;border-radius:1em;color:var(--morsels-fs-header-close-fg);cursor:pointer;font-size:inherit;font-weight:500;margin-left:7px;padding:.25em .8em;position:relative;transition:background .2s linear,color .2s linear}@media (hover:hover){.morsels-input-close-fs:hover{background:var(--morsels-fs-header-close-hover-bg);color:var(--morsels-fs-header-close-hover-fg)}}.morsels-input-close-fs:active{background:var(--morsels-fs-header-close-active-bg);color:var(--morsels-fs-header-close-active-fg)}.morsels-fs-blank{color:var(--morsels-fine-print-fg);font-size:.9em;padding:1em;text-align:center}@media screen and (min-width:1025px){.morsels-fs-root{border:var(--morsels-fs-border);border-radius:10px;box-shadow:var(--morsels-fs-box-shadow);height:var(--morsels-fs-desktop-height);left:calc(50% - var(--morsels-fs-desktop-width)/2);top:15%;width:var(--morsels-fs-desktop-width)}}.morsels-input-dropdown-separator{border-bottom:9px solid var(--morsels-bg);border-left:9px solid transparent;border-right:9px solid transparent;height:0;position:relative;width:0}.morsels-inner-root{left:100vw;position:absolute;top:0}.morsels-list{background-color:var(--morsels-bg);border:var(--morsels-border);border-radius:5px;box-shadow:var(--morsels-box-shadow);font-size:inherit;list-style:none;margin:0;max-width:var(--morsels-dropdown-max-width);overflow-y:auto;padding:0;scrollbar-color:var(--morsels-scrollbar-thumb-bg) var(--morsels-scrollbar-bg);scrollbar-width:thin;width:100vw;z-index:1000}.morsels-fs-root .morsels-list{background-color:transparent;border:none;box-shadow:none;max-height:calc(100% - 20px - 2.7em);max-width:none;padding:0 .5em .5em;position:static;width:auto}@media screen and (max-width:1025px){.morsels-fs-root .morsels-list{padding-bottom:100px}}.morsels-fs-root::-webkit-scrollbar-track,.morsels-list::-webkit-scrollbar-track{background:var(--morsels-scrollbar-bg);border-radius:5px}.morsels-list::-webkit-scrollbar{background-color:transparent;width:6px}.morsels-list::-webkit-scrollbar-thumb{background:var(--morsels-scrollbar-thumb-bg);border-radius:5px}.morsels-error{color:var(--morsels-error-fg);padding:1em;text-align:center}.morsels-no-results{color:var(--morsels-fine-print-fg);font-size:.9em;padding:1em;text-align:center}.morsels-list-item{border:var(--morsels-item-border);border-radius:var(--morsels-item-border-radius);box-shadow:var(--morsels-item-box-shadow);font-size:inherit;margin:var(--morsels-item-spacing) 11px;overflow:hidden}.morsels-fs-root .morsels-list-item{margin:var(--morsels-fs-item-spacing) 5px 0 5px}.morsels-heading-body,.morsels-link{font-size:inherit;text-decoration:none!important}.morsels-title{background:var(--morsels-title-bg);color:var(--morsels-title-fg);font-size:1.02em;font-weight:600;line-height:1.4em;padding:3px 7px;word-break:break-word}@media (hover:hover){.morsels-list-item:hover .morsels-title{background:var(--morsels-title-hover-bg);color:var(--morsels-title-hover-fg);transition:background .1s ease-in-out,color .1s ease-in-out}}.morsels-title:active{transition:background .2s ease-in,color .2s ease-in}.morsels-list-item.focus .morsels-title,.morsels-title:active{background:var(--morsels-title-hover-bg);color:var(--morsels-title-hover-fg)}.morsels-heading-body{border-top:var(--morsels-item-sub-border);display:flex;text-decoration:none}.morsels-heading{background:var(--morsels-heading-bg);color:var(--morsels-heading-fg);display:inline-block;font-size:.96em;line-height:1.3em;padding:3px 3px 4px 7px;vertical-align:top;width:25%;word-break:break-word}@media (hover:hover){.morsels-heading-body:hover .morsels-heading{background:var(--morsels-heading-hover-bg);color:var(--morsels-heading-hover-fg);transition:background .1s ease-in-out,color .1s ease-in-out}}.morsels-heading-body:active .morsels-heading{transition:background .2s ease-in,color .2s ease-in}.morsels-heading-body:active .morsels-heading,.morsels-list-item.focus .morsels-heading-body .morsels-heading{background:var(--morsels-heading-hover-bg);color:var(--morsels-heading-hover-fg)}.morsels-bodies{flex:1 0 70%}.morsels-body{background:var(--morsels-body-bg);color:var(--morsels-body-fg);font-size:.93em;grid-column-start:2;height:100%;line-height:1.2em;padding:4px 5px 4px 7px;word-break:break-word}@media (hover:hover){.morsels-body:hover,.morsels-heading-body:hover .morsels-body{background-color:var(--morsels-body-hover-bg);color:var(--morsels-body-hover-fg);transition:background .1s ease-in-out,color .1s ease-in-out}}.morsels-body:active,.morsels-heading-body:active .morsels-body{transition:background .2s ease-in,color .2s ease-in}.morsels-body:active,.morsels-heading-body:active .morsels-body,.morsels-list-item.focus .morsels-body{background-color:var(--morsels-body-hover-bg);color:var(--morsels-body-hover-fg)}.morsels-highlight{background-color:var(--morsels-highlight-bg);color:var(--morsels-highlight);font-weight:700}.morsels-ellipsis{letter-spacing:.2mm;opacity:.75}.morsels-initialising-text{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:morsels-initialising-text;animation-timing-function:ease-in-out;padding-top:20px;text-align:center}@keyframes morsels-initialising-text{50%{transform:translateY(-3px)}}.morsels-loading-indicator{display:flex;justify-content:center;margin:10px 0;width:100%}.morsels-loading-indicator:after{animation:morsels-loading-indicator 1.2s linear infinite;border:6px solid;border-color:var(--morsels-loading-bg) transparent var(--morsels-loading-bg) transparent;border-radius:50%;content:" ";display:block;height:40px;margin:4px;width:40px}@keyframes morsels-loading-indicator{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.morsels-loading-indicator-subsequent{height:0;margin:0;overflow:visible;padding-left:calc(100% - 40px);position:sticky;top:10px}.morsels-loading-indicator-subsequent:after{animation:morsels-loading-indicator 1.2s linear infinite,morsels-loading-indicator-subsequent 1s linear 1;border-color:var(--morsels-loading-secondary-bg) transparent var(--morsels-loading-secondary-bg) transparent;border-width:4px;height:25px;width:25px}@keyframes morsels-loading-indicator-subsequent{0%{opacity:0}15%{opacity:0}to{opacity:.8}}.morsels-root{--morsels-box-shadow:0 0 3px 0 #323232;--morsels-bg:#212121;--morsels-item-border:none;--morsels-item-border-radius:4px;--morsels-item-box-shadow:0 1px 4px -1px #323232;--morsels-title-fg:#e4f1f0;--morsels-title-bg:#363839;--morsels-title-hover-fg:#eef6f6;--morsels-title-hover-bg:#525354;--morsels-heading-fg:#e4f1f0;--morsels-heading-bg:#2b2d2e;--morsels-heading-hover-fg:#eef6f6;--morsels-heading-hover-bg:#525354;--morsels-body-fg:#e4f1f0;--morsels-body-bg:#27292a;--morsels-body-hover-fg:#eef6f6;--morsels-body-hover-bg:#363839;--morsels-highlight:#f6b24b;--morsels-highlight-bg:none;--morsels-error-fg:#e4f1f0;--morsels-fine-print-fg:rgba(228,241,240,.7);--morsels-loading-bg:rgba(99,186,255,.7);--morsels-loading-secondary-bg:#63baff;--morsels-scrollbar-bg:#212121;--morsels-scrollbar-thumb-bg:#363839;--morsels-fs-border:3px solid var(--morsels-fs-header-bg);--morsels-fs-box-shadow:none;--morsels-fs-header-bg:#363839;--morsels-fs-header-border-bottom:none;--morsels-fs-input-fg:#e4f1f0;--morsels-fs-input-bg:#212121;--morsels-fs-input-border:2px solid #212121;--morsels-fs-input-focus-border:2px solid rgba(99,186,255,.7);--morsels-fs-input-focus-box-shadow:0 0 4px #63baff;--morsels-fs-header-close-bg:#363839;--morsels-fs-header-close-fg:#e4f1f0;--morsels-fs-header-close-hover-bg:#525354;--morsels-fs-header-close-hover-fg:#f1f8f7;--morsels-fs-header-close-active-bg:#676969;--morsels-fs-header-close-active-fg:#fff} \ No newline at end of file diff --git a/packages/mdbook-morsels/search-ui-dist/search-ui-light.css b/packages/mdbook-morsels/search-ui-dist/search-ui-light.css new file mode 100644 index 00000000..2d1f39d3 --- /dev/null +++ b/packages/mdbook-morsels/search-ui-dist/search-ui-light.css @@ -0,0 +1 @@ +.morsels-root{--morsels-dropdown-max-width:512px;--morsels-dropdown-max-height:32em;--morsels-font-size:14px;--morsels-border:none;--morsels-item-spacing:13px;--morsels-item-sub-border:none;--morsels-fs-item-spacing:11px;--morsels-fs-desktop-width:650px;--morsels-fs-desktop-height:70vh;box-sizing:border-box;display:inline-block;font-size:var(--morsels-font-size);position:relative;width:100%}@media screen and (max-width:1025px){.morsels-root{--morsels-dropdown-max-width:100vw;--morsels-dropdown-max-height:75vh}}.morsels-root *{box-sizing:border-box}.morsels-fs-backdrop{--morsels-fs-backdrop-bg:rgba(0,0,0,.15);background:var(--morsels-fs-backdrop-bg);height:100vh;left:0;position:fixed;top:0;width:100vw;z-index:1000}.morsels-fs-root{background:var(--morsels-bg);height:100%;overflow:hidden;position:absolute;width:100%;z-index:1000}.morsels-fs-input-button-wrapper{align-items:center;background:var(--morsels-fs-header-bg);border-bottom:var(--morsels-fs-header-border-bottom);display:flex;font-size:1.2em;justify-content:space-between;padding:10px;z-index:1000}.morsels-fs-input{background:var(--morsels-fs-input-bg);border:var(--morsels-fs-input-border);border-radius:30px;color:var(--morsels-fs-input-fg);flex:1 0 0;font-size:inherit;outline:none;padding:.2em .8em;width:0}.morsels-fs-input:focus{border:var(--morsels-fs-input-focus-border);box-shadow:var(--morsels-fs-input-focus-box-shadow)}.morsels-input-close-fs{background:var(--morsels-fs-header-close-bg);border:none;border-radius:1em;color:var(--morsels-fs-header-close-fg);cursor:pointer;font-size:inherit;font-weight:500;margin-left:7px;padding:.25em .8em;position:relative;transition:background .2s linear,color .2s linear}@media (hover:hover){.morsels-input-close-fs:hover{background:var(--morsels-fs-header-close-hover-bg);color:var(--morsels-fs-header-close-hover-fg)}}.morsels-input-close-fs:active{background:var(--morsels-fs-header-close-active-bg);color:var(--morsels-fs-header-close-active-fg)}.morsels-fs-blank{color:var(--morsels-fine-print-fg);font-size:.9em;padding:1em;text-align:center}@media screen and (min-width:1025px){.morsels-fs-root{border:var(--morsels-fs-border);border-radius:10px;box-shadow:var(--morsels-fs-box-shadow);height:var(--morsels-fs-desktop-height);left:calc(50% - var(--morsels-fs-desktop-width)/2);top:15%;width:var(--morsels-fs-desktop-width)}}.morsels-input-dropdown-separator{border-bottom:9px solid var(--morsels-bg);border-left:9px solid transparent;border-right:9px solid transparent;height:0;position:relative;width:0}.morsels-inner-root{left:100vw;position:absolute;top:0}.morsels-list{background-color:var(--morsels-bg);border:var(--morsels-border);border-radius:5px;box-shadow:var(--morsels-box-shadow);font-size:inherit;list-style:none;margin:0;max-width:var(--morsels-dropdown-max-width);overflow-y:auto;padding:0;scrollbar-color:var(--morsels-scrollbar-thumb-bg) var(--morsels-scrollbar-bg);scrollbar-width:thin;width:100vw;z-index:1000}.morsels-fs-root .morsels-list{background-color:transparent;border:none;box-shadow:none;max-height:calc(100% - 20px - 2.7em);max-width:none;padding:0 .5em .5em;position:static;width:auto}@media screen and (max-width:1025px){.morsels-fs-root .morsels-list{padding-bottom:100px}}.morsels-fs-root::-webkit-scrollbar-track,.morsels-list::-webkit-scrollbar-track{background:var(--morsels-scrollbar-bg);border-radius:5px}.morsels-list::-webkit-scrollbar{background-color:transparent;width:6px}.morsels-list::-webkit-scrollbar-thumb{background:var(--morsels-scrollbar-thumb-bg);border-radius:5px}.morsels-error{color:var(--morsels-error-fg);padding:1em;text-align:center}.morsels-no-results{color:var(--morsels-fine-print-fg);font-size:.9em;padding:1em;text-align:center}.morsels-list-item{border:var(--morsels-item-border);border-radius:var(--morsels-item-border-radius);box-shadow:var(--morsels-item-box-shadow);font-size:inherit;margin:var(--morsels-item-spacing) 11px;overflow:hidden}.morsels-fs-root .morsels-list-item{margin:var(--morsels-fs-item-spacing) 5px 0 5px}.morsels-heading-body,.morsels-link{font-size:inherit;text-decoration:none!important}.morsels-title{background:var(--morsels-title-bg);color:var(--morsels-title-fg);font-size:1.02em;font-weight:600;line-height:1.4em;padding:3px 7px;word-break:break-word}@media (hover:hover){.morsels-list-item:hover .morsels-title{background:var(--morsels-title-hover-bg);color:var(--morsels-title-hover-fg);transition:background .1s ease-in-out,color .1s ease-in-out}}.morsels-title:active{transition:background .2s ease-in,color .2s ease-in}.morsels-list-item.focus .morsels-title,.morsels-title:active{background:var(--morsels-title-hover-bg);color:var(--morsels-title-hover-fg)}.morsels-heading-body{border-top:var(--morsels-item-sub-border);display:flex;text-decoration:none}.morsels-heading{background:var(--morsels-heading-bg);color:var(--morsels-heading-fg);display:inline-block;font-size:.96em;line-height:1.3em;padding:3px 3px 4px 7px;vertical-align:top;width:25%;word-break:break-word}@media (hover:hover){.morsels-heading-body:hover .morsels-heading{background:var(--morsels-heading-hover-bg);color:var(--morsels-heading-hover-fg);transition:background .1s ease-in-out,color .1s ease-in-out}}.morsels-heading-body:active .morsels-heading{transition:background .2s ease-in,color .2s ease-in}.morsels-heading-body:active .morsels-heading,.morsels-list-item.focus .morsels-heading-body .morsels-heading{background:var(--morsels-heading-hover-bg);color:var(--morsels-heading-hover-fg)}.morsels-bodies{flex:1 0 70%}.morsels-body{background:var(--morsels-body-bg);color:var(--morsels-body-fg);font-size:.93em;grid-column-start:2;height:100%;line-height:1.2em;padding:4px 5px 4px 7px;word-break:break-word}@media (hover:hover){.morsels-body:hover,.morsels-heading-body:hover .morsels-body{background-color:var(--morsels-body-hover-bg);color:var(--morsels-body-hover-fg);transition:background .1s ease-in-out,color .1s ease-in-out}}.morsels-body:active,.morsels-heading-body:active .morsels-body{transition:background .2s ease-in,color .2s ease-in}.morsels-body:active,.morsels-heading-body:active .morsels-body,.morsels-list-item.focus .morsels-body{background-color:var(--morsels-body-hover-bg);color:var(--morsels-body-hover-fg)}.morsels-highlight{background-color:var(--morsels-highlight-bg);color:var(--morsels-highlight);font-weight:700}.morsels-ellipsis{letter-spacing:.2mm;opacity:.75}.morsels-initialising-text{animation-duration:1.5s;animation-iteration-count:infinite;animation-name:morsels-initialising-text;animation-timing-function:ease-in-out;padding-top:20px;text-align:center}@keyframes morsels-initialising-text{50%{transform:translateY(-3px)}}.morsels-loading-indicator{display:flex;justify-content:center;margin:10px 0;width:100%}.morsels-loading-indicator:after{animation:morsels-loading-indicator 1.2s linear infinite;border:6px solid;border-color:var(--morsels-loading-bg) transparent var(--morsels-loading-bg) transparent;border-radius:50%;content:" ";display:block;height:40px;margin:4px;width:40px}@keyframes morsels-loading-indicator{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.morsels-loading-indicator-subsequent{height:0;margin:0;overflow:visible;padding-left:calc(100% - 40px);position:sticky;top:10px}.morsels-loading-indicator-subsequent:after{animation:morsels-loading-indicator 1.2s linear infinite,morsels-loading-indicator-subsequent 1s linear 1;border-color:var(--morsels-loading-secondary-bg) transparent var(--morsels-loading-secondary-bg) transparent;border-width:4px;height:25px;width:25px}@keyframes morsels-loading-indicator-subsequent{0%{opacity:0}15%{opacity:0}to{opacity:.8}}.morsels-root{--morsels-box-shadow:0 0 5px #dcdcdc;--morsels-bg:#fff;--morsels-item-border:none;--morsels-item-border-radius:6px;--morsels-item-box-shadow:0 1px 3px #e6e6e6,-2px 1px 3px #efefef,2px 1px 3px #efefef;--morsels-title-fg:#141414;--morsels-title-bg:#f8f7f7;--morsels-title-hover-fg:#000;--morsels-title-hover-bg:#bce0fe;--morsels-heading-fg:#000;--morsels-heading-bg:#fdfdfd;--morsels-heading-hover-fg:#000;--morsels-heading-hover-bg:#bce0fe;--morsels-body-fg:#000;--morsels-body-bg:#fdfdfd;--morsels-body-hover-fg:#000;--morsels-body-hover-bg:#bce0fe;--morsels-highlight:#1e94f4;--morsels-highlight-bg:none;--morsels-error-fg:#000;--morsels-fine-print-fg:rgba(0,0,0,.6);--morsels-loading-bg:rgba(99,186,255,.4);--morsels-loading-secondary-bg:rgba(99,186,255,.7);--morsels-scrollbar-bg:#fdfdfd;--morsels-scrollbar-thumb-bg:#f6f5f5;--morsels-fs-border:3px solid var(--morsels-fs-header-bg);--morsels-fs-box-shadow:0 1px 5px hsla(0,0%,50%,.3);--morsels-fs-header-bg:#f8f8f8;--morsels-fs-header-border-bottom:1px solid #ebebeb;--morsels-fs-input-fg:#000;--morsels-fs-input-bg:#fff;--morsels-fs-input-border:2px solid #f0f0f0;--morsels-fs-input-focus-border:2px solid rgba(99,186,255,.4);--morsels-fs-input-focus-box-shadow:0 0 4px rgba(99,186,255,.7);--morsels-fs-header-close-bg:#f8f8f8;--morsels-fs-header-close-fg:#505050;--morsels-fs-header-close-hover-bg:rgba(80,80,80,.7);--morsels-fs-header-close-hover-fg:#fff;--morsels-fs-header-close-active-bg:rgba(80,80,80,.95);--morsels-fs-header-close-active-fg:#fff} \ No newline at end of file diff --git a/packages/mdbook-morsels/search-ui-dist/search-ui.bundle.js b/packages/mdbook-morsels/search-ui-dist/search-ui.bundle.js index 4a45b272..205171fd 100644 --- a/packages/mdbook-morsels/search-ui-dist/search-ui.bundle.js +++ b/packages/mdbook-morsels/search-ui-dist/search-ui.bundle.js @@ -1 +1 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.initMorsels=t():e.initMorsels=t()}(self,(function(){return(()=>{"use strict";var e={m:{},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},u:e=>"search.worker.bundle.js"};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var t;e.g.importScripts&&(t=e.g.location+"");var n=e.g.document;if(!t&&n&&(n.currentScript&&(t=n.currentScript.src),!t)){var o=n.getElementsByTagName("script");o.length&&(t=o[o.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=t})(),e.b=document.baseURI||self.location.href;var t={};function n(e){return e.split("-")[0]}function o(e){return e.split("-")[1]}function r(e){return["top","bottom"].includes(n(e))?"x":"y"}function s(e){return"y"===e?"height":"width"}function i(e){let{reference:t,floating:i,placement:l}=e;const c=t.x+t.width/2-i.width/2,a=t.y+t.height/2-i.height/2;let d;switch(n(l)){case"top":d={x:c,y:t.y-i.height};break;case"bottom":d={x:c,y:t.y+t.height};break;case"right":d={x:t.x+t.width,y:a};break;case"left":d={x:t.x-i.width,y:a};break;default:d={x:t.x,y:t.y}}const u=r(l),f=s(u);switch(o(l)){case"start":d[u]=d[u]-(t[f]/2-i[f]/2);break;case"end":d[u]=d[u]+(t[f]/2-i[f]/2)}return d}e.d(t,{default:()=>we});function l(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function c(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function a(e,t){void 0===t&&(t={});const{x:n,y:o,platform:r,rects:s,elements:i,strategy:a}=e,{boundary:d="clippingParents",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=t,m=l(p),g=i[h?"floating"===f?"reference":"floating":f],y=await r.getClippingClientRect({element:await r.isElement(g)?g:g.contextElement||await r.getDocumentElement({element:i.floating}),boundary:d,rootBoundary:u}),w=c(await r.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...s.floating,x:n,y:o}:s.reference,offsetParent:await r.getOffsetParent({element:i.floating}),strategy:a}));return{top:y.top-w.top+m.top,bottom:w.bottom-y.bottom+m.bottom,left:y.left-w.left+m.left,right:w.right-y.right+m.right}}const d={left:"right",right:"left",bottom:"top",top:"bottom"};function u(e){return e.replace(/left|right|bottom|top/g,(e=>d[e]))}function f(e,t){const n="start"===o(e),i=r(e),l=s(i);let c="x"===i?n?"right":"left":n?"bottom":"top";return t.reference[l]>t.floating[l]&&(c=u(c)),{main:c,cross:u(c)}}const h={start:"end",end:"start"};function p(e){return e.replace(/start|end/g,(e=>h[e]))}const m=["top","right","bottom","left"];m.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);const g=function(e){return void 0===e&&(e={}),{name:"flip",async fn(t){var o,r;const{placement:s,middlewareData:i,rects:l,initialPlacement:c}=t;if(null!=(o=i.flip)&&o.skip)return{};const{mainAxis:d=!0,crossAxis:h=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",flipAlignment:y=!0,...w}=e,b=n(s),v=m||(b===c||!y?[u(c)]:function(e){const t=u(e);return[p(e),t,p(t)]}(c)),x=[c,...v],R=await a(t,w),k=[];let O=(null==(r=i.flip)?void 0:r.overflows)||[];if(d&&k.push(R[b]),h){const{main:e,cross:t}=f(s,l);k.push(R[e],R[t])}if(O=[...O,{placement:s,overflows:k}],!k.every((e=>e<=0))){var T,C;const e=(null!=(T=null==(C=i.flip)?void 0:C.index)?T:0)+1,t=x[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n="bottom";switch(g){case"bestFit":{var E;const e=null==(E=O.slice().sort(((e,t)=>e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)-t.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)))[0])?void 0:E.placement;e&&(n=e);break}case"initialPlacement":n=c}return{data:{skip:!0},reset:{placement:n}}}return{}}}};const y=function(e){return void 0===e&&(e=0),{name:"offset",fn(t){const{x:o,y:s,placement:i,rects:l}=t,c=function(e){let{placement:t,rects:o,value:s}=e;const i=n(t),l=["left","top"].includes(i)?-1:1,c="function"==typeof s?s({...o,placement:t}):s,{mainAxis:a,crossAxis:d}="number"==typeof c?{mainAxis:c,crossAxis:0}:{mainAxis:0,crossAxis:0,...c};return"x"===r(i)?{x:d,y:a*l}:{x:a*l,y:d}}({placement:i,rects:l,value:e});return{x:o+c.x,y:s+c.y,data:c}}}};const w=function(e){return void 0===e&&(e={}),{name:"size",async fn(t){var r;const{placement:s,rects:i,middlewareData:l}=t,{apply:c,...d}=e,u=await a(t,d),f=n(s),h="end"===o(s);let p,m;"top"===f||"bottom"===f?(p=f,m=h?"left":"right"):(m=f,p=h?"top":"bottom");const g={height:i.floating.height-u[p],width:i.floating.width-u[m]};return null!=(r=l.size)&&r.skip?{}:(null==c||c({...g,...i}),{data:{skip:!0},reset:!0})}}};function b(e){return"[object Window]"===(null==e?void 0:e.toString())}function v(e){if(null==e)return window;if(!b(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function x(e){return v(e).getComputedStyle(e)}function R(e){return b(e)?"":e?(e.nodeName||"").toLowerCase():""}function k(e){return e instanceof v(e).HTMLElement}function O(e){return e instanceof v(e).Element}function T(e){return e instanceof v(e).ShadowRoot||e instanceof ShadowRoot}function C(e){const{overflow:t,overflowX:n,overflowY:o}=x(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function E(e){return["table","td","th"].includes(R(e))}function P(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),n=x(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function S(e,t){void 0===t&&(t=!1);const n=e.getBoundingClientRect();let o=1,r=1;return t&&k(e)&&(o=e.offsetWidth>0&&Math.round(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&Math.round(n.height)/e.offsetHeight||1),{width:n.width/o,height:n.height/r,top:n.top/r,right:n.right/o,bottom:n.bottom/r,left:n.left/o,x:n.left/o,y:n.top/r}}function A(e){return(t=e,(t instanceof v(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function D(e){return b(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function M(e){return S(A(e)).left+D(e).scrollLeft}function L(e,t,n){const o=k(t),r=A(t),s=S(e,o&&function(e){const t=S(e);return Math.round(t.width)!==e.offsetWidth||Math.round(t.height)!==e.offsetHeight}(t));let i={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==R(t)||C(r))&&(i=D(t)),k(t)){const e=S(t,!0);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&(l.x=M(r));return{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function Q(e){return"html"===R(e)?e:e.assignedSlot||e.parentNode||(T(e)?e.host:null)||A(e)}function _(e){return k(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function I(e){const t=v(e);let n=_(e);for(;n&&E(n)&&"static"===getComputedStyle(n).position;)n=_(n);return n&&("html"===R(n)||"body"===R(n)&&"static"===getComputedStyle(n).position&&!P(n))?t:n||function(e){let t=Q(e);for(;k(t)&&!["html","body"].includes(R(t));){if(P(t))return t;t=t.parentNode}return null}(e)||t}function F(e){return{width:e.offsetWidth,height:e.offsetHeight}}function N(e){return["html","body","#document"].includes(R(e))?e.ownerDocument.body:k(e)&&C(e)?e:N(Q(e))}function W(e,t){var n;void 0===t&&(t=[]);const o=N(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),s=v(o),i=r?[s].concat(s.visualViewport||[],C(o)?o:[]):o,l=t.concat(i);return r?l:l.concat(W(Q(i)))}function j(e,t){return"viewport"===t?c(function(e){const t=v(e),n=A(e),o=t.visualViewport;let r=n.clientWidth,s=n.clientHeight,i=0,l=0;return o&&(r=o.width,s=o.height,Math.abs(t.innerWidth/o.scale-o.width)<.001&&(i=o.offsetLeft,l=o.offsetTop)),{width:r,height:s,x:i,y:l}}(e)):O(t)?function(e){const t=S(e),n=t.top+e.clientTop,o=t.left+e.clientLeft;return{top:n,left:o,x:o,y:n,right:o+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t):c(function(e){var t;const n=A(e),o=D(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=Math.max(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let l=-o.scrollLeft+M(e);const c=-o.scrollTop;return"rtl"===x(r||n).direction&&(l+=Math.max(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:i,x:l,y:c}}(A(e)))}function $(e){const t=W(Q(e)),n=["absolute","fixed"].includes(x(e).position),o=n&&k(e)?I(e):e;return O(o)?t.filter((e=>O(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&T(n)){let n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}(e,o)&&"body"!==R(e)&&(!n||"static"!==x(e).position))):[]}const B={getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:L(t,I(n),o),floating:{...F(n),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=k(n),s=A(n);if(n===s)return t;let i={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==R(n)||C(s))&&(i=D(n)),k(n))){const e=S(n,!0);l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{...t,x:t.x-i.scrollLeft+l.x,y:t.y-i.scrollTop+l.y}}(e),getOffsetParent:e=>{let{element:t}=e;return I(t)},isElement:e=>O(e),getDocumentElement:e=>{let{element:t}=e;return A(t)},getClippingClientRect:e=>function(e){let{element:t,boundary:n,rootBoundary:o}=e;const r=[..."clippingParents"===n?$(t):[].concat(n),o],s=r[0],i=r.reduce(((e,n)=>{const o=j(t,n);return e.top=Math.max(o.top,e.top),e.right=Math.min(o.right,e.right),e.bottom=Math.min(o.bottom,e.bottom),e.left=Math.max(o.left,e.left),e}),j(t,s));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}(e),getDimensions:e=>{let{element:t}=e;return F(t)}},q=(e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:s=[],platform:l}=n;let c=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:a,y:d}=i({...c,placement:o}),u=o,f={};for(let n=0;nt.name===e));if(!t)return"";const n=this.storage.find((e=>e[0]===t.id));return n?n[1]:""}getStorageWithFieldNames(){return this.storage.map((e=>{const t=e.map((e=>e));return t[0]=this.fieldInfos[t[0]].name,t}))}};class z{constructor(){this.linkToJsons=Object.create(null)}fetch(e){return this.linkToJsons[e]||(this.linkToJsons[e]=fetch(e).then((e=>e.json()))),this.linkToJsons[e]}}var V=function(e,t,n,o){return new(n||(n=Promise))((function(r,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function l(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}c((o=o.apply(e,t||[])).next())}))};const X=class{constructor(t){this.options=t,this.workerQueryPromises=Object.create(null),this.nextId=0,this.worker=new Worker(new URL(e.p+e.u(658),e.b));const n=new Promise((e=>{this.worker.onmessage=t=>{if(t.data.isSetupDone)e();else if(t.data.query){const{query:e,queryId:n,nextResults:o,searchedTerms:r,queryParts:s}=t.data;this.workerQueryPromises[e][n].resolve({query:e,nextResults:o,searchedTerms:r,queryParts:s})}},this.worker.onmessageerror=e=>{console.log(e)}}));this.setupPromise=this.retrieveConfig().then((()=>{t.useQueryTermProximity=t.useQueryTermProximity&&this.morselsConfig.indexingConfig.withPositions,this.worker.postMessage(this.morselsConfig)})).then((()=>this.cacheFieldStores())).then((()=>n))}cacheFieldStores(){return V(this,void 0,void 0,(function*(){if(!this.options.cacheAllFieldStores)return;this.persistentJsonCache=new z;const e=[],t=Math.ceil(this.morselsConfig.lastDocId/this.morselsConfig.fieldStoreBlockSize),{numStoresPerDir:n,indexingConfig:o}=this.morselsConfig,{numDocsPerBlock:r}=o;for(let o=0;oe.json()))]),e.length>=10){const t=e.shift();this.persistentJsonCache.linkToJsons[t[0]]=yield t[1]}}}const s=yield Promise.all(e.map((e=>e[1])));e.forEach(((e,t)=>{this.persistentJsonCache.linkToJsons[e[0]]=s[t]}))}))}retrieveConfig(){return V(this,void 0,void 0,(function*(){const e=yield(yield fetch(`${this.options.url}morsels_config.json`,{method:"GET",headers:{"Content-Type":"application/json"}})).json();if("0.0.11"!==e.ver)throw new Error("Morsels search version not equal to indexer version!");"cacheAllFieldStores"in this.options||(this.options.cacheAllFieldStores=!!e.cache_all_field_stores);const{field_infos:t}=e,n=[];Object.entries(t.field_infos_map).forEach((([e,t])=>{t.name=e,n.push(t)})),n.sort(((e,t)=>e.id-t.id)),this.morselsConfig={lastDocId:e.last_doc_id,indexingConfig:{loaderConfigs:e.indexing_config.loader_configs,plNamesToCache:e.indexing_config.pl_names_to_cache,numDocsPerBlock:e.indexing_config.num_docs_per_block,numPlsPerDir:e.indexing_config.num_pls_per_dir,withPositions:e.indexing_config.with_positions},langConfig:e.lang_config,fieldInfos:n,numScoredFields:t.num_scored_fields,fieldStoreBlockSize:t.field_store_block_size,numStoresPerDir:t.num_stores_per_dir,searcherOptions:this.options}}))}deleteQuery(e,t){delete this.workerQueryPromises[e][t],0===Object.keys(this.workerQueryPromises[e]).length&&delete this.workerQueryPromises[e]}getQuery(e){return V(this,void 0,void 0,(function*(){yield this.setupPromise;const t=this.nextId;this.nextId+=1,this.workerQueryPromises[e]=this.workerQueryPromises[e]||{},this.workerQueryPromises[e][t]={promise:void 0,resolve:void 0},this.workerQueryPromises[e][t].promise=new Promise((n=>{this.workerQueryPromises[e][t].resolve=n,this.worker.postMessage({query:e,queryId:t})}));const n=yield this.workerQueryPromises[e][t].promise;return new H(e,n.searchedTerms,n.queryParts,(n=>V(this,void 0,void 0,(function*(){if(!this.workerQueryPromises[e]||!this.workerQueryPromises[e][t])return[];if(yield this.workerQueryPromises[e][t].promise,this.workerQueryPromises[e][t].promise=new Promise((o=>{this.workerQueryPromises[e][t].resolve=o,this.worker.postMessage({query:e,queryId:t,isGetNextN:!0,n})})),!this.workerQueryPromises[e]||!this.workerQueryPromises[e][t])return[];const o=(yield this.workerQueryPromises[e][t].promise).nextResults.map((([e,t])=>new U(e,t,this.morselsConfig.fieldInfos))),r=this.persistentJsonCache||new z;return yield Promise.all(o.map((e=>e.populate(this.options.url,r,this.morselsConfig)))),o}))),(()=>{this.deleteQuery(e,t),this.worker.postMessage({query:e,isFree:!0})}))}))}};function G(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Y=function(e,t,...n){const o=document.createElement(e);return Object.entries(t).forEach((([e,t])=>{o.setAttribute(e,t)})),n.forEach((e=>{if("string"==typeof e){const t=document.createElement("span");t.textContent=e,o.appendChild(t)}else o.appendChild(e)})),o};function K(e){return e.startsWith("/")?new URL(new URL(window.location.href).origin+e):new URL(e)}var Z=function(e,t,n,o){return new(n||(n=Promise))((function(r,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function l(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}c((o=o.apply(e,t||[])).next())}))};const ee=new DOMParser,te="_relative_fp";function ne(){return Y("span",{class:"morsels-ellipsis","aria-label":"ellipses"}," ... ")}function oe(e,t,n,o){const{highlightRender:r,bodyOnlyRender:s,headingBodyRender:i}=o.uiOptions.resultsRenderOpts;let l=0;function c(e){const n=t.map((t=>Array.from(e.matchAll(t))));if(!n.some((e=>e.length)))return{result:[],numberTermsMatched:0};let s=t.map((()=>-1e8)),i=1e8,c=t.map((()=>0));const a=n.map((()=>0)),d=n.map((e=>!e.length)),u=n.map((()=>0)),f=n.map((()=>-1));for(;;){let e,t=1e10,o=1e10,r=0,l=!1,h=!0;for(let s=0;su[s]&&(l=!0,u[s]=c.length),h=h&&c.length===u[s];const p=i.index;!d[s]&&pn[t][e]&&n[t][e][0].length))),void 0===e)break;if(a[e]+=1,a[e]>=n[e].length&&(d[e]=!0,a[e]-=1,!d.some((e=>!e))))break}const h=s.map(((e,t)=>({pos:e,idx:t}))).filter((e=>e.pos>=0)).sort(((e,t)=>e.pos-t.pos)),p=[],m=h.length;if(mg+80)p.push(ne()),p.push(e.substring(n-40,n)),p.push(r(Y,o,e.substring(n,i))),p.push(e.substring(i,i+40));else{if(!(n>=g))continue;p.pop(),p.push(e.substring(g,n)),p.push(r(Y,o,e.substring(n,i))),p.push(e.substring(i,i+40))}g=i}return p.push(ne()),{result:p,numberTermsMatched:m}}let a=-1,d={result:void 0,numberTermsMatched:0},u=[],f=-1;for(const t of e){if(f+=1,t[0].startsWith("heading"))continue;const{result:r,numberTermsMatched:h}=c(t[1]);if(0===h||hl&&(u=[],l=h);let p=f-1;for(;p>a;p-=1)if("heading"===e[p][0]){a=p,u.push({result:i(Y,o,e[p][1],r,p-1>=0&&"headingLink"===e[p-1][0]&&`${n}#${e[p-1][1]}`),numberTermsMatched:h});break}!u.length&&h>d.numberTermsMatched&&(d={result:s(Y,o,r),numberTermsMatched:h})}return!u.length&&d.numberTermsMatched>0&&u.push(d),u.map((e=>e.result)).slice(0,2)}const re=new Set([te,"title","link"]);function se(e,t,n,o,r,s,i){return Z(this,void 0,void 0,(function*(){const{loaderConfigs:r}=n.indexingConfig,l=e.getStorageWithFieldNames();let c,a,d;for(const e of l){const[t,n]=e;switch(t){case"link":c=n;break;case te:a=n;break;case"title":d=n}if(c&&a&&d)break}const u="string"==typeof t.uiOptions.sourceFilesUrl,f=c||u&&a&&`${t.uiOptions.sourceFilesUrl}${a}`||"";d=d||a||c;let h,p=f;if(t.uiOptions.resultsRenderOpts.addSearchedTerms&&f){const e=K(f);e.searchParams.append(t.uiOptions.resultsRenderOpts.addSearchedTerms,s),p=e.toString()}if(o)h=oe(l.filter((e=>!re.has(e[0]))),i,p,t);else if(f)if(f.endsWith(".html")&&r.HtmlLoader){const e=yield(yield fetch(f)).text(),n=ee.parseFromString(e,"text/html"),{title:o,bodies:s}=function(e,t,n,o,r){const s=[];if(t.exclude_selectors)for(const n of t.exclude_selectors){const t=e.querySelectorAll(n);for(let e=0;ee.selector)).join(",");!function e(n,o){for(const e of t.selectors)if(n.matches(e.selector)){Object.entries(e.attr_map).forEach((([e,t])=>{n.attributes[e]&&s.push([t,n.attributes[e].value])})),o=e.field_name;break}if(n.querySelector(i))for(let t=0;t"title"===e[0]));let c="";return l&&([,c]=l,l[1]=""),{title:c,bodies:oe(s,n,o,r)}}(n,r.HtmlLoader,i,p,t);d=o||d,h=s}else if(f.endsWith(".txt")&&r.TxtLoader){h=oe([["body",yield(yield fetch(f)).text()]],i,p,t)}else{const e=K(f);if(e.pathname.endsWith(".json")&&r.JsonLoader){const n=yield(yield fetch(f)).json(),{title:o,bodies:s}=function(e,t,n,o,r){const s=[],{field_map:i,field_order:l}=t,c=Object.entries(i).find((([,e])=>"title"===e)),a=c&&c[0];for(const t of l)t!==a&&e[t]&&s.push([i[t],e[t]]);return{title:a&&e[a],bodies:oe(s,n,o,r)}}(e.hash?n[e.hash.substring(1)]:n,r.JsonLoader,i,p,t);d=o||d,h=s}}else h=[];return t.uiOptions.resultsRenderOpts.listItemRender(Y,t,s,f,d,h,l)}))}function ie(e,t,n,o,r){const s=[];for(const e of r.searchedTerms){const t=e.map((e=>`(${G(e)})`)).sort(((e,t)=>t.length-e.length)).join("|");if("ascii"===n.langConfig.lang){const e=new RegExp(`(^|\\W)(${t})(?=\\W|$)`,"gi");s.push(e)}else if("latin"===n.langConfig.lang){const e=new RegExp(`(^|\\W)(${t}\\W?)`,"gi");s.push(e)}else if("chinese"===n.langConfig.lang){const e=new RegExp(`()(${t})`,"gi");s.push(e)}}const i=n.fieldInfos.find((e=>e.do_store&&("body"===e.name||"title"===e.name||"heading"===e.name))),l=JSON.stringify(r.searchedTerms);return Promise.all(o.map((e=>se(e,t,n,i,0,l,s))))}function le(e,t,n,o,r,s){return Z(this,void 0,void 0,(function*(){if(t!==e.currQuery)return;const i=s.uiOptions.loadingIndicatorRender(Y,s);o||r.appendChild(i),e.lastElObserver&&e.lastElObserver.disconnect();const l=document.createDocumentFragment();(o?s.uiOptions.termInfoRender(Y,s,t.queryParts):[]).forEach((e=>l.appendChild(e)));const c=yield t.getNextN(s.uiOptions.resultsPerPage);if(t!==e.currQuery)return;const a=yield s.uiOptions.resultsRender(Y,s,n,c,t);if(t!==e.currQuery)return;a.length?a.forEach((e=>l.appendChild(e))):o&&l.appendChild(s.uiOptions.noResultsRender(Y,s));const d=l.lastElementChild;o?(r.innerHTML="",r.appendChild(l)):i.replaceWith(l),a.length&&(e.lastElObserver=new IntersectionObserver(((o,i)=>Z(this,void 0,void 0,(function*(){o[0].isIntersecting&&(i.unobserve(d),yield le(e,t,n,!1,r,s))}))),{rootMargin:"10px 10px 10px 10px"}),e.lastElObserver.observe(d))}))}var ce;!function(e){e.Auto="auto",e.Dropdown="dropdown",e.Fullscreen="fullscreen",e.Target="target"}(ce||(ce={}));class ae{constructor(){this.isRunningNewQuery=!1}}var de=function(e,t,n,o){return new(n||(n=Promise))((function(r,s){function i(e){try{c(o.next(e))}catch(e){s(e)}}function l(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}c((o=o.apply(e,t||[])).next())}))};let ue=!1,fe=!1,he=!1;function pe(e){return e.mode===ce.Auto&&!ue||e.mode===ce.Dropdown}function me(e,t,n){e.setAttribute("role","combobox"),e.setAttribute("aria-expanded","true"),e.setAttribute("aria-owns",t.getAttribute("id")),t.setAttribute("role","listbox"),t.setAttribute("aria-label",n),t.setAttribute("aria-live","polite")}function ge(e,t){e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-controls",t),e.setAttribute("aria-activedescendant","morsels-list-selected")}function ye(e,t,n,o){const{uiOptions:r}=o,s=new ae;function i(i){var l;return de(this,void 0,void 0,(function*(){try{null===(l=s.currQuery)||void 0===l||l.free(),s.currQuery=yield n.getQuery(i),yield le(s,s.currQuery,n.morselsConfig,!0,t,o),e.scrollTo({top:0}),t.scrollTo({top:0})}catch(e){throw console.error(e),t.innerHTML="",t.appendChild(r.errorRender(Y,o)),e}finally{if(s.nextQuery){const e=s.nextQuery;s.nextQuery=void 0,yield e()}else s.isRunningNewQuery=!1}}))}let l=-1,c=!0;return n=>{const a=r.preprocessQuery(n.target.value);if(clearTimeout(l),a.length)l=setTimeout((()=>{c&&(t.innerHTML="",t.appendChild(r.loadingIndicatorRender(Y,o)),pe(r)&&r.showDropdown(e,t,o)),s.isRunningNewQuery?s.nextQuery=()=>i(a):(s.isRunningNewQuery=!0,i(a)),c=!1}),r.inputDebounce);else{const n=()=>{r.mode===ce.Target?t.innerHTML="":pe(r)?r.hideDropdown(e,t,o):(t.innerHTML="",t.appendChild(r.fsBlankRender(Y,o))),s.isRunningNewQuery=!1,c=!0};s.isRunningNewQuery?s.nextQuery=n:n()}}}const we=function(e){const t=e.isMobileDevice||(()=>window.matchMedia("only screen and (max-width: 1024px)").matches);ue=t(),function(e){if(e.searcherOptions=e.searcherOptions||{},!("url"in e.searcherOptions))throw new Error("Mandatory url parameter not specified");e.searcherOptions.url.endsWith("/")||(e.searcherOptions.url+="/"),"numberOfExpandedTerms"in e.searcherOptions||(e.searcherOptions.numberOfExpandedTerms=3),"useQueryTermProximity"in e.searcherOptions||(e.searcherOptions.useQueryTermProximity=!ue),"useWand"in e.searcherOptions||(e.searcherOptions.useWand=20),"resultLimit"in e.searcherOptions||(e.searcherOptions.resultLimit=null),e.uiOptions=e.uiOptions||{};const{uiOptions:t}=e;if(t.sourceFilesUrl&&!t.sourceFilesUrl.endsWith("/")&&(t.sourceFilesUrl+="/"),t.mode=t.mode||ce.Auto,t.mode===ce.Target&&("string"==typeof t.target&&(t.target=document.getElementById(t.target)),!t.target))throw new Error("'target' mode specified but no valid target option specified");if("input"in t&&"string"!=typeof t.input||(t.input=document.getElementById(t.input||"morsels-search")),[ce.Dropdown,ce.Target].includes(t.mode)&&!t.input)throw new Error("'dropdown' or 'target' mode specified but no input element found");"inputDebounce"in t||(t.inputDebounce=100),t.preprocessQuery||(t.preprocessQuery=e=>e),"string"==typeof t.fsContainer&&(t.fsContainer=document.getElementById(t.fsContainer)),"dropdownAlignment"in t||(t.dropdownAlignment="bottom-end"),t.fsContainer||(t.fsContainer=document.getElementsByTagName("body")[0]),"resultsPerPage"in t||(t.resultsPerPage=8);const n=t.showDropdown||((e,n)=>{n.childElementCount&&(n.style.display="block",n.previousSibling.style.display="block",q(e,n,{placement:t.dropdownAlignment,middleware:[y(8),g({padding:10,mainAxis:!1}),w({apply({width:e,height:t}){Object.assign(n.style,{maxWidth:`min(${e}px, var(--morsels-dropdown-max-width))`,maxHeight:`min(${t}px, var(--morsels-dropdown-max-height))`})},padding:10})]}).then((({x:e,y:t})=>{Object.assign(n.style,{left:`${e}px`,top:`${t}px`})})))});t.showDropdown=(...e)=>{n(...e),fe=!0};const o=t.hideDropdown||((e,t)=>{t.style.display="none",t.previousSibling.style.display="none"});t.hideDropdown=(...e)=>{o(...e),fe=!1};const r=t.showFullscreen||((e,t,n)=>{n.appendChild(e);const o=e.querySelector("input.morsels-fs-input");o&&o.focus()});t.showFullscreen=(e,t,...n)=>{r(e,t,...n);const o=t.querySelector(".focus");o&&t.scrollTo({top:o.offsetTop-t.offsetTop-30}),he=!0};const s=t.hideFullscreen||(e=>{e.remove()});t.hideFullscreen=(...e)=>{s(...e),he=!1},t.label=t.label||"Search this site",t.fsPlaceholder=t.fsPlaceholder||"Search this site...",t.fsCloseText=t.fsCloseText||"Close",t.dropdownRootRender=t.dropdownRootRender||((e,n,o)=>{const r=e("div",{class:"morsels-root"},o);r.appendChild(e("div",{class:`morsels-input-dropdown-separator ${t.dropdownAlignment}`,style:"display: none;"})),ge(o,"morsels-dropdown-list");const s=e("ul",{id:"morsels-dropdown-list",class:"morsels-list",style:"display: none;"});return r.appendChild(s),me(r,s,n.uiOptions.label),{dropdownRoot:r,dropdownListContainer:s}}),t.fsRootRender=t.fsRootRender||((e,n,o)=>{const r=e("div",{class:"morsels-root morsels-fs-root"});r.onclick=e=>e.stopPropagation();const s=e("div",{class:"morsels-fs-backdrop"},r),i=e("label",{id:"morsels-fs-label",for:"morsels-fs-input",style:"display: none"},n.uiOptions.label),l=e("input",{class:"morsels-fs-input",type:"search",placeholder:n.uiOptions.fsPlaceholder,autocomplete:"false","aria-labelledby":"morsels-fs-label"});ge(l,"morsels-fs-list");const c=e("button",{class:"morsels-input-close-fs"},n.uiOptions.fsCloseText);c.onclick=o,r.appendChild(e("form",{class:"morsels-fs-input-button-wrapper"},i,l,c));const a=e("ul",{id:"morsels-fs-list",class:"morsels-list","aria-labelledby":"morsels-fs-label"});return r.appendChild(a),me(r,a,n.uiOptions.label),s.onclick=()=>t.hideFullscreen(s,a,r,n),s.addEventListener("keyup",(e=>{"Escape"===e.code&&(e.stopPropagation(),t.hideFullscreen(s,a,r,n))})),{root:s,listContainer:a,input:l}}),t.errorRender=t.errorRender||(e=>e("div",{class:"morsels-error"},"Oops! Something went wrong... 🙁")),t.noResultsRender=t.noResultsRender||(e=>e("div",{class:"morsels-no-results"},"No results found")),t.fsBlankRender=t.fsBlankRender||(e=>e("div",{class:"morsels-fs-blank"},"Start Searching Above!")),t.loadingIndicatorRender=t.loadingIndicatorRender||(e=>e("span",{class:"morsels-loading-indicator"})),t.termInfoRender=t.termInfoRender||(()=>[]),t.resultsRender=t.resultsRender||ie,t.resultsRenderOpts=t.resultsRenderOpts||{},t.resultsRenderOpts.listItemRender=t.resultsRenderOpts.listItemRender||((t,n,o,r,s,i)=>{const l=t("a",{class:"morsels-link"},t("div",{class:"morsels-title"},s),...i);if(r){let t=r;if(n.uiOptions.resultsRenderOpts.addSearchedTerms){const n=K(r);n.searchParams.append(e.uiOptions.resultsRenderOpts.addSearchedTerms,o),t=n.toString()}l.setAttribute("href",t)}return t("li",{class:"morsels-list-item",role:"option"},l)}),t.resultsRenderOpts.headingBodyRender=t.resultsRenderOpts.headingBodyRender||((e,t,n,o,r)=>{const s=e("a",{class:"morsels-heading-body"},e("div",{class:"morsels-heading"},n),e("div",{class:"morsels-bodies"},e("div",{class:"morsels-body"},...o)));return r&&s.setAttribute("href",r),s}),t.resultsRenderOpts.bodyOnlyRender=t.resultsRenderOpts.bodyOnlyRender||((e,t,n)=>e("div",{class:"morsels-body"},...n)),t.resultsRenderOpts.highlightRender=t.resultsRenderOpts.highlightRender||((e,t,n)=>e("span",{class:"morsels-highlight"},n)),e.otherOptions=e.otherOptions||{}}(e);const{uiOptions:n}=e,o=new X(e.searcherOptions),{root:r,listContainer:s,input:i}=n.fsRootRender(Y,e,(()=>n.hideFullscreen(r,s,n.fsContainer,e)));let l;i.addEventListener("input",ye(r,s,o,e)),s.appendChild(n.fsBlankRender(Y,e));const{input:c}=n;if(!c||n.mode!==ce.Auto&&n.mode!==ce.Dropdown){if(c&&n.mode===ce.Fullscreen)c.addEventListener("focus",(()=>{n.showFullscreen(r,s,n.fsContainer,e)}));else if(c&&n.mode===ce.Target){c.addEventListener("input",ye(n.target,n.target,o,e));let t=n.target.getAttribute("id");t||(n.target.setAttribute("id","morsels-target-list"),t="morsels-target-list"),ge(c,t),me(c,n.target,n.label)}}else{const i=c.parentElement;c.remove();const{dropdownRoot:a,dropdownListContainer:d}=n.dropdownRootRender(Y,e,c);function u(){n.hideDropdown(a,l,e),document.activeElement===c&&n.showDropdown(a,l,e)}let f;l=d,i.appendChild(a),c.addEventListener("input",ye(a,l,o,e)),window.addEventListener("resize",(()=>{clearTimeout(f),f=setTimeout((()=>{n.mode!==ce.Dropdown?(ue=t(),ue?n.hideDropdown(a,l,e):(n.hideFullscreen(r,s,n.fsContainer,e),u())):u()}),10)})),c.addEventListener("blur",(()=>{pe(n)&&setTimeout((()=>{let t=document.activeElement;for(;t;)if(t=t.parentElement,t===a)return void c.focus();n.hideDropdown(a,l,e)}),100)})),c.addEventListener("focus",(()=>{pe(n)?n.showDropdown(a,l,e):n.showFullscreen(r,s,n.fsContainer,e)}))}const a=n.loadingIndicatorRender(Y,e);function d(e){if(!["ArrowDown","ArrowUp","Home","End","Enter"].includes(e.key))return;let t,o=e=>{t.scrollTo({top:e.offsetTop-t.offsetTop-30})};if(pe(n)){if(!fe)return;t=l}else if(n.mode===ce.Target)t=n.target,o=e=>{e.scrollIntoView({block:"center"})};else{if(!he)return;t=s}function r(){return t.querySelector(".focus")}function i(e){e.classList.add("focus"),e.setAttribute("aria-selected","true"),e.setAttribute("id","morsels-list-selected"),o(e)}function c(e){e.classList.remove("focus"),e.removeAttribute("aria-selected"),e.removeAttribute("id")}if("ArrowDown"===e.key){const e=r();e?e.nextElementSibling&&!a.isEqualNode(e.nextElementSibling)&&(c(e),i(e.nextElementSibling)):i(t.firstElementChild)}else if("ArrowUp"===e.key){const e=r();e&&e.previousElementSibling&&(c(e),i(e.previousElementSibling))}if("Home"===e.key||"End"===e.key){const n=r();n&&c(n);let o="Home"===e.key?t.firstElementChild:t.lastElementChild;o&&a.isEqualNode(o)&&(o=o.previousElementSibling),o&&i(o)}else if("Enter"===e.key){const e=r();if(e){const t=e.querySelector("a[href]");t&&(window.location.href=t.getAttribute("href"))}}e.preventDefault()}return null==c||c.addEventListener("keydown",d),i.addEventListener("keydown",d),{showFullscreen:()=>{n.showFullscreen(r,s,n.fsContainer,e)},hideFullscreen:()=>{n.hideFullscreen(r,s,n.fsContainer,e)}}};return t=t.default})()})); \ No newline at end of file +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.initMorsels=t():e.initMorsels=t()}(self,(function(){return(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>Pe});function n(e,t,n){const{fieldStoreBlockSize:o,numStoresPerDir:i,indexingConfig:s}=n,{numDocsPerBlock:r}=s,l=Math.floor(t/o),c=Math.floor(t/r);return`${e}field_store/${Math.floor(l/i)}/${l}--${c}.json`}var o=function(e,t,n,o){return new(n||(n=Promise))((function(i,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function l(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,l)}c((o=o.apply(e,t||[])).next())}))};let i=0;const s=[];function r(){s.length&&s.shift()().then(r)}function l(e){return o(this,void 0,void 0,(function*(){const t=()=>o(this,void 0,void 0,(function*(){i+=1,yield e(),i-=1}));i>=2?s.push(t):(yield t(),r())}))}class c{constructor(e){this.cache=e,this.linkToJsons=Object.create(null)}cacheJson(e){return o(this,void 0,void 0,(function*(){let t;this.cache?(t=yield this.cache.match(e),t||l((()=>o(this,void 0,void 0,(function*(){yield this.cache.add(e),t=yield this.cache.match(e),this.linkToJsons[e]=t.json()}))))):l((()=>o(this,void 0,void 0,(function*(){t=yield fetch(e),this.linkToJsons[e]=t.json()}))))}))}cacheUrl(e){return o(this,void 0,void 0,(function*(){this.cache&&((yield this.cache.match(e))||l((()=>this.cache.add(e))))}))}getJson(e){return this.linkToJsons[e]||(this.linkToJsons[e]=fetch(e).then((e=>e.json()))),this.linkToJsons[e]}}var a=function(e,t,n,o){return new(n||(n=Promise))((function(i,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function l(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,l)}c((o=o.apply(e,t||[])).next())}))};let u;if(document.currentScript)u=document.currentScript.src;else{const e=document.getElementsByTagName("script");u=e.length&&e[e.length-1].src}u=u.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");function d(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function f(e,t,...n){const o=document.createElement(e);return Object.entries(t).forEach((([e,t])=>{o.setAttribute(e,t)})),n.forEach((e=>{if("string"==typeof e){const t=document.createElement("span");t.textContent=e,o.appendChild(t)}else o.appendChild(e)})),o}const h=f,p="data-morsels-loading-indicator";function m(){return f("div",{[p]:"true"})}function g(e){return e.startsWith("/")?new URL(new URL(window.location.href).origin+e):new URL(e)}function y(e,t){const n=t.map((t=>Array.from(e.matchAll(t))));if(!n.some((e=>e.length)))return{str:e,window:[],numTerms:0};let o=t.map((()=>-1)),i=1e7,s=t.map((()=>0));const r=n.map((()=>0)),l=n.map((e=>!e.length)),c=n.map((()=>-1));for(;;){let e=1e7,t=1e7,a=-1,u=0;for(let o=0;on[t][e]&&n[t][e][2].length+n[t][e][3].length))),r[a]+=1,r[a]>=n[a].length&&(l[a]=!0,r[a]-=1,l.every((e=>e))))break}const a=o.map(((e,t)=>({pos:e,len:s[t]}))).filter((e=>e.pos>=0)).sort(((e,t)=>e.pos-t.pos)),u=a.length;return{str:e,window:a,numTerms:u}}function v(){return h("span",{class:"morsels-ellipsis","aria-label":"ellipses"}," ... ")}function w(e,t,n){const{highlightRender:o}=n.uiOptions.resultsRenderOpts,{str:i,window:s}=e;if(!s.some((({pos:e})=>e>=0))){if(t){const e=i.trimStart().substring(0,80);return[80===e.length?e.replace(/\w+$/,""):e,v()]}return[i]}const r=[];let l=0;for(const{pos:e,len:c}of s){const s=e+c;if(e>l+80){t&&r.push(v());const l=i.substring(e-40,e);r.push(40===l.length?l.replace(/^\w+/,""):l),r.push(o(h,n,i.substring(e,s)))}else if(e>=l)r.pop(),r.push(i.substring(l,e)),r.push(o(h,n,i.substring(e,s)));else{if(!(s>l))continue;r.pop(),r[r.length-1].textContent+=i.substring(l,s)}const a=i.substring(s,s+40);r.push(40===a.length?a.replace(/\w+$/,""):a),l=s}return t&&r.push(v()),r}function b(e,t,n,o){const{bodyOnlyRender:i,headingBodyRender:s}=o.uiOptions.resultsRenderOpts;let r,l=-2,c="",a=[];for(let n=0;n0===e.numTerms&&0===t.numTerms?t.str.length-e.str.length:t.numTerms-e.numTerms));const u=[],d=Math.min(a.length,2);for(let e=0;e{const t=w(e,!0,o);if(e.headingMatch){const i=w(e.headingMatch,!1,o),r=i.length?i:[e.headingMatch.str],l=e.headingLink&&`${n}#${e.headingLink}`;return s(h,o,r,t,l)}return i(h,o,t)}))}var x=function(e,t,n,o){return new(n||(n=Promise))((function(i,s){function r(e){try{c(o.next(e))}catch(e){s(e)}}function l(e){try{c(o.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,l)}c((o=o.apply(e,t||[])).next())}))};const R=new DOMParser;function T(e,t,n,o,i){const s=[],r=[];for(const e of i.searchedTerms){const t=e.map((e=>(r.push(e),d(e)))).sort(((e,t)=>t.length-e.length)).join("|");if("ascii"===n.langConfig.lang){const e=new RegExp(`(^|\\W|_)(${t})((?=\\W|$))`,"gi");s.push(e)}else if("latin"===n.langConfig.lang){const e=new RegExp(`(^|\\W|_)(${t})(\\w*?)(?=\\W|$)`,"gi");s.push(e)}else if("chinese"===n.langConfig.lang){const e=new RegExp(`()(${t})()`,"gi");s.push(e)}}const l=n.fieldInfos.find((e=>e.do_store&&("body"===e.name||"title"===e.name||"heading"===e.name)));return Promise.all(o.map((e=>function(e,t,n,o,i,s){return x(this,void 0,void 0,(function*(){const{loaderConfigs:r}=n.indexingConfig,l=e.getStorageWithFieldNames();let c,a,u;for(const e of l){const[t,n]=e;switch(t){case"link":c=n;break;case"_relative_fp":a=n;break;case"title":u=n}if(c&&a&&u)break}const{sourceFilesUrl:d,resultsRenderOpts:{addSearchedTerms:f,listItemRender:p}}=t.uiOptions,m=c||"string"==typeof d&&a&&`${d}${a}`||"";u=u||a||c;let y,v=m;if(f&&m){const e=g(m);e.searchParams.append(f,i),v=e.toString()}if(o)y=b(l,s,v,t);else if(m)if(m.endsWith(".html")&&r.HtmlLoader){const e=yield(yield fetch(m)).text(),n=R.parseFromString(e,"text/html"),{title:o,bodies:i}=function(e,t,n,o,i){const s=[];if(t.exclude_selectors)for(const n of t.exclude_selectors){const t=e.querySelectorAll(n);for(let e=0;ee.selector)).join(",");!function e(n,o){for(const e of t.selectors)if(n.matches(e.selector)){Object.entries(e.attr_map).forEach((([e,t])=>{n.attributes[e]&&s.push([t,n.attributes[e].value])})),o=e.field_name;break}if(n.querySelector(r))for(let t=0;t"title"===e[0]));let c="";return l&&([,c]=l),{title:c,bodies:b(s,n,o,i)}}(n,r.HtmlLoader,s,v,t);u=o||u,y=i}else if(m.endsWith(".txt")&&r.TxtLoader)y=b([["body",yield(yield fetch(m)).text()]],s,v,t);else{const e=g(m);if(e.pathname.endsWith(".json")&&r.JsonLoader){const n=yield(yield fetch(m)).json(),{title:o,bodies:i}=function(e,t,n,o,i){const s=[],{field_map:r,field_order:l}=t,c=Object.entries(r).find((([,e])=>"title"===e)),a=c&&c[0];for(const t of l)t!==a&&e[t]&&s.push([r[t],e[t]]);return{title:a&&e[a],bodies:b(s,n,o,i)}}(e.hash?n[e.hash.substring(1)]:n,r.JsonLoader,s,v,t);u=o||u,y=i}}else y=[];return p(h,t,i,m,u,y,l)}))}(e,t,n,l,JSON.stringify(r),s))))}function O(e,t,n,o,i,s,r){return x(this,void 0,void 0,(function*(){if(e.nextAction)return!1;const l=r.uiOptions.loadingIndicatorRender(h,r,!1,!0);o||i.appendChild(l),e.lastElObserver&&e.lastElObserver.disconnect();const c=document.createDocumentFragment();(o?r.uiOptions.termInfoRender(h,r,t.queryParts):[]).forEach((e=>c.appendChild(e)));const a=yield t.getNextN(r.uiOptions.resultsPerPage);if(e.nextAction)return!1;const u=yield r.uiOptions.resultsRender(h,r,n,a,t);if(e.nextAction)return!1;u.length?u.forEach((e=>c.appendChild(e))):o&&c.appendChild(r.uiOptions.noResultsRender(h,r));const d=c.lastElementChild;return o?(i.innerHTML="",s.v=m(),i.append(s.v),i.append(c)):l.replaceWith(c),u.length&&(e.lastElObserver=new IntersectionObserver((([o],l)=>x(this,void 0,void 0,(function*(){o.isIntersecting&&(l.unobserve(d),yield O(e,t,n,!1,i,s,r))}))),{root:i,rootMargin:"150px 0px"}),e.lastElObserver.observe(d)),!0}))}var E;!function(e){e.Auto="auto",e.Dropdown="dropdown",e.Fullscreen="fullscreen",e.Target="target"}(E||(E={}));class k{constructor(){this.isResultsBlank=!0,this.isRunningQuery=!1}}function C(e,t,n){e.setAttribute("role","combobox"),e.setAttribute("aria-expanded","true"),e.setAttribute("aria-owns",t.getAttribute("id")),t.setAttribute("role","listbox"),t.setAttribute("aria-label",n),t.setAttribute("aria-live","polite")}function L(e,t){e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-controls",t),e.setAttribute("aria-activedescendant","morsels-list-selected")}function A(e){return e.split("-")[0]}function P(e){return e.split("-")[1]}function S(e){return["top","bottom"].includes(A(e))?"x":"y"}function D(e){return"y"===e?"height":"width"}function I(e,t,n){let{reference:o,floating:i}=e;const s=o.x+o.width/2-i.width/2,r=o.y+o.height/2-i.height/2,l=S(t),c=D(l),a=o[c]/2-i[c]/2,u="x"===l;let d;switch(A(t)){case"top":d={x:s,y:o.y-i.height};break;case"bottom":d={x:s,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:r};break;case"left":d={x:o.x-i.width,y:r};break;default:d={x:o.x,y:o.y}}switch(P(t)){case"start":d[l]-=a*(n&&u?-1:1);break;case"end":d[l]+=a*(n&&u?-1:1)}return d}function q(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function M(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function W(e,t){var n;void 0===t&&(t={});const{x:o,y:i,platform:s,rects:r,elements:l,strategy:c}=e,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=t,p=q(h),m=l[f?"floating"===d?"reference":"floating":d],g=M(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(m)))||n?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(l.floating)),boundary:a,rootBoundary:u,strategy:c})),y=M(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===d?{...r.floating,x:o,y:i}:r.reference,offsetParent:await(null==s.getOffsetParent?void 0:s.getOffsetParent(l.floating)),strategy:c}):r[d]);return{top:g.top-y.top+p.top,bottom:y.bottom-g.bottom+p.bottom,left:g.left-y.left+p.left,right:y.right-g.right+p.right}}const j=Math.min,$=Math.max;function B(e,t,n){return $(e,j(t,n))}const N=e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:i,y:s,placement:r,rects:l,platform:c}=t;if(null==n)return{};const a=q(o),u={x:i,y:s},d=S(r),f=D(d),h=await c.getDimensions(n),p="y"===d?"top":"left",m="y"===d?"bottom":"right",g=l.reference[f]+l.reference[d]-u[d]-l.floating[f],y=u[d]-l.reference[d],v=await(null==c.getOffsetParent?void 0:c.getOffsetParent(n));let w=v?"y"===d?v.clientHeight||0:v.clientWidth||0:0;0===w&&(w=l.floating[f]);const b=g/2-y/2,x=a[p],R=w-h[f]-a[m],T=w/2-h[f]/2+b,O=B(x,T,R);return{data:{[d]:O,centerOffset:T-O}}}}),H={left:"right",right:"left",bottom:"top",top:"bottom"};function _(e){return e.replace(/left|right|bottom|top/g,(e=>H[e]))}function F(e,t,n){void 0===n&&(n=!1);const o=P(e),i=S(e),s=D(i);let r="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=_(r)),{main:r,cross:_(r)}}const Q={start:"end",end:"start"};function U(e){return e.replace(/start|end/g,(e=>Q[e]))}const J=(["top","right","bottom","left"].reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]),function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:i,rects:s,initialPlacement:r,platform:l,elements:c}=t,{mainAxis:a=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f="bestFit",flipAlignment:h=!0,...p}=e,m=A(o),g=d||(m!==r&&h?function(e){const t=_(e);return[U(e),t,U(t)]}(r):[_(r)]),y=[r,...g],v=await W(t,p),w=[];let b=(null==(n=i.flip)?void 0:n.overflows)||[];if(a&&w.push(v[m]),u){const{main:e,cross:t}=F(o,s,await(null==l.isRTL?void 0:l.isRTL(c.floating)));w.push(v[e],v[t])}if(b=[...b,{placement:o,overflows:w}],!w.every((e=>e<=0))){var x,R;const e=(null!=(x=null==(R=i.flip)?void 0:R.index)?x:0)+1,t=y[e];if(t)return{data:{index:e,overflows:b},reset:{placement:t}};let n="bottom";switch(f){case"bestFit":{var T;const e=null==(T=b.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:T[0].placement;e&&(n=e);break}case"initialPlacement":n=r}if(o!==n)return{reset:{placement:n}}}return{}}}}),V=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:i,elements:s}=t,{apply:r,...l}=e,c=await W(t,l),a=A(n),u=P(n);let d,f;"top"===a||"bottom"===a?(d=a,f=u===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(f=a,d="end"===u?"top":"bottom");const h=$(c.left,0),p=$(c.right,0),m=$(c.top,0),g=$(c.bottom,0),y={availableHeight:o.floating.height-(["left","right"].includes(n)?2*(0!==m||0!==g?m+g:$(c.top,c.bottom)):c[d]),availableWidth:o.floating.width-(["top","bottom"].includes(n)?2*(0!==h||0!==p?h+p:$(c.left,c.right)):c[f])},v=await i.getDimensions(s.floating);null==r||r({...t,...y});const w=await i.getDimensions(s.floating);return v.width!==w.width||v.height!==w.height?{reset:{rects:!0}}:{}}}};function z(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function X(e){if(null==e)return window;if(!z(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Y(e){return X(e).getComputedStyle(e)}function G(e){return z(e)?"":e?(e.nodeName||"").toLowerCase():""}function K(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function Z(e){return e instanceof X(e).HTMLElement}function ee(e){return e instanceof X(e).Element}function te(e){return"undefined"!=typeof ShadowRoot&&(e instanceof X(e).ShadowRoot||e instanceof ShadowRoot)}function ne(e){const{overflow:t,overflowX:n,overflowY:o}=Y(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function oe(e){return["table","td","th"].includes(G(e))}function ie(e){const t=/firefox/i.test(K()),n=Y(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function se(){return!/^((?!chrome|android).)*safari/i.test(K())}const re=Math.min,le=Math.max,ce=Math.round;function ae(e,t,n){var o,i,s,r;void 0===t&&(t=!1),void 0===n&&(n=!1);const l=e.getBoundingClientRect();let c=1,a=1;t&&Z(e)&&(c=e.offsetWidth>0&&ce(l.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ce(l.height)/e.offsetHeight||1);const u=ee(e)?X(e):window,d=!se()&&n,f=(l.left+(d&&null!=(o=null==(i=u.visualViewport)?void 0:i.offsetLeft)?o:0))/c,h=(l.top+(d&&null!=(s=null==(r=u.visualViewport)?void 0:r.offsetTop)?s:0))/a,p=l.width/c,m=l.height/a;return{width:p,height:m,top:h,right:f+p,bottom:h+m,left:f,x:f,y:h}}function ue(e){return(t=e,(t instanceof X(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function de(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fe(e){return ae(ue(e)).left+de(e).scrollLeft}function he(e,t,n){const o=Z(t),i=ue(t),s=ae(e,o&&function(e){const t=ae(e);return ce(t.width)!==e.offsetWidth||ce(t.height)!==e.offsetHeight}(t),"fixed"===n);let r={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==G(t)||ne(i))&&(r=de(t)),Z(t)){const e=ae(t,!0);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=fe(i));return{x:s.left+r.scrollLeft-l.x,y:s.top+r.scrollTop-l.y,width:s.width,height:s.height}}function pe(e){return"html"===G(e)?e:e.assignedSlot||e.parentNode||(te(e)?e.host:null)||ue(e)}function me(e){return Z(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function ge(e){const t=X(e);let n=me(e);for(;n&&oe(n)&&"static"===getComputedStyle(n).position;)n=me(n);return n&&("html"===G(n)||"body"===G(n)&&"static"===getComputedStyle(n).position&&!ie(n))?t:n||function(e){let t=pe(e);for(te(t)&&(t=t.host);Z(t)&&!["html","body"].includes(G(t));){if(ie(t))return t;t=t.parentNode}return null}(e)||t}function ye(e){if(Z(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=ae(e);return{width:t.width,height:t.height}}function ve(e){const t=pe(e);return["html","body","#document"].includes(G(t))?e.ownerDocument.body:Z(t)&&ne(t)?t:ve(t)}function we(e,t){var n;void 0===t&&(t=[]);const o=ve(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),s=X(o),r=i?[s].concat(s.visualViewport||[],ne(o)?o:[]):o,l=t.concat(r);return i?l:l.concat(we(r))}function be(e,t,n){return"viewport"===t?M(function(e,t){const n=X(e),o=ue(e),i=n.visualViewport;let s=o.clientWidth,r=o.clientHeight,l=0,c=0;if(i){s=i.width,r=i.height;const e=se();(e||!e&&"fixed"===t)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:s,height:r,x:l,y:c}}(e,n)):ee(t)?function(e,t){const n=ae(e,!1,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft;return{top:o,left:i,x:i,y:o,right:i+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):M(function(e){var t;const n=ue(e),o=de(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=le(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=le(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let l=-o.scrollLeft+fe(e);const c=-o.scrollTop;return"rtl"===Y(i||n).direction&&(l+=le(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:r,x:l,y:c}}(ue(e)))}function xe(e){const t=we(e),n=["absolute","fixed"].includes(Y(e).position)&&Z(e)?ge(e):e;return ee(n)?t.filter((e=>ee(e)&&function(e,t){const n=null==t||null==t.getRootNode?void 0:t.getRootNode();if(null!=e&&e.contains(t))return!0;if(n&&te(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==G(e))):[]}const Re={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e;const s=[..."clippingAncestors"===n?xe(t):[].concat(n),o],r=s[0],l=s.reduce(((e,n)=>{const o=be(t,n,i);return e.top=le(o.top,e.top),e.right=re(o.right,e.right),e.bottom=re(o.bottom,e.bottom),e.left=le(o.left,e.left),e}),be(t,r,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const i=Z(n),s=ue(n);if(n===s)return t;let r={scrollLeft:0,scrollTop:0};const l={x:0,y:0};if((i||!i&&"fixed"!==o)&&(("body"!==G(n)||ne(s))&&(r=de(n)),Z(n))){const e=ae(n,!0);l.x=e.x+n.clientLeft,l.y=e.y+n.clientTop}return{...t,x:t.x-r.scrollLeft+l.x,y:t.y-r.scrollTop+l.y}},isElement:ee,getDimensions:ye,getOffsetParent:ge,getDocumentElement:ue,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:he(t,ge(n),o),floating:{...ye(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===Y(e).direction};let Te,Oe,Ee=!1,ke=!1,Ce=!1;function Le(e){return e.mode===E.Auto&&!Ee||e.mode===E.Dropdown}function Ae(e,t,n,o){const{uiOptions:i}=o;let s={v:m()};const r=new k;function l(l){var c,a,u,d,f;return a=this,u=void 0,f=function*(){const a=i.loadingIndicatorRender(h,o,!1,r.isResultsBlank);s.v.replaceWith(a),s.v=a;try{null===(c=r.currQuery)||void 0===c||c.free(),r.currQuery=yield n.getQuery(l),(yield O(r,r.currQuery,n.config,!0,t,s,o))&&(r.isResultsBlank=!1),e.scrollTo({top:0}),t.scrollTo({top:0})}catch(e){throw console.error(e),t.innerHTML="",t.appendChild(i.errorRender(h,o)),e}finally{if(r.nextAction){const e=r.nextAction;r.nextAction=void 0,yield e()}else r.isRunningQuery=!1}},new((d=void 0)||(d=Promise))((function(e,t){function n(e){try{i(f.next(e))}catch(e){t(e)}}function o(e){try{i(f.throw(e))}catch(e){t(e)}}function i(t){var i;t.done?e(t.value):(i=t.value,i instanceof d?i:new d((function(e){e(i)}))).then(n,o)}i((f=f.apply(a,u||[])).next())}))}n.setupPromise.then((()=>{r.nextAction&&(r.nextAction(),r.nextAction=void 0)}));let c=-1;return e=>{const a=i.preprocessQuery(e.target.value);if(clearTimeout(c),a.length)c=setTimeout((()=>{var e;r.isResultsBlank&&!(null===(e=t.firstElementChild)||void 0===e?void 0:e.getAttribute(p))&&(t.innerHTML="",s.v=i.loadingIndicatorRender(h,o,!n.isSetupDone,!0),t.appendChild(s.v),Le(i)&&Te()),r.isRunningQuery||!n.isSetupDone?r.nextAction=()=>l(a):(r.isRunningQuery=!0,l(a))}),i.inputDebounce);else{const e=()=>{t.innerHTML="",i.mode!==E.Target&&(Le(i)?Oe():t.appendChild(i.fsBlankRender(h,o))),r.isRunningQuery=!1,r.isResultsBlank=!0};r.isRunningQuery?r.nextAction=e:e()}}}const Pe=function(e){const t=e.isMobileDevice||(()=>window.matchMedia("only screen and (max-width: 1024px)").matches);Ee=t(),function(e,t){if(e.searcherOptions=e.searcherOptions||{},!("url"in e.searcherOptions))throw new Error("Mandatory url parameter not specified");e.searcherOptions.url.endsWith("/")||(e.searcherOptions.url+="/"),e.searcherOptions.url.startsWith("/")&&(e.searcherOptions.url=window.location.origin+e.searcherOptions.url),"numberOfExpandedTerms"in e.searcherOptions||(e.searcherOptions.numberOfExpandedTerms=3),"useQueryTermProximity"in e.searcherOptions||(e.searcherOptions.useQueryTermProximity=!t),"resultLimit"in e.searcherOptions||(e.searcherOptions.resultLimit=null),e.uiOptions=e.uiOptions||{};const{uiOptions:n}=e;if(n.sourceFilesUrl&&!n.sourceFilesUrl.endsWith("/")&&(n.sourceFilesUrl+="/"),n.mode=n.mode||E.Auto,n.mode===E.Target&&("string"==typeof n.target&&(n.target=document.getElementById(n.target)),!n.target))throw new Error("'target' mode specified but no valid target option specified");if("input"in n&&"string"!=typeof n.input||(n.input=document.getElementById(n.input||"morsels-search")),[E.Dropdown,E.Target].includes(n.mode)&&!n.input)throw new Error("'dropdown' or 'target' mode specified but no input element found");"inputDebounce"in n||(n.inputDebounce=100),n.preprocessQuery=n.preprocessQuery||(e=>e),n.dropdownAlignment=n.dropdownAlignment||"bottom-end","string"==typeof n.fsContainer&&(n.fsContainer=document.getElementById(n.fsContainer)),n.fsContainer=n.fsContainer||document.getElementsByTagName("body")[0],n.resultsPerPage=n.resultsPerPage||8,n.label=n.label||"Search this site",n.fsPlaceholder=n.fsPlaceholder||"Search this site...",n.fsCloseText=n.fsCloseText||"Close",n.errorRender=n.errorRender||(e=>e("div",{class:"morsels-error"},"Oops! Something went wrong... 🙁")),n.noResultsRender=n.noResultsRender||(e=>e("div",{class:"morsels-no-results"},"No results found")),n.fsBlankRender=n.fsBlankRender||(e=>e("div",{class:"morsels-fs-blank"},"Start Searching Above!")),n.loadingIndicatorRender||(n.loadingIndicatorRender=(e,t,n,o)=>{const i=e("span",{class:"morsels-loading-indicator"});if(n){const t=e("div",{class:"morsels-initialising-text"},"... Initialising ...");return e("div",{class:"morsels-initialising"},t,i)}return o||i.classList.add("morsels-loading-indicator-subsequent"),i});const o=n.loadingIndicatorRender;n.loadingIndicatorRender=(...e)=>{const t=o(...e);return t.setAttribute(p,"true"),t},n.termInfoRender=n.termInfoRender||(()=>[]),n.resultsRender=n.resultsRender||T,n.resultsRenderOpts=n.resultsRenderOpts||{};const{resultsRenderOpts:i}=n;i.listItemRender=i.listItemRender||((e,t,n,o,s,r)=>{const l=e("a",{class:"morsels-link"},e("div",{class:"morsels-title"},s),...r);if(o){let e=o;const{addSearchedTerms:t}=i;if(t){const i=g(o);i.searchParams.append(t,n),e=i.toString()}l.setAttribute("href",e)}return e("li",{class:"morsels-list-item",role:"option"},l)}),i.headingBodyRender=i.headingBodyRender||((e,t,n,o,i)=>{const s=e("a",{class:"morsels-heading-body"},e("div",{class:"morsels-heading"},...n),e("div",{class:"morsels-bodies"},e("div",{class:"morsels-body"},...o)));return i&&s.setAttribute("href",i),s}),i.bodyOnlyRender=i.bodyOnlyRender||((e,t,n)=>e("div",{class:"morsels-body"},...n)),i.highlightRender=i.highlightRender||((e,t,n)=>e("span",{class:"morsels-highlight"},n)),e.otherOptions=e.otherOptions||{}}(e,Ee);const{uiOptions:o}=e,i=new class{constructor(e){this.options=e,this.isSetupDone=!1,this.queries=Object.create(null),this.nextId=0,this.setupPromise=this.retrieveConfig().then((()=>a(this,void 0,void 0,(function*(){return new Promise((t=>a(this,void 0,void 0,(function*(){const n=`const __morsWrkrUrl="${new URL(u+`search-worker-${this.config.langConfig.lang}.bundle.js`,document.baseURI||self.location.href)+""}";importScripts(__morsWrkrUrl);`,o=URL.createObjectURL(new Blob([n],{type:"text/javascript"}));this.worker=new Worker(o),yield this.setupCache(`morsels:${e.url}`),this.worker.onmessage=e=>{if(e.data.query){const{query:t,queryId:n,nextResults:o,searchedTerms:i,queryParts:s}=e.data;this.queries[t][n].resolve({query:t,nextResults:o,searchedTerms:i,queryParts:s})}else""===e.data?(this.worker.postMessage(this.config),URL.revokeObjectURL(o)):e.data.isSetupDone&&t()},this.worker.onmessageerror=e=>{console.log(e)}}))))})))).then((()=>{this.setupFieldStoreCache(),this.setupIndexCache()})).then((()=>this.isSetupDone=!0))}setupCache(e){return a(this,void 0,void 0,(function*(){try{let t=yield caches.open(e);const n=yield t.match("/index_ver");if(n){const o=yield n.text();this.config.indexVer!==o&&(yield caches.delete(e),t=yield caches.open(e))}yield t.put("/index_ver",new Response(this.config.indexVer)),this.cache=new c(t)}catch(e){this.cache=new c(void 0)}}))}setupFieldStoreCache(){if(!this.options.cacheAllFieldStores)return;const{fieldStoreBlockSize:e,indexingConfig:t}=this.config,o=Math.min(e,t.numDocsPerBlock);for(let e=0;e{const t=Math.floor(e/this.config.indexingConfig.numPlsPerDir),n=`${this.options.url}pl_${t}/pl_${e}.json`;this.cache.cacheUrl(n)}))}retrieveConfig(){return a(this,void 0,void 0,(function*(){if(this.config=yield(yield fetch(`${this.options.url}morsels_config.json`)).json(),"0.1.0"!==this.config.ver)throw new Error("Morsels search !== indexer version!");"cacheAllFieldStores"in this.options||(this.options.cacheAllFieldStores=!!this.config.cacheAllFieldStores),this.options.useQueryTermProximity=this.options.useQueryTermProximity&&this.config.indexingConfig.withPositions,this.config.searcherOptions=this.options}))}deleteQuery(e,t){delete this.queries[e][t],0===Object.keys(this.queries[e]).length&&delete this.queries[e]}getQuery(e){return a(this,void 0,void 0,(function*(){yield this.setupPromise;const t=this.nextId;this.nextId+=1,this.queries[e]=this.queries[e]||{},this.queries[e][t]={promise:void 0,resolve:void 0},this.queries[e][t].promise=new Promise((n=>{this.queries[e][t].resolve=n,this.worker.postMessage({query:e,queryId:t})}));const o=yield this.queries[e][t].promise;return new class{constructor(e,t,n,o,i){this.query=e,this.searchedTerms=t,this.queryParts=n,this.getNextN=o,this.free=i}}(e,o.searchedTerms,o.queryParts,(o=>a(this,void 0,void 0,(function*(){if(!this.queries[e]||!this.queries[e][t])return[];if(yield this.queries[e][t].promise,this.queries[e][t].promise=new Promise((n=>{this.queries[e][t].resolve=n,this.worker.postMessage({query:e,queryId:t,isGetNextN:!0,n:o})})),!this.queries[e]||!this.queries[e][t])return[];const i=(yield this.queries[e][t].promise).nextResults.map((([e,t])=>new class{constructor(e,t,n){this.docId=e,this.score=t,this.fieldInfos=n,this.storage=Object.create(null)}populate(e,t,o){return i=this,s=void 0,l=function*(){const i=n(e,this.docId,o);try{const e=yield t.getJson(i);let n=this.docId%o.fieldStoreBlockSize;const{numDocsPerBlock:s}=o.indexingConfig;st.name===e)),n=this.storage.find((([e])=>e===t.id));return n?n[1]:""}getStorageWithFieldNames(){return this.storage.map((([e,t])=>[this.fieldInfos[e].name,t]))}}(e,t,this.config.fieldInfos)));return yield Promise.all(i.map((e=>e.populate(this.options.url,this.cache,this.config)))),i}))),(()=>{this.deleteQuery(e,t),this.worker.postMessage({query:e,isFree:!0})}))}))}}(e.searcherOptions);let s;const{root:r,listContainer:l,input:d}=function(e,t){const n=h("input",{class:"morsels-fs-input",type:"search",placeholder:e.uiOptions.fsPlaceholder,autocomplete:"false","aria-labelledby":"morsels-fs-label"});L(n,"morsels-fs-list");const o=h("button",{class:"morsels-input-close-fs"},e.uiOptions.fsCloseText);o.onclick=e=>{e.preventDefault(),t()};const i=h("ul",{id:"morsels-fs-list",class:"morsels-list","aria-labelledby":"morsels-fs-label"}),s=h("div",{class:"morsels-root morsels-fs-root"},h("form",{class:"morsels-fs-input-button-wrapper"},h("label",{id:"morsels-fs-label",for:"morsels-fs-input",style:"display: none"},e.uiOptions.label),n,o),i);s.onclick=e=>e.stopPropagation(),s.onmousedown=e=>e.stopPropagation(),C(s,i,e.uiOptions.label);const r=h("div",{class:"morsels-fs-backdrop"},s);return r.onmousedown=t,r.onkeyup=e=>{"Escape"===e.code&&(e.stopPropagation(),t())},{root:r,listContainer:i,input:n}}(e,(()=>s()));d.addEventListener("input",Ae(r,l,i,e)),l.appendChild(o.fsBlankRender(h,e));const f=()=>{!function(e,t,n){n.appendChild(e);const o=e.querySelector("input.morsels-fs-input");o&&o.focus();const i=t.querySelector(".focus");i&&t.scrollTo({top:i.offsetTop-t.offsetTop-30})}(r,l,o.fsContainer),Ce=!0};let m;s=()=>{r.remove(),Ce=!1};const{input:y,dropdownAlignment:v}=o;if(!y||o.mode!==E.Auto&&o.mode!==E.Dropdown){if(y&&o.mode===E.Fullscreen)y.addEventListener("focus",(()=>{f()}));else if(y&&o.mode===E.Target){y.addEventListener("input",Ae(o.target,o.target,i,e));let t=o.target.getAttribute("id");t||(o.target.setAttribute("id","morsels-target-list"),t="morsels-target-list"),L(y,t),C(y,o.target,o.label)}}else{const n=y.parentElement;y.remove();const{dropdownRoot:r,dropdownListContainer:l}=function(e,t){const n=h("ul",{id:"morsels-dropdown-list",class:"morsels-list"}),o=h("div",{class:"morsels-root"},t,h("div",{class:"morsels-inner-root",style:"display: none;"},h("div",{class:"morsels-input-dropdown-separator"}),n));return L(t,"morsels-dropdown-list"),C(o,n,e.uiOptions.label),{dropdownRoot:o,dropdownListContainer:n}}(e,y);function c(){Oe(),document.activeElement===y&&Te()}let a;m=l,n.appendChild(r),Te=()=>{!function(e,t,n){if(t.childElementCount){const o=e.lastElementChild,i=o.firstElementChild;o.style.display="block",((e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,l=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:i}),{x:a,y:u}=I(c,o,l),d=o,f={};for(let n=0;n{Object.assign(o.style,{left:`${e}px`,top:`${t}px`});const{x:s}=n.arrow;Object.assign(i.style,{left:null!=s?`${s}px`:""})}))}}(r,m,v),ke=!0},Oe=()=>{r.lastElementChild.style.display="none",ke=!1},y.addEventListener("input",Ae(r,m,i,e)),window.addEventListener("resize",(()=>{clearTimeout(a),a=setTimeout((()=>{o.mode!==E.Dropdown?(Ee=t(),Ee?Oe():(s(),c())):c()}),10)})),y.addEventListener("blur",(()=>{Le(o)&&setTimeout((()=>{let e=document.activeElement;for(;e;)if(e=e.parentElement,e===r)return void y.focus();Oe()}),100)})),y.addEventListener("focus",(()=>{Le(o)?Te():f()}))}function w(e){if(!["ArrowDown","ArrowUp","Home","End","Enter"].includes(e.key))return;let t,n=e=>{const n=e.offsetTop-t.offsetTop-t.clientHeight/2+e.clientHeight/2;t.scrollTo({top:n})};if(Le(o)){if(!ke)return;t=m}else if(o.mode===E.Target)t=o.target,n=e=>{e.scrollIntoView({block:"center"})};else{if(!Ce)return;t=l}const i=t.querySelector(".focus");function s(e){i&&(i.classList.remove("focus"),i.removeAttribute("aria-selected"),i.removeAttribute("id")),e.classList.add("focus"),e.setAttribute("aria-selected","true"),e.setAttribute("id","morsels-list-selected"),n(e)}function r(e,t){e&&!e.getAttribute(p)?s(e):t&&!t.getAttribute(p)&&s(t)}const c=t.firstElementChild,a=t.lastElementChild;if("ArrowDown"===e.key)i?r(i.nextElementSibling,null):r(c,null==c?void 0:c.nextElementSibling);else if("ArrowUp"===e.key)i&&r(i.previousElementSibling,null);else if("Home"===e.key)r(c,null==c?void 0:c.nextElementSibling);else if("End"===e.key)r(a,null==a?void 0:a.previousElementSibling);else if("Enter"===e.key&&i){const e=i.querySelector("a[href]");e&&(window.location.href=e.getAttribute("href"))}e.preventDefault()}return null==y||y.addEventListener("keydown",w),d.addEventListener("keydown",w),{showFullscreen:f,hideFullscreen:s}};return t.default})()})); \ No newline at end of file diff --git a/packages/mdbook-morsels/search-ui-dist/search-ui.css b/packages/mdbook-morsels/search-ui-dist/search-ui.css deleted file mode 100644 index 001e6cd4..00000000 --- a/packages/mdbook-morsels/search-ui-dist/search-ui.css +++ /dev/null @@ -1,413 +0,0 @@ -.morsels-root { - --morsels-dropdown-max-width: 512px; - --morsels-dropdown-max-height: 30em; - --morsels-font-size: 15px; - --morsels-border: none; - --morsels-box-shadow: 0 1px 5px rgba(196, 192, 187, 0.8); - --morsels-fg: black; - --morsels-bg: white; - --morsels-dropdown-input-separator-bg: white; - --morsels-item-border: none; - --morsels-item-border-radius: 8px; - --morsels-item-box-shadow: 0 3px 5px rgba(196, 192, 187, 0.5); - --morsels-item-sub-border: none; - --morsels-title-fg: rgb(20, 20, 20); - --morsels-title-bg: hsl(33, 95%, 87%); - --morsels-title-hover-fg: rgb(10, 10, 10); - --morsels-title-hover-bg: hsl(32, 99%, 80%); - --morsels-heading-fg: var(--morsels-fg); - --morsels-heading-bg: hsl(31, 70%, 97%); - --morsels-heading-hover-fg: var(--morsels-fg); - --morsels-heading-hover-bg: var(--morsels-title-bg); - --morsels-body-fg: var(--morsels-fg); - --morsels-body-bg: var(--morsels-bg); - --morsels-body-hover-fg: var(--morsels-fg); - --morsels-body-hover-bg: hsl(31, 95%, 97%); - --morsels-highlight: #ef9001; - --morsels-error-fg: black; - --morsels-fine-print-fg: rgba(0, 0, 0, 0.6); - --morsels-loading-bg: #fed; - --morsels-scrollbar-bg: rgba(213, 177, 137, 0.15); - --morsels-scrollbar-thumb-bg: rgba(213, 177, 137, 0.5); - --morsels-fullscreen-border: 3px solid var(--morsels-fullscreen-header-bg); - --morsels-fullscreen-box-shadow: 0 0 10px 3px rgb(218, 214, 208); - --morsels-fullscreen-desktop-width: 650px; - --morsels-fullscreen-desktop-height: 70%; - --morsels-fullscreen-header-bg: rgb(255, 255, 255); - --morsels-fullscreen-header-border-bottom: 1px solid rgba(190, 190, 190, 0.3); - --morsels-fullscreen-input-border: 2px solid rgba(253, 202, 144, 0.37); - --morsels-fullscreen-input-focus-border: 2px solid rgba(255, 169, 66, 0.8); - --morsels-fullscreen-input-focus-box-shadow: 0 0 5px rgba(255, 169, 66, 0.8); - --morsels-fullscreen-header-close-bg: rgb(255, 255, 255); - --morsels-fullscreen-header-close-fg: rgb(253, 202, 144); - --morsels-fullscreen-header-close-hover-bg: rgba(246, 170, 73, 0.7); - --morsels-fullscreen-header-close-hover-fg: rgb(255, 255, 255); - --morsels-fullscreen-header-close-active-bg: rgba(246, 170, 73, 0.95); - --morsels-fullscreen-header-close-active-fg: rgb(255, 255, 255); - display: inline-block; - position: relative; - width: 100%; - box-sizing: border-box; - font-size: var(--morsels-font-size); -} - -@media screen and (max-width: 1025px) { - .morsels-root { - --morsels-dropdown-max-width: 100vw; - --morsels-dropdown-max-height: 75vh; - } -} - -.morsels-root * { - box-sizing: border-box; -} - -/* - Fullscreen version - */ - -.morsels-fs-backdrop { - --morsels-fullscreen-backdrop-bg: rgba(0, 0, 0, 0.15); - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: 100vh; - background: var(--morsels-fullscreen-backdrop-bg); - z-index: 1000; -} - -.morsels-fs-root { - position: absolute; - width: 100%; - height: 100%; - background: var(--morsels-bg); - overflow: hidden; - z-index: 1000; -} - -.morsels-fs-input-button-wrapper { - display: flex; - align-items: center; - justify-content: space-between; - padding: 10px; - font-size: 1.2em; - background: var(--morsels-fullscreen-header-bg); - border-bottom: var(--morsels-fullscreen-header-border-bottom); - z-index: 1000; -} - -.morsels-fs-input { - flex: 1 0 0; - width: 0; - padding: 0.25em 0.8em; - outline: none; - border: var(--morsels-fullscreen-input-border); - border-radius: 30px; - font-size: inherit; -} - -.morsels-fs-input:focus { - border: var(--morsels-fullscreen-input-focus-border); - box-shadow: var(--morsels-fullscreen-input-focus-box-shadow); -} - -.morsels-input-close-fs { - position: relative; - border: none; - padding: 0.25em 0.8em; - border-radius: 1em; - margin-left: 7px; - font-size: inherit; - font-weight: 500; - cursor: pointer; - color: var(--morsels-fullscreen-header-close-fg); - background: var(--morsels-fullscreen-header-close-bg); - transition: background 0.2s linear, color 0.2s linear; -} - -@media (hover: hover) { - .morsels-input-close-fs:hover { - color: var(--morsels-fullscreen-header-close-hover-fg); - background: var(--morsels-fullscreen-header-close-hover-bg); - } -} - -.morsels-input-close-fs:active { - color: var(--morsels-fullscreen-header-close-active-fg); - background: var(--morsels-fullscreen-header-close-active-bg); -} - -.morsels-fs-blank { - text-align: center; - font-size: 0.9em; - color: var(--morsels-fine-print-fg); - padding: 1em; -} - -@media screen and (min-width: 1025px) { - .morsels-fs-root { - border-radius: 10px; - border: var(--morsels-fullscreen-border); - box-shadow: var(--morsels-fullscreen-box-shadow); - top: 15%; - left: calc(50% - (var(--morsels-fullscreen-desktop-width) / 2)); - width: var(--morsels-fullscreen-desktop-width); - height: var(--morsels-fullscreen-desktop-height); - } -} - -/* - Dropdown version - */ - -.morsels-input-dropdown-separator { - position: absolute; - top: 100%; - right: 16px; - z-index: 1001; - width: 0; - height: 0; - border-left: 9px solid transparent; - border-right: 9px solid transparent; - border-bottom: 9px solid var(--morsels-dropdown-input-separator-bg); -} - -.morsels-input-dropdown-separator.bottom-start { - left: 16px; - right: unset; -} - -/* - Both versions - */ - -.morsels-list { - padding: 0; - border: var(--morsels-border); - border-radius: 5px; - box-shadow: var(--morsels-box-shadow); - margin: 0; - position: absolute; - top: 0; - left: 100vw; - width: 100vw; - max-width: var(--morsels-dropdown-max-width); - overflow-y: auto; - list-style: none; - background-color: var(--morsels-bg); - font-size: inherit; - z-index: 1000; - scrollbar-color: var(--morsels-scrollbar-thumb-bg) var(--morsels-scrollbar-bg); - scrollbar-width: thin; -} - -.morsels-fs-root .morsels-list { - width: auto; - max-height: calc(100% - 20px - 2.7em); - max-width: none; - border: none; - box-shadow: none; - padding: 0 0.5em 0.5em 0.5em; - background-color: transparent; - position: static; -} - -@media screen and (max-width: 1025px) { - .morsels-fs-root .morsels-list { - /* Generous amount of bottom padding for device navigation bar. The alternative is dynamic style detection. */ - padding-bottom: 100px; - } -} - -.morsels-fs-root::-webkit-scrollbar-track, -.morsels-list::-webkit-scrollbar-track { - border-radius: 5px; - background: var(--morsels-scrollbar-bg); -} - -.morsels-list::-webkit-scrollbar { - width: 6px; - background-color: transparent; -} - -.morsels-list::-webkit-scrollbar-thumb { - border-radius: 5px; - background: var(--morsels-scrollbar-thumb-bg); -} - -.morsels-error { - text-align: center; - color: var(--morsels-error-fg); - padding: 1em; -} - -.morsels-no-results { - text-align: center; - font-size: 0.9em; - color: var(--morsels-fine-print-fg); - padding: 1em; -} - -.morsels-list-item { - font-size: inherit; - border: var(--morsels-item-border); - border-radius: var(--morsels-item-border-radius); - box-shadow: var(--morsels-item-box-shadow); - margin: 18px 5px; - overflow: hidden; -} - -@media screen and (min-width: 1025px) { - .morsels-list-item { - margin: 18px 12px; - } - - .morsels-list-item:first-child { - margin-top: 15px; - } -} - -.morsels-link, -.morsels-heading-body { - font-size: inherit; - text-decoration: none !important; -} - -.morsels-title { - color: var(--morsels-title-fg); - word-break: break-word; - padding: 0.2em 0.5em; - background: var(--morsels-title-bg); - font-size: 1.03em; - font-weight: 600; -} - -@media (hover: hover) { - .morsels-title:hover { - transition: background 0.1s ease-in-out, color 0.1s ease-in-out; - color: var(--morsels-title-hover-fg); - background: var(--morsels-title-hover-bg); - } -} - -.morsels-title:active { - transition: background 0.2s ease-in, color 0.2s ease-in; -} - -.morsels-title:active, -.morsels-list-item.focus .morsels-title { - color: var(--morsels-title-hover-fg); - background: var(--morsels-title-hover-bg); -} - -.morsels-heading-body { - display: flex; - text-decoration: none; - border-top: var(--morsels-item-sub-border); -} - -.morsels-heading { - width: 30%; - font-size: 0.99em; - word-break: break-word; - padding: 0.35em 0.5em; - display: inline-block; - vertical-align: top; - background: var(--morsels-heading-bg); - color: var(--morsels-heading-fg); -} - -@media (hover: hover) { - .morsels-heading-body:hover .morsels-heading { - transition: background 0.1s ease-in-out, color 0.1s ease-in-out; - color: var(--morsels-heading-hover-fg); - background: var(--morsels-heading-hover-bg); - } -} - -.morsels-heading-body:active .morsels-heading { - transition: background 0.2s ease-in, color 0.2s ease-in; -} - -.morsels-heading-body:active .morsels-heading, -.morsels-list-item.focus .morsels-heading-body .morsels-heading { - color: var(--morsels-heading-hover-fg); - background: var(--morsels-heading-hover-bg); -} - -.morsels-bodies { - flex: 1 0 70%; -} - -.morsels-body { - height: 100%; - font-size: 0.99em; - word-break: break-word; - grid-column-start: 2; - padding: 0.3em 0.4em; - color: var(--morsels-body-fg); - background: var(--morsels-body-bg); -} - -@media (hover: hover) { - .morsels-body:hover, - .morsels-heading-body:hover .morsels-body { - transition: background 0.1s ease-in-out, color 0.1s ease-in-out; - color: var(--morsels-body-hover-fg); - background-color: var(--morsels-body-hover-bg); - } -} - -.morsels-body:active, -.morsels-heading-body:active .morsels-body { - transition: background 0.2s ease-in, color 0.2s ease-in; -} - -.morsels-body:active, -.morsels-heading-body:active .morsels-body, -.morsels-list-item.focus .morsels-body { - color: var(--morsels-body-hover-fg); - background-color: var(--morsels-body-hover-bg); -} - -.morsels-highlight { - color: var(--morsels-highlight); - border-radius: 3px; - font-weight: bold; -} - -.morsels-ellipsis { - font-weight: 500; - opacity: 0.75; -} - -/* https://loading.io/css/ */ -.morsels-loading-indicator { - display: flex; - justify-content: center; - width: 100%; - margin: 10px 0; -} -.morsels-loading-indicator:after { - content: " "; - display: block; - width: 40px; - height: 40px; - margin: 4px; - border-radius: 50%; - border: 6px solid; - border-color: var(--morsels-loading-bg) transparent var(--morsels-loading-bg) transparent; - animation: morsels-loading-indicator 1.2s linear infinite; -} - -@keyframes morsels-loading-indicator { - 0% { - transform: rotate(0deg); - } - 100% { - transform: rotate(360deg); - } -} - - diff --git a/packages/mdbook-morsels/search-ui-dist/search-worker-ascii.bundle.js b/packages/mdbook-morsels/search-ui-dist/search-worker-ascii.bundle.js new file mode 100644 index 00000000..307e4390 --- /dev/null +++ b/packages/mdbook-morsels/search-ui-dist/search-worker-ascii.bundle.js @@ -0,0 +1 @@ +(()=>{var e,n,t,r,o,_={149:(e,n,t)=>{"use strict";t.a(e,(async e=>{t.r(n),t.d(n,{get_query:()=>r.R1,get_new_searcher:()=>r.qS}),t(899);var r=t(417),o=e([r]);r=(o.then?await o:o)[0]}))},899:(e,n,t)=>{t.p=__morsWrkrUrl.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")},417:(e,n,t)=>{"use strict";t.a(e,(async r=>{t.d(n,{qS:()=>O,R1:()=>A,ug:()=>P,G6:()=>N,uv:()=>Q,rp:()=>M,cb:()=>E,cI:()=>F,ry:()=>W,m_:()=>G,ff:()=>C,sv:()=>R,XP:()=>U,NA:()=>z,Gt:()=>D,fs:()=>H,Gn:()=>L,j2:()=>K,FP:()=>V,vz:()=>X,Rb:()=>Y,o$:()=>Z,_3:()=>J,Wl:()=>ee,Ge:()=>ne,OF:()=>te,xB:()=>re,KQ:()=>oe,vm:()=>_e,TL:()=>ie,Oo:()=>ce,oH:()=>ue,EF:()=>se,Ip:()=>ae,$q:()=>fe,qt:()=>be,j1:()=>le,cN:()=>de,vC:()=>ge,h4:()=>we,GW:()=>he,pT:()=>ye,lC:()=>pe,M1:()=>me,d8:()=>ve,ID:()=>xe,Zn:()=>je,fg:()=>qe,zr:()=>Se,HT:()=>Oe,fW:()=>Ae,td:()=>Ie,$0:()=>Te,oo:()=>$e,Ns:()=>ke,_8:()=>Be,Si:()=>Pe,i9:()=>Ne,I7:()=>Qe,_9:()=>Me,Cp:()=>Ee,zL:()=>Fe,fY:()=>We,Or:()=>Ge,pi:()=>Ce,My:()=>Re,jV:()=>Ue,a5:()=>ze});var o=t(739);e=t.hmd(e);var _=r([o]);o=(_.then?await _:_)[0];const i=new Array(32).fill(void 0);function c(e){return i[e]}i.push(void 0,null,!0,!1);let u=i.length;function s(e){const n=c(e);return function(e){e<36||(i[e]=u,u=e)}(e),n}function a(e){u===i.length&&i.push(i.length+1);const n=u;return u=i[n],i[n]=e,n}let f=0,b=null;function l(){return null!==b&&b.buffer===o.memory.buffer||(b=new Uint8Array(o.memory.buffer)),b}let d=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const g="function"==typeof d.encodeInto?function(e,n){return d.encodeInto(e,n)}:function(e,n){const t=d.encode(e);return n.set(t),{read:e.length,written:t.length}};function w(e,n,t){if(void 0===t){const t=d.encode(e),r=n(t.length);return l().subarray(r,r+t.length).set(t),f=t.length,r}let r=e.length,o=n(r);const _=l();let i=0;for(;i127)break;_[o+i]=n}if(i!==r){0!==i&&(e=e.slice(i)),o=t(o,r,r=i+3*e.length);const n=l().subarray(o+i,o+r);i+=g(e,n).written}return f=i,o}function h(e){return null==e}let y=null;function p(){return null!==y&&y.buffer===o.memory.buffer||(y=new Int32Array(o.memory.buffer)),y}let m=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function v(e,n){return m.decode(l().subarray(e,e+n))}m.decode();let x=null;function j(e){const n=typeof e;if("number"==n||"boolean"==n||null==e)return`${e}`;if("string"==n)return`"${e}"`;if("symbol"==n){const n=e.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==n){const n=e.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(e)){const n=e.length;let t="[";n>0&&(t+=j(e[0]));for(let r=1;r1))return toString.call(e);if(r=t[1],"Object"==r)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function q(e,n,t){o._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hadd0ab134d9221a1(e,n,a(t))}function S(e,n){try{return e.apply(this,n)}catch(e){o.__wbindgen_exn_store(a(e))}}function O(e,n,t){return s(o.get_new_searcher(a(e),a(n),a(t)))}function A(e,n){const t=w(n,o.__wbindgen_malloc,o.__wbindgen_realloc),r=f;return s(o.get_query(e,t,r))}const I=new Uint32Array(2),T=new BigUint64Array(I.buffer),$=new BigInt64Array(I.buffer);class k{static __wrap(e){const n=Object.create(k.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();o.__wbg_query_free(e)}get_next_n(e){return s(o.query_get_next_n(this.ptr,e))}get_query_parts(){return s(o.query_get_query_parts(this.ptr))}get_searched_terms(){return s(o.query_get_searched_terms(this.ptr))}}class B{static __wrap(e){const n=Object.create(B.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();o.__wbg_searcher_free(e)}get_ptr(){return o.searcher_get_ptr(this.ptr)}}function P(e){s(e)}function N(e){const n=s(e).original;return 1==n.cnt--&&(n.a=0,!0)}function Q(e,n){return a(new Error(v(e,n)))}function M(e,n){return a(c(e)[n>>>0])}function E(e){return a(new Uint8Array(c(e)))}function F(e){return a(B.__wrap(e))}function W(){return S((function(e,n,t){return a(c(e).call(c(n),c(t)))}),arguments)}function G(e){return a(c(e))}function C(e){return a(k.__wrap(e))}function R(){return S((function(e){return a(c(e).caches)}),arguments)}function U(e){return void 0===c(e)}function z(e,n,t){return a(c(e).open(v(n,t)))}function D(e){return c(e)instanceof Cache}function H(e,n,t){return a(c(e).match(v(n,t)))}function L(e){return c(e)instanceof Response}function K(e,n,t){return a(c(e).fetch(v(n,t)))}function V(){return S((function(e){return a(c(e).arrayBuffer())}),arguments)}function X(){return a(Symbol.iterator)}function Y(){return S((function(e,n){return a(Reflect.get(c(e),c(n)))}),arguments)}function Z(e){return"function"==typeof c(e)}function J(){return S((function(e,n){return a(c(e).call(c(n)))}),arguments)}function ee(e){const n=c(e);return"object"==typeof n&&null!==n}function ne(e){return a(c(e).next)}function te(){return S((function(){return a(self.self)}),arguments)}function re(){return S((function(){return a(window.window)}),arguments)}function oe(){return S((function(){return a(globalThis.globalThis)}),arguments)}function _e(){return S((function(){return a(t.g.global)}),arguments)}function ie(e,n){return a(new Function(v(e,n)))}function ce(e){return c(e).length}function ue(){return a(o.memory)}function se(e){return a(c(e).buffer)}function ae(e,n,t){c(e).set(c(n),t>>>0)}function fe(){return S((function(e,n){return Reflect.has(c(e),c(n))}),arguments)}function be(e,n){const t=c(n),r="string"==typeof t?t:void 0;var _=h(r)?0:w(r,o.__wbindgen_malloc,o.__wbindgen_realloc),i=f;p()[e/4+1]=i,p()[e/4+0]=_}function le(){return a(new Array)}function de(){return a(new Object)}function ge(e,n,t){c(e)[s(n)]=s(t)}function we(e,n){return a(v(e,n))}function he(e,n,t){c(e)[n>>>0]=s(t)}function ye(e){return a(e)}function pe(e,n){return a(c(e)[s(n)])}function me(e,n){const t=c(n),r="number"==typeof t?t:void 0;(null!==x&&x.buffer===o.memory.buffer||(x=new Float64Array(o.memory.buffer)),x)[e/8+1]=h(r)?0:r,p()[e/4+0]=!h(r)}function ve(e,n){try{var t={a:e,b:n};const r=new Promise(((e,n)=>{const r=t.a;t.a=0;try{return function(e,n,t,r){o.wasm_bindgen__convert__closures__invoke2_mut__h47463d6c726930e9(e,n,a(t),a(r))}(r,t.b,e,n)}finally{t.a=r}}));return a(r)}finally{t.a=t.b=0}}function xe(){return S((function(e){return a(c(e).next())}),arguments)}function je(e){return c(e).done}function qe(e){return a(c(e).value)}function Se(e){return null===c(e)}function Oe(e){const n=c(e);return"boolean"==typeof n?n?1:0:2}function Ae(e){return"bigint"==typeof c(e)}function Ie(e,n){const t=BigInt(c(n));$[0]=t;const r=I[0],o=I[1];p()[e/4+1]=o,p()[e/4+0]=r}function Te(e,n){I[0]=e,I[1]=n;const t=$[0];return a(BigInt(t))}function $e(e,n){return Object.is(c(e),c(n))}function ke(e){return Number.isSafeInteger(c(e))}function Be(e){return Array.isArray(c(e))}function Pe(e,n){const t=BigInt(c(n));T[0]=t;const r=I[0],o=I[1];p()[e/4+1]=o,p()[e/4+0]=r}function Ne(e,n){I[0]=e,I[1]=n;const t=T[0];return a(BigInt(t))}function Qe(e){return c(e).length}function Me(e){return a(Object.entries(c(e)))}function Ee(e){return c(e)instanceof Uint8Array}function Fe(e){return c(e)instanceof ArrayBuffer}function We(e,n){const t=w(j(c(n)),o.__wbindgen_malloc,o.__wbindgen_realloc),r=f;p()[e/4+1]=r,p()[e/4+0]=t}function Ge(e,n){throw new Error(v(e,n))}function Ce(e,n,t){return a(c(e).then(c(n),c(t)))}function Re(e){return a(Promise.resolve(c(e)))}function Ue(e,n){return a(c(e).then(c(n)))}function ze(e,n,t){const r=function(e,n,t,r){const _={a:e,b:n,cnt:1,dtor:34},i=(...e)=>{_.cnt++;const n=_.a;_.a=0;try{return r(n,_.b,...e)}finally{0==--_.cnt?o.__wbindgen_export_2.get(_.dtor)(n,_.b):_.a=n}};return i.original=_,i}(e,n,0,q);return a(r)}}))},739:(e,n,t)=>{"use strict";var r=([r])=>t.v(n,e.id,"cf6131d890b0d0dc6778",{"./index_bg.js":{__wbindgen_object_drop_ref:r.ug,__wbindgen_cb_drop:r.G6,__wbg_new_3047bf4b4f02b802:r.uv,__wbg_get_590a2cd912f2ae46:r.rp,__wbg_new_cc9018bd6f283b6f:r.cb,__wbg_searcher_new:r.cI,__wbg_call_3ed288a247f13ea5:r.ry,__wbindgen_object_clone_ref:r.m_,__wbg_query_new:r.ff,__wbg_caches_3efbf43695d369e8:r.sv,__wbindgen_is_undefined:r.XP,__wbg_open_52c5eb54032958d7:r.NA,__wbg_instanceof_Cache_47b072f80dd516f7:r.Gt,__wbg_match_739a4765298f04bf:r.fs,__wbg_instanceof_Response_ccfeb62399355bcd:r.Gn,__wbg_fetch_8df5fcf7dd9fd853:r.j2,__wbg_arrayBuffer_5a99283a3954c850:r.FP,__wbg_iterator_4832ef1f15b0382b:r.vz,__wbg_get_a9cab131e3152c49:r.Rb,__wbindgen_is_function:r.o$,__wbg_call_ae78342adc33730a:r._3,__wbindgen_is_object:r.Wl,__wbg_next_cabb70b365520721:r.Ge,__wbg_self_99737b4dcdf6f0d8:r.OF,__wbg_window_9b61fbbf3564c4fb:r.xB,__wbg_globalThis_8e275ef40caea3a3:r.KQ,__wbg_global_5de1e0f82bddcd27:r.vm,__wbg_newnoargs_e23b458e372830de:r.TL,__wbg_length_0acb1cf9bbaf8519:r.Oo,__wbindgen_memory:r.oH,__wbg_buffer_7af23f65f6c64548:r.EF,__wbg_set_f25e869e4565d2a2:r.Ip,__wbg_has_ce995ec88636803d:r.$q,__wbindgen_string_get:r.qt,__wbg_new_94fb1279cf6afea5:r.j1,__wbg_new_36359baae5a47e27:r.cN,__wbg_set_e93b31d47b90bff6:r.vC,__wbindgen_string_new:r.h4,__wbg_set_561aac756158708c:r.GW,__wbindgen_number_new:r.pT,__wbg_get_093fe3cdafaf8976:r.lC,__wbindgen_number_get:r.M1,__wbg_new_37705eed627d5ed9:r.d8,__wbg_next_bf3d83fc18df496e:r.ID,__wbg_done_040f966faa9a72b3:r.Zn,__wbg_value_419afbd9b9574c4c:r.fg,__wbindgen_is_null:r.zr,__wbindgen_boolean_get:r.HT,__wbindgen_is_bigint:r.fW,__wbg_BigInt_4365947136b5327c:r.td,__wbg_BigInt_73b2c10d8e6eb5a5:r.$0,__wbg_is_40969b082b54c84d:r.oo,__wbg_isSafeInteger_c87467ed96815119:r.Ns,__wbg_isArray_6721f2e508996340:r._8,__wbg_BigInt_6b6f34a01a71ad51:r.Si,__wbg_BigInt_1a499fbb5f402f4c:r.i9,__wbg_length_2cd798326f2cc4c1:r.I7,__wbg_entries_aaf7a1fbe90f014a:r._9,__wbg_instanceof_Uint8Array_edb92795fc0c63b4:r.Cp,__wbg_instanceof_ArrayBuffer_b81b40c2ae0ab898:r.zL,__wbindgen_debug_string:r.fY,__wbindgen_throw:r.Or,__wbg_then_842e65b843962f56:r.pi,__wbg_resolve_a9a87bdd64e9e62c:r.My,__wbg_then_ce526c837d07b68f:r.jV,__wbindgen_closure_wrapper896:r.a5}});t.a(e,(e=>{var n=e([t(417)]);return n.then?n.then(r):r(n)}),1)}},i={};function c(e){var n=i[e];if(void 0!==n)return n.exports;var t=i[e]={id:e,loaded:!1,exports:{}};return _[e](t,t.exports,c),t.loaded=!0,t.exports}e="function"==typeof Symbol?Symbol("webpack then"):"__webpack_then__",n="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",t=e=>{e&&(e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},r=e=>!--e.r&&e(),o=(e,n)=>e?e.push(n):r(n),c.a=(_,i,c)=>{var u,s,a,f=c&&[],b=_.exports,l=!0,d=!1,g=(n,t,r)=>{d||(d=!0,t.r+=n.length,n.map(((n,o)=>n[e](t,r))),d=!1)},w=new Promise(((e,n)=>{a=n,s=()=>(e(b),t(f),f=0)}));w[n]=b,w[e]=(e,n)=>{if(l)return r(e);u&&g(u,e,n),o(f,e),w.catch(n)},_.exports=w,i((_=>{if(!_)return s();var i,c;u=(_=>_.map((_=>{if(null!==_&&"object"==typeof _){if(_[e])return _;if(_.then){var i=[];_.then((e=>{c[n]=e,t(i),i=0}));var c={};return c[e]=(e,n)=>(o(i,e),_.catch(n)),c}}var u={};return u[e]=e=>r(e),u[n]=_,u})))(_);var a=new Promise(((e,t)=>{(i=()=>e(c=u.map((e=>e[n])))).r=0,g(u,i,t)}));return i.r?a:c})).then(s,a),l=!1},c.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return c.d(n,{a:n}),n},c.d=(e,n)=>{for(var t in n)c.o(n,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.v=(e,n,t,r)=>{var o=fetch(c.p+""+t+".module.wasm");return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(o,r).then((n=>Object.assign(e,n.instance.exports))):o.then((e=>e.arrayBuffer())).then((e=>WebAssembly.instantiate(e,r))).then((n=>Object.assign(e,n.instance.exports)))},(()=>{var e;c.g.importScripts&&(e=c.g.location+"");var n=c.g.document;if(!e&&n&&(n.currentScript&&(e=n.currentScript.src),!e)){var t=n.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=e})(),(()=>{"use strict";c(899);class e{constructor(e,n,t){this.searchedTerms=e,this.queryParts=n,this.query=t}getNextN(e){return this.query.get_next_n(e)}free(){this.query.free()}}var n=function(e,n,t,r){return new(t||(t=Promise))((function(o,_){function i(e){try{u(r.next(e))}catch(e){_(e)}}function c(e){try{u(r.throw(e))}catch(e){_(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,c)}u((r=r.apply(e,n||[])).next())}))};class t{constructor(e){this.config=e,this.workerQueries=Object.create(null)}processQuery(t,r){return n(this,void 0,void 0,(function*(){const n=yield this.wasmModule.get_query(this.wasmSearcher.get_ptr(),t);return this.workerQueries[t]=this.workerQueries[t]||{},this.workerQueries[t][r]=new e(n.get_searched_terms(),n.get_query_parts(),n),this.workerQueries[t][r]}))}getQueryNextN(e,n,t){return this.workerQueries[e][n].getNextN(t)}freeQuery(e,n){this.workerQueries[e][n]&&this.workerQueries[e][n].free(),delete this.workerQueries[e][n],0===Object.keys(this.workerQueries[e]).length&&delete this.workerQueries[e]}setupWasm(e,t){return n(this,void 0,void 0,(function*(){const[n,r]=e;this.wasmModule=yield t,this.wasmSearcher=yield this.wasmModule.get_new_searcher(this.config,n,r)}))}static setup(e,r){return n(this,void 0,void 0,(function*(){const n=new t(e),o=e.searcherOptions.url,_=`${o}bitmap_docinfo_dicttable.json`,i=`${o}dictionary_string.json`;let c;try{c=yield caches.open(`morsels:${o}`)}catch(e){}const u=yield Promise.all([(c?c.match(_).then((e=>!e&&c.add(_))).then((()=>c.match(_))):fetch(_)).then((e=>e.arrayBuffer())),(c?c.match(i).then((e=>!e&&c.add(i))).then((()=>c.match(i))):fetch(i)).then((e=>e.arrayBuffer()))]);return yield n.setupWasm(u,r),n}))}}!function(e){let n;onmessage=function(r){return o=this,_=void 0,c=function*(){if(r.data.searcherOptions)n=yield t.setup(r.data,e),postMessage({isSetupDone:!0});else if(r.data.query){const{query:e,queryId:t,n:o,isFree:_,isGetNextN:i}=r.data;if(_)n.freeQuery(e,t);else if(i){const r=n.getQueryNextN(e,t,o);postMessage({query:e,queryId:t,nextResults:r})}else{const r=yield n.processQuery(e,t);postMessage({query:e,queryId:t,searchedTerms:r.searchedTerms,queryParts:r.queryParts})}}},new((i=void 0)||(i=Promise))((function(e,n){function t(e){try{u(c.next(e))}catch(e){n(e)}}function r(e){try{u(c.throw(e))}catch(e){n(e)}}function u(n){var o;n.done?e(n.value):(o=n.value,o instanceof i?o:new i((function(e){e(o)}))).then(t,r)}u((c=c.apply(o,_||[])).next())}));var o,_,i,c},postMessage("")}(Promise.resolve().then(c.bind(c,149)))})()})(); \ No newline at end of file diff --git a/packages/mdbook-morsels/search-ui-dist/search-worker-chinese.bundle.js b/packages/mdbook-morsels/search-ui-dist/search-worker-chinese.bundle.js new file mode 100644 index 00000000..976ffa10 --- /dev/null +++ b/packages/mdbook-morsels/search-ui-dist/search-worker-chinese.bundle.js @@ -0,0 +1 @@ +(()=>{var e,n,t,r,o,_={707:(e,n,t)=>{"use strict";t.a(e,(async e=>{t.r(n),t.d(n,{get_query:()=>r.R1,get_new_searcher:()=>r.qS}),t(899);var r=t(440),o=e([r]);r=(o.then?await o:o)[0]}))},899:(e,n,t)=>{t.p=__morsWrkrUrl.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")},440:(e,n,t)=>{"use strict";t.a(e,(async r=>{t.d(n,{qS:()=>S,R1:()=>O,Wl:()=>P,lC:()=>N,M1:()=>Q,ug:()=>M,d8:()=>E,vz:()=>F,Rb:()=>W,o$:()=>G,_3:()=>C,Ge:()=>R,OF:()=>U,xB:()=>z,KQ:()=>D,vm:()=>H,XP:()=>L,TL:()=>K,Oo:()=>V,oH:()=>X,EF:()=>Y,cb:()=>Z,Ip:()=>J,$q:()=>ee,qt:()=>ne,j1:()=>te,cN:()=>re,vC:()=>oe,h4:()=>_e,GW:()=>ie,pT:()=>ce,uv:()=>ue,G6:()=>se,rp:()=>ae,m_:()=>fe,ff:()=>be,ry:()=>le,sv:()=>de,NA:()=>ge,Gt:()=>we,fs:()=>he,Gn:()=>ye,j2:()=>pe,FP:()=>me,cI:()=>ve,ID:()=>xe,Zn:()=>je,fg:()=>qe,zr:()=>Se,HT:()=>Oe,fW:()=>Ae,td:()=>Ie,$0:()=>ke,oo:()=>Te,Ns:()=>$e,_8:()=>Be,Si:()=>Pe,i9:()=>Ne,I7:()=>Qe,_9:()=>Me,Cp:()=>Ee,zL:()=>Fe,fY:()=>We,Or:()=>Ge,pi:()=>Ce,My:()=>Re,jV:()=>Ue,kE:()=>ze});var o=t(926);e=t.hmd(e);var _=r([o]);o=(_.then?await _:_)[0];const i=new Array(32).fill(void 0);function c(e){return i[e]}function u(e){return null==e}i.push(void 0,null,!0,!1);let s=null,a=null;function f(){return null!==a&&a.buffer===o.memory.buffer||(a=new Int32Array(o.memory.buffer)),a}let b=i.length;function l(e){const n=c(e);return function(e){e<36||(i[e]=b,b=e)}(e),n}function d(e){b===i.length&&i.push(i.length+1);const n=b;return b=i[n],i[n]=e,n}let g=0,w=null;function h(){return null!==w&&w.buffer===o.memory.buffer||(w=new Uint8Array(o.memory.buffer)),w}let y=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const p="function"==typeof y.encodeInto?function(e,n){return y.encodeInto(e,n)}:function(e,n){const t=y.encode(e);return n.set(t),{read:e.length,written:t.length}};function m(e,n,t){if(void 0===t){const t=y.encode(e),r=n(t.length);return h().subarray(r,r+t.length).set(t),g=t.length,r}let r=e.length,o=n(r);const _=h();let i=0;for(;i127)break;_[o+i]=n}if(i!==r){0!==i&&(e=e.slice(i)),o=t(o,r,r=i+3*e.length);const n=h().subarray(o+i,o+r);i+=p(e,n).written}return g=i,o}let v=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function x(e,n){return v.decode(h().subarray(e,e+n))}function j(e){const n=typeof e;if("number"==n||"boolean"==n||null==e)return`${e}`;if("string"==n)return`"${e}"`;if("symbol"==n){const n=e.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==n){const n=e.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(e)){const n=e.length;let t="[";n>0&&(t+=j(e[0]));for(let r=1;r1))return toString.call(e);if(r=t[1],"Object"==r)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function q(e,n,t){o._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hadd0ab134d9221a1(e,n,d(t))}function S(e,n,t){return l(o.get_new_searcher(d(e),d(n),d(t)))}function O(e,n){const t=m(n,o.__wbindgen_malloc,o.__wbindgen_realloc),r=g;return l(o.get_query(e,t,r))}function A(e,n){try{return e.apply(this,n)}catch(e){o.__wbindgen_exn_store(d(e))}}v.decode();const I=new Uint32Array(2),k=new BigUint64Array(I.buffer),T=new BigInt64Array(I.buffer);class ${static __wrap(e){const n=Object.create($.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();o.__wbg_query_free(e)}get_next_n(e){return l(o.query_get_next_n(this.ptr,e))}get_query_parts(){return l(o.query_get_query_parts(this.ptr))}get_searched_terms(){return l(o.query_get_searched_terms(this.ptr))}}class B{static __wrap(e){const n=Object.create(B.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();o.__wbg_searcher_free(e)}get_ptr(){return o.searcher_get_ptr(this.ptr)}}function P(e){const n=c(e);return"object"==typeof n&&null!==n}function N(e,n){return d(c(e)[l(n)])}function Q(e,n){const t=c(n),r="number"==typeof t?t:void 0;(null!==s&&s.buffer===o.memory.buffer||(s=new Float64Array(o.memory.buffer)),s)[e/8+1]=u(r)?0:r,f()[e/4+0]=!u(r)}function M(e){l(e)}function E(e,n){try{var t={a:e,b:n};const r=new Promise(((e,n)=>{const r=t.a;t.a=0;try{return function(e,n,t,r){o.wasm_bindgen__convert__closures__invoke2_mut__h47463d6c726930e9(e,n,d(t),d(r))}(r,t.b,e,n)}finally{t.a=r}}));return d(r)}finally{t.a=t.b=0}}function F(){return d(Symbol.iterator)}function W(){return A((function(e,n){return d(Reflect.get(c(e),c(n)))}),arguments)}function G(e){return"function"==typeof c(e)}function C(){return A((function(e,n){return d(c(e).call(c(n)))}),arguments)}function R(e){return d(c(e).next)}function U(){return A((function(){return d(self.self)}),arguments)}function z(){return A((function(){return d(window.window)}),arguments)}function D(){return A((function(){return d(globalThis.globalThis)}),arguments)}function H(){return A((function(){return d(t.g.global)}),arguments)}function L(e){return void 0===c(e)}function K(e,n){return d(new Function(x(e,n)))}function V(e){return c(e).length}function X(){return d(o.memory)}function Y(e){return d(c(e).buffer)}function Z(e){return d(new Uint8Array(c(e)))}function J(e,n,t){c(e).set(c(n),t>>>0)}function ee(){return A((function(e,n){return Reflect.has(c(e),c(n))}),arguments)}function ne(e,n){const t=c(n),r="string"==typeof t?t:void 0;var _=u(r)?0:m(r,o.__wbindgen_malloc,o.__wbindgen_realloc),i=g;f()[e/4+1]=i,f()[e/4+0]=_}function te(){return d(new Array)}function re(){return d(new Object)}function oe(e,n,t){c(e)[l(n)]=l(t)}function _e(e,n){return d(x(e,n))}function ie(e,n,t){c(e)[n>>>0]=l(t)}function ce(e){return d(e)}function ue(e,n){return d(new Error(x(e,n)))}function se(e){const n=l(e).original;return 1==n.cnt--&&(n.a=0,!0)}function ae(e,n){return d(c(e)[n>>>0])}function fe(e){return d(c(e))}function be(e){return d($.__wrap(e))}function le(){return A((function(e,n,t){return d(c(e).call(c(n),c(t)))}),arguments)}function de(){return A((function(e){return d(c(e).caches)}),arguments)}function ge(e,n,t){return d(c(e).open(x(n,t)))}function we(e){return c(e)instanceof Cache}function he(e,n,t){return d(c(e).match(x(n,t)))}function ye(e){return c(e)instanceof Response}function pe(e,n,t){return d(c(e).fetch(x(n,t)))}function me(){return A((function(e){return d(c(e).arrayBuffer())}),arguments)}function ve(e){return d(B.__wrap(e))}function xe(){return A((function(e){return d(c(e).next())}),arguments)}function je(e){return c(e).done}function qe(e){return d(c(e).value)}function Se(e){return null===c(e)}function Oe(e){const n=c(e);return"boolean"==typeof n?n?1:0:2}function Ae(e){return"bigint"==typeof c(e)}function Ie(e,n){const t=BigInt(c(n));T[0]=t;const r=I[0],o=I[1];f()[e/4+1]=o,f()[e/4+0]=r}function ke(e,n){I[0]=e,I[1]=n;const t=T[0];return d(BigInt(t))}function Te(e,n){return Object.is(c(e),c(n))}function $e(e){return Number.isSafeInteger(c(e))}function Be(e){return Array.isArray(c(e))}function Pe(e,n){const t=BigInt(c(n));k[0]=t;const r=I[0],o=I[1];f()[e/4+1]=o,f()[e/4+0]=r}function Ne(e,n){I[0]=e,I[1]=n;const t=k[0];return d(BigInt(t))}function Qe(e){return c(e).length}function Me(e){return d(Object.entries(c(e)))}function Ee(e){return c(e)instanceof Uint8Array}function Fe(e){return c(e)instanceof ArrayBuffer}function We(e,n){const t=m(j(c(n)),o.__wbindgen_malloc,o.__wbindgen_realloc),r=g;f()[e/4+1]=r,f()[e/4+0]=t}function Ge(e,n){throw new Error(x(e,n))}function Ce(e,n,t){return d(c(e).then(c(n),c(t)))}function Re(e){return d(Promise.resolve(c(e)))}function Ue(e,n){return d(c(e).then(c(n)))}function ze(e,n,t){const r=function(e,n,t,r){const _={a:e,b:n,cnt:1,dtor:42},i=(...e)=>{_.cnt++;const n=_.a;_.a=0;try{return r(n,_.b,...e)}finally{0==--_.cnt?o.__wbindgen_export_2.get(_.dtor)(n,_.b):_.a=n}};return i.original=_,i}(e,n,0,q);return d(r)}}))},926:(e,n,t)=>{"use strict";var r=([r])=>t.v(n,e.id,"0b134177364a1f8427a1",{"./index_bg.js":{__wbindgen_is_object:r.Wl,__wbg_get_093fe3cdafaf8976:r.lC,__wbindgen_number_get:r.M1,__wbindgen_object_drop_ref:r.ug,__wbg_new_37705eed627d5ed9:r.d8,__wbg_iterator_4832ef1f15b0382b:r.vz,__wbg_get_a9cab131e3152c49:r.Rb,__wbindgen_is_function:r.o$,__wbg_call_ae78342adc33730a:r._3,__wbg_next_cabb70b365520721:r.Ge,__wbg_self_99737b4dcdf6f0d8:r.OF,__wbg_window_9b61fbbf3564c4fb:r.xB,__wbg_globalThis_8e275ef40caea3a3:r.KQ,__wbg_global_5de1e0f82bddcd27:r.vm,__wbindgen_is_undefined:r.XP,__wbg_newnoargs_e23b458e372830de:r.TL,__wbg_length_0acb1cf9bbaf8519:r.Oo,__wbindgen_memory:r.oH,__wbg_buffer_7af23f65f6c64548:r.EF,__wbg_new_cc9018bd6f283b6f:r.cb,__wbg_set_f25e869e4565d2a2:r.Ip,__wbg_has_ce995ec88636803d:r.$q,__wbindgen_string_get:r.qt,__wbg_new_94fb1279cf6afea5:r.j1,__wbg_new_36359baae5a47e27:r.cN,__wbg_set_e93b31d47b90bff6:r.vC,__wbindgen_string_new:r.h4,__wbg_set_561aac756158708c:r.GW,__wbindgen_number_new:r.pT,__wbg_new_3047bf4b4f02b802:r.uv,__wbindgen_cb_drop:r.G6,__wbg_get_590a2cd912f2ae46:r.rp,__wbindgen_object_clone_ref:r.m_,__wbg_query_new:r.ff,__wbg_call_3ed288a247f13ea5:r.ry,__wbg_caches_3efbf43695d369e8:r.sv,__wbg_open_52c5eb54032958d7:r.NA,__wbg_instanceof_Cache_47b072f80dd516f7:r.Gt,__wbg_match_739a4765298f04bf:r.fs,__wbg_instanceof_Response_ccfeb62399355bcd:r.Gn,__wbg_fetch_8df5fcf7dd9fd853:r.j2,__wbg_arrayBuffer_5a99283a3954c850:r.FP,__wbg_searcher_new:r.cI,__wbg_next_bf3d83fc18df496e:r.ID,__wbg_done_040f966faa9a72b3:r.Zn,__wbg_value_419afbd9b9574c4c:r.fg,__wbindgen_is_null:r.zr,__wbindgen_boolean_get:r.HT,__wbindgen_is_bigint:r.fW,__wbg_BigInt_4365947136b5327c:r.td,__wbg_BigInt_73b2c10d8e6eb5a5:r.$0,__wbg_is_40969b082b54c84d:r.oo,__wbg_isSafeInteger_c87467ed96815119:r.Ns,__wbg_isArray_6721f2e508996340:r._8,__wbg_BigInt_6b6f34a01a71ad51:r.Si,__wbg_BigInt_1a499fbb5f402f4c:r.i9,__wbg_length_2cd798326f2cc4c1:r.I7,__wbg_entries_aaf7a1fbe90f014a:r._9,__wbg_instanceof_Uint8Array_edb92795fc0c63b4:r.Cp,__wbg_instanceof_ArrayBuffer_b81b40c2ae0ab898:r.zL,__wbindgen_debug_string:r.fY,__wbindgen_throw:r.Or,__wbg_then_842e65b843962f56:r.pi,__wbg_resolve_a9a87bdd64e9e62c:r.My,__wbg_then_ce526c837d07b68f:r.jV,__wbindgen_closure_wrapper1365:r.kE}});t.a(e,(e=>{var n=e([t(440)]);return n.then?n.then(r):r(n)}),1)}},i={};function c(e){var n=i[e];if(void 0!==n)return n.exports;var t=i[e]={id:e,loaded:!1,exports:{}};return _[e](t,t.exports,c),t.loaded=!0,t.exports}e="function"==typeof Symbol?Symbol("webpack then"):"__webpack_then__",n="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",t=e=>{e&&(e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},r=e=>!--e.r&&e(),o=(e,n)=>e?e.push(n):r(n),c.a=(_,i,c)=>{var u,s,a,f=c&&[],b=_.exports,l=!0,d=!1,g=(n,t,r)=>{d||(d=!0,t.r+=n.length,n.map(((n,o)=>n[e](t,r))),d=!1)},w=new Promise(((e,n)=>{a=n,s=()=>(e(b),t(f),f=0)}));w[n]=b,w[e]=(e,n)=>{if(l)return r(e);u&&g(u,e,n),o(f,e),w.catch(n)},_.exports=w,i((_=>{if(!_)return s();var i,c;u=(_=>_.map((_=>{if(null!==_&&"object"==typeof _){if(_[e])return _;if(_.then){var i=[];_.then((e=>{c[n]=e,t(i),i=0}));var c={};return c[e]=(e,n)=>(o(i,e),_.catch(n)),c}}var u={};return u[e]=e=>r(e),u[n]=_,u})))(_);var a=new Promise(((e,t)=>{(i=()=>e(c=u.map((e=>e[n])))).r=0,g(u,i,t)}));return i.r?a:c})).then(s,a),l=!1},c.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return c.d(n,{a:n}),n},c.d=(e,n)=>{for(var t in n)c.o(n,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.v=(e,n,t,r)=>{var o=fetch(c.p+""+t+".module.wasm");return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(o,r).then((n=>Object.assign(e,n.instance.exports))):o.then((e=>e.arrayBuffer())).then((e=>WebAssembly.instantiate(e,r))).then((n=>Object.assign(e,n.instance.exports)))},(()=>{var e;c.g.importScripts&&(e=c.g.location+"");var n=c.g.document;if(!e&&n&&(n.currentScript&&(e=n.currentScript.src),!e)){var t=n.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=e})(),(()=>{"use strict";c(899);class e{constructor(e,n,t){this.searchedTerms=e,this.queryParts=n,this.query=t}getNextN(e){return this.query.get_next_n(e)}free(){this.query.free()}}var n=function(e,n,t,r){return new(t||(t=Promise))((function(o,_){function i(e){try{u(r.next(e))}catch(e){_(e)}}function c(e){try{u(r.throw(e))}catch(e){_(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,c)}u((r=r.apply(e,n||[])).next())}))};class t{constructor(e){this.config=e,this.workerQueries=Object.create(null)}processQuery(t,r){return n(this,void 0,void 0,(function*(){const n=yield this.wasmModule.get_query(this.wasmSearcher.get_ptr(),t);return this.workerQueries[t]=this.workerQueries[t]||{},this.workerQueries[t][r]=new e(n.get_searched_terms(),n.get_query_parts(),n),this.workerQueries[t][r]}))}getQueryNextN(e,n,t){return this.workerQueries[e][n].getNextN(t)}freeQuery(e,n){this.workerQueries[e][n]&&this.workerQueries[e][n].free(),delete this.workerQueries[e][n],0===Object.keys(this.workerQueries[e]).length&&delete this.workerQueries[e]}setupWasm(e,t){return n(this,void 0,void 0,(function*(){const[n,r]=e;this.wasmModule=yield t,this.wasmSearcher=yield this.wasmModule.get_new_searcher(this.config,n,r)}))}static setup(e,r){return n(this,void 0,void 0,(function*(){const n=new t(e),o=e.searcherOptions.url,_=`${o}bitmap_docinfo_dicttable.json`,i=`${o}dictionary_string.json`;let c;try{c=yield caches.open(`morsels:${o}`)}catch(e){}const u=yield Promise.all([(c?c.match(_).then((e=>!e&&c.add(_))).then((()=>c.match(_))):fetch(_)).then((e=>e.arrayBuffer())),(c?c.match(i).then((e=>!e&&c.add(i))).then((()=>c.match(i))):fetch(i)).then((e=>e.arrayBuffer()))]);return yield n.setupWasm(u,r),n}))}}!function(e){let n;onmessage=function(r){return o=this,_=void 0,c=function*(){if(r.data.searcherOptions)n=yield t.setup(r.data,e),postMessage({isSetupDone:!0});else if(r.data.query){const{query:e,queryId:t,n:o,isFree:_,isGetNextN:i}=r.data;if(_)n.freeQuery(e,t);else if(i){const r=n.getQueryNextN(e,t,o);postMessage({query:e,queryId:t,nextResults:r})}else{const r=yield n.processQuery(e,t);postMessage({query:e,queryId:t,searchedTerms:r.searchedTerms,queryParts:r.queryParts})}}},new((i=void 0)||(i=Promise))((function(e,n){function t(e){try{u(c.next(e))}catch(e){n(e)}}function r(e){try{u(c.throw(e))}catch(e){n(e)}}function u(n){var o;n.done?e(n.value):(o=n.value,o instanceof i?o:new i((function(e){e(o)}))).then(t,r)}u((c=c.apply(o,_||[])).next())}));var o,_,i,c},postMessage("")}(Promise.resolve().then(c.bind(c,707)))})()})(); \ No newline at end of file diff --git a/packages/mdbook-morsels/search-ui-dist/search-worker-latin.bundle.js b/packages/mdbook-morsels/search-ui-dist/search-worker-latin.bundle.js new file mode 100644 index 00000000..8665be6c --- /dev/null +++ b/packages/mdbook-morsels/search-ui-dist/search-worker-latin.bundle.js @@ -0,0 +1 @@ +(()=>{var e,n,t,r,o,_={545:(e,n,t)=>{"use strict";t.a(e,(async e=>{t.r(n),t.d(n,{get_query:()=>r.R1,get_new_searcher:()=>r.qS}),t(899);var r=t(686),o=e([r]);r=(o.then?await o:o)[0]}))},899:(e,n,t)=>{t.p=__morsWrkrUrl.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/")},686:(e,n,t)=>{"use strict";t.a(e,(async r=>{t.d(n,{qS:()=>O,R1:()=>A,ug:()=>P,G6:()=>N,uv:()=>Q,rp:()=>M,sv:()=>E,XP:()=>F,NA:()=>G,Gt:()=>W,fs:()=>C,Gn:()=>R,j2:()=>U,FP:()=>z,cb:()=>D,cI:()=>H,ry:()=>L,m_:()=>K,ff:()=>V,vz:()=>X,Rb:()=>Y,o$:()=>Z,_3:()=>J,Wl:()=>ee,Ge:()=>ne,OF:()=>te,xB:()=>re,KQ:()=>oe,vm:()=>_e,TL:()=>ie,Oo:()=>ce,oH:()=>ue,EF:()=>se,Ip:()=>fe,$q:()=>ae,qt:()=>be,j1:()=>le,pT:()=>de,GW:()=>ge,h4:()=>we,cN:()=>he,vC:()=>ye,lC:()=>pe,M1:()=>me,d8:()=>ve,ID:()=>xe,Zn:()=>je,fg:()=>qe,zr:()=>Se,HT:()=>Oe,fW:()=>Ae,td:()=>Ie,$0:()=>Te,oo:()=>$e,Ns:()=>ke,_8:()=>Be,Si:()=>Pe,i9:()=>Ne,I7:()=>Qe,_9:()=>Me,Cp:()=>Ee,zL:()=>Fe,fY:()=>Ge,Or:()=>We,pi:()=>Ce,My:()=>Re,jV:()=>Ue,G8:()=>ze});var o=t(945);e=t.hmd(e);var _=r([o]);o=(_.then?await _:_)[0];const i=new Array(32).fill(void 0);function c(e){return i[e]}i.push(void 0,null,!0,!1);let u=i.length;function s(e){const n=c(e);return function(e){e<36||(i[e]=u,u=e)}(e),n}function f(e){u===i.length&&i.push(i.length+1);const n=u;return u=i[n],i[n]=e,n}let a=0,b=null;function l(){return null!==b&&b.buffer===o.memory.buffer||(b=new Uint8Array(o.memory.buffer)),b}let d=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const g="function"==typeof d.encodeInto?function(e,n){return d.encodeInto(e,n)}:function(e,n){const t=d.encode(e);return n.set(t),{read:e.length,written:t.length}};function w(e,n,t){if(void 0===t){const t=d.encode(e),r=n(t.length);return l().subarray(r,r+t.length).set(t),a=t.length,r}let r=e.length,o=n(r);const _=l();let i=0;for(;i127)break;_[o+i]=n}if(i!==r){0!==i&&(e=e.slice(i)),o=t(o,r,r=i+3*e.length);const n=l().subarray(o+i,o+r);i+=g(e,n).written}return a=i,o}function h(e){return null==e}let y=null;function p(){return null!==y&&y.buffer===o.memory.buffer||(y=new Int32Array(o.memory.buffer)),y}let m=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function v(e,n){return m.decode(l().subarray(e,e+n))}m.decode();let x=null;function j(e){const n=typeof e;if("number"==n||"boolean"==n||null==e)return`${e}`;if("string"==n)return`"${e}"`;if("symbol"==n){const n=e.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==n){const n=e.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(e)){const n=e.length;let t="[";n>0&&(t+=j(e[0]));for(let r=1;r1))return toString.call(e);if(r=t[1],"Object"==r)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function q(e,n,t){o._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hadd0ab134d9221a1(e,n,f(t))}function S(e,n){try{return e.apply(this,n)}catch(e){o.__wbindgen_exn_store(f(e))}}function O(e,n,t){return s(o.get_new_searcher(f(e),f(n),f(t)))}function A(e,n){const t=w(n,o.__wbindgen_malloc,o.__wbindgen_realloc),r=a;return s(o.get_query(e,t,r))}const I=new Uint32Array(2),T=new BigUint64Array(I.buffer),$=new BigInt64Array(I.buffer);class k{static __wrap(e){const n=Object.create(k.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();o.__wbg_query_free(e)}get_next_n(e){return s(o.query_get_next_n(this.ptr,e))}get_query_parts(){return s(o.query_get_query_parts(this.ptr))}get_searched_terms(){return s(o.query_get_searched_terms(this.ptr))}}class B{static __wrap(e){const n=Object.create(B.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();o.__wbg_searcher_free(e)}get_ptr(){return o.searcher_get_ptr(this.ptr)}}function P(e){s(e)}function N(e){const n=s(e).original;return 1==n.cnt--&&(n.a=0,!0)}function Q(e,n){return f(new Error(v(e,n)))}function M(e,n){return f(c(e)[n>>>0])}function E(){return S((function(e){return f(c(e).caches)}),arguments)}function F(e){return void 0===c(e)}function G(e,n,t){return f(c(e).open(v(n,t)))}function W(e){return c(e)instanceof Cache}function C(e,n,t){return f(c(e).match(v(n,t)))}function R(e){return c(e)instanceof Response}function U(e,n,t){return f(c(e).fetch(v(n,t)))}function z(){return S((function(e){return f(c(e).arrayBuffer())}),arguments)}function D(e){return f(new Uint8Array(c(e)))}function H(e){return f(B.__wrap(e))}function L(){return S((function(e,n,t){return f(c(e).call(c(n),c(t)))}),arguments)}function K(e){return f(c(e))}function V(e){return f(k.__wrap(e))}function X(){return f(Symbol.iterator)}function Y(){return S((function(e,n){return f(Reflect.get(c(e),c(n)))}),arguments)}function Z(e){return"function"==typeof c(e)}function J(){return S((function(e,n){return f(c(e).call(c(n)))}),arguments)}function ee(e){const n=c(e);return"object"==typeof n&&null!==n}function ne(e){return f(c(e).next)}function te(){return S((function(){return f(self.self)}),arguments)}function re(){return S((function(){return f(window.window)}),arguments)}function oe(){return S((function(){return f(globalThis.globalThis)}),arguments)}function _e(){return S((function(){return f(t.g.global)}),arguments)}function ie(e,n){return f(new Function(v(e,n)))}function ce(e){return c(e).length}function ue(){return f(o.memory)}function se(e){return f(c(e).buffer)}function fe(e,n,t){c(e).set(c(n),t>>>0)}function ae(){return S((function(e,n){return Reflect.has(c(e),c(n))}),arguments)}function be(e,n){const t=c(n),r="string"==typeof t?t:void 0;var _=h(r)?0:w(r,o.__wbindgen_malloc,o.__wbindgen_realloc),i=a;p()[e/4+1]=i,p()[e/4+0]=_}function le(){return f(new Array)}function de(e){return f(e)}function ge(e,n,t){c(e)[n>>>0]=s(t)}function we(e,n){return f(v(e,n))}function he(){return f(new Object)}function ye(e,n,t){c(e)[s(n)]=s(t)}function pe(e,n){return f(c(e)[s(n)])}function me(e,n){const t=c(n),r="number"==typeof t?t:void 0;(null!==x&&x.buffer===o.memory.buffer||(x=new Float64Array(o.memory.buffer)),x)[e/8+1]=h(r)?0:r,p()[e/4+0]=!h(r)}function ve(e,n){try{var t={a:e,b:n};const r=new Promise(((e,n)=>{const r=t.a;t.a=0;try{return function(e,n,t,r){o.wasm_bindgen__convert__closures__invoke2_mut__h47463d6c726930e9(e,n,f(t),f(r))}(r,t.b,e,n)}finally{t.a=r}}));return f(r)}finally{t.a=t.b=0}}function xe(){return S((function(e){return f(c(e).next())}),arguments)}function je(e){return c(e).done}function qe(e){return f(c(e).value)}function Se(e){return null===c(e)}function Oe(e){const n=c(e);return"boolean"==typeof n?n?1:0:2}function Ae(e){return"bigint"==typeof c(e)}function Ie(e,n){const t=BigInt(c(n));$[0]=t;const r=I[0],o=I[1];p()[e/4+1]=o,p()[e/4+0]=r}function Te(e,n){I[0]=e,I[1]=n;const t=$[0];return f(BigInt(t))}function $e(e,n){return Object.is(c(e),c(n))}function ke(e){return Number.isSafeInteger(c(e))}function Be(e){return Array.isArray(c(e))}function Pe(e,n){const t=BigInt(c(n));T[0]=t;const r=I[0],o=I[1];p()[e/4+1]=o,p()[e/4+0]=r}function Ne(e,n){I[0]=e,I[1]=n;const t=T[0];return f(BigInt(t))}function Qe(e){return c(e).length}function Me(e){return f(Object.entries(c(e)))}function Ee(e){return c(e)instanceof Uint8Array}function Fe(e){return c(e)instanceof ArrayBuffer}function Ge(e,n){const t=w(j(c(n)),o.__wbindgen_malloc,o.__wbindgen_realloc),r=a;p()[e/4+1]=r,p()[e/4+0]=t}function We(e,n){throw new Error(v(e,n))}function Ce(e,n,t){return f(c(e).then(c(n),c(t)))}function Re(e){return f(Promise.resolve(c(e)))}function Ue(e,n){return f(c(e).then(c(n)))}function ze(e,n,t){const r=function(e,n,t,r){const _={a:e,b:n,cnt:1,dtor:52},i=(...e)=>{_.cnt++;const n=_.a;_.a=0;try{return r(n,_.b,...e)}finally{0==--_.cnt?o.__wbindgen_export_2.get(_.dtor)(n,_.b):_.a=n}};return i.original=_,i}(e,n,0,q);return f(r)}}))},945:(e,n,t)=>{"use strict";var r=([r])=>t.v(n,e.id,"cc2346e9f54cffbde632",{"./index_bg.js":{__wbindgen_object_drop_ref:r.ug,__wbindgen_cb_drop:r.G6,__wbg_new_3047bf4b4f02b802:r.uv,__wbg_get_590a2cd912f2ae46:r.rp,__wbg_caches_3efbf43695d369e8:r.sv,__wbindgen_is_undefined:r.XP,__wbg_open_52c5eb54032958d7:r.NA,__wbg_instanceof_Cache_47b072f80dd516f7:r.Gt,__wbg_match_739a4765298f04bf:r.fs,__wbg_instanceof_Response_ccfeb62399355bcd:r.Gn,__wbg_fetch_8df5fcf7dd9fd853:r.j2,__wbg_arrayBuffer_5a99283a3954c850:r.FP,__wbg_new_cc9018bd6f283b6f:r.cb,__wbg_searcher_new:r.cI,__wbg_call_3ed288a247f13ea5:r.ry,__wbindgen_object_clone_ref:r.m_,__wbg_query_new:r.ff,__wbg_iterator_4832ef1f15b0382b:r.vz,__wbg_get_a9cab131e3152c49:r.Rb,__wbindgen_is_function:r.o$,__wbg_call_ae78342adc33730a:r._3,__wbindgen_is_object:r.Wl,__wbg_next_cabb70b365520721:r.Ge,__wbg_self_99737b4dcdf6f0d8:r.OF,__wbg_window_9b61fbbf3564c4fb:r.xB,__wbg_globalThis_8e275ef40caea3a3:r.KQ,__wbg_global_5de1e0f82bddcd27:r.vm,__wbg_newnoargs_e23b458e372830de:r.TL,__wbg_length_0acb1cf9bbaf8519:r.Oo,__wbindgen_memory:r.oH,__wbg_buffer_7af23f65f6c64548:r.EF,__wbg_set_f25e869e4565d2a2:r.Ip,__wbg_has_ce995ec88636803d:r.$q,__wbindgen_string_get:r.qt,__wbg_new_94fb1279cf6afea5:r.j1,__wbindgen_number_new:r.pT,__wbg_set_561aac756158708c:r.GW,__wbindgen_string_new:r.h4,__wbg_new_36359baae5a47e27:r.cN,__wbg_set_e93b31d47b90bff6:r.vC,__wbg_get_093fe3cdafaf8976:r.lC,__wbindgen_number_get:r.M1,__wbg_new_37705eed627d5ed9:r.d8,__wbg_next_bf3d83fc18df496e:r.ID,__wbg_done_040f966faa9a72b3:r.Zn,__wbg_value_419afbd9b9574c4c:r.fg,__wbindgen_is_null:r.zr,__wbindgen_boolean_get:r.HT,__wbindgen_is_bigint:r.fW,__wbg_BigInt_4365947136b5327c:r.td,__wbg_BigInt_73b2c10d8e6eb5a5:r.$0,__wbg_is_40969b082b54c84d:r.oo,__wbg_isSafeInteger_c87467ed96815119:r.Ns,__wbg_isArray_6721f2e508996340:r._8,__wbg_BigInt_6b6f34a01a71ad51:r.Si,__wbg_BigInt_1a499fbb5f402f4c:r.i9,__wbg_length_2cd798326f2cc4c1:r.I7,__wbg_entries_aaf7a1fbe90f014a:r._9,__wbg_instanceof_Uint8Array_edb92795fc0c63b4:r.Cp,__wbg_instanceof_ArrayBuffer_b81b40c2ae0ab898:r.zL,__wbindgen_debug_string:r.fY,__wbindgen_throw:r.Or,__wbg_then_842e65b843962f56:r.pi,__wbg_resolve_a9a87bdd64e9e62c:r.My,__wbg_then_ce526c837d07b68f:r.jV,__wbindgen_closure_wrapper959:r.G8}});t.a(e,(e=>{var n=e([t(686)]);return n.then?n.then(r):r(n)}),1)}},i={};function c(e){var n=i[e];if(void 0!==n)return n.exports;var t=i[e]={id:e,loaded:!1,exports:{}};return _[e](t,t.exports,c),t.loaded=!0,t.exports}e="function"==typeof Symbol?Symbol("webpack then"):"__webpack_then__",n="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",t=e=>{e&&(e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},r=e=>!--e.r&&e(),o=(e,n)=>e?e.push(n):r(n),c.a=(_,i,c)=>{var u,s,f,a=c&&[],b=_.exports,l=!0,d=!1,g=(n,t,r)=>{d||(d=!0,t.r+=n.length,n.map(((n,o)=>n[e](t,r))),d=!1)},w=new Promise(((e,n)=>{f=n,s=()=>(e(b),t(a),a=0)}));w[n]=b,w[e]=(e,n)=>{if(l)return r(e);u&&g(u,e,n),o(a,e),w.catch(n)},_.exports=w,i((_=>{if(!_)return s();var i,c;u=(_=>_.map((_=>{if(null!==_&&"object"==typeof _){if(_[e])return _;if(_.then){var i=[];_.then((e=>{c[n]=e,t(i),i=0}));var c={};return c[e]=(e,n)=>(o(i,e),_.catch(n)),c}}var u={};return u[e]=e=>r(e),u[n]=_,u})))(_);var f=new Promise(((e,t)=>{(i=()=>e(c=u.map((e=>e[n])))).r=0,g(u,i,t)}));return i.r?f:c})).then(s,f),l=!1},c.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return c.d(n,{a:n}),n},c.d=(e,n)=>{for(var t in n)c.o(n,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),c.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.v=(e,n,t,r)=>{var o=fetch(c.p+""+t+".module.wasm");return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(o,r).then((n=>Object.assign(e,n.instance.exports))):o.then((e=>e.arrayBuffer())).then((e=>WebAssembly.instantiate(e,r))).then((n=>Object.assign(e,n.instance.exports)))},(()=>{var e;c.g.importScripts&&(e=c.g.location+"");var n=c.g.document;if(!e&&n&&(n.currentScript&&(e=n.currentScript.src),!e)){var t=n.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),c.p=e})(),(()=>{"use strict";c(899);class e{constructor(e,n,t){this.searchedTerms=e,this.queryParts=n,this.query=t}getNextN(e){return this.query.get_next_n(e)}free(){this.query.free()}}var n=function(e,n,t,r){return new(t||(t=Promise))((function(o,_){function i(e){try{u(r.next(e))}catch(e){_(e)}}function c(e){try{u(r.throw(e))}catch(e){_(e)}}function u(e){var n;e.done?o(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(i,c)}u((r=r.apply(e,n||[])).next())}))};class t{constructor(e){this.config=e,this.workerQueries=Object.create(null)}processQuery(t,r){return n(this,void 0,void 0,(function*(){const n=yield this.wasmModule.get_query(this.wasmSearcher.get_ptr(),t);return this.workerQueries[t]=this.workerQueries[t]||{},this.workerQueries[t][r]=new e(n.get_searched_terms(),n.get_query_parts(),n),this.workerQueries[t][r]}))}getQueryNextN(e,n,t){return this.workerQueries[e][n].getNextN(t)}freeQuery(e,n){this.workerQueries[e][n]&&this.workerQueries[e][n].free(),delete this.workerQueries[e][n],0===Object.keys(this.workerQueries[e]).length&&delete this.workerQueries[e]}setupWasm(e,t){return n(this,void 0,void 0,(function*(){const[n,r]=e;this.wasmModule=yield t,this.wasmSearcher=yield this.wasmModule.get_new_searcher(this.config,n,r)}))}static setup(e,r){return n(this,void 0,void 0,(function*(){const n=new t(e),o=e.searcherOptions.url,_=`${o}bitmap_docinfo_dicttable.json`,i=`${o}dictionary_string.json`;let c;try{c=yield caches.open(`morsels:${o}`)}catch(e){}const u=yield Promise.all([(c?c.match(_).then((e=>!e&&c.add(_))).then((()=>c.match(_))):fetch(_)).then((e=>e.arrayBuffer())),(c?c.match(i).then((e=>!e&&c.add(i))).then((()=>c.match(i))):fetch(i)).then((e=>e.arrayBuffer()))]);return yield n.setupWasm(u,r),n}))}}!function(e){let n;onmessage=function(r){return o=this,_=void 0,c=function*(){if(r.data.searcherOptions)n=yield t.setup(r.data,e),postMessage({isSetupDone:!0});else if(r.data.query){const{query:e,queryId:t,n:o,isFree:_,isGetNextN:i}=r.data;if(_)n.freeQuery(e,t);else if(i){const r=n.getQueryNextN(e,t,o);postMessage({query:e,queryId:t,nextResults:r})}else{const r=yield n.processQuery(e,t);postMessage({query:e,queryId:t,searchedTerms:r.searchedTerms,queryParts:r.queryParts})}}},new((i=void 0)||(i=Promise))((function(e,n){function t(e){try{u(c.next(e))}catch(e){n(e)}}function r(e){try{u(c.throw(e))}catch(e){n(e)}}function u(n){var o;n.done?e(n.value):(o=n.value,o instanceof i?o:new i((function(e){e(o)}))).then(t,r)}u((c=c.apply(o,_||[])).next())}));var o,_,i,c},postMessage("")}(Promise.resolve().then(c.bind(c,545)))})()})(); \ No newline at end of file diff --git a/packages/mdbook-morsels/search-ui-dist/search.worker.bundle.js b/packages/mdbook-morsels/search-ui-dist/search.worker.bundle.js deleted file mode 100644 index 870597d2..00000000 --- a/packages/mdbook-morsels/search-ui-dist/search.worker.bundle.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{var e,t,r,n,s,i={187:(e,t,r)=>{var n={"./lang-ascii/index.js":[519,964],"./lang-chinese/index.js":[312,635],"./lang-latin/index.js":[777,949]};function s(e){if(!r.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],s=t[0];return r.e(t[1]).then((()=>r(s)))}s.keys=()=>Object.keys(n),s.id=187,e.exports=s}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={id:e,loaded:!1,exports:{}};return i[e](r,r.exports,a),r.loaded=!0,r.exports}a.m=i,e="function"==typeof Symbol?Symbol("webpack then"):"__webpack_then__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",r=e=>{e&&(e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},n=e=>!--e.r&&e(),s=(e,t)=>e?e.push(t):n(t),a.a=(i,o,a)=>{var u,c,l,h=a&&[],f=i.exports,p=!0,d=!1,y=(t,r,n)=>{d||(d=!0,r.r+=t.length,t.map(((t,s)=>t[e](r,n))),d=!1)},m=new Promise(((e,t)=>{l=t,c=()=>(e(f),r(h),h=0)}));m[t]=f,m[e]=(e,t)=>{if(p)return n(e);u&&y(u,e,t),s(h,e),m.catch(t)},i.exports=m,o((i=>{if(!i)return c();var o,a;u=(i=>i.map((i=>{if(null!==i&&"object"==typeof i){if(i[e])return i;if(i.then){var o=[];i.then((e=>{a[t]=e,r(o),o=0}));var a={};return a[e]=(e,t)=>(s(o,e),i.catch(t)),a}}var u={};return u[e]=e=>n(e),u[t]=i,u})))(i);var l=new Promise(((e,r)=>{(o=()=>e(a=u.map((e=>e[t])))).r=0,y(u,o,r)}));return o.r?l:a})).then(c,l),p=!1},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,r)=>(a.f[r](e,t),t)),[])),a.u=e=>({635:"wasm.lang-chinese-index-js",949:"wasm.lang-latin-index-js",964:"wasm.lang-ascii-index-js"}[e]+".bundle.js"),a.miniCssF=e=>{},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.v=(e,t,r,n)=>{var s=fetch(a.p+""+r+".module.wasm");return"function"==typeof WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(s,n).then((t=>Object.assign(e,t.instance.exports))):s.then((e=>e.arrayBuffer())).then((e=>WebAssembly.instantiate(e,n))).then((t=>Object.assign(e,t.instance.exports)))},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={658:1};a.f.i=(t,r)=>{e[t]||importScripts(a.p+a.u(t))};var t=self.webpackChunkmorsels=self.webpackChunkmorsels||[],r=t.push.bind(t);t.push=t=>{var[n,s,i]=t;for(var o in s)a.o(s,o)&&(a.m[o]=s[o]);for(i&&i(a);n.length;)e[n.pop()]=1;r(t)}})(),(()=>{"use strict";class e{constructor(e,t,r){this.searchedTerms=e,this.queryParts=t,this.query=r}getNextN(e){return this.query.get_next_n(e)}free(){this.query.free()}}var t=function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}u((n=n.apply(e,t||[])).next())}))};class r{constructor(e){this.config=e,this.workerQueries=Object.create(null)}processQuery(r,n){return t(this,void 0,void 0,(function*(){const t=yield this.wasmModule.get_query(this.wasmSearcher.get_ptr(),r);return this.workerQueries[r]=this.workerQueries[r]||{},this.workerQueries[r][n]=new e(t.get_searched_terms(),t.get_query_parts(),t),this.workerQueries[r][n]}))}getQueryNextN(e,t,r){return this.workerQueries[e][t].getNextN(r)}freeQuery(e,t){this.workerQueries[e][t]&&this.workerQueries[e][t].free(),delete this.workerQueries[e][t],0===Object.keys(this.workerQueries[e]).length&&delete this.workerQueries[e]}setupWasm(){return t(this,void 0,void 0,(function*(){const e=this.config.langConfig.lang;this.wasmModule=yield a(187)(`./lang-${e}/index.js`),this.wasmSearcher=yield this.wasmModule.get_new_searcher(this.config)}))}static setup(e){return t(this,void 0,void 0,(function*(){const t=new r(e);return yield t.setupWasm(),t}))}}var n=function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{u(n.next(e))}catch(e){i(e)}}function a(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}u((n=n.apply(e,t||[])).next())}))};let s;onmessage=function(e){return n(this,void 0,void 0,(function*(){if(e.data.searcherOptions)s=yield r.setup(e.data),postMessage({isSetupDone:!0});else if(e.data.query){const{query:t,queryId:r,n,isFree:i,isGetNextN:o}=e.data;if(i)s.freeQuery(t,r);else if(o){const e=s.getQueryNextN(t,r,n);postMessage({query:t,queryId:r,nextResults:e})}else{const e=yield s.processQuery(t,r);postMessage({query:t,queryId:r,searchedTerms:e.searchedTerms,queryParts:e.queryParts})}}}))}})()})(); \ No newline at end of file diff --git a/packages/mdbook-morsels/search-ui-dist/wasm.lang-ascii-index-js.bundle.js b/packages/mdbook-morsels/search-ui-dist/wasm.lang-ascii-index-js.bundle.js deleted file mode 100644 index 689ecf6f..00000000 --- a/packages/mdbook-morsels/search-ui-dist/wasm.lang-ascii-index-js.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmorsels=self.webpackChunkmorsels||[]).push([[964],{519:(e,n,_)=>{_.a(e,(async e=>{_.r(n),_.d(n,{Query:()=>r.AE,Searcher:()=>r.sz,__wbg_arrayBuffer_b8937ed04beb0d36:()=>r.gV,__wbg_buffer_397eaa4d72ee94dd:()=>r.jp,__wbg_call_346669c262382ad7:()=>r.Ms,__wbg_call_888d259a5fefc347:()=>r.BT,__wbg_fetch_3a636c71a7d400b0:()=>r.ih,__wbg_globalThis_3f735a5746d41fbd:()=>r.ud,__wbg_global_1bc0b39582740e95:()=>r.PT,__wbg_instanceof_Response_e1b11afbefa5b563:()=>r.Yb,__wbg_length_1eb8fc608a0d4cdb:()=>r.A7,__wbg_new_a7ce447f15ff496f:()=>r.y4,__wbg_new_b1d61b5687f5e73a:()=>r.hq,__wbg_newnoargs_be86524d73f67598:()=>r.wg,__wbg_query_new:()=>r.ff,__wbg_resolve_d23068002f584f22:()=>r.zb,__wbg_searcher_new:()=>r.cI,__wbg_self_c6fbdfc2918d5e58:()=>r.JX,__wbg_set_969ad0a60e51d320:()=>r.YQ,__wbg_then_2fcac196782070cc:()=>r.Zp,__wbg_then_8c2d62e8ae5978f7:()=>r.v_,__wbg_window_baec038b5ab35c54:()=>r.xd,__wbindgen_cb_drop:()=>r.G6,__wbindgen_closure_wrapper1098:()=>r.dp,__wbindgen_debug_string:()=>r.fY,__wbindgen_is_undefined:()=>r.XP,__wbindgen_json_parse:()=>r.t$,__wbindgen_json_serialize:()=>r.r1,__wbindgen_memory:()=>r.oH,__wbindgen_object_clone_ref:()=>r.m_,__wbindgen_object_drop_ref:()=>r.ug,__wbindgen_throw:()=>r.Or,get_new_searcher:()=>r.qS,get_query:()=>r.R1});var r=_(417),t=e([r]);r=(t.then?await t:t)[0]}))},417:(e,n,_)=>{_.a(e,(async r=>{_.d(n,{qS:()=>q,R1:()=>T,AE:()=>A,sz:()=>O,ug:()=>S,ff:()=>$,cI:()=>Y,t$:()=>k,r1:()=>P,G6:()=>z,ih:()=>B,Yb:()=>E,gV:()=>I,wg:()=>J,BT:()=>R,m_:()=>X,Ms:()=>M,hq:()=>C,zb:()=>F,Zp:()=>Q,v_:()=>D,JX:()=>G,xd:()=>H,ud:()=>N,PT:()=>V,XP:()=>Z,jp:()=>U,y4:()=>W,YQ:()=>K,A7:()=>L,fY:()=>ee,Or:()=>ne,oH:()=>_e,dp:()=>re});var t=_(739);e=_.hmd(e);var o=r([t]);t=(o.then?await o:o)[0];const c=new Array(32).fill(void 0);function u(e){return c[e]}c.push(void 0,null,!0,!1);let i=c.length;function f(e){const n=u(e);return function(e){e<36||(c[e]=i,i=e)}(e),n}let b=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});b.decode();let a=null;function s(){return null!==a&&a.buffer===t.memory.buffer||(a=new Uint8Array(t.memory.buffer)),a}function d(e,n){return b.decode(s().subarray(e,e+n))}function g(e){i===c.length&&c.push(c.length+1);const n=i;return i=c[n],c[n]=e,n}let l=0;let w=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const h="function"==typeof w.encodeInto?function(e,n){return w.encodeInto(e,n)}:function(e,n){const _=w.encode(e);return n.set(_),{read:e.length,written:_.length}};function p(e,n,_){if(void 0===_){const _=w.encode(e),r=n(_.length);return s().subarray(r,r+_.length).set(_),l=_.length,r}let r=e.length,t=n(r);const o=s();let c=0;for(;c127)break;o[t+c]=n}if(c!==r){0!==c&&(e=e.slice(c)),t=_(t,r,r=c+3*e.length);const n=s().subarray(t+c,t+r);c+=h(e,n).written}return l=c,t}let y=null;function m(){return null!==y&&y.buffer===t.memory.buffer||(y=new Int32Array(t.memory.buffer)),y}function v(e){const n=typeof e;if("number"==n||"boolean"==n||null==e)return`${e}`;if("string"==n)return`"${e}"`;if("symbol"==n){const n=e.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==n){const n=e.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(e)){const n=e.length;let _="[";n>0&&(_+=v(e[0]));for(let r=1;r1))return toString.call(e);if(r=_[1],"Object"==r)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function j(e,n,_){t._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__haf17c06ec5612784(e,n,g(_))}function q(e){return f(t.get_new_searcher(g(e)))}function T(e,n){var _=p(n,t.__wbindgen_malloc,t.__wbindgen_realloc),r=l;return f(t.get_query(e,_,r))}function x(e,n){try{return e.apply(this,n)}catch(e){t.__wbindgen_exn_store(g(e))}}class A{static __wrap(e){const n=Object.create(A.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();t.__wbg_query_free(e)}get_next_n(e){return f(t.query_get_next_n(this.ptr,e))}get_query_parts(){return f(t.query_get_query_parts(this.ptr))}get_searched_terms(){return f(t.query_get_searched_terms(this.ptr))}}class O{static __wrap(e){const n=Object.create(O.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();t.__wbg_searcher_free(e)}get_ptr(){return t.searcher_get_ptr(this.ptr)}}function S(e){f(e)}function $(e){return g(A.__wrap(e))}function Y(e){return g(O.__wrap(e))}function k(e,n){return g(JSON.parse(d(e,n)))}function P(e,n){const _=u(n);var r=p(JSON.stringify(void 0===_?null:_),t.__wbindgen_malloc,t.__wbindgen_realloc),o=l;m()[e/4+1]=o,m()[e/4+0]=r}function z(e){const n=f(e).original;if(1==n.cnt--)return n.a=0,!0;return!1}function B(e,n,_){return g(u(e).fetch(d(n,_)))}function E(e){return u(e)instanceof Response}function I(){return x((function(e){return g(u(e).arrayBuffer())}),arguments)}function J(e,n){return g(new Function(d(e,n)))}function R(){return x((function(e,n){return g(u(e).call(u(n)))}),arguments)}function X(e){return g(u(e))}function M(){return x((function(e,n,_){return g(u(e).call(u(n),u(_)))}),arguments)}function C(e,n){try{var _={a:e,b:n},r=new Promise(((e,n)=>{const r=_.a;_.a=0;try{return function(e,n,_,r){t.wasm_bindgen__convert__closures__invoke2_mut__h49991b41b818dbf7(e,n,g(_),g(r))}(r,_.b,e,n)}finally{_.a=r}}));return g(r)}finally{_.a=_.b=0}}function F(e){return g(Promise.resolve(u(e)))}function Q(e,n){return g(u(e).then(u(n)))}function D(e,n,_){return g(u(e).then(u(n),u(_)))}function G(){return x((function(){return g(self.self)}),arguments)}function H(){return x((function(){return g(window.window)}),arguments)}function N(){return x((function(){return g(globalThis.globalThis)}),arguments)}function V(){return x((function(){return g(_.g.global)}),arguments)}function Z(e){return void 0===u(e)}function U(e){return g(u(e).buffer)}function W(e){return g(new Uint8Array(u(e)))}function K(e,n,_){u(e).set(u(n),_>>>0)}function L(e){return u(e).length}function ee(e,n){var _=p(v(u(n)),t.__wbindgen_malloc,t.__wbindgen_realloc),r=l;m()[e/4+1]=r,m()[e/4+0]=_}function ne(e,n){throw new Error(d(e,n))}function _e(){return g(t.memory)}function re(e,n,_){var r=function(e,n,_,r){const o={a:e,b:n,cnt:1,dtor:_},c=(...e)=>{o.cnt++;const n=o.a;o.a=0;try{return r(n,o.b,...e)}finally{0==--o.cnt?t.__wbindgen_export_2.get(o.dtor)(n,o.b):o.a=n}};return c.original=o,c}(e,n,279,j);return g(r)}}))},739:(e,n,_)=>{var r=([r])=>_.v(n,e.id,"311f63f6150fb336c4f4",{"./index_bg.js":{__wbindgen_object_drop_ref:r.ug,__wbg_query_new:r.ff,__wbg_searcher_new:r.cI,__wbindgen_json_parse:r.t$,__wbindgen_json_serialize:r.r1,__wbindgen_cb_drop:r.G6,__wbg_fetch_3a636c71a7d400b0:r.ih,__wbg_instanceof_Response_e1b11afbefa5b563:r.Yb,__wbg_arrayBuffer_b8937ed04beb0d36:r.gV,__wbg_newnoargs_be86524d73f67598:r.wg,__wbg_call_888d259a5fefc347:r.BT,__wbindgen_object_clone_ref:r.m_,__wbg_call_346669c262382ad7:r.Ms,__wbg_new_b1d61b5687f5e73a:r.hq,__wbg_resolve_d23068002f584f22:r.zb,__wbg_then_2fcac196782070cc:r.Zp,__wbg_then_8c2d62e8ae5978f7:r.v_,__wbg_self_c6fbdfc2918d5e58:r.JX,__wbg_window_baec038b5ab35c54:r.xd,__wbg_globalThis_3f735a5746d41fbd:r.ud,__wbg_global_1bc0b39582740e95:r.PT,__wbindgen_is_undefined:r.XP,__wbg_buffer_397eaa4d72ee94dd:r.jp,__wbg_new_a7ce447f15ff496f:r.y4,__wbg_set_969ad0a60e51d320:r.YQ,__wbg_length_1eb8fc608a0d4cdb:r.A7,__wbindgen_debug_string:r.fY,__wbindgen_throw:r.Or,__wbindgen_memory:r.oH,__wbindgen_closure_wrapper1098:r.dp}});_.a(e,(e=>{var n=e([_(417)]);return n.then?n.then(r):r(n)}),1)}}]); \ No newline at end of file diff --git a/packages/mdbook-morsels/search-ui-dist/wasm.lang-chinese-index-js.bundle.js b/packages/mdbook-morsels/search-ui-dist/wasm.lang-chinese-index-js.bundle.js deleted file mode 100644 index 97a1fd2f..00000000 --- a/packages/mdbook-morsels/search-ui-dist/wasm.lang-chinese-index-js.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmorsels=self.webpackChunkmorsels||[]).push([[635],{312:(e,n,_)=>{_.a(e,(async e=>{_.r(n),_.d(n,{Query:()=>r.AE,Searcher:()=>r.sz,__wbg_arrayBuffer_b8937ed04beb0d36:()=>r.gV,__wbg_buffer_397eaa4d72ee94dd:()=>r.jp,__wbg_call_346669c262382ad7:()=>r.Ms,__wbg_call_888d259a5fefc347:()=>r.BT,__wbg_fetch_3a636c71a7d400b0:()=>r.ih,__wbg_globalThis_3f735a5746d41fbd:()=>r.ud,__wbg_global_1bc0b39582740e95:()=>r.PT,__wbg_instanceof_Response_e1b11afbefa5b563:()=>r.Yb,__wbg_length_1eb8fc608a0d4cdb:()=>r.A7,__wbg_new_a7ce447f15ff496f:()=>r.y4,__wbg_new_b1d61b5687f5e73a:()=>r.hq,__wbg_newnoargs_be86524d73f67598:()=>r.wg,__wbg_query_new:()=>r.ff,__wbg_resolve_d23068002f584f22:()=>r.zb,__wbg_searcher_new:()=>r.cI,__wbg_self_c6fbdfc2918d5e58:()=>r.JX,__wbg_set_969ad0a60e51d320:()=>r.YQ,__wbg_then_2fcac196782070cc:()=>r.Zp,__wbg_then_8c2d62e8ae5978f7:()=>r.v_,__wbg_window_baec038b5ab35c54:()=>r.xd,__wbindgen_cb_drop:()=>r.G6,__wbindgen_closure_wrapper1171:()=>r.yt,__wbindgen_debug_string:()=>r.fY,__wbindgen_is_undefined:()=>r.XP,__wbindgen_json_parse:()=>r.t$,__wbindgen_json_serialize:()=>r.r1,__wbindgen_memory:()=>r.oH,__wbindgen_object_clone_ref:()=>r.m_,__wbindgen_object_drop_ref:()=>r.ug,__wbindgen_throw:()=>r.Or,get_new_searcher:()=>r.qS,get_query:()=>r.R1});var r=_(440),t=e([r]);r=(t.then?await t:t)[0]}))},440:(e,n,_)=>{_.a(e,(async r=>{_.d(n,{qS:()=>q,R1:()=>T,AE:()=>A,sz:()=>O,ff:()=>S,ug:()=>$,cI:()=>Y,t$:()=>k,r1:()=>P,G6:()=>z,ih:()=>B,Yb:()=>E,gV:()=>I,wg:()=>J,BT:()=>R,m_:()=>X,Ms:()=>M,hq:()=>C,zb:()=>F,Zp:()=>Q,v_:()=>D,JX:()=>G,xd:()=>H,ud:()=>N,PT:()=>V,XP:()=>Z,jp:()=>U,y4:()=>W,YQ:()=>K,A7:()=>L,fY:()=>ee,Or:()=>ne,oH:()=>_e,yt:()=>re});var t=_(926);e=_.hmd(e);var o=r([t]);t=(o.then?await o:o)[0];const c=new Array(32).fill(void 0);function u(e){return c[e]}c.push(void 0,null,!0,!1);let i=c.length;function f(e){const n=u(e);return function(e){e<36||(c[e]=i,i=e)}(e),n}let a=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});a.decode();let b=null;function s(){return null!==b&&b.buffer===t.memory.buffer||(b=new Uint8Array(t.memory.buffer)),b}function g(e,n){return a.decode(s().subarray(e,e+n))}function d(e){i===c.length&&c.push(c.length+1);const n=i;return i=c[n],c[n]=e,n}let l=0;let w=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const h="function"==typeof w.encodeInto?function(e,n){return w.encodeInto(e,n)}:function(e,n){const _=w.encode(e);return n.set(_),{read:e.length,written:_.length}};function y(e,n,_){if(void 0===_){const _=w.encode(e),r=n(_.length);return s().subarray(r,r+_.length).set(_),l=_.length,r}let r=e.length,t=n(r);const o=s();let c=0;for(;c127)break;o[t+c]=n}if(c!==r){0!==c&&(e=e.slice(c)),t=_(t,r,r=c+3*e.length);const n=s().subarray(t+c,t+r);c+=h(e,n).written}return l=c,t}let p=null;function m(){return null!==p&&p.buffer===t.memory.buffer||(p=new Int32Array(t.memory.buffer)),p}function v(e){const n=typeof e;if("number"==n||"boolean"==n||null==e)return`${e}`;if("string"==n)return`"${e}"`;if("symbol"==n){const n=e.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==n){const n=e.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(e)){const n=e.length;let _="[";n>0&&(_+=v(e[0]));for(let r=1;r1))return toString.call(e);if(r=_[1],"Object"==r)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function j(e,n,_){t._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__haf17c06ec5612784(e,n,d(_))}function q(e){return f(t.get_new_searcher(d(e)))}function T(e,n){var _=y(n,t.__wbindgen_malloc,t.__wbindgen_realloc),r=l;return f(t.get_query(e,_,r))}function x(e,n){try{return e.apply(this,n)}catch(e){t.__wbindgen_exn_store(d(e))}}class A{static __wrap(e){const n=Object.create(A.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();t.__wbg_query_free(e)}get_next_n(e){return f(t.query_get_next_n(this.ptr,e))}get_query_parts(){return f(t.query_get_query_parts(this.ptr))}get_searched_terms(){return f(t.query_get_searched_terms(this.ptr))}}class O{static __wrap(e){const n=Object.create(O.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();t.__wbg_searcher_free(e)}get_ptr(){return t.searcher_get_ptr(this.ptr)}}function S(e){return d(A.__wrap(e))}function $(e){f(e)}function Y(e){return d(O.__wrap(e))}function k(e,n){return d(JSON.parse(g(e,n)))}function P(e,n){const _=u(n);var r=y(JSON.stringify(void 0===_?null:_),t.__wbindgen_malloc,t.__wbindgen_realloc),o=l;m()[e/4+1]=o,m()[e/4+0]=r}function z(e){const n=f(e).original;if(1==n.cnt--)return n.a=0,!0;return!1}function B(e,n,_){return d(u(e).fetch(g(n,_)))}function E(e){return u(e)instanceof Response}function I(){return x((function(e){return d(u(e).arrayBuffer())}),arguments)}function J(e,n){return d(new Function(g(e,n)))}function R(){return x((function(e,n){return d(u(e).call(u(n)))}),arguments)}function X(e){return d(u(e))}function M(){return x((function(e,n,_){return d(u(e).call(u(n),u(_)))}),arguments)}function C(e,n){try{var _={a:e,b:n},r=new Promise(((e,n)=>{const r=_.a;_.a=0;try{return function(e,n,_,r){t.wasm_bindgen__convert__closures__invoke2_mut__h49991b41b818dbf7(e,n,d(_),d(r))}(r,_.b,e,n)}finally{_.a=r}}));return d(r)}finally{_.a=_.b=0}}function F(e){return d(Promise.resolve(u(e)))}function Q(e,n){return d(u(e).then(u(n)))}function D(e,n,_){return d(u(e).then(u(n),u(_)))}function G(){return x((function(){return d(self.self)}),arguments)}function H(){return x((function(){return d(window.window)}),arguments)}function N(){return x((function(){return d(globalThis.globalThis)}),arguments)}function V(){return x((function(){return d(_.g.global)}),arguments)}function Z(e){return void 0===u(e)}function U(e){return d(u(e).buffer)}function W(e){return d(new Uint8Array(u(e)))}function K(e,n,_){u(e).set(u(n),_>>>0)}function L(e){return u(e).length}function ee(e,n){var _=y(v(u(n)),t.__wbindgen_malloc,t.__wbindgen_realloc),r=l;m()[e/4+1]=r,m()[e/4+0]=_}function ne(e,n){throw new Error(g(e,n))}function _e(){return d(t.memory)}function re(e,n,_){var r=function(e,n,_,r){const o={a:e,b:n,cnt:1,dtor:_},c=(...e)=>{o.cnt++;const n=o.a;o.a=0;try{return r(n,o.b,...e)}finally{0==--o.cnt?t.__wbindgen_export_2.get(o.dtor)(n,o.b):o.a=n}};return c.original=o,c}(e,n,299,j);return d(r)}}))},926:(e,n,_)=>{var r=([r])=>_.v(n,e.id,"770d87836eafac8298d6",{"./index_bg.js":{__wbg_query_new:r.ff,__wbindgen_object_drop_ref:r.ug,__wbg_searcher_new:r.cI,__wbindgen_json_parse:r.t$,__wbindgen_json_serialize:r.r1,__wbindgen_cb_drop:r.G6,__wbg_fetch_3a636c71a7d400b0:r.ih,__wbg_instanceof_Response_e1b11afbefa5b563:r.Yb,__wbg_arrayBuffer_b8937ed04beb0d36:r.gV,__wbg_newnoargs_be86524d73f67598:r.wg,__wbg_call_888d259a5fefc347:r.BT,__wbindgen_object_clone_ref:r.m_,__wbg_call_346669c262382ad7:r.Ms,__wbg_new_b1d61b5687f5e73a:r.hq,__wbg_resolve_d23068002f584f22:r.zb,__wbg_then_2fcac196782070cc:r.Zp,__wbg_then_8c2d62e8ae5978f7:r.v_,__wbg_self_c6fbdfc2918d5e58:r.JX,__wbg_window_baec038b5ab35c54:r.xd,__wbg_globalThis_3f735a5746d41fbd:r.ud,__wbg_global_1bc0b39582740e95:r.PT,__wbindgen_is_undefined:r.XP,__wbg_buffer_397eaa4d72ee94dd:r.jp,__wbg_new_a7ce447f15ff496f:r.y4,__wbg_set_969ad0a60e51d320:r.YQ,__wbg_length_1eb8fc608a0d4cdb:r.A7,__wbindgen_debug_string:r.fY,__wbindgen_throw:r.Or,__wbindgen_memory:r.oH,__wbindgen_closure_wrapper1171:r.yt}});_.a(e,(e=>{var n=e([_(440)]);return n.then?n.then(r):r(n)}),1)}}]); \ No newline at end of file diff --git a/packages/mdbook-morsels/search-ui-dist/wasm.lang-latin-index-js.bundle.js b/packages/mdbook-morsels/search-ui-dist/wasm.lang-latin-index-js.bundle.js deleted file mode 100644 index 944b8e3a..00000000 --- a/packages/mdbook-morsels/search-ui-dist/wasm.lang-latin-index-js.bundle.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkmorsels=self.webpackChunkmorsels||[]).push([[949],{777:(e,n,_)=>{_.a(e,(async e=>{_.r(n),_.d(n,{Query:()=>r.AE,Searcher:()=>r.sz,__wbg_arrayBuffer_b8937ed04beb0d36:()=>r.gV,__wbg_buffer_397eaa4d72ee94dd:()=>r.jp,__wbg_call_346669c262382ad7:()=>r.Ms,__wbg_call_888d259a5fefc347:()=>r.BT,__wbg_fetch_3a636c71a7d400b0:()=>r.ih,__wbg_globalThis_3f735a5746d41fbd:()=>r.ud,__wbg_global_1bc0b39582740e95:()=>r.PT,__wbg_instanceof_Response_e1b11afbefa5b563:()=>r.Yb,__wbg_length_1eb8fc608a0d4cdb:()=>r.A7,__wbg_new_a7ce447f15ff496f:()=>r.y4,__wbg_new_b1d61b5687f5e73a:()=>r.hq,__wbg_newnoargs_be86524d73f67598:()=>r.wg,__wbg_query_new:()=>r.ff,__wbg_resolve_d23068002f584f22:()=>r.zb,__wbg_searcher_new:()=>r.cI,__wbg_self_c6fbdfc2918d5e58:()=>r.JX,__wbg_set_969ad0a60e51d320:()=>r.YQ,__wbg_then_2fcac196782070cc:()=>r.Zp,__wbg_then_8c2d62e8ae5978f7:()=>r.v_,__wbg_window_baec038b5ab35c54:()=>r.xd,__wbindgen_cb_drop:()=>r.G6,__wbindgen_closure_wrapper1158:()=>r.gA,__wbindgen_debug_string:()=>r.fY,__wbindgen_is_undefined:()=>r.XP,__wbindgen_json_parse:()=>r.t$,__wbindgen_json_serialize:()=>r.r1,__wbindgen_memory:()=>r.oH,__wbindgen_object_clone_ref:()=>r.m_,__wbindgen_object_drop_ref:()=>r.ug,__wbindgen_throw:()=>r.Or,get_new_searcher:()=>r.qS,get_query:()=>r.R1});var r=_(686),t=e([r]);r=(t.then?await t:t)[0]}))},686:(e,n,_)=>{_.a(e,(async r=>{_.d(n,{qS:()=>q,R1:()=>A,AE:()=>x,sz:()=>O,ug:()=>S,cI:()=>$,ff:()=>Y,t$:()=>k,r1:()=>P,G6:()=>z,ih:()=>B,Yb:()=>E,gV:()=>I,wg:()=>J,BT:()=>R,m_:()=>X,Ms:()=>M,hq:()=>C,zb:()=>F,Zp:()=>Q,v_:()=>D,JX:()=>G,xd:()=>H,ud:()=>N,PT:()=>V,XP:()=>Z,jp:()=>U,y4:()=>W,YQ:()=>K,A7:()=>L,fY:()=>ee,Or:()=>ne,oH:()=>_e,gA:()=>re});var t=_(945);e=_.hmd(e);var o=r([t]);t=(o.then?await o:o)[0];const c=new Array(32).fill(void 0);function u(e){return c[e]}c.push(void 0,null,!0,!1);let i=c.length;function f(e){const n=u(e);return function(e){e<36||(c[e]=i,i=e)}(e),n}let a=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});a.decode();let b=null;function s(){return null!==b&&b.buffer===t.memory.buffer||(b=new Uint8Array(t.memory.buffer)),b}function g(e,n){return a.decode(s().subarray(e,e+n))}function d(e){i===c.length&&c.push(c.length+1);const n=i;return i=c[n],c[n]=e,n}let l=0;let w=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const h="function"==typeof w.encodeInto?function(e,n){return w.encodeInto(e,n)}:function(e,n){const _=w.encode(e);return n.set(_),{read:e.length,written:_.length}};function y(e,n,_){if(void 0===_){const _=w.encode(e),r=n(_.length);return s().subarray(r,r+_.length).set(_),l=_.length,r}let r=e.length,t=n(r);const o=s();let c=0;for(;c127)break;o[t+c]=n}if(c!==r){0!==c&&(e=e.slice(c)),t=_(t,r,r=c+3*e.length);const n=s().subarray(t+c,t+r);c+=h(e,n).written}return l=c,t}let p=null;function m(){return null!==p&&p.buffer===t.memory.buffer||(p=new Int32Array(t.memory.buffer)),p}function v(e){const n=typeof e;if("number"==n||"boolean"==n||null==e)return`${e}`;if("string"==n)return`"${e}"`;if("symbol"==n){const n=e.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==n){const n=e.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(e)){const n=e.length;let _="[";n>0&&(_+=v(e[0]));for(let r=1;r1))return toString.call(e);if(r=_[1],"Object"==r)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}function j(e,n,_){t._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__haf17c06ec5612784(e,n,d(_))}function q(e){return f(t.get_new_searcher(d(e)))}function A(e,n){var _=y(n,t.__wbindgen_malloc,t.__wbindgen_realloc),r=l;return f(t.get_query(e,_,r))}function T(e,n){try{return e.apply(this,n)}catch(e){t.__wbindgen_exn_store(d(e))}}class x{static __wrap(e){const n=Object.create(x.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();t.__wbg_query_free(e)}get_next_n(e){return f(t.query_get_next_n(this.ptr,e))}get_query_parts(){return f(t.query_get_query_parts(this.ptr))}get_searched_terms(){return f(t.query_get_searched_terms(this.ptr))}}class O{static __wrap(e){const n=Object.create(O.prototype);return n.ptr=e,n}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();t.__wbg_searcher_free(e)}get_ptr(){return t.searcher_get_ptr(this.ptr)}}function S(e){f(e)}function $(e){return d(O.__wrap(e))}function Y(e){return d(x.__wrap(e))}function k(e,n){return d(JSON.parse(g(e,n)))}function P(e,n){const _=u(n);var r=y(JSON.stringify(void 0===_?null:_),t.__wbindgen_malloc,t.__wbindgen_realloc),o=l;m()[e/4+1]=o,m()[e/4+0]=r}function z(e){const n=f(e).original;if(1==n.cnt--)return n.a=0,!0;return!1}function B(e,n,_){return d(u(e).fetch(g(n,_)))}function E(e){return u(e)instanceof Response}function I(){return T((function(e){return d(u(e).arrayBuffer())}),arguments)}function J(e,n){return d(new Function(g(e,n)))}function R(){return T((function(e,n){return d(u(e).call(u(n)))}),arguments)}function X(e){return d(u(e))}function M(){return T((function(e,n,_){return d(u(e).call(u(n),u(_)))}),arguments)}function C(e,n){try{var _={a:e,b:n},r=new Promise(((e,n)=>{const r=_.a;_.a=0;try{return function(e,n,_,r){t.wasm_bindgen__convert__closures__invoke2_mut__h49991b41b818dbf7(e,n,d(_),d(r))}(r,_.b,e,n)}finally{_.a=r}}));return d(r)}finally{_.a=_.b=0}}function F(e){return d(Promise.resolve(u(e)))}function Q(e,n){return d(u(e).then(u(n)))}function D(e,n,_){return d(u(e).then(u(n),u(_)))}function G(){return T((function(){return d(self.self)}),arguments)}function H(){return T((function(){return d(window.window)}),arguments)}function N(){return T((function(){return d(globalThis.globalThis)}),arguments)}function V(){return T((function(){return d(_.g.global)}),arguments)}function Z(e){return void 0===u(e)}function U(e){return d(u(e).buffer)}function W(e){return d(new Uint8Array(u(e)))}function K(e,n,_){u(e).set(u(n),_>>>0)}function L(e){return u(e).length}function ee(e,n){var _=y(v(u(n)),t.__wbindgen_malloc,t.__wbindgen_realloc),r=l;m()[e/4+1]=r,m()[e/4+0]=_}function ne(e,n){throw new Error(g(e,n))}function _e(){return d(t.memory)}function re(e,n,_){var r=function(e,n,_,r){const o={a:e,b:n,cnt:1,dtor:_},c=(...e)=>{o.cnt++;const n=o.a;o.a=0;try{return r(n,o.b,...e)}finally{0==--o.cnt?t.__wbindgen_export_2.get(o.dtor)(n,o.b):o.a=n}};return c.original=o,c}(e,n,303,j);return d(r)}}))},945:(e,n,_)=>{var r=([r])=>_.v(n,e.id,"19fd499eaaa4e7a24082",{"./index_bg.js":{__wbindgen_object_drop_ref:r.ug,__wbg_searcher_new:r.cI,__wbg_query_new:r.ff,__wbindgen_json_parse:r.t$,__wbindgen_json_serialize:r.r1,__wbindgen_cb_drop:r.G6,__wbg_fetch_3a636c71a7d400b0:r.ih,__wbg_instanceof_Response_e1b11afbefa5b563:r.Yb,__wbg_arrayBuffer_b8937ed04beb0d36:r.gV,__wbg_newnoargs_be86524d73f67598:r.wg,__wbg_call_888d259a5fefc347:r.BT,__wbindgen_object_clone_ref:r.m_,__wbg_call_346669c262382ad7:r.Ms,__wbg_new_b1d61b5687f5e73a:r.hq,__wbg_resolve_d23068002f584f22:r.zb,__wbg_then_2fcac196782070cc:r.Zp,__wbg_then_8c2d62e8ae5978f7:r.v_,__wbg_self_c6fbdfc2918d5e58:r.JX,__wbg_window_baec038b5ab35c54:r.xd,__wbg_globalThis_3f735a5746d41fbd:r.ud,__wbg_global_1bc0b39582740e95:r.PT,__wbindgen_is_undefined:r.XP,__wbg_buffer_397eaa4d72ee94dd:r.jp,__wbg_new_a7ce447f15ff496f:r.y4,__wbg_set_969ad0a60e51d320:r.YQ,__wbg_length_1eb8fc608a0d4cdb:r.A7,__wbindgen_debug_string:r.fY,__wbindgen_throw:r.Or,__wbindgen_memory:r.oH,__wbindgen_closure_wrapper1158:r.gA}});_.a(e,(e=>{var n=e([_(686)]);return n.then?n.then(r):r(n)}),1)}}]); \ No newline at end of file