diff --git a/src/Controller/BrowserController.php b/src/Controller/BrowserController.php index 5fe43bc..98334f5 100644 --- a/src/Controller/BrowserController.php +++ b/src/Controller/BrowserController.php @@ -25,6 +25,7 @@ class BrowserController extends ControllerBase 'drupal_version' => \Drupal::VERSION, 'drupal_core_compatibility' => \Drupal::CORE_COMPATIBILITY, 'module_path' => $module_handler->getModule('project_browser')->getPath(), + 'origin_url' => \Drupal::request()->getSchemeAndHttpHost() . \Drupal::request()->getBaseUrl(), ], ], ], diff --git a/sveltejs/public/build/bundle.css b/sveltejs/public/build/bundle.css index b29e672..054ee93 100644 --- a/sveltejs/public/build/bundle.css +++ b/sveltejs/public/build/bundle.css @@ -1,3 +1,3 @@ -.js-tab.svelte-gyass8:hover{cursor:pointer}.svelte-hz6fyb{box-sizing:border-box}.bg.svelte-hz6fyb{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}.window-wrap.svelte-hz6fyb{position:relative;margin:2rem;max-height:100%}.window.svelte-hz6fyb{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-hz6fyb{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-hz6fyb{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), +.svelte-hz6fyb{box-sizing:border-box}.bg.svelte-hz6fyb{position:fixed;z-index:1000;top:0;left:0;display:flex;flex-direction:column;justify-content:center;width:100vw;height:100vh;background:rgba(0, 0, 0, 0.66)}.window-wrap.svelte-hz6fyb{position:relative;margin:2rem;max-height:100%}.window.svelte-hz6fyb{position:relative;width:40rem;max-width:100%;max-height:100%;margin:2rem auto;color:black;border-radius:0.5rem;background:white}.content.svelte-hz6fyb{position:relative;padding:1rem;max-height:calc(100vh - 4rem);overflow:auto}.close.svelte-hz6fyb{display:block;box-sizing:border-box;position:absolute;z-index:1000;top:1rem;right:1rem;margin:0;padding:0;width:1.5rem;height:1.5rem;border:0;color:black;border-radius:1.5rem;background:white;box-shadow:0 0 0 1px black;transition:transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);-webkit-appearance:none}.close.svelte-hz6fyb:before,.close.svelte-hz6fyb:after{content:'';display:block;box-sizing:border-box;position:absolute;top:50%;width:1rem;height:1px;background:black;transform-origin:center;transition:height 0.2s cubic-bezier(0.25, 0.1, 0.25, 1), - background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-hz6fyb:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-hz6fyb:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-hz6fyb:hover{background:black}.close.svelte-hz6fyb:hover:before,.close.svelte-hz6fyb:hover:after{height:2px;background:white}.close.svelte-hz6fyb:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-hz6fyb:active{transform:scale(0.9)}.close.svelte-hz6fyb:hover,.close.svelte-hz6fyb:focus,.close.svelte-hz6fyb:active{outline:none}.grid.svelte-jaxmjs{display:flex;clear:both;flex-wrap:wrap;justify-content:space-between;margin-top:2em}.center.svelte-jaxmjs{text-align:center;font-style:italic}.slot-top.svelte-jaxmjs,.slot-bottom.svelte-jaxmjs{float:left;width:100%;margin-top:1em}.loading.svelte-jaxmjs{min-height:100px;text-align:center;margin:2em;width:100%}.project.svelte-1px6bnc.svelte-1px6bnc{width:100%}@media only screen and (min-width: 600px){.left.svelte-1px6bnc.svelte-1px6bnc{min-width:100px;width:100px;overflow:hidden;margin:0 1em 0 0;text-align:center;display:flex;align-items:flex-start}.metadata.svelte-1px6bnc .right.svelte-1px6bnc{float:right;clear:right;text-align:right;width:50%}}@media only screen and (min-width: 992px){.project.svelte-1px6bnc.svelte-1px6bnc{width:49%}}.project.svelte-1px6bnc.svelte-1px6bnc{border:1px solid black;margin-bottom:1em;border:1px solid rgba(212, 212, 218, 0.8);border-radius:2px;background-color:#f0f5fd;box-shadow:0 4px 10px rgb(0 0 0 / 10%)}h3.svelte-1px6bnc.svelte-1px6bnc{margin-right:5em;margin-top:.25em}h3.svelte-1px6bnc a.svelte-1px6bnc{text-decoration:none}.main.svelte-1px6bnc.svelte-1px6bnc{display:flex;background:white;min-height:275px;position:relative;padding:1em}.body.svelte-1px6bnc.svelte-1px6bnc{margin:0 0 1em 0}.metadata.svelte-1px6bnc.svelte-1px6bnc{clear:both;padding:1em;position:relative;font-size:.9em}.suffix.svelte-1px6bnc.svelte-1px6bnc{font-size:.9em}.author.svelte-1px6bnc a.svelte-1px6bnc{text-decoration:none}.sort.svelte-13q1u02{cursor:pointer;padding:0 0.25em;color:#999}.loader.svelte-1ujm9j6,.loader.svelte-1ujm9j6:before,.loader.svelte-1ujm9j6:after{border-radius:50%}.loader.svelte-1ujm9j6{margin:12em auto;color:#53B0EB;font-size:11px;text-indent:-99999em;position:relative;width:10em;height:10em;box-shadow:inset 0 0 0 1em;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}.loader.svelte-1ujm9j6:before,.loader.svelte-1ujm9j6:after{position:absolute;content:''}.loader.svelte-1ujm9j6:before{width:5.2em;height:10.2em;background:#ffffff;border-radius:10.2em 0 0 10.2em;top:-0.1em;left:-0.1em;-webkit-transform-origin:5.1em 5.1em;transform-origin:5.1em 5.1em;-webkit-animation:svelte-1ujm9j6-load2 2s infinite ease 1.5s;animation:svelte-1ujm9j6-load2 2s infinite ease 1.5s}.loader.svelte-1ujm9j6:after{width:5.2em;height:10.2em;background:#ffffff;border-radius:0 10.2em 10.2em 0;top:-0.1em;left:4.9em;-webkit-transform-origin:0.1em 5.1em;transform-origin:0.1em 5.1em;-webkit-animation:svelte-1ujm9j6-load2 2s infinite ease;animation:svelte-1ujm9j6-load2 2s infinite ease}@-webkit-keyframes svelte-1ujm9j6-load2{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes svelte-1ujm9j6-load2{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.views-exposed-form__item.views-exposed-form__item.svelte-18p8gyo.svelte-18p8gyo{max-width:100%;margin:0.75rem 0.5rem 0 0}.views-exposed-form.views-exposed-form.svelte-18p8gyo.svelte-18p8gyo{display:flex;flex-wrap:wrap;margin-top:1.5rem;margin-bottom:1.5rem;padding:0.5rem 1.5rem 1.5rem 1.5rem;border:1px solid #dedfe4;border-radius:2px;background-color:#fff;box-shadow:0 2px 4px rgb(0 0 0 / 10%)}.views-exposed-form__item.views-exposed-form__item.views-exposed-form__item--actions.svelte-18p8gyo.svelte-18p8gyo{margin-top:2.375rem}.views-exposed-form__item--actions.views-exposed-form__item--actions.svelte-18p8gyo .button.svelte-18p8gyo:last-child{margin-right:0}.views-exposed-form__item--actions.views-exposed-form__item--actions.svelte-18p8gyo .button.svelte-18p8gyo{margin-top:0;margin-bottom:0}a.pager__link.svelte-1dbw7k3:hover{cursor:pointer}.action.svelte-16bz03j{position:absolute;top:15px;right:15px}img.svelte-rnky1o{display:none}@media only screen and (min-width: 600px){img.svelte-rnky1o{display:block;width:100px;border-radius:5px}}.supporting-organizations.svelte-1ao7mne.svelte-1ao7mne{font-style:italic}.organization.svelte-1ao7mne a.svelte-1ao7mne{text-decoration:none}.project-usage.svelte-4suju8{display:none}ul.svelte-4suju8{margin:0;padding:0}li.svelte-4suju8{list-style:none;text-transform:lowercase}.check.svelte-4suju8{color:green}a.svelte-4suju8{text-decoration:none}.security-covered.svelte-fzzmbm{color:green}a.svelte-fzzmbm{text-decoration:none}img.svelte-fzzmbm{filter:opacity(0.5) drop-shadow(0 0 0 #7cbc48) brightness(2);height:1.38462em;margin:-1em .25em -.3em .25em}.categories.svelte-1cuxrv7.svelte-1cuxrv7{clear:both;margin-top:1em}.categories.svelte-1cuxrv7 ul.svelte-1cuxrv7{margin:0;padding:0}.categories.svelte-1cuxrv7 li.svelte-1cuxrv7{list-style:none;text-transform:lowercase;display:inline-block;margin-top:2px;margin-bottom:2px;margin-right:2px;padding:2px 5px;border:1px solid #d5d5d5;border-radius:3px;background-color:#f0f0f0;font-size:.8em}span.svelte-1ow4dq9{cursor:pointer}.compatible.svelte-10d8xb5{color:green}.not-compatible.svelte-10d8xb5{color:red}a.svelte-10d8xb5{text-decoration:none}h2.svelte-1y5u94f{margin-bottom:2em}pre.svelte-1y5u94f{background-color:#282c34;border-radius:6px;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;color:#ccc;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;tab-size:4;hyphens:none;line-height:1.4;padding:1.25rem 1.5rem;margin:.85rem 0;overflow:auto} \ No newline at end of file + background 0.2s cubic-bezier(0.25, 0.1, 0.25, 1)}.close.svelte-hz6fyb:before{-webkit-transform:translate(0, -50%) rotate(45deg);-moz-transform:translate(0, -50%) rotate(45deg);transform:translate(0, -50%) rotate(45deg);left:0.25rem}.close.svelte-hz6fyb:after{-webkit-transform:translate(0, -50%) rotate(-45deg);-moz-transform:translate(0, -50%) rotate(-45deg);transform:translate(0, -50%) rotate(-45deg);left:0.25rem}.close.svelte-hz6fyb:hover{background:black}.close.svelte-hz6fyb:hover:before,.close.svelte-hz6fyb:hover:after{height:2px;background:white}.close.svelte-hz6fyb:focus{border-color:#3399ff;box-shadow:0 0 0 2px #3399ff}.close.svelte-hz6fyb:active{transform:scale(0.9)}.close.svelte-hz6fyb:hover,.close.svelte-hz6fyb:focus,.close.svelte-hz6fyb:active{outline:none}.js-tab.svelte-gyass8:hover{cursor:pointer}.grid.svelte-jaxmjs{display:flex;clear:both;flex-wrap:wrap;justify-content:space-between;margin-top:2em}.center.svelte-jaxmjs{text-align:center;font-style:italic}.slot-top.svelte-jaxmjs,.slot-bottom.svelte-jaxmjs{float:left;width:100%;margin-top:1em}.loading.svelte-jaxmjs{min-height:100px;text-align:center;margin:2em;width:100%}.project.svelte-1px6bnc.svelte-1px6bnc{width:100%}@media only screen and (min-width: 600px){.left.svelte-1px6bnc.svelte-1px6bnc{min-width:100px;width:100px;overflow:hidden;margin:0 1em 0 0;text-align:center;display:flex;align-items:flex-start}.metadata.svelte-1px6bnc .right.svelte-1px6bnc{float:right;clear:right;text-align:right;width:50%}}@media only screen and (min-width: 992px){.project.svelte-1px6bnc.svelte-1px6bnc{width:49%}}.project.svelte-1px6bnc.svelte-1px6bnc{border:1px solid black;margin-bottom:1em;border:1px solid rgba(212, 212, 218, 0.8);border-radius:2px;background-color:#f0f5fd;box-shadow:0 4px 10px rgb(0 0 0 / 10%)}h3.svelte-1px6bnc.svelte-1px6bnc{margin-right:5em;margin-top:.25em}h3.svelte-1px6bnc a.svelte-1px6bnc{text-decoration:none}.main.svelte-1px6bnc.svelte-1px6bnc{display:flex;background:white;min-height:275px;position:relative;padding:1em}.body.svelte-1px6bnc.svelte-1px6bnc{margin:0 0 1em 0}.metadata.svelte-1px6bnc.svelte-1px6bnc{clear:both;padding:1em;position:relative;font-size:.9em}.suffix.svelte-1px6bnc.svelte-1px6bnc{font-size:.9em}.author.svelte-1px6bnc a.svelte-1px6bnc{text-decoration:none}.loader.svelte-1ujm9j6,.loader.svelte-1ujm9j6:before,.loader.svelte-1ujm9j6:after{border-radius:50%}.loader.svelte-1ujm9j6{margin:12em auto;color:#53B0EB;font-size:11px;text-indent:-99999em;position:relative;width:10em;height:10em;box-shadow:inset 0 0 0 1em;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}.loader.svelte-1ujm9j6:before,.loader.svelte-1ujm9j6:after{position:absolute;content:''}.loader.svelte-1ujm9j6:before{width:5.2em;height:10.2em;background:#ffffff;border-radius:10.2em 0 0 10.2em;top:-0.1em;left:-0.1em;-webkit-transform-origin:5.1em 5.1em;transform-origin:5.1em 5.1em;-webkit-animation:svelte-1ujm9j6-load2 2s infinite ease 1.5s;animation:svelte-1ujm9j6-load2 2s infinite ease 1.5s}.loader.svelte-1ujm9j6:after{width:5.2em;height:10.2em;background:#ffffff;border-radius:0 10.2em 10.2em 0;top:-0.1em;left:4.9em;-webkit-transform-origin:0.1em 5.1em;transform-origin:0.1em 5.1em;-webkit-animation:svelte-1ujm9j6-load2 2s infinite ease;animation:svelte-1ujm9j6-load2 2s infinite ease}@-webkit-keyframes svelte-1ujm9j6-load2{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes svelte-1ujm9j6-load2{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.sort.svelte-13q1u02{cursor:pointer;padding:0 0.25em;color:#999}.views-exposed-form__item.views-exposed-form__item.svelte-18p8gyo.svelte-18p8gyo{max-width:100%;margin:0.75rem 0.5rem 0 0}.views-exposed-form.views-exposed-form.svelte-18p8gyo.svelte-18p8gyo{display:flex;flex-wrap:wrap;margin-top:1.5rem;margin-bottom:1.5rem;padding:0.5rem 1.5rem 1.5rem 1.5rem;border:1px solid #dedfe4;border-radius:2px;background-color:#fff;box-shadow:0 2px 4px rgb(0 0 0 / 10%)}.views-exposed-form__item.views-exposed-form__item.views-exposed-form__item--actions.svelte-18p8gyo.svelte-18p8gyo{margin-top:2.375rem}.views-exposed-form__item--actions.views-exposed-form__item--actions.svelte-18p8gyo .button.svelte-18p8gyo:last-child{margin-right:0}.views-exposed-form__item--actions.views-exposed-form__item--actions.svelte-18p8gyo .button.svelte-18p8gyo{margin-top:0;margin-bottom:0}a.pager__link.svelte-1dbw7k3:hover{cursor:pointer}.supporting-organizations.svelte-1ao7mne.svelte-1ao7mne{font-style:italic}.organization.svelte-1ao7mne a.svelte-1ao7mne{text-decoration:none}.action.svelte-16bz03j{position:absolute;top:15px;right:15px}img.svelte-rnky1o{display:none}@media only screen and (min-width: 600px){img.svelte-rnky1o{display:block;width:100px;border-radius:5px}}.categories.svelte-1cuxrv7.svelte-1cuxrv7{clear:both;margin-top:1em}.categories.svelte-1cuxrv7 ul.svelte-1cuxrv7{margin:0;padding:0}.categories.svelte-1cuxrv7 li.svelte-1cuxrv7{list-style:none;text-transform:lowercase;display:inline-block;margin-top:2px;margin-bottom:2px;margin-right:2px;padding:2px 5px;border:1px solid #d5d5d5;border-radius:3px;background-color:#f0f0f0;font-size:.8em}.project-usage.svelte-4suju8{display:none}ul.svelte-4suju8{margin:0;padding:0}li.svelte-4suju8{list-style:none;text-transform:lowercase}.check.svelte-4suju8{color:green}a.svelte-4suju8{text-decoration:none}span.svelte-1ow4dq9{cursor:pointer}.security-covered.svelte-fzzmbm{color:green}a.svelte-fzzmbm{text-decoration:none}img.svelte-fzzmbm{filter:opacity(0.5) drop-shadow(0 0 0 #7cbc48) brightness(2);height:1.38462em;margin:-1em .25em -.3em .25em}.compatible.svelte-10d8xb5{color:green}.not-compatible.svelte-10d8xb5{color:red}a.svelte-10d8xb5{text-decoration:none}h2.svelte-1y5u94f{margin-bottom:2em}pre.svelte-1y5u94f{background-color:#282c34;border-radius:6px;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;color:#ccc;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;tab-size:4;hyphens:none;line-height:1.4;padding:1.25rem 1.5rem;margin:.85rem 0;overflow:auto} \ No newline at end of file diff --git a/sveltejs/public/build/bundle.js b/sveltejs/public/build/bundle.js index af8b8b8..2f01f22 100644 --- a/sveltejs/public/build/bundle.js +++ b/sveltejs/public/build/bundle.js @@ -1,2 +1,2 @@ -var app=function(){"use strict";function e(){}const t=e=>e;function n(e,t){for(const n in t)e[n]=t[n];return e}function o(e){return e()}function r(){return Object.create(null)}function l(e){e.forEach(o)}function s(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function c(t,n,o){t.$$.on_destroy.push(function(t,...n){if(null==t)return e;const o=t.subscribe(...n);return o.unsubscribe?()=>o.unsubscribe():o}(n,o))}function i(e,t,n,o){if(e){const r=u(e,t,n,o);return e[0](r)}}function u(e,t,o,r){return e[1]&&r?n(o.ctx.slice(),e[1](r(t))):o.ctx}function p(e,t,n,o,r,l,s){const a=function(e,t,n,o){if(e[2]&&o){const r=e[2](o(n));if(void 0===t.dirty)return r;if("object"==typeof r){const e=[],n=Math.max(t.dirty.length,r.length);for(let o=0;owindow.performance.now():()=>Date.now(),h=m?e=>requestAnimationFrame(e):e;const _=new Set;function $(e){_.forEach((t=>{t.c(e)||(_.delete(t),t.f())})),0!==_.size&&h($)}function y(e,t){e.appendChild(t)}function v(e,t,n){e.insertBefore(t,n||null)}function b(e){e.parentNode.removeChild(e)}function w(e,t){for(let n=0;ne.removeEventListener(t,n,o)}function z(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function B(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function O(e,t){e.value=null==t?"":t}function E(e,t,n,o){e.style.setProperty(t,n,o?"important":"")}function W(e,t){for(let n=0;n>>0}(u)}_${a}`,d=e.ownerDocument;I.add(d);const f=d.__svelte_stylesheet||(d.__svelte_stylesheet=d.head.appendChild(x("style")).sheet),m=d.__svelte_rules||(d.__svelte_rules={});m[p]||(m[p]=!0,f.insertRule(`@keyframes ${p} ${u}`,f.cssRules.length));const g=e.style.animation||"";return e.style.animation=`${g?`${g}, `:""}${p} ${o}ms linear ${r}ms 1 both`,T+=1,p}function D(e,t){const n=(e.style.animation||"").split(", "),o=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),r=n.length-o.length;r&&(e.style.animation=o.join(", "),T-=r,T||h((()=>{T||(I.forEach((e=>{const t=e.__svelte_stylesheet;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.__svelte_rules={}})),I.clear())})))}function R(e){P=e}function A(){if(!P)throw new Error("Function called outside component initialization");return P}function H(e){A().$$.on_mount.push(e)}function q(){const e=A();return(t,n)=>{const o=e.$$.callbacks[t];if(o){const r=N(t,n);o.slice().forEach((t=>{t.call(e,r)}))}}}function F(e,t){A().$$.context.set(e,t)}function U(e){return A().$$.context.get(e)}const K=[],Z=[],V=[],Y=[],G=Promise.resolve();let J=!1;function Q(e){V.push(e)}let X=!1;const ee=new Set;function te(){if(!X){X=!0;do{for(let e=0;e{le.delete(e),o&&(n&&e.d(1),o())})),e.o(t)}}const pe={duration:0};function de(n,o,r,a){let c=o(n,r),i=a?0:1,u=null,p=null,d=null;function f(){d&&D(n,d)}function m(e,t){const n=e.b-i;return t*=Math.abs(n),{a:i,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function y(o){const{delay:r=0,duration:s=300,easing:a=t,tick:y=e,css:v}=c||pe,b={start:g()+r,b:o};o||(b.group=se,se.r+=1),u||p?p=b:(v&&(f(),d=M(n,i,o,s,r,a,v)),o&&y(0,1),u=m(b,s),Q((()=>re(n,o,"start"))),function(e){let t;0===_.size&&h($),new Promise((n=>{_.add(t={c:e,f:n})}))}((e=>{if(p&&e>p.start&&(u=m(p,s),p=null,re(n,u.b,"start"),v&&(f(),d=M(n,i,u.b,u.duration,0,a,c.css))),u)if(e>=u.end)y(i=u.b,1-i),re(n,u.b,"end"),p||(u.b?f():--u.group.r||l(u.group.c)),u=null;else if(e>=u.start){const t=e-u.start;i=u.a+u.d*a(t/u.duration),y(i,1-i)}return!(!u&&!p)})))}return{run(e){s(c)?(oe||(oe=Promise.resolve(),oe.then((()=>{oe=null}))),oe).then((()=>{c=c(),y(e)})):y(e)},end(){f(),u=p=null}}}function fe(e,t){const n=t.token={};function o(e,o,r,l){if(t.token!==n)return;t.resolved=l;let s=t.ctx;void 0!==r&&(s=s.slice(),s[r]=l);const a=e&&(t.current=e)(s);let c=!1;t.block&&(t.blocks?t.blocks.forEach(((e,n)=>{n!==o&&e&&(ae(),ue(e,1,1,(()=>{t.blocks[n]===e&&(t.blocks[n]=null)})),ce())})):t.block.d(1),a.c(),ie(a,1),a.m(t.mount(),t.anchor),c=!0),t.block=a,t.blocks&&(t.blocks[o]=a),c&&te()}if((r=e)&&"object"==typeof r&&"function"==typeof r.then){const n=A();if(e.then((e=>{R(n),o(t.then,1,t.value,e),R(null)}),(e=>{if(R(n),o(t.catch,2,t.error,e),R(null),!t.hasCatch)throw e})),t.current!==t.pending)return o(t.pending,0),!0}else{if(t.current!==t.then)return o(t.then,1,t.value,e),!0;t.resolved=e}var r}function me(e,t,n){const o=t.slice(),{resolved:r}=e;e.current===e.then&&(o[e.value]=r),e.current===e.catch&&(o[e.error]=r),e.block.p(o,n)}const ge="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function he(e,t){e.d(1),t.delete(e.key)}function _e(e,t){ue(e,1,1,(()=>{t.delete(e.key)}))}function $e(e,t,n,o,r,l,s,a,c,i,u,p){let d=e.length,f=l.length,m=d;const g={};for(;m--;)g[e[m].key]=m;const h=[],_=new Map,$=new Map;for(m=f;m--;){const e=p(r,l,m),a=n(e);let c=s.get(a);c?o&&c.p(e,t):(c=i(a,e),c.c()),_.set(a,h[m]=c),a in g&&$.set(a,Math.abs(m-g[a]))}const y=new Set,v=new Set;function b(e){ie(e,1),e.m(a,u),s.set(e.key,e),u=e.first,f--}for(;d&&f;){const t=h[f-1],n=e[d-1],o=t.key,r=n.key;t===n?(u=t.first,d--,f--):_.has(r)?!s.has(o)||y.has(o)?b(t):v.has(r)?d--:$.get(o)>$.get(r)?(v.add(o),b(t)):(y.add(r),d--):(c(n,s),d--)}for(;d--;){const t=e[d];_.has(t.key)||c(t,s)}for(;f;)b(h[f-1]);return h}function ye(e){e&&e.c()}function ve(e,t,n,r){const{fragment:a,on_mount:c,on_destroy:i,after_update:u}=e.$$;a&&a.m(t,n),r||Q((()=>{const t=c.map(o).filter(s);i?i.push(...t):l(t),e.$$.on_mount=[]})),u.forEach(Q)}function be(e,t){const n=e.$$;null!==n.fragment&&(l(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function we(e,t){-1===e.$$.dirty[0]&&(K.push(e),J||(J=!0,G.then(te)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const r=o.length?o[0]:n;return p.ctx&&a(p.ctx[e],p.ctx[e]=r)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](r),d&&we(t,e)),n})):[],p.update(),d=!0,l(p.before_update),p.fragment=!!s&&s(p.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);p.fragment&&p.fragment.l(e),e.forEach(b)}else p.fragment&&p.fragment.c();n.intro&&ie(t.$$.fragment),ve(t,n.target,n.anchor,n.customElement),te()}R(u)}class je{$destroy(){be(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function ke(e,{delay:n=0,duration:o=400,easing:r=t}={}){const l=+getComputedStyle(e).opacity;return{delay:n,duration:o,easing:r,css:e=>"opacity: "+e*l}}const{window:Ce}=ge;function Se(e){let t,n,o,r,a,c,i,u,p,d,f,m=e[0].closeButton&&ze(e);var g=e[1];return g&&(c=new g({})),{c(){t=x("div"),n=x("div"),o=x("div"),m&&m.c(),r=k(),a=x("div"),c&&ye(c.$$.fragment),z(a,"class","content svelte-hz6fyb"),z(a,"style",e[8]),z(o,"class","window svelte-hz6fyb"),z(o,"role","dialog"),z(o,"aria-modal","true"),z(o,"style",e[7]),z(n,"class","window-wrap svelte-hz6fyb"),z(n,"style",e[6]),z(t,"class","bg svelte-hz6fyb"),z(t,"style",e[5])},m(l,i){v(l,t,i),y(t,n),y(n,o),m&&m.m(o,null),y(o,r),y(o,a),c&&ve(c,a,null),e[38](o),e[39](n),e[40](t),p=!0,d||(f=[S(o,"introstart",(function(){s(e[12])&&e[12].apply(this,arguments)})),S(o,"outrostart",(function(){s(e[13])&&e[13].apply(this,arguments)})),S(o,"introend",(function(){s(e[14])&&e[14].apply(this,arguments)})),S(o,"outroend",(function(){s(e[15])&&e[15].apply(this,arguments)})),S(t,"mousedown",e[19]),S(t,"mouseup",e[20])],d=!0)},p(l,s){if((e=l)[0].closeButton?m?(m.p(e,s),1&s[0]&&ie(m,1)):(m=ze(e),m.c(),ie(m,1),m.m(o,r)):m&&(ae(),ue(m,1,1,(()=>{m=null})),ce()),g!==(g=e[1])){if(c){ae();const e=c;ue(e.$$.fragment,1,0,(()=>{be(e,1)})),ce()}g?(c=new g({}),ye(c.$$.fragment),ie(c.$$.fragment,1),ve(c,a,null)):c=null}(!p||256&s[0])&&z(a,"style",e[8]),(!p||128&s[0])&&z(o,"style",e[7]),(!p||64&s[0])&&z(n,"style",e[6]),(!p||32&s[0])&&z(t,"style",e[5])},i(n){p||(ie(m),c&&ie(c.$$.fragment,n),Q((()=>{i||(i=de(o,e[11],e[0].transitionWindowProps,!0)),i.run(1)})),Q((()=>{u||(u=de(t,e[10],e[0].transitionBgProps,!0)),u.run(1)})),p=!0)},o(n){ue(m),c&&ue(c.$$.fragment,n),i||(i=de(o,e[11],e[0].transitionWindowProps,!1)),i.run(0),u||(u=de(t,e[10],e[0].transitionBgProps,!1)),u.run(0),p=!1},d(n){n&&b(t),m&&m.d(),c&&be(c),e[38](null),n&&i&&i.end(),e[39](null),e[40](null),n&&u&&u.end(),d=!1,l(f)}}}function ze(e){let t,n,o,r,l;const s=[Oe,Be],a=[];function c(e,n){return 1&n[0]&&(t=!!e[16](e[0].closeButton)),t?0:1}return n=c(e,[-1]),o=a[n]=s[n](e),{c(){o.c(),r=C()},m(e,t){a[n].m(e,t),v(e,r,t),l=!0},p(e,t){let l=n;n=c(e,t),n===l?a[n].p(e,t):(ae(),ue(a[l],1,1,(()=>{a[l]=null})),ce(),o=a[n],o?o.p(e,t):(o=a[n]=s[n](e),o.c()),ie(o,1),o.m(r.parentNode,r))},i(e){l||(ie(o),l=!0)},o(e){ue(o),l=!1},d(e){a[n].d(e),e&&b(r)}}}function Be(t){let n,o,r;return{c(){n=x("button"),z(n,"class","close svelte-hz6fyb"),z(n,"style",t[9])},m(e,l){v(e,n,l),o||(r=S(n,"click",t[17]),o=!0)},p(e,t){512&t[0]&&z(n,"style",e[9])},i:e,o:e,d(e){e&&b(n),o=!1,r()}}}function Oe(e){let t,n,o;var r=e[0].closeButton;function l(e){return{props:{onClose:e[17]}}}return r&&(t=new r(l(e))),{c(){t&&ye(t.$$.fragment),n=C()},m(e,r){t&&ve(t,e,r),v(e,n,r),o=!0},p(e,o){if(r!==(r=e[0].closeButton)){if(t){ae();const e=t;ue(e.$$.fragment,1,0,(()=>{be(e,1)})),ce()}r?(t=new r(l(e)),ye(t.$$.fragment),ie(t.$$.fragment,1),ve(t,n.parentNode,n)):t=null}},i(e){o||(t&&ie(t.$$.fragment,e),o=!0)},o(e){t&&ue(t.$$.fragment,e),o=!1},d(e){e&&b(n),t&&be(t,e)}}}function Ee(e){let t,n,o,r,l=e[1]&&Se(e);const s=e[37].default,a=i(s,e,e[36],null);return{c(){l&&l.c(),t=k(),a&&a.c()},m(s,c){l&&l.m(s,c),v(s,t,c),a&&a.m(s,c),n=!0,o||(r=S(Ce,"keydown",e[18]),o=!0)},p(e,o){e[1]?l?(l.p(e,o),2&o[0]&&ie(l,1)):(l=Se(e),l.c(),ie(l,1),l.m(t.parentNode,t)):l&&(ae(),ue(l,1,1,(()=>{l=null})),ce()),a&&a.p&&(!n||32&o[1])&&p(a,s,e,e[36],o,null,null)},i(e){n||(ie(l),ie(a,e),n=!0)},o(e){ue(l),ue(a,e),n=!1},d(e){l&&l.d(e),e&&b(t),a&&a.d(e),o=!1,r()}}}function We(e,t={}){return function(n){return new e({...n,props:{...t,...n.props}})}}function Le(e,t,n){let{$$slots:o={},$$scope:r}=t;const l=q(),s=F;let{show:a=null}=t,{key:c="simple-modal"}=t,{closeButton:i=!0}=t,{closeOnEsc:u=!0}=t,{closeOnOuterClick:p=!0}=t,{styleBg:d={}}=t,{styleWindowWrap:f={}}=t,{styleWindow:m={}}=t,{styleContent:g={}}=t,{styleCloseButton:h={}}=t,{setContext:_=s}=t,{transitionBg:$=ke}=t,{transitionBgProps:y={duration:250}}=t,{transitionWindow:v=$}=t,{transitionWindowProps:b=y}=t;const w={closeButton:i,closeOnEsc:u,closeOnOuterClick:p,styleBg:d,styleWindowWrap:f,styleWindow:m,styleContent:g,styleCloseButton:h,transitionBg:$,transitionBgProps:y,transitionWindow:v,transitionWindowProps:b};let x,j,k,C,S,z,B,O,E,W,L,N,I,P,T={...w},M=null;const D=e=>Object.keys(e).reduce(((t,n)=>`${t}; ${(e=>e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase())(n)}: ${e[n]}`),""),R=e=>!!(e&&e.constructor&&e.call&&e.apply),H=()=>{};let U=H,K=H,V=H,Y=H;const G=(e,t={},o={},r={})=>{n(1,M=We(e,t)),n(0,T={...w,...o}),n(5,S=D(T.styleBg)),n(6,z=D(T.styleWindowWrap)),n(7,B=D(T.styleWindow)),n(8,O=D(T.styleContent)),n(9,E=D(T.styleCloseButton)),n(10,W=T.transitionBg),n(11,L=T.transitionWindow),Q(),n(12,U=e=>{r.onOpen&&r.onOpen(e),l("open"),l("opening")}),n(13,K=e=>{r.onClose&&r.onClose(e),l("close"),l("closing")}),n(14,V=e=>{r.onOpened&&r.onOpened(e),l("opened")}),n(15,Y=e=>{r.onClosed&&r.onClosed(e),l("closed")})},J=(e={})=>{n(13,K=e.onClose||K),n(15,Y=e.onClosed||Y),n(1,M=null),X()},Q=()=>{C=window.scrollY,N=document.body.style.position,I=document.body.style.overflow,document.body.style.position="fixed",document.body.style.top=`-${C}px`,document.body.style.overflow="hidden"},X=()=>{document.body.style.position=N||"",document.body.style.top="",document.body.style.overflow=I||"",window.scrollTo(0,C)};var ee;return _(c,{open:G,close:J}),ee=()=>{J()},A().$$.on_destroy.push(ee),e.$$set=e=>{"show"in e&&n(21,a=e.show),"key"in e&&n(22,c=e.key),"closeButton"in e&&n(23,i=e.closeButton),"closeOnEsc"in e&&n(24,u=e.closeOnEsc),"closeOnOuterClick"in e&&n(25,p=e.closeOnOuterClick),"styleBg"in e&&n(26,d=e.styleBg),"styleWindowWrap"in e&&n(27,f=e.styleWindowWrap),"styleWindow"in e&&n(28,m=e.styleWindow),"styleContent"in e&&n(29,g=e.styleContent),"styleCloseButton"in e&&n(30,h=e.styleCloseButton),"setContext"in e&&n(31,_=e.setContext),"transitionBg"in e&&n(32,$=e.transitionBg),"transitionBgProps"in e&&n(33,y=e.transitionBgProps),"transitionWindow"in e&&n(34,v=e.transitionWindow),"transitionWindowProps"in e&&n(35,b=e.transitionWindowProps),"$$scope"in e&&n(36,r=e.$$scope)},e.$$.update=()=>{2097152&e.$$.dirty[0]&&(R(a)?G(a):J())},[T,M,x,j,k,S,z,B,O,E,W,L,U,K,V,Y,R,J,e=>{if(T.closeOnEsc&&M&&"Escape"===e.key&&(e.preventDefault(),J()),M&&"Tab"===e.key){const t=k.querySelectorAll("*"),n=Array.from(t).filter((e=>e.tabIndex>=0));let o=n.indexOf(document.activeElement);-1===o&&e.shiftKey&&(o=0),o+=n.length+(e.shiftKey?-1:1),o%=n.length,n[o].focus(),e.preventDefault()}},e=>{!T.closeOnOuterClick||e.target!==x&&e.target!==j||(P=e.target)},e=>{T.closeOnOuterClick&&e.target===P&&(e.preventDefault(),J())},a,c,i,u,p,d,f,m,g,h,_,$,y,v,b,r,o,function(e){Z[e?"unshift":"push"]((()=>{k=e,n(4,k)}))},function(e){Z[e?"unshift":"push"]((()=>{j=e,n(3,j)}))},function(e){Z[e?"unshift":"push"]((()=>{x=e,n(2,x)}))}]}class Ne extends je{constructor(e){super(),xe(this,e,Le,Ee,a,{show:21,key:22,closeButton:23,closeOnEsc:24,closeOnOuterClick:25,styleBg:26,styleWindowWrap:27,styleWindow:28,styleContent:29,styleCloseButton:30,setContext:31,transitionBg:32,transitionBgProps:33,transitionWindow:34,transitionWindowProps:35},[-1,-1])}}const Ie=[];const Pe=function(t,n=e){let o;const r=[];function l(e){if(a(t,e)&&(t=e,o)){const e=!Ie.length;for(let e=0;e{const e=r.indexOf(c);-1!==e&&r.splice(e,1),0===r.length&&(o(),o=null)}}}}(null);function Te(t){let n;return{c(){n=x("div"),n.textContent="Loading...",z(n,"class","loader svelte-1ujm9j6")},m(e,t){v(e,n,t)},p:e,i:e,o:e,d(e){e&&b(n)}}}class Me extends je{constructor(e){super(),xe(this,e,null,Te,a,{})}}async function De(e){let t;const n=await fetch(e+".json");if(n.ok)return t=await n.json(),t;throw new Error("Could not load entity")}function Re(e,t,n){const o=e.slice();return o[12]=t[n],o}function Ae(t){let n;return{c(){n=x("option"),n.textContent="Error",n.__value="Error",n.value=n.__value},m(e,t){v(e,n,t)},p:e,d(e){e&&b(n)}}}function He(e){let t,n,o=e[11].list||[],r=[];for(let t=0;t',z(r,"class","form-item__label"),z(a,"class","search form-text form-element form-element--type-text form-element--api-textfield"),z(a,"type","search"),z(a,"title",c=t[2].placeholder),z(a,"placeholder",i=t[2].placeholder),z(o,"class","views-exposed-form__item js-form-item form-item js-form-type-textfield form-type--textfield svelte-18p8gyo"),z(d,"class","form-item__label"),z(m,"name","category"),z(m,"class","form-select form-element form-element--type-select"),void 0===t[1]&&Q((()=>t[8].call(m))),z(p,"class","views-exposed-form__item js-form-item form-item js-form-type-select form-type--select js-form-item-type form-item--type svelte-18p8gyo"),z(h,"class","form-actions views-exposed-form__item views-exposed-form__item--actions js-form-wrapper form-wrapper svelte-18p8gyo"),z(h,"id","edit-actions"),z(n,"class","views-exposed-form svelte-18p8gyo")},m(e,l){v(e,n,l),y(n,o),y(o,r),y(o,s),y(o,a),O(a,t[0]),y(n,u),y(n,p),y(p,d),y(p,f),y(p,m),w.block.m(m,w.anchor=null),w.mount=()=>m,w.anchor=null,W(m,t[1]),y(n,g),y(n,h),_||($=[S(a,"input",t[7]),S(a,"keyup",t[3]),S(m,"change",t[8]),S(m,"change",t[4])],_=!0)},p(e,[n]){t=e,4&n&&c!==(c=t[2].placeholder)&&z(a,"title",c),4&n&&i!==(i=t[2].placeholder)&&z(a,"placeholder",i),1&n&&O(a,t[0]),me(w,t,n),2&n&&W(m,t[1])},i:e,o:e,d(e){e&&b(n),w.block.d(),w.token=null,w=null,_=!1,l($)}}}let Ke,Ze;function Ve(e,t,n){const o=q(),r=U("state");let{filter:l=((e,t,n)=>{t=t.toLowerCase();for(let n in e)if(e[n]&&e[n].toString().toLowerCase().indexOf(t)>-1)return!0;return!1})}=t,{index:s=-1}=t,{text:a=""}=t,{category:c}=t,{labels:i={placeholder:"Search exact title",...Ke}}=t;return e.$$set=e=>{"filter"in e&&n(5,l=e.filter),"index"in e&&n(6,s=e.index),"text"in e&&n(0,a=e.text),"category"in e&&n(1,c=e.category),"labels"in e&&n(2,i=e.labels)},[a,c,i,async function(e){const t=r.getState(),n={originalEvent:e,filter:l,index:s,text:a,page:t.page,pageIndex:t.pageIndex,pageSize:t.pageSize,rows:t.filteredRows};o("search",n),!0!==n.preventDefault?(0===n.text.length?r.setRows(t.rows):r.setRows(n.rows.filter((e=>n.filter(e,n.text,s)))),r.setPage(0,0)):r.setRows(n.rows)},async function(e){const t=r.getState(),n={originalEvent:e,category:c,page:t.page,pageIndex:t.pageIndex,pageSize:t.pageSize,rows:t.filteredRows};o("selectCategory",n),r.setPage(0,0),r.setRows(n.rows)},l,s,function(){a=this.value,n(0,a)},function(){c=function(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}(this),n(1,c)}]}class Ye extends je{constructor(e){super(),xe(this,e,Ve,Ue,a,{filter:5,index:6,text:0,category:1,labels:2})}}function Ge(e,t,n){const o=e.slice();return o[15]=t[n],o}function Je(e){let t,n,o,r,l,s=e[2]+e[15]+1+"";function a(...t){return e[10](e[15],...t)}return{c(){t=x("li"),n=x("a"),o=j(s),z(n,"class","pager__link svelte-1dbw7k3"),L(n,"is-active",e[2]===e[2]+e[15]),z(t,"class","pager__item pager__item--number"),L(t,"pager__item--active",e[2]===e[2]+e[15])},m(e,s){v(e,t,s),y(t,n),y(n,o),r||(l=S(n,"click",a),r=!0)},p(r,l){e=r,5&l&&s!==(s=e[2]+e[15]+1+"")&&B(o,s),5&l&&L(n,"is-active",e[2]===e[2]+e[15]),5&l&&L(t,"pager__item--active",e[2]===e[2]+e[15])},d(e){e&&b(t),r=!1,l()}}}function Qe(e){let t,n=e[2]+e[15]>=0&&e[2]+e[15]<=e[4]&&Je(e);return{c(){n&&n.c(),t=C()},m(e,o){n&&n.m(e,o),v(e,t,o)},p(e,o){e[2]+e[15]>=0&&e[2]+e[15]<=e[4]?n?n.p(e,o):(n=Je(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&b(t)}}}function Xe(e){let t,n;return{c(){t=j(e[1]),n=j(" projects")},m(e,o){v(e,t,o),v(e,n,o)},p(e,n){2&n&&B(t,e[1])},d(e){e&&b(t),e&&b(n)}}}function et(t){let n,o,r,s,a,c,i,u,p,d,f,m,g,h,_,$,C,O,E,W,L,N,I,P,T,M,D=t[3].first+"",R=t[3].previous+"",A=t[3].next+"",H=t[3].last+"",q=t[0],F=[];for(let e=0;et[4]-1),z(h,"class","pager__item pager__next"),z(W,"class","pager__link svelte-1dbw7k3"),z(W,"disabled",N=t[2]>=t[4]),z(E,"class","pager__item pager__last"),z(o,"class","pager__items js-pager__items"),z(n,"class","pagination pager")},m(e,l){v(e,n,l),y(n,o),y(o,r),y(r,s),y(s,a),y(o,i),y(o,u),y(u,p),y(p,d),y(o,m);for(let e=0;ee[4]-1)&&z(_,"disabled",C),8&t&&H!==(H=e[3].last+"")&&B(L,H),20&t&&N!==(N=e[2]>=e[4])&&z(W,"disabled",N),e[1]?U?U.p(e,t):(U=Xe(e),U.c(),U.m(P,null)):U&&(U.d(1),U=null)},i:e,o:e,d(e){e&&b(n),w(F,e),U&&U.d(),T=!1,l(M)}}}function tt(e,t,n){let o;const r=q(),l=U("state");let{buttons:s=[-2,-1,0,1,2,3,4,5,6,7,8]}=t,{count:a}=t,{page:c=0}=t,{pageSize:i}=t,{serverSide:u=!1}=t,{labels:p={first:"First",last:"Last",next:"Next",previous:"Previous",...Ze}}=t;function d(e,t){const n=l.getState(),o={originalEvent:e,page:t,pageIndex:u?0:t*n.pageSize,pageSize:n.pageSize};r("pageChange",o),!0!==o.preventDefault&&l.setPage(o.page,o.pageIndex)}return e.$$set=e=>{"buttons"in e&&n(0,s=e.buttons),"count"in e&&n(1,a=e.count),"page"in e&&n(2,c=e.page),"pageSize"in e&&n(6,i=e.pageSize),"serverSide"in e&&n(7,u=e.serverSide),"labels"in e&&n(3,p=e.labels)},e.$$.update=()=>{66&e.$$.dirty&&n(4,o=Math.floor(a/i))},[s,a,c,p,o,d,i,u,e=>d(e,0),e=>d(e,c-1),(e,t)=>d(t,c+e),e=>d(e,c+1),e=>d(e,o)]}class nt extends je{constructor(e){super(),xe(this,e,tt,et,a,{buttons:0,count:1,page:2,pageSize:6,serverSide:7,labels:3})}}const ot=e=>({rows:128&e}),rt=e=>({rows:e[7]}),lt=e=>({rows:128&e}),st=e=>({rows:e[7]}),at=e=>({rows:128&e}),ct=e=>({rows:e[7]}),it=e=>({rows:128&e}),ut=e=>({rows:e[7]}),pt=e=>({rows:128&e}),dt=e=>({rows:e[7]});function ft(e){let t;const n=e[14].default,o=i(n,e,e[13],ct);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,r){o&&o.p&&(!t||8320&r)&&p(o,n,e,e[13],r,at,ct)},i(e){t||(ie(o,e),t=!0)},o(e){ue(o,e),t=!1},d(e){o&&o.d(e)}}}function mt(t){let n,o=t[5].empty+"";return{c(){n=x("div")},m(e,t){v(e,n,t),n.innerHTML=o},p(e,t){32&t&&o!==(o=e[5].empty+"")&&(n.innerHTML=o)},i:e,o:e,d(e){e&&b(n)}}}function gt(t){let n,o;return n=new Me({}),{c(){ye(n.$$.fragment)},m(e,t){ve(n,e,t),o=!0},p:e,i(e){o||(ie(n.$$.fragment,e),o=!0)},o(e){ue(n.$$.fragment,e),o=!1},d(e){be(n,e)}}}function ht(e){let t,n,o,r,l,s,a,c,u;const d=e[14].top,m=i(d,e,e[13],dt),g=m||function(e){let t,n,o;var r=Ye;return r&&(n=new r({}),n.$on("search",e[9])),{c(){t=x("div"),n&&ye(n.$$.fragment),z(t,"class","slot-top svelte-jaxmjs")},m(e,r){v(e,t,r),n&&ve(n,t,null),o=!0},p(e,o){if(r!==(r=Ye)){if(n){ae();const e=n;ue(e.$$.fragment,1,0,(()=>{be(e,1)})),ce()}r?(n=new r({}),n.$on("search",e[9]),ye(n.$$.fragment),ie(n.$$.fragment,1),ve(n,t,null)):n=null}},i(e){o||(n&&ie(n.$$.fragment,e),o=!0)},o(e){n&&ue(n.$$.fragment,e),o=!1},d(e){e&&b(t),n&&be(n)}}}(e),h=e[14].head,_=i(h,e,e[13],ut),$=[gt,mt,ft],w=[];function j(e,t){return e[1]?0:0===e[7].length?1:2}r=j(e),l=w[r]=$[r](e);const C=e[14].foot,S=i(C,e,e[13],st),B=e[14].bottom,O=i(B,e,e[13],rt),E=O||function(e){let t,n,o;var r=nt;function l(e){return{props:{page:e[0],pageSize:e[2],serverSide:e[4],count:e[6].length-1}}}return r&&(n=new r(l(e)),n.$on("pageChange",e[8])),{c(){t=x("div"),n&&ye(n.$$.fragment),z(t,"class","slot-bottom svelte-jaxmjs")},m(e,r){v(e,t,r),n&&ve(n,t,null),o=!0},p(e,o){const s={};if(1&o&&(s.page=e[0]),4&o&&(s.pageSize=e[2]),16&o&&(s.serverSide=e[4]),64&o&&(s.count=e[6].length-1),r!==(r=nt)){if(n){ae();const e=n;ue(e.$$.fragment,1,0,(()=>{be(e,1)})),ce()}r?(n=new r(l(e)),n.$on("pageChange",e[8]),ye(n.$$.fragment),ie(n.$$.fragment,1),ve(n,t,null)):n=null}else r&&n.$set(s)},i(e){o||(n&&ie(n.$$.fragment,e),o=!0)},o(e){n&&ue(n.$$.fragment,e),o=!1},d(e){e&&b(t),n&&be(n)}}}(e);return{c(){g&&g.c(),t=k(),n=x("div"),_&&_.c(),o=k(),l.c(),s=k(),S&&S.c(),c=k(),E&&E.c(),z(n,"class",a=f("grid "+e[10].class)+" svelte-jaxmjs"),L(n,"responsive",e[3])},m(e,l){g&&g.m(e,l),v(e,t,l),v(e,n,l),_&&_.m(n,null),y(n,o),w[r].m(n,null),y(n,s),S&&S.m(n,null),v(e,c,l),E&&E.m(e,l),u=!0},p(e,[t]){m&&m.p&&(!u||8320&t)&&p(m,d,e,e[13],t,pt,dt),_&&_.p&&(!u||8320&t)&&p(_,h,e,e[13],t,it,ut);let o=r;r=j(e),r===o?w[r].p(e,t):(ae(),ue(w[o],1,1,(()=>{w[o]=null})),ce(),l=w[r],l?l.p(e,t):(l=w[r]=$[r](e),l.c()),ie(l,1),l.m(n,s)),S&&S.p&&(!u||8320&t)&&p(S,C,e,e[13],t,lt,st),(!u||1024&t&&a!==(a=f("grid "+e[10].class)+" svelte-jaxmjs"))&&z(n,"class",a),1032&t&&L(n,"responsive",e[3]),O?O.p&&(!u||8320&t)&&p(O,B,e,e[13],t,ot,rt):E&&E.p&&85&t&&E.p(e,t)},i(e){u||(ie(g,e),ie(_,e),ie(l),ie(S,e),ie(E,e),u=!0)},o(e){ue(g,e),ue(_,e),ue(l),ue(S,e),ue(E,e),u=!1},d(e){g&&g.d(e),e&&b(t),e&&b(n),_&&_.d(e),w[r].d(),S&&S.d(e),e&&b(c),E&&E.d(e)}}}let _t;function $t(e,t,o){let r,l,{$$slots:s={},$$scope:a}=t;const c=q();let{loading:i=!1}=t,{page:u=0}=t,{pageIndex:p=0}=t,{pageSize:f=12}=t,{responsive:m=!0}=t,{rows:g}=t,{serverSide:h=!1}=t,{labels:_={empty:"No records available",loading:"Loading data",..._t}}=t;return F("state",{getState:()=>({page:u,pageIndex:p,pageSize:f,rows:g,filteredRows:r}),setPage:(e,t)=>{o(0,u=e),o(11,p=t)},setRows:e=>o(6,r=e)}),e.$$set=e=>{o(10,t=n(n({},t),d(e))),"loading"in e&&o(1,i=e.loading),"page"in e&&o(0,u=e.page),"pageIndex"in e&&o(11,p=e.pageIndex),"pageSize"in e&&o(2,f=e.pageSize),"responsive"in e&&o(3,m=e.responsive),"rows"in e&&o(12,g=e.rows),"serverSide"in e&&o(4,h=e.serverSide),"labels"in e&&o(5,_=e.labels),"$$scope"in e&&o(13,a=e.$$scope)},e.$$.update=()=>{4096&e.$$.dirty&&o(6,r=g),2116&e.$$.dirty&&o(7,l=r.slice(p,p+f))},t=d(t),[u,i,f,m,h,_,r,l,function(e){c("pageChange",e.detail)},function(e){c("search",e.detail)},t,p,g,a,s]}class yt extends je{constructor(e){super(),xe(this,e,$t,ht,a,{loading:1,page:0,pageIndex:11,pageSize:2,responsive:3,rows:12,serverSide:4,labels:5})}}function vt(t){let n,o,r,l,s,a,c,i,u,p,d,f,m,g,h,_,$,w,C,S,O,E,W,L,N,I,P,T,M,D,R,A,H,q,F=t[0].title+"",U=t[0].field_project_machine_name+"",K=t[0].field_project_machine_name+"";return{c(){n=x("h2"),o=j(F),r=k(),l=x("h3"),l.textContent="1. Download",s=k(),a=x("p"),a.innerHTML='The recommended way to download any Drupal module is with Composer.',c=k(),i=x("p"),i.textContent="If you already manage your Drupal application dependencies with Composer, simply open your CLI and run the following command from the Composer root directory\nfor your application:",u=k(),p=x("pre"),d=j("composer require drupal/"),f=j(U),m=j(" --with-all-dependencies"),g=k(),h=x("p"),h.textContent="This will download the module to your codebase.",_=k(),$=x("p"),$.innerHTML="Didn't work? Learn how to troubleshoot Composer.",w=k(),C=x("p"),C.innerHTML='If you cannot use Composer, you may download the module manually through your browser.',S=k(),O=x("h3"),O.textContent="2. Install",E=k(),W=x("p"),L=j("To use the module you must next install/enable it. Visit the "),N=x("a"),I=j("modules page"),T=j(" to install the module using your web browser."),M=k(),D=x("p"),D.innerHTML='Alternatively, you can use drush to enable it via the CLI:',R=k(),A=x("pre"),H=j("drush pm-enable "),q=j(K),z(n,"class","svelte-1y5u94f"),z(p,"class","svelte-1y5u94f"),z(N,"href",P="/admin/modules#module-"+t[0].field_project_machine_name),z(N,"target","_blank"),z(A,"class","svelte-1y5u94f")},m(e,t){v(e,n,t),y(n,o),v(e,r,t),v(e,l,t),v(e,s,t),v(e,a,t),v(e,c,t),v(e,i,t),v(e,u,t),v(e,p,t),y(p,d),y(p,f),y(p,m),v(e,g,t),v(e,h,t),v(e,_,t),v(e,$,t),v(e,w,t),v(e,C,t),v(e,S,t),v(e,O,t),v(e,E,t),v(e,W,t),y(W,L),y(W,N),y(N,I),y(W,T),v(e,M,t),v(e,D,t),v(e,R,t),v(e,A,t),y(A,H),y(A,q)},p(e,[t]){1&t&&F!==(F=e[0].title+"")&&B(o,F),1&t&&U!==(U=e[0].field_project_machine_name+"")&&B(f,U),1&t&&P!==(P="/admin/modules#module-"+e[0].field_project_machine_name)&&z(N,"href",P),1&t&&K!==(K=e[0].field_project_machine_name+"")&&B(q,K)},i:e,o:e,d(e){e&&b(n),e&&b(r),e&&b(l),e&&b(s),e&&b(a),e&&b(c),e&&b(i),e&&b(u),e&&b(p),e&&b(g),e&&b(h),e&&b(_),e&&b($),e&&b(w),e&&b(C),e&&b(S),e&&b(O),e&&b(E),e&&b(W),e&&b(M),e&&b(D),e&&b(R),e&&b(A)}}}function bt(e,t,n){let{project:o}=t;return e.$$set=e=>{"project"in e&&n(0,o=e.project)},[o]}class wt extends je{constructor(e){super(),xe(this,e,bt,vt,a,{project:0})}}function xt(t){let n,o,r,l;return{c(){n=x("span"),o=x("button"),o.textContent="Download",z(o,"class","button button--action button--primary")},m(e,s){v(e,n,s),y(n,o),r||(l=S(o,"click",t[1]),r=!0)},p:e,d(e){e&&b(n),r=!1,l()}}}function jt(e){let t,n,o,r;return{c(){t=x("span"),n=x("a"),o=x("button"),o.textContent="Install",z(o,"type","button"),z(o,"class","button button--action button--secondary"),z(n,"href",r="/admin/modules#module-"+e[0].field_project_machine_name),z(n,"target","_blank")},m(e,r){v(e,t,r),y(t,n),y(n,o)},p(e,t){1&t&&r!==(r="/admin/modules#module-"+e[0].field_project_machine_name)&&z(n,"href",r)},d(e){e&&b(t)}}}function kt(e){let t,n,o,r;return{c(){t=x("span"),n=x("a"),o=j("Installed"),z(n,"href",r="/admin/modules#module-"+e[0].field_project_machine_name),z(n,"class","action-link action-link--icon-checkmark"),z(n,"target","_blank")},m(e,r){v(e,t,r),y(t,n),y(n,o)},p(e,t){1&t&&r!==(r="/admin/modules#module-"+e[0].field_project_machine_name)&&z(n,"href",r)},d(e){e&&b(t)}}}function Ct(t){let n,o,r;function l(e,t){var n;return(null==o||1&t)&&(n=e[0].field_project_machine_name,o=!("undefined"==typeof drupalSettings||!(n in drupalSettings.project_browser.modules)||1!==drupalSettings.project_browser.modules[n])),o?kt:((null==r||1&t)&&(r=!!function(e){return"undefined"!=typeof drupalSettings&&e in drupalSettings.project_browser.modules}(e[0].field_project_machine_name)),r?jt:xt)}let s=l(t,-1),a=s(t);return{c(){n=x("div"),a.c(),z(n,"class","action svelte-16bz03j")},m(e,t){v(e,n,t),a.m(n,null)},p(e,[t]){s===(s=l(e,t))&&a?a.p(e,t):(a.d(1),a=s(e),a&&(a.c(),a.m(n,null)))},i:e,o:e,d(e){e&&b(n),a.d()}}}function St(e,t,n){let{project:o}=t;return e.$$set=e=>{"project"in e&&n(0,o=e.project)},[o,()=>{Pe.set(We(wt,{project:o}))}]}class zt extends je{constructor(e){super(),xe(this,e,St,Ct,a,{project:0})}}function Bt(e,t,n){const o=e.slice();return o[1]=t[n],o}function Ot(e){let t,n,o,r=e[0]||[],l=[];for(let t=0;tn.parentNode,o.anchor=n,v(e,n,t)},p(n,r){e=n,o.ctx=e,1&r&&t!==(t=De(e[4].field_supporting_organization.uri))&&fe(t,o)||me(o,e,r)},d(e){o.block.d(e),o.token=null,o=null,e&&b(n)}}}function Lt(e){let t,n,o=e[6].message+"";return{c(){t=x("span"),n=j(o),E(t,"color","red")},m(e,o){v(e,t,o),y(t,n)},p(e,t){1&t&&o!==(o=e[6].message+"")&&B(n,o)},d(e){e&&b(t)}}}function Nt(e){let t,n,o,r,l=e[5].title+"",s=e[0][e[0].length-1].id!==e[1].id&&It();return{c(){t=x("span"),n=x("a"),o=j(l),s&&s.c(),z(n,"href",r=e[5].url),z(n,"target","_blank"),z(n,"class","svelte-1ao7mne"),z(t,"class","organization svelte-1ao7mne")},m(e,r){v(e,t,r),y(t,n),y(n,o),s&&s.m(t,null)},p(e,a){1&a&&l!==(l=e[5].title+"")&&B(o,l),1&a&&r!==(r=e[5].url)&&z(n,"href",r),e[0][e[0].length-1].id!==e[1].id?s||(s=It(),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(e){e&&b(t),s&&s.d()}}}function It(e){let t;return{c(){t=j(",")},m(e,n){v(e,t,n)},d(e){e&&b(t)}}}function Pt(t){return{c:e,m:e,p:e,d:e}}function Tt(t){return{c:e,m:e,p:e,d:e}}function Mt(e){let t,n,o={ctx:e,current:null,token:null,hasCatch:!0,pending:Tt,then:Wt,catch:Et,value:4,error:6};return fe(n=De(e[1].uri),o),{c(){t=C(),o.block.c()},m(e,n){v(e,t,n),o.block.m(e,o.anchor=n),o.mount=()=>t.parentNode,o.anchor=t},p(t,r){e=t,o.ctx=e,1&r&&n!==(n=De(e[1].uri))&&fe(n,o)||me(o,e,r)},d(e){e&&b(t),o.block.d(e),o.token=null,o=null}}}function Dt(t){let n,o=void 0!==t[0]&&t[0].length&&Ot(t);return{c(){o&&o.c(),n=C()},m(e,t){o&&o.m(e,t),v(e,n,t)},p(e,[t]){void 0!==e[0]&&e[0].length?o?o.p(e,t):(o=Ot(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:e,o:e,d(e){o&&o.d(e),e&&b(n)}}}function Rt(e,t,n){let{field_supporting_organizations:o}=t;return e.$$set=e=>{"field_supporting_organizations"in e&&n(0,o=e.field_supporting_organizations)},[o]}class At extends je{constructor(e){super(),xe(this,e,Rt,Dt,a,{field_supporting_organizations:0})}}function Ht(t){let n,o;return{c(){n=x("img"),n.src!==(o="/"+drupalSettings.project_browser.module_path+"/images/placeholder-image.png")&&z(n,"src",o),z(n,"alt","Placeholder image"),z(n,"class","svelte-rnky1o")},m(e,t){v(e,n,t)},p:e,d(e){e&&b(n)}}}function qt(e){let t,n,o={ctx:e,current:null,token:null,hasCatch:!0,pending:Kt,then:Ut,catch:Ft,value:1,error:2};return fe(n=De(e[0][0].file.uri),o),{c(){t=C(),o.block.c()},m(e,n){v(e,t,n),o.block.m(e,o.anchor=n),o.mount=()=>t.parentNode,o.anchor=t},p(t,r){e=t,o.ctx=e,1&r&&n!==(n=De(e[0][0].file.uri))&&fe(n,o)||me(o,e,r)},d(e){e&&b(t),o.block.d(e),o.token=null,o=null}}}function Ft(e){let t,n,o=e[2].message+"";return{c(){t=x("span"),n=j(o),E(t,"color","red")},m(e,o){v(e,t,o),y(t,n)},p(e,t){1&t&&o!==(o=e[2].message+"")&&B(n,o)},d(e){e&&b(t)}}}function Ut(e){let t,n,o;return{c(){t=x("img"),t.src!==(n=e[1].url)&&z(t,"src",n),z(t,"alt",o=e[0][0].alt),z(t,"class","svelte-rnky1o")},m(e,n){v(e,t,n)},p(e,r){1&r&&t.src!==(n=e[1].url)&&z(t,"src",n),1&r&&o!==(o=e[0][0].alt)&&z(t,"alt",o)},d(e){e&&b(t)}}}function Kt(t){let n;return{c(){n=x("span"),n.textContent="...waiting"},m(e,t){v(e,n,t)},p:e,d(e){e&&b(n)}}}function Zt(t){let n;function o(e,t){return void 0!==e[0]&&e[0].length?qt:Ht}let r=o(t),l=r(t);return{c(){l.c(),n=C()},m(e,t){l.m(e,t),v(e,n,t)},p(e,[t]){r===(r=o(e))&&l?l.p(e,t):(l.d(1),l=r(e),l&&(l.c(),l.m(n.parentNode,n)))},i:e,o:e,d(e){l.d(e),e&&b(n)}}}function Vt(e,t,n){let{field_project_images:o}=t;return e.$$set=e=>{"field_project_images"in e&&n(0,o=e.field_project_images)},[o]}class Yt extends je{constructor(e){super(),xe(this,e,Vt,Zt,a,{field_project_images:0})}}function Gt(e,t,n){const o=e.slice();return o[1]=t[n],o}function Jt(e){let t,n=e[0]||[],o=[];for(let t=0;tt.parentNode,o.anchor=t},p(t,r){e=t,o.ctx=e,1&r&&n!==(n=De(e[1].uri))&&fe(n,o)||me(o,e,r)},d(e){e&&b(t),o.block.d(e),o.token=null,o=null}}}function nn(t){let n,o=void 0!==t[0]&&t[0].length&&Jt(t);return{c(){n=x("div"),o&&o.c(),z(n,"class","categories svelte-1cuxrv7"),z(n,"data-label","Categories")},m(e,t){v(e,n,t),o&&o.m(n,null)},p(e,[t]){void 0!==e[0]&&e[0].length?o?o.p(e,t):(o=Jt(e),o.c(),o.m(n,null)):o&&(o.d(1),o=null)},i:e,o:e,d(e){e&&b(n),o&&o.d()}}}function on(e,t,n){let{taxonomy_vocabulary_3:o}=t;return e.$$set=e=>{"taxonomy_vocabulary_3"in e&&n(0,o=e.taxonomy_vocabulary_3)},[o]}class rn extends je{constructor(e){super(),xe(this,e,on,nn,a,{taxonomy_vocabulary_3:0})}}function ln(e,t,n){const o=e.slice();return o[3]=t[n][0],o[4]=t[n][1],o}function sn(t){let n;return{c(){n=x("span"),n.textContent="No reported usage."},m(e,t){v(e,n,t)},p:e,d(e){e&&b(n)}}}function an(e){let t,n,o,r,l,s,a,c,i=new Intl.NumberFormat("en-US").format(e[2])+"",u=[],p=new Map,d=Object.entries(e[1]);const f=e=>e[3];for(let t=0;t{"project"in e&&n(0,o=e.project),"project_usage"in e&&n(1,r=e.project_usage),"project_usage_total"in e&&n(2,l=e.project_usage_total)},[o,r,l]}class dn extends je{constructor(e){super(),xe(this,e,pn,un,a,{project:0,project_usage:1,project_usage_total:2})}}function fn(t){let n,o,r,l;return{c(){n=x("a"),o=x("span"),r=x("img"),r.src!==(l="/"+drupalSettings.project_browser.module_path+"/images/shield-icon-black.svg")&&z(r,"src",l),z(r,"class","svelte-fzzmbm"),z(o,"class","security-covered svelte-fzzmbm"),z(o,"title","Covered by Drupal Security Team"),z(n,"href","https://www.drupal.org/security-advisory-policy"),z(n,"target","_blank"),z(n,"class","svelte-fzzmbm")},m(e,t){v(e,n,t),y(n,o),y(o,r)},p:e,d(e){e&&b(n)}}}function mn(t){let n,o="covered"===t[0]&&fn();return{c(){o&&o.c(),n=C()},m(e,t){o&&o.m(e,t),v(e,n,t)},p(e,[t]){"covered"===e[0]?o?o.p(e,t):(o=fn(),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:e,o:e,d(e){o&&o.d(e),e&&b(n)}}}function gn(e,t,n){let{coverage:o}=t;return e.$$set=e=>{"coverage"in e&&n(0,o=e.coverage)},[o]}class hn extends je{constructor(e){super(),xe(this,e,gn,mn,a,{coverage:0})}}function _n(e){let t,n,o={ctx:e,current:null,token:null,hasCatch:!0,pending:vn,then:yn,catch:$n,value:2,error:3};return fe(n=De(e[0].uri),o),{c(){t=x("div"),o.block.c(),z(t,"class",e[1])},m(e,n){v(e,t,n),o.block.m(t,o.anchor=null),o.mount=()=>t,o.anchor=null},p(r,l){e=r,o.ctx=e,1&l&&n!==(n=De(e[0].uri))&&fe(n,o)||me(o,e,l),2&l&&z(t,"class",e[1])},d(e){e&&b(t),o.block.d(),o.token=null,o=null}}}function $n(e){let t,n,o=e[3].message+"";return{c(){t=x("span"),n=j(o),E(t,"color","red"),z(t,"class","svelte-1ow4dq9")},m(e,o){v(e,t,o),y(t,n)},p(e,t){1&t&&o!==(o=e[3].message+"")&&B(n,o)},d(e){e&&b(t)}}}function yn(e){let t,n,o,r=e[2].name+"";return{c(){t=x("span"),n=j(r),z(t,"title",o=e[2].description.replace(/(<([^>]+)>)/gi,"")),z(t,"class","svelte-1ow4dq9")},m(e,o){v(e,t,o),y(t,n)},p(e,l){1&l&&r!==(r=e[2].name+"")&&B(n,r),1&l&&o!==(o=e[2].description.replace(/(<([^>]+)>)/gi,""))&&z(t,"title",o)},d(e){e&&b(t)}}}function vn(t){let n;return{c(){n=x("span"),n.textContent="Loading...",z(n,"class","svelte-1ow4dq9")},m(e,t){v(e,n,t)},p:e,d(e){e&&b(n)}}}function bn(t){let n,o=t[0]&&_n(t);return{c(){o&&o.c(),n=C()},m(e,t){o&&o.m(e,t),v(e,n,t)},p(e,[t]){e[0]?o?o.p(e,t):(o=_n(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:e,o:e,d(e){o&&o.d(e),e&&b(n)}}}function wn(e,t,n){let{taxonomy_term_reference:o}=t,{wrapper_class:r}=t;return e.$$set=e=>{"taxonomy_term_reference"in e&&n(0,o=e.taxonomy_term_reference),"wrapper_class"in e&&n(1,r=e.wrapper_class)},[o,r]}class xn extends je{constructor(e){super(),xe(this,e,wn,bn,a,{taxonomy_term_reference:0,wrapper_class:1})}}function jn(e){let t;return{c(){t=x("span"),t.textContent="Not compatible with your Drupal installation.",z(t,"class","not-compatible svelte-10d8xb5")},m(e,n){v(e,t,n)},d(e){e&&b(t)}}}function kn(e){let t;return{c(){t=x("span"),t.innerHTML=' Compatible with your Drupal installation',z(t,"class","compatible svelte-10d8xb5")},m(e,n){v(e,t,n)},d(e){e&&b(t)}}}function Cn(e){let t,n,o=e[5].message+"";return{c(){t=x("span"),n=j(o),E(t,"color","red")},m(e,o){v(e,t,o),y(t,n)},p(e,t){1&t&&o!==(o=e[5].message+"")&&B(n,o)},d(e){e&&b(t)}}}function Sn(e){let t,n=e[3].length&&zn(e);return{c(){n&&n.c(),t=C()},m(e,o){n&&n.m(e,o),v(e,t,o)},p(e,o){e[3].length?n?n.p(e,o):(n=zn(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&b(t)}}}function zn(e){let t,n,o,r,l,s,a,c,i=e[3][0].version+"",u=e[3][0].date_ago+"";return{c(){t=x("span"),n=j("Latest release: "),o=x("a"),r=j(i),s=j(" ("),a=j(u),c=j(")"),z(o,"href",l=e[3][0].release_link),z(o,"target","_blank"),z(o,"class","svelte-10d8xb5")},m(e,l){v(e,t,l),y(t,n),y(t,o),y(o,r),y(t,s),y(t,a),y(t,c)},p(e,t){1&t&&i!==(i=e[3][0].version+"")&&B(r,i),1&t&&l!==(l=e[3][0].release_link)&&z(o,"href",l),1&t&&u!==(u=e[3][0].date_ago+"")&&B(a,u)},d(e){e&&b(t)}}}function Bn(t){let n;return{c(){n=x("span"),n.textContent="Loading..."},m(e,t){v(e,n,t)},p:e,d(e){e&&b(n)}}}function On(t){let n,o,r,l;function s(e,t){return e[1]?kn:!1===e[1]?jn:void 0}let a=s(t),c=a&&a(t),i={ctx:t,current:null,token:null,hasCatch:!0,pending:Bn,then:Sn,catch:Cn,value:3,error:5};return fe(l=t[2](t[0]),i),{c(){n=x("div"),c&&c.c(),o=k(),r=x("div"),i.block.c(),z(n,"class","compatibility"),z(r,"class","releases")},m(e,t){v(e,n,t),c&&c.m(n,null),v(e,o,t),v(e,r,t),i.block.m(r,i.anchor=null),i.mount=()=>r,i.anchor=null},p(e,[o]){a!==(a=s(t=e))&&(c&&c.d(1),c=a&&a(t),c&&(c.c(),c.m(n,null))),i.ctx=t,1&o&&l!==(l=t[2](t[0]))&&fe(l,i)||me(i,t,o)},i:e,o:e,d(e){e&&b(n),c&&c.d(),e&&b(o),e&&b(r),i.block.d(),i.token=null,i=null}}}function En(e,t,n){let{project_name:o}=t,r=!1;function l(e){return!(!e.is_compatible||!e.hasOwnProperty("version"))&&(n(1,r=!0),!0)}return e.$$set=e=>{"project_name"in e&&n(0,o=e.project_name)},[o,r,async function(e){let t;const n=await fetch("/drupal-org-proxy/project/releases?project="+e);return n.ok?(t=await n.json(),t=t.filter(l),console.log(t),t):[]},[]]}class Wn extends je{constructor(e){super(),xe(this,e,En,On,a,{project_name:0})}}function Ln(e){let t,n,o,r,l,s=e[0].author.name+"";return{c(){t=x("div"),n=j("By "),o=x("a"),r=j(s),z(o,"href",l="https://www.drupal.org/user/"+e[0].author.id),z(o,"target","_blank"),z(o,"class","svelte-1px6bnc"),z(t,"class","author svelte-1px6bnc")},m(e,l){v(e,t,l),y(t,n),y(t,o),y(o,r)},p(e,t){1&t&&s!==(s=e[0].author.name+"")&&B(r,s),1&t&&l!==(l="https://www.drupal.org/user/"+e[0].author.id)&&z(o,"href",l)},d(e){e&&b(t)}}}function Nn(e){let t,n,o,r,l,s,a,c,i,u,p,d,f,m,g,h,_,$,w,C,S,O,E,W,L,N,I,P,T,M,D,R,A,H,q,F,U,K,Z,V=e[0].title+"",Y=e[0].body.summary+"",G=e[0].flag_project_star_user_count+"";o=new zt({props:{project:e[0]}}),s=new Yt({props:{field_project_images:e[0].field_project_images}}),m=new hn({props:{coverage:e[0].field_security_advisory_coverage}});let J=e[0].author&&Ln(e);return C=new At({props:{field_supporting_organizations:e[0].field_supporting_organizations}}),W=new dn({props:{project_usage:e[0].project_usage,project_usage_total:e[0].project_usage_total,project:e[0]}}),N=new Wn({props:{project_name:e[0].field_project_machine_name}}),P=new xn({props:{taxonomy_term_reference:e[0].taxonomy_vocabulary_44,wrapper_class:"maintenance-status"}}),M=new xn({props:{taxonomy_term_reference:e[0].taxonomy_vocabulary_46,wrapper_class:"development-status"}}),K=new rn({props:{taxonomy_vocabulary_3:e[0].taxonomy_vocabulary_3}}),{c(){t=x("div"),n=x("div"),ye(o.$$.fragment),r=k(),l=x("div"),ye(s.$$.fragment),a=k(),c=x("div"),i=x("h3"),u=x("a"),p=j(V),f=k(),ye(m.$$.fragment),g=k(),h=x("div"),_=k(),$=x("div"),J&&J.c(),w=k(),ye(C.$$.fragment),S=k(),O=x("div"),E=x("div"),ye(W.$$.fragment),L=k(),ye(N.$$.fragment),I=k(),ye(P.$$.fragment),T=k(),ye(M.$$.fragment),D=k(),R=x("div"),A=x("span"),H=j("⭐  "),q=j(G),U=k(),ye(K.$$.fragment),z(l,"class","left svelte-1px6bnc"),z(u,"href",d=e[0].url),z(u,"target","_blank"),z(u,"class","svelte-1px6bnc"),z(i,"class","svelte-1px6bnc"),z(h,"class","body svelte-1px6bnc"),z($,"class","suffix svelte-1px6bnc"),z(c,"class","right"),z(n,"class","main svelte-1px6bnc"),z(E,"class","right svelte-1px6bnc"),z(A,"title",F="Starred by "+e[0].flag_project_star_user_count+" users"),z(R,"class","stars"),z(O,"class","metadata svelte-1px6bnc"),z(t,"class","project svelte-1px6bnc")},m(e,d){v(e,t,d),y(t,n),ve(o,n,null),y(n,r),y(n,l),ve(s,l,null),y(n,a),y(n,c),y(c,i),y(i,u),y(u,p),y(i,f),ve(m,i,null),y(c,g),y(c,h),h.innerHTML=Y,y(c,_),y(c,$),J&&J.m($,null),y($,w),ve(C,$,null),y(t,S),y(t,O),y(O,E),ve(W,E,null),y(E,L),ve(N,E,null),y(O,I),ve(P,O,null),y(O,T),ve(M,O,null),y(O,D),y(O,R),y(R,A),y(A,H),y(A,q),y(O,U),ve(K,O,null),Z=!0},p(e,[t]){const n={};1&t&&(n.project=e[0]),o.$set(n);const r={};1&t&&(r.field_project_images=e[0].field_project_images),s.$set(r),(!Z||1&t)&&V!==(V=e[0].title+"")&&B(p,V),(!Z||1&t&&d!==(d=e[0].url))&&z(u,"href",d);const l={};1&t&&(l.coverage=e[0].field_security_advisory_coverage),m.$set(l),(!Z||1&t)&&Y!==(Y=e[0].body.summary+"")&&(h.innerHTML=Y),e[0].author?J?J.p(e,t):(J=Ln(e),J.c(),J.m($,w)):J&&(J.d(1),J=null);const a={};1&t&&(a.field_supporting_organizations=e[0].field_supporting_organizations),C.$set(a);const c={};1&t&&(c.project_usage=e[0].project_usage),1&t&&(c.project_usage_total=e[0].project_usage_total),1&t&&(c.project=e[0]),W.$set(c);const i={};1&t&&(i.project_name=e[0].field_project_machine_name),N.$set(i);const f={};1&t&&(f.taxonomy_term_reference=e[0].taxonomy_vocabulary_44),P.$set(f);const g={};1&t&&(g.taxonomy_term_reference=e[0].taxonomy_vocabulary_46),M.$set(g),(!Z||1&t)&&G!==(G=e[0].flag_project_star_user_count+"")&&B(q,G),(!Z||1&t&&F!==(F="Starred by "+e[0].flag_project_star_user_count+" users"))&&z(A,"title",F);const _={};1&t&&(_.taxonomy_vocabulary_3=e[0].taxonomy_vocabulary_3),K.$set(_)},i(e){Z||(ie(o.$$.fragment,e),ie(s.$$.fragment,e),ie(m.$$.fragment,e),ie(C.$$.fragment,e),ie(W.$$.fragment,e),ie(N.$$.fragment,e),ie(P.$$.fragment,e),ie(M.$$.fragment,e),ie(K.$$.fragment,e),Z=!0)},o(e){ue(o.$$.fragment,e),ue(s.$$.fragment,e),ue(m.$$.fragment,e),ue(C.$$.fragment,e),ue(W.$$.fragment,e),ue(N.$$.fragment,e),ue(P.$$.fragment,e),ue(M.$$.fragment,e),ue(K.$$.fragment,e),Z=!1},d(e){e&&b(t),be(o),be(s),be(m),J&&J.d(),be(C),be(W),be(N),be(P),be(M),be(K)}}}function In(e,t,n){let{project:o}=t;return e.$$set=e=>{"project"in e&&n(0,o=e.project)},[o]}class Pn extends je{constructor(e){super(),xe(this,e,In,Nn,a,{project:0})}}function Tn(e,t,n){const o=e.slice();return o[15]=t[n],o[17]=n,o}function Mn(e,t){let n,o,r;return o=new Pn({props:{project:t[15]}}),{key:e,first:null,c(){n=C(),ye(o.$$.fragment),this.first=n},m(e,t){v(e,n,t),ve(o,e,t),r=!0},p(e,n){t=e;const r={};16384&n&&(r.project=t[15]),o.$set(r)},i(e){r||(ie(o.$$.fragment,e),r=!0)},o(e){ue(o.$$.fragment,e),r=!1},d(e){e&&b(n),be(o,e)}}}function Dn(e){let t,n,o=[],r=new Map,l=e[14];const s=e=>e[15];for(let t=0;tRecommended projects must be covered by Drupal's security team, have at least one release, be actively maintained, be a full (not sandbox) project, and have an issue queue available.

",d=k(),ye(f.$$.fragment),m=k(),ye(g.$$.fragment),z(s,"class","tabs__link js-tabs-link"),L(s,"is-active","recommended"===e[4]),z(r,"class","tabs__tab js-tab is-active svelte-gyass8"),L(r,"js-active-tab","recommended"===e[4]),z(i,"title","All published projects"),z(i,"class","tabs__link js-tabs-link"),L(i,"is-active","all"===e[4]),z(c,"class","tabs__tab js-tab svelte-gyass8"),L(c,"js-active-tab","all"===e[4]),z(o,"class","tabs tabs--secondary clearfix"),z(n,"class","smart-filters tabs-wrapper is-horizontal is-collapsible position-container is-horizontal-enabled"),z(p,"class","smart-filter-description"),z(t,"slot","top")},m(l,b){v(l,t,b),y(t,n),y(n,o),y(o,r),y(r,s),y(o,a),y(o,c),y(c,i),y(t,u),y(t,p),y(t,d),ve(f,t,null),y(t,m),ve(g,t,null),h=!0,_||($=[S(s,"click",e[8]),S(i,"click",e[9])],_=!0)},p(e,t){16&t&&L(s,"is-active","recommended"===e[4]),16&t&&L(r,"js-active-tab","recommended"===e[4]),16&t&&L(i,"is-active","all"===e[4]),16&t&&L(c,"js-active-tab","all"===e[4]);const n={};2&t&&(n.page=e[1]),8&t&&(n.count=e[3]),g.$set(n)},i(e){h||(ie(f.$$.fragment,e),ie(g.$$.fragment,e),h=!0)},o(e){ue(f.$$.fragment,e),ue(g.$$.fragment,e),h=!1},d(e){e&&b(t),be(f),be(g),_=!1,l($)}}}function An(e){let t,n,o;return n=new nt({props:{page:e[1],pageSize:Fn,count:e[3],serverSide:!0}}),n.$on("pageChange",e[5]),{c(){t=x("div"),ye(n.$$.fragment),z(t,"slot","bottom")},m(e,r){v(e,t,r),ve(n,t,null),o=!0},p(e,t){const o={};2&t&&(o.page=e[1]),8&t&&(o.count=e[3]),n.$set(o)},i(e){o||(ie(n.$$.fragment,e),o=!0)},o(e){ue(n.$$.fragment,e),o=!1},d(e){e&&b(t),be(n)}}}function Hn(e){let t,n;return t=new yt({props:{loading:e[2],rows:e[0],pageIndex:qn,pageSize:Fn,$$slots:{bottom:[An,({rows:e})=>({14:e}),({rows:e})=>e?16384:0],top:[Rn,({rows:e})=>({14:e}),({rows:e})=>e?16384:0],default:[Dn,({rows:e})=>({14:e}),({rows:e})=>e?16384:0]},$$scope:{ctx:e}}}),{c(){ye(t.$$.fragment)},m(e,o){ve(t,e,o),n=!0},p(e,[n]){const o={};4&n&&(o.loading=e[2]),1&n&&(o.rows=e[0]),278554&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){n||(ie(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}let qn=0,Fn=12;function Un(e){return function(e,t=window.location.href){e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}("page",e.last)*Fn}function Kn(e,t,n){let o,r,l=[],s=0,a=!0,c=0,i="",u="recommended";async function p(e){n(2,a=!0),n(3,c=0);let t="/drupal-org-proxy/project?page="+e+"&limit="+Fn+"&tab="+u;i&&(t=t+"&title="+i),r&&(t=t+"&taxonomy_vocabulary_3="+r),console.log(t);const s=await fetch(t);s.ok?(o=await s.json(),n(0,l=o.list),console.log(o),n(3,c=Un(o))):(n(0,l=[]),n(3,c=0)),n(2,a=!1)}return H((async()=>{await p(s)})),[l,s,a,c,u,function(e){p(e.detail.page),n(1,s=e.detail.page)},async function(e){i=e.detail.text,await p(s),n(1,s=0)},async function(e){r=e.detail.category,await p(s),n(1,s=0)},async function(){n(4,u="recommended"),await p(0)},async function(){n(4,u="all"),await p(0)}]}class Zn extends je{constructor(e){super(),xe(this,e,Kn,Hn,a,{})}}function Vn(e){let t,n,o,r,l,s;return o=new Zn({}),l=new Ne({props:{show:e[0]}}),{c(){t=x("main"),n=x("div"),ye(o.$$.fragment),r=k(),ye(l.$$.fragment),z(n,"id","project-browser")},m(e,a){v(e,t,a),y(t,n),ve(o,n,null),y(t,r),ve(l,t,null),s=!0},p(e,[t]){const n={};1&t&&(n.show=e[0]),l.$set(n)},i(e){s||(ie(o.$$.fragment,e),ie(l.$$.fragment,e),s=!0)},o(e){ue(o.$$.fragment,e),ue(l.$$.fragment,e),s=!1},d(e){e&&b(t),be(o),be(l)}}}function Yn(e,t,n){let o;return c(e,Pe,(e=>n(0,o=e))),H((async()=>{const e=await fetch("/drupal-org-proxy/project");await e.json()})),[o]}return new class extends je{constructor(e){super(),xe(this,e,Yn,Vn,a,{})}}({target:document.querySelector("#project-browser"),props:{}})}(); +var app=function(){"use strict";function e(){}const t=e=>e;function n(e,t){for(const n in t)e[n]=t[n];return e}function o(e){return e()}function r(){return Object.create(null)}function l(e){e.forEach(o)}function s(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function c(t,n,o){t.$$.on_destroy.push(function(t,...n){if(null==t)return e;const o=t.subscribe(...n);return o.unsubscribe?()=>o.unsubscribe():o}(n,o))}function i(e,t,n,o){if(e){const r=u(e,t,n,o);return e[0](r)}}function u(e,t,o,r){return e[1]&&r?n(o.ctx.slice(),e[1](r(t))):o.ctx}function p(e,t,n,o,r,l,s){const a=function(e,t,n,o){if(e[2]&&o){const r=e[2](o(n));if(void 0===t.dirty)return r;if("object"==typeof r){const e=[],n=Math.max(t.dirty.length,r.length);for(let o=0;owindow.performance.now():()=>Date.now(),h=m?e=>requestAnimationFrame(e):e;const _=new Set;function $(e){_.forEach((t=>{t.c(e)||(_.delete(t),t.f())})),0!==_.size&&h($)}function y(e,t){e.appendChild(t)}function v(e,t,n){e.insertBefore(t,n||null)}function b(e){e.parentNode.removeChild(e)}function w(e,t){for(let n=0;ne.removeEventListener(t,n,o)}function z(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function B(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function O(e,t){e.value=null==t?"":t}function E(e,t,n,o){e.style.setProperty(t,n,o?"important":"")}function W(e,t){for(let n=0;n>>0}(u)}_${a}`,d=e.ownerDocument;I.add(d);const f=d.__svelte_stylesheet||(d.__svelte_stylesheet=d.head.appendChild(x("style")).sheet),m=d.__svelte_rules||(d.__svelte_rules={});m[p]||(m[p]=!0,f.insertRule(`@keyframes ${p} ${u}`,f.cssRules.length));const g=e.style.animation||"";return e.style.animation=`${g?`${g}, `:""}${p} ${o}ms linear ${r}ms 1 both`,T+=1,p}function D(e,t){const n=(e.style.animation||"").split(", "),o=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),r=n.length-o.length;r&&(e.style.animation=o.join(", "),T-=r,T||h((()=>{T||(I.forEach((e=>{const t=e.__svelte_stylesheet;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.__svelte_rules={}})),I.clear())})))}function R(e){P=e}function A(){if(!P)throw new Error("Function called outside component initialization");return P}function H(e){A().$$.on_mount.push(e)}function q(){const e=A();return(t,n)=>{const o=e.$$.callbacks[t];if(o){const r=N(t,n);o.slice().forEach((t=>{t.call(e,r)}))}}}function F(e,t){A().$$.context.set(e,t)}function U(e){return A().$$.context.get(e)}const K=[],Z=[],V=[],Y=[],G=Promise.resolve();let J=!1;function Q(e){V.push(e)}let X=!1;const ee=new Set;function te(){if(!X){X=!0;do{for(let e=0;e{le.delete(e),o&&(n&&e.d(1),o())})),e.o(t)}}const pe={duration:0};function de(n,o,r,a){let c=o(n,r),i=a?0:1,u=null,p=null,d=null;function f(){d&&D(n,d)}function m(e,t){const n=e.b-i;return t*=Math.abs(n),{a:i,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function y(o){const{delay:r=0,duration:s=300,easing:a=t,tick:y=e,css:v}=c||pe,b={start:g()+r,b:o};o||(b.group=se,se.r+=1),u||p?p=b:(v&&(f(),d=M(n,i,o,s,r,a,v)),o&&y(0,1),u=m(b,s),Q((()=>re(n,o,"start"))),function(e){let t;0===_.size&&h($),new Promise((n=>{_.add(t={c:e,f:n})}))}((e=>{if(p&&e>p.start&&(u=m(p,s),p=null,re(n,u.b,"start"),v&&(f(),d=M(n,i,u.b,u.duration,0,a,c.css))),u)if(e>=u.end)y(i=u.b,1-i),re(n,u.b,"end"),p||(u.b?f():--u.group.r||l(u.group.c)),u=null;else if(e>=u.start){const t=e-u.start;i=u.a+u.d*a(t/u.duration),y(i,1-i)}return!(!u&&!p)})))}return{run(e){s(c)?(oe||(oe=Promise.resolve(),oe.then((()=>{oe=null}))),oe).then((()=>{c=c(),y(e)})):y(e)},end(){f(),u=p=null}}}function fe(e,t){const n=t.token={};function o(e,o,r,l){if(t.token!==n)return;t.resolved=l;let s=t.ctx;void 0!==r&&(s=s.slice(),s[r]=l);const a=e&&(t.current=e)(s);let c=!1;t.block&&(t.blocks?t.blocks.forEach(((e,n)=>{n!==o&&e&&(ae(),ue(e,1,1,(()=>{t.blocks[n]===e&&(t.blocks[n]=null)})),ce())})):t.block.d(1),a.c(),ie(a,1),a.m(t.mount(),t.anchor),c=!0),t.block=a,t.blocks&&(t.blocks[o]=a),c&&te()}if((r=e)&&"object"==typeof r&&"function"==typeof r.then){const n=A();if(e.then((e=>{R(n),o(t.then,1,t.value,e),R(null)}),(e=>{if(R(n),o(t.catch,2,t.error,e),R(null),!t.hasCatch)throw e})),t.current!==t.pending)return o(t.pending,0),!0}else{if(t.current!==t.then)return o(t.then,1,t.value,e),!0;t.resolved=e}var r}function me(e,t,n){const o=t.slice(),{resolved:r}=e;e.current===e.then&&(o[e.value]=r),e.current===e.catch&&(o[e.error]=r),e.block.p(o,n)}const ge="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function he(e,t){e.d(1),t.delete(e.key)}function _e(e,t){ue(e,1,1,(()=>{t.delete(e.key)}))}function $e(e,t,n,o,r,l,s,a,c,i,u,p){let d=e.length,f=l.length,m=d;const g={};for(;m--;)g[e[m].key]=m;const h=[],_=new Map,$=new Map;for(m=f;m--;){const e=p(r,l,m),a=n(e);let c=s.get(a);c?o&&c.p(e,t):(c=i(a,e),c.c()),_.set(a,h[m]=c),a in g&&$.set(a,Math.abs(m-g[a]))}const y=new Set,v=new Set;function b(e){ie(e,1),e.m(a,u),s.set(e.key,e),u=e.first,f--}for(;d&&f;){const t=h[f-1],n=e[d-1],o=t.key,r=n.key;t===n?(u=t.first,d--,f--):_.has(r)?!s.has(o)||y.has(o)?b(t):v.has(r)?d--:$.get(o)>$.get(r)?(v.add(o),b(t)):(y.add(r),d--):(c(n,s),d--)}for(;d--;){const t=e[d];_.has(t.key)||c(t,s)}for(;f;)b(h[f-1]);return h}function ye(e){e&&e.c()}function ve(e,t,n,r){const{fragment:a,on_mount:c,on_destroy:i,after_update:u}=e.$$;a&&a.m(t,n),r||Q((()=>{const t=c.map(o).filter(s);i?i.push(...t):l(t),e.$$.on_mount=[]})),u.forEach(Q)}function be(e,t){const n=e.$$;null!==n.fragment&&(l(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function we(e,t){-1===e.$$.dirty[0]&&(K.push(e),J||(J=!0,G.then(te)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const r=o.length?o[0]:n;return p.ctx&&a(p.ctx[e],p.ctx[e]=r)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](r),d&&we(t,e)),n})):[],p.update(),d=!0,l(p.before_update),p.fragment=!!s&&s(p.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);p.fragment&&p.fragment.l(e),e.forEach(b)}else p.fragment&&p.fragment.c();n.intro&&ie(t.$$.fragment),ve(t,n.target,n.anchor,n.customElement),te()}R(u)}class je{$destroy(){be(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function ke(e,{delay:n=0,duration:o=400,easing:r=t}={}){const l=+getComputedStyle(e).opacity;return{delay:n,duration:o,easing:r,css:e=>"opacity: "+e*l}}const{window:Ce}=ge;function Se(e){let t,n,o,r,a,c,i,u,p,d,f,m=e[0].closeButton&&ze(e);var g=e[1];return g&&(c=new g({})),{c(){t=x("div"),n=x("div"),o=x("div"),m&&m.c(),r=k(),a=x("div"),c&&ye(c.$$.fragment),z(a,"class","content svelte-hz6fyb"),z(a,"style",e[8]),z(o,"class","window svelte-hz6fyb"),z(o,"role","dialog"),z(o,"aria-modal","true"),z(o,"style",e[7]),z(n,"class","window-wrap svelte-hz6fyb"),z(n,"style",e[6]),z(t,"class","bg svelte-hz6fyb"),z(t,"style",e[5])},m(l,i){v(l,t,i),y(t,n),y(n,o),m&&m.m(o,null),y(o,r),y(o,a),c&&ve(c,a,null),e[38](o),e[39](n),e[40](t),p=!0,d||(f=[S(o,"introstart",(function(){s(e[12])&&e[12].apply(this,arguments)})),S(o,"outrostart",(function(){s(e[13])&&e[13].apply(this,arguments)})),S(o,"introend",(function(){s(e[14])&&e[14].apply(this,arguments)})),S(o,"outroend",(function(){s(e[15])&&e[15].apply(this,arguments)})),S(t,"mousedown",e[19]),S(t,"mouseup",e[20])],d=!0)},p(l,s){if((e=l)[0].closeButton?m?(m.p(e,s),1&s[0]&&ie(m,1)):(m=ze(e),m.c(),ie(m,1),m.m(o,r)):m&&(ae(),ue(m,1,1,(()=>{m=null})),ce()),g!==(g=e[1])){if(c){ae();const e=c;ue(e.$$.fragment,1,0,(()=>{be(e,1)})),ce()}g?(c=new g({}),ye(c.$$.fragment),ie(c.$$.fragment,1),ve(c,a,null)):c=null}(!p||256&s[0])&&z(a,"style",e[8]),(!p||128&s[0])&&z(o,"style",e[7]),(!p||64&s[0])&&z(n,"style",e[6]),(!p||32&s[0])&&z(t,"style",e[5])},i(n){p||(ie(m),c&&ie(c.$$.fragment,n),Q((()=>{i||(i=de(o,e[11],e[0].transitionWindowProps,!0)),i.run(1)})),Q((()=>{u||(u=de(t,e[10],e[0].transitionBgProps,!0)),u.run(1)})),p=!0)},o(n){ue(m),c&&ue(c.$$.fragment,n),i||(i=de(o,e[11],e[0].transitionWindowProps,!1)),i.run(0),u||(u=de(t,e[10],e[0].transitionBgProps,!1)),u.run(0),p=!1},d(n){n&&b(t),m&&m.d(),c&&be(c),e[38](null),n&&i&&i.end(),e[39](null),e[40](null),n&&u&&u.end(),d=!1,l(f)}}}function ze(e){let t,n,o,r,l;const s=[Oe,Be],a=[];function c(e,n){return 1&n[0]&&(t=!!e[16](e[0].closeButton)),t?0:1}return n=c(e,[-1]),o=a[n]=s[n](e),{c(){o.c(),r=C()},m(e,t){a[n].m(e,t),v(e,r,t),l=!0},p(e,t){let l=n;n=c(e,t),n===l?a[n].p(e,t):(ae(),ue(a[l],1,1,(()=>{a[l]=null})),ce(),o=a[n],o?o.p(e,t):(o=a[n]=s[n](e),o.c()),ie(o,1),o.m(r.parentNode,r))},i(e){l||(ie(o),l=!0)},o(e){ue(o),l=!1},d(e){a[n].d(e),e&&b(r)}}}function Be(t){let n,o,r;return{c(){n=x("button"),z(n,"class","close svelte-hz6fyb"),z(n,"style",t[9])},m(e,l){v(e,n,l),o||(r=S(n,"click",t[17]),o=!0)},p(e,t){512&t[0]&&z(n,"style",e[9])},i:e,o:e,d(e){e&&b(n),o=!1,r()}}}function Oe(e){let t,n,o;var r=e[0].closeButton;function l(e){return{props:{onClose:e[17]}}}return r&&(t=new r(l(e))),{c(){t&&ye(t.$$.fragment),n=C()},m(e,r){t&&ve(t,e,r),v(e,n,r),o=!0},p(e,o){if(r!==(r=e[0].closeButton)){if(t){ae();const e=t;ue(e.$$.fragment,1,0,(()=>{be(e,1)})),ce()}r?(t=new r(l(e)),ye(t.$$.fragment),ie(t.$$.fragment,1),ve(t,n.parentNode,n)):t=null}},i(e){o||(t&&ie(t.$$.fragment,e),o=!0)},o(e){t&&ue(t.$$.fragment,e),o=!1},d(e){e&&b(n),t&&be(t,e)}}}function Ee(e){let t,n,o,r,l=e[1]&&Se(e);const s=e[37].default,a=i(s,e,e[36],null);return{c(){l&&l.c(),t=k(),a&&a.c()},m(s,c){l&&l.m(s,c),v(s,t,c),a&&a.m(s,c),n=!0,o||(r=S(Ce,"keydown",e[18]),o=!0)},p(e,o){e[1]?l?(l.p(e,o),2&o[0]&&ie(l,1)):(l=Se(e),l.c(),ie(l,1),l.m(t.parentNode,t)):l&&(ae(),ue(l,1,1,(()=>{l=null})),ce()),a&&a.p&&(!n||32&o[1])&&p(a,s,e,e[36],o,null,null)},i(e){n||(ie(l),ie(a,e),n=!0)},o(e){ue(l),ue(a,e),n=!1},d(e){l&&l.d(e),e&&b(t),a&&a.d(e),o=!1,r()}}}function We(e,t={}){return function(n){return new e({...n,props:{...t,...n.props}})}}function Le(e,t,n){let{$$slots:o={},$$scope:r}=t;const l=q(),s=F;let{show:a=null}=t,{key:c="simple-modal"}=t,{closeButton:i=!0}=t,{closeOnEsc:u=!0}=t,{closeOnOuterClick:p=!0}=t,{styleBg:d={}}=t,{styleWindowWrap:f={}}=t,{styleWindow:m={}}=t,{styleContent:g={}}=t,{styleCloseButton:h={}}=t,{setContext:_=s}=t,{transitionBg:$=ke}=t,{transitionBgProps:y={duration:250}}=t,{transitionWindow:v=$}=t,{transitionWindowProps:b=y}=t;const w={closeButton:i,closeOnEsc:u,closeOnOuterClick:p,styleBg:d,styleWindowWrap:f,styleWindow:m,styleContent:g,styleCloseButton:h,transitionBg:$,transitionBgProps:y,transitionWindow:v,transitionWindowProps:b};let x,j,k,C,S,z,B,O,E,W,L,N,I,P,T={...w},M=null;const D=e=>Object.keys(e).reduce(((t,n)=>`${t}; ${(e=>e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase())(n)}: ${e[n]}`),""),R=e=>!!(e&&e.constructor&&e.call&&e.apply),H=()=>{};let U=H,K=H,V=H,Y=H;const G=(e,t={},o={},r={})=>{n(1,M=We(e,t)),n(0,T={...w,...o}),n(5,S=D(T.styleBg)),n(6,z=D(T.styleWindowWrap)),n(7,B=D(T.styleWindow)),n(8,O=D(T.styleContent)),n(9,E=D(T.styleCloseButton)),n(10,W=T.transitionBg),n(11,L=T.transitionWindow),Q(),n(12,U=e=>{r.onOpen&&r.onOpen(e),l("open"),l("opening")}),n(13,K=e=>{r.onClose&&r.onClose(e),l("close"),l("closing")}),n(14,V=e=>{r.onOpened&&r.onOpened(e),l("opened")}),n(15,Y=e=>{r.onClosed&&r.onClosed(e),l("closed")})},J=(e={})=>{n(13,K=e.onClose||K),n(15,Y=e.onClosed||Y),n(1,M=null),X()},Q=()=>{C=window.scrollY,N=document.body.style.position,I=document.body.style.overflow,document.body.style.position="fixed",document.body.style.top=`-${C}px`,document.body.style.overflow="hidden"},X=()=>{document.body.style.position=N||"",document.body.style.top="",document.body.style.overflow=I||"",window.scrollTo(0,C)};var ee;return _(c,{open:G,close:J}),ee=()=>{J()},A().$$.on_destroy.push(ee),e.$$set=e=>{"show"in e&&n(21,a=e.show),"key"in e&&n(22,c=e.key),"closeButton"in e&&n(23,i=e.closeButton),"closeOnEsc"in e&&n(24,u=e.closeOnEsc),"closeOnOuterClick"in e&&n(25,p=e.closeOnOuterClick),"styleBg"in e&&n(26,d=e.styleBg),"styleWindowWrap"in e&&n(27,f=e.styleWindowWrap),"styleWindow"in e&&n(28,m=e.styleWindow),"styleContent"in e&&n(29,g=e.styleContent),"styleCloseButton"in e&&n(30,h=e.styleCloseButton),"setContext"in e&&n(31,_=e.setContext),"transitionBg"in e&&n(32,$=e.transitionBg),"transitionBgProps"in e&&n(33,y=e.transitionBgProps),"transitionWindow"in e&&n(34,v=e.transitionWindow),"transitionWindowProps"in e&&n(35,b=e.transitionWindowProps),"$$scope"in e&&n(36,r=e.$$scope)},e.$$.update=()=>{2097152&e.$$.dirty[0]&&(R(a)?G(a):J())},[T,M,x,j,k,S,z,B,O,E,W,L,U,K,V,Y,R,J,e=>{if(T.closeOnEsc&&M&&"Escape"===e.key&&(e.preventDefault(),J()),M&&"Tab"===e.key){const t=k.querySelectorAll("*"),n=Array.from(t).filter((e=>e.tabIndex>=0));let o=n.indexOf(document.activeElement);-1===o&&e.shiftKey&&(o=0),o+=n.length+(e.shiftKey?-1:1),o%=n.length,n[o].focus(),e.preventDefault()}},e=>{!T.closeOnOuterClick||e.target!==x&&e.target!==j||(P=e.target)},e=>{T.closeOnOuterClick&&e.target===P&&(e.preventDefault(),J())},a,c,i,u,p,d,f,m,g,h,_,$,y,v,b,r,o,function(e){Z[e?"unshift":"push"]((()=>{k=e,n(4,k)}))},function(e){Z[e?"unshift":"push"]((()=>{j=e,n(3,j)}))},function(e){Z[e?"unshift":"push"]((()=>{x=e,n(2,x)}))}]}class Ne extends je{constructor(e){super(),xe(this,e,Le,Ee,a,{show:21,key:22,closeButton:23,closeOnEsc:24,closeOnOuterClick:25,styleBg:26,styleWindowWrap:27,styleWindow:28,styleContent:29,styleCloseButton:30,setContext:31,transitionBg:32,transitionBgProps:33,transitionWindow:34,transitionWindowProps:35},[-1,-1])}}const Ie=[];const Pe=function(t,n=e){let o;const r=[];function l(e){if(a(t,e)&&(t=e,o)){const e=!Ie.length;for(let e=0;e{const e=r.indexOf(c);-1!==e&&r.splice(e,1),0===r.length&&(o(),o=null)}}}}(null);function Te(t){let n;return{c(){n=x("div"),n.textContent="Loading...",z(n,"class","loader svelte-1ujm9j6")},m(e,t){v(e,n,t)},p:e,i:e,o:e,d(e){e&&b(n)}}}class Me extends je{constructor(e){super(),xe(this,e,null,Te,a,{})}}async function De(e){let t;const n=await fetch(e+".json");if(n.ok)return t=await n.json(),t;throw new Error("Could not load entity")}function Re(e,t,n){const o=e.slice();return o[12]=t[n],o}function Ae(t){let n;return{c(){n=x("option"),n.textContent="Error",n.__value="Error",n.value=n.__value},m(e,t){v(e,n,t)},p:e,d(e){e&&b(n)}}}function He(e){let t,n,o=e[11].list||[],r=[];for(let t=0;t',z(r,"class","form-item__label"),z(a,"class","search form-text form-element form-element--type-text form-element--api-textfield"),z(a,"type","search"),z(a,"title",c=t[2].placeholder),z(a,"placeholder",i=t[2].placeholder),z(o,"class","views-exposed-form__item js-form-item form-item js-form-type-textfield form-type--textfield svelte-18p8gyo"),z(d,"class","form-item__label"),z(m,"name","category"),z(m,"class","form-select form-element form-element--type-select"),void 0===t[1]&&Q((()=>t[8].call(m))),z(p,"class","views-exposed-form__item js-form-item form-item js-form-type-select form-type--select js-form-item-type form-item--type svelte-18p8gyo"),z(h,"class","form-actions views-exposed-form__item views-exposed-form__item--actions js-form-wrapper form-wrapper svelte-18p8gyo"),z(h,"id","edit-actions"),z(n,"class","views-exposed-form svelte-18p8gyo")},m(e,l){v(e,n,l),y(n,o),y(o,r),y(o,s),y(o,a),O(a,t[0]),y(n,u),y(n,p),y(p,d),y(p,f),y(p,m),w.block.m(m,w.anchor=null),w.mount=()=>m,w.anchor=null,W(m,t[1]),y(n,g),y(n,h),_||($=[S(a,"input",t[7]),S(a,"keyup",t[3]),S(m,"change",t[8]),S(m,"change",t[4])],_=!0)},p(e,[n]){t=e,4&n&&c!==(c=t[2].placeholder)&&z(a,"title",c),4&n&&i!==(i=t[2].placeholder)&&z(a,"placeholder",i),1&n&&O(a,t[0]),me(w,t,n),2&n&&W(m,t[1])},i:e,o:e,d(e){e&&b(n),w.block.d(),w.token=null,w=null,_=!1,l($)}}}let Ke,Ze;function Ve(e,t,n){const o=q(),r=U("state");let{filter:l=((e,t,n)=>{t=t.toLowerCase();for(let n in e)if(e[n]&&e[n].toString().toLowerCase().indexOf(t)>-1)return!0;return!1})}=t,{index:s=-1}=t,{text:a=""}=t,{category:c}=t,{labels:i={placeholder:"Search exact title",...Ke}}=t;return e.$$set=e=>{"filter"in e&&n(5,l=e.filter),"index"in e&&n(6,s=e.index),"text"in e&&n(0,a=e.text),"category"in e&&n(1,c=e.category),"labels"in e&&n(2,i=e.labels)},[a,c,i,async function(e){const t=r.getState(),n={originalEvent:e,filter:l,index:s,text:a,page:t.page,pageIndex:t.pageIndex,pageSize:t.pageSize,rows:t.filteredRows};o("search",n),!0!==n.preventDefault?(0===n.text.length?r.setRows(t.rows):r.setRows(n.rows.filter((e=>n.filter(e,n.text,s)))),r.setPage(0,0)):r.setRows(n.rows)},async function(e){const t=r.getState(),n={originalEvent:e,category:c,page:t.page,pageIndex:t.pageIndex,pageSize:t.pageSize,rows:t.filteredRows};o("selectCategory",n),r.setPage(0,0),r.setRows(n.rows)},l,s,function(){a=this.value,n(0,a)},function(){c=function(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}(this),n(1,c)}]}class Ye extends je{constructor(e){super(),xe(this,e,Ve,Ue,a,{filter:5,index:6,text:0,category:1,labels:2})}}function Ge(e,t,n){const o=e.slice();return o[15]=t[n],o}function Je(e){let t,n,o,r,l,s=e[2]+e[15]+1+"";function a(...t){return e[10](e[15],...t)}return{c(){t=x("li"),n=x("a"),o=j(s),z(n,"class","pager__link svelte-1dbw7k3"),L(n,"is-active",e[2]===e[2]+e[15]),z(t,"class","pager__item pager__item--number"),L(t,"pager__item--active",e[2]===e[2]+e[15])},m(e,s){v(e,t,s),y(t,n),y(n,o),r||(l=S(n,"click",a),r=!0)},p(r,l){e=r,5&l&&s!==(s=e[2]+e[15]+1+"")&&B(o,s),5&l&&L(n,"is-active",e[2]===e[2]+e[15]),5&l&&L(t,"pager__item--active",e[2]===e[2]+e[15])},d(e){e&&b(t),r=!1,l()}}}function Qe(e){let t,n=e[2]+e[15]>=0&&e[2]+e[15]<=e[4]&&Je(e);return{c(){n&&n.c(),t=C()},m(e,o){n&&n.m(e,o),v(e,t,o)},p(e,o){e[2]+e[15]>=0&&e[2]+e[15]<=e[4]?n?n.p(e,o):(n=Je(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&b(t)}}}function Xe(e){let t,n;return{c(){t=j(e[1]),n=j(" projects")},m(e,o){v(e,t,o),v(e,n,o)},p(e,n){2&n&&B(t,e[1])},d(e){e&&b(t),e&&b(n)}}}function et(t){let n,o,r,s,a,c,i,u,p,d,f,m,g,h,_,$,C,O,E,W,L,N,I,P,T,M,D=t[3].first+"",R=t[3].previous+"",A=t[3].next+"",H=t[3].last+"",q=t[0],F=[];for(let e=0;et[4]-1),z(h,"class","pager__item pager__next"),z(W,"class","pager__link svelte-1dbw7k3"),z(W,"disabled",N=t[2]>=t[4]),z(E,"class","pager__item pager__last"),z(o,"class","pager__items js-pager__items"),z(n,"class","pagination pager")},m(e,l){v(e,n,l),y(n,o),y(o,r),y(r,s),y(s,a),y(o,i),y(o,u),y(u,p),y(p,d),y(o,m);for(let e=0;ee[4]-1)&&z(_,"disabled",C),8&t&&H!==(H=e[3].last+"")&&B(L,H),20&t&&N!==(N=e[2]>=e[4])&&z(W,"disabled",N),e[1]?U?U.p(e,t):(U=Xe(e),U.c(),U.m(P,null)):U&&(U.d(1),U=null)},i:e,o:e,d(e){e&&b(n),w(F,e),U&&U.d(),T=!1,l(M)}}}function tt(e,t,n){let o;const r=q(),l=U("state");let{buttons:s=[-2,-1,0,1,2,3,4,5,6,7,8]}=t,{count:a}=t,{page:c=0}=t,{pageSize:i}=t,{serverSide:u=!1}=t,{labels:p={first:"First",last:"Last",next:"Next",previous:"Previous",...Ze}}=t;function d(e,t){const n=l.getState(),o={originalEvent:e,page:t,pageIndex:u?0:t*n.pageSize,pageSize:n.pageSize};r("pageChange",o),!0!==o.preventDefault&&l.setPage(o.page,o.pageIndex)}return e.$$set=e=>{"buttons"in e&&n(0,s=e.buttons),"count"in e&&n(1,a=e.count),"page"in e&&n(2,c=e.page),"pageSize"in e&&n(6,i=e.pageSize),"serverSide"in e&&n(7,u=e.serverSide),"labels"in e&&n(3,p=e.labels)},e.$$.update=()=>{66&e.$$.dirty&&n(4,o=Math.floor(a/i))},[s,a,c,p,o,d,i,u,e=>d(e,0),e=>d(e,c-1),(e,t)=>d(t,c+e),e=>d(e,c+1),e=>d(e,o)]}class nt extends je{constructor(e){super(),xe(this,e,tt,et,a,{buttons:0,count:1,page:2,pageSize:6,serverSide:7,labels:3})}}const ot=e=>({rows:128&e}),rt=e=>({rows:e[7]}),lt=e=>({rows:128&e}),st=e=>({rows:e[7]}),at=e=>({rows:128&e}),ct=e=>({rows:e[7]}),it=e=>({rows:128&e}),ut=e=>({rows:e[7]}),pt=e=>({rows:128&e}),dt=e=>({rows:e[7]});function ft(e){let t;const n=e[14].default,o=i(n,e,e[13],ct);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,r){o&&o.p&&(!t||8320&r)&&p(o,n,e,e[13],r,at,ct)},i(e){t||(ie(o,e),t=!0)},o(e){ue(o,e),t=!1},d(e){o&&o.d(e)}}}function mt(t){let n,o=t[5].empty+"";return{c(){n=x("div")},m(e,t){v(e,n,t),n.innerHTML=o},p(e,t){32&t&&o!==(o=e[5].empty+"")&&(n.innerHTML=o)},i:e,o:e,d(e){e&&b(n)}}}function gt(t){let n,o;return n=new Me({}),{c(){ye(n.$$.fragment)},m(e,t){ve(n,e,t),o=!0},p:e,i(e){o||(ie(n.$$.fragment,e),o=!0)},o(e){ue(n.$$.fragment,e),o=!1},d(e){be(n,e)}}}function ht(e){let t,n,o,r,l,s,a,c,u;const d=e[14].top,m=i(d,e,e[13],dt),g=m||function(e){let t,n,o;var r=Ye;return r&&(n=new r({}),n.$on("search",e[9])),{c(){t=x("div"),n&&ye(n.$$.fragment),z(t,"class","slot-top svelte-jaxmjs")},m(e,r){v(e,t,r),n&&ve(n,t,null),o=!0},p(e,o){if(r!==(r=Ye)){if(n){ae();const e=n;ue(e.$$.fragment,1,0,(()=>{be(e,1)})),ce()}r?(n=new r({}),n.$on("search",e[9]),ye(n.$$.fragment),ie(n.$$.fragment,1),ve(n,t,null)):n=null}},i(e){o||(n&&ie(n.$$.fragment,e),o=!0)},o(e){n&&ue(n.$$.fragment,e),o=!1},d(e){e&&b(t),n&&be(n)}}}(e),h=e[14].head,_=i(h,e,e[13],ut),$=[gt,mt,ft],w=[];function j(e,t){return e[1]?0:0===e[7].length?1:2}r=j(e),l=w[r]=$[r](e);const C=e[14].foot,S=i(C,e,e[13],st),B=e[14].bottom,O=i(B,e,e[13],rt),E=O||function(e){let t,n,o;var r=nt;function l(e){return{props:{page:e[0],pageSize:e[2],serverSide:e[4],count:e[6].length-1}}}return r&&(n=new r(l(e)),n.$on("pageChange",e[8])),{c(){t=x("div"),n&&ye(n.$$.fragment),z(t,"class","slot-bottom svelte-jaxmjs")},m(e,r){v(e,t,r),n&&ve(n,t,null),o=!0},p(e,o){const s={};if(1&o&&(s.page=e[0]),4&o&&(s.pageSize=e[2]),16&o&&(s.serverSide=e[4]),64&o&&(s.count=e[6].length-1),r!==(r=nt)){if(n){ae();const e=n;ue(e.$$.fragment,1,0,(()=>{be(e,1)})),ce()}r?(n=new r(l(e)),n.$on("pageChange",e[8]),ye(n.$$.fragment),ie(n.$$.fragment,1),ve(n,t,null)):n=null}else r&&n.$set(s)},i(e){o||(n&&ie(n.$$.fragment,e),o=!0)},o(e){n&&ue(n.$$.fragment,e),o=!1},d(e){e&&b(t),n&&be(n)}}}(e);return{c(){g&&g.c(),t=k(),n=x("div"),_&&_.c(),o=k(),l.c(),s=k(),S&&S.c(),c=k(),E&&E.c(),z(n,"class",a=f("grid "+e[10].class)+" svelte-jaxmjs"),L(n,"responsive",e[3])},m(e,l){g&&g.m(e,l),v(e,t,l),v(e,n,l),_&&_.m(n,null),y(n,o),w[r].m(n,null),y(n,s),S&&S.m(n,null),v(e,c,l),E&&E.m(e,l),u=!0},p(e,[t]){m&&m.p&&(!u||8320&t)&&p(m,d,e,e[13],t,pt,dt),_&&_.p&&(!u||8320&t)&&p(_,h,e,e[13],t,it,ut);let o=r;r=j(e),r===o?w[r].p(e,t):(ae(),ue(w[o],1,1,(()=>{w[o]=null})),ce(),l=w[r],l?l.p(e,t):(l=w[r]=$[r](e),l.c()),ie(l,1),l.m(n,s)),S&&S.p&&(!u||8320&t)&&p(S,C,e,e[13],t,lt,st),(!u||1024&t&&a!==(a=f("grid "+e[10].class)+" svelte-jaxmjs"))&&z(n,"class",a),1032&t&&L(n,"responsive",e[3]),O?O.p&&(!u||8320&t)&&p(O,B,e,e[13],t,ot,rt):E&&E.p&&85&t&&E.p(e,t)},i(e){u||(ie(g,e),ie(_,e),ie(l),ie(S,e),ie(E,e),u=!0)},o(e){ue(g,e),ue(_,e),ue(l),ue(S,e),ue(E,e),u=!1},d(e){g&&g.d(e),e&&b(t),e&&b(n),_&&_.d(e),w[r].d(),S&&S.d(e),e&&b(c),E&&E.d(e)}}}let _t;function $t(e,t,o){let r,l,{$$slots:s={},$$scope:a}=t;const c=q();let{loading:i=!1}=t,{page:u=0}=t,{pageIndex:p=0}=t,{pageSize:f=12}=t,{responsive:m=!0}=t,{rows:g}=t,{serverSide:h=!1}=t,{labels:_={empty:"No records available",loading:"Loading data",..._t}}=t;return F("state",{getState:()=>({page:u,pageIndex:p,pageSize:f,rows:g,filteredRows:r}),setPage:(e,t)=>{o(0,u=e),o(11,p=t)},setRows:e=>o(6,r=e)}),e.$$set=e=>{o(10,t=n(n({},t),d(e))),"loading"in e&&o(1,i=e.loading),"page"in e&&o(0,u=e.page),"pageIndex"in e&&o(11,p=e.pageIndex),"pageSize"in e&&o(2,f=e.pageSize),"responsive"in e&&o(3,m=e.responsive),"rows"in e&&o(12,g=e.rows),"serverSide"in e&&o(4,h=e.serverSide),"labels"in e&&o(5,_=e.labels),"$$scope"in e&&o(13,a=e.$$scope)},e.$$.update=()=>{4096&e.$$.dirty&&o(6,r=g),2116&e.$$.dirty&&o(7,l=r.slice(p,p+f))},t=d(t),[u,i,f,m,h,_,r,l,function(e){c("pageChange",e.detail)},function(e){c("search",e.detail)},t,p,g,a,s]}class yt extends je{constructor(e){super(),xe(this,e,$t,ht,a,{loading:1,page:0,pageIndex:11,pageSize:2,responsive:3,rows:12,serverSide:4,labels:5})}}function vt(t){let n,o,r,l,s,a,c,i,u,p,d,f,m,g,h,_,$,w,C,S,O,E,W,L,N,I,P,T,M,D,R,A,H,q,F=t[0].title+"",U=t[0].field_project_machine_name+"",K=t[0].field_project_machine_name+"";return{c(){n=x("h2"),o=j(F),r=k(),l=x("h3"),l.textContent="1. Download",s=k(),a=x("p"),a.innerHTML='The recommended way to download any Drupal module is with Composer.',c=k(),i=x("p"),i.textContent="If you already manage your Drupal application dependencies with Composer, simply open your CLI and run the following command from the Composer root directory\nfor your application:",u=k(),p=x("pre"),d=j("composer require drupal/"),f=j(U),m=j(" --with-all-dependencies"),g=k(),h=x("p"),h.textContent="This will download the module to your codebase.",_=k(),$=x("p"),$.innerHTML="Didn't work? Learn how to troubleshoot Composer.",w=k(),C=x("p"),C.innerHTML='If you cannot use Composer, you may download the module manually through your browser.',S=k(),O=x("h3"),O.textContent="2. Install",E=k(),W=x("p"),L=j("To use the module you must next install/enable it. Visit the "),N=x("a"),I=j("modules page"),T=j(" to install the module using your web browser."),M=k(),D=x("p"),D.innerHTML='Alternatively, you can use drush to enable it via the CLI:',R=k(),A=x("pre"),H=j("drush pm-enable "),q=j(K),z(n,"class","svelte-1y5u94f"),z(p,"class","svelte-1y5u94f"),z(N,"href",P="/admin/modules#module-"+t[0].field_project_machine_name),z(N,"target","_blank"),z(N,"rel","noreferrer"),z(A,"class","svelte-1y5u94f")},m(e,t){v(e,n,t),y(n,o),v(e,r,t),v(e,l,t),v(e,s,t),v(e,a,t),v(e,c,t),v(e,i,t),v(e,u,t),v(e,p,t),y(p,d),y(p,f),y(p,m),v(e,g,t),v(e,h,t),v(e,_,t),v(e,$,t),v(e,w,t),v(e,C,t),v(e,S,t),v(e,O,t),v(e,E,t),v(e,W,t),y(W,L),y(W,N),y(N,I),y(W,T),v(e,M,t),v(e,D,t),v(e,R,t),v(e,A,t),y(A,H),y(A,q)},p(e,[t]){1&t&&F!==(F=e[0].title+"")&&B(o,F),1&t&&U!==(U=e[0].field_project_machine_name+"")&&B(f,U),1&t&&P!==(P="/admin/modules#module-"+e[0].field_project_machine_name)&&z(N,"href",P),1&t&&K!==(K=e[0].field_project_machine_name+"")&&B(q,K)},i:e,o:e,d(e){e&&b(n),e&&b(r),e&&b(l),e&&b(s),e&&b(a),e&&b(c),e&&b(i),e&&b(u),e&&b(p),e&&b(g),e&&b(h),e&&b(_),e&&b($),e&&b(w),e&&b(C),e&&b(S),e&&b(O),e&&b(E),e&&b(W),e&&b(M),e&&b(D),e&&b(R),e&&b(A)}}}function bt(e,t,n){let{project:o}=t;return e.$$set=e=>{"project"in e&&n(0,o=e.project)},[o]}class wt extends je{constructor(e){super(),xe(this,e,bt,vt,a,{project:0})}}function xt(t){let n,o,r,l;return{c(){n=x("span"),o=x("button"),o.textContent="Download",z(o,"class","button button--action button--primary")},m(e,s){v(e,n,s),y(n,o),r||(l=S(o,"click",t[1]),r=!0)},p:e,d(e){e&&b(n),r=!1,l()}}}function jt(e){let t,n,o,r;return{c(){t=x("span"),n=x("a"),o=x("button"),o.textContent="Install",z(o,"type","button"),z(o,"class","button button--action button--secondary"),z(n,"href",r="/admin/modules#module-"+e[0].field_project_machine_name),z(n,"target","_blank"),z(n,"rel","noreferrer")},m(e,r){v(e,t,r),y(t,n),y(n,o)},p(e,t){1&t&&r!==(r="/admin/modules#module-"+e[0].field_project_machine_name)&&z(n,"href",r)},d(e){e&&b(t)}}}function kt(e){let t,n,o,r;return{c(){t=x("span"),n=x("a"),o=j("Installed"),z(n,"href",r="/admin/modules#module-"+e[0].field_project_machine_name),z(n,"class","action-link action-link--icon-checkmark"),z(n,"target","_blank"),z(n,"rel","noreferrer")},m(e,r){v(e,t,r),y(t,n),y(n,o)},p(e,t){1&t&&r!==(r="/admin/modules#module-"+e[0].field_project_machine_name)&&z(n,"href",r)},d(e){e&&b(t)}}}function Ct(t){let n,o,r;function l(e,t){var n;return(null==o||1&t)&&(n=e[0].field_project_machine_name,o=!("undefined"==typeof drupalSettings||!(n in drupalSettings.project_browser.modules)||1!==drupalSettings.project_browser.modules[n])),o?kt:((null==r||1&t)&&(r=!!function(e){return"undefined"!=typeof drupalSettings&&e in drupalSettings.project_browser.modules}(e[0].field_project_machine_name)),r?jt:xt)}let s=l(t,-1),a=s(t);return{c(){n=x("div"),a.c(),z(n,"class","action svelte-16bz03j")},m(e,t){v(e,n,t),a.m(n,null)},p(e,[t]){s===(s=l(e,t))&&a?a.p(e,t):(a.d(1),a=s(e),a&&(a.c(),a.m(n,null)))},i:e,o:e,d(e){e&&b(n),a.d()}}}function St(e,t,n){let{project:o}=t;return e.$$set=e=>{"project"in e&&n(0,o=e.project)},[o,()=>{Pe.set(We(wt,{project:o}))}]}class zt extends je{constructor(e){super(),xe(this,e,St,Ct,a,{project:0})}}function Bt(e,t,n){const o=e.slice();return o[1]=t[n],o}function Ot(e){let t,n,o,r=e[0]||[],l=[];for(let t=0;tn.parentNode,o.anchor=n,v(e,n,t)},p(n,r){e=n,o.ctx=e,1&r&&t!==(t=De(e[4].field_supporting_organization.uri))&&fe(t,o)||me(o,e,r)},d(e){o.block.d(e),o.token=null,o=null,e&&b(n)}}}function Lt(e){let t,n,o=e[6].message+"";return{c(){t=x("span"),n=j(o),E(t,"color","red")},m(e,o){v(e,t,o),y(t,n)},p(e,t){1&t&&o!==(o=e[6].message+"")&&B(n,o)},d(e){e&&b(t)}}}function Nt(e){let t,n,o,r,l=e[5].title+"",s=e[0][e[0].length-1].id!==e[1].id&&It();return{c(){t=x("span"),n=x("a"),o=j(l),s&&s.c(),z(n,"href",r=e[5].url),z(n,"target","_blank"),z(n,"rel","noreferrer"),z(n,"class","svelte-1ao7mne"),z(t,"class","organization svelte-1ao7mne")},m(e,r){v(e,t,r),y(t,n),y(n,o),s&&s.m(t,null)},p(e,a){1&a&&l!==(l=e[5].title+"")&&B(o,l),1&a&&r!==(r=e[5].url)&&z(n,"href",r),e[0][e[0].length-1].id!==e[1].id?s||(s=It(),s.c(),s.m(t,null)):s&&(s.d(1),s=null)},d(e){e&&b(t),s&&s.d()}}}function It(e){let t;return{c(){t=j(",")},m(e,n){v(e,t,n)},d(e){e&&b(t)}}}function Pt(t){return{c:e,m:e,p:e,d:e}}function Tt(t){return{c:e,m:e,p:e,d:e}}function Mt(e){let t,n,o={ctx:e,current:null,token:null,hasCatch:!0,pending:Tt,then:Wt,catch:Et,value:4,error:6};return fe(n=De(e[1].uri),o),{c(){t=C(),o.block.c()},m(e,n){v(e,t,n),o.block.m(e,o.anchor=n),o.mount=()=>t.parentNode,o.anchor=t},p(t,r){e=t,o.ctx=e,1&r&&n!==(n=De(e[1].uri))&&fe(n,o)||me(o,e,r)},d(e){e&&b(t),o.block.d(e),o.token=null,o=null}}}function Dt(t){let n,o=void 0!==t[0]&&t[0].length&&Ot(t);return{c(){o&&o.c(),n=C()},m(e,t){o&&o.m(e,t),v(e,n,t)},p(e,[t]){void 0!==e[0]&&e[0].length?o?o.p(e,t):(o=Ot(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:e,o:e,d(e){o&&o.d(e),e&&b(n)}}}function Rt(e,t,n){let{field_supporting_organizations:o}=t;return e.$$set=e=>{"field_supporting_organizations"in e&&n(0,o=e.field_supporting_organizations)},[o]}class At extends je{constructor(e){super(),xe(this,e,Rt,Dt,a,{field_supporting_organizations:0})}}function Ht(t){let n,o;return{c(){n=x("img"),n.src!==(o=drupalSettings.project_browser.origin_url+"/"+drupalSettings.project_browser.module_path+"/images/placeholder-image.png")&&z(n,"src",o),z(n,"alt","Placeholder image"),z(n,"class","svelte-rnky1o")},m(e,t){v(e,n,t)},p:e,d(e){e&&b(n)}}}function qt(e){let t,n,o={ctx:e,current:null,token:null,hasCatch:!0,pending:Kt,then:Ut,catch:Ft,value:1,error:2};return fe(n=De(e[0][0].file.uri),o),{c(){t=C(),o.block.c()},m(e,n){v(e,t,n),o.block.m(e,o.anchor=n),o.mount=()=>t.parentNode,o.anchor=t},p(t,r){e=t,o.ctx=e,1&r&&n!==(n=De(e[0][0].file.uri))&&fe(n,o)||me(o,e,r)},d(e){e&&b(t),o.block.d(e),o.token=null,o=null}}}function Ft(e){let t,n,o=e[2].message+"";return{c(){t=x("span"),n=j(o),E(t,"color","red")},m(e,o){v(e,t,o),y(t,n)},p(e,t){1&t&&o!==(o=e[2].message+"")&&B(n,o)},d(e){e&&b(t)}}}function Ut(e){let t,n,o;return{c(){t=x("img"),t.src!==(n=e[1].url)&&z(t,"src",n),z(t,"alt",o=e[0][0].alt),z(t,"class","svelte-rnky1o")},m(e,n){v(e,t,n)},p(e,r){1&r&&t.src!==(n=e[1].url)&&z(t,"src",n),1&r&&o!==(o=e[0][0].alt)&&z(t,"alt",o)},d(e){e&&b(t)}}}function Kt(t){let n;return{c(){n=x("span"),n.textContent="...waiting"},m(e,t){v(e,n,t)},p:e,d(e){e&&b(n)}}}function Zt(t){let n;function o(e,t){return void 0!==e[0]&&e[0].length?qt:Ht}let r=o(t),l=r(t);return{c(){l.c(),n=C()},m(e,t){l.m(e,t),v(e,n,t)},p(e,[t]){r===(r=o(e))&&l?l.p(e,t):(l.d(1),l=r(e),l&&(l.c(),l.m(n.parentNode,n)))},i:e,o:e,d(e){l.d(e),e&&b(n)}}}function Vt(e,t,n){let{field_project_images:o}=t;return e.$$set=e=>{"field_project_images"in e&&n(0,o=e.field_project_images)},[o]}class Yt extends je{constructor(e){super(),xe(this,e,Vt,Zt,a,{field_project_images:0})}}function Gt(e,t,n){const o=e.slice();return o[1]=t[n],o}function Jt(e){let t,n=e[0]||[],o=[];for(let t=0;tt.parentNode,o.anchor=t},p(t,r){e=t,o.ctx=e,1&r&&n!==(n=De(e[1].uri))&&fe(n,o)||me(o,e,r)},d(e){e&&b(t),o.block.d(e),o.token=null,o=null}}}function nn(t){let n,o=void 0!==t[0]&&t[0].length&&Jt(t);return{c(){n=x("div"),o&&o.c(),z(n,"class","categories svelte-1cuxrv7"),z(n,"data-label","Categories")},m(e,t){v(e,n,t),o&&o.m(n,null)},p(e,[t]){void 0!==e[0]&&e[0].length?o?o.p(e,t):(o=Jt(e),o.c(),o.m(n,null)):o&&(o.d(1),o=null)},i:e,o:e,d(e){e&&b(n),o&&o.d()}}}function on(e,t,n){let{taxonomy_vocabulary_3:o}=t;return e.$$set=e=>{"taxonomy_vocabulary_3"in e&&n(0,o=e.taxonomy_vocabulary_3)},[o]}class rn extends je{constructor(e){super(),xe(this,e,on,nn,a,{taxonomy_vocabulary_3:0})}}function ln(e,t,n){const o=e.slice();return o[3]=t[n][0],o[4]=t[n][1],o}function sn(t){let n;return{c(){n=x("span"),n.textContent="No reported usage."},m(e,t){v(e,n,t)},p:e,d(e){e&&b(n)}}}function an(e){let t,n,o,r,l,s,a,c,i=new Intl.NumberFormat("en-US").format(e[2])+"",u=[],p=new Map,d=Object.entries(e[1]);const f=e=>e[3];for(let t=0;t{"project"in e&&n(0,o=e.project),"project_usage"in e&&n(1,r=e.project_usage),"project_usage_total"in e&&n(2,l=e.project_usage_total)},[o,r,l]}class dn extends je{constructor(e){super(),xe(this,e,pn,un,a,{project:0,project_usage:1,project_usage_total:2})}}function fn(t){let n,o,r,l;return{c(){n=x("a"),o=x("span"),r=x("img"),r.src!==(l=drupalSettings.project_browser.origin_url+"/"+drupalSettings.project_browser.module_path+"/images/shield-icon-black.svg")&&z(r,"src",l),z(r,"class","svelte-fzzmbm"),z(o,"class","security-covered svelte-fzzmbm"),z(o,"title","Covered by Drupal Security Team"),z(n,"href","https://www.drupal.org/security-advisory-policy"),z(n,"target","_blank"),z(n,"rel","noreferrer"),z(n,"class","svelte-fzzmbm")},m(e,t){v(e,n,t),y(n,o),y(o,r)},p:e,d(e){e&&b(n)}}}function mn(t){let n,o="covered"===t[0]&&fn();return{c(){o&&o.c(),n=C()},m(e,t){o&&o.m(e,t),v(e,n,t)},p(e,[t]){"covered"===e[0]?o?o.p(e,t):(o=fn(),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:e,o:e,d(e){o&&o.d(e),e&&b(n)}}}function gn(e,t,n){let{coverage:o}=t;return e.$$set=e=>{"coverage"in e&&n(0,o=e.coverage)},[o]}class hn extends je{constructor(e){super(),xe(this,e,gn,mn,a,{coverage:0})}}function _n(e){let t,n,o={ctx:e,current:null,token:null,hasCatch:!0,pending:vn,then:yn,catch:$n,value:2,error:3};return fe(n=De(e[0].uri),o),{c(){t=x("div"),o.block.c(),z(t,"class",e[1])},m(e,n){v(e,t,n),o.block.m(t,o.anchor=null),o.mount=()=>t,o.anchor=null},p(r,l){e=r,o.ctx=e,1&l&&n!==(n=De(e[0].uri))&&fe(n,o)||me(o,e,l),2&l&&z(t,"class",e[1])},d(e){e&&b(t),o.block.d(),o.token=null,o=null}}}function $n(e){let t,n,o=e[3].message+"";return{c(){t=x("span"),n=j(o),E(t,"color","red"),z(t,"class","svelte-1ow4dq9")},m(e,o){v(e,t,o),y(t,n)},p(e,t){1&t&&o!==(o=e[3].message+"")&&B(n,o)},d(e){e&&b(t)}}}function yn(e){let t,n,o,r=e[2].name+"";return{c(){t=x("span"),n=j(r),z(t,"title",o=e[2].description.replace(/(<([^>]+)>)/gi,"")),z(t,"class","svelte-1ow4dq9")},m(e,o){v(e,t,o),y(t,n)},p(e,l){1&l&&r!==(r=e[2].name+"")&&B(n,r),1&l&&o!==(o=e[2].description.replace(/(<([^>]+)>)/gi,""))&&z(t,"title",o)},d(e){e&&b(t)}}}function vn(t){let n;return{c(){n=x("span"),n.textContent="Loading...",z(n,"class","svelte-1ow4dq9")},m(e,t){v(e,n,t)},p:e,d(e){e&&b(n)}}}function bn(t){let n,o=t[0]&&_n(t);return{c(){o&&o.c(),n=C()},m(e,t){o&&o.m(e,t),v(e,n,t)},p(e,[t]){e[0]?o?o.p(e,t):(o=_n(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},i:e,o:e,d(e){o&&o.d(e),e&&b(n)}}}function wn(e,t,n){let{taxonomy_term_reference:o}=t,{wrapper_class:r}=t;return e.$$set=e=>{"taxonomy_term_reference"in e&&n(0,o=e.taxonomy_term_reference),"wrapper_class"in e&&n(1,r=e.wrapper_class)},[o,r]}class xn extends je{constructor(e){super(),xe(this,e,wn,bn,a,{taxonomy_term_reference:0,wrapper_class:1})}}function jn(e){let t;return{c(){t=x("span"),t.textContent="Not compatible with your Drupal installation.",z(t,"class","not-compatible svelte-10d8xb5")},m(e,n){v(e,t,n)},d(e){e&&b(t)}}}function kn(e){let t;return{c(){t=x("span"),t.innerHTML=' Compatible with your Drupal installation',z(t,"class","compatible svelte-10d8xb5")},m(e,n){v(e,t,n)},d(e){e&&b(t)}}}function Cn(e){let t,n,o=e[5].message+"";return{c(){t=x("span"),n=j(o),E(t,"color","red")},m(e,o){v(e,t,o),y(t,n)},p(e,t){1&t&&o!==(o=e[5].message+"")&&B(n,o)},d(e){e&&b(t)}}}function Sn(e){let t,n=e[3].length&&zn(e);return{c(){n&&n.c(),t=C()},m(e,o){n&&n.m(e,o),v(e,t,o)},p(e,o){e[3].length?n?n.p(e,o):(n=zn(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&b(t)}}}function zn(e){let t,n,o,r,l,s,a,c,i=e[3][0].version+"",u=e[3][0].date_ago+"";return{c(){t=x("span"),n=j("Latest release: "),o=x("a"),r=j(i),s=j(" ("),a=j(u),c=j(")"),z(o,"href",l=e[3][0].release_link),z(o,"target","_blank"),z(o,"rel","noreferrer"),z(o,"class","svelte-10d8xb5")},m(e,l){v(e,t,l),y(t,n),y(t,o),y(o,r),y(t,s),y(t,a),y(t,c)},p(e,t){1&t&&i!==(i=e[3][0].version+"")&&B(r,i),1&t&&l!==(l=e[3][0].release_link)&&z(o,"href",l),1&t&&u!==(u=e[3][0].date_ago+"")&&B(a,u)},d(e){e&&b(t)}}}function Bn(t){let n;return{c(){n=x("span"),n.textContent="Loading..."},m(e,t){v(e,n,t)},p:e,d(e){e&&b(n)}}}function On(t){let n,o,r,l;function s(e,t){return e[1]?kn:!1===e[1]?jn:void 0}let a=s(t),c=a&&a(t),i={ctx:t,current:null,token:null,hasCatch:!0,pending:Bn,then:Sn,catch:Cn,value:3,error:5};return fe(l=t[2](t[0]),i),{c(){n=x("div"),c&&c.c(),o=k(),r=x("div"),i.block.c(),z(n,"class","compatibility"),z(r,"class","releases")},m(e,t){v(e,n,t),c&&c.m(n,null),v(e,o,t),v(e,r,t),i.block.m(r,i.anchor=null),i.mount=()=>r,i.anchor=null},p(e,[o]){a!==(a=s(t=e))&&(c&&c.d(1),c=a&&a(t),c&&(c.c(),c.m(n,null))),i.ctx=t,1&o&&l!==(l=t[2](t[0]))&&fe(l,i)||me(i,t,o)},i:e,o:e,d(e){e&&b(n),c&&c.d(),e&&b(o),e&&b(r),i.block.d(),i.token=null,i=null}}}function En(e,t,n){let{project_name:o}=t,r=!1;function l(e){return!(!e.is_compatible||!e.hasOwnProperty("version"))&&(n(1,r=!0),!0)}return e.$$set=e=>{"project_name"in e&&n(0,o=e.project_name)},[o,r,async function(e){let t;const n=await fetch(drupalSettings.project_browser.origin_url+"/drupal-org-proxy/project/releases?project="+e);return n.ok?(t=await n.json(),t=t.filter(l),console.log(t),t):[]},[]]}class Wn extends je{constructor(e){super(),xe(this,e,En,On,a,{project_name:0})}}function Ln(e){let t,n,o,r,l,s=e[0].author.name+"";return{c(){t=x("div"),n=j("By "),o=x("a"),r=j(s),z(o,"href",l="https://www.drupal.org/user/"+e[0].author.id),z(o,"target","_blank"),z(o,"rel","noreferrer"),z(o,"class","svelte-1px6bnc"),z(t,"class","author svelte-1px6bnc")},m(e,l){v(e,t,l),y(t,n),y(t,o),y(o,r)},p(e,t){1&t&&s!==(s=e[0].author.name+"")&&B(r,s),1&t&&l!==(l="https://www.drupal.org/user/"+e[0].author.id)&&z(o,"href",l)},d(e){e&&b(t)}}}function Nn(e){let t,n,o,r,l,s,a,c,i,u,p,d,f,m,g,h,_,$,w,C,S,O,E,W,L,N,I,P,T,M,D,R,A,H,q,F,U,K,Z,V=e[0].title+"",Y=e[0].body.summary+"",G=e[0].flag_project_star_user_count+"";o=new zt({props:{project:e[0]}}),s=new Yt({props:{field_project_images:e[0].field_project_images}}),m=new hn({props:{coverage:e[0].field_security_advisory_coverage}});let J=e[0].author&&Ln(e);return C=new At({props:{field_supporting_organizations:e[0].field_supporting_organizations}}),W=new dn({props:{project_usage:e[0].project_usage,project_usage_total:e[0].project_usage_total,project:e[0]}}),N=new Wn({props:{project_name:e[0].field_project_machine_name}}),P=new xn({props:{taxonomy_term_reference:e[0].taxonomy_vocabulary_44,wrapper_class:"maintenance-status"}}),M=new xn({props:{taxonomy_term_reference:e[0].taxonomy_vocabulary_46,wrapper_class:"development-status"}}),K=new rn({props:{taxonomy_vocabulary_3:e[0].taxonomy_vocabulary_3}}),{c(){t=x("div"),n=x("div"),ye(o.$$.fragment),r=k(),l=x("div"),ye(s.$$.fragment),a=k(),c=x("div"),i=x("h3"),u=x("a"),p=j(V),f=k(),ye(m.$$.fragment),g=k(),h=x("div"),_=k(),$=x("div"),J&&J.c(),w=k(),ye(C.$$.fragment),S=k(),O=x("div"),E=x("div"),ye(W.$$.fragment),L=k(),ye(N.$$.fragment),I=k(),ye(P.$$.fragment),T=k(),ye(M.$$.fragment),D=k(),R=x("div"),A=x("span"),H=j("⭐  "),q=j(G),U=k(),ye(K.$$.fragment),z(l,"class","left svelte-1px6bnc"),z(u,"href",d=e[0].url),z(u,"target","_blank"),z(u,"rel","noreferrer"),z(u,"class","svelte-1px6bnc"),z(i,"class","svelte-1px6bnc"),z(h,"class","body svelte-1px6bnc"),z($,"class","suffix svelte-1px6bnc"),z(c,"class","right"),z(n,"class","main svelte-1px6bnc"),z(E,"class","right svelte-1px6bnc"),z(A,"title",F="Starred by "+e[0].flag_project_star_user_count+" users"),z(R,"class","stars"),z(O,"class","metadata svelte-1px6bnc"),z(t,"class","project svelte-1px6bnc")},m(e,d){v(e,t,d),y(t,n),ve(o,n,null),y(n,r),y(n,l),ve(s,l,null),y(n,a),y(n,c),y(c,i),y(i,u),y(u,p),y(i,f),ve(m,i,null),y(c,g),y(c,h),h.innerHTML=Y,y(c,_),y(c,$),J&&J.m($,null),y($,w),ve(C,$,null),y(t,S),y(t,O),y(O,E),ve(W,E,null),y(E,L),ve(N,E,null),y(O,I),ve(P,O,null),y(O,T),ve(M,O,null),y(O,D),y(O,R),y(R,A),y(A,H),y(A,q),y(O,U),ve(K,O,null),Z=!0},p(e,[t]){const n={};1&t&&(n.project=e[0]),o.$set(n);const r={};1&t&&(r.field_project_images=e[0].field_project_images),s.$set(r),(!Z||1&t)&&V!==(V=e[0].title+"")&&B(p,V),(!Z||1&t&&d!==(d=e[0].url))&&z(u,"href",d);const l={};1&t&&(l.coverage=e[0].field_security_advisory_coverage),m.$set(l),(!Z||1&t)&&Y!==(Y=e[0].body.summary+"")&&(h.innerHTML=Y),e[0].author?J?J.p(e,t):(J=Ln(e),J.c(),J.m($,w)):J&&(J.d(1),J=null);const a={};1&t&&(a.field_supporting_organizations=e[0].field_supporting_organizations),C.$set(a);const c={};1&t&&(c.project_usage=e[0].project_usage),1&t&&(c.project_usage_total=e[0].project_usage_total),1&t&&(c.project=e[0]),W.$set(c);const i={};1&t&&(i.project_name=e[0].field_project_machine_name),N.$set(i);const f={};1&t&&(f.taxonomy_term_reference=e[0].taxonomy_vocabulary_44),P.$set(f);const g={};1&t&&(g.taxonomy_term_reference=e[0].taxonomy_vocabulary_46),M.$set(g),(!Z||1&t)&&G!==(G=e[0].flag_project_star_user_count+"")&&B(q,G),(!Z||1&t&&F!==(F="Starred by "+e[0].flag_project_star_user_count+" users"))&&z(A,"title",F);const _={};1&t&&(_.taxonomy_vocabulary_3=e[0].taxonomy_vocabulary_3),K.$set(_)},i(e){Z||(ie(o.$$.fragment,e),ie(s.$$.fragment,e),ie(m.$$.fragment,e),ie(C.$$.fragment,e),ie(W.$$.fragment,e),ie(N.$$.fragment,e),ie(P.$$.fragment,e),ie(M.$$.fragment,e),ie(K.$$.fragment,e),Z=!0)},o(e){ue(o.$$.fragment,e),ue(s.$$.fragment,e),ue(m.$$.fragment,e),ue(C.$$.fragment,e),ue(W.$$.fragment,e),ue(N.$$.fragment,e),ue(P.$$.fragment,e),ue(M.$$.fragment,e),ue(K.$$.fragment,e),Z=!1},d(e){e&&b(t),be(o),be(s),be(m),J&&J.d(),be(C),be(W),be(N),be(P),be(M),be(K)}}}function In(e,t,n){let{project:o}=t;return e.$$set=e=>{"project"in e&&n(0,o=e.project)},[o]}class Pn extends je{constructor(e){super(),xe(this,e,In,Nn,a,{project:0})}}function Tn(e,t,n){const o=e.slice();return o[15]=t[n],o[17]=n,o}function Mn(e,t){let n,o,r;return o=new Pn({props:{project:t[15]}}),{key:e,first:null,c(){n=C(),ye(o.$$.fragment),this.first=n},m(e,t){v(e,n,t),ve(o,e,t),r=!0},p(e,n){t=e;const r={};16384&n&&(r.project=t[15]),o.$set(r)},i(e){r||(ie(o.$$.fragment,e),r=!0)},o(e){ue(o.$$.fragment,e),r=!1},d(e){e&&b(n),be(o,e)}}}function Dn(e){let t,n,o=[],r=new Map,l=e[14];const s=e=>e[15];for(let t=0;tRecommended projects must be covered by Drupal's security team, have at least one release, be actively maintained, be a full (not sandbox) project, and have an issue queue available.

",d=k(),ye(f.$$.fragment),m=k(),ye(g.$$.fragment),z(s,"class","tabs__link js-tabs-link"),L(s,"is-active","recommended"===e[4]),z(r,"class","tabs__tab js-tab is-active svelte-gyass8"),L(r,"js-active-tab","recommended"===e[4]),z(i,"title","All published projects"),z(i,"class","tabs__link js-tabs-link"),L(i,"is-active","all"===e[4]),z(c,"class","tabs__tab js-tab svelte-gyass8"),L(c,"js-active-tab","all"===e[4]),z(o,"class","tabs tabs--secondary clearfix"),z(n,"class","smart-filters tabs-wrapper is-horizontal is-collapsible position-container is-horizontal-enabled"),z(p,"class","smart-filter-description"),z(t,"slot","top")},m(l,b){v(l,t,b),y(t,n),y(n,o),y(o,r),y(r,s),y(o,a),y(o,c),y(c,i),y(t,u),y(t,p),y(t,d),ve(f,t,null),y(t,m),ve(g,t,null),h=!0,_||($=[S(s,"click",e[8]),S(i,"click",e[9])],_=!0)},p(e,t){16&t&&L(s,"is-active","recommended"===e[4]),16&t&&L(r,"js-active-tab","recommended"===e[4]),16&t&&L(i,"is-active","all"===e[4]),16&t&&L(c,"js-active-tab","all"===e[4]);const n={};2&t&&(n.page=e[1]),8&t&&(n.count=e[3]),g.$set(n)},i(e){h||(ie(f.$$.fragment,e),ie(g.$$.fragment,e),h=!0)},o(e){ue(f.$$.fragment,e),ue(g.$$.fragment,e),h=!1},d(e){e&&b(t),be(f),be(g),_=!1,l($)}}}function An(e){let t,n,o;return n=new nt({props:{page:e[1],pageSize:Fn,count:e[3],serverSide:!0}}),n.$on("pageChange",e[5]),{c(){t=x("div"),ye(n.$$.fragment),z(t,"slot","bottom")},m(e,r){v(e,t,r),ve(n,t,null),o=!0},p(e,t){const o={};2&t&&(o.page=e[1]),8&t&&(o.count=e[3]),n.$set(o)},i(e){o||(ie(n.$$.fragment,e),o=!0)},o(e){ue(n.$$.fragment,e),o=!1},d(e){e&&b(t),be(n)}}}function Hn(e){let t,n;return t=new yt({props:{loading:e[2],rows:e[0],pageIndex:qn,pageSize:Fn,$$slots:{bottom:[An,({rows:e})=>({14:e}),({rows:e})=>e?16384:0],top:[Rn,({rows:e})=>({14:e}),({rows:e})=>e?16384:0],default:[Dn,({rows:e})=>({14:e}),({rows:e})=>e?16384:0]},$$scope:{ctx:e}}}),{c(){ye(t.$$.fragment)},m(e,o){ve(t,e,o),n=!0},p(e,[n]){const o={};4&n&&(o.loading=e[2]),1&n&&(o.rows=e[0]),278554&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){n||(ie(t.$$.fragment,e),n=!0)},o(e){ue(t.$$.fragment,e),n=!1},d(e){be(t,e)}}}let qn=0,Fn=12;function Un(e){return function(e,t=window.location.href){e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}("page",e.last)*Fn}function Kn(e,t,n){let o,r,l=[],s=0,a=!0,c=0,i="",u="recommended";async function p(e){n(2,a=!0),n(3,c=0);let t=drupalSettings.project_browser.origin_url+"/drupal-org-proxy/project?page="+e+"&limit="+Fn+"&tab="+u;i&&(t=t+"&title="+i),r&&(t=t+"&taxonomy_vocabulary_3="+r),console.log(t);const s=await fetch(t);s.ok?(o=await s.json(),n(0,l=o.list),console.log(o),n(3,c=Un(o))):(n(0,l=[]),n(3,c=0)),n(2,a=!1)}return H((async()=>{await p(s)})),[l,s,a,c,u,function(e){p(e.detail.page),n(1,s=e.detail.page)},async function(e){i=e.detail.text,await p(s),n(1,s=0)},async function(e){r=e.detail.category,await p(s),n(1,s=0)},async function(){n(4,u="recommended"),await p(0)},async function(){n(4,u="all"),await p(0)}]}class Zn extends je{constructor(e){super(),xe(this,e,Kn,Hn,a,{})}}function Vn(e){let t,n,o,r,l,s;return o=new Zn({}),l=new Ne({props:{show:e[0]}}),{c(){t=x("main"),n=x("div"),ye(o.$$.fragment),r=k(),ye(l.$$.fragment),z(n,"id","project-browser")},m(e,a){v(e,t,a),y(t,n),ve(o,n,null),y(t,r),ve(l,t,null),s=!0},p(e,[t]){const n={};1&t&&(n.show=e[0]),l.$set(n)},i(e){s||(ie(o.$$.fragment,e),ie(l.$$.fragment,e),s=!0)},o(e){ue(o.$$.fragment,e),ue(l.$$.fragment,e),s=!1},d(e){e&&b(t),be(o),be(l)}}}function Yn(e,t,n){let o;return c(e,Pe,(e=>n(0,o=e))),H((async()=>{const e=await fetch(drupalSettings.project_browser.origin_url+"/drupal-org-proxy/project");await e.json()})),[o]}return new class extends je{constructor(e){super(),xe(this,e,Yn,Vn,a,{})}}({target:document.querySelector("#project-browser"),props:{}})}(); //# sourceMappingURL=bundle.js.map diff --git a/sveltejs/public/build/bundle.js.map b/sveltejs/public/build/bundle.js.map index 969a965..50fe8bd 100644 --- a/sveltejs/public/build/bundle.js.map +++ b/sveltejs/public/build/bundle.js.map @@ -1 +1 @@ -{"version":3,"file":"bundle.js","sources":["../../node_modules/svelte/internal/index.mjs","../../node_modules/svelte/transition/index.mjs","../../src/Modal.svelte","../../node_modules/svelte/store/index.mjs","../../src/stores.js","../../src/Project/project.js","../../src/Search.svelte","../../src/Pagination.svelte","../../src/ProjectGrid.svelte","../../src/DownloadPopup.svelte","../../src/Project/ActionButton.svelte","../../src/Project/SupportingOrganization.svelte","../../src/Project/Image.svelte","../../src/Project/Categories.svelte","../../src/Project/Usage.svelte","../../src/Project/SecurityCoverage.svelte","../../src/Project/TaxonomyTerm.svelte","../../src/Project/Releases.svelte","../../src/Project/Project.svelte","../../src/ProjectBrowser.svelte","../../src/App.svelte","../../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n let j = 0;\n const remove = [];\n while (j < node.attributes.length) {\n const attribute = node.attributes[j++];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n for (let k = 0; k < remove.length; k++) {\n node.removeAttribute(remove[k]);\n }\n return nodes.splice(i, 1)[0];\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = '' + data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n constructor(anchor = null) {\n this.a = anchor;\n this.e = this.n = null;\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n this.e = element(target.nodeName);\n this.t = target;\n this.h(html);\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = node.ownerDocument;\n active_docs.add(doc);\n const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n if (!current_rules[name]) {\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n active_docs.forEach(doc => {\n const stylesheet = doc.__svelte_stylesheet;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n doc.__svelte_rules = {};\n });\n active_docs.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n if (flushing)\n return;\n flushing = true;\n do {\n // first, call beforeUpdate functions\n // and update components\n for (let i = 0; i < dirty_components.length; i += 1) {\n const component = dirty_components[i];\n set_current_component(component);\n update(component.$$);\n }\n set_current_component(null);\n dirty_components.length = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n flushing = false;\n seen_callbacks.clear();\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n const child_ctx = ctx.slice();\n const { resolved } = info;\n if (info.current === info.then) {\n child_ctx[info.value] = resolved;\n }\n if (info.current === info.catch) {\n child_ctx[info.error] = resolved;\n }\n info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n const attributes = Object.assign({}, ...args);\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${String(value).replace(/\"/g, '"').replace(/'/g, ''')}\"`;\n }\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : context || []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : options.context || []),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.38.2' }, detail)));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * \n * \n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_await_block_branch, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","import { cubicInOut, linear, cubicOut } from '../easing/index.mjs';\nimport { is_function, assign } from '../internal/index.mjs';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction blur(node, { delay = 0, duration = 400, easing = cubicInOut, amount = 5, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const f = style.filter === 'none' ? '' : style.filter;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `opacity: ${target_opacity - (od * u)}; filter: ${f} blur(${u * amount}px);`\n };\n}\nfunction fade(node, { delay = 0, duration = 400, easing = linear } = {}) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n easing,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut } = {}) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => 'overflow: hidden;' +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut } = {}) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { blur, crossfade, draw, fade, fly, scale, slide };\n","\n\n\n\n\n\n\n\n\n\n{#if Component}\n \n
\n \n {#if state.closeButton}\n {#if isFunction(state.closeButton)}\n \n {:else}\n
\n \n \n{/if}\n\n","import { noop, safe_not_equal, subscribe, run_all, is_function } from '../internal/index.mjs';\nexport { get_store_value as get } from '../internal/index.mjs';\n\nconst subscriber_queue = [];\n/**\n * Creates a `Readable` store that allows reading by subscription.\n * @param value initial value\n * @param {StartStopNotifier}start start and stop notifications for subscriptions\n */\nfunction readable(value, start) {\n return {\n subscribe: writable(value, start).subscribe\n };\n}\n/**\n * Create a `Writable` store that allows both updating and reading by subscription.\n * @param {*=}value initial value\n * @param {StartStopNotifier=}start start and stop notifications for subscriptions\n */\nfunction writable(value, start = noop) {\n let stop;\n const subscribers = [];\n function set(new_value) {\n if (safe_not_equal(value, new_value)) {\n value = new_value;\n if (stop) { // store is ready\n const run_queue = !subscriber_queue.length;\n for (let i = 0; i < subscribers.length; i += 1) {\n const s = subscribers[i];\n s[1]();\n subscriber_queue.push(s, value);\n }\n if (run_queue) {\n for (let i = 0; i < subscriber_queue.length; i += 2) {\n subscriber_queue[i][0](subscriber_queue[i + 1]);\n }\n subscriber_queue.length = 0;\n }\n }\n }\n }\n function update(fn) {\n set(fn(value));\n }\n function subscribe(run, invalidate = noop) {\n const subscriber = [run, invalidate];\n subscribers.push(subscriber);\n if (subscribers.length === 1) {\n stop = start(set) || noop;\n }\n run(value);\n return () => {\n const index = subscribers.indexOf(subscriber);\n if (index !== -1) {\n subscribers.splice(index, 1);\n }\n if (subscribers.length === 0) {\n stop();\n stop = null;\n }\n };\n }\n return { set, update, subscribe };\n}\nfunction derived(stores, fn, initial_value) {\n const single = !Array.isArray(stores);\n const stores_array = single\n ? [stores]\n : stores;\n const auto = fn.length < 2;\n return readable(initial_value, (set) => {\n let inited = false;\n const values = [];\n let pending = 0;\n let cleanup = noop;\n const sync = () => {\n if (pending) {\n return;\n }\n cleanup();\n const result = fn(single ? values[0] : values, set);\n if (auto) {\n set(result);\n }\n else {\n cleanup = is_function(result) ? result : noop;\n }\n };\n const unsubscribers = stores_array.map((store, i) => subscribe(store, (value) => {\n values[i] = value;\n pending &= ~(1 << i);\n if (inited) {\n sync();\n }\n }, () => {\n pending |= (1 << i);\n }));\n inited = true;\n sync();\n return function stop() {\n run_all(unsubscribers);\n cleanup();\n };\n });\n}\n\nexport { derived, readable, writable };\n","import { writable } from 'svelte/store';\n\nexport const modal = writable(null);\n","export async function fetchEntity(uri) {\n let data;\n const response = await fetch(uri + \".json\");\n if (response.ok) {\n data = await response.json();\n return data;\n\n } else {\n throw new Error('Could not load entity');\n }\n}\n","\n\n\n\n\n\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n
\n
\n","\n\n\n\n\n","\n\n\n\n\n\n\n
\n \n
\n
\n\n
\n \n {#if loading}\n \n {:else if visibleRows.length === 0}\n
{@html labels.empty}
\n {:else}\n \n {/if}\n \n
\n\n\n
\n \n
\n
\n","\n\n\n\n

{project.title}

\n\n

1. Download

\n\n

The recommended way to download any Drupal module is with Composer.

\n\n

If you already manage your Drupal application dependencies with Composer, simply open your CLI and run the following command from the Composer root directory\nfor your application:

\n
\n    composer require drupal/{project.field_project_machine_name} --with-all-dependencies\n
\n\n

This will download the module to your codebase.

\n

Didn't work? Learn how to troubleshoot Composer.

\n\n

If you cannot use Composer, you may download the module manually through your browser.

\n\n

2. Install

\n\n

To use the module you must next install/enable it. Visit the modules page to install the module using your web browser.

\n

Alternatively, you can use drush to enable it via the CLI:

\n
\n    drush pm-enable {project.field_project_machine_name}\n
\n","\n\n
\n {#if projectIsEnabled(project.field_project_machine_name)}\n Installed\n {:else if projectIsDownloaded(project.field_project_machine_name)}\n \n {:else}\n \n {/if}\n
\n","\n\n\n{#if typeof field_supporting_organizations !== \"undefined\" && field_supporting_organizations.length}\n
\n with support from\n {#each field_supporting_organizations || [] as field_collection}\n {#await fetchEntity(field_collection.uri)}\n {:then item}\n {#await fetchEntity(item.field_supporting_organization.uri)}\n {:then organization}\n {organization.title}{#if field_supporting_organizations[field_supporting_organizations.length - 1].id !== field_collection.id},{/if}\n {:catch error}\n {error.message}\n {/await}\n {:catch error}\n {error.message}\n {/await}\n {/each}\n
\n{/if}\n\n","\n\n{#if typeof field_project_images !== \"undefined\" && field_project_images.length}\n \n {#await fetchEntity(field_project_images[0].file.uri)}\n ...waiting\n {:then file}\n \"{field_project_images[0].alt}\"/\n {:catch error}\n {error.message}\n {/await}\n{:else}\n \"Placeholder\n{/if}\n","\n\n
\n {#if typeof taxonomy_vocabulary_3 !== \"undefined\" && taxonomy_vocabulary_3.length}\n
    \n {#each taxonomy_vocabulary_3 || [] as category}\n {#await fetchEntity(category.uri)}\n {:then term}\n
  • {term.name}
  • \n {:catch error}\n

    {error.message}

    \n {/await}\n {/each}\n
\n {/if}\n
\n","\n
\n {#if project_usage}\n \n
\n
    \n {#each Object.entries(project_usage) as [key, val] (key) }\n
  • \n {new Intl.NumberFormat('en-US').format(val)} active installations [{key} branch]\n
  • \n {/each}\n
\n
\n {:else}\n No reported usage.\n {/if}\n
\n\n","\n\n{#if coverage === 'covered'}\n \n{/if}\n","\n\n{#if taxonomy_term_reference}\n
\n {#await fetchEntity(taxonomy_term_reference.uri)}\n Loading...\n {:then term}\n ]+)>)/gi, '')}\">{term.name}\n {:catch error}\n {error.message}\n {/await}\n
\n{/if}\n\n","\n\n
\n {#if project_is_compatible}\n Compatible with your Drupal installation\n {:else if project_is_compatible === false}\n Not compatible with your Drupal installation.\n {/if}\n
\n
\n {#await fetchReleases(project_name)}\n Loading...\n {:then releases}\n {#if releases.length}\n Latest release: {releases[0].version} ({releases[0].date_ago})\n {/if}\n {:catch error}\n {error.message}\n {/await}\n
\n","\n\n
\n
\n \n
\n \n
\n
\n

\n {project.title}\n \n

\n
{@html project.body.summary}
\n
\n {#if project.author}\n \n {/if}\n \n
\n
\n
\n
\n
\n \n \n
\n \n \n \n
⭐  {project.flag_project_star_user_count}
\n \n
\n
\n","\n\n\n
\n
\n \n
\n

Recommended projects must be covered by Drupal's security team, have at least one release, be actively maintained, be a full (not sandbox) project, and have an issue queue available.

\n \n \n
\n {#each rows2 as row, index (row)}\n \n {/each}\n
\n \n
\n
\n","\n\n
\n\t
\n\t\t\n\t
\n\t\n\t\n
\n","import App from './App.svelte';\n\nconst app = new App({\n\t// The #project-browser markup is returned by the project_browser.browse Drupal route.\n\ttarget: document.querySelector('#project-browser'),\n\tprops: {\n\t}\n});\n\nexport default app;\n"],"names":["noop","identity","x","assign","tar","src","k","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","component_subscribe","component","store","callback","$$","on_destroy","push","callbacks","unsub","subscribe","unsubscribe","create_slot","definition","ctx","$$scope","slot_ctx","get_slot_context","slice","update_slot","slot","slot_definition","dirty","get_slot_changes_fn","get_slot_context_fn","slot_changes","lets","undefined","merged","len","Math","max","length","i","get_slot_changes","slot_context","p","exclude_internal_props","props","result","null_to_empty","value","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","run_tasks","task","c","delete","f","size","append","target","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","element","name","document","createElement","text","data","createTextNode","space","empty","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","getAttribute","setAttribute","set_data","wholeText","set_input_value","input","set_style","key","important","style","setProperty","select_option","select","option","__value","selected","toggle_class","toggle","classList","custom_event","type","detail","e","createEvent","initCustomEvent","active_docs","current_component","active","create_rule","duration","delay","ease","uid","step","keyframes","t","rule","str","hash","charCodeAt","doc","ownerDocument","add","stylesheet","__svelte_stylesheet","head","sheet","current_rules","__svelte_rules","insertRule","cssRules","animation","delete_rule","previous","split","next","filter","anim","indexOf","deleted","join","deleteRule","clear","set_current_component","get_current_component","Error","onMount","on_mount","createEventDispatcher","call","setContext","context","set","getContext","get","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","Promise","resolve","update_scheduled","add_render_callback","flushing","seen_callbacks","flush","update","pop","has","fragment","before_update","after_update","promise","dispatch","direction","kind","dispatchEvent","outroing","outros","group_outros","r","check_outros","transition_in","block","local","transition_out","o","null_transition","create_bidirectional_transition","params","intro","config","running_program","pending_program","animation_name","clear_animation","init","program","abs","start","end","group","go","easing","tick","css","fulfill","loop","[object Object]","then","handle_promise","info","token","index","resolved","child_ctx","current","needs_flush","blocks","m","mount","error","catch","hasCatch","pending","update_await_block_branch","globals","globalThis","global","destroy_block","lookup","outro_and_destroy_block","update_keyed_each","old_blocks","get_key","dynamic","list","destroy","create_each_block","get_context","n","old_indexes","new_blocks","new_lookup","Map","deltas","will_move","did_move","first","new_block","old_block","new_key","old_key","create_component","mount_component","customElement","new_on_destroy","map","destroy_component","make_dirty","fill","instance","create_fragment","not_equal","parent_component","bound","on_disconnect","skip_bound","ready","ret","rest","hydrate","nodes","Array","from","childNodes","children","l","SvelteComponent","this","$destroy","splice","$$props","obj","$$set","keys","fade","linear","getComputedStyle","opacity","closeButton","transitionWindowProps","transitionBgProps","bind","Component","baseSetContext","svelte.setContext","show","closeOnEsc","closeOnOuterClick","styleBg","styleWindowWrap","styleWindow","styleContent","styleCloseButton","transitionBg","transitionWindow","defaultState","background","wrap","modalWindow","scrollY","cssBg","cssWindowWrap","cssWindow","cssContent","cssCloseButton","currentTransitionBg","currentTransitionWindow","prevBodyPosition","prevBodyOverflow","outerClickTarget","state","toCssString","reduce","replace","toLowerCase","camelCaseToDash","isFunction","constructor","apply","toVoid","onOpen","onClose","onOpened","onClosed","open","NewComponent","newProps","disableScroll","close","enableScroll","body","position","overflow","top","scrollTo","preventDefault","querySelectorAll","tabbable","tabIndex","activeElement","shiftKey","focus","subscriber_queue","modal","stop","subscribers","new_value","run_queue","s","invalidate","subscriber","writable","async","fetchEntity","uri","response","fetch","ok","json","tid","placeholder","globalLabels","stateContext","row","toString","category","labels","getState","originalEvent","page","pageIndex","pageSize","rows","filteredRows","setRows","setPage","selected_option","querySelector","last","buttons","count","serverSide","onChange","pageCount","floor","button","Search","Pagination","class","loading","responsive","_page","_pageIndex","_rows","visibleRows","title","field_project_machine_name","project","project_name","drupalSettings","project_browser","modules","projectIsDownloaded","ComposerPopup","message","field_supporting_organization","id","url","field_supporting_organizations","module_path","file","alt","field_project_images","taxonomy_vocabulary_3","Intl","NumberFormat","format","entries","project_usage","project_usage_total","coverage","description","taxonomy_term_reference","wrapper_class","version","date_ago","release_link","project_is_compatible","filterCompatibleReleases","release","is_compatible","hasOwnProperty","releases","console","log","author","summary","flag_project_star_user_count","field_security_advisory_coverage","taxonomy_vocabulary_44","taxonomy_vocabulary_46","rows2","getRowCount","location","href","results","RegExp","exec","decodeURIComponent","getParameterByName","rowsCount","tab","load","res"],"mappings":"gCAAA,SAASA,KACT,MAAMC,EAAWC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WACd+Y,EAAKnF,OACXA,EAAO,mBAGqBtT,GAC5BkT,EAAWlT,EAAM6B,OAAOqR,eAClBuF,EAAKnF,OACXA,EAAO,yBAIPkF,EAAM,qBACAC,EAAK,yBAIXD,EAAM,aACAC,EAAK,gJCpFL7c,0MAAAA,6MAbb8I,mBAIOgU,QAAYjG,yCACLiG,EAAI/F,qBCVP,oEAAQ,CAEnBlU,OAAQe,SAASsU,cAAc,oBAC/B1W,MAAO"} \ No newline at end of file +{"version":3,"file":"bundle.js","sources":["../../node_modules/svelte/internal/index.mjs","../../node_modules/svelte/transition/index.mjs","../../src/Modal.svelte","../../node_modules/svelte/store/index.mjs","../../src/stores.js","../../src/Project/project.js","../../src/Search.svelte","../../src/Pagination.svelte","../../src/ProjectGrid.svelte","../../src/DownloadPopup.svelte","../../src/Project/ActionButton.svelte","../../src/Project/SupportingOrganization.svelte","../../src/Project/Image.svelte","../../src/Project/Categories.svelte","../../src/Project/Usage.svelte","../../src/Project/SecurityCoverage.svelte","../../src/Project/TaxonomyTerm.svelte","../../src/Project/Releases.svelte","../../src/Project/Project.svelte","../../src/ProjectBrowser.svelte","../../src/App.svelte","../../src/main.js"],"sourcesContent":["function noop() { }\nconst identity = x => x;\nfunction assign(tar, src) {\n // @ts-ignore\n for (const k in src)\n tar[k] = src[k];\n return tar;\n}\nfunction is_promise(value) {\n return value && typeof value === 'object' && typeof value.then === 'function';\n}\nfunction add_location(element, file, line, column, char) {\n element.__svelte_meta = {\n loc: { file, line, column, char }\n };\n}\nfunction run(fn) {\n return fn();\n}\nfunction blank_object() {\n return Object.create(null);\n}\nfunction run_all(fns) {\n fns.forEach(run);\n}\nfunction is_function(thing) {\n return typeof thing === 'function';\n}\nfunction safe_not_equal(a, b) {\n return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');\n}\nfunction not_equal(a, b) {\n return a != a ? b == b : a !== b;\n}\nfunction is_empty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction validate_store(store, name) {\n if (store != null && typeof store.subscribe !== 'function') {\n throw new Error(`'${name}' is not a store with a 'subscribe' method`);\n }\n}\nfunction subscribe(store, ...callbacks) {\n if (store == null) {\n return noop;\n }\n const unsub = store.subscribe(...callbacks);\n return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;\n}\nfunction get_store_value(store) {\n let value;\n subscribe(store, _ => value = _)();\n return value;\n}\nfunction component_subscribe(component, store, callback) {\n component.$$.on_destroy.push(subscribe(store, callback));\n}\nfunction create_slot(definition, ctx, $$scope, fn) {\n if (definition) {\n const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);\n return definition[0](slot_ctx);\n }\n}\nfunction get_slot_context(definition, ctx, $$scope, fn) {\n return definition[1] && fn\n ? assign($$scope.ctx.slice(), definition[1](fn(ctx)))\n : $$scope.ctx;\n}\nfunction get_slot_changes(definition, $$scope, dirty, fn) {\n if (definition[2] && fn) {\n const lets = definition[2](fn(dirty));\n if ($$scope.dirty === undefined) {\n return lets;\n }\n if (typeof lets === 'object') {\n const merged = [];\n const len = Math.max($$scope.dirty.length, lets.length);\n for (let i = 0; i < len; i += 1) {\n merged[i] = $$scope.dirty[i] | lets[i];\n }\n return merged;\n }\n return $$scope.dirty | lets;\n }\n return $$scope.dirty;\n}\nfunction update_slot(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction update_slot_spread(slot, slot_definition, ctx, $$scope, dirty, get_slot_changes_fn, get_slot_spread_changes_fn, get_slot_context_fn) {\n const slot_changes = get_slot_spread_changes_fn(dirty) | get_slot_changes(slot_definition, $$scope, dirty, get_slot_changes_fn);\n if (slot_changes) {\n const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);\n slot.p(slot_context, slot_changes);\n }\n}\nfunction exclude_internal_props(props) {\n const result = {};\n for (const k in props)\n if (k[0] !== '$')\n result[k] = props[k];\n return result;\n}\nfunction compute_rest_props(props, keys) {\n const rest = {};\n keys = new Set(keys);\n for (const k in props)\n if (!keys.has(k) && k[0] !== '$')\n rest[k] = props[k];\n return rest;\n}\nfunction compute_slots(slots) {\n const result = {};\n for (const key in slots) {\n result[key] = true;\n }\n return result;\n}\nfunction once(fn) {\n let ran = false;\n return function (...args) {\n if (ran)\n return;\n ran = true;\n fn.call(this, ...args);\n };\n}\nfunction null_to_empty(value) {\n return value == null ? '' : value;\n}\nfunction set_store_value(store, ret, value = ret) {\n store.set(value);\n return ret;\n}\nconst has_prop = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);\nfunction action_destroyer(action_result) {\n return action_result && is_function(action_result.destroy) ? action_result.destroy : noop;\n}\n\nconst is_client = typeof window !== 'undefined';\nlet now = is_client\n ? () => window.performance.now()\n : () => Date.now();\nlet raf = is_client ? cb => requestAnimationFrame(cb) : noop;\n// used internally for testing\nfunction set_now(fn) {\n now = fn;\n}\nfunction set_raf(fn) {\n raf = fn;\n}\n\nconst tasks = new Set();\nfunction run_tasks(now) {\n tasks.forEach(task => {\n if (!task.c(now)) {\n tasks.delete(task);\n task.f();\n }\n });\n if (tasks.size !== 0)\n raf(run_tasks);\n}\n/**\n * For testing purposes only!\n */\nfunction clear_loops() {\n tasks.clear();\n}\n/**\n * Creates a new task that runs on each raf frame\n * until it returns a falsy value or is aborted\n */\nfunction loop(callback) {\n let task;\n if (tasks.size === 0)\n raf(run_tasks);\n return {\n promise: new Promise(fulfill => {\n tasks.add(task = { c: callback, f: fulfill });\n }),\n abort() {\n tasks.delete(task);\n }\n };\n}\n\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction detach(node) {\n node.parentNode.removeChild(node);\n}\nfunction destroy_each(iterations, detaching) {\n for (let i = 0; i < iterations.length; i += 1) {\n if (iterations[i])\n iterations[i].d(detaching);\n }\n}\nfunction element(name) {\n return document.createElement(name);\n}\nfunction element_is(name, is) {\n return document.createElement(name, { is });\n}\nfunction object_without_properties(obj, exclude) {\n const target = {};\n for (const k in obj) {\n if (has_prop(obj, k)\n // @ts-ignore\n && exclude.indexOf(k) === -1) {\n // @ts-ignore\n target[k] = obj[k];\n }\n }\n return target;\n}\nfunction svg_element(name) {\n return document.createElementNS('http://www.w3.org/2000/svg', name);\n}\nfunction text(data) {\n return document.createTextNode(data);\n}\nfunction space() {\n return text(' ');\n}\nfunction empty() {\n return text('');\n}\nfunction listen(node, event, handler, options) {\n node.addEventListener(event, handler, options);\n return () => node.removeEventListener(event, handler, options);\n}\nfunction prevent_default(fn) {\n return function (event) {\n event.preventDefault();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction stop_propagation(fn) {\n return function (event) {\n event.stopPropagation();\n // @ts-ignore\n return fn.call(this, event);\n };\n}\nfunction self(fn) {\n return function (event) {\n // @ts-ignore\n if (event.target === this)\n fn.call(this, event);\n };\n}\nfunction attr(node, attribute, value) {\n if (value == null)\n node.removeAttribute(attribute);\n else if (node.getAttribute(attribute) !== value)\n node.setAttribute(attribute, value);\n}\nfunction set_attributes(node, attributes) {\n // @ts-ignore\n const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);\n for (const key in attributes) {\n if (attributes[key] == null) {\n node.removeAttribute(key);\n }\n else if (key === 'style') {\n node.style.cssText = attributes[key];\n }\n else if (key === '__value') {\n node.value = node[key] = attributes[key];\n }\n else if (descriptors[key] && descriptors[key].set) {\n node[key] = attributes[key];\n }\n else {\n attr(node, key, attributes[key]);\n }\n }\n}\nfunction set_svg_attributes(node, attributes) {\n for (const key in attributes) {\n attr(node, key, attributes[key]);\n }\n}\nfunction set_custom_element_data(node, prop, value) {\n if (prop in node) {\n node[prop] = typeof node[prop] === 'boolean' && value === '' ? true : value;\n }\n else {\n attr(node, prop, value);\n }\n}\nfunction xlink_attr(node, attribute, value) {\n node.setAttributeNS('http://www.w3.org/1999/xlink', attribute, value);\n}\nfunction get_binding_group_value(group, __value, checked) {\n const value = new Set();\n for (let i = 0; i < group.length; i += 1) {\n if (group[i].checked)\n value.add(group[i].__value);\n }\n if (!checked) {\n value.delete(__value);\n }\n return Array.from(value);\n}\nfunction to_number(value) {\n return value === '' ? null : +value;\n}\nfunction time_ranges_to_array(ranges) {\n const array = [];\n for (let i = 0; i < ranges.length; i += 1) {\n array.push({ start: ranges.start(i), end: ranges.end(i) });\n }\n return array;\n}\nfunction children(element) {\n return Array.from(element.childNodes);\n}\nfunction claim_element(nodes, name, attributes, svg) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeName === name) {\n let j = 0;\n const remove = [];\n while (j < node.attributes.length) {\n const attribute = node.attributes[j++];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n for (let k = 0; k < remove.length; k++) {\n node.removeAttribute(remove[k]);\n }\n return nodes.splice(i, 1)[0];\n }\n }\n return svg ? svg_element(name) : element(name);\n}\nfunction claim_text(nodes, data) {\n for (let i = 0; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 3) {\n node.data = '' + data;\n return nodes.splice(i, 1)[0];\n }\n }\n return text(data);\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.wholeText !== data)\n text.data = data;\n}\nfunction set_input_value(input, value) {\n input.value = value == null ? '' : value;\n}\nfunction set_input_type(input, type) {\n try {\n input.type = type;\n }\n catch (e) {\n // do nothing\n }\n}\nfunction set_style(node, key, value, important) {\n node.style.setProperty(key, value, important ? 'important' : '');\n}\nfunction select_option(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n if (option.__value === value) {\n option.selected = true;\n return;\n }\n }\n}\nfunction select_options(select, value) {\n for (let i = 0; i < select.options.length; i += 1) {\n const option = select.options[i];\n option.selected = ~value.indexOf(option.__value);\n }\n}\nfunction select_value(select) {\n const selected_option = select.querySelector(':checked') || select.options[0];\n return selected_option && selected_option.__value;\n}\nfunction select_multiple_value(select) {\n return [].map.call(select.querySelectorAll(':checked'), option => option.__value);\n}\n// unfortunately this can't be a constant as that wouldn't be tree-shakeable\n// so we cache the result instead\nlet crossorigin;\nfunction is_crossorigin() {\n if (crossorigin === undefined) {\n crossorigin = false;\n try {\n if (typeof window !== 'undefined' && window.parent) {\n void window.parent.document;\n }\n }\n catch (error) {\n crossorigin = true;\n }\n }\n return crossorigin;\n}\nfunction add_resize_listener(node, fn) {\n const computed_style = getComputedStyle(node);\n if (computed_style.position === 'static') {\n node.style.position = 'relative';\n }\n const iframe = element('iframe');\n iframe.setAttribute('style', 'display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; ' +\n 'overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;');\n iframe.setAttribute('aria-hidden', 'true');\n iframe.tabIndex = -1;\n const crossorigin = is_crossorigin();\n let unsubscribe;\n if (crossorigin) {\n iframe.src = \"data:text/html,\";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, false, false, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nclass HtmlTag {\n constructor(anchor = null) {\n this.a = anchor;\n this.e = this.n = null;\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n this.e = element(target.nodeName);\n this.t = target;\n this.h(html);\n }\n this.i(anchor);\n }\n h(html) {\n this.e.innerHTML = html;\n this.n = Array.from(this.e.childNodes);\n }\n i(anchor) {\n for (let i = 0; i < this.n.length; i += 1) {\n insert(this.t, this.n[i], anchor);\n }\n }\n p(html) {\n this.d();\n this.h(html);\n this.i(this.a);\n }\n d() {\n this.n.forEach(detach);\n }\n}\nfunction attribute_to_object(attributes) {\n const result = {};\n for (const attribute of attributes) {\n result[attribute.name] = attribute.value;\n }\n return result;\n}\nfunction get_custom_elements_slots(element) {\n const result = {};\n element.childNodes.forEach((node) => {\n result[node.slot || 'default'] = true;\n });\n return result;\n}\n\nconst active_docs = new Set();\nlet active = 0;\n// https://github.com/darkskyapp/string-hash/blob/master/index.js\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i--)\n hash = ((hash << 5) - hash) ^ str.charCodeAt(i);\n return hash >>> 0;\n}\nfunction create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {\n const step = 16.666 / duration;\n let keyframes = '{\\n';\n for (let p = 0; p <= 1; p += step) {\n const t = a + (b - a) * ease(p);\n keyframes += p * 100 + `%{${fn(t, 1 - t)}}\\n`;\n }\n const rule = keyframes + `100% {${fn(b, 1 - b)}}\\n}`;\n const name = `__svelte_${hash(rule)}_${uid}`;\n const doc = node.ownerDocument;\n active_docs.add(doc);\n const stylesheet = doc.__svelte_stylesheet || (doc.__svelte_stylesheet = doc.head.appendChild(element('style')).sheet);\n const current_rules = doc.__svelte_rules || (doc.__svelte_rules = {});\n if (!current_rules[name]) {\n current_rules[name] = true;\n stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);\n }\n const animation = node.style.animation || '';\n node.style.animation = `${animation ? `${animation}, ` : ''}${name} ${duration}ms linear ${delay}ms 1 both`;\n active += 1;\n return name;\n}\nfunction delete_rule(node, name) {\n const previous = (node.style.animation || '').split(', ');\n const next = previous.filter(name\n ? anim => anim.indexOf(name) < 0 // remove specific animation\n : anim => anim.indexOf('__svelte') === -1 // remove all Svelte animations\n );\n const deleted = previous.length - next.length;\n if (deleted) {\n node.style.animation = next.join(', ');\n active -= deleted;\n if (!active)\n clear_rules();\n }\n}\nfunction clear_rules() {\n raf(() => {\n if (active)\n return;\n active_docs.forEach(doc => {\n const stylesheet = doc.__svelte_stylesheet;\n let i = stylesheet.cssRules.length;\n while (i--)\n stylesheet.deleteRule(i);\n doc.__svelte_rules = {};\n });\n active_docs.clear();\n });\n}\n\nfunction create_animation(node, from, fn, params) {\n if (!from)\n return noop;\n const to = node.getBoundingClientRect();\n if (from.left === to.left && from.right === to.right && from.top === to.top && from.bottom === to.bottom)\n return noop;\n const { delay = 0, duration = 300, easing = identity, \n // @ts-ignore todo: should this be separated from destructuring? Or start/end added to public api and documentation?\n start: start_time = now() + delay, \n // @ts-ignore todo:\n end = start_time + duration, tick = noop, css } = fn(node, { from, to }, params);\n let running = true;\n let started = false;\n let name;\n function start() {\n if (css) {\n name = create_rule(node, 0, 1, duration, delay, easing, css);\n }\n if (!delay) {\n started = true;\n }\n }\n function stop() {\n if (css)\n delete_rule(node, name);\n running = false;\n }\n loop(now => {\n if (!started && now >= start_time) {\n started = true;\n }\n if (started && now >= end) {\n tick(1, 0);\n stop();\n }\n if (!running) {\n return false;\n }\n if (started) {\n const p = now - start_time;\n const t = 0 + 1 * easing(p / duration);\n tick(t, 1 - t);\n }\n return true;\n });\n start();\n tick(0, 1);\n return stop;\n}\nfunction fix_position(node) {\n const style = getComputedStyle(node);\n if (style.position !== 'absolute' && style.position !== 'fixed') {\n const { width, height } = style;\n const a = node.getBoundingClientRect();\n node.style.position = 'absolute';\n node.style.width = width;\n node.style.height = height;\n add_transform(node, a);\n }\n}\nfunction add_transform(node, a) {\n const b = node.getBoundingClientRect();\n if (a.left !== b.left || a.top !== b.top) {\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n node.style.transform = `${transform} translate(${a.left - b.left}px, ${a.top - b.top}px)`;\n }\n}\n\nlet current_component;\nfunction set_current_component(component) {\n current_component = component;\n}\nfunction get_current_component() {\n if (!current_component)\n throw new Error('Function called outside component initialization');\n return current_component;\n}\nfunction beforeUpdate(fn) {\n get_current_component().$$.before_update.push(fn);\n}\nfunction onMount(fn) {\n get_current_component().$$.on_mount.push(fn);\n}\nfunction afterUpdate(fn) {\n get_current_component().$$.after_update.push(fn);\n}\nfunction onDestroy(fn) {\n get_current_component().$$.on_destroy.push(fn);\n}\nfunction createEventDispatcher() {\n const component = get_current_component();\n return (type, detail) => {\n const callbacks = component.$$.callbacks[type];\n if (callbacks) {\n // TODO are there situations where events could be dispatched\n // in a server (non-DOM) environment?\n const event = custom_event(type, detail);\n callbacks.slice().forEach(fn => {\n fn.call(component, event);\n });\n }\n };\n}\nfunction setContext(key, context) {\n get_current_component().$$.context.set(key, context);\n}\nfunction getContext(key) {\n return get_current_component().$$.context.get(key);\n}\nfunction hasContext(key) {\n return get_current_component().$$.context.has(key);\n}\n// TODO figure out if we still want to support\n// shorthand events, or if we want to implement\n// a real bubbling mechanism\nfunction bubble(component, event) {\n const callbacks = component.$$.callbacks[event.type];\n if (callbacks) {\n callbacks.slice().forEach(fn => fn(event));\n }\n}\n\nconst dirty_components = [];\nconst intros = { enabled: false };\nconst binding_callbacks = [];\nconst render_callbacks = [];\nconst flush_callbacks = [];\nconst resolved_promise = Promise.resolve();\nlet update_scheduled = false;\nfunction schedule_update() {\n if (!update_scheduled) {\n update_scheduled = true;\n resolved_promise.then(flush);\n }\n}\nfunction tick() {\n schedule_update();\n return resolved_promise;\n}\nfunction add_render_callback(fn) {\n render_callbacks.push(fn);\n}\nfunction add_flush_callback(fn) {\n flush_callbacks.push(fn);\n}\nlet flushing = false;\nconst seen_callbacks = new Set();\nfunction flush() {\n if (flushing)\n return;\n flushing = true;\n do {\n // first, call beforeUpdate functions\n // and update components\n for (let i = 0; i < dirty_components.length; i += 1) {\n const component = dirty_components[i];\n set_current_component(component);\n update(component.$$);\n }\n set_current_component(null);\n dirty_components.length = 0;\n while (binding_callbacks.length)\n binding_callbacks.pop()();\n // then, once components are updated, call\n // afterUpdate functions. This may cause\n // subsequent updates...\n for (let i = 0; i < render_callbacks.length; i += 1) {\n const callback = render_callbacks[i];\n if (!seen_callbacks.has(callback)) {\n // ...so guard against infinite loops\n seen_callbacks.add(callback);\n callback();\n }\n }\n render_callbacks.length = 0;\n } while (dirty_components.length);\n while (flush_callbacks.length) {\n flush_callbacks.pop()();\n }\n update_scheduled = false;\n flushing = false;\n seen_callbacks.clear();\n}\nfunction update($$) {\n if ($$.fragment !== null) {\n $$.update();\n run_all($$.before_update);\n const dirty = $$.dirty;\n $$.dirty = [-1];\n $$.fragment && $$.fragment.p($$.ctx, dirty);\n $$.after_update.forEach(add_render_callback);\n }\n}\n\nlet promise;\nfunction wait() {\n if (!promise) {\n promise = Promise.resolve();\n promise.then(() => {\n promise = null;\n });\n }\n return promise;\n}\nfunction dispatch(node, direction, kind) {\n node.dispatchEvent(custom_event(`${direction ? 'intro' : 'outro'}${kind}`));\n}\nconst outroing = new Set();\nlet outros;\nfunction group_outros() {\n outros = {\n r: 0,\n c: [],\n p: outros // parent group\n };\n}\nfunction check_outros() {\n if (!outros.r) {\n run_all(outros.c);\n }\n outros = outros.p;\n}\nfunction transition_in(block, local) {\n if (block && block.i) {\n outroing.delete(block);\n block.i(local);\n }\n}\nfunction transition_out(block, local, detach, callback) {\n if (block && block.o) {\n if (outroing.has(block))\n return;\n outroing.add(block);\n outros.c.push(() => {\n outroing.delete(block);\n if (callback) {\n if (detach)\n block.d(1);\n callback();\n }\n });\n block.o(local);\n }\n}\nconst null_transition = { duration: 0 };\nfunction create_in_transition(node, fn, params) {\n let config = fn(node, params);\n let running = false;\n let animation_name;\n let task;\n let uid = 0;\n function cleanup() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);\n tick(0, 1);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n if (task)\n task.abort();\n running = true;\n add_render_callback(() => dispatch(node, true, 'start'));\n task = loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(1, 0);\n dispatch(node, true, 'end');\n cleanup();\n return running = false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(t, 1 - t);\n }\n }\n return running;\n });\n }\n let started = false;\n return {\n start() {\n if (started)\n return;\n delete_rule(node);\n if (is_function(config)) {\n config = config();\n wait().then(go);\n }\n else {\n go();\n }\n },\n invalidate() {\n started = false;\n },\n end() {\n if (running) {\n cleanup();\n running = false;\n }\n }\n };\n}\nfunction create_out_transition(node, fn, params) {\n let config = fn(node, params);\n let running = true;\n let animation_name;\n const group = outros;\n group.r += 1;\n function go() {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n if (css)\n animation_name = create_rule(node, 1, 0, duration, delay, easing, css);\n const start_time = now() + delay;\n const end_time = start_time + duration;\n add_render_callback(() => dispatch(node, false, 'start'));\n loop(now => {\n if (running) {\n if (now >= end_time) {\n tick(0, 1);\n dispatch(node, false, 'end');\n if (!--group.r) {\n // this will result in `end()` being called,\n // so we don't need to clean up here\n run_all(group.c);\n }\n return false;\n }\n if (now >= start_time) {\n const t = easing((now - start_time) / duration);\n tick(1 - t, t);\n }\n }\n return running;\n });\n }\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go();\n });\n }\n else {\n go();\n }\n return {\n end(reset) {\n if (reset && config.tick) {\n config.tick(1, 0);\n }\n if (running) {\n if (animation_name)\n delete_rule(node, animation_name);\n running = false;\n }\n }\n };\n}\nfunction create_bidirectional_transition(node, fn, params, intro) {\n let config = fn(node, params);\n let t = intro ? 0 : 1;\n let running_program = null;\n let pending_program = null;\n let animation_name = null;\n function clear_animation() {\n if (animation_name)\n delete_rule(node, animation_name);\n }\n function init(program, duration) {\n const d = program.b - t;\n duration *= Math.abs(d);\n return {\n a: t,\n b: program.b,\n d,\n duration,\n start: program.start,\n end: program.start + duration,\n group: program.group\n };\n }\n function go(b) {\n const { delay = 0, duration = 300, easing = identity, tick = noop, css } = config || null_transition;\n const program = {\n start: now() + delay,\n b\n };\n if (!b) {\n // @ts-ignore todo: improve typings\n program.group = outros;\n outros.r += 1;\n }\n if (running_program || pending_program) {\n pending_program = program;\n }\n else {\n // if this is an intro, and there's a delay, we need to do\n // an initial tick and/or apply CSS animation immediately\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, b, duration, delay, easing, css);\n }\n if (b)\n tick(0, 1);\n running_program = init(program, duration);\n add_render_callback(() => dispatch(node, b, 'start'));\n loop(now => {\n if (pending_program && now > pending_program.start) {\n running_program = init(pending_program, duration);\n pending_program = null;\n dispatch(node, running_program.b, 'start');\n if (css) {\n clear_animation();\n animation_name = create_rule(node, t, running_program.b, running_program.duration, 0, easing, config.css);\n }\n }\n if (running_program) {\n if (now >= running_program.end) {\n tick(t = running_program.b, 1 - t);\n dispatch(node, running_program.b, 'end');\n if (!pending_program) {\n // we're done\n if (running_program.b) {\n // intro — we can tidy up immediately\n clear_animation();\n }\n else {\n // outro — needs to be coordinated\n if (!--running_program.group.r)\n run_all(running_program.group.c);\n }\n }\n running_program = null;\n }\n else if (now >= running_program.start) {\n const p = now - running_program.start;\n t = running_program.a + running_program.d * easing(p / running_program.duration);\n tick(t, 1 - t);\n }\n }\n return !!(running_program || pending_program);\n });\n }\n }\n return {\n run(b) {\n if (is_function(config)) {\n wait().then(() => {\n // @ts-ignore\n config = config();\n go(b);\n });\n }\n else {\n go(b);\n }\n },\n end() {\n clear_animation();\n running_program = pending_program = null;\n }\n };\n}\n\nfunction handle_promise(promise, info) {\n const token = info.token = {};\n function update(type, index, key, value) {\n if (info.token !== token)\n return;\n info.resolved = value;\n let child_ctx = info.ctx;\n if (key !== undefined) {\n child_ctx = child_ctx.slice();\n child_ctx[key] = value;\n }\n const block = type && (info.current = type)(child_ctx);\n let needs_flush = false;\n if (info.block) {\n if (info.blocks) {\n info.blocks.forEach((block, i) => {\n if (i !== index && block) {\n group_outros();\n transition_out(block, 1, 1, () => {\n if (info.blocks[i] === block) {\n info.blocks[i] = null;\n }\n });\n check_outros();\n }\n });\n }\n else {\n info.block.d(1);\n }\n block.c();\n transition_in(block, 1);\n block.m(info.mount(), info.anchor);\n needs_flush = true;\n }\n info.block = block;\n if (info.blocks)\n info.blocks[index] = block;\n if (needs_flush) {\n flush();\n }\n }\n if (is_promise(promise)) {\n const current_component = get_current_component();\n promise.then(value => {\n set_current_component(current_component);\n update(info.then, 1, info.value, value);\n set_current_component(null);\n }, error => {\n set_current_component(current_component);\n update(info.catch, 2, info.error, error);\n set_current_component(null);\n if (!info.hasCatch) {\n throw error;\n }\n });\n // if we previously had a then/catch block, destroy it\n if (info.current !== info.pending) {\n update(info.pending, 0);\n return true;\n }\n }\n else {\n if (info.current !== info.then) {\n update(info.then, 1, info.value, promise);\n return true;\n }\n info.resolved = promise;\n }\n}\nfunction update_await_block_branch(info, ctx, dirty) {\n const child_ctx = ctx.slice();\n const { resolved } = info;\n if (info.current === info.then) {\n child_ctx[info.value] = resolved;\n }\n if (info.current === info.catch) {\n child_ctx[info.error] = resolved;\n }\n info.block.p(child_ctx, dirty);\n}\n\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\nfunction destroy_block(block, lookup) {\n block.d(1);\n lookup.delete(block.key);\n}\nfunction outro_and_destroy_block(block, lookup) {\n transition_out(block, 1, 1, () => {\n lookup.delete(block.key);\n });\n}\nfunction fix_and_destroy_block(block, lookup) {\n block.f();\n destroy_block(block, lookup);\n}\nfunction fix_and_outro_and_destroy_block(block, lookup) {\n block.f();\n outro_and_destroy_block(block, lookup);\n}\nfunction update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) {\n let o = old_blocks.length;\n let n = list.length;\n let i = o;\n const old_indexes = {};\n while (i--)\n old_indexes[old_blocks[i].key] = i;\n const new_blocks = [];\n const new_lookup = new Map();\n const deltas = new Map();\n i = n;\n while (i--) {\n const child_ctx = get_context(ctx, list, i);\n const key = get_key(child_ctx);\n let block = lookup.get(key);\n if (!block) {\n block = create_each_block(key, child_ctx);\n block.c();\n }\n else if (dynamic) {\n block.p(child_ctx, dirty);\n }\n new_lookup.set(key, new_blocks[i] = block);\n if (key in old_indexes)\n deltas.set(key, Math.abs(i - old_indexes[key]));\n }\n const will_move = new Set();\n const did_move = new Set();\n function insert(block) {\n transition_in(block, 1);\n block.m(node, next);\n lookup.set(block.key, block);\n next = block.first;\n n--;\n }\n while (o && n) {\n const new_block = new_blocks[n - 1];\n const old_block = old_blocks[o - 1];\n const new_key = new_block.key;\n const old_key = old_block.key;\n if (new_block === old_block) {\n // do nothing\n next = new_block.first;\n o--;\n n--;\n }\n else if (!new_lookup.has(old_key)) {\n // remove old block\n destroy(old_block, lookup);\n o--;\n }\n else if (!lookup.has(new_key) || will_move.has(new_key)) {\n insert(new_block);\n }\n else if (did_move.has(old_key)) {\n o--;\n }\n else if (deltas.get(new_key) > deltas.get(old_key)) {\n did_move.add(new_key);\n insert(new_block);\n }\n else {\n will_move.add(old_key);\n o--;\n }\n }\n while (o--) {\n const old_block = old_blocks[o];\n if (!new_lookup.has(old_block.key))\n destroy(old_block, lookup);\n }\n while (n)\n insert(new_blocks[n - 1]);\n return new_blocks;\n}\nfunction validate_each_keys(ctx, list, get_context, get_key) {\n const keys = new Set();\n for (let i = 0; i < list.length; i++) {\n const key = get_key(get_context(ctx, list, i));\n if (keys.has(key)) {\n throw new Error('Cannot have duplicate keys in a keyed each');\n }\n keys.add(key);\n }\n}\n\nfunction get_spread_update(levels, updates) {\n const update = {};\n const to_null_out = {};\n const accounted_for = { $$scope: 1 };\n let i = levels.length;\n while (i--) {\n const o = levels[i];\n const n = updates[i];\n if (n) {\n for (const key in o) {\n if (!(key in n))\n to_null_out[key] = 1;\n }\n for (const key in n) {\n if (!accounted_for[key]) {\n update[key] = n[key];\n accounted_for[key] = 1;\n }\n }\n levels[i] = n;\n }\n else {\n for (const key in o) {\n accounted_for[key] = 1;\n }\n }\n }\n for (const key in to_null_out) {\n if (!(key in update))\n update[key] = undefined;\n }\n return update;\n}\nfunction get_spread_object(spread_props) {\n return typeof spread_props === 'object' && spread_props !== null ? spread_props : {};\n}\n\n// source: https://html.spec.whatwg.org/multipage/indices.html\nconst boolean_attributes = new Set([\n 'allowfullscreen',\n 'allowpaymentrequest',\n 'async',\n 'autofocus',\n 'autoplay',\n 'checked',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'formnovalidate',\n 'hidden',\n 'ismap',\n 'loop',\n 'multiple',\n 'muted',\n 'nomodule',\n 'novalidate',\n 'open',\n 'playsinline',\n 'readonly',\n 'required',\n 'reversed',\n 'selected'\n]);\n\nconst invalid_attribute_name_character = /[\\s'\">/=\\u{FDD0}-\\u{FDEF}\\u{FFFE}\\u{FFFF}\\u{1FFFE}\\u{1FFFF}\\u{2FFFE}\\u{2FFFF}\\u{3FFFE}\\u{3FFFF}\\u{4FFFE}\\u{4FFFF}\\u{5FFFE}\\u{5FFFF}\\u{6FFFE}\\u{6FFFF}\\u{7FFFE}\\u{7FFFF}\\u{8FFFE}\\u{8FFFF}\\u{9FFFE}\\u{9FFFF}\\u{AFFFE}\\u{AFFFF}\\u{BFFFE}\\u{BFFFF}\\u{CFFFE}\\u{CFFFF}\\u{DFFFE}\\u{DFFFF}\\u{EFFFE}\\u{EFFFF}\\u{FFFFE}\\u{FFFFF}\\u{10FFFE}\\u{10FFFF}]/u;\n// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n// https://infra.spec.whatwg.org/#noncharacter\nfunction spread(args, classes_to_add) {\n const attributes = Object.assign({}, ...args);\n if (classes_to_add) {\n if (attributes.class == null) {\n attributes.class = classes_to_add;\n }\n else {\n attributes.class += ' ' + classes_to_add;\n }\n }\n let str = '';\n Object.keys(attributes).forEach(name => {\n if (invalid_attribute_name_character.test(name))\n return;\n const value = attributes[name];\n if (value === true)\n str += ' ' + name;\n else if (boolean_attributes.has(name.toLowerCase())) {\n if (value)\n str += ' ' + name;\n }\n else if (value != null) {\n str += ` ${name}=\"${String(value).replace(/\"/g, '"').replace(/'/g, ''')}\"`;\n }\n });\n return str;\n}\nconst escaped = {\n '\"': '"',\n \"'\": ''',\n '&': '&',\n '<': '<',\n '>': '>'\n};\nfunction escape(html) {\n return String(html).replace(/[\"'&<>]/g, match => escaped[match]);\n}\nfunction each(items, fn) {\n let str = '';\n for (let i = 0; i < items.length; i += 1) {\n str += fn(items[i], i);\n }\n return str;\n}\nconst missing_component = {\n $$render: () => ''\n};\nfunction validate_component(component, name) {\n if (!component || !component.$$render) {\n if (name === 'svelte:component')\n name += ' this={...}';\n throw new Error(`<${name}> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules`);\n }\n return component;\n}\nfunction debug(file, line, column, values) {\n console.log(`{@debug} ${file ? file + ' ' : ''}(${line}:${column})`); // eslint-disable-line no-console\n console.log(values); // eslint-disable-line no-console\n return '';\n}\nlet on_destroy;\nfunction create_ssr_component(fn) {\n function $$render(result, props, bindings, slots, context) {\n const parent_component = current_component;\n const $$ = {\n on_destroy,\n context: new Map(parent_component ? parent_component.$$.context : context || []),\n // these will be immediately discarded\n on_mount: [],\n before_update: [],\n after_update: [],\n callbacks: blank_object()\n };\n set_current_component({ $$ });\n const html = fn(result, props, bindings, slots);\n set_current_component(parent_component);\n return html;\n }\n return {\n render: (props = {}, { $$slots = {}, context = new Map() } = {}) => {\n on_destroy = [];\n const result = { title: '', head: '', css: new Set() };\n const html = $$render(result, props, {}, $$slots, context);\n run_all(on_destroy);\n return {\n html,\n css: {\n code: Array.from(result.css).map(css => css.code).join('\\n'),\n map: null // TODO\n },\n head: result.title + result.head\n };\n },\n $$render\n };\n}\nfunction add_attribute(name, value, boolean) {\n if (value == null || (boolean && !value))\n return '';\n return ` ${name}${value === true ? '' : `=${typeof value === 'string' ? JSON.stringify(escape(value)) : `\"${value}\"`}`}`;\n}\nfunction add_classes(classes) {\n return classes ? ` class=\"${classes}\"` : '';\n}\n\nfunction bind(component, name, callback) {\n const index = component.$$.props[name];\n if (index !== undefined) {\n component.$$.bound[index] = callback;\n callback(component.$$.ctx[index]);\n }\n}\nfunction create_component(block) {\n block && block.c();\n}\nfunction claim_component(block, parent_nodes) {\n block && block.l(parent_nodes);\n}\nfunction mount_component(component, target, anchor, customElement) {\n const { fragment, on_mount, on_destroy, after_update } = component.$$;\n fragment && fragment.m(target, anchor);\n if (!customElement) {\n // onMount happens before the initial afterUpdate\n add_render_callback(() => {\n const new_on_destroy = on_mount.map(run).filter(is_function);\n if (on_destroy) {\n on_destroy.push(...new_on_destroy);\n }\n else {\n // Edge case - component was destroyed immediately,\n // most likely as a result of a binding initialising\n run_all(new_on_destroy);\n }\n component.$$.on_mount = [];\n });\n }\n after_update.forEach(add_render_callback);\n}\nfunction destroy_component(component, detaching) {\n const $$ = component.$$;\n if ($$.fragment !== null) {\n run_all($$.on_destroy);\n $$.fragment && $$.fragment.d(detaching);\n // TODO null out other refs, including component.$$ (but need to\n // preserve final state?)\n $$.on_destroy = $$.fragment = null;\n $$.ctx = [];\n }\n}\nfunction make_dirty(component, i) {\n if (component.$$.dirty[0] === -1) {\n dirty_components.push(component);\n schedule_update();\n component.$$.dirty.fill(0);\n }\n component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31));\n}\nfunction init(component, options, instance, create_fragment, not_equal, props, dirty = [-1]) {\n const parent_component = current_component;\n set_current_component(component);\n const $$ = component.$$ = {\n fragment: null,\n ctx: null,\n // state\n props,\n update: noop,\n not_equal,\n bound: blank_object(),\n // lifecycle\n on_mount: [],\n on_destroy: [],\n on_disconnect: [],\n before_update: [],\n after_update: [],\n context: new Map(parent_component ? parent_component.$$.context : options.context || []),\n // everything else\n callbacks: blank_object(),\n dirty,\n skip_bound: false\n };\n let ready = false;\n $$.ctx = instance\n ? instance(component, options.props || {}, (i, ret, ...rest) => {\n const value = rest.length ? rest[0] : ret;\n if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {\n if (!$$.skip_bound && $$.bound[i])\n $$.bound[i](value);\n if (ready)\n make_dirty(component, i);\n }\n return ret;\n })\n : [];\n $$.update();\n ready = true;\n run_all($$.before_update);\n // `false` as a special case of no DOM component\n $$.fragment = create_fragment ? create_fragment($$.ctx) : false;\n if (options.target) {\n if (options.hydrate) {\n const nodes = children(options.target);\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.l(nodes);\n nodes.forEach(detach);\n }\n else {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n $$.fragment && $$.fragment.c();\n }\n if (options.intro)\n transition_in(component.$$.fragment);\n mount_component(component, options.target, options.anchor, options.customElement);\n flush();\n }\n set_current_component(parent_component);\n}\nlet SvelteElement;\nif (typeof HTMLElement === 'function') {\n SvelteElement = class extends HTMLElement {\n constructor() {\n super();\n this.attachShadow({ mode: 'open' });\n }\n connectedCallback() {\n const { on_mount } = this.$$;\n this.$$.on_disconnect = on_mount.map(run).filter(is_function);\n // @ts-ignore todo: improve typings\n for (const key in this.$$.slotted) {\n // @ts-ignore todo: improve typings\n this.appendChild(this.$$.slotted[key]);\n }\n }\n attributeChangedCallback(attr, _oldValue, newValue) {\n this[attr] = newValue;\n }\n disconnectedCallback() {\n run_all(this.$$.on_disconnect);\n }\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n // TODO should this delegate to addEventListener?\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n };\n}\n/**\n * Base class for Svelte components. Used when dev=false.\n */\nclass SvelteComponent {\n $destroy() {\n destroy_component(this, 1);\n this.$destroy = noop;\n }\n $on(type, callback) {\n const callbacks = (this.$$.callbacks[type] || (this.$$.callbacks[type] = []));\n callbacks.push(callback);\n return () => {\n const index = callbacks.indexOf(callback);\n if (index !== -1)\n callbacks.splice(index, 1);\n };\n }\n $set($$props) {\n if (this.$$set && !is_empty($$props)) {\n this.$$.skip_bound = true;\n this.$$set($$props);\n this.$$.skip_bound = false;\n }\n }\n}\n\nfunction dispatch_dev(type, detail) {\n document.dispatchEvent(custom_event(type, Object.assign({ version: '3.38.2' }, detail)));\n}\nfunction append_dev(target, node) {\n dispatch_dev('SvelteDOMInsert', { target, node });\n append(target, node);\n}\nfunction insert_dev(target, node, anchor) {\n dispatch_dev('SvelteDOMInsert', { target, node, anchor });\n insert(target, node, anchor);\n}\nfunction detach_dev(node) {\n dispatch_dev('SvelteDOMRemove', { node });\n detach(node);\n}\nfunction detach_between_dev(before, after) {\n while (before.nextSibling && before.nextSibling !== after) {\n detach_dev(before.nextSibling);\n }\n}\nfunction detach_before_dev(after) {\n while (after.previousSibling) {\n detach_dev(after.previousSibling);\n }\n}\nfunction detach_after_dev(before) {\n while (before.nextSibling) {\n detach_dev(before.nextSibling);\n }\n}\nfunction listen_dev(node, event, handler, options, has_prevent_default, has_stop_propagation) {\n const modifiers = options === true ? ['capture'] : options ? Array.from(Object.keys(options)) : [];\n if (has_prevent_default)\n modifiers.push('preventDefault');\n if (has_stop_propagation)\n modifiers.push('stopPropagation');\n dispatch_dev('SvelteDOMAddEventListener', { node, event, handler, modifiers });\n const dispose = listen(node, event, handler, options);\n return () => {\n dispatch_dev('SvelteDOMRemoveEventListener', { node, event, handler, modifiers });\n dispose();\n };\n}\nfunction attr_dev(node, attribute, value) {\n attr(node, attribute, value);\n if (value == null)\n dispatch_dev('SvelteDOMRemoveAttribute', { node, attribute });\n else\n dispatch_dev('SvelteDOMSetAttribute', { node, attribute, value });\n}\nfunction prop_dev(node, property, value) {\n node[property] = value;\n dispatch_dev('SvelteDOMSetProperty', { node, property, value });\n}\nfunction dataset_dev(node, property, value) {\n node.dataset[property] = value;\n dispatch_dev('SvelteDOMSetDataset', { node, property, value });\n}\nfunction set_data_dev(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n dispatch_dev('SvelteDOMSetData', { node: text, data });\n text.data = data;\n}\nfunction validate_each_argument(arg) {\n if (typeof arg !== 'string' && !(arg && typeof arg === 'object' && 'length' in arg)) {\n let msg = '{#each} only iterates over array-like objects.';\n if (typeof Symbol === 'function' && arg && Symbol.iterator in arg) {\n msg += ' You can use a spread to convert this iterable into an array.';\n }\n throw new Error(msg);\n }\n}\nfunction validate_slots(name, slot, keys) {\n for (const slot_key of Object.keys(slot)) {\n if (!~keys.indexOf(slot_key)) {\n console.warn(`<${name}> received an unexpected slot \"${slot_key}\".`);\n }\n }\n}\n/**\n * Base class for Svelte components with some minor dev-enhancements. Used when dev=true.\n */\nclass SvelteComponentDev extends SvelteComponent {\n constructor(options) {\n if (!options || (!options.target && !options.$$inline)) {\n throw new Error(\"'target' is a required option\");\n }\n super();\n }\n $destroy() {\n super.$destroy();\n this.$destroy = () => {\n console.warn('Component was already destroyed'); // eslint-disable-line no-console\n };\n }\n $capture_state() { }\n $inject_state() { }\n}\n/**\n * Base class to create strongly typed Svelte components.\n * This only exists for typing purposes and should be used in `.d.ts` files.\n *\n * ### Example:\n *\n * You have component library on npm called `component-library`, from which\n * you export a component called `MyComponent`. For Svelte+TypeScript users,\n * you want to provide typings. Therefore you create a `index.d.ts`:\n * ```ts\n * import { SvelteComponentTyped } from \"svelte\";\n * export class MyComponent extends SvelteComponentTyped<{foo: string}> {}\n * ```\n * Typing this makes it possible for IDEs like VS Code with the Svelte extension\n * to provide intellisense and to use the component like this in a Svelte file\n * with TypeScript:\n * ```svelte\n * \n * \n * ```\n *\n * #### Why not make this part of `SvelteComponent(Dev)`?\n * Because\n * ```ts\n * class ASubclassOfSvelteComponent extends SvelteComponent<{foo: string}> {}\n * const component: typeof SvelteComponent = ASubclassOfSvelteComponent;\n * ```\n * will throw a type error, so we need to seperate the more strictly typed class.\n */\nclass SvelteComponentTyped extends SvelteComponentDev {\n constructor(options) {\n super(options);\n }\n}\nfunction loop_guard(timeout) {\n const start = Date.now();\n return () => {\n if (Date.now() - start > timeout) {\n throw new Error('Infinite loop detected');\n }\n };\n}\n\nexport { HtmlTag, SvelteComponent, SvelteComponentDev, SvelteComponentTyped, SvelteElement, action_destroyer, add_attribute, add_classes, add_flush_callback, add_location, add_render_callback, add_resize_listener, add_transform, afterUpdate, append, append_dev, assign, attr, attr_dev, attribute_to_object, beforeUpdate, bind, binding_callbacks, blank_object, bubble, check_outros, children, claim_component, claim_element, claim_space, claim_text, clear_loops, component_subscribe, compute_rest_props, compute_slots, createEventDispatcher, create_animation, create_bidirectional_transition, create_component, create_in_transition, create_out_transition, create_slot, create_ssr_component, current_component, custom_event, dataset_dev, debug, destroy_block, destroy_component, destroy_each, detach, detach_after_dev, detach_before_dev, detach_between_dev, detach_dev, dirty_components, dispatch_dev, each, element, element_is, empty, escape, escaped, exclude_internal_props, fix_and_destroy_block, fix_and_outro_and_destroy_block, fix_position, flush, getContext, get_binding_group_value, get_current_component, get_custom_elements_slots, get_slot_changes, get_slot_context, get_spread_object, get_spread_update, get_store_value, globals, group_outros, handle_promise, hasContext, has_prop, identity, init, insert, insert_dev, intros, invalid_attribute_name_character, is_client, is_crossorigin, is_empty, is_function, is_promise, listen, listen_dev, loop, loop_guard, missing_component, mount_component, noop, not_equal, now, null_to_empty, object_without_properties, onDestroy, onMount, once, outro_and_destroy_block, prevent_default, prop_dev, query_selector_all, raf, run, run_all, safe_not_equal, schedule_update, select_multiple_value, select_option, select_options, select_value, self, setContext, set_attributes, set_current_component, set_custom_element_data, set_data, set_data_dev, set_input_type, set_input_value, set_now, set_raf, set_store_value, set_style, set_svg_attributes, space, spread, stop_propagation, subscribe, svg_element, text, tick, time_ranges_to_array, to_number, toggle_class, transition_in, transition_out, update_await_block_branch, update_keyed_each, update_slot, update_slot_spread, validate_component, validate_each_argument, validate_each_keys, validate_slots, validate_store, xlink_attr };\n","import { cubicInOut, linear, cubicOut } from '../easing/index.mjs';\nimport { is_function, assign } from '../internal/index.mjs';\n\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\n\nfunction blur(node, { delay = 0, duration = 400, easing = cubicInOut, amount = 5, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const f = style.filter === 'none' ? '' : style.filter;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `opacity: ${target_opacity - (od * u)}; filter: ${f} blur(${u * amount}px);`\n };\n}\nfunction fade(node, { delay = 0, duration = 400, easing = linear } = {}) {\n const o = +getComputedStyle(node).opacity;\n return {\n delay,\n duration,\n easing,\n css: t => `opacity: ${t * o}`\n };\n}\nfunction fly(node, { delay = 0, duration = 400, easing = cubicOut, x = 0, y = 0, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `\n\t\t\ttransform: ${transform} translate(${(1 - t) * x}px, ${(1 - t) * y}px);\n\t\t\topacity: ${target_opacity - (od * u)}`\n };\n}\nfunction slide(node, { delay = 0, duration = 400, easing = cubicOut } = {}) {\n const style = getComputedStyle(node);\n const opacity = +style.opacity;\n const height = parseFloat(style.height);\n const padding_top = parseFloat(style.paddingTop);\n const padding_bottom = parseFloat(style.paddingBottom);\n const margin_top = parseFloat(style.marginTop);\n const margin_bottom = parseFloat(style.marginBottom);\n const border_top_width = parseFloat(style.borderTopWidth);\n const border_bottom_width = parseFloat(style.borderBottomWidth);\n return {\n delay,\n duration,\n easing,\n css: t => 'overflow: hidden;' +\n `opacity: ${Math.min(t * 20, 1) * opacity};` +\n `height: ${t * height}px;` +\n `padding-top: ${t * padding_top}px;` +\n `padding-bottom: ${t * padding_bottom}px;` +\n `margin-top: ${t * margin_top}px;` +\n `margin-bottom: ${t * margin_bottom}px;` +\n `border-top-width: ${t * border_top_width}px;` +\n `border-bottom-width: ${t * border_bottom_width}px;`\n };\n}\nfunction scale(node, { delay = 0, duration = 400, easing = cubicOut, start = 0, opacity = 0 } = {}) {\n const style = getComputedStyle(node);\n const target_opacity = +style.opacity;\n const transform = style.transform === 'none' ? '' : style.transform;\n const sd = 1 - start;\n const od = target_opacity * (1 - opacity);\n return {\n delay,\n duration,\n easing,\n css: (_t, u) => `\n\t\t\ttransform: ${transform} scale(${1 - (sd * u)});\n\t\t\topacity: ${target_opacity - (od * u)}\n\t\t`\n };\n}\nfunction draw(node, { delay = 0, speed, duration, easing = cubicInOut } = {}) {\n const len = node.getTotalLength();\n if (duration === undefined) {\n if (speed === undefined) {\n duration = 800;\n }\n else {\n duration = len / speed;\n }\n }\n else if (typeof duration === 'function') {\n duration = duration(len);\n }\n return {\n delay,\n duration,\n easing,\n css: (t, u) => `stroke-dasharray: ${t * len} ${u * len}`\n };\n}\nfunction crossfade(_a) {\n var { fallback } = _a, defaults = __rest(_a, [\"fallback\"]);\n const to_receive = new Map();\n const to_send = new Map();\n function crossfade(from, node, params) {\n const { delay = 0, duration = d => Math.sqrt(d) * 30, easing = cubicOut } = assign(assign({}, defaults), params);\n const to = node.getBoundingClientRect();\n const dx = from.left - to.left;\n const dy = from.top - to.top;\n const dw = from.width / to.width;\n const dh = from.height / to.height;\n const d = Math.sqrt(dx * dx + dy * dy);\n const style = getComputedStyle(node);\n const transform = style.transform === 'none' ? '' : style.transform;\n const opacity = +style.opacity;\n return {\n delay,\n duration: is_function(duration) ? duration(d) : duration,\n easing,\n css: (t, u) => `\n\t\t\t\topacity: ${t * opacity};\n\t\t\t\ttransform-origin: top left;\n\t\t\t\ttransform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});\n\t\t\t`\n };\n }\n function transition(items, counterparts, intro) {\n return (node, params) => {\n items.set(params.key, {\n rect: node.getBoundingClientRect()\n });\n return () => {\n if (counterparts.has(params.key)) {\n const { rect } = counterparts.get(params.key);\n counterparts.delete(params.key);\n return crossfade(rect, node, params);\n }\n // if the node is disappearing altogether\n // (i.e. wasn't claimed by the other list)\n // then we need to supply an outro\n items.delete(params.key);\n return fallback && fallback(node, params, intro);\n };\n };\n }\n return [\n transition(to_send, to_receive, false),\n transition(to_receive, to_send, true)\n ];\n}\n\nexport { blur, crossfade, draw, fade, fly, scale, slide };\n","\n\n\n\n\n\n\n\n\n\n{#if Component}\n \n
\n \n {#if state.closeButton}\n {#if isFunction(state.closeButton)}\n \n {:else}\n
\n \n \n{/if}\n\n","import { noop, safe_not_equal, subscribe, run_all, is_function } from '../internal/index.mjs';\nexport { get_store_value as get } from '../internal/index.mjs';\n\nconst subscriber_queue = [];\n/**\n * Creates a `Readable` store that allows reading by subscription.\n * @param value initial value\n * @param {StartStopNotifier}start start and stop notifications for subscriptions\n */\nfunction readable(value, start) {\n return {\n subscribe: writable(value, start).subscribe\n };\n}\n/**\n * Create a `Writable` store that allows both updating and reading by subscription.\n * @param {*=}value initial value\n * @param {StartStopNotifier=}start start and stop notifications for subscriptions\n */\nfunction writable(value, start = noop) {\n let stop;\n const subscribers = [];\n function set(new_value) {\n if (safe_not_equal(value, new_value)) {\n value = new_value;\n if (stop) { // store is ready\n const run_queue = !subscriber_queue.length;\n for (let i = 0; i < subscribers.length; i += 1) {\n const s = subscribers[i];\n s[1]();\n subscriber_queue.push(s, value);\n }\n if (run_queue) {\n for (let i = 0; i < subscriber_queue.length; i += 2) {\n subscriber_queue[i][0](subscriber_queue[i + 1]);\n }\n subscriber_queue.length = 0;\n }\n }\n }\n }\n function update(fn) {\n set(fn(value));\n }\n function subscribe(run, invalidate = noop) {\n const subscriber = [run, invalidate];\n subscribers.push(subscriber);\n if (subscribers.length === 1) {\n stop = start(set) || noop;\n }\n run(value);\n return () => {\n const index = subscribers.indexOf(subscriber);\n if (index !== -1) {\n subscribers.splice(index, 1);\n }\n if (subscribers.length === 0) {\n stop();\n stop = null;\n }\n };\n }\n return { set, update, subscribe };\n}\nfunction derived(stores, fn, initial_value) {\n const single = !Array.isArray(stores);\n const stores_array = single\n ? [stores]\n : stores;\n const auto = fn.length < 2;\n return readable(initial_value, (set) => {\n let inited = false;\n const values = [];\n let pending = 0;\n let cleanup = noop;\n const sync = () => {\n if (pending) {\n return;\n }\n cleanup();\n const result = fn(single ? values[0] : values, set);\n if (auto) {\n set(result);\n }\n else {\n cleanup = is_function(result) ? result : noop;\n }\n };\n const unsubscribers = stores_array.map((store, i) => subscribe(store, (value) => {\n values[i] = value;\n pending &= ~(1 << i);\n if (inited) {\n sync();\n }\n }, () => {\n pending |= (1 << i);\n }));\n inited = true;\n sync();\n return function stop() {\n run_all(unsubscribers);\n cleanup();\n };\n });\n}\n\nexport { derived, readable, writable };\n","import { writable } from 'svelte/store';\n\nexport const modal = writable(null);\n","export async function fetchEntity(uri) {\n let data;\n const response = await fetch(uri + \".json\");\n if (response.ok) {\n data = await response.json();\n return data;\n\n } else {\n throw new Error('Could not load entity');\n }\n}\n","\n\n\n\n\n\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n
\n
\n","\n\n\n\n\n","\n\n\n\n\n\n\n
\n \n
\n
\n\n
\n \n {#if loading}\n \n {:else if visibleRows.length === 0}\n
{@html labels.empty}
\n {:else}\n \n {/if}\n \n
\n\n\n
\n \n
\n
\n","\n\n\n\n

{project.title}

\n\n

1. Download

\n\n

The recommended way to download any Drupal module is with Composer.

\n\n

If you already manage your Drupal application dependencies with Composer, simply open your CLI and run the following command from the Composer root directory\nfor your application:

\n
\n    composer require drupal/{project.field_project_machine_name} --with-all-dependencies\n
\n\n

This will download the module to your codebase.

\n

Didn't work? Learn how to troubleshoot Composer.

\n\n

If you cannot use Composer, you may download the module manually through your browser.

\n\n

2. Install

\n\n

To use the module you must next install/enable it. Visit the modules page to install the module using your web browser.

\n

Alternatively, you can use drush to enable it via the CLI:

\n
\n    drush pm-enable {project.field_project_machine_name}\n
\n","\n\n
\n {#if projectIsEnabled(project.field_project_machine_name)}\n Installed\n {:else if projectIsDownloaded(project.field_project_machine_name)}\n \n {:else}\n \n {/if}\n
\n","\n\n\n{#if typeof field_supporting_organizations !== \"undefined\" && field_supporting_organizations.length}\n
\n with support from\n {#each field_supporting_organizations || [] as field_collection}\n {#await fetchEntity(field_collection.uri)}\n {:then item}\n {#await fetchEntity(item.field_supporting_organization.uri)}\n {:then organization}\n {organization.title}{#if field_supporting_organizations[field_supporting_organizations.length - 1].id !== field_collection.id},{/if}\n {:catch error}\n {error.message}\n {/await}\n {:catch error}\n {error.message}\n {/await}\n {/each}\n
\n{/if}\n\n","\n\n{#if typeof field_project_images !== \"undefined\" && field_project_images.length}\n \n {#await fetchEntity(field_project_images[0].file.uri)}\n ...waiting\n {:then file}\n \"{field_project_images[0].alt}\"/\n {:catch error}\n {error.message}\n {/await}\n{:else}\n \"Placeholder\n{/if}\n","\n\n
\n {#if typeof taxonomy_vocabulary_3 !== \"undefined\" && taxonomy_vocabulary_3.length}\n
    \n {#each taxonomy_vocabulary_3 || [] as category}\n {#await fetchEntity(category.uri)}\n {:then term}\n
  • {term.name}
  • \n {:catch error}\n

    {error.message}

    \n {/await}\n {/each}\n
\n {/if}\n
\n","\n
\n {#if project_usage}\n \n
\n
    \n {#each Object.entries(project_usage) as [key, val] (key) }\n
  • \n {new Intl.NumberFormat('en-US').format(val)} active installations [{key} branch]\n
  • \n {/each}\n
\n
\n {:else}\n No reported usage.\n {/if}\n
\n\n","\n\n{#if coverage === 'covered'}\n \n{/if}\n","\n\n{#if taxonomy_term_reference}\n
\n {#await fetchEntity(taxonomy_term_reference.uri)}\n Loading...\n {:then term}\n ]+)>)/gi, '')}\">{term.name}\n {:catch error}\n {error.message}\n {/await}\n
\n{/if}\n\n","\n\n
\n {#if project_is_compatible}\n Compatible with your Drupal installation\n {:else if project_is_compatible === false}\n Not compatible with your Drupal installation.\n {/if}\n
\n
\n {#await fetchReleases(project_name)}\n Loading...\n {:then releases}\n {#if releases.length}\n Latest release: {releases[0].version} ({releases[0].date_ago})\n {/if}\n {:catch error}\n {error.message}\n {/await}\n
\n","\n\n
\n
\n \n
\n \n
\n
\n

\n {project.title}\n \n

\n
{@html project.body.summary}
\n
\n {#if project.author}\n \n {/if}\n \n
\n
\n
\n
\n
\n \n \n
\n \n \n \n
⭐  {project.flag_project_star_user_count}
\n \n
\n
\n","\n\n\n
\n
\n \n
\n

Recommended projects must be covered by Drupal's security team, have at least one release, be actively maintained, be a full (not sandbox) project, and have an issue queue available.

\n \n \n
\n {#each rows2 as row, index (row)}\n \n {/each}\n
\n \n
\n
\n","\n\n
\n\t
\n\t\t\n\t
\n\t\n\t\n
\n","import App from './App.svelte';\n\nconst app = new App({\n\t// The #project-browser markup is returned by the project_browser.browse Drupal route.\n\ttarget: document.querySelector('#project-browser'),\n\tprops: {\n\t}\n});\n\nexport default app;\n"],"names":["noop","identity","x","assign","tar","src","k","run","fn","blank_object","Object","create","run_all","fns","forEach","is_function","thing","safe_not_equal","a","b","component_subscribe","component","store","callback","$$","on_destroy","push","callbacks","unsub","subscribe","unsubscribe","create_slot","definition","ctx","$$scope","slot_ctx","get_slot_context","slice","update_slot","slot","slot_definition","dirty","get_slot_changes_fn","get_slot_context_fn","slot_changes","lets","undefined","merged","len","Math","max","length","i","get_slot_changes","slot_context","p","exclude_internal_props","props","result","null_to_empty","value","is_client","window","now","performance","Date","raf","cb","requestAnimationFrame","tasks","Set","run_tasks","task","c","delete","f","size","append","target","node","appendChild","insert","anchor","insertBefore","detach","parentNode","removeChild","destroy_each","iterations","detaching","d","element","name","document","createElement","text","data","createTextNode","space","empty","listen","event","handler","options","addEventListener","removeEventListener","attr","attribute","removeAttribute","getAttribute","setAttribute","set_data","wholeText","set_input_value","input","set_style","key","important","style","setProperty","select_option","select","option","__value","selected","toggle_class","toggle","classList","custom_event","type","detail","e","createEvent","initCustomEvent","active_docs","current_component","active","create_rule","duration","delay","ease","uid","step","keyframes","t","rule","str","hash","charCodeAt","doc","ownerDocument","add","stylesheet","__svelte_stylesheet","head","sheet","current_rules","__svelte_rules","insertRule","cssRules","animation","delete_rule","previous","split","next","filter","anim","indexOf","deleted","join","deleteRule","clear","set_current_component","get_current_component","Error","onMount","on_mount","createEventDispatcher","call","setContext","context","set","getContext","get","dirty_components","binding_callbacks","render_callbacks","flush_callbacks","resolved_promise","Promise","resolve","update_scheduled","add_render_callback","flushing","seen_callbacks","flush","update","pop","has","fragment","before_update","after_update","promise","dispatch","direction","kind","dispatchEvent","outroing","outros","group_outros","r","check_outros","transition_in","block","local","transition_out","o","null_transition","create_bidirectional_transition","params","intro","config","running_program","pending_program","animation_name","clear_animation","init","program","abs","start","end","group","go","easing","tick","css","fulfill","loop","[object Object]","then","handle_promise","info","token","index","resolved","child_ctx","current","needs_flush","blocks","m","mount","error","catch","hasCatch","pending","update_await_block_branch","globals","globalThis","global","destroy_block","lookup","outro_and_destroy_block","update_keyed_each","old_blocks","get_key","dynamic","list","destroy","create_each_block","get_context","n","old_indexes","new_blocks","new_lookup","Map","deltas","will_move","did_move","first","new_block","old_block","new_key","old_key","create_component","mount_component","customElement","new_on_destroy","map","destroy_component","make_dirty","fill","instance","create_fragment","not_equal","parent_component","bound","on_disconnect","skip_bound","ready","ret","rest","hydrate","nodes","Array","from","childNodes","children","l","SvelteComponent","this","$destroy","splice","$$props","obj","$$set","keys","fade","linear","getComputedStyle","opacity","closeButton","transitionWindowProps","transitionBgProps","bind","Component","baseSetContext","svelte.setContext","show","closeOnEsc","closeOnOuterClick","styleBg","styleWindowWrap","styleWindow","styleContent","styleCloseButton","transitionBg","transitionWindow","defaultState","background","wrap","modalWindow","scrollY","cssBg","cssWindowWrap","cssWindow","cssContent","cssCloseButton","currentTransitionBg","currentTransitionWindow","prevBodyPosition","prevBodyOverflow","outerClickTarget","state","toCssString","reduce","replace","toLowerCase","camelCaseToDash","isFunction","constructor","apply","toVoid","onOpen","onClose","onOpened","onClosed","open","NewComponent","newProps","disableScroll","close","enableScroll","body","position","overflow","top","scrollTo","preventDefault","querySelectorAll","tabbable","tabIndex","activeElement","shiftKey","focus","subscriber_queue","modal","stop","subscribers","new_value","run_queue","s","invalidate","subscriber","writable","async","fetchEntity","uri","response","fetch","ok","json","tid","placeholder","globalLabels","stateContext","row","toString","category","labels","getState","originalEvent","page","pageIndex","pageSize","rows","filteredRows","setRows","setPage","selected_option","querySelector","last","buttons","count","serverSide","onChange","pageCount","floor","button","Search","Pagination","class","loading","responsive","_page","_pageIndex","_rows","visibleRows","title","field_project_machine_name","project","project_name","drupalSettings","project_browser","modules","projectIsDownloaded","ComposerPopup","message","field_supporting_organization","id","url","field_supporting_organizations","origin_url","module_path","file","alt","field_project_images","taxonomy_vocabulary_3","Intl","NumberFormat","format","entries","project_usage","project_usage_total","coverage","description","taxonomy_term_reference","wrapper_class","version","date_ago","release_link","project_is_compatible","filterCompatibleReleases","release","is_compatible","hasOwnProperty","releases","console","log","author","summary","flag_project_star_user_count","field_security_advisory_coverage","taxonomy_vocabulary_44","taxonomy_vocabulary_46","rows2","getRowCount","location","href","results","RegExp","exec","decodeURIComponent","getParameterByName","rowsCount","tab","load","res"],"mappings":"gCAAA,SAASA,KACT,MAAMC,EAAWC,GAAKA,EACtB,SAASC,EAAOC,EAAKC,GAEjB,IAAK,MAAMC,KAAKD,EACZD,EAAIE,GAAKD,EAAIC,GACjB,OAAOF,EAUX,SAASG,EAAIC,GACT,OAAOA,IAEX,SAASC,IACL,OAAOC,OAAOC,OAAO,MAEzB,SAASC,EAAQC,GACbA,EAAIC,QAAQP,GAEhB,SAASQ,EAAYC,GACjB,MAAwB,mBAAVA,EAElB,SAASC,EAAeC,EAAGC,GACvB,OAAOD,GAAKA,EAAIC,GAAKA,EAAID,IAAMC,GAAOD,GAAkB,iBAANA,GAAgC,mBAANA,EAyBhF,SAASE,EAAoBC,EAAWC,EAAOC,GAC3CF,EAAUG,GAAGC,WAAWC,KAb5B,SAAmBJ,KAAUK,GACzB,GAAa,MAATL,EACA,OAAOtB,EAEX,MAAM4B,EAAQN,EAAMO,aAAaF,GACjC,OAAOC,EAAME,YAAc,IAAMF,EAAME,cAAgBF,EAQ1BC,CAAUP,EAAOC,IAElD,SAASQ,EAAYC,EAAYC,EAAKC,EAAS1B,GAC3C,GAAIwB,EAAY,CACZ,MAAMG,EAAWC,EAAiBJ,EAAYC,EAAKC,EAAS1B,GAC5D,OAAOwB,EAAW,GAAGG,IAG7B,SAASC,EAAiBJ,EAAYC,EAAKC,EAAS1B,GAChD,OAAOwB,EAAW,IAAMxB,EAClBL,EAAO+B,EAAQD,IAAII,QAASL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,gBAAgBS,WAAa,kCAAoClB,EAAQ,UAAYpB,GAAW,QAAUiF,EAE/H/Y,IACAkW,EAAMA,EAAM,UAAYlW,GAExBwT,IACA0C,EAAMA,EAAM,0BAA4B1C,GAE5CqE,QAAQC,IAAI5B,SACN+C,QAAYlG,MAAMmD,GACpB+C,EAAIjG,IACJ/S,QAAagZ,EAAIhG,WACjBc,EAAO9T,EAAK0K,MACZkN,QAAQC,IAAI7X,OACZ6Y,EAAYR,GAAYrY,UAGxB8T,UACA+E,EAAY,QAGhB9D,GAAU,UAhCdhQ,mBACUgU,EAAKpF,0BA0DOtT,GAClB0Y,EAAK1Y,EAAM6B,OAAOyR,UAClBA,EAAOtT,EAAM6B,OAAOyR,sBAGAtT,GACpBN,EAAOM,EAAM6B,OAAOnC,WACdgZ,EAAKpF,OACXA,EAAO,mBAGqBtT,GAC5BkT,EAAWlT,EAAM6B,OAAOqR,eAClBwF,EAAKpF,OACXA,EAAO,yBAIPmF,EAAM,qBACAC,EAAK,yBAIXD,EAAM,aACAC,EAAK,gJCpFL9c,0MAAAA,6MAbb8I,mBAIOiU,QAAYlG,MAAM2C,eAAeC,gBAAgBS,WAAa,mCACvD6C,EAAIhG,qBCVP,oEAAQ,CAEnBlU,OAAQe,SAASsU,cAAc,oBAC/B1W,MAAO"} \ No newline at end of file diff --git a/sveltejs/src/App.svelte b/sveltejs/src/App.svelte index 7e60ac0..781632f 100644 --- a/sveltejs/src/App.svelte +++ b/sveltejs/src/App.svelte @@ -9,7 +9,7 @@ // todo Make this URL dynamic. It would work to simply change this to // "/drupal-org-proxy/project" for when the Svelete JS is loaded within a Drupal page, // but that would not work during development when viewing the Svelte app on http://localhost:5000/. - const res = await fetch(`/drupal-org-proxy/project`); + const res = await fetch(drupalSettings.project_browser.origin_url + "/drupal-org-proxy/project"); data = await res.json(); }); diff --git a/sveltejs/src/Project/Image.svelte b/sveltejs/src/Project/Image.svelte index a77d0ca..cf561fe 100644 --- a/sveltejs/src/Project/Image.svelte +++ b/sveltejs/src/Project/Image.svelte @@ -25,5 +25,5 @@ {error.message} {/await} {:else} - Placeholder image + Placeholder image {/if} diff --git a/sveltejs/src/Project/Releases.svelte b/sveltejs/src/Project/Releases.svelte index 9bc08a0..31a86bf 100644 --- a/sveltejs/src/Project/Releases.svelte +++ b/sveltejs/src/Project/Releases.svelte @@ -9,7 +9,7 @@ async function fetchReleases(project_name) { let releases; - const response = await fetch("/drupal-org-proxy/project/releases?project=" + project_name); + const response = await fetch(drupalSettings.project_browser.origin_url + "/drupal-org-proxy/project/releases?project=" + project_name); if (response.ok) { releases = await response.json(); releases = releases.filter(filterCompatibleReleases); diff --git a/sveltejs/src/Project/SecurityCoverage.svelte b/sveltejs/src/Project/SecurityCoverage.svelte index 41057b8..5191d9f 100644 --- a/sveltejs/src/Project/SecurityCoverage.svelte +++ b/sveltejs/src/Project/SecurityCoverage.svelte @@ -15,5 +15,5 @@ } {#if coverage === 'covered'} - + {/if} diff --git a/sveltejs/src/ProjectBrowser.svelte b/sveltejs/src/ProjectBrowser.svelte index 6885cdf..28ecfb3 100644 --- a/sveltejs/src/ProjectBrowser.svelte +++ b/sveltejs/src/ProjectBrowser.svelte @@ -30,7 +30,7 @@ loading = true; rowsCount = 0; // Additional query parameters are hardcoded in DrupalOrgProxyController::getAll(); - let url = "/drupal-org-proxy/project?page=" + _page + "&limit=" + pageSize + "&tab=" + tab; + let url = drupalSettings.project_browser.origin_url + "/drupal-org-proxy/project?page=" + _page + "&limit=" + pageSize + "&tab=" + tab; // "&sort=" + sortKeys + "&direction=" + sortDirection + if (text) { url = url + "&title=" + text;