From 2e3b44ef9b5ba55f815211b7f4292f25a658c460 Mon Sep 17 00:00:00 2001 From: Noah Date: Sat, 27 May 2023 16:19:32 +0100 Subject: Add files via upload --- build/bundle.css | 2 + build/bundle.js | 226 ++++++++++++++++++++++++++++++++++++++++++++++++++++ build/bundle.js.map | 1 + 3 files changed, 229 insertions(+) create mode 100644 build/bundle.css create mode 100644 build/bundle.js create mode 100644 build/bundle.js.map diff --git a/build/bundle.css b/build/bundle.css new file mode 100644 index 0000000..9e9f0b3 --- /dev/null +++ b/build/bundle.css @@ -0,0 +1,2 @@ +.drawer-container.svelte-mrhvww{position:relative;display:flex;border:1px solid + var(--mdc-theme-text-hint-on-background, rgba(0, 0, 0, 0.1));overflow:hidden;z-index:0}.svelte-mrhvww .app-content{flex:auto;overflow:auto;position:relative;flex-grow:1}.main-content.svelte-mrhvww{overflow:auto;padding:16px;height:100%;box-sizing:border-box} diff --git a/build/bundle.js b/build/bundle.js new file mode 100644 index 0000000..4e49f20 --- /dev/null +++ b/build/bundle.js @@ -0,0 +1,226 @@ +var app=function(){"use strict";function e(){}function t(e,t){for(const n in t)e[n]=t[n];return e}function n(e){return e()}function i(){return Object.create(null)}function s(e){e.forEach(n)}function r(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let o;function c(e,t){return o||(o=document.createElement("a")),o.href=t,e===o.href}function l(t,n,i){t.$$.on_destroy.push(function(t,...n){if(null==t)return e;const i=t.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}(n,i))}function d(e,t,n,i){if(e){const s=u(e,t,n,i);return e[0](s)}}function u(e,n,i,s){return e[1]&&s?t(i.ctx.slice(),e[1](s(n))):i.ctx}function p(e,t,n,i){if(e[2]&&i){const s=e[2](i(n));if(void 0===t.dirty)return s;if("object"==typeof s){const e=[],n=Math.max(t.dirty.length,s.length);for(let i=0;i32){const t=[],n=e.ctx.length/32;for(let e=0;ee.removeEventListener(t,n,i)}function T(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}"WeakMap"in("undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global)&&new WeakMap;const L=["width","height"];function O(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const i in t)null==t[i]?e.removeAttribute(i):"style"===i?e.style.cssText=t[i]:"__value"===i?e.value=e[i]=t[i]:n[i]&&n[i].set&&-1===L.indexOf(i)?e[i]=t[i]:T(e,i,t[i])}function w(e,t){Object.keys(t).forEach((n=>{!function(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:T(e,t,n)}(e,n,t[n])}))}function F(e){return/-/.test(e)?w:O}function R(e,t){t=""+t,e.data!==t&&(e.data=t)}function D(e,t,n,i){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function k(e,t){return new e(t)}let M;function N(e){M=e}function U(){if(!M)throw new Error("Function called outside component initialization");return M}function P(e){U().$$.on_mount.push(e)}function B(e){U().$$.on_destroy.push(e)}function H(e,t){return U().$$.context.set(e,t),t}function V(e){return U().$$.context.get(e)}new Map;const j=[],G=[];let z=[];const X=[],W=Promise.resolve();let q=!1;function K(e){z.push(e)}const Y=new Set;let Z=0;function Q(){if(0!==Z)return;const e=M;do{try{for(;Z{ee.delete(e),i&&(n&&e.d(1),i())})),e.o(t)}else i&&i()}function ae(e,t){const n={},i={},s={$$scope:1};let r=e.length;for(;r--;){const a=e[r],o=t[r];if(o){for(const e in a)e in o||(i[e]=1);for(const e in o)s[e]||(n[e]=o[e],s[e]=1);e[r]=o}else for(const e in a)s[e]=1}for(const e in i)e in n||(n[e]=void 0);return n}function oe(e){return"object"==typeof e&&null!==e?e:{}}function ce(e){e&&e.c()}function le(e,t,i,a){const{fragment:o,after_update:c}=e.$$;o&&o.m(t,i),a||K((()=>{const t=e.$$.on_mount.map(n).filter(r);e.$$.on_destroy?e.$$.on_destroy.push(...t):s(t),e.$$.on_mount=[]})),c.forEach(K)}function de(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];z.forEach((i=>-1===e.indexOf(i)?t.push(i):n.push(i))),n.forEach((e=>e())),z=t}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ue(e,t){-1===e.$$.dirty[0]&&(j.push(e),q||(q=!0,W.then(Q)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const s=i.length?i[0]:n;return p.ctx&&o(p.ctx[e],p.ctx[e]=s)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](s),f&&ue(t,e)),n})):[],p.update(),f=!0,s(p.before_update),p.fragment=!!a&&a(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(y)}else p.fragment&&p.fragment.c();n.intro&&se(t.$$.fragment),le(t,n.target,n.anchor,n.customElement),Q()}N(u)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]);class fe{$destroy(){de(this,1),this.$destroy=e}$on(t,n){if(!r(n))return e;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const e=i.indexOf(n);-1!==e&&i.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)}}var me=function(e,t){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},me(e,t)};function he(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ge=function(){return ge=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ve(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,s,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){s={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return a} +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var be=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}(),$e="mdc-dom-focus-sentinel",ye=function(){function e(e,t){void 0===t&&(t={}),this.root=e,this.options=t,this.elFocusedBeforeTrapFocus=null}return e.prototype.trapFocus=function(){var e=this.getFocusableElements(this.root);if(0===e.length)throw new Error("FocusTrap: Element must have at least one focusable child.");this.elFocusedBeforeTrapFocus=document.activeElement instanceof HTMLElement?document.activeElement:null,this.wrapTabFocus(this.root),this.options.skipInitialFocus||this.focusInitialElement(e,this.options.initialFocusEl)},e.prototype.releaseFocus=function(){[].slice.call(this.root.querySelectorAll("."+$e)).forEach((function(e){e.parentElement.removeChild(e)})),!this.options.skipRestoreFocus&&this.elFocusedBeforeTrapFocus&&this.elFocusedBeforeTrapFocus.focus()},e.prototype.wrapTabFocus=function(e){var t=this,n=this.createSentinel(),i=this.createSentinel();n.addEventListener("focus",(function(){var n=t.getFocusableElements(e);n.length>0&&n[n.length-1].focus()})),i.addEventListener("focus",(function(){var n=t.getFocusableElements(e);n.length>0&&n[0].focus()})),e.insertBefore(n,e.children[0]),e.appendChild(i)},e.prototype.focusInitialElement=function(e,t){var n=0;t&&(n=Math.max(e.indexOf(t),0)),e[n].focus()},e.prototype.getFocusableElements=function(e){return[].slice.call(e.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter((function(e){var t="true"===e.getAttribute("aria-disabled")||null!=e.getAttribute("disabled")||null!=e.getAttribute("hidden")||"true"===e.getAttribute("aria-hidden"),n=e.tabIndex>=0&&e.getBoundingClientRect().width>0&&!e.classList.contains($e)&&!t,i=!1;if(n){var s=getComputedStyle(e);i="none"===s.display||"hidden"===s.visibility}return n&&!i}))},e.prototype.createSentinel=function(){var e=document.createElement("div");return e.setAttribute("tabindex","0"),e.setAttribute("aria-hidden","true"),e.classList.add($e),e},e}(),xe=Object.freeze({__proto__:null,FocusTrap:ye}); +/** + * @license + * Copyright 2020 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */function Ae(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}var Ee,_e,Se=Object.freeze({__proto__:null,closest: +/** + * @license + * Copyright 2018 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +function(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(Ae(n,t))return n;n=n.parentElement}return null},estimateScrollWidth:function(e){var t=e;if(null!==t.offsetParent)return t.scrollWidth;var n=t.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var i=n.scrollWidth;return document.documentElement.removeChild(n),i},matches:Ae}),Ce={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"}; +/** + * @license + * Copyright 2018 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */(Ee={})[""+Ce.LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",Ee[""+Ce.LIST_ITEM_CLASS]="mdc-list-item",Ee[""+Ce.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",Ee[""+Ce.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",Ee[""+Ce.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",Ee[""+Ce.ROOT]="mdc-list";var Te=((_e={})[""+Ce.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",_e[""+Ce.LIST_ITEM_CLASS]="mdc-deprecated-list-item",_e[""+Ce.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",_e[""+Ce.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",_e[""+Ce.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",_e[""+Ce.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",_e[""+Ce.ROOT]="mdc-deprecated-list",_e),Le={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+Ce.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+Ce.LIST_ITEM_CLASS+" a,\n ."+Te[Ce.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+Te[Ce.LIST_ITEM_CLASS]+" a\n ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n ."+Ce.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+Ce.LIST_ITEM_CLASS+" a,\n ."+Ce.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+Ce.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled),\n .'+Te[Ce.LIST_ITEM_CLASS]+" button:not(:disabled),\n ."+Te[Ce.LIST_ITEM_CLASS]+" a,\n ."+Te[Ce.LIST_ITEM_CLASS]+' input[type="radio"]:not(:disabled),\n .'+Te[Ce.LIST_ITEM_CLASS]+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},Oe={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},we={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},Fe=new Set;Fe.add(we.BACKSPACE),Fe.add(we.ENTER),Fe.add(we.SPACEBAR),Fe.add(we.PAGE_UP),Fe.add(we.PAGE_DOWN),Fe.add(we.END),Fe.add(we.HOME),Fe.add(we.ARROW_LEFT),Fe.add(we.ARROW_UP),Fe.add(we.ARROW_RIGHT),Fe.add(we.ARROW_DOWN),Fe.add(we.DELETE),Fe.add(we.ESCAPE),Fe.add(we.TAB);var Re=8,De=13,ke=32,Me=33,Ne=34,Ue=35,Pe=36,Be=37,He=38,Ve=39,je=40,Ge=46,ze=27,Xe=9,We=new Map;We.set(Re,we.BACKSPACE),We.set(De,we.ENTER),We.set(ke,we.SPACEBAR),We.set(Me,we.PAGE_UP),We.set(Ne,we.PAGE_DOWN),We.set(Ue,we.END),We.set(Pe,we.HOME),We.set(Be,we.ARROW_LEFT),We.set(He,we.ARROW_UP),We.set(Ve,we.ARROW_RIGHT),We.set(je,we.ARROW_DOWN),We.set(Ge,we.DELETE),We.set(ze,we.ESCAPE),We.set(Xe,we.TAB);var qe=new Set;function Ke(e){var t=e.key;if(Fe.has(t))return t;var n=We.get(e.keyCode);return n||we.UNKNOWN} +/** + * @license + * Copyright 2020 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */qe.add(we.PAGE_UP),qe.add(we.PAGE_DOWN),qe.add(we.END),qe.add(we.HOME),qe.add(we.ARROW_LEFT),qe.add(we.ARROW_UP),qe.add(we.ARROW_RIGHT),qe.add(we.ARROW_DOWN);var Ye=["input","button","textarea","select"],Ze=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase();-1===Ye.indexOf(n)&&e.preventDefault()}};function Qe(e,t){var n,i=e.nextChar,s=e.focusItemAtIndex,r=e.sortedIndexByFirstChar,a=e.focusedItemIndex,o=e.skipFocus,c=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout((function(){et(t)}),Oe.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+i,n=1===t.typeaheadBuffer.length?function(e,t,n,i){var s=i.typeaheadBuffer[0],r=e.get(s);if(!r)return-1;if(s===i.currentFirstChar&&r[i.sortedIndexCursor].index===t){i.sortedIndexCursor=(i.sortedIndexCursor+1)%r.length;var a=r[i.sortedIndexCursor].index;if(!n(a))return a}i.currentFirstChar=s;var o,c=-1;for(o=0;ot&&!n(r[o].index)){c=o;break}if(-1!==c)return i.sortedIndexCursor=c,r[i.sortedIndexCursor].index;return-1}(r,a,c,t):function(e,t,n){var i=n.typeaheadBuffer[0],s=e.get(i);if(!s)return-1;var r=s[n.sortedIndexCursor];if(0===r.text.lastIndexOf(n.typeaheadBuffer,0)&&!t(r.index))return r.index;var a=(n.sortedIndexCursor+1)%s.length,o=-1;for(;a!==n.sortedIndexCursor;){var c=s[a],l=0===c.text.lastIndexOf(n.typeaheadBuffer,0),d=!t(c.index);if(l&&d){o=a;break}a=(a+1)%s.length}if(-1!==o)return n.sortedIndexCursor=o,s[n.sortedIndexCursor].index;return-1}(r,c,t),-1===n||o||s(n),n}function Je(e){return e.typeaheadBuffer.length>0}function et(e){e.typeaheadBuffer=""}function tt(e,t){var n=e.event,i=e.isTargetListItem,s=e.focusedItemIndex,r=e.focusItemAtIndex,a=e.sortedIndexByFirstChar,o=e.isItemAtIndexDisabled,c="ArrowLeft"===Ke(n),l="ArrowUp"===Ke(n),d="ArrowRight"===Ke(n),u="ArrowDown"===Ke(n),p="Home"===Ke(n),f="End"===Ke(n),m="Enter"===Ke(n),h="Spacebar"===Ke(n);return n.altKey||n.ctrlKey||n.metaKey||c||l||d||u||p||f||m?-1:h||1!==n.key.length?h?(i&&Ze(n),i&&Je(t)?Qe({focusItemAtIndex:r,focusedItemIndex:s,nextChar:" ",sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:o},t):-1):-1:(Ze(n),Qe({focusItemAtIndex:r,focusedItemIndex:s,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:o},t))} +/** + * @license + * Copyright 2018 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */var nt=["Alt","Control","Meta","Shift"];function it(e){var t=new Set(e?nt.filter((function(t){return e.getModifierState(t)})):[]);return function(e){return e.every((function(e){return t.has(e)}))&&e.length===t.size}}var st=function(e){function t(n){var i=e.call(this,ge(ge({},t.defaultAdapter),n))||this;return i.wrapFocus=!1,i.isVertical=!0,i.isSingleSelectionList=!1,i.areDisabledItemsFocusable=!0,i.selectedIndex=Oe.UNSET_INDEX,i.focusedItemIndex=Oe.UNSET_INDEX,i.useActivatedClass=!1,i.useSelectedAttr=!1,i.ariaCurrentAttrValue=null,i.isCheckboxList=!1,i.isRadioList=!1,i.lastSelectedIndex=null,i.hasTypeahead=!1,i.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},i.sortedIndexByFirstChar=new Map,i}return he(t,e),Object.defineProperty(t,"strings",{get:function(){return Le},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return Ce},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return Oe},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},notifySelectionChange:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!1,configurable:!0}),t.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},t.prototype.getFocusedItemIndex=function(){return this.focusedItemIndex},t.prototype.setWrapFocus=function(e){this.wrapFocus=e},t.prototype.setVerticalOrientation=function(e){this.isVertical=e},t.prototype.setSingleSelection=function(e){this.isSingleSelectionList=e,e&&(this.maybeInitializeSingleSelection(),this.selectedIndex=this.getSelectedIndexFromDOM())},t.prototype.setDisabledItemsFocusable=function(e){this.areDisabledItemsFocusable=e},t.prototype.maybeInitializeSingleSelection=function(){var e=this.getSelectedIndexFromDOM();e!==Oe.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(e,Ce.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=e)},t.prototype.getSelectedIndexFromDOM=function(){for(var e=Oe.UNSET_INDEX,t=this.adapter.getListItemCount(),n=0;n=0&&(this.focusedItemIndex=e,this.adapter.setAttributeForElementIndex(e,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(e,"0"))},t.prototype.handleFocusOut=function(e){var t=this;e>=0&&(this.adapter.setAttributeForElementIndex(e,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(e,"-1")),setTimeout((function(){t.adapter.isFocusInsideList()||t.setTabindexToFirstSelectedOrFocusedItem()}),0)},t.prototype.isIndexDisabled=function(e){return this.adapter.listItemAtIndexHasClass(e,Ce.LIST_ITEM_DISABLED_CLASS)},t.prototype.handleKeydown=function(e,t,n){var i,s=this,r="ArrowLeft"===Ke(e),a="ArrowUp"===Ke(e),o="ArrowRight"===Ke(e),c="ArrowDown"===Ke(e),l="Home"===Ke(e),d="End"===Ke(e),u="Enter"===Ke(e),p="Spacebar"===Ke(e),f=this.isVertical&&c||!this.isVertical&&o,m=this.isVertical&&a||!this.isVertical&&r,h="A"===e.key||"a"===e.key,g=it(e);if(this.adapter.isRootFocused()){if((m||d)&&g([]))e.preventDefault(),this.focusLastElement();else if((f||l)&&g([]))e.preventDefault(),this.focusFirstElement();else if(m&&g(["Shift"])&&this.isCheckboxList){e.preventDefault(),-1!==(v=this.focusLastElement())&&this.setSelectedIndexOnAction(v,!1)}else if(f&&g(["Shift"])&&this.isCheckboxList){e.preventDefault(),-1!==(v=this.focusFirstElement())&&this.setSelectedIndexOnAction(v,!1)}this.hasTypeahead&&tt({event:e,focusItemAtIndex:function(e){s.focusItemAtIndex(e)},focusedItemIndex:-1,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return s.isIndexDisabled(e)}},this.typeaheadState)}else{var I=this.adapter.getFocusedElementIndex();if(!(-1===I&&(I=n)<0)){if(f&&g([]))Ze(e),this.focusNextElement(I);else if(m&&g([]))Ze(e),this.focusPrevElement(I);else if(f&&g(["Shift"])&&this.isCheckboxList){Ze(e),-1!==(v=this.focusNextElement(I))&&this.setSelectedIndexOnAction(v,!1)}else if(m&&g(["Shift"])&&this.isCheckboxList){var v;Ze(e),-1!==(v=this.focusPrevElement(I))&&this.setSelectedIndexOnAction(v,!1)}else if(l&&g([]))Ze(e),this.focusFirstElement();else if(d&&g([]))Ze(e),this.focusLastElement();else if(l&&g(["Control","Shift"])&&this.isCheckboxList){if(Ze(e),this.isIndexDisabled(I))return;this.focusFirstElement(),this.toggleCheckboxRange(0,I,I)}else if(d&&g(["Control","Shift"])&&this.isCheckboxList){if(Ze(e),this.isIndexDisabled(I))return;this.focusLastElement(),this.toggleCheckboxRange(I,this.adapter.getListItemCount()-1,I)}else if(h&&g(["Control"])&&this.isCheckboxList)e.preventDefault(),this.checkboxListToggleAll(this.selectedIndex===Oe.UNSET_INDEX?[]:this.selectedIndex,!0);else if((u||p)&&g([])){if(t){if((b=e.target)&&"A"===b.tagName&&u)return;if(Ze(e),this.isIndexDisabled(I))return;this.isTypeaheadInProgress()||(this.isSelectableList()&&this.setSelectedIndexOnAction(I,!1),this.adapter.notifyAction(I))}}else if((u||p)&&g(["Shift"])&&this.isCheckboxList){var b;if((b=e.target)&&"A"===b.tagName&&u)return;if(Ze(e),this.isIndexDisabled(I))return;this.isTypeaheadInProgress()||(this.toggleCheckboxRange(null!==(i=this.lastSelectedIndex)&&void 0!==i?i:I,I,I),this.adapter.notifyAction(I))}if(this.hasTypeahead)tt({event:e,focusItemAtIndex:function(e){s.focusItemAtIndex(e)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return s.isIndexDisabled(e)}},this.typeaheadState)}}},t.prototype.handleClick=function(e,t,n){var i,s=it(n);e!==Oe.UNSET_INDEX&&(this.isIndexDisabled(e)||(s([])?(this.isSelectableList()&&this.setSelectedIndexOnAction(e,t),this.adapter.notifyAction(e)):this.isCheckboxList&&s(["Shift"])&&(this.toggleCheckboxRange(null!==(i=this.lastSelectedIndex)&&void 0!==i?i:e,e,e),this.adapter.notifyAction(e))))},t.prototype.focusNextElement=function(e){var t=this.adapter.getListItemCount(),n=e,i=null;do{if(++n>=t){if(!this.wrapFocus)return e;n=0}if(n===i)return-1;i=null!=i?i:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},t.prototype.focusPrevElement=function(e){var t=this.adapter.getListItemCount(),n=e,i=null;do{if(--n<0){if(!this.wrapFocus)return e;n=t-1}if(n===i)return-1;i=null!=i?i:n}while(!this.areDisabledItemsFocusable&&this.isIndexDisabled(n));return this.focusItemAtIndex(n),n},t.prototype.focusFirstElement=function(){return this.focusNextElement(-1)},t.prototype.focusLastElement=function(){return this.focusPrevElement(this.adapter.getListItemCount())},t.prototype.focusInitialElement=function(){var e=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(e),e},t.prototype.setEnabled=function(e,t){this.isIndexValid(e,!1)&&(t?(this.adapter.removeClassForElementIndex(e,Ce.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,Le.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,Ce.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,Le.ARIA_DISABLED,"true")))},t.prototype.setSingleSelectionAtIndex=function(e,t){if(void 0===t&&(t={}),this.selectedIndex!==e||t.forceUpdate){var n=Ce.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(n=Ce.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==Oe.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,n),this.setAriaForSingleSelectionAtIndex(e),this.setTabindexAtIndex(e),e!==Oe.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,n),this.selectedIndex=e,t.isUserInteraction&&!t.forceUpdate&&this.adapter.notifySelectionChange([e])}},t.prototype.setAriaForSingleSelectionAtIndex=function(e){this.selectedIndex===Oe.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(e,Le.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue,n=t?Le.ARIA_CURRENT:Le.ARIA_SELECTED;if(this.selectedIndex!==Oe.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),e!==Oe.UNSET_INDEX){var i=t?this.ariaCurrentAttrValue:"true";this.adapter.setAttributeForElementIndex(e,n,i)}},t.prototype.getSelectionAttribute=function(){return this.useSelectedAttr?Le.ARIA_SELECTED:Le.ARIA_CHECKED},t.prototype.setRadioAtIndex=function(e,t){void 0===t&&(t={});var n=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),(this.selectedIndex!==e||t.forceUpdate)&&(this.selectedIndex!==Oe.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),this.adapter.setAttributeForElementIndex(e,n,"true"),this.selectedIndex=e,t.isUserInteraction&&!t.forceUpdate&&this.adapter.notifySelectionChange([e]))},t.prototype.setCheckboxAtIndex=function(e,t){void 0===t&&(t={});for(var n=this.selectedIndex,i=t.isUserInteraction?new Set(n===Oe.UNSET_INDEX?[]:n):null,s=this.getSelectionAttribute(),r=[],a=0;a=0;c!==o&&r.push(a),this.adapter.setCheckedCheckboxOrRadioAtIndex(a,c),this.adapter.setAttributeForElementIndex(a,s,c?"true":"false")}this.selectedIndex=e,t.isUserInteraction&&r.length&&this.adapter.notifySelectionChange(r)},t.prototype.toggleCheckboxRange=function(e,t,n){this.lastSelectedIndex=n;for(var i=new Set(this.selectedIndex===Oe.UNSET_INDEX?[]:this.selectedIndex),s=!(null==i?void 0:i.has(n)),r=ve([e,t].sort(),2),a=r[0],o=r[1],c=this.getSelectionAttribute(),l=[],d=a;d<=o;d++){if(!this.isIndexDisabled(d))s!==i.has(d)&&(l.push(d),this.adapter.setCheckedCheckboxOrRadioAtIndex(d,s),this.adapter.setAttributeForElementIndex(d,c,""+s),s?i.add(d):i.delete(d))}l.length&&(this.selectedIndex=function(e,t,n){if(n||2===arguments.length)for(var i,s=0,r=t.length;s=0&&this.focusedItemIndex!==e&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex instanceof Array||this.selectedIndex===e||this.adapter.setAttributeForElementIndex(this.selectedIndex,"tabindex","-1"),e!==Oe.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(e,"tabindex","0")},t.prototype.isSelectableList=function(){return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},t.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var e=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(e)},t.prototype.getFirstSelectedOrFocusedItemIndex=function(){return this.isSelectableList()?"number"==typeof this.selectedIndex&&this.selectedIndex!==Oe.UNSET_INDEX?this.selectedIndex:this.selectedIndex instanceof Array&&this.selectedIndex.length>0?this.selectedIndex.reduce((function(e,t){return Math.min(e,t)})):0:Math.max(this.focusedItemIndex,0)},t.prototype.isIndexValid=function(e,t){var n=this;if(void 0===t&&(t=!0),e instanceof Array){if(!this.isCheckboxList&&t)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===e.length||e.some((function(e){return n.isIndexInRange(e)}))}if("number"==typeof e){if(this.isCheckboxList&&t)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return this.isIndexInRange(e)||this.isSingleSelectionList&&e===Oe.UNSET_INDEX}return!1},t.prototype.isIndexInRange=function(e){var t=this.adapter.getListItemCount();return e>=0&&e-1)&&i.push(s);this.setCheckboxAtIndex(i,{isUserInteraction:t})}},t.prototype.typeaheadMatchItem=function(e,t,n){var i=this;return void 0===n&&(n=!1),Qe({focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:t||this.focusedItemIndex,nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(e){return i.isIndexDisabled(e)}},this.typeaheadState)},t.prototype.typeaheadInitSortedIndex=function(){return function(e,t){for(var n=new Map,i=0;i""!==e&&t)).map((([e])=>e)).join(" ")}function ut(e,t,n,i={bubbles:!0},s=!1){if("undefined"==typeof Event)throw new Error("Event not defined.");if(!e)throw new Error("Tried to dipatch event without element.");const r=new CustomEvent(t,Object.assign(Object.assign({},i),{detail:n}));if(null==e||e.dispatchEvent(r),s&&t.startsWith("SMUI")){const s=new CustomEvent(t.replace(/^SMUI/g,(()=>"MDC")),Object.assign(Object.assign({},i),{detail:n}));null==e||e.dispatchEvent(s),s.defaultPrevented&&r.preventDefault()}return r}const pt=/^[a-z]+(?::(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$/,ft=/^[^$]+(?:\$(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$/;function mt(e){let t,n=[];function i(t){!function(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach((e=>e.call(this,t)))}(e,t)}return e.$on=(e,i)=>{let s=e,r=()=>{};t?r=t(s,i):n.push([s,i]);return s.match(pt)&&console&&console.warn('Event modifiers in SMUI now use "$" instead of ":", so that all events can be bound with modifiers. Please update your event binding: ',s),()=>{r()}},e=>{const s=[],r={};t=(t,n)=>{let a=t,o=n,c=!1;const l=a.match(pt),d=a.match(ft),u=l||d;if(a.match(/^SMUI:\w+:/)){const e=a.split(":");let t="";for(let n=0;ne.slice(0,1).toUpperCase()+e.slice(1))).join("");console.warn(`The event ${a.split("$")[0]} has been renamed to ${t.split("$")[0]}.`),a=t}if(u){const e=a.split(l?":":"$");a=e[0];const t=e.slice(1).reduce(((e,t)=>(e[t]=!0,e)),{});t.passive&&(c=c||{},c.passive=!0),t.nonpassive&&(c=c||{},c.passive=!1),t.capture&&(c=c||{},c.capture=!0),t.once&&(c=c||{},c.once=!0),t.preventDefault&&(p=o,o=function(e){return e.preventDefault(),p.call(this,e)}),t.stopPropagation&&(o=function(e){return function(t){return t.stopPropagation(),e.call(this,t)}}(o))}var p;const f=C(e,a,o,c),m=()=>{f();const e=s.indexOf(m);e>-1&&s.splice(e,1)};return s.push(m),a in r||(r[a]=C(e,a,i)),m};for(let e=0;e{for(let e=0;e1?n.push(r(e,s[1])):n.push(r(e))}return{update(e){if((e&&e.length||0)!=n.length)throw new Error("You must not change the length of an actions array.");if(e)for(let t=0;t1?i.update(n[1]):i.update()}}},destroy(){for(let e=0;ee.classList.contains(t),saveFocus:()=>y=document.activeElement,restoreFocus:()=>{y&&"focus"in y&&d.contains(document.activeElement)&&y.focus()},focusActiveNavigationItem:()=>{const e=d.querySelector(".mdc-list-item--activated,.mdc-deprecated-list-item--activated");e&&e.focus()},notifyClose:()=>{i(9,v=!1),ut(d,"SMUIDrawer:closed",void 0,void 0,!0)},notifyOpen:()=>{i(9,v=!0),ut(d,"SMUIDrawer:opened",void 0,void 0,!0)},trapFocus:()=>p.trapFocus(),releaseFocus:()=>p.releaseFocus()}):void 0}function _(e){return e in $?$[e]:L().classList.contains(e)}function S(e){$[e]||i(6,$[e]=!0,$)}function C(e){e in $&&!$[e]||i(6,$[e]=!1,$)}function T(){u&&"handleScrimClick"in u&&u.handleScrimClick()}function L(){return d}return P((()=>{p=new c(d,{skipInitialFocus:!0}),i(4,u=E()),u&&u.init()})),B((()=>{u&&u.destroy(),x&&x.removeEventListener("SMUIDrawerScrim:click",T)})),e.$$set=e=>{n=t(t({},n),h(e)),i(8,r=g(n,s)),"use"in e&&i(0,f=e.use),"class"in e&&i(1,m=e.class),"variant"in e&&i(2,I=e.variant),"open"in e&&i(9,v=e.open),"fixed"in e&&i(3,b=e.fixed),"$$scope"in e&&i(14,o=e.$$scope)},e.$$.update=()=>{8212&e.$$.dirty&&A!==I&&(i(13,A=I),u&&u.destroy(),i(6,$={}),i(4,u=E()),u&&u.init()),528&e.$$.dirty&&u&&u.isOpen()!==v&&(v?u.open():u.close())},[f,m,I,b,u,d,$,l,r,v,function(e){i(9,v=e)},function(){return v},L,A,o,a,function(e){G[e?"unshift":"push"]((()=>{d=e,i(5,d)}))}]}class vt extends fe{constructor(e){super(),pe(this,e,It,gt,a,{use:0,class:1,variant:2,open:9,fixed:3,setOpen:10,isOpen:11,getElement:12})}get setOpen(){return this.$$.ctx[10]}get isOpen(){return this.$$.ctx[11]}get getElement(){return this.$$.ctx[12]}}function bt(e){let t,n,i=e[1],s=e[1]&&yt(e);return{c(){s&&s.c(),t=S()},m(e,i){s&&s.m(e,i),$(e,t,i),n=!0},p(e,n){e[1]?i?a(i,e[1])?(s.d(1),s=yt(e),i=e[1],s.c(),s.m(t.parentNode,t)):s.p(e,n):(s=yt(e),i=e[1],s.c(),s.m(t.parentNode,t)):i&&(s.d(1),s=null,i=e[1])},i(e){n||(se(s),n=!0)},o(e){re(s),n=!1},d(e){e&&y(t),s&&s.d(e)}}}function $t(t){let n,i=t[1],s=t[1]&&xt(t);return{c(){s&&s.c(),n=S()},m(e,t){s&&s.m(e,t),$(e,n,t)},p(e,t){e[1]?i?a(i,e[1])?(s.d(1),s=xt(e),i=e[1],s.c(),s.m(n.parentNode,n)):s.p(e,t):(s=xt(e),i=e[1],s.c(),s.m(n.parentNode,n)):i&&(s.d(1),s=null,i=e[1])},i:e,o:e,d(e){e&&y(n),s&&s.d(e)}}}function yt(e){let n,i,a,o,c;const l=e[8].default,u=d(l,e,e[7],null);let h=[e[5]],g={};for(let e=0;e{a[c]=null})),ie(),n=a[t],n?n.p(e,s):(n=a[t]=r[t](e),n.c()),se(n,1),n.m(i.parentNode,i))},i(e){s||(se(n),s=!0)},o(e){re(n),s=!1},d(e){a[t].d(e),e&&y(i)}}}function Et(e,n,i){let s;const r=["use","tag","getElement"];let a=g(n,r),{$$slots:o={},$$scope:c}=n,{use:l=[]}=n,{tag:d}=n;const u=mt(U());let p;return e.$$set=e=>{n=t(t({},n),h(e)),i(5,a=g(n,r)),"use"in e&&i(0,l=e.use),"tag"in e&&i(1,d=e.tag),"$$scope"in e&&i(7,c=e.$$scope)},e.$$.update=()=>{2&e.$$.dirty&&i(3,s=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].indexOf(d)>-1)},[l,d,p,s,u,a,function(){return p},c,o,function(e){G[e?"unshift":"push"]((()=>{p=e,i(2,p)}))},function(e){G[e?"unshift":"push"]((()=>{p=e,i(2,p)}))}]}class _t extends fe{constructor(e){super(),pe(this,e,Et,At,a,{use:0,tag:1,getElement:6})}get getElement(){return this.$$.ctx[6]}}const St=[];function Ct(t,n=e){let i;const s=new Set;function r(e){if(a(t,e)&&(t=e,i)){const e=!St.length;for(const e of s)e[1](),St.push(e,t);if(e){for(let e=0;e{s.delete(c),0===s.size&&i&&(i(),i=null)}}}}function Tt(e){let t;const n=e[11].default,i=d(n,e,e[13],null);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,s){i&&i.p&&(!t||8192&s)&&f(i,n,e,e[13],t?p(n,e[13],s,null):m(e[13]),null)},i(e){t||(se(i,e),t=!0)},o(e){re(i,e),t=!1},d(e){i&&i.d(e)}}}function Lt(e){let n,i,s;const r=[{tag:e[3]},{use:[e[8],...e[0]]},{class:dt({[e[1]]:!0,[e[6]]:!0,...e[5]})},e[7],e[9]];var a=e[2];function o(e){let n={$$slots:{default:[Tt]},$$scope:{ctx:e}};for(let e=0;e{de(e,1)})),ie()}a?(n=k(a,o(e)),e[12](n),ce(n.$$.fragment),se(n.$$.fragment,1),le(n,i.parentNode,i)):n=null}else a&&n.$set(s)},i(e){s||(n&&se(n.$$.fragment,e),s=!0)},o(e){n&&re(n.$$.fragment,e),s=!1},d(t){e[12](null),t&&y(i),n&&de(n,t)}}}const Ot={component:_t,tag:"div",class:"",classMap:{},contexts:{},props:{}};function wt(e,n,i){const s=["use","class","component","tag","getElement"];let r,a=g(n,s),{$$slots:o={},$$scope:c}=n,{use:l=[]}=n,{class:d=""}=n;const u=Ot.class,p={},f=[],m=Ot.contexts,I=Ot.props;let{component:v=Ot.component}=n,{tag:b=(v===_t?Ot.tag:void 0)}=n;Object.entries(Ot.classMap).forEach((([e,t])=>{const n=V(t);n&&"subscribe"in n&&f.push(n.subscribe((t=>{i(5,p[e]=t,p)})))}));const $=mt(U());for(let e in m)m.hasOwnProperty(e)&&H(e,m[e]);return B((()=>{for(const e of f)e()})),e.$$set=e=>{n=t(t({},n),h(e)),i(9,a=g(n,s)),"use"in e&&i(0,l=e.use),"class"in e&&i(1,d=e.class),"component"in e&&i(2,v=e.component),"tag"in e&&i(3,b=e.tag),"$$scope"in e&&i(13,c=e.$$scope)},[l,d,v,b,r,p,u,I,$,a,function(){return r.getElement()},o,function(e){G[e?"unshift":"push"]((()=>{r=e,i(4,r)}))},c]}class Ft extends fe{constructor(e){super(),pe(this,e,wt,Lt,a,{use:0,class:1,component:2,tag:3,getElement:10})}get getElement(){return this.$$.ctx[10]}}const Rt=Object.assign({},Ot);function Dt(e){return new Proxy(Ft,{construct:function(t,n){return Object.assign(Ot,Rt,e),new t(...n)},get:function(t,n){return Object.assign(Ot,Rt,e),t[n]}})}var kt,Mt=Dt({class:"mdc-drawer-app-content",tag:"div"}),Nt=Dt({class:"mdc-drawer__content",tag:"div"});Dt({class:"mdc-drawer__header",tag:"div"}),Dt({class:"mdc-drawer__title",tag:"h1"}),Dt({class:"mdc-drawer__subtitle",tag:"h2"}); +/** + * @license + * Copyright 2016 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ +var Ut={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},Pt={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},Bt={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},Ht=["touchstart","pointerdown","mousedown","keydown"],Vt=["touchend","pointerup","mouseup","contextmenu"],jt=[],Gt=function(e){function t(n){var i=e.call(this,ge(ge({},t.defaultAdapter),n))||this;return i.activationAnimationHasEnded=!1,i.activationTimer=0,i.fgDeactivationRemovalTimer=0,i.fgScale="0",i.frame={width:0,height:0},i.initialSize=0,i.layoutFrame=0,i.maxRadius=0,i.unboundedCoords={left:0,top:0},i.activationState=i.defaultActivationState(),i.activationTimerCallback=function(){i.activationAnimationHasEnded=!0,i.runDeactivationUXLogicIfReady()},i.activateHandler=function(e){i.activateImpl(e)},i.deactivateHandler=function(){i.deactivateImpl()},i.focusHandler=function(){i.handleFocus()},i.blurHandler=function(){i.handleBlur()},i.resizeHandler=function(){i.layout()},i}return he(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return Ut},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return Pt},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return Bt},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this,n=this.supportsPressRipple();if(this.registerRootHandlers(n),n){var i=t.cssClasses,s=i.ROOT,r=i.UNBOUNDED;requestAnimationFrame((function(){e.adapter.addClass(s),e.adapter.isUnbounded()&&(e.adapter.addClass(r),e.layoutInternal())}))}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var n=t.cssClasses,i=n.ROOT,s=n.UNBOUNDED;requestAnimationFrame((function(){e.adapter.removeClass(i),e.adapter.removeClass(s),e.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},t.prototype.activate=function(e){this.activateImpl(e)},t.prototype.deactivate=function(){this.deactivateImpl()},t.prototype.layout=function(){var e=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){e.layoutInternal(),e.layoutFrame=0}))},t.prototype.setUnbounded=function(e){var n=t.cssClasses.UNBOUNDED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame((function(){return e.adapter.addClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame((function(){return e.adapter.removeClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},t.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers=function(e){var t,n;if(e){try{for(var i=Ie(Ht),s=i.next();!s.done;s=i.next()){var r=s.value;this.adapter.registerInteractionHandler(r,this.activateHandler)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},t.prototype.registerDeactivationHandlers=function(e){var t,n;if("keydown"===e.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var i=Ie(Vt),s=i.next();!s.done;s=i.next()){var r=s.value;this.adapter.registerDocumentInteractionHandler(r,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},t.prototype.deregisterRootHandlers=function(){var e,t;try{for(var n=Ie(Ht),i=n.next();!i.done;i=n.next()){var s=i.value;this.adapter.deregisterInteractionHandler(s,this.activateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},t.prototype.deregisterDeactivationHandlers=function(){var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=Ie(Vt),i=n.next();!i.done;i=n.next()){var s=i.value;this.adapter.deregisterDocumentInteractionHandler(s,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.removeCssVars=function(){var e=this,n=t.strings;Object.keys(n).forEach((function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)}))},t.prototype.activateImpl=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState;if(!n.isActivated){var i=this.previousActivationEvent;if(!(i&&void 0!==e&&i.type!==e.type))n.isActivated=!0,n.isProgrammatic=void 0===e,n.activationEvent=e,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type)),void 0!==e&&jt.length>0&&jt.some((function(e){return t.adapter.containsEventTarget(e)}))?this.resetActivationState():(void 0!==e&&(jt.push(e.target),this.registerDeactivationHandlers(e)),n.wasElementMadeActive=this.checkElementMadeActive(e),n.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){jt=[],n.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(n.wasElementMadeActive=t.checkElementMadeActive(e),n.wasElementMadeActive&&t.animateActivation()),n.wasElementMadeActive||(t.activationState=t.defaultActivationState())})))}}},t.prototype.checkElementMadeActive=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation=function(){var e=this,n=t.strings,i=n.VAR_FG_TRANSLATE_START,s=n.VAR_FG_TRANSLATE_END,r=t.cssClasses,a=r.FG_DEACTIVATION,o=r.FG_ACTIVATION,c=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",d="";if(!this.adapter.isUnbounded()){var u=this.getFgTranslationCoordinates(),p=u.startPoint,f=u.endPoint;l=p.x+"px, "+p.y+"px",d=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(i,l),this.adapter.updateCssVariable(s,d),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(o),this.activationTimer=setTimeout((function(){e.activationTimerCallback()}),c)},t.prototype.getFgTranslationCoordinates=function(){var e,t=this.activationState,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?function(e,t,n){if(!e)return{x:0,y:0};var i,s,r=t.x,a=t.y,o=r+n.left,c=a+n.top;if("touchstart"===e.type){var l=e;i=l.changedTouches[0].pageX-o,s=l.changedTouches[0].pageY-c}else{var d=e;i=d.pageX-o,s=d.pageY-c}return{x:i,y:s}}(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:e.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},t.prototype.runDeactivationUXLogicIfReady=function(){var e=this,n=t.cssClasses.FG_DEACTIVATION,i=this.activationState,s=i.hasDeactivationUXRun,r=i.isActivated;(s||!r)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout((function(){e.adapter.removeClass(n)}),Bt.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState=function(){var e=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return e.previousActivationEvent=void 0}),t.numbers.TAP_DELAY_MS)},t.prototype.deactivateImpl=function(){var e=this,t=this.activationState;if(t.isActivated){var n=ge({},t);t.isProgrammatic?(requestAnimationFrame((function(){e.animateDeactivation(n)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(n),e.resetActivationState()})))}},t.prototype.animateDeactivation=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady()},t.prototype.layoutInternal=function(){var e=this;this.frame=this.adapter.computeBoundingRect();var n=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?n:Math.sqrt(Math.pow(e.frame.width,2)+Math.pow(e.frame.height,2))+t.numbers.PADDING;var i=Math.floor(n*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&i%2!=0?this.initialSize=i-1:this.initialSize=i,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},t.prototype.updateLayoutCssVars=function(){var e=t.strings,n=e.VAR_FG_SIZE,i=e.VAR_LEFT,s=e.VAR_TOP,r=e.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize+"px"),this.adapter.updateCssVariable(r,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(i,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(s,this.unboundedCoords.top+"px"))},t}(be);const{applyPassive:zt}=lt,{matches:Xt}=Se;function Wt(e,{ripple:t=!0,surface:n=!1,unbounded:i=!1,disabled:s=!1,color:r,active:a,rippleElement:o,eventTarget:c,activeTarget:l,addClass:d=(t=>e.classList.add(t)),removeClass:u=(t=>e.classList.remove(t)),addStyle:p=((t,n)=>e.style.setProperty(t,n)),initPromise:f=Promise.resolve()}={}){let m,h,g=V("SMUI:addLayoutListener"),I=a,v=c,b=l;function $(){n?(d("mdc-ripple-surface"),"primary"===r?(d("smui-ripple-surface--primary"),u("smui-ripple-surface--secondary")):"secondary"===r?(u("smui-ripple-surface--primary"),d("smui-ripple-surface--secondary")):(u("smui-ripple-surface--primary"),u("smui-ripple-surface--secondary"))):(u("mdc-ripple-surface"),u("smui-ripple-surface--primary"),u("smui-ripple-surface--secondary")),m&&I!==a&&(I=a,a?m.activate():!1===a&&m.deactivate()),t&&!m?(m=new Gt({addClass:d,browserSupportsCssVars:()=>function(e,t){void 0===t&&(t=!1);var n,i=e.CSS;if("boolean"==typeof kt&&!t)return kt;if(!i||"function"!=typeof i.supports)return!1;var s=i.supports("--css-vars","yes"),r=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=s||r,t||(kt=n),n}(window),computeBoundingRect:()=>(o||e).getBoundingClientRect(),containsEventTarget:t=>e.contains(t),deregisterDocumentInteractionHandler:(e,t)=>document.documentElement.removeEventListener(e,t,zt()),deregisterInteractionHandler:(t,n)=>(c||e).removeEventListener(t,n,zt()),deregisterResizeHandler:e=>window.removeEventListener("resize",e),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset}),isSurfaceActive:()=>null==a?Xt(l||e,":active"):a,isSurfaceDisabled:()=>!!s,isUnbounded:()=>!!i,registerDocumentInteractionHandler:(e,t)=>document.documentElement.addEventListener(e,t,zt()),registerInteractionHandler:(t,n)=>(c||e).addEventListener(t,n,zt()),registerResizeHandler:e=>window.addEventListener("resize",e),removeClass:u,updateCssVariable:p}),f.then((()=>{m&&(m.init(),m.setUnbounded(i))}))):m&&!t&&f.then((()=>{m&&(m.destroy(),m=void 0)})),!m||v===c&&b===l||(v=c,b=l,m.destroy(),requestAnimationFrame((()=>{m&&(m.init(),m.setUnbounded(i))}))),!t&&i&&d("mdc-ripple-upgraded--unbounded")}return $(),g&&(h=g((function(){m&&m.layout()}))),{update(m){({ripple:t,surface:n,unbounded:i,disabled:s,color:r,active:a,rippleElement:o,eventTarget:c,activeTarget:l,addClass:d,removeClass:u,addStyle:p,initPromise:f}=Object.assign({ripple:!0,surface:!1,unbounded:!1,disabled:!1,color:void 0,active:void 0,rippleElement:void 0,eventTarget:void 0,activeTarget:void 0,addClass:t=>e.classList.add(t),removeClass:t=>e.classList.remove(t),addStyle:(t,n)=>e.style.setProperty(t,n),initPromise:Promise.resolve()},m)),$()},destroy(){m&&(m.destroy(),m=void 0,u("mdc-ripple-surface"),u("smui-ripple-surface--primary"),u("smui-ripple-surface--secondary")),h&&h()}}}function qt(e){let t;return{c(){t=A("div"),T(t,"class","mdc-button__touch")},m(e,n){$(e,t,n)},d(e){e&&y(t)}}}function Kt(e){let t,n,i,s;const r=e[28].default,a=d(r,e,e[30],null);let o=e[6]&&qt();return{c(){t=A("div"),n=_(),a&&a.c(),o&&o.c(),i=S(),T(t,"class","mdc-button__ripple")},m(e,r){$(e,t,r),$(e,n,r),a&&a.m(e,r),o&&o.m(e,r),$(e,i,r),s=!0},p(e,t){a&&a.p&&(!s||1073741824&t[0])&&f(a,r,e,e[30],s?p(r,e[30],t,null):m(e[30]),null),e[6]?o||(o=qt(),o.c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},i(e){s||(se(a,e),s=!0)},o(e){re(a,e),s=!1},d(e){e&&y(t),e&&y(n),a&&a.d(e),o&&o.d(e),e&&y(i)}}}function Yt(e){let n,i,s;const r=[{tag:e[10]},{use:[[Wt,{ripple:e[3],unbounded:!1,color:e[4],disabled:!!e[23].disabled,addClass:e[19],removeClass:e[20],addStyle:e[21]}],e[17],...e[0]]},{class:dt({[e[1]]:!0,"mdc-button":!0,"mdc-button--raised":"raised"===e[5],"mdc-button--unelevated":"unelevated"===e[5],"mdc-button--outlined":"outlined"===e[5],"smui-button--color-secondary":"secondary"===e[4],"mdc-button--touch":e[6],"mdc-card__action":"card:action"===e[18],"mdc-card__action--button":"card:action"===e[18],"mdc-dialog__button":"dialog:action"===e[18],"mdc-top-app-bar__navigation-icon":"top-app-bar:navigation"===e[18],"mdc-top-app-bar__action-item":"top-app-bar:action"===e[18],"mdc-snackbar__action":"snackbar:actions"===e[18],"mdc-banner__secondary-action":"banner"===e[18]&&e[8],"mdc-banner__primary-action":"banner"===e[18]&&!e[8],"mdc-tooltip__action":"tooltip:rich-actions"===e[18],...e[12]})},{style:Object.entries(e[13]).map(Zt).concat([e[2]]).join(" ")},e[16],e[15],e[14],{href:e[7]},e[23]];var a=e[9];function o(e){let n={$$slots:{default:[Kt]},$$scope:{ctx:e}};for(let e=0;e{de(e,1)})),ie()}a?(n=k(a,o(e)),e[29](n),n.$on("click",e[22]),ce(n.$$.fragment),se(n.$$.fragment,1),le(n,i.parentNode,i)):n=null}else a&&n.$set(s)},i(e){s||(n&&se(n.$$.fragment,e),s=!0)},o(e){n&&re(n.$$.fragment,e),s=!1},d(t){e[29](null),t&&y(i),n&&de(n,t)}}}const Zt=([e,t])=>`${e}: ${t};`;function Qt(e,n,i){let s,r,a;const o=["use","class","style","ripple","color","variant","touch","href","action","defaultAction","secondary","component","tag","getElement"];let c=g(n,o),{$$slots:l={},$$scope:d}=n;const u=mt(U());let p,{use:f=[]}=n,{class:m=""}=n,{style:I=""}=n,{ripple:v=!0}=n,{color:b="primary"}=n,{variant:$="text"}=n,{touch:y=!1}=n,{href:x}=n,{action:A="close"}=n,{defaultAction:E=!1}=n,{secondary:_=!1}=n,S={},C={},T=V("SMUI:button:context"),{component:L=_t}=n,{tag:O=(L===_t?null==x?"button":"a":void 0)}=n,w=c.disabled;function F(){return p.getElement()}return H("SMUI:label:context","button"),H("SMUI:icon:context","button"),e.$$set=e=>{i(31,n=t(t({},n),h(e))),i(23,c=g(n,o)),"use"in e&&i(0,f=e.use),"class"in e&&i(1,m=e.class),"style"in e&&i(2,I=e.style),"ripple"in e&&i(3,v=e.ripple),"color"in e&&i(4,b=e.color),"variant"in e&&i(5,$=e.variant),"touch"in e&&i(6,y=e.touch),"href"in e&&i(7,x=e.href),"action"in e&&i(24,A=e.action),"defaultAction"in e&&i(25,E=e.defaultAction),"secondary"in e&&i(8,_=e.secondary),"component"in e&&i(9,L=e.component),"tag"in e&&i(10,O=e.tag),"$$scope"in e&&i(30,d=e.$$scope)},e.$$.update=()=>{if(i(16,s="dialog:action"===T&&null!=A?{"data-mdc-dialog-action":A}:{action:n.action}),i(15,r="dialog:action"===T&&E?{"data-mdc-dialog-button-default":""}:{default:n.default}),i(14,a="banner"===T?{}:{secondary:n.secondary}),w!==c.disabled){const e=F();"blur"in e&&e.blur(),i(27,w=c.disabled)}},n=h(n),[f,m,I,v,b,$,y,x,_,L,O,p,S,C,a,r,s,u,T,function(e){S[e]||i(12,S[e]=!0,S)},function(e){e in S&&!S[e]||i(12,S[e]=!1,S)},function(e,t){C[e]!=t&&(""===t||null==t?(delete C[e],i(13,C)):i(13,C[e]=t,C))},function(){"banner"===T&&ut(F(),_?"SMUIBannerButton:secondaryActionClick":"SMUIBannerButton:primaryActionClick")},c,A,E,F,w,l,function(e){G[e?"unshift":"push"]((()=>{p=e,i(11,p)}))},d]}class Jt extends fe{constructor(e){super(),pe(this,e,Qt,Yt,a,{use:0,class:1,style:2,ripple:3,color:4,variant:5,touch:6,href:7,action:24,defaultAction:25,secondary:8,component:9,tag:10,getElement:26},null,[-1,-1])}get getElement(){return this.$$.ctx[26]}} +/** + * @license + * Copyright 2018 Google Inc. + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */var en={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},tn={ARIA_LABEL:"aria-label",ARIA_PRESSED:"aria-pressed",DATA_ARIA_LABEL_OFF:"data-aria-label-off",DATA_ARIA_LABEL_ON:"data-aria-label-on",CHANGE_EVENT:"MDCIconButtonToggle:change"},nn=function(e){function t(n){var i=e.call(this,ge(ge({},t.defaultAdapter),n))||this;return i.hasToggledAriaLabel=!1,i}return he(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return en},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return tn},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},hasClass:function(){return!1},notifyChange:function(){},removeClass:function(){},getAttr:function(){return null},setAttr:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this.adapter.getAttr(tn.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(tn.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(tn.ARIA_PRESSED))throw new Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");this.hasToggledAriaLabel=!0}else this.adapter.setAttr(tn.ARIA_PRESSED,String(this.isOn()))},t.prototype.handleClick=function(){this.toggle(),this.adapter.notifyChange({isOn:this.isOn()})},t.prototype.isOn=function(){return this.adapter.hasClass(en.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(en.ICON_BUTTON_ON):this.adapter.removeClass(en.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(tn.DATA_ARIA_LABEL_ON):this.adapter.getAttr(tn.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(tn.ARIA_LABEL,t||"")}else this.adapter.setAttr(tn.ARIA_PRESSED,""+e)},t}(be);function sn(e){let t;return{c(){t=A("div"),T(t,"class","mdc-icon-button__touch")},m(e,n){$(e,t,n)},d(e){e&&y(t)}}}function rn(e){let t,n,i,s;const r=e[33].default,a=d(r,e,e[37],null);let o=e[8]&&sn();return{c(){t=A("div"),n=_(),a&&a.c(),o&&o.c(),i=S(),T(t,"class","mdc-icon-button__ripple")},m(e,r){$(e,t,r),$(e,n,r),a&&a.m(e,r),o&&o.m(e,r),$(e,i,r),s=!0},p(e,t){a&&a.p&&(!s||64&t[1])&&f(a,r,e,e[37],s?p(r,e[37],t,null):m(e[37]),null),e[8]?o||(o=sn(),o.c(),o.m(i.parentNode,i)):o&&(o.d(1),o=null)},i(e){s||(se(a,e),s=!0)},o(e){re(a,e),s=!1},d(e){e&&y(t),e&&y(n),a&&a.d(e),o&&o.d(e),e&&y(i)}}}function an(e){let n,i,s;const r=[{tag:e[14]},{use:[[Wt,{ripple:e[4],unbounded:!0,color:e[5],disabled:!!e[29].disabled,addClass:e[26],removeClass:e[27],addStyle:e[28]}],e[22],...e[1]]},{class:dt({[e[2]]:!0,"mdc-icon-button":!0,"mdc-icon-button--on":!e[23](e[0])&&e[0],"mdc-icon-button--touch":e[8],"mdc-icon-button--display-flex":e[9],"smui-icon-button--size-button":"button"===e[10],"smui-icon-button--size-mini":"mini"===e[10],"mdc-icon-button--reduced-size":"mini"===e[10]||"button"===e[10],"mdc-card__action":"card:action"===e[24],"mdc-card__action--icon":"card:action"===e[24],"mdc-top-app-bar__navigation-icon":"top-app-bar:navigation"===e[24],"mdc-top-app-bar__action-item":"top-app-bar:action"===e[24],"mdc-snackbar__dismiss":"snackbar:actions"===e[24],"mdc-data-table__pagination-button":"data-table:pagination"===e[24],"mdc-data-table__sort-icon-button":"data-table:sortable-header-cell"===e[24],"mdc-dialog__close":("dialog:header"===e[24]||"dialog:sheet"===e[24])&&"close"===e[12],...e[18]})},{style:Object.entries(e[19]).map(on).concat([e[3]]).join(" ")},{"aria-pressed":e[23](e[0])?null:e[0]?"true":"false"},{"aria-label":e[0]?e[6]:e[7]},{"data-aria-label-on":e[6]},{"data-aria-label-off":e[7]},{"aria-describedby":e[25]},{href:e[11]},e[21],e[20],e[29]];var a=e[13];function o(e){let n={$$slots:{default:[rn]},$$scope:{ctx:e}};for(let e=0;e{de(e,1)})),ie()}a?(n=k(a,o(e)),e[34](n),n.$on("click",e[35]),n.$on("click",e[36]),ce(n.$$.fragment),se(n.$$.fragment,1),le(n,i.parentNode,i)):n=null}else a&&n.$set(s)},i(e){s||(n&&se(n.$$.fragment,e),s=!0)},o(e){n&&re(n.$$.fragment,e),s=!1},d(t){e[34](null),t&&y(i),n&&de(n,t)}}}const on=([e,t])=>`${e}: ${t};`;function cn(e,n,i){let s;const r=["use","class","style","ripple","color","toggle","pressed","ariaLabelOn","ariaLabelOff","touch","displayFlex","size","href","action","component","tag","getElement"];let a=g(n,r),{$$slots:o={},$$scope:c}=n;const l=mt(U());let d=()=>{};function u(e){return e===d}let p,f,{use:m=[]}=n,{class:I=""}=n,{style:v=""}=n,{ripple:b=!0}=n,{color:$}=n,{toggle:y=!1}=n,{pressed:x=d}=n,{ariaLabelOn:A}=n,{ariaLabelOff:E}=n,{touch:_=!1}=n,{displayFlex:S=!0}=n,{size:C="normal"}=n,{href:T}=n,{action:L}=n,O={},w={},F={},R=V("SMUI:icon-button:context"),D=V("SMUI:icon-button:aria-describedby"),{component:k=_t}=n,{tag:M=(k===_t?null==T?"button":"a":void 0)}=n,N=a.disabled;H("SMUI:icon:context","icon-button");let P=null;function j(e){return e in O?O[e]:K().classList.contains(e)}function z(e){O[e]||i(18,O[e]=!0,O)}function X(e){e in O&&!O[e]||i(18,O[e]=!1,O)}function W(e){var t;return e in F?null!==(t=F[e])&&void 0!==t?t:null:K().getAttribute(e)}function q(e,t){F[e]!==t&&i(20,F[e]=t,F)}function K(){return p.getElement()}B((()=>{f&&f.destroy()}));return e.$$set=e=>{n=t(t({},n),h(e)),i(29,a=g(n,r)),"use"in e&&i(1,m=e.use),"class"in e&&i(2,I=e.class),"style"in e&&i(3,v=e.style),"ripple"in e&&i(4,b=e.ripple),"color"in e&&i(5,$=e.color),"toggle"in e&&i(30,y=e.toggle),"pressed"in e&&i(0,x=e.pressed),"ariaLabelOn"in e&&i(6,A=e.ariaLabelOn),"ariaLabelOff"in e&&i(7,E=e.ariaLabelOff),"touch"in e&&i(8,_=e.touch),"displayFlex"in e&&i(9,S=e.displayFlex),"size"in e&&i(10,C=e.size),"href"in e&&i(11,T=e.href),"action"in e&&i(12,L=e.action),"component"in e&&i(13,k=e.component),"tag"in e&&i(14,M=e.tag),"$$scope"in e&&i(37,c=e.$$scope)},e.$$.update=()=>{if(4096&e.$$.dirty[0]&&i(21,s=(()=>{if("data-table:pagination"!==R)return"dialog:header"===R||"dialog:sheet"===R?{"data-mdc-dialog-action":L}:{action:L};switch(L){case"first-page":return{"data-first-page":"true"};case"prev-page":return{"data-prev-page":"true"};case"next-page":return{"data-next-page":"true"};case"last-page":return{"data-last-page":"true"};default:return{"data-action":"true"}}})()),N!==a.disabled){const e=K();"blur"in e&&e.blur(),i(31,N=a.disabled)}1073938432&e.$$.dirty[0]|2&e.$$.dirty[1]&&p&&K()&&y!==P&&(y&&!f?(i(17,f=new nn({addClass:z,hasClass:j,notifyChange:e=>{!function(e){i(0,x=e.isOn)}(e),ut(K(),"SMUIIconButtonToggle:change",e,void 0,!0)},removeClass:X,getAttr:W,setAttr:q})),f.init()):!y&&f&&(f.destroy(),i(17,f=void 0),i(18,O={}),i(20,F={})),i(32,P=y)),131073&e.$$.dirty[0]&&f&&!u(x)&&f.isOn()!==x&&f.toggle(x)},[x,m,I,v,b,$,A,E,_,S,C,T,L,k,M,K,p,f,O,w,F,s,l,u,R,D,z,X,function(e,t){w[e]!=t&&(""===t||null==t?(delete w[e],i(19,w)):i(19,w[e]=t,w))},a,y,N,P,o,function(e){G[e?"unshift":"push"]((()=>{p=e,i(16,p)}))},()=>f&&f.handleClick(),()=>"top-app-bar:navigation"===R&&ut(K(),"SMUITopAppBarIconButton:nav"),c]}class ln extends fe{constructor(e){super(),pe(this,e,cn,an,a,{use:1,class:2,style:3,ripple:4,color:5,toggle:30,pressed:0,ariaLabelOn:6,ariaLabelOff:7,touch:8,displayFlex:9,size:10,href:11,action:12,component:13,tag:14,getElement:15},null,[-1,-1])}get getElement(){return this.$$.ctx[15]}}function dn(e){let n,i,a,o,c,l;const u=e[13].default,h=d(u,e,e[12],null);let g=[{class:i=dt({[e[1]]:!0,"smui-accordion":!0,"smui-accordion--multiple":e[2],"smui-accordion--with-open-dialog":e[4]})},e[10]],I={};for(let e=0;e{n=t(t({},n),h(e)),i(10,r=g(n,s)),"use"in e&&i(0,d=e.use),"class"in e&&i(1,u=e.class),"multiple"in e&&i(2,p=e.multiple),"$$scope"in e&&i(12,o=e.$$scope)},[d,u,p,l,m,c,function(e){const t=e.detail;if(e.stopPropagation(),!p&&t.open){const e=Array.from(f).find((e=>e.open));e&&e.setOpen(!1)}f.add(t)},function(e){const t=e.detail;f.has(t)&&(e.stopPropagation(),f.delete(t))},function(e){const{accessor:t}=e.detail;if(f.has(t)){if(!p&&!t.open){const e=Array.from(f).find((e=>e.open));e&&e.setOpen(!1)}t.setOpen(!t.open)}},function(e){const{accessor:t}=e.detail;if(f.has(t)&&!p){Array.from(f).filter((e=>e!==t&&e.open)).forEach((e=>e.setOpen(!1)))}},r,function(){return l},o,a,function(e){G[e?"unshift":"push"]((()=>{l=e,i(3,l)}))},()=>i(4,m=!0),()=>i(4,m=!1)]}class pn extends fe{constructor(e){super(),pe(this,e,un,dn,a,{use:0,class:1,multiple:2,getElement:11})}get getElement(){return this.$$.ctx[11]}}function fn(e){let n,i,a,o,c,l;const u=e[12].default,h=d(u,e,e[11],null);let g=[{class:i=dt({[e[1]]:!0,"smui-paper":!0,"smui-paper--raised":"raised"===e[2],"smui-paper--unelevated":"unelevated"===e[2],"smui-paper--outlined":"outlined"===e[2],["smui-paper--elevation-z"+e[5]]:0!==e[5]&&"raised"===e[2],"smui-paper--rounded":!e[3],["smui-paper--color-"+e[4]]:"default"!==e[4],"smui-paper-transition":e[6]})},e[9]],I={};for(let e=0;e{n=t(t({},n),h(e)),i(9,r=g(n,s)),"use"in e&&i(0,d=e.use),"class"in e&&i(1,u=e.class),"variant"in e&&i(2,p=e.variant),"square"in e&&i(3,f=e.square),"color"in e&&i(4,m=e.color),"elevation"in e&&i(5,I=e.elevation),"transition"in e&&i(6,v=e.transition),"$$scope"in e&&i(11,o=e.$$scope)},[d,u,p,f,m,I,v,l,c,r,function(){return l},o,a,function(e){G[e?"unshift":"push"]((()=>{l=e,i(7,l)}))}]}class hn extends fe{constructor(e){super(),pe(this,e,mn,fn,a,{use:0,class:1,variant:2,square:3,color:4,elevation:5,transition:6,getElement:10})}get getElement(){return this.$$.ctx[10]}}var gn=Dt({class:"smui-paper__content",tag:"div"});function In(e){let t;const n=e[23].default,i=d(n,e,e[25],null);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,s){i&&i.p&&(!t||33554432&s)&&f(i,n,e,e[25],t?p(n,e[25],s,null):m(e[25]),null)},i(e){t||(se(i,e),t=!0)},o(e){re(i,e),t=!1},d(e){i&&i.d(e)}}}function vn(e){let n,i;const s=[{use:e[11]},{class:dt({[e[1]]:!0,"smui-accordion__panel":!0,"smui-accordion__panel--open":e[0],"smui-accordion__panel--opened":e[10],"smui-accordion__panel--disabled":e[5],"smui-accordion__panel--non-interactive":e[6],"smui-accordion__panel--raised":"raised"===e[2],"smui-accordion__panel--extend":e[7],["smui-accordion__panel--elevation-z"+(e[7]&&e[0]?e[8]:e[4])]:0!==e[4]&&"raised"===e[2]||0!==e[8]&&"raised"===e[2]&&e[7]&&e[0]})},{color:e[3]},{variant:"raised"===e[2]?"unelevated":e[2]},e[16]];let r={$$slots:{default:[In]},$$scope:{ctx:e}};for(let e=0;ei(28,c=e))),H("SMUI:accordion:panel:disabled",O);const w=Ct(S);l(e,w,(e=>i(27,o=e))),H("SMUI:accordion:panel:nonInteractive",w);const F=Ct(E);l(e,F,(e=>i(26,a=e))),H("SMUI:accordion:panel:open",F);let R=E;function D(e){i(0,E=e)}function k(){return m.getElement()}return P((()=>(i(21,v={get open(){return E},setOpen:D}),Array.from(k().children).forEach((e=>{if(e.classList.contains("smui-paper__content")){e.setAttribute("aria-hidden",E?"false":"true")}})),ut(k(),"SMUIAccordionPanel:mount",v),()=>{ut(k(),"SMUIAccordionPanel:unmount",v)}))),e.$$set=e=>{n=t(t({},n),h(e)),i(16,d=g(n,r)),"use"in e&&i(17,b=e.use),"class"in e&&i(1,$=e.class),"variant"in e&&i(2,y=e.variant),"color"in e&&i(3,x=e.color),"elevation"in e&&i(4,A=e.elevation),"open"in e&&i(0,E=e.open),"disabled"in e&&i(5,_=e.disabled),"nonInteractive"in e&&i(6,S=e.nonInteractive),"extend"in e&&i(7,C=e.extend),"extendedElevation"in e&&i(8,T=e.extendedElevation),"$$scope"in e&&i(25,p=e.$$scope)},e.$$.update=()=>{131072&e.$$.dirty&&i(11,s=[f,...b]),32&e.$$.dirty&&I(O,c=_,c),64&e.$$.dirty&&I(w,o=S,o),1&e.$$.dirty&&I(F,a=E,a),6291457&e.$$.dirty&&R!==E&&(i(22,R=E),Array.from(k().children).forEach((e=>{if(e.classList.contains("smui-paper__content")){const t=e;if(E){t.classList.add("smui-accordion__content--no-transition"),t.classList.add("smui-accordion__content--force-open");const{height:e}=t.getBoundingClientRect();t.classList.remove("smui-accordion__content--force-open"),t.getBoundingClientRect(),t.classList.remove("smui-accordion__content--no-transition"),t.style.height=e+"px",t.addEventListener("transitionend",(()=>{t&&(t.style.height=""),i(10,L=E),ut(k(),"SMUIAccordionPanel:opened",{accessor:v})}),{once:!0})}else t.style.height=t.getBoundingClientRect().height+"px",t.getBoundingClientRect(),requestAnimationFrame((()=>{t&&(t.style.height=""),ut(k(),"SMUIAccordionPanel:closed",{accessor:v})})),i(10,L=!1);t.setAttribute("aria-hidden",E?"false":"true")}})),ut(k(),E?"SMUIAccordionPanel:opening":"SMUIAccordionPanel:closing",{accessor:v}))},[E,$,y,x,A,_,S,C,T,m,L,s,O,w,F,function(e){e.stopPropagation(),_||S||ut(k(),"SMUIAccordionPanel:activate",{accessor:v,event:e})},d,b,function(){return E},D,k,v,R,u,function(e){G[e?"unshift":"push"]((()=>{m=e,i(9,m)}))},p]}Dt({class:"smui-paper__title",tag:"h5"}),Dt({class:"smui-paper__subtitle",tag:"h6"});class $n extends fe{constructor(e){super(),pe(this,e,bn,vn,a,{use:17,class:1,variant:2,color:3,elevation:4,open:0,disabled:5,nonInteractive:6,extend:7,extendedElevation:8,isOpen:18,setOpen:19,getElement:20})}get isOpen(){return this.$$.ctx[18]}get setOpen(){return this.$$.ctx[19]}get getElement(){return this.$$.ctx[20]}}const yn=e=>({}),xn=e=>({}),An=e=>({}),En=e=>({});function _n(e){let t;return{c(){t=A("div"),T(t,"class","smui-accordion__header__ripple")},m(e,n){$(e,t,n)},d(e){e&&y(t)}}}function Sn(e){let t,n;const i=e[23].description,s=d(i,e,e[22],En);return{c(){t=A("div"),s&&s.c(),T(t,"class","smui-accordion__header__description")},m(e,i){$(e,t,i),s&&s.m(t,null),n=!0},p(e,t){s&&s.p&&(!n||4194304&t)&&f(s,i,e,e[22],n?p(i,e[22],t,An):m(e[22]),En)},i(e){n||(se(s,e),n=!0)},o(e){re(s,e),n=!1},d(e){e&&y(t),s&&s.d(e)}}}function Cn(e){let t,n;const i=e[23].icon,s=d(i,e,e[22],xn);return{c(){t=A("div"),s&&s.c(),T(t,"class","smui-accordion__header__icon")},m(e,i){$(e,t,i),s&&s.m(t,null),n=!0},p(e,t){s&&s.p&&(!n||4194304&t)&&f(s,i,e,e[22],n?p(i,e[22],t,yn):m(e[22]),xn)},i(e){n||(se(s,e),n=!0)},o(e){re(s,e),n=!1},d(e){e&&y(t),s&&s.d(e)}}}function Tn(e){let n,i,a,o,c,l,u,h,g,I,x,E,S,L,w,F=e[3]&&_n();const R=e[23].default,D=d(R,e,e[22],null);let k=e[20].description&&Sn(e),M=e[20].icon&&Cn(e),N=[{class:u=dt({[e[1]]:!0,"smui-accordion__header":!0,...e[5]})},{style:h=Object.entries(e[6]).map(Ln).concat([e[2]]).join(" ")},{role:"button"},{tabindex:g=e[7]?-1:0},{"aria-expanded":I=e[9]?"true":"false"},e[19]],U={};for(let e=0;e{k=null})),ie()),e[20].icon?M?(M.p(e,t),1048576&t&&se(M,1)):(M=Cn(e),M.c(),se(M,1),M.m(n,null)):M&&(ne(),re(M,1,1,(()=>{M=null})),ie()),O(n,U=ae(N,[(!S||34&t&&u!==(u=dt({[e[1]]:!0,"smui-accordion__header":!0,...e[5]})))&&{class:u},(!S||68&t&&h!==(h=Object.entries(e[6]).map(Ln).concat([e[2]]).join(" ")))&&{style:h},{role:"button"},(!S||128&t&&g!==(g=e[7]?-1:0))&&{tabindex:g},(!S||512&t&&I!==(I=e[9]?"true":"false"))&&{"aria-expanded":I},524288&t&&e[19]])),x&&r(x.update)&&1&t&&x.update.call(null,e[0]),E&&r(E.update)&&392&t&&E.update.call(null,{ripple:e[3],unbounded:!1,surface:!e[7],disabled:e[8]||e[7],addClass:e[16],removeClass:e[17],addStyle:e[18]})},i(e){S||(se(D,e),se(k),se(M),S=!0)},o(e){re(D,e),re(k),re(M),S=!1},d(t){t&&y(n),F&&F.d(),D&&D.d(t),k&&k.d(),M&&M.d(),e[24](null),L=!1,s(w)}}}const Ln=([e,t])=>`${e}: ${t};`;function On(e,n,i){const s=["use","class","style","ripple","getElement"];let r,a,o,c=g(n,s),{$$slots:d={},$$scope:u}=n;const p=function(e){const t={};for(const n in e)t[n]=!0;return t}(d),f=mt(U());let m,{use:I=[]}=n,{class:v=""}=n,{style:b=""}=n,{ripple:$=!0}=n,y={},x={};const A=V("SMUI:accordion:panel:disabled");l(e,A,(e=>i(8,a=e)));const E=V("SMUI:accordion:panel:nonInteractive");l(e,E,(e=>i(7,r=e)));const _=V("SMUI:accordion:panel:open");function S(){return m}return l(e,_,(e=>i(9,o=e))),e.$$set=e=>{n=t(t({},n),h(e)),i(19,c=g(n,s)),"use"in e&&i(0,I=e.use),"class"in e&&i(1,v=e.class),"style"in e&&i(2,b=e.style),"ripple"in e&&i(3,$=e.ripple),"$$scope"in e&&i(22,u=e.$$scope)},[I,v,b,$,m,y,x,r,a,o,f,A,E,_,function(e){0===e.button&&ut(S(),"SMUIAccordionHeader:activate",{event:e})},function(e){"Enter"===e.key&&ut(S(),"SMUIAccordionHeader:activate",{event:e})},function(e){y[e]||i(5,y[e]=!0,y)},function(e){e in y&&!y[e]||i(5,y[e]=!1,y)},function(e,t){x[e]!=t&&(""===t||null==t?(delete x[e],i(6,x)):i(6,x[e]=t,x))},c,p,S,u,d,function(e){G[e?"unshift":"push"]((()=>{m=e,i(4,m)}))}]}class wn extends fe{constructor(e){super(),pe(this,e,On,Tn,a,{use:0,class:1,style:2,ripple:3,getElement:21})}get getElement(){return this.$$.ctx[21]}}function Fn(e){let t;const n=e[42].default,i=d(n,e,e[44],null);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,s){i&&i.p&&(!t||8192&s[1])&&f(i,n,e,e[44],t?p(n,e[44],s,null):m(e[44]),null)},i(e){t||(se(i,e),t=!0)},o(e){re(i,e),t=!1},d(e){i&&i.d(e)}}}function Rn(e){let n,i,s;const r=[{tag:e[13]},{use:[e[16],...e[0]]},{class:dt({[e[1]]:!0,"mdc-deprecated-list":!0,"mdc-deprecated-list--non-interactive":e[2],"mdc-deprecated-list--dense":e[3],"mdc-deprecated-list--textual-list":e[4],"mdc-deprecated-list--avatar-list":e[5]||e[17],"mdc-deprecated-list--icon-list":e[6],"mdc-deprecated-list--image-list":e[7],"mdc-deprecated-list--thumbnail-list":e[8],"mdc-deprecated-list--video-list":e[9],"mdc-deprecated-list--two-line":e[10],"smui-list--three-line":e[11]&&!e[10]})},{role:e[15]},e[25]];var a=e[12];function o(e){let n={$$slots:{default:[Fn]},$$scope:{ctx:e}};for(let e=0;e{de(e,1)})),ie()}a?(n=k(a,o(e)),e[43](n),n.$on("keydown",e[20]),n.$on("focusin",e[21]),n.$on("focusout",e[22]),n.$on("click",e[23]),n.$on("SMUIListItem:mount",e[18]),n.$on("SMUIListItem:unmount",e[19]),n.$on("SMUI:action",e[24]),ce(n.$$.fragment),se(n.$$.fragment,1),le(n,i.parentNode,i)):n=null}else a&&n.$set(s)},i(e){s||(n&&se(n.$$.fragment,e),s=!0)},o(e){n&&re(n.$$.fragment,e),s=!1},d(t){e[43](null),t&&y(i),n&&de(n,t)}}}function Dn(e,n,i){const s=["use","class","nonInteractive","dense","textualList","avatarList","iconList","imageList","thumbnailList","videoList","twoLine","threeLine","vertical","wrapFocus","singleSelection","disabledItemsFocusable","selectedIndex","radioList","checkList","hasTypeahead","component","tag","layout","setEnabled","getTypeaheadInProgress","getSelectedIndex","getFocusedItemIndex","focusItemAtIndex","getElement"];let r=g(n,s),{$$slots:a={},$$scope:o}=n;var c;const{closest:l,matches:d}=Se,u=mt(U());let p,f,{use:m=[]}=n,{class:I=""}=n,{nonInteractive:v=!1}=n,{dense:b=!1}=n,{textualList:$=!1}=n,{avatarList:y=!1}=n,{iconList:x=!1}=n,{imageList:A=!1}=n,{thumbnailList:E=!1}=n,{videoList:_=!1}=n,{twoLine:S=!1}=n,{threeLine:C=!1}=n,{vertical:T=!0}=n,{wrapFocus:L=null!==(c=V("SMUI:list:wrapFocus"))&&void 0!==c&&c}=n,{singleSelection:O=!1}=n,{disabledItemsFocusable:w=!1}=n,{selectedIndex:F=-1}=n,{radioList:R=!1}=n,{checkList:D=!1}=n,{hasTypeahead:k=!1}=n,M=[],N=V("SMUI:list:role"),j=V("SMUI:list:nav");const z=new WeakMap;let X,W=V("SMUI:dialog:selection"),q=V("SMUI:addLayoutListener"),{component:K=_t}=n,{tag:Y=(K===_t?j?"nav":"ul":void 0)}=n;function Z(){return null==p?[]:[...le().children].map((e=>z.get(e))).filter((e=>e&&e._smui_list_item_accessor))}function Q(e,t){var n;const i=Z()[e];return null!==(n=i&&i.hasClass(t))&&void 0!==n&&n}function J(e,t){const n=Z()[e];n&&n.addClass(t)}function ee(e,t){const n=Z()[e];n&&n.removeClass(t)}function te(e,t,n){const i=Z()[e];i&&i.addAttr(t,n)}function ne(e,t){const n=Z()[e];n&&n.removeAttr(t)}function ie(e,t){const n=Z()[e];return n?n.getAttr(t):null}function se(e){var t;const n=Z()[e];return null!==(t=n&&n.getPrimaryText())&&void 0!==t?t:""}function re(e){const t=l(e,".mdc-deprecated-list-item, .mdc-deprecated-list");return t&&d(t,".mdc-deprecated-list-item")?Z().map((e=>null==e?void 0:e.element)).indexOf(t):-1}function ae(){return f.layout()}function oe(){return f.getSelectedIndex()}function ce(e){const t=Z()[e];t&&"focus"in t.element&&t.element.focus()}function le(){return p.getElement()}return H("SMUI:list:nonInteractive",v),H("SMUI:separator:context","list"),N||(O?(N="listbox",H("SMUI:list:item:role","option")):R?(N="radiogroup",H("SMUI:list:item:role","radio")):D?(N="group",H("SMUI:list:item:role","checkbox")):(N="list",H("SMUI:list:item:role",void 0))),q&&(X=q(ae)),P((()=>{i(41,f=new st({addClassForElementIndex:J,focusItemAtIndex:ce,getAttributeForElementIndex:(e,t)=>{var n,i;return null!==(i=null===(n=Z()[e])||void 0===n?void 0:n.getAttr(t))&&void 0!==i?i:null},getFocusedElementIndex:()=>document.activeElement?Z().map((e=>e.element)).indexOf(document.activeElement):-1,getListItemCount:()=>M.length,getPrimaryTextAtIndex:se,hasCheckboxAtIndex:e=>{var t,n;return null!==(n=null===(t=Z()[e])||void 0===t?void 0:t.hasCheckbox)&&void 0!==n&&n},hasRadioAtIndex:e=>{var t,n;return null!==(n=null===(t=Z()[e])||void 0===t?void 0:t.hasRadio)&&void 0!==n&&n},isCheckboxCheckedAtIndex:e=>{var t;const n=Z()[e];return null!==(t=(null==n?void 0:n.hasCheckbox)&&n.checked)&&void 0!==t&&t},isFocusInsideList:()=>null!=p&&le()!==document.activeElement&&le().contains(document.activeElement),isRootFocused:()=>null!=p&&document.activeElement===le(),listItemAtIndexHasClass:Q,notifyAction:e=>{i(26,F=e),null!=p&&ut(le(),"SMUIList:action",{index:e},void 0,!0)},notifySelectionChange:e=>{null!=p&&ut(le(),"SMUIList:selectionChange",{changedIndices:e})},removeClassForElementIndex:ee,setAttributeForElementIndex:te,setCheckedCheckboxOrRadioAtIndex:(e,t)=>{Z()[e].checked=t},setTabIndexForListItemChildren:(e,t)=>{const n=Z()[e];Array.prototype.forEach.call(n.element.querySelectorAll("button:not(:disabled), a"),(e=>{e.setAttribute("tabindex",t)}))}}));const e={get element(){return le()},get items(){return M},get typeaheadInProgress(){return f.isTypeaheadInProgress()},typeaheadMatchItem:(e,t)=>f.typeaheadMatchItem(e,t,!0),getOrderedList:Z,focusItemAtIndex:ce,addClassForElementIndex:J,removeClassForElementIndex:ee,setAttributeForElementIndex:te,removeAttributeForElementIndex:ne,getAttributeFromElementIndex:ie,getPrimaryTextAtIndex:se};return ut(le(),"SMUIList:mount",e),f.init(),f.layout(),()=>{f.destroy()}})),B((()=>{X&&X()})),e.$$set=e=>{n=t(t({},n),h(e)),i(25,r=g(n,s)),"use"in e&&i(0,m=e.use),"class"in e&&i(1,I=e.class),"nonInteractive"in e&&i(2,v=e.nonInteractive),"dense"in e&&i(3,b=e.dense),"textualList"in e&&i(4,$=e.textualList),"avatarList"in e&&i(5,y=e.avatarList),"iconList"in e&&i(6,x=e.iconList),"imageList"in e&&i(7,A=e.imageList),"thumbnailList"in e&&i(8,E=e.thumbnailList),"videoList"in e&&i(9,_=e.videoList),"twoLine"in e&&i(10,S=e.twoLine),"threeLine"in e&&i(11,C=e.threeLine),"vertical"in e&&i(27,T=e.vertical),"wrapFocus"in e&&i(28,L=e.wrapFocus),"singleSelection"in e&&i(29,O=e.singleSelection),"disabledItemsFocusable"in e&&i(30,w=e.disabledItemsFocusable),"selectedIndex"in e&&i(26,F=e.selectedIndex),"radioList"in e&&i(31,R=e.radioList),"checkList"in e&&i(32,D=e.checkList),"hasTypeahead"in e&&i(33,k=e.hasTypeahead),"component"in e&&i(12,K=e.component),"tag"in e&&i(13,Y=e.tag),"$$scope"in e&&i(44,o=e.$$scope)},e.$$.update=()=>{134217728&e.$$.dirty[0]|1024&e.$$.dirty[1]&&f&&f.setVerticalOrientation(T),268435456&e.$$.dirty[0]|1024&e.$$.dirty[1]&&f&&f.setWrapFocus(L),1028&e.$$.dirty[1]&&f&&f.setHasTypeahead(k),536870912&e.$$.dirty[0]|1024&e.$$.dirty[1]&&f&&f.setSingleSelection(O),1073741824&e.$$.dirty[0]|1024&e.$$.dirty[1]&&f&&f.setDisabledItemsFocusable(w),603979776&e.$$.dirty[0]|1024&e.$$.dirty[1]&&f&&O&&oe()!==F&&f.setSelectedIndex(F)},[m,I,v,b,$,y,x,A,E,_,S,C,K,Y,p,N,u,W,function(e){M.push(e.detail),z.set(e.detail.element,e.detail),O&&e.detail.selected&&i(26,F=re(e.detail.element)),e.stopPropagation()},function(e){var t;const n=null!==(t=e.detail&&M.indexOf(e.detail))&&void 0!==t?t:-1;-1!==n&&(M.splice(n,1),z.delete(e.detail.element)),e.stopPropagation()},function(e){f&&e.target&&f.handleKeydown(e,e.target.classList.contains("mdc-deprecated-list-item"),re(e.target))},function(e){f&&e.target&&f.handleFocusIn(re(e.target))},function(e){f&&e.target&&f.handleFocusOut(re(e.target))},function(e){f&&e.target&&f.handleClick(re(e.target),!d(e.target,'input[type="checkbox"], input[type="radio"]'),e)},function(e){if(R||D){const t=re(e.target);if(-1!==t){const n=Z()[t];n&&(R&&!n.checked||D)&&(d(e.detail.target,'input[type="checkbox"], input[type="radio"]')||(n.checked=!n.checked),n.activateRipple(),window.requestAnimationFrame((()=>{n.deactivateRipple()})))}}},r,F,T,L,O,w,R,D,k,ae,function(e,t){return f.setEnabled(e,t)},function(){return f.isTypeaheadInProgress()},oe,function(){return f.getFocusedItemIndex()},ce,le,f,a,function(e){G[e?"unshift":"push"]((()=>{p=e,i(14,p)}))},o]}class kn extends fe{constructor(e){super(),pe(this,e,Dn,Rn,a,{use:0,class:1,nonInteractive:2,dense:3,textualList:4,avatarList:5,iconList:6,imageList:7,thumbnailList:8,videoList:9,twoLine:10,threeLine:11,vertical:27,wrapFocus:28,singleSelection:29,disabledItemsFocusable:30,selectedIndex:26,radioList:31,checkList:32,hasTypeahead:33,component:12,tag:13,layout:34,setEnabled:35,getTypeaheadInProgress:36,getSelectedIndex:37,getFocusedItemIndex:38,focusItemAtIndex:39,getElement:40},null,[-1,-1])}get layout(){return this.$$.ctx[34]}get setEnabled(){return this.$$.ctx[35]}get getTypeaheadInProgress(){return this.$$.ctx[36]}get getSelectedIndex(){return this.$$.ctx[37]}get getFocusedItemIndex(){return this.$$.ctx[38]}get focusItemAtIndex(){return this.$$.ctx[39]}get getElement(){return this.$$.ctx[40]}}function Mn(e){let t;return{c(){t=A("span"),T(t,"class","mdc-deprecated-list-item__ripple")},m(e,n){$(e,t,n)},d(e){e&&y(t)}}}function Nn(e){let t,n,i=e[7]&&Mn();const s=e[34].default,r=d(s,e,e[37],null);return{c(){i&&i.c(),t=S(),r&&r.c()},m(e,s){i&&i.m(e,s),$(e,t,s),r&&r.m(e,s),n=!0},p(e,a){e[7]?i||(i=Mn(),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),r&&r.p&&(!n||64&a[1])&&f(r,s,e,e[37],n?p(s,e[37],a,null):m(e[37]),null)},i(e){n||(se(r,e),n=!0)},o(e){re(r,e),n=!1},d(e){i&&i.d(e),e&&y(t),r&&r.d(e)}}}function Un(e){let n,i,s;const r=[{tag:e[14]},{use:[...e[6]?[]:[[Wt,{ripple:!e[16],unbounded:!1,color:(e[1]||e[0])&&null==e[5]?"primary":e[5],disabled:e[10],addClass:e[24],removeClass:e[25],addStyle:e[26]}]],e[22],...e[2]]},{class:dt({[e[3]]:!0,"mdc-deprecated-list-item":!e[8],"mdc-deprecated-list-item__wrapper":e[8],"mdc-deprecated-list-item--activated":e[1],"mdc-deprecated-list-item--selected":e[0],"mdc-deprecated-list-item--disabled":e[10],"mdc-menu-item--selected":!e[23]&&"menuitem"===e[9]&&e[0],"smui-menu-item--non-interactive":e[6],...e[18]})},{style:Object.entries(e[19]).map(Bn).concat([e[4]]).join(" ")},e[23]&&e[1]?{"aria-current":"page"}:{},!e[23]||e[8]?{role:e[9]}:{},e[23]||"option"!==e[9]?{}:{"aria-selected":e[0]?"true":"false"},e[23]||"radio"!==e[9]&&"checkbox"!==e[9]?{}:{"aria-checked":e[16]&&e[16].checked?"true":"false"},e[23]?{}:{"aria-disabled":e[10]?"true":"false"},{"data-menu-item-skip-restore-focus":e[11]||void 0},{tabindex:e[21]},{href:e[12]},e[20],e[29]];var a=e[13];function o(e){let n={$$slots:{default:[Nn]},$$scope:{ctx:e}};for(let e=0;e{de(e,1)})),ie()}a?(n=k(a,o(e)),e[35](n),n.$on("click",e[15]),n.$on("keydown",e[27]),n.$on("SMUIGenericInput:mount",e[28]),n.$on("SMUIGenericInput:unmount",e[36]),ce(n.$$.fragment),se(n.$$.fragment,1),le(n,i.parentNode,i)):n=null}else a&&n.$set(s)},i(e){s||(n&&se(n.$$.fragment,e),s=!0)},o(e){n&&re(n.$$.fragment,e),s=!1},d(t){e[35](null),t&&y(i),n&&de(n,t)}}}let Pn=0;const Bn=([e,t])=>`${e}: ${t};`;function Hn(e,n,i){let s;const r=["use","class","style","color","nonInteractive","ripple","wrapper","activated","role","selected","disabled","skipRestoreFocus","tabindex","inputId","href","component","tag","action","getPrimaryText","getElement"];let a=g(n,r),{$$slots:o={},$$scope:c}=n;var l;const d=mt(U());let u=()=>{};let{use:p=[]}=n,{class:f=""}=n,{style:m=""}=n,{color:I}=n,{nonInteractive:v=null!==(l=V("SMUI:list:nonInteractive"))&&void 0!==l&&l}=n;H("SMUI:list:nonInteractive",void 0);let{ripple:b=!v}=n,{wrapper:$=!1}=n,{activated:y=!1}=n,{role:x=($?"presentation":V("SMUI:list:item:role"))}=n;H("SMUI:list:item:role",void 0);let A,E,_,{selected:S=!1}=n,{disabled:C=!1}=n,{skipRestoreFocus:T=!1}=n,{tabindex:L=u}=n,{inputId:O="SMUI-form-field-list-"+Pn++}=n,{href:w}=n,F={},R={},D={},k=V("SMUI:list:item:nav"),{component:M=_t}=n,{tag:N=(M===_t?k?w?"a":"span":"li":void 0)}=n;function j(e){return e in F?F[e]:Q().classList.contains(e)}function z(e){F[e]||i(18,F[e]=!0,F)}function X(e){e in F&&!F[e]||i(18,F[e]=!1,F)}function W(e){var t;return e in D?null!==(t=D[e])&&void 0!==t?t:null:Q().getAttribute(e)}function q(e,t){D[e]!==t&&i(20,D[e]=t,D)}function K(e){e in D&&null==D[e]||i(20,D[e]=void 0,D)}function Y(e){C||ut(Q(),"SMUI:action",e)}function Z(){var e,t,n;const i=Q(),s=i.querySelector(".mdc-deprecated-list-item__primary-text");if(s)return null!==(e=s.textContent)&&void 0!==e?e:"";const r=i.querySelector(".mdc-deprecated-list-item__text");return r?null!==(t=r.textContent)&&void 0!==t?t:"":null!==(n=i.textContent)&&void 0!==n?n:""}function Q(){return A.getElement()}H("SMUI:generic:input:props",{id:O}),H("SMUI:separator:context",void 0),P((()=>{if(!S&&!v){let e=!0,t=A.getElement();for(;t.previousSibling;)if(t=t.previousSibling,1===t.nodeType&&t.classList.contains("mdc-deprecated-list-item")&&!t.classList.contains("mdc-deprecated-list-item--disabled")){e=!1;break}e&&(_=window.requestAnimationFrame((()=>function(e){let t=!0;for(;e.nextElementSibling;)if(1===(e=e.nextElementSibling).nodeType&&e.classList.contains("mdc-deprecated-list-item")){const n=e.attributes.getNamedItem("tabindex");if(n&&"0"===n.value){t=!1;break}}t&&i(21,s=0)}(t))))}const e={_smui_list_item_accessor:!0,get element(){return Q()},get selected(){return S},set selected(e){i(0,S=e)},hasClass:j,addClass:z,removeClass:X,getAttr:W,addAttr:q,removeAttr:K,getPrimaryText:Z,get checked(){var e;return null!==(e=E&&E.checked)&&void 0!==e&&e},set checked(e){E&&i(16,E.checked=!!e,E)},get hasCheckbox(){return!(!E||!("_smui_checkbox_accessor"in E))},get hasRadio(){return!(!E||!("_smui_radio_accessor"in E))},activateRipple(){E&&E.activateRipple()},deactivateRipple(){E&&E.deactivateRipple()},getValue:()=>a.value,action:Y,get tabindex(){return s},set tabindex(e){i(30,L=e)},get disabled(){return C},get activated(){return y},set activated(e){i(1,y=e)}};return ut(Q(),"SMUIListItem:mount",e),()=>{ut(Q(),"SMUIListItem:unmount",e)}})),B((()=>{_&&window.cancelAnimationFrame(_)}));return e.$$set=e=>{n=t(t({},n),h(e)),i(29,a=g(n,r)),"use"in e&&i(2,p=e.use),"class"in e&&i(3,f=e.class),"style"in e&&i(4,m=e.style),"color"in e&&i(5,I=e.color),"nonInteractive"in e&&i(6,v=e.nonInteractive),"ripple"in e&&i(7,b=e.ripple),"wrapper"in e&&i(8,$=e.wrapper),"activated"in e&&i(1,y=e.activated),"role"in e&&i(9,x=e.role),"selected"in e&&i(0,S=e.selected),"disabled"in e&&i(10,C=e.disabled),"skipRestoreFocus"in e&&i(11,T=e.skipRestoreFocus),"tabindex"in e&&i(30,L=e.tabindex),"inputId"in e&&i(31,O=e.inputId),"href"in e&&i(12,w=e.href),"component"in e&&i(13,M=e.component),"tag"in e&&i(14,N=e.tag),"$$scope"in e&&i(37,c=e.$$scope)},e.$$.update=()=>{1073808449&e.$$.dirty[0]&&i(21,s=L===u?v||C||!(S||E&&E.checked)?-1:0:L)},[S,y,p,f,m,I,v,b,$,x,C,T,w,M,N,Y,E,A,F,R,D,s,d,k,z,X,function(e,t){R[e]!=t&&(""===t||null==t?(delete R[e],i(19,R)):i(19,R[e]=t,R))},function(e){const t="Enter"===e.key,n="Space"===e.key;(t||n)&&Y(e)},function(e){("_smui_checkbox_accessor"in e.detail||"_smui_radio_accessor"in e.detail)&&i(16,E=e.detail)},a,L,O,Z,Q,o,function(e){G[e?"unshift":"push"]((()=>{A=e,i(17,A)}))},()=>i(16,E=void 0),c]}class Vn extends fe{constructor(e){super(),pe(this,e,Hn,Un,a,{use:2,class:3,style:4,color:5,nonInteractive:6,ripple:7,wrapper:8,activated:1,role:9,selected:0,disabled:10,skipRestoreFocus:11,tabindex:30,inputId:31,href:12,component:13,tag:14,action:15,getPrimaryText:32,getElement:33},null,[-1,-1])}get action(){return this.$$.ctx[15]}get getPrimaryText(){return this.$$.ctx[32]}get getElement(){return this.$$.ctx[33]}}var jn=Dt({class:"mdc-deprecated-list-item__text",tag:"span"});function Gn(e,t,n){const i=e.slice();return i[13]=t[n],i}function zn(e,t,n){const i=e.slice();return i[16]=t[n],i}function Xn(e,t,n){const i=e.slice();return i[19]=t[n],i}function Wn(e,t,n){const i=e.slice();return i[22]=t[n],i}function qn(e){let t,n,i,s=e[22]+"";return{c(){t=A("h3"),n=E(s),i=_(),D(t,"color","white"),T(t,"class","svelte-mrhvww")},m(e,s){$(e,t,s),b(t,n),$(e,i,s)},p(e,t){1&t&&s!==(s=e[22]+"")&&R(n,s)},d(e){e&&y(t),e&&y(i)}}}function Kn(e){let t,n;return t=new Vn({props:{$$slots:{default:[qn]},$$scope:{ctx:e}}}),t.$on("click",(function(){r(e[10](e[22]))&&e[10](e[22]).apply(this,arguments)})),{c(){ce(t.$$.fragment)},m(e,i){le(t,e,i),n=!0},p(n,i){e=n;const s={};33554433&i&&(s.$$scope={dirty:i,ctx:e}),t.$set(s)},i(e){n||(se(t.$$.fragment,e),n=!0)},o(e){re(t.$$.fragment,e),n=!1},d(e){de(t,e)}}}function Yn(e){let t,n,i=e[0],s=[];for(let t=0;tre(s[e],1,1,(()=>{s[e]=null}));return{c(){for(let e=0;ere(s[e],1,1,(()=>{s[e]=null}));return{c(){for(let e=0;ere(s[e],1,1,(()=>{s[e]=null}));return{c(){for(let e=0;e{a[c]=null})),ie(),i=a[n],i?i.p(e,s):(i=a[n]=r[n](e),i.c()),se(i,1),i.m(t,null))},i(e){s||(se(i),s=!0)},o(e){re(i),s=!1},d(e){e&&y(t),a[n].d()}}}function ui(e){let t;return{c(){t=E("Next Song")},m(e,n){$(e,t,n)},d(e){e&&y(t)}}}function pi(t){let n;return{c(){n=A("p"),n.innerHTML='Queue a song to get started!',T(n,"class","svelte-mrhvww")},m(e,t){$(e,n,t)},p:e,i:e,o:e,d(e){e&&y(n)}}}function fi(e){let t,n,i=e[8],s=[];for(let t=0;tre(s[e],1,1,(()=>{s[e]=null}));return{c(){for(let e=0;e{u[r]=null})),ie(),o=u[a],o?o.p(e,n):(o=u[a]=d[a](e),o.c()),se(o,1),o.m(c.parentNode,c))},i(e){l||(se(i.$$.fragment,e),se(o),l=!0)},o(e){re(i.$$.fragment,e),re(o),l=!1},d(e){e&&y(t),e&&y(n),de(i,e),e&&y(s),u[a].d(e),e&&y(c)}}}function $i(e){let t,n,i,s,r,a,o,c,l,d;return r=new vt({props:{$$slots:{default:[Qn]},$$scope:{ctx:e}}}),o=new Mt({props:{class:"app-content",$$slots:{default:[di]},$$scope:{ctx:e}}}),l=new kn({props:{style:"width: 25rem; padding: 1em; margin: 1em; border: 1px dashed white",$$slots:{default:[bi]},$$scope:{ctx:e}}}),{c(){t=A("main"),t.innerHTML='',n=_(),i=A("div"),s=A("div"),ce(r.$$.fragment),a=_(),ce(o.$$.fragment),c=_(),ce(l.$$.fragment),D(t,"background-color","#2c001e"),D(t,"padding","2em"),D(t,"margin-bottom","0"),D(t,"border-bottom","1px solid white"),T(t,"class","svelte-mrhvww"),D(s,"height","100%"),T(s,"class","svelte-mrhvww"),T(i,"class","drawer-container svelte-mrhvww"),D(i,"border","none"),D(i,"height","50.4em")},m(e,u){$(e,t,u),$(e,n,u),$(e,i,u),b(i,s),le(r,s,null),b(i,a),le(o,i,null),b(i,c),le(l,i,null),d=!0},p(e,[t]){const n={};33554433&t&&(n.$$scope={dirty:t,ctx:e}),r.$set(n);const i={};33554462&t&&(i.$$scope={dirty:t,ctx:e}),o.$set(i);const s={};33555424&t&&(s.$$scope={dirty:t,ctx:e}),l.$set(s)},i(e){d||(se(r.$$.fragment,e),se(o.$$.fragment,e),se(l.$$.fragment,e),d=!0)},o(e){re(r.$$.fragment,e),re(o.$$.fragment,e),re(l.$$.fragment,e),d=!1},d(e){e&&y(t),e&&y(n),e&&y(i),de(r),de(o),de(l)}}}function yi(e,t,n){var i,s,r,a,o,c,l=[],d=[],u=[];fetch("https://throbbing-forest-4663.fly.dev/music").then((e=>e.json())).then((e=>{n(0,l=e.artists)}));var p=[],f=0;return P((()=>{document.getElementById("player").preload="auto",document.getElementById("player").volume=.1,n(4,r=function(e){p.push({song:e,artist:i,album:s,pos:p.length}),n(8,p),1==p.length&&a()}),n(5,a=function(){if(0!=p.length){let e=p[f];document.getElementById("player").src=`https://throbbing-forest-4663.fly.dev/music/${e.artist}/${e.album}/${e.song}`,document.getElementById("player").load(),document.getElementById("player").play(),n(9,f+=1)}}),n(6,o=function(e){let t=p[e];document.getElementById("player").src=`https://throbbing-forest-4663.fly.dev/music/${t.artist}/${t.album}/${t.song}`,document.getElementById("player").load(),document.getElementById("player").play(),n(9,f=e+1)}),n(7,c=function(e){f-1==e?(n(9,f=0),document.getElementById("player").src="",document.getElementById("player").load(),p.splice(e,1),n(8,p)):(p.splice(e,1),n(8,p)),p.forEach((e=>{e.pos=p.indexOf(e)}))}),document.getElementById("player").addEventListener("ended",(()=>{f==p.length?(n(9,f=0),document.getElementById("player").src="",document.getElementById("player").load(),n(8,p=[])):a()}))})),[l,i,d,u,r,a,o,c,p,f,function(e){n(2,d=[]),n(1,i=e),fetch(`https://throbbing-forest-4663.fly.dev/music/${e}`).then((e=>e.json())).then((e=>{n(2,d=e.albums)}))},function(e){n(3,u=[]),s=e,fetch(`https://throbbing-forest-4663.fly.dev/music/${i}/${e}`).then((e=>e.json())).then((e=>{n(3,u=e.songs)}))}]}Dt({class:"mdc-deprecated-list-item__primary-text",tag:"span"}),Dt({class:"mdc-deprecated-list-item__secondary-text",tag:"span"}),Dt({class:"mdc-deprecated-list-item__meta",tag:"span"}),Dt({class:"mdc-deprecated-list-group",tag:"div"}),Dt({class:"mdc-deprecated-list-group__subheader",tag:"h3"});return new class extends fe{constructor(e){super(),pe(this,e,yi,$i,a,{})}}({target:document.body,props:{name:"world"}})}(); +//# sourceMappingURL=bundle.js.map diff --git a/build/bundle.js.map b/build/bundle.js.map new file mode 100644 index 0000000..75b9d6d --- /dev/null +++ b/build/bundle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"bundle.js","sources":["../../node_modules/svelte/internal/index.mjs","../../node_modules/tslib/tslib.es6.js","../../node_modules/@material/base/foundation.js","../../node_modules/@material/dom/focus-trap.js","../../node_modules/@material/dom/ponyfill.js","../../node_modules/@material/list/constants.js","../../node_modules/@material/dom/keyboard.js","../../node_modules/@material/list/events.js","../../node_modules/@material/list/typeahead.js","../../node_modules/@material/list/foundation.js","../../node_modules/@material/drawer/constants.js","../../node_modules/@material/drawer/dismissible/foundation.js","../../node_modules/@material/drawer/modal/foundation.js","../../node_modules/@material/dom/events.js","../../node_modules/@smui/common/dist/internal/classMap.js","../../node_modules/@smui/common/dist/internal/dispatch.js","../../node_modules/@smui/common/dist/internal/forwardEventsBuilder.js","../../node_modules/@smui/common/dist/internal/useActions.js","../../node_modules/@smui/drawer/dist/Drawer.svelte","../../node_modules/@smui/common/dist/SmuiElement.svelte","../../node_modules/svelte/store/index.mjs","../../node_modules/@smui/common/dist/classadder/ClassAdder.svelte","../../node_modules/@smui/common/dist/classadder/classAdderBuilder.js","../../node_modules/@smui/drawer/dist/AppContent.js","../../node_modules/@material/ripple/util.js","../../node_modules/@smui/drawer/dist/Content.js","../../node_modules/@smui/drawer/dist/Header.js","../../node_modules/@smui/drawer/dist/Title.js","../../node_modules/@smui/drawer/dist/Subtitle.js","../../node_modules/@material/ripple/constants.js","../../node_modules/@material/ripple/foundation.js","../../node_modules/@smui/ripple/dist/Ripple.js","../../node_modules/@smui/button/dist/Button.svelte","../../node_modules/@material/icon-button/constants.js","../../node_modules/@material/icon-button/foundation.js","../../node_modules/@smui/icon-button/dist/IconButton.svelte","../../node_modules/@smui-extra/accordion/dist/Accordion.svelte","../../node_modules/@smui/paper/dist/Paper.svelte","../../node_modules/@smui/paper/dist/Content.js","../../node_modules/@smui-extra/accordion/dist/Panel.svelte","../../node_modules/@smui/paper/dist/Title.js","../../node_modules/@smui/paper/dist/Subtitle.js","../../node_modules/@smui-extra/accordion/dist/Header.svelte","../../node_modules/@smui/list/dist/List.svelte","../../node_modules/@smui/list/dist/Item.svelte","../../node_modules/@smui/list/dist/Text.js","../../src/App.svelte","../../node_modules/@smui/list/dist/PrimaryText.js","../../node_modules/@smui/list/dist/SecondaryText.js","../../node_modules/@smui/list/dist/Meta.js","../../node_modules/@smui/list/dist/Group.js","../../node_modules/@smui/list/dist/Subheader.js","../../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}\n// Adapted from https://github.com/then/is-promise/blob/master/index.js\n// Distributed under MIT License https://github.com/then/is-promise/blob/master/LICENSE\nfunction is_promise(value) {\n return !!value && (typeof value === 'object' || typeof value === 'function') && 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}\nlet src_url_equal_anchor;\nfunction src_url_equal(element_src, url) {\n if (!src_url_equal_anchor) {\n src_url_equal_anchor = document.createElement('a');\n }\n src_url_equal_anchor.href = url;\n return element_src === src_url_equal_anchor.href;\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_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_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(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 update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn);\n}\nfunction get_all_dirty_from_scope($$scope) {\n if ($$scope.ctx.length > 32) {\n const dirty = [];\n const length = $$scope.ctx.length / 32;\n for (let i = 0; i < length; i++) {\n dirty[i] = -1;\n }\n return dirty;\n }\n return -1;\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) {\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}\nfunction split_css_unit(value) {\n const split = typeof value === 'string' && value.match(/^\\s*(-?[\\d.]+)([^\\s]*)\\s*$/);\n return split ? [parseFloat(split[1]), split[2] || 'px'] : [value, 'px'];\n}\nconst contenteditable_truthy_values = ['', true, 1, 'true', 'contenteditable'];\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\nconst globals = (typeof window !== 'undefined'\n ? window\n : typeof globalThis !== 'undefined'\n ? globalThis\n : global);\n\n/**\n * Resize observer singleton.\n * One listener per element only!\n * https://groups.google.com/a/chromium.org/g/blink-dev/c/z6ienONUb5A/m/F5-VcUZtBAAJ\n */\nclass ResizeObserverSingleton {\n constructor(options) {\n this.options = options;\n this._listeners = 'WeakMap' in globals ? new WeakMap() : undefined;\n }\n observe(element, listener) {\n this._listeners.set(element, listener);\n this._getObserver().observe(element, this.options);\n return () => {\n this._listeners.delete(element);\n this._observer.unobserve(element); // this line can probably be removed\n };\n }\n _getObserver() {\n var _a;\n return (_a = this._observer) !== null && _a !== void 0 ? _a : (this._observer = new ResizeObserver((entries) => {\n var _a;\n for (const entry of entries) {\n ResizeObserverSingleton.entries.set(entry.target, entry);\n (_a = this._listeners.get(entry.target)) === null || _a === void 0 ? void 0 : _a(entry);\n }\n }));\n }\n}\n// Needs to be written like this to pass the tree-shake-test\nResizeObserverSingleton.entries = 'WeakMap' in globals ? new WeakMap() : undefined;\n\n// Track which nodes are claimed during hydration. Unclaimed nodes can then be removed from the DOM\n// at the end of hydration without touching the remaining nodes.\nlet is_hydrating = false;\nfunction start_hydrating() {\n is_hydrating = true;\n}\nfunction end_hydrating() {\n is_hydrating = false;\n}\nfunction upper_bound(low, high, key, value) {\n // Return first index of value larger than input value in the range [low, high)\n while (low < high) {\n const mid = low + ((high - low) >> 1);\n if (key(mid) <= value) {\n low = mid + 1;\n }\n else {\n high = mid;\n }\n }\n return low;\n}\nfunction init_hydrate(target) {\n if (target.hydrate_init)\n return;\n target.hydrate_init = true;\n // We know that all children have claim_order values since the unclaimed have been detached if target is not \n let children = target.childNodes;\n // If target is , there may be children without claim_order\n if (target.nodeName === 'HEAD') {\n const myChildren = [];\n for (let i = 0; i < children.length; i++) {\n const node = children[i];\n if (node.claim_order !== undefined) {\n myChildren.push(node);\n }\n }\n children = myChildren;\n }\n /*\n * Reorder claimed children optimally.\n * We can reorder claimed children optimally by finding the longest subsequence of\n * nodes that are already claimed in order and only moving the rest. The longest\n * subsequence of nodes that are claimed in order can be found by\n * computing the longest increasing subsequence of .claim_order values.\n *\n * This algorithm is optimal in generating the least amount of reorder operations\n * possible.\n *\n * Proof:\n * We know that, given a set of reordering operations, the nodes that do not move\n * always form an increasing subsequence, since they do not move among each other\n * meaning that they must be already ordered among each other. Thus, the maximal\n * set of nodes that do not move form a longest increasing subsequence.\n */\n // Compute longest increasing subsequence\n // m: subsequence length j => index k of smallest value that ends an increasing subsequence of length j\n const m = new Int32Array(children.length + 1);\n // Predecessor indices + 1\n const p = new Int32Array(children.length);\n m[0] = -1;\n let longest = 0;\n for (let i = 0; i < children.length; i++) {\n const current = children[i].claim_order;\n // Find the largest subsequence length such that it ends in a value less than our current value\n // upper_bound returns first greater value, so we subtract one\n // with fast path for when we are on the current longest subsequence\n const seqLen = ((longest > 0 && children[m[longest]].claim_order <= current) ? longest + 1 : upper_bound(1, longest, idx => children[m[idx]].claim_order, current)) - 1;\n p[i] = m[seqLen] + 1;\n const newLen = seqLen + 1;\n // We can guarantee that current is the smallest value. Otherwise, we would have generated a longer sequence.\n m[newLen] = i;\n longest = Math.max(newLen, longest);\n }\n // The longest increasing subsequence of nodes (initially reversed)\n const lis = [];\n // The rest of the nodes, nodes that will be moved\n const toMove = [];\n let last = children.length - 1;\n for (let cur = m[longest] + 1; cur != 0; cur = p[cur - 1]) {\n lis.push(children[cur - 1]);\n for (; last >= cur; last--) {\n toMove.push(children[last]);\n }\n last--;\n }\n for (; last >= 0; last--) {\n toMove.push(children[last]);\n }\n lis.reverse();\n // We sort the nodes being moved to guarantee that their insertion order matches the claim order\n toMove.sort((a, b) => a.claim_order - b.claim_order);\n // Finally, we move the nodes\n for (let i = 0, j = 0; i < toMove.length; i++) {\n while (j < lis.length && toMove[i].claim_order >= lis[j].claim_order) {\n j++;\n }\n const anchor = j < lis.length ? lis[j] : null;\n target.insertBefore(toMove[i], anchor);\n }\n}\nfunction append(target, node) {\n target.appendChild(node);\n}\nfunction append_styles(target, style_sheet_id, styles) {\n const append_styles_to = get_root_for_style(target);\n if (!append_styles_to.getElementById(style_sheet_id)) {\n const style = element('style');\n style.id = style_sheet_id;\n style.textContent = styles;\n append_stylesheet(append_styles_to, style);\n }\n}\nfunction get_root_for_style(node) {\n if (!node)\n return document;\n const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;\n if (root && root.host) {\n return root;\n }\n return node.ownerDocument;\n}\nfunction append_empty_stylesheet(node) {\n const style_element = element('style');\n append_stylesheet(get_root_for_style(node), style_element);\n return style_element.sheet;\n}\nfunction append_stylesheet(node, style) {\n append(node.head || node, style);\n return style.sheet;\n}\nfunction append_hydration(target, node) {\n if (is_hydrating) {\n init_hydrate(target);\n if ((target.actual_end_child === undefined) || ((target.actual_end_child !== null) && (target.actual_end_child.parentNode !== target))) {\n target.actual_end_child = target.firstChild;\n }\n // Skip nodes of undefined ordering\n while ((target.actual_end_child !== null) && (target.actual_end_child.claim_order === undefined)) {\n target.actual_end_child = target.actual_end_child.nextSibling;\n }\n if (node !== target.actual_end_child) {\n // We only insert if the ordering of this node should be modified or the parent node is not target\n if (node.claim_order !== undefined || node.parentNode !== target) {\n target.insertBefore(node, target.actual_end_child);\n }\n }\n else {\n target.actual_end_child = node.nextSibling;\n }\n }\n else if (node.parentNode !== target || node.nextSibling !== null) {\n target.appendChild(node);\n }\n}\nfunction insert(target, node, anchor) {\n target.insertBefore(node, anchor || null);\n}\nfunction insert_hydration(target, node, anchor) {\n if (is_hydrating && !anchor) {\n append_hydration(target, node);\n }\n else if (node.parentNode !== target || node.nextSibling != anchor) {\n target.insertBefore(node, anchor || null);\n }\n}\nfunction detach(node) {\n if (node.parentNode) {\n node.parentNode.removeChild(node);\n }\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 comment(content) {\n return document.createComment(content);\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 stop_immediate_propagation(fn) {\n return function (event) {\n event.stopImmediatePropagation();\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 trusted(fn) {\n return function (event) {\n // @ts-ignore\n if (event.isTrusted)\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}\n/**\n * List of attributes that should always be set through the attr method,\n * because updating them through the property setter doesn't work reliably.\n * In the example of `width`/`height`, the problem is that the setter only\n * accepts numeric values, but the attribute can also be set to a string like `50%`.\n * If this list becomes too big, rethink this approach.\n */\nconst always_set_through_set_attribute = ['width', 'height'];\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 && always_set_through_set_attribute.indexOf(key) === -1) {\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_map(node, data_map) {\n Object.keys(data_map).forEach((key) => {\n set_custom_element_data(node, key, data_map[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 set_dynamic_element_data(tag) {\n return (/-/.test(tag)) ? set_custom_element_data_map : set_attributes;\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 init_binding_group(group) {\n let _inputs;\n return {\n /* push */ p(...inputs) {\n _inputs = inputs;\n _inputs.forEach(input => group.push(input));\n },\n /* remove */ r() {\n _inputs.forEach(input => group.splice(group.indexOf(input), 1));\n }\n };\n}\nfunction init_binding_group_dynamic(group, indexes) {\n let _group = get_binding_group(group);\n let _inputs;\n function get_binding_group(group) {\n for (let i = 0; i < indexes.length; i++) {\n group = group[indexes[i]] = group[indexes[i]] || [];\n }\n return group;\n }\n function push() {\n _inputs.forEach(input => _group.push(input));\n }\n function remove() {\n _inputs.forEach(input => _group.splice(_group.indexOf(input), 1));\n }\n return {\n /* update */ u(new_indexes) {\n indexes = new_indexes;\n const new_group = get_binding_group(group);\n if (new_group !== _group) {\n remove();\n _group = new_group;\n push();\n }\n },\n /* push */ p(...inputs) {\n _inputs = inputs;\n push();\n },\n /* remove */ r: remove\n };\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 init_claim_info(nodes) {\n if (nodes.claim_info === undefined) {\n nodes.claim_info = { last_index: 0, total_claimed: 0 };\n }\n}\nfunction claim_node(nodes, predicate, processNode, createNode, dontUpdateLastIndex = false) {\n // Try to find nodes in an order such that we lengthen the longest increasing subsequence\n init_claim_info(nodes);\n const resultNode = (() => {\n // We first try to find an element after the previous one\n for (let i = nodes.claim_info.last_index; i < nodes.length; i++) {\n const node = nodes[i];\n if (predicate(node)) {\n const replacement = processNode(node);\n if (replacement === undefined) {\n nodes.splice(i, 1);\n }\n else {\n nodes[i] = replacement;\n }\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n return node;\n }\n }\n // Otherwise, we try to find one before\n // We iterate in reverse so that we don't go too far back\n for (let i = nodes.claim_info.last_index - 1; i >= 0; i--) {\n const node = nodes[i];\n if (predicate(node)) {\n const replacement = processNode(node);\n if (replacement === undefined) {\n nodes.splice(i, 1);\n }\n else {\n nodes[i] = replacement;\n }\n if (!dontUpdateLastIndex) {\n nodes.claim_info.last_index = i;\n }\n else if (replacement === undefined) {\n // Since we spliced before the last_index, we decrease it\n nodes.claim_info.last_index--;\n }\n return node;\n }\n }\n // If we can't find any matching node, we create a new one\n return createNode();\n })();\n resultNode.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n return resultNode;\n}\nfunction claim_element_base(nodes, name, attributes, create_element) {\n return claim_node(nodes, (node) => node.nodeName === name, (node) => {\n const remove = [];\n for (let j = 0; j < node.attributes.length; j++) {\n const attribute = node.attributes[j];\n if (!attributes[attribute.name]) {\n remove.push(attribute.name);\n }\n }\n remove.forEach(v => node.removeAttribute(v));\n return undefined;\n }, () => create_element(name));\n}\nfunction claim_element(nodes, name, attributes) {\n return claim_element_base(nodes, name, attributes, element);\n}\nfunction claim_svg_element(nodes, name, attributes) {\n return claim_element_base(nodes, name, attributes, svg_element);\n}\nfunction claim_text(nodes, data) {\n return claim_node(nodes, (node) => node.nodeType === 3, (node) => {\n const dataStr = '' + data;\n if (node.data.startsWith(dataStr)) {\n if (node.data.length !== dataStr.length) {\n return node.splitText(dataStr.length);\n }\n }\n else {\n node.data = dataStr;\n }\n }, () => text(data), true // Text nodes should not update last index since it is likely not worth it to eliminate an increasing subsequence of actual elements\n );\n}\nfunction claim_space(nodes) {\n return claim_text(nodes, ' ');\n}\nfunction claim_comment(nodes, data) {\n return claim_node(nodes, (node) => node.nodeType === 8, (node) => {\n node.data = '' + data;\n return undefined;\n }, () => comment(data), true);\n}\nfunction find_comment(nodes, text, start) {\n for (let i = start; i < nodes.length; i += 1) {\n const node = nodes[i];\n if (node.nodeType === 8 /* comment node */ && node.textContent.trim() === text) {\n return i;\n }\n }\n return nodes.length;\n}\nfunction claim_html_tag(nodes, is_svg) {\n // find html opening tag\n const start_index = find_comment(nodes, 'HTML_TAG_START', 0);\n const end_index = find_comment(nodes, 'HTML_TAG_END', start_index);\n if (start_index === end_index) {\n return new HtmlTagHydration(undefined, is_svg);\n }\n init_claim_info(nodes);\n const html_tag_nodes = nodes.splice(start_index, end_index - start_index + 1);\n detach(html_tag_nodes[0]);\n detach(html_tag_nodes[html_tag_nodes.length - 1]);\n const claimed_nodes = html_tag_nodes.slice(1, html_tag_nodes.length - 1);\n for (const n of claimed_nodes) {\n n.claim_order = nodes.claim_info.total_claimed;\n nodes.claim_info.total_claimed += 1;\n }\n return new HtmlTagHydration(claimed_nodes, is_svg);\n}\nfunction set_data(text, data) {\n data = '' + data;\n if (text.data === data)\n return;\n text.data = data;\n}\nfunction set_data_contenteditable(text, data) {\n data = '' + data;\n if (text.wholeText === data)\n return;\n text.data = data;\n}\nfunction set_data_maybe_contenteditable(text, data, attr_value) {\n if (~contenteditable_truthy_values.indexOf(attr_value)) {\n set_data_contenteditable(text, data);\n }\n else {\n set_data(text, data);\n }\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 if (value == null) {\n node.style.removeProperty(key);\n }\n else {\n node.style.setProperty(key, value, important ? 'important' : '');\n }\n}\nfunction select_option(select, value, mounting) {\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 if (!mounting || value !== undefined) {\n select.selectedIndex = -1; // no option should be selected\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');\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_iframe_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 // make sure an initial resize event is fired _after_ the iframe is loaded (which is asynchronous)\n // see https://github.com/sveltejs/svelte/issues/4233\n 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}\nconst resize_observer_content_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: 'content-box' });\nconst resize_observer_border_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: 'border-box' });\nconst resize_observer_device_pixel_content_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: 'device-pixel-content-box' });\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, bubbles, cancelable, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nfunction head_selector(nodeId, head) {\n const result = [];\n let started = 0;\n for (const node of head.childNodes) {\n if (node.nodeType === 8 /* comment node */) {\n const comment = node.textContent.trim();\n if (comment === `HEAD_${nodeId}_END`) {\n started -= 1;\n result.push(node);\n }\n else if (comment === `HEAD_${nodeId}_START`) {\n started += 1;\n result.push(node);\n }\n }\n else if (started > 0) {\n result.push(node);\n }\n }\n return result;\n}\nclass HtmlTag {\n constructor(is_svg = false) {\n this.is_svg = false;\n this.is_svg = is_svg;\n this.e = this.n = null;\n }\n c(html) {\n this.h(html);\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n if (this.is_svg)\n this.e = svg_element(target.nodeName);\n /** #7364 target for