@uxland/primary-shell 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,131 +1,189 @@
1
- "use strict";function v(r,t,e,s){var n=arguments.length,i=n<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,e):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,t,e,s);else for(var l=r.length-1;l>=0;l--)(o=r[l])&&(i=(n<3?o(i):n>3?o(t,e,i):o(t,e))||i);return n>3&&i&&Object.defineProperty(t,e,i),i}/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*
2
+ * @license
3
+ * BSD License
4
+ *
5
+ * Copyright (c) 2020, UXLand
6
+ *
7
+ * All rights reserved.
8
+ * Redistribution and use in source and binary forms, with or without
9
+ * modification, are permitted provided that the following conditions are met:
10
+ * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
11
+ * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
12
+ * 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
13
+ * 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
14
+ *
15
+ * THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
16
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
17
+ */const Mr=()=>{};function f(r){return r!=null&&typeof r=="object"&&r["@@functional/placeholder"]===!0}function $(r){return function t(e){return arguments.length===0||f(e)?t:r.apply(this,arguments)}}function g(r){return function t(e,i){switch(arguments.length){case 0:return t;case 1:return f(e)?t:$(function(s){return r(e,s)});default:return f(e)&&f(i)?t:f(e)?$(function(s){return r(s,i)}):f(i)?$(function(s){return r(e,s)}):r(e,i)}}}function Ur(r){var t=Object.prototype.toString.call(r);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}function me(r){for(var t=[],e;!(e=r.next()).done;)t.push(e.value);return t}function ye(r,t,e){for(var i=0,s=e.length;i<s;){if(r(t,e[i]))return!0;i+=1}return!1}function Hr(r){var t=String(r).match(/^function (\w*)/);return t==null?"":t[1]}function $t(r,t){return Object.prototype.hasOwnProperty.call(t,r)}function jr(r,t){return r===t?r!==0||1/r===1/t:r!==r&&t!==t}const Tt=typeof Object.is=="function"?Object.is:jr;var $e=Object.prototype.toString,Lr=function(){return $e.call(arguments)==="[object Arguments]"?function(t){return $e.call(t)==="[object Arguments]"}:function(t){return $t("callee",t)}}(),Vr=!{toString:null}.propertyIsEnumerable("toString"),_e=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],be=function(){return arguments.propertyIsEnumerable("length")}(),Dr=function(t,e){for(var i=0;i<t.length;){if(t[i]===e)return!0;i+=1}return!1},k=$(typeof Object.keys=="function"&&!be?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var e,i,s=[],n=be&&Lr(t);for(e in t)$t(e,t)&&(!n||e!=="length")&&(s[s.length]=e);if(Vr)for(i=_e.length-1;i>=0;)e=_e[i],$t(e,t)&&!Dr(s,e)&&(s[s.length]=e),i-=1;return s}),we=$(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function Ae(r,t,e,i){var s=me(r),n=me(t);function o(a,c){return ee(a,c,e.slice(),i.slice())}return!ye(function(a,c){return!ye(o,c,a)},n,s)}function ee(r,t,e,i){if(Tt(r,t))return!0;var s=we(r);if(s!==we(t)||r==null||t==null)return!1;if(typeof r["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof r["fantasy-land/equals"]=="function"&&r["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](r);if(typeof r.equals=="function"||typeof t.equals=="function")return typeof r.equals=="function"&&r.equals(t)&&typeof t.equals=="function"&&t.equals(r);switch(s){case"Arguments":case"Array":case"Object":if(typeof r.constructor=="function"&&Hr(r.constructor)==="Promise")return r===t;break;case"Boolean":case"Number":case"String":if(!(typeof r==typeof t&&Tt(r.valueOf(),t.valueOf())))return!1;break;case"Date":if(!Tt(r.valueOf(),t.valueOf()))return!1;break;case"Error":return r.name===t.name&&r.message===t.message;case"RegExp":if(!(r.source===t.source&&r.global===t.global&&r.ignoreCase===t.ignoreCase&&r.multiline===t.multiline&&r.sticky===t.sticky&&r.unicode===t.unicode))return!1;break}for(var n=e.length-1;n>=0;){if(e[n]===r)return i[n]===t;n-=1}switch(s){case"Map":return r.size!==t.size?!1:Ae(r.entries(),t.entries(),e.concat([r]),i.concat([t]));case"Set":return r.size!==t.size?!1:Ae(r.values(),t.values(),e.concat([r]),i.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=k(r);if(o.length!==k(t).length)return!1;var a=e.concat([r]),c=i.concat([t]);for(n=o.length-1;n>=0;){var l=o[n];if(!($t(l,t)&&ee(t[l],r[l],a,c)))return!1;n-=1}return!0}var zr=g(function(t,e){return ee(t,e,[],[])});function Br(r,t,e){var i,s;if(typeof r.indexOf=="function")switch(typeof t){case"number":if(t===0){for(i=1/t;e<r.length;){if(s=r[e],s===0&&1/s===i)return e;e+=1}return-1}else if(t!==t){for(;e<r.length;){if(s=r[e],typeof s=="number"&&s!==s)return e;e+=1}return-1}return r.indexOf(t,e);case"string":case"boolean":case"function":case"undefined":return r.indexOf(t,e);case"object":if(t===null)return r.indexOf(t,e)}for(;e<r.length;){if(zr(r[e],t))return e;e+=1}return-1}function Fr(r,t){return Br(t,r,0)>=0}function ft(r,t){for(var e=0,i=t.length,s=Array(i);e<i;)s[e]=r(t[e]),e+=1;return s}function Ot(r){var t=r.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+t.replace(/"/g,'\\"')+'"'}var X=function(t){return(t<10?"0":"")+t},qr=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+X(t.getUTCMonth()+1)+"-"+X(t.getUTCDate())+"T"+X(t.getUTCHours())+":"+X(t.getUTCMinutes())+":"+X(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Wr(r){return function(){return!r.apply(this,arguments)}}const re=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Gr(r){return r!=null&&typeof r["@@transducer/step"]=="function"}function nr(r,t,e){return function(){if(arguments.length===0)return e();var i=Array.prototype.slice.call(arguments,0),s=i.pop();if(!re(s)){for(var n=0;n<r.length;){if(typeof s[r[n]]=="function")return s[r[n]].apply(s,i);n+=1}if(Gr(s)){var o=t.apply(null,i);return o(s)}}return e.apply(this,arguments)}}function Kr(r,t){for(var e=0,i=t.length,s=[];e<i;)r(t[e])&&(s[s.length]=t[e]),e+=1;return s}function Yr(r){return Object.prototype.toString.call(r)==="[object Object]"}function or(r){return Object.prototype.toString.call(r)==="[object String]"}var Xr=$(function(t){return re(t)?!0:!t||typeof t!="object"||or(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),Zr=function(){function r(t){this.f=t}return r.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},r.prototype["@@transducer/result"]=function(t){return t},r.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},r}();function Qr(r){return new Zr(r)}function at(r,t){switch(r){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,i){return t.apply(this,arguments)};case 3:return function(e,i,s){return t.apply(this,arguments)};case 4:return function(e,i,s,n){return t.apply(this,arguments)};case 5:return function(e,i,s,n,o){return t.apply(this,arguments)};case 6:return function(e,i,s,n,o,a){return t.apply(this,arguments)};case 7:return function(e,i,s,n,o,a,c){return t.apply(this,arguments)};case 8:return function(e,i,s,n,o,a,c,l){return t.apply(this,arguments)};case 9:return function(e,i,s,n,o,a,c,l,u){return t.apply(this,arguments)};case 10:return function(e,i,s,n,o,a,c,l,u,h){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var B=g(function(t,e){return at(t.length,function(){return t.apply(e,arguments)})});function Jr(r,t,e){for(var i=0,s=e.length;i<s;){if(t=r["@@transducer/step"](t,e[i]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}i+=1}return r["@@transducer/result"](t)}function Ee(r,t,e){for(var i=e.next();!i.done;){if(t=r["@@transducer/step"](t,i.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}i=e.next()}return r["@@transducer/result"](t)}function Se(r,t,e,i){return r["@@transducer/result"](e[i](B(r["@@transducer/step"],r),t))}var Ce=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function ie(r,t,e){if(typeof r=="function"&&(r=Qr(r)),Xr(e))return Jr(r,t,e);if(typeof e["fantasy-land/reduce"]=="function")return Se(r,t,e,"fantasy-land/reduce");if(e[Ce]!=null)return Ee(r,t,e[Ce]());if(typeof e.next=="function")return Ee(r,t,e);if(typeof e.reduce=="function")return Se(r,t,e,"reduce");throw new TypeError("reduce: list must be array or iterable")}const _t={init:function(){return this.xf["@@transducer/init"]()},result:function(r){return this.xf["@@transducer/result"](r)}};var ti=function(){function r(t,e){this.xf=e,this.f=t}return r.prototype["@@transducer/init"]=_t.init,r.prototype["@@transducer/result"]=_t.result,r.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},r}(),ei=g(function(t,e){return new ti(t,e)}),ri=g(nr(["filter"],ei,function(r,t){return Yr(t)?ie(function(e,i){return r(t[i])&&(e[i]=t[i]),e},{},k(t)):Kr(r,t)})),ar=g(function(t,e){return ri(Wr(t),e)});function cr(r,t){var e=function(o){var a=t.concat([r]);return Fr(o,a)?"<Circular>":cr(o,a)},i=function(n,o){return ft(function(a){return Ot(a)+": "+e(n[a])},o.slice().sort())};switch(Object.prototype.toString.call(r)){case"[object Arguments]":return"(function() { return arguments; }("+ft(e,r).join(", ")+"))";case"[object Array]":return"["+ft(e,r).concat(i(r,ar(function(n){return/^\d+$/.test(n)},k(r)))).join(", ")+"]";case"[object Boolean]":return typeof r=="object"?"new Boolean("+e(r.valueOf())+")":r.toString();case"[object Date]":return"new Date("+(isNaN(r.valueOf())?e(NaN):Ot(qr(r)))+")";case"[object Null]":return"null";case"[object Number]":return typeof r=="object"?"new Number("+e(r.valueOf())+")":1/r===-1/0?"-0":r.toString(10);case"[object String]":return typeof r=="object"?"new String("+e(r.valueOf())+")":Ot(r);case"[object Undefined]":return"undefined";default:if(typeof r.toString=="function"){var s=r.toString();if(s!=="[object Object]")return s}return"{"+i(r,k(r)).join(", ")+"}"}}function ii(r,t){if(t==null||!Ur(t.then))throw new TypeError("`"+r+"` expected a Promise, received "+cr(t,[]))}var F=g(function(t,e){return ii("andThen",e),e.then(t)}),si=function(){function r(t,e){this.xf=e,this.f=t}return r.prototype["@@transducer/init"]=_t.init,r.prototype["@@transducer/result"]=_t.result,r.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},r}(),ni=g(function(t,e){return new si(t,e)});function lr(r,t,e){return function(){for(var i=[],s=0,n=r,o=0;o<t.length||s<arguments.length;){var a;o<t.length&&(!f(t[o])||s>=arguments.length)?a=t[o]:(a=arguments[s],s+=1),i[o]=a,f(a)||(n-=1),o+=1}return n<=0?e.apply(this,i):at(n,lr(r,i,e))}}var oi=g(function(t,e){return t===1?$(e):at(t,lr(t,[],e))}),ct=g(nr(["fantasy-land/map","map"],ni,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return oi(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return ie(function(i,s){return i[s]=t(e[s]),i},{},k(e));default:return ft(t,e)}}));function ai(r,t){return function(){return t.call(this,r.apply(this,arguments))}}function hr(r){return function t(e,i,s){switch(arguments.length){case 0:return t;case 1:return f(e)?t:g(function(n,o){return r(e,n,o)});case 2:return f(e)&&f(i)?t:f(e)?g(function(n,o){return r(n,i,o)}):f(i)?g(function(n,o){return r(e,n,o)}):$(function(n){return r(e,i,n)});default:return f(e)&&f(i)&&f(s)?t:f(e)&&f(i)?g(function(n,o){return r(n,o,s)}):f(e)&&f(s)?g(function(n,o){return r(n,i,o)}):f(i)&&f(s)?g(function(n,o){return r(e,n,o)}):f(e)?$(function(n){return r(n,i,s)}):f(i)?$(function(n){return r(e,n,s)}):f(s)?$(function(n){return r(e,i,n)}):r(e,i,s)}}}var ur=hr(ie);function se(r,t){return function(){var e=arguments.length;if(e===0)return t();var i=arguments[e-1];return re(i)||typeof i[r]!="function"?t.apply(this,arguments):i[r].apply(i,Array.prototype.slice.call(arguments,0,e-1))}}var ci=hr(se("slice",function(t,e,i){return Array.prototype.slice.call(i,t,e)})),li=$(se("tail",ci(1,1/0)));function j(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return at(arguments[0].length,ur(ai,arguments[0],li(arguments)))}let hi=class{constructor(t){this.targetRegion=t}async attach(){const t=this.targetRegion.regionManager.getRegisteredViews(this.targetRegion.name);return j(ct(e=>this.targetRegion.addView(e.key,e.view)),B(Promise.all,Promise),F(Mr))(t)}detach(){return Promise.resolve()}},ui=class{constructor(){this.registry=[]}get behaviors(){return[...this.registry]}register(t){this.behaviors.some(e=>e===t)||this.registry.push(t)}};const dr=new ui;dr.register(hi);const di=dr;let pi=class{constructor(t){this.host=t}get behaviors(){return di.behaviors.map(t=>new t(this.host.uxlRegion))}activateView(t){return this.host.contains(t)||this.addViewToHost(t),t.hidden=!1,Promise.resolve(void 0)}deactivateView(t){return t.view&&t.view.removeFromDomWhenDeactivated?this.removeViewFromHost(t):t.hidden=!0,Promise.resolve(null)}removeView(t){this.removeViewFromHost(t)}viewAdded(t){}addViewToHost(t){this.host.appendChild(t)}removeViewFromHost(t){this.host.removeChild(t),this.host.uxlRegion.viewRemovedFromDom(t.view)}};const fi=(r,t)=>!r.sortHint&&!t.sortHint||!t.sortHint?-1:r.sortHint?r.sortHint.localeCompare(t.sortHint):1;let gi=class extends pi{async viewAdded(t){await this.host.uxlRegion.activate(t)}addViewToHost(t){const e=this.host.uxlRegion.currentActiveViews.sort(fi).indexOf(t.view);e>=this.host.children.length?super.addViewToHost(t):this.host.insertBefore(t,this.host.children[e])}};const vi=(r,t)=>new gi(t),x=(r,t)=>{if(r=typeof r=="function"?r():r,!r)throw new Error(t)},mi=r=>typeof HTMLElement=="object"?r instanceof HTMLElement:r&&typeof r=="object"&&r!=null&&r.nodeType===1&&typeof r.nodeName=="string",yi=r=>{if(!r.htmlTag&&!r.element&&!r.factory)throw new Error("One of properties htmlTag, factory or element must be set");return r.htmlTag&&x(typeof r.htmlTag=="string","htmlTag property must be an string"),r.factory&&x(typeof r.factory=="function","factory property must be a function"),r.element&&x(mi(r.element),"element property must be an HTMLElement"),!0},$i=async(r,t,e)=>{let i;return r.element?i=r.element:r.factory?i=await r.factory():r.htmlTag&&(r.htmlUrl&&await import(r.htmlUrl),i=window.document.createElement(r.htmlTag)),i.view=r,i.region=t,i.viewKey=e,i};let _i=class{constructor(t,e,i,s,n){this.name=t,this.regionManager=e,this.host=i,this.adapter=s,this.definition=n,this.views={},this.activeViews=[],this.components=new WeakMap,this.host.uxlRegion=this}async addView(t,e){return yi(e),x(typeof this.getView(t)>"u",`Already exists a view with key ${t}`),this.views[t]=e,await this.adapter.viewAdded(e),this}async removeView(t){await this.deactivate(t),this.remove(t),delete this.views[t]}async removeViews(){Object.keys(this.views).forEach(t=>this.removeView(t))}get context(){return this._context}set context(t){this._context=t,Object.keys(this.views).forEach(e=>{const i=this.views[e];if(this.components.has(i)){const s=this.components.get(i);s&&(s.regionContext=this._context)}})}async activate(t){let e=t;if(typeof t=="string"?(e=this.getView(t),x(e,`Region does not contain a view with key ${t}`)):x(Object.keys(this.views).some(i=>typeof this.views[i]<"u"),"Region does not contain this view"),!this.activeViews.some(i=>i===e)){if(!this.components.has(e)){const s=await $i(e,this,typeof t=="string"?t:this.getKey(e));s.regionContext=this.context,this.components.set(e,s)}const i=this.components.get(e);this.activeViews.push(e),i.active=!0,await this.adapter.activateView(i)}return this}viewRemovedFromDom(t){this.components.delete(t)}remove(t){const e=typeof t=="string"?this.getView(t):t,i=this.components.get(e);i&&this.adapter.removeView(i)}async deactivate(t){const e=typeof t=="string"?this.getView(t):t,i=this.activeViews.indexOf(e);i!==-1&&this.activeViews.splice(i,1);const s=this.components.get(e);s&&(s.active=!1,await this.adapter.deactivateView(s))}getView(t){return this.views[t]}get currentViews(){return Object.keys(this.views).map(t=>this.views[t])}get currentActiveViews(){return[...this.activeViews]}getKey(t){return Object.keys(this.views).find(e=>this.views[e]==t)}containsView(t){return typeof t=="string"?this.getView(t)!==void 0:Object.keys(this.views).some(e=>this.views[e]==t)}isViewActive(t){if(this.containsView(t)){const e=typeof t=="string"?this.getView(t):t;return this.activeViews.indexOf(e)!==-1}throw new Error(`region ${this.name} doest not contain this view`)}async toggleViewActive(t){if(this.containsView(t))return this.isViewActive(t)?(await this.deactivate(t),!1):(await this.activate(t),!0);throw new Error(`region ${this.name} doest not contain this view`)}};const It="default",xe="dynamic";let bi=class{constructor(){this.adapterRegistry=new Map,this.adapterRegistry.set(xe,[])}registerAdapterFactory(t,e){this.adapterRegistry.set(t,e)}get dynamicFactories(){return this.adapterRegistry.get(xe)}registerDynamicAdapterFactory(t){this.dynamicFactories.indexOf(t)===-1&&this.dynamicFactories.push(t)}getDynamicFactory(t){return this.dynamicFactories.reduce((e,i)=>e||i(t),null)}getAdapterFactory(t){return this.getDynamicFactory(t)||(this.adapterRegistry.has(t.constructor)?this.adapterRegistry.get(t.constructor):this.adapterRegistry.has(t.localName)?this.adapterRegistry.get(t.localName):this.adapterRegistry.has(t.tagName)?this.adapterRegistry.get(t.tagName):this.adapterRegistry.has(It)?this.adapterRegistry.get(It):null)}registerDefaultAdapterFactory(t){this.adapterRegistry.set(It,t)}};const pr=new bi,Wt="__uxl_regions__",xt=r=>(t,e)=>{t.constructor[Wt]={...t.constructor[Wt],[e]:r}},wi=(r,t,e)=>{const i=e.getAdapterFactory(t);return x(typeof i=="function","No region adapter factory found for the host"),i(r,t)},Ai=async(r,t,e,i)=>{await t._updatePromise;const s=t.shadowRoot.querySelector(`#${r.targetId}`);if(s){const n=r.adapterFactory?r.adapterFactory(r,s):wi(r,s,i);x(n,"No region adapter found for the host");const o=r.scoped?e.createRegionManager():e,a=new _i(r.name,o,s,n,r);return o.add(r.name,a),a}else console.warn(`region host with id ${r.targetId} not found for region named ${r.name}`)};/*
18
+ * @license
19
+ * BSD License
20
+ *
21
+ * Copyright (c) 2020, UXLand
22
+ *
23
+ * All rights reserved.
24
+ * Redistribution and use in source and binary forms, with or without
25
+ * modification, are permitted provided that the following conditions are met:
26
+ * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
27
+ * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
28
+ * 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
29
+ * 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
30
+ *
31
+ * THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
+ */let Ei=class{constructor(t){this._ownQueue=[],this.isProcessing=!1,this.executor=t}enqueueItem(...t){this._ownQueue.push([...t]),this.tryProcessQueue()}async tryProcessQueue(){if(!this.isProcessing&&this._ownQueue.length){this.isProcessing=!0;const t=this._ownQueue.pop();await this.executor.apply(void 0,[...t]),this.isProcessing=!1,this.tryProcessQueue()}}};const fr=new WeakMap;function Si(r,t){let e=t;for(;e;){if(fr.get(e)===r)return!0;e=Object.getPrototypeOf(e)}return!1}function ne(r){return t=>{if(Si(r,t))return t;const e=r(t);return fr.set(e,r),e}}/**
34
+ * @license
35
+ * Copyright 2019 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */const gt=window,oe=gt.ShadowRoot&&(gt.ShadyCSS===void 0||gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gr=Symbol(),Re=new WeakMap;let Ci=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==gr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(oe&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Re.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Re.set(e,t))}return t}toString(){return this.cssText}};const xi=r=>new Ci(typeof r=="string"?r:r+"",void 0,gr),Ri=(r,t)=>{oe?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=gt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)})},Pe=oe?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return xi(e)})(r):r;/**
38
+ * @license
39
+ * Copyright 2017 Google LLC
40
+ * SPDX-License-Identifier: BSD-3-Clause
41
+ */var Nt;const bt=window,Te=bt.trustedTypes,Pi=Te?Te.emptyScript:"",Oe=bt.reactiveElementPolyfillSupport,Gt={toAttribute(r,t){switch(t){case Boolean:r=r?Pi:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},ae=(r,t)=>t!==r&&(t==t||r==r),kt={attribute:!0,type:String,converter:Gt,reflect:!1,hasChanged:ae},Kt="finalized";let D=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=kt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const n=this[t];this[e]=s,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||kt}static finalize(){if(this.hasOwnProperty(Kt))return!1;this[Kt]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Pe(s))}else t!==void 0&&e.push(Pe(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Ri(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=kt){var s;const n=this.constructor._$Ep(t,i);if(n!==void 0&&i.reflect===!0){const o=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:Gt).toAttribute(e,i.type);this._$El=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,n=s._$Ev.get(t);if(n!==void 0&&this._$El!==n){const o=s.getPropertyOptions(n),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:Gt;this._$El=n,this[n]=a.fromAttribute(e,o.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||ae)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,n)=>this[n]=s),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var n;return(n=s.hostUpdate)===null||n===void 0?void 0:n.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};D[Kt]=!0,D.elementProperties=new Map,D.elementStyles=[],D.shadowRootOptions={mode:"open"},Oe==null||Oe({ReactiveElement:D}),((Nt=bt.reactiveElementVersions)!==null&&Nt!==void 0?Nt:bt.reactiveElementVersions=[]).push("1.6.3");/**
42
+ * @license
43
+ * Copyright 2017 Google LLC
44
+ * SPDX-License-Identifier: BSD-3-Clause
45
+ */var Mt;const wt=window,q=wt.trustedTypes,Ie=q?q.createPolicy("lit-html",{createHTML:r=>r}):void 0,Yt="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,vr="?"+S,Ti=`<${vr}>`,M=document,et=()=>M.createComment(""),rt=r=>r===null||typeof r!="object"&&typeof r!="function",mr=Array.isArray,Oi=r=>mr(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Ut=`[
46
+ \f\r]`,Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ne=/-->/g,ke=/>/g,T=RegExp(`>|${Ut}(?:([^\\s"'>=/]+)(${Ut}*=${Ut}*(?:[^
47
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Me=/'/g,Ue=/"/g,yr=/^(?:script|style|textarea|title)$/i,W=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),He=new WeakMap,I=M.createTreeWalker(M,129,null,!1);function $r(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ie!==void 0?Ie.createHTML(t):t}const Ii=(r,t)=>{const e=r.length-1,i=[];let s,n=t===2?"<svg>":"",o=Z;for(let a=0;a<e;a++){const c=r[a];let l,u,h=-1,p=0;for(;p<c.length&&(o.lastIndex=p,u=o.exec(c),u!==null);)p=o.lastIndex,o===Z?u[1]==="!--"?o=Ne:u[1]!==void 0?o=ke:u[2]!==void 0?(yr.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=T):u[3]!==void 0&&(o=T):o===T?u[0]===">"?(o=s??Z,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,l=u[1],o=u[3]===void 0?T:u[3]==='"'?Ue:Me):o===Ue||o===Me?o=T:o===Ne||o===ke?o=Z:(o=T,s=void 0);const m=o===T&&r[a+1].startsWith("/>")?" ":"";n+=o===Z?c+Ti:h>=0?(i.push(l),c.slice(0,h)+Yt+c.slice(h)+S+m):c+S+(h===-2?(i.push(void 0),a):m)}return[$r(r,n+(r[e]||"<?>")+(t===2?"</svg>":"")),i]};let Xt=class _r{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,o=0;const a=t.length-1,c=this.parts,[l,u]=Ii(t,e);if(this.el=_r.createElement(l,i),I.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(s=I.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const p of s.getAttributeNames())if(p.endsWith(Yt)||p.startsWith(S)){const m=u[o++];if(h.push(p),m!==void 0){const V=s.getAttribute(m.toLowerCase()+Yt).split(S),pt=/([.?@])?(.*)/.exec(m);c.push({type:1,index:n,name:pt[2],strings:V,ctor:pt[1]==="."?ki:pt[1]==="?"?Ui:pt[1]==="@"?Hi:Rt})}else c.push({type:6,index:n})}for(const p of h)s.removeAttribute(p)}if(yr.test(s.tagName)){const h=s.textContent.split(S),p=h.length-1;if(p>0){s.textContent=q?q.emptyScript:"";for(let m=0;m<p;m++)s.append(h[m],et()),I.nextNode(),c.push({type:2,index:++n});s.append(h[p],et())}}}else if(s.nodeType===8)if(s.data===vr)c.push({type:2,index:n});else{let h=-1;for(;(h=s.data.indexOf(S,h+1))!==-1;)c.push({type:7,index:n}),h+=S.length-1}n++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}};function G(r,t,e=r,i){var s,n,o,a;if(t===W)return t;let c=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const l=rt(t)?void 0:t._$litDirective$;return(c==null?void 0:c.constructor)!==l&&((n=c==null?void 0:c._$AO)===null||n===void 0||n.call(c,!1),l===void 0?c=void 0:(c=new l(r),c._$AT(r,e,i)),i!==void 0?((o=(a=e)._$Co)!==null&&o!==void 0?o:a._$Co=[])[i]=c:e._$Cl=c),c!==void 0&&(t=G(r,c._$AS(r,t.values),c,i)),t}let Ni=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,n=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:M).importNode(i,!0);I.currentNode=n;let o=I.nextNode(),a=0,c=0,l=s[0];for(;l!==void 0;){if(a===l.index){let u;l.type===2?u=new ce(o,o.nextSibling,this,t):l.type===1?u=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(u=new ji(o,this,t)),this._$AV.push(u),l=s[++c]}a!==(l==null?void 0:l.index)&&(o=I.nextNode(),a++)}return I.currentNode=M,n}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},ce=class br{constructor(t,e,i,s){var n;this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(n=s==null?void 0:s.isConnected)===null||n===void 0||n}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=G(this,t,e),rt(t)?t===y||t==null||t===""?(this._$AH!==y&&this._$AR(),this._$AH=y):t!==this._$AH&&t!==W&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Oi(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==y&&rt(this._$AH)?this._$AA.nextSibling.data=t:this.$(M.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Xt.createElement($r(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===n)this._$AH.v(i);else{const o=new Ni(n,this),a=o.u(this.options);o.v(i),this.$(a),this._$AH=o}}_$AC(t){let e=He.get(t.strings);return e===void 0&&He.set(t.strings,e=new Xt(t)),e}T(t){mr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new br(this.k(et()),this.k(et()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},Rt=class{constructor(t,e,i,s,n){this.type=1,this._$AH=y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=y}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(n===void 0)t=G(this,t,e,0),o=!rt(t)||t!==this._$AH&&t!==W,o&&(this._$AH=t);else{const a=t;let c,l;for(t=n[0],c=0;c<n.length-1;c++)l=G(this,a[i+c],e,c),l===W&&(l=this._$AH[c]),o||(o=!rt(l)||l!==this._$AH[c]),l===y?t=y:t!==y&&(t+=(l??"")+n[c+1]),this._$AH[c]=l}o&&!s&&this.j(t)}j(t){t===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ki=class extends Rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===y?void 0:t}};const Mi=q?q.emptyScript:"";let Ui=class extends Rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==y?this.element.setAttribute(this.name,Mi):this.element.removeAttribute(this.name)}};class Hi extends Rt{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){var i;if((t=(i=G(this,t,e,0))!==null&&i!==void 0?i:y)===W)return;const s=this._$AH,n=t===y&&s!==y||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==y&&(s===y||n);n&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}let ji=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){G(this,t)}};const je=wt.litHtmlPolyfillSupport;je==null||je(Xt,ce),((Mt=wt.litHtmlVersions)!==null&&Mt!==void 0?Mt:wt.litHtmlVersions=[]).push("2.8.0");const Li=(r,t,e)=>{var i,s;const n=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let o=n._$litPart$;if(o===void 0){const a=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;n._$litPart$=o=new ce(t.insertBefore(et(),a),a,void 0,e??{})}return o._$AI(r),o};/**
48
+ * @license
49
+ * Copyright 2017 Google LLC
50
+ * SPDX-License-Identifier: BSD-3-Clause
51
+ */var Ht,jt;let vt=class extends D{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Li(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return W}};vt.finalized=!0,vt._$litElement$=!0,(Ht=globalThis.litElementHydrateSupport)===null||Ht===void 0||Ht.call(globalThis,{LitElement:vt});const Le=globalThis.litElementPolyfillSupport;Le==null||Le({LitElement:vt});((jt=globalThis.litElementVersions)!==null&&jt!==void 0?jt:globalThis.litElementVersions=[]).push("3.3.3");var Vi=g(function(t,e){return e==null||e!==e?t:e});const Di=(r,t)=>t.constructor._classProperties?t.constructor._classProperties.get(r).hasChanged:void 0,zi=j(Di,Vi(ae)),Bi=ne(r=>{class t extends r{requestUpdate(i,s){const n=super.requestUpdate?super.requestUpdate(i,s):Promise.resolve(null);return zi(i,this)(this[i],s)&&this[`${String(i)}Changed`]&&this[`${String(i)}Changed`](this[i],s),n}}return t});var Fi=function(){return!0},At=$(function(t){return function(){return t}}),qi=g(function(t,e){return e>t?e:t}),Wi=$(function(t){var e=ur(qi,0,ct(function(i){return i[0].length},t));return at(e,function(){for(var i=0;i<t.length;){if(t[i][0].apply(this,arguments))return t[i][1].apply(this,arguments);i+=1}})}),Gi=g(se("forEach",function(t,e){for(var i=e.length,s=0;s<i;)t(e[s]),s+=1;return e})),le=$(function(t){return t==null});const Ki=Number.isInteger||function(t){return t<<0===t};var Yi=g(function(t,e){var i=t<0?e.length+t:t;return or(e)?e.charAt(i):e[i]}),Xi=g(function(t,e){return t.map(function(i){for(var s=e,n=0,o;n<i.length;){if(s==null)return;o=i[n],s=Ki(o)?Yi(o,s):s[o],n+=1}return s})}),Zi=g(function(t,e){return Xi([t],e)[0]}),Qi=g(function(t,e){return Zi([t],e)});const wr=r=>t=>j(Qi(t.key),le)(r),Ji=r=>t=>!wr(r)(t)&&le(r.shadowRoot.querySelector(`#${t.definition.targetId}`)),ts=r=>t=>{const e=r[t.key];e.regionManager.remove(e);const i=e.adapter?e.adapter.behaviors||[]:[];return delete r[t.key],j(ct(s=>s.detach),B(Promise.all,Promise),F(()=>delete r[t.key]),F(At(void 0)))(i)},es=(r,t,e)=>i=>Ai(i.definition,r,t,e).then(s=>{if(s){r[i.key]=s;const n=s.adapter?s.adapter.behaviors||[]:[];return j(ct(o=>o.attach()),B(Promise.all,Promise),F(At(s)))(n)}else return}).catch(At(void 0)),rs=r=>j(k,ct(t=>({key:t,definition:r[t]})))(r),Ve=r=>r.constructor[Wt]||{},is=(r,t,e)=>{const i=wr(r),s=Ji(r),n=ts(r),o=es(r,t,e);return a=>Wi([[i,o],[s,n],[Fi,At(Promise.resolve(void 0))]])(a)},ss=(r,t)=>ne(e=>{class i extends e{constructor(...n){super(),this.enqueuer=new Ei(this.runRegionCreation.bind(this))}updated(n){super.updated(n),this.create()}createRegions(){const n=Ve(this),o=is(this,r,t);return j(rs,Gi(o),B(Promise.all,Promise),F(ar(le)),F(B(this.regionsCreated,this)))(n)}create(){this.enqueuer.enqueueItem()}runRegionCreation(){return new Promise(n=>{this.createRegions().then(n).catch(n)})}regionsCreated(n){}disconnectedCallback(){super.disconnectedCallback();const n=Ve(this);Object.keys(n).forEach(o=>{const a=this[o];a&&(a.regionManager.remove(a),(a.adapter?a.adapter.behaviors||[]:[]).forEach(c=>c.detach()))})}}return i});pr.registerDefaultAdapterFactory(vi);/**
2
52
  * @license
3
53
  * Copyright 2017 Google LLC
4
54
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const et=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};/**
55
+ */const ns=(r,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,r)}},os=(r,t,e)=>{t.constructor.createProperty(e,r)};function De(r){return(t,e)=>e!==void 0?os(r,t,e):ns(r,t)}/**
56
+ * @license
57
+ * Copyright 2021 Google LLC
58
+ * SPDX-License-Identifier: BSD-3-Clause
59
+ */var Lt;((Lt=window.HTMLSlotElement)===null||Lt===void 0?void 0:Lt.prototype.assignedElements)!=null;var as=Object.defineProperty,ze=(r,t,e,i)=>{for(var s=void 0,n=r.length-1,o;n>=0;n--)(o=r[n])&&(s=o(t,e,s)||s);return s&&as(t,e,s),s};const cs=ne(r=>{class t extends Bi(r){activeChanged(i,s){}regionContextChanged(i,s){}}return ze([De({type:Boolean})],t.prototype,"active"),ze([De()],t.prototype,"regionContext"),t});function ls(r){return cs(r)}const hs=r=>ss(r,pr);class us{constructor(){this.viewsByRegion={},this.regions={}}registerRegion(t,e){this.regions[t]=[...this.regions[t]||[],e]}unregisterRegion(t,e){this.regions[t]=this.getRegionsByName(t).filter(i=>i!==e)}registerView(t,e,i){this.viewsByRegion[t]=[...this.viewsByRegion[t]||[],{key:e,view:i}]}getRegisteredViews(t){return this.viewsByRegion[t]||[]}getRegionsByName(t){return this.regions[t]||[]}destroy(){this.viewsByRegion={},this.regions={}}clear(){this.viewsByRegion={}}}class he{constructor(t){this._viewRegistry=t,this._regions={}}add(t,e){if(this.getRegion(t))throw new Error("A region with the same name already exists");return this._regions[t]=e,this._viewRegistry.registerRegion(t,e),this}getRegion(t){return this._regions[t]}remove(t){let e,i="";return typeof t=="string"?(e=this.getRegion(t),i=t,delete this._regions[t]):typeof t=="object"&&(i=Object.keys(this._regions).find(s=>this._regions[s]===t),i&&(e=t,delete this._regions[i])),i&&e&&this._viewRegistry.unregisterRegion(i,e),e}addViewToRegion(t,e,i){const s=this.getRegion(t);if(!s)throw new Error(`Couldn't find a region with name: ${t}`);return s.addView(e,i),this}registerViewWithRegion(t,e,i){return this._viewRegistry.registerView(t,e,i),this._viewRegistry.getRegionsByName(t).forEach(s=>s.addView(e,i)),this}getRegisteredViews(t){return this._viewRegistry.getRegisteredViews(t)}clear(){return Object.values(this._viewRegistry.regions).forEach(t=>{t!=null&&t.length&&Object.keys(t[0].views).forEach(e=>{var i;return(i=t[0])==null?void 0:i.removeView(e)})}),this}destroy(){return this.clear(),Object.values(this._viewRegistry.regions).forEach(t=>this.remove(t[0])),this._regions={},this}createRegionManager(){return new he(this._viewRegistry)}}class ds extends he{constructor(t){const e=new us;super(e),this._name=t}clear(){return super.clear(),this._viewRegistry.clear(),this}destroy(){return super.destroy(),this._viewRegistry.destroy(),this}}const ps=r=>new ds(r),fs=ps("SHELL-LIT"),gs=hs(fs);/**
6
60
  * @license
7
61
  * Copyright 2019 Google LLC
8
62
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const it=globalThis,Vt=it.ShadowRoot&&(it.ShadyCSS===void 0||it.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,qt=Symbol(),re=new WeakMap;let Ve=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==qt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Vt&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=re.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&re.set(e,t))}return t}toString(){return this.cssText}};const $r=r=>new Ve(typeof r=="string"?r:r+"",void 0,qt),F=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((s,n,i)=>s+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+r[i+1],r[0]);return new Ve(e,r,qt)},_r=(r,t)=>{if(Vt)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),n=it.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,r.appendChild(s)}},se=Vt?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return $r(e)})(r):r;/**
63
+ */const mt=globalThis,ue=mt.ShadowRoot&&(mt.ShadyCSS===void 0||mt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,de=Symbol(),Be=new WeakMap;let Ar=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==de)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(ue&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Be.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Be.set(e,t))}return t}toString(){return this.cssText}};const vs=r=>new Ar(typeof r=="string"?r:r+"",void 0,de),L=(r,...t)=>{const e=r.length===1?r[0]:t.reduce((i,s,n)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+r[n+1],r[0]);return new Ar(e,r,de)},ms=(r,t)=>{if(ue)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=mt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,r.appendChild(i)}},Fe=ue?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return vs(e)})(r):r;/**
64
+ * @license
65
+ * Copyright 2017 Google LLC
66
+ * SPDX-License-Identifier: BSD-3-Clause
67
+ */const{is:ys,defineProperty:$s,getOwnPropertyDescriptor:_s,getOwnPropertyNames:bs,getOwnPropertySymbols:ws,getPrototypeOf:As}=Object,R=globalThis,qe=R.trustedTypes,Es=qe?qe.emptyScript:"",Vt=R.reactiveElementPolyfillSupport,J=(r,t)=>r,Et={toAttribute(r,t){switch(t){case Boolean:r=r?Es:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},pe=(r,t)=>!ys(r,t),We={attribute:!0,type:String,converter:Et,reflect:!1,hasChanged:pe};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),R.litPropertyMetadata??(R.litPropertyMetadata=new WeakMap);class z extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=We){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&$s(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:n}=_s(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return s==null?void 0:s.call(this)},set(o){const a=s==null?void 0:s.call(this);n.call(this,o),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??We}static _$Ei(){if(this.hasOwnProperty(J("elementProperties")))return;const t=As(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(J("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(J("properties"))){const e=this.properties,i=[...bs(e),...ws(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Fe(s))}else t!==void 0&&e.push(Fe(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ms(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var n;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:Et).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){var n;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const o=i.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:Et;this._$Em=s,this[s]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??pe)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[n,o]of s)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$EO)==null||i.forEach(s=>{var n;return(n=s.hostUpdate)==null?void 0:n.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}z.elementStyles=[],z.shadowRootOptions={mode:"open"},z[J("elementProperties")]=new Map,z[J("finalized")]=new Map,Vt==null||Vt({ReactiveElement:z}),(R.reactiveElementVersions??(R.reactiveElementVersions=[])).push("2.0.4");/**
10
68
  * @license
11
69
  * Copyright 2017 Google LLC
12
70
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const{is:br,defineProperty:Ar,getOwnPropertyDescriptor:wr,getOwnPropertyNames:Er,getOwnPropertySymbols:Sr,getPrototypeOf:Cr}=Object,P=globalThis,ne=P.trustedTypes,Pr=ne?ne.emptyScript:"",_t=P.reactiveElementPolyfillSupport,G=(r,t)=>r,ht={toAttribute(r,t){switch(t){case Boolean:r=r?Pr:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Wt=(r,t)=>!br(r,t),ie={attribute:!0,type:String,converter:ht,reflect:!1,hasChanged:Wt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),P.litPropertyMetadata??(P.litPropertyMetadata=new WeakMap);class k extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ie){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Ar(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){const{get:n,set:i}=wr(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const l=n==null?void 0:n.call(this);i.call(this,o),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ie}static _$Ei(){if(this.hasOwnProperty(G("elementProperties")))return;const t=Cr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(G("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(G("properties"))){const e=this.properties,s=[...Er(e),...Sr(e)];for(const n of s)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const n of s)e.unshift(se(n))}else t!==void 0&&e.push(se(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return _r(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var i;const s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){const o=(((i=s.converter)==null?void 0:i.toAttribute)!==void 0?s.converter:ht).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){var i;const s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=s.getPropertyOptions(n),l=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)==null?void 0:i.fromAttribute)!==void 0?o.converter:ht;this._$Em=n,this[n]=l.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??Wt)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[i,o]of n)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(n=>{var i;return(i=n.hostUpdate)==null?void 0:i.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[G("elementProperties")]=new Map,k[G("finalized")]=new Map,_t==null||_t({ReactiveElement:k}),(P.reactiveElementVersions??(P.reactiveElementVersions=[])).push("2.0.4");/**
71
+ */const tt=globalThis,St=tt.trustedTypes,Ge=St?St.createPolicy("lit-html",{createHTML:r=>r}):void 0,Er="$lit$",C=`lit$${Math.random().toFixed(9).slice(2)}$`,Sr="?"+C,Ss=`<${Sr}>`,U=document,it=()=>U.createComment(""),st=r=>r===null||typeof r!="object"&&typeof r!="function",Cr=Array.isArray,Cs=r=>Cr(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",Dt=`[
72
+ \f\r]`,Q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ke=/-->/g,Ye=/>/g,O=RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^
73
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Xe=/'/g,Ze=/"/g,xr=/^(?:script|style|textarea|title)$/i,xs=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),A=xs(1),H=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Qe=new WeakMap,N=U.createTreeWalker(U,129);function Rr(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ge!==void 0?Ge.createHTML(t):t}const Rs=(r,t)=>{const e=r.length-1,i=[];let s,n=t===2?"<svg>":"",o=Q;for(let a=0;a<e;a++){const c=r[a];let l,u,h=-1,p=0;for(;p<c.length&&(o.lastIndex=p,u=o.exec(c),u!==null);)p=o.lastIndex,o===Q?u[1]==="!--"?o=Ke:u[1]!==void 0?o=Ye:u[2]!==void 0?(xr.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=O):u[3]!==void 0&&(o=O):o===O?u[0]===">"?(o=s??Q,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,l=u[1],o=u[3]===void 0?O:u[3]==='"'?Ze:Xe):o===Ze||o===Xe?o=O:o===Ke||o===Ye?o=Q:(o=O,s=void 0);const m=o===O&&r[a+1].startsWith("/>")?" ":"";n+=o===Q?c+Ss:h>=0?(i.push(l),c.slice(0,h)+Er+c.slice(h)+C+m):c+C+(h===-2?a:m)}return[Rr(r,n+(r[e]||"<?>")+(t===2?"</svg>":"")),i]};class nt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let n=0,o=0;const a=t.length-1,c=this.parts,[l,u]=Rs(t,e);if(this.el=nt.createElement(l,i),N.currentNode=this.el.content,e===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=N.nextNode())!==null&&c.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Er)){const p=u[o++],m=s.getAttribute(h).split(C),V=/([.?@])?(.*)/.exec(p);c.push({type:1,index:n,name:V[2],strings:m,ctor:V[1]==="."?Ts:V[1]==="?"?Os:V[1]==="@"?Is:Pt}),s.removeAttribute(h)}else h.startsWith(C)&&(c.push({type:6,index:n}),s.removeAttribute(h));if(xr.test(s.tagName)){const h=s.textContent.split(C),p=h.length-1;if(p>0){s.textContent=St?St.emptyScript:"";for(let m=0;m<p;m++)s.append(h[m],it()),N.nextNode(),c.push({type:2,index:++n});s.append(h[p],it())}}}else if(s.nodeType===8)if(s.data===Sr)c.push({type:2,index:n});else{let h=-1;for(;(h=s.data.indexOf(C,h+1))!==-1;)c.push({type:7,index:n}),h+=C.length-1}n++}}static createElement(t,e){const i=U.createElement("template");return i.innerHTML=t,i}}function K(r,t,e=r,i){var o,a;if(t===H)return t;let s=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=st(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==n&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),n===void 0?s=void 0:(s=new n(r),s._$AT(r,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=s:e._$Cl=s),s!==void 0&&(t=K(r,s._$AS(r,t.values),s,i)),t}class Ps{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=((t==null?void 0:t.creationScope)??U).importNode(e,!0);N.currentNode=s;let n=N.nextNode(),o=0,a=0,c=i[0];for(;c!==void 0;){if(o===c.index){let l;c.type===2?l=new lt(n,n.nextSibling,this,t):c.type===1?l=new c.ctor(n,c.name,c.strings,this,t):c.type===6&&(l=new Ns(n,this,t)),this._$AV.push(l),c=i[++a]}o!==(c==null?void 0:c.index)&&(n=N.nextNode(),o++)}return N.currentNode=U,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class lt{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(s==null?void 0:s.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=K(this,t,e),st(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==H&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Cs(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==d&&st(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=nt.createElement(Rr(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===s)this._$AH.p(e);else{const o=new Ps(s,this),a=o.u(this.options);o.p(e),this.T(a),this._$AH=o}}_$AC(t){let e=Qe.get(t.strings);return e===void 0&&Qe.set(t.strings,e=new nt(t)),e}k(t){Cr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const n of t)s===e.length?e.push(i=new lt(this.S(it()),this.S(it()),this,this.options)):i=e[s],i._$AI(n),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Pt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,n){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=d}_$AI(t,e=this,i,s){const n=this.strings;let o=!1;if(n===void 0)t=K(this,t,e,0),o=!st(t)||t!==this._$AH&&t!==H,o&&(this._$AH=t);else{const a=t;let c,l;for(t=n[0],c=0;c<n.length-1;c++)l=K(this,a[i+c],e,c),l===H&&(l=this._$AH[c]),o||(o=!st(l)||l!==this._$AH[c]),l===d?t=d:t!==d&&(t+=(l??"")+n[c+1]),this._$AH[c]=l}o&&!s&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ts extends Pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}}class Os extends Pt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}}class Is extends Pt{constructor(t,e,i,s,n){super(t,e,i,s,n),this.type=5}_$AI(t,e=this){if((t=K(this,t,e,0)??d)===H)return;const i=this._$AH,s=t===d&&i!==d||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==d&&(i===d||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Ns{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const zt=tt.litHtmlPolyfillSupport;zt==null||zt(nt,lt),(tt.litHtmlVersions??(tt.litHtmlVersions=[])).push("3.1.3");const ks=(r,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let s=i._$litPart$;if(s===void 0){const n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=s=new lt(t.insertBefore(it(),n),n,void 0,e??{})}return s._$AI(r),s};/**
14
74
  * @license
15
75
  * Copyright 2017 Google LLC
16
76
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const xr={attribute:!0,type:String,converter:ht,reflect:!1,hasChanged:Wt},Tr=(r=xr,t,e)=>{const{kind:s,metadata:n}=e;let i=globalThis.litPropertyMetadata.get(n);if(i===void 0&&globalThis.litPropertyMetadata.set(n,i=new Map),i.set(e.name,r),s==="accessor"){const{name:o}=e;return{set(l){const a=t.get.call(this);t.set.call(this,l),this.requestUpdate(o,a,r)},init(l){return l!==void 0&&this.P(o,void 0,r),l}}}if(s==="setter"){const{name:o}=e;return function(l){const a=this[o];t.call(this,l),this.requestUpdate(o,a,r)}}throw Error("Unsupported decorator location: "+s)};function b(r){return(t,e)=>typeof e=="object"?Tr(r,t,e):((s,n,i)=>{const o=n.hasOwnProperty(i);return n.constructor.createProperty(i,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(n,i):void 0})(r,t,e)}/**
77
+ */let E=class extends z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ks(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return H}};var sr;E._$litElement$=!0,E.finalized=!0,(sr=globalThis.litElementHydrateSupport)==null||sr.call(globalThis,{LitElement:E});const Bt=globalThis.litElementPolyfillSupport;Bt==null||Bt({LitElement:E});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.5");/**
18
78
  * @license
19
79
  * Copyright 2017 Google LLC
20
80
  * SPDX-License-Identifier: BSD-3-Clause
21
- */function Gt(r){return b({...r,state:!0,attribute:!1})}/**
81
+ */const Y=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};/**
22
82
  * @license
23
83
  * Copyright 2017 Google LLC
24
84
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const oe=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);/**
85
+ */const Ms={attribute:!0,type:String,converter:Et,reflect:!1,hasChanged:pe},Us=(r=Ms,t,e)=>{const{kind:i,metadata:s}=e;let n=globalThis.litPropertyMetadata.get(s);if(n===void 0&&globalThis.litPropertyMetadata.set(s,n=new Map),n.set(e.name,r),i==="accessor"){const{name:o}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,c,r)},init(a){return a!==void 0&&this.P(o,void 0,r),a}}}if(i==="setter"){const{name:o}=e;return function(a){const c=this[o];t.call(this,a),this.requestUpdate(o,c,r)}}throw Error("Unsupported decorator location: "+i)};function w(r){return(t,e)=>typeof e=="object"?Us(r,t,e):((i,s,n)=>{const o=s.hasOwnProperty(n);return s.constructor.createProperty(n,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(s,n):void 0})(r,t,e)}/**
26
86
  * @license
27
87
  * Copyright 2017 Google LLC
28
88
  * SPDX-License-Identifier: BSD-3-Clause
29
- */function Rr(r,t){return(e,s,n)=>{const i=o=>{var l;return((l=o.renderRoot)==null?void 0:l.querySelector(r))??null};if(t){const{get:o,set:l}=typeof s=="object"?e:n??(()=>{const a=Symbol();return{get(){return this[a]},set(c){this[a]=c}}})();return oe(e,s,{get(){let a=o.call(this);return a===void 0&&(a=i(this),(a!==null||this.hasUpdated)&&l.call(this,a)),a}})}return oe(e,s,{get(){return i(this)}})}}/**
89
+ */function fe(r){return w({...r,state:!0,attribute:!1})}/**
30
90
  * @license
31
91
  * Copyright 2017 Google LLC
32
92
  * SPDX-License-Identifier: BSD-3-Clause
33
- */const K=globalThis,ut=K.trustedTypes,ae=ut?ut.createPolicy("lit-html",{createHTML:r=>r}):void 0,qe="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,We="?"+S,Or=`<${We}>`,I=document,Y=()=>I.createComment(""),X=r=>r===null||typeof r!="object"&&typeof r!="function",Ge=Array.isArray,Ir=r=>Ge(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",bt=`[
34
- \f\r]`,V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,le=/-->/g,ce=/>/g,x=RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^
35
- \f\r"'\`<>=]|("|')|))|$)`,"g"),he=/'/g,ue=/"/g,Ke=/^(?:script|style|textarea|title)$/i,Nr=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),w=Nr(1),N=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),de=new WeakMap,R=I.createTreeWalker(I,129);function Ye(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return ae!==void 0?ae.createHTML(t):t}const Ur=(r,t)=>{const e=r.length-1,s=[];let n,i=t===2?"<svg>":"",o=V;for(let l=0;l<e;l++){const a=r[l];let c,u,h=-1,p=0;for(;p<a.length&&(o.lastIndex=p,u=o.exec(a),u!==null);)p=o.lastIndex,o===V?u[1]==="!--"?o=le:u[1]!==void 0?o=ce:u[2]!==void 0?(Ke.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=x):u[3]!==void 0&&(o=x):o===x?u[0]===">"?(o=n??V,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?x:u[3]==='"'?ue:he):o===ue||o===he?o=x:o===le||o===ce?o=V:(o=x,n=void 0);const m=o===x&&r[l+1].startsWith("/>")?" ":"";i+=o===V?a+Or:h>=0?(s.push(c),a.slice(0,h)+qe+a.slice(h)+S+m):a+S+(h===-2?l:m)}return[Ye(r,i+(r[e]||"<?>")+(t===2?"</svg>":"")),s]};let kt=class Xe{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let i=0,o=0;const l=t.length-1,a=this.parts,[c,u]=Ur(t,e);if(this.el=Xe.createElement(c,s),R.currentNode=this.el.content,e===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=R.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(const h of n.getAttributeNames())if(h.endsWith(qe)){const p=u[o++],m=n.getAttribute(h).split(S),M=/([.?@])?(.*)/.exec(p);a.push({type:1,index:i,name:M[2],strings:m,ctor:M[1]==="."?kr:M[1]==="?"?Hr:M[1]==="@"?jr:gt}),n.removeAttribute(h)}else h.startsWith(S)&&(a.push({type:6,index:i}),n.removeAttribute(h));if(Ke.test(n.tagName)){const h=n.textContent.split(S),p=h.length-1;if(p>0){n.textContent=ut?ut.emptyScript:"";for(let m=0;m<p;m++)n.append(h[m],Y()),R.nextNode(),a.push({type:2,index:++i});n.append(h[p],Y())}}}else if(n.nodeType===8)if(n.data===We)a.push({type:2,index:i});else{let h=-1;for(;(h=n.data.indexOf(S,h+1))!==-1;)a.push({type:7,index:i}),h+=S.length-1}i++}}static createElement(t,e){const s=I.createElement("template");return s.innerHTML=t,s}};function j(r,t,e=r,s){var o,l;if(t===N)return t;let n=s!==void 0?(o=e._$Co)==null?void 0:o[s]:e._$Cl;const i=X(t)?void 0:t._$litDirective$;return(n==null?void 0:n.constructor)!==i&&((l=n==null?void 0:n._$AO)==null||l.call(n,!1),i===void 0?n=void 0:(n=new i(r),n._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=n:e._$Cl=n),n!==void 0&&(t=j(r,n._$AS(r,t.values),n,s)),t}let Mr=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,n=((t==null?void 0:t.creationScope)??I).importNode(e,!0);R.currentNode=n;let i=R.nextNode(),o=0,l=0,a=s[0];for(;a!==void 0;){if(o===a.index){let c;a.type===2?c=new Kt(i,i.nextSibling,this,t):a.type===1?c=new a.ctor(i,a.name,a.strings,this,t):a.type===6&&(c=new Lr(i,this,t)),this._$AV.push(c),a=s[++l]}o!==(a==null?void 0:a.index)&&(i=R.nextNode(),o++)}return R.currentNode=I,n}p(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},Kt=class Ze{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=j(this,t,e),X(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==N&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ir(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==d&&X(this._$AH)?this._$AA.nextSibling.data=t:this.T(I.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=kt.createElement(Ye(s.h,s.h[0]),this.options)),s);if(((i=this._$AH)==null?void 0:i._$AD)===n)this._$AH.p(e);else{const o=new Mr(n,this),l=o.u(this.options);o.p(e),this.T(l),this._$AH=o}}_$AC(t){let e=de.get(t.strings);return e===void 0&&de.set(t.strings,e=new kt(t)),e}k(t){Ge(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,n=0;for(const i of t)n===e.length?e.push(s=new Ze(this.S(Y()),this.S(Y()),this,this.options)):s=e[n],s._$AI(i),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)==null?void 0:s.call(this,!1,!0,e);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}},gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){const i=this.strings;let o=!1;if(i===void 0)t=j(this,t,e,0),o=!X(t)||t!==this._$AH&&t!==N,o&&(this._$AH=t);else{const l=t;let a,c;for(t=i[0],a=0;a<i.length-1;a++)c=j(this,l[s+a],e,a),c===N&&(c=this._$AH[a]),o||(o=!X(c)||c!==this._$AH[a]),c===d?t=d:t!==d&&(t+=(c??"")+i[a+1]),this._$AH[a]=c}o&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},kr=class extends gt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},Hr=class extends gt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},jr=class extends gt{constructor(t,e,s,n,i){super(t,e,s,n,i),this.type=5}_$AI(t,e=this){if((t=j(this,t,e,0)??d)===N)return;const s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,i=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}},Lr=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){j(this,t)}};const At=K.litHtmlPolyfillSupport;At==null||At(kt,Kt),(K.litHtmlVersions??(K.litHtmlVersions=[])).push("3.1.2");const Dr=(r,t,e)=>{const s=(e==null?void 0:e.renderBefore)??t;let n=s._$litPart$;if(n===void 0){const i=(e==null?void 0:e.renderBefore)??null;s._$litPart$=n=new Kt(t.insertBefore(Y(),i),i,void 0,e??{})}return n._$AI(r),n};/**
93
+ */const Hs=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);/**
36
94
  * @license
37
95
  * Copyright 2017 Google LLC
38
96
  * SPDX-License-Identifier: BSD-3-Clause
39
- */let E=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Dr(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return N}};var Fe;E._$litElement$=!0,E.finalized=!0,(Fe=globalThis.litElementHydrateSupport)==null||Fe.call(globalThis,{LitElement:E});const wt=globalThis.litElementPolyfillSupport;wt==null||wt({LitElement:E});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.4");/**
97
+ */function js(r,t){return(e,i,s)=>{const n=o=>{var a;return((a=o.renderRoot)==null?void 0:a.querySelector(r))??null};return Hs(e,i,{get(){return n(this)}})}}const ht={header:"header-region",actionsToolbar:"actions-toolbar-region",main:"main-region",sidebar:"asidebar-region",footer:"footer-region"};function v(r,t,e,i){var s=arguments.length,n=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,t,e,i);else for(var a=r.length-1;a>=0;a--)(o=r[a])&&(n=(s<3?o(n):s>3?o(t,e,n):o(t,e))||n);return s>3&&n&&Object.defineProperty(t,e,n),n}/**
40
98
  * @license
41
99
  * Copyright 2022 Google LLC
42
100
  * SPDX-License-Identifier: Apache-2.0
43
- */class zr extends E{render(){return w`<slot></slot>`}connectedCallback(){if(super.connectedCallback(),this.getAttribute("aria-hidden")==="false"){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}/**
101
+ */class Ls extends E{render(){return A`<slot></slot>`}connectedCallback(){if(super.connectedCallback(),this.getAttribute("aria-hidden")==="false"){this.removeAttribute("aria-hidden");return}this.setAttribute("aria-hidden","true")}}/**
44
102
  * @license
45
103
  * Copyright 2024 Google LLC
46
104
  * SPDX-License-Identifier: Apache-2.0
47
- */const Br=F`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}
105
+ */const Vs=L`:host{font-size:var(--md-icon-size, 24px);width:var(--md-icon-size, 24px);height:var(--md-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--md-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}
48
106
  `;/**
49
107
  * @license
50
108
  * Copyright 2022 Google LLC
51
109
  * SPDX-License-Identifier: Apache-2.0
52
- */let Ht=class extends zr{};Ht.styles=[Br];Ht=v([et("md-icon")],Ht);/**
110
+ */let Zt=class extends Ls{};Zt.styles=[Vs];Zt=v([Y("md-icon")],Zt);/**
53
111
  * @license
54
112
  * Copyright 2023 Google LLC
55
113
  * SPDX-License-Identifier: Apache-2.0
56
- */const Je=Symbol("attachableController");let ot;ot=new MutationObserver(r=>{var t;for(const e of r)(t=e.target[Je])==null||t.hostConnected()});class Qe{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(t){t===null?this.host.removeAttribute("for"):this.host.setAttribute("for",t)}get control(){return this.host.hasAttribute("for")?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(t){t?this.attach(t):this.detach()}constructor(t,e){this.host=t,this.onControlChange=e,this.currentControl=null,t.addController(this),t[Je]=this,ot==null||ot.observe(t,{attributeFilter:["for"]})}attach(t){t!==this.currentControl&&(this.setCurrentControl(t),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(t){this.onControlChange(this.currentControl,t),this.currentControl=t}}/**
114
+ */const Pr=Symbol("attachableController");let yt;yt=new MutationObserver(r=>{var t;for(const e of r)(t=e.target[Pr])==null||t.hostConnected()});class Tr{get htmlFor(){return this.host.getAttribute("for")}set htmlFor(t){t===null?this.host.removeAttribute("for"):this.host.setAttribute("for",t)}get control(){return this.host.hasAttribute("for")?!this.htmlFor||!this.host.isConnected?null:this.host.getRootNode().querySelector(`#${this.htmlFor}`):this.currentControl||this.host.parentElement}set control(t){t?this.attach(t):this.detach()}constructor(t,e){this.host=t,this.onControlChange=e,this.currentControl=null,t.addController(this),t[Pr]=this,yt==null||yt.observe(t,{attributeFilter:["for"]})}attach(t){t!==this.currentControl&&(this.setCurrentControl(t),this.host.removeAttribute("for"))}detach(){this.setCurrentControl(null),this.host.setAttribute("for","")}hostConnected(){this.setCurrentControl(this.control)}hostDisconnected(){this.setCurrentControl(null)}setCurrentControl(t){this.onControlChange(this.currentControl,t),this.currentControl=t}}/**
57
115
  * @license
58
116
  * Copyright 2021 Google LLC
59
117
  * SPDX-License-Identifier: Apache-2.0
60
- */const Fr=["focusin","focusout","pointerdown"];class Yt extends E{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new Qe(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){var e;if(!t[pe]){switch(t.type){default:return;case"focusin":this.visible=((e=this.control)==null?void 0:e.matches(":focus-visible"))??!1;break;case"focusout":case"pointerdown":this.visible=!1;break}t[pe]=!0}}onControlChange(t,e){for(const s of Fr)t==null||t.removeEventListener(s,this),e==null||e.addEventListener(s,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}}v([b({type:Boolean,reflect:!0})],Yt.prototype,"visible",void 0);v([b({type:Boolean,reflect:!0})],Yt.prototype,"inward",void 0);const pe=Symbol("handledByFocusRing");/**
118
+ */const Ds=["focusin","focusout","pointerdown"];class ge extends E{constructor(){super(...arguments),this.visible=!1,this.inward=!1,this.attachableController=new Tr(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}handleEvent(t){var e;if(!t[Je]){switch(t.type){default:return;case"focusin":this.visible=((e=this.control)==null?void 0:e.matches(":focus-visible"))??!1;break;case"focusout":case"pointerdown":this.visible=!1;break}t[Je]=!0}}onControlChange(t,e){for(const i of Ds)t==null||t.removeEventListener(i,this),e==null||e.addEventListener(i,this)}update(t){t.has("visible")&&this.dispatchEvent(new Event("visibility-changed")),super.update(t)}}v([w({type:Boolean,reflect:!0})],ge.prototype,"visible",void 0);v([w({type:Boolean,reflect:!0})],ge.prototype,"inward",void 0);const Je=Symbol("handledByFocusRing");/**
61
119
  * @license
62
120
  * Copyright 2024 Google LLC
63
121
  * SPDX-License-Identifier: Apache-2.0
64
- */const Vr=F`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
122
+ */const zs=L`:host{animation-delay:0s,calc(var(--md-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--md-focus-ring-duration, 600ms)*.25),calc(var(--md-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--md-focus-ring-color, var(--md-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) + var(--md-focus-ring-outward-offset, 2px));inset:calc(-1*var(--md-focus-ring-outward-offset, 2px));outline:var(--md-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--md-focus-ring-shape-end-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--md-focus-ring-shape-end-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--md-focus-ring-shape-start-end, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--md-focus-ring-shape-start-start, var(--md-focus-ring-shape, var(--md-sys-shape-corner-full, 9999px))) - var(--md-focus-ring-inward-offset, 0px));border:var(--md-focus-ring-width, 3px) solid currentColor;inset:var(--md-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--md-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--md-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
65
123
  `;/**
66
124
  * @license
67
125
  * Copyright 2021 Google LLC
68
126
  * SPDX-License-Identifier: Apache-2.0
69
- */let jt=class extends Yt{};jt.styles=[Vr];jt=v([et("md-focus-ring")],jt);/**
127
+ */let Qt=class extends ge{};Qt.styles=[zs];Qt=v([Y("md-focus-ring")],Qt);/**
70
128
  * @license
71
129
  * Copyright 2017 Google LLC
72
130
  * SPDX-License-Identifier: BSD-3-Clause
73
- */const qr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Wr=r=>(...t)=>({_$litDirective$:r,values:t});let Gr=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};/**
131
+ */const Bs={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Fs=r=>(...t)=>({_$litDirective$:r,values:t});class qs{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
74
132
  * @license
75
133
  * Copyright 2018 Google LLC
76
134
  * SPDX-License-Identifier: BSD-3-Clause
77
- */const tr=Wr(class extends Gr{constructor(r){var t;if(super(r),r.type!==qr.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var s,n;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(const i in t)t[i]&&!((s=this.nt)!=null&&s.has(i))&&this.st.add(i);return this.render(t)}const e=r.element.classList;for(const i of this.st)i in t||(e.remove(i),this.st.delete(i));for(const i in t){const o=!!t[i];o===this.st.has(i)||(n=this.nt)!=null&&n.has(i)||(o?(e.add(i),this.st.add(i)):(e.remove(i),this.st.delete(i)))}return N}});/**
135
+ */const Or=Fs(class extends qs{constructor(r){var t;if(super(r),r.type!==Bs.ATTRIBUTE||r.name!=="class"||((t=r.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){var i,s;if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((i=this.nt)!=null&&i.has(n))&&this.st.add(n);return this.render(t)}const e=r.element.classList;for(const n of this.st)n in t||(e.remove(n),this.st.delete(n));for(const n in t){const o=!!t[n];o===this.st.has(n)||(s=this.nt)!=null&&s.has(n)||(o?(e.add(n),this.st.add(n)):(e.remove(n),this.st.delete(n)))}return H}});/**
78
136
  * @license
79
137
  * Copyright 2021 Google LLC
80
138
  * SPDX-License-Identifier: Apache-2.0
81
- */const Kr={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",STANDARD_ACCELERATE:"cubic-bezier(.3,0,1,1)",STANDARD_DECELERATE:"cubic-bezier(0,0,0,1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)",EMPHASIZED_DECELERATE:"cubic-bezier(.05,.7,.1,1)"};/**
139
+ */const Ws={STANDARD:"cubic-bezier(0.2, 0, 0, 1)",STANDARD_ACCELERATE:"cubic-bezier(.3,0,1,1)",STANDARD_DECELERATE:"cubic-bezier(0,0,0,1)",EMPHASIZED:"cubic-bezier(.3,0,0,1)",EMPHASIZED_ACCELERATE:"cubic-bezier(.3,0,.8,.15)",EMPHASIZED_DECELERATE:"cubic-bezier(.05,.7,.1,1)"};/**
82
140
  * @license
83
141
  * Copyright 2022 Google LLC
84
142
  * SPDX-License-Identifier: Apache-2.0
85
- */const Yr=450,fe=225,Xr=.2,Zr=10,Jr=75,Qr=.35,ts="::after",es="forwards";var $;(function(r){r[r.INACTIVE=0]="INACTIVE",r[r.TOUCH_DELAY=1]="TOUCH_DELAY",r[r.HOLDING=2]="HOLDING",r[r.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})($||($={}));const rs=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],ss=150,Et=window.matchMedia("(forced-colors: active)");class rt extends E{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=$.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Qe(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const t={hovered:this.hovered,pressed:this.pressed};return w`<div class="surface ${tr(t)}"></div>`}update(t){t.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(t)}handlePointerenter(t){this.shouldReactToEvent(t)&&(this.hovered=!0)}handlePointerleave(t){this.shouldReactToEvent(t)&&(this.hovered=!1,this.state!==$.INACTIVE&&this.endPressAnimation())}handlePointerup(t){if(this.shouldReactToEvent(t)){if(this.state===$.HOLDING){this.state=$.WAITING_FOR_CLICK;return}if(this.state===$.TOUCH_DELAY){this.state=$.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(t){if(this.shouldReactToEvent(t)){if(this.rippleStartEvent=t,!this.isTouch(t)){this.state=$.WAITING_FOR_CLICK,this.startPressAnimation(t);return}this.checkBoundsAfterContextMenu&&!this.inBounds(t)||(this.checkBoundsAfterContextMenu=!1,this.state=$.TOUCH_DELAY,await new Promise(e=>{setTimeout(e,ss)}),this.state===$.TOUCH_DELAY&&(this.state=$.HOLDING,this.startPressAnimation(t)))}}handleClick(){if(!this.disabled){if(this.state===$.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===$.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(t){this.shouldReactToEvent(t)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:t,width:e}=this.getBoundingClientRect(),s=Math.max(t,e),n=Math.max(Qr*s,Jr),i=Math.floor(s*Xr),l=Math.sqrt(e**2+t**2)+Zr;this.initialSize=i,this.rippleScale=`${(l+n)/i}`,this.rippleSize=`${i}px`}getNormalizedPointerEventCoords(t){const{scrollX:e,scrollY:s}=window,{left:n,top:i}=this.getBoundingClientRect(),o=e+n,l=s+i,{pageX:a,pageY:c}=t;return{x:a-o,y:c-l}}getTranslationCoordinates(t){const{height:e,width:s}=this.getBoundingClientRect(),n={x:(s-this.initialSize)/2,y:(e-this.initialSize)/2};let i;return t instanceof PointerEvent?i=this.getNormalizedPointerEventCoords(t):i={x:s/2,y:e/2},i={x:i.x-this.initialSize/2,y:i.y-this.initialSize/2},{startPoint:i,endPoint:n}}startPressAnimation(t){var o;if(!this.mdRoot)return;this.pressed=!0,(o=this.growAnimation)==null||o.cancel(),this.determineRippleSize();const{startPoint:e,endPoint:s}=this.getTranslationCoordinates(t),n=`${e.x}px, ${e.y}px`,i=`${s.x}px, ${s.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${n}) scale(1)`,`translate(${i}) scale(${this.rippleScale})`]},{pseudoElement:ts,duration:Yr,easing:Kr.STANDARD,fill:es})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=$.INACTIVE;const t=this.growAnimation;let e=1/0;if(typeof(t==null?void 0:t.currentTime)=="number"?e=t.currentTime:t!=null&&t.currentTime&&(e=t.currentTime.to("ms").value),e>=fe){this.pressed=!1;return}await new Promise(s=>{setTimeout(s,fe-e)}),this.growAnimation===t&&(this.pressed=!1)}shouldReactToEvent(t){if(this.disabled||!t.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==t.pointerId)return!1;if(t.type==="pointerenter"||t.type==="pointerleave")return!this.isTouch(t);const e=t.buttons===1;return this.isTouch(t)||e}inBounds({x:t,y:e}){const{top:s,left:n,bottom:i,right:o}=this.getBoundingClientRect();return t>=n&&t<=o&&e>=s&&e<=i}isTouch({pointerType:t}){return t==="touch"}async handleEvent(t){if(!(Et!=null&&Et.matches))switch(t.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(t);break;case"pointerdown":await this.handlePointerdown(t);break;case"pointerenter":this.handlePointerenter(t);break;case"pointerleave":this.handlePointerleave(t);break;case"pointerup":this.handlePointerup(t);break}}onControlChange(t,e){for(const s of rs)t==null||t.removeEventListener(s,this),e==null||e.addEventListener(s,this)}}v([b({type:Boolean,reflect:!0})],rt.prototype,"disabled",void 0);v([Gt()],rt.prototype,"hovered",void 0);v([Gt()],rt.prototype,"pressed",void 0);v([Rr(".surface")],rt.prototype,"mdRoot",void 0);/**
143
+ */const Gs=450,tr=225,Ks=.2,Ys=10,Xs=75,Zs=.35,Qs="::after",Js="forwards";var _;(function(r){r[r.INACTIVE=0]="INACTIVE",r[r.TOUCH_DELAY=1]="TOUCH_DELAY",r[r.HOLDING=2]="HOLDING",r[r.WAITING_FOR_CLICK=3]="WAITING_FOR_CLICK"})(_||(_={}));const tn=["click","contextmenu","pointercancel","pointerdown","pointerenter","pointerleave","pointerup"],en=150,Ft=window.matchMedia("(forced-colors: active)");class ut extends E{constructor(){super(...arguments),this.disabled=!1,this.hovered=!1,this.pressed=!1,this.rippleSize="",this.rippleScale="",this.initialSize=0,this.state=_.INACTIVE,this.checkBoundsAfterContextMenu=!1,this.attachableController=new Tr(this,this.onControlChange.bind(this))}get htmlFor(){return this.attachableController.htmlFor}set htmlFor(t){this.attachableController.htmlFor=t}get control(){return this.attachableController.control}set control(t){this.attachableController.control=t}attach(t){this.attachableController.attach(t)}detach(){this.attachableController.detach()}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-hidden","true")}render(){const t={hovered:this.hovered,pressed:this.pressed};return A`<div class="surface ${Or(t)}"></div>`}update(t){t.has("disabled")&&this.disabled&&(this.hovered=!1,this.pressed=!1),super.update(t)}handlePointerenter(t){this.shouldReactToEvent(t)&&(this.hovered=!0)}handlePointerleave(t){this.shouldReactToEvent(t)&&(this.hovered=!1,this.state!==_.INACTIVE&&this.endPressAnimation())}handlePointerup(t){if(this.shouldReactToEvent(t)){if(this.state===_.HOLDING){this.state=_.WAITING_FOR_CLICK;return}if(this.state===_.TOUCH_DELAY){this.state=_.WAITING_FOR_CLICK,this.startPressAnimation(this.rippleStartEvent);return}}}async handlePointerdown(t){if(this.shouldReactToEvent(t)){if(this.rippleStartEvent=t,!this.isTouch(t)){this.state=_.WAITING_FOR_CLICK,this.startPressAnimation(t);return}this.checkBoundsAfterContextMenu&&!this.inBounds(t)||(this.checkBoundsAfterContextMenu=!1,this.state=_.TOUCH_DELAY,await new Promise(e=>{setTimeout(e,en)}),this.state===_.TOUCH_DELAY&&(this.state=_.HOLDING,this.startPressAnimation(t)))}}handleClick(){if(!this.disabled){if(this.state===_.WAITING_FOR_CLICK){this.endPressAnimation();return}this.state===_.INACTIVE&&(this.startPressAnimation(),this.endPressAnimation())}}handlePointercancel(t){this.shouldReactToEvent(t)&&this.endPressAnimation()}handleContextmenu(){this.disabled||(this.checkBoundsAfterContextMenu=!0,this.endPressAnimation())}determineRippleSize(){const{height:t,width:e}=this.getBoundingClientRect(),i=Math.max(t,e),s=Math.max(Zs*i,Xs),n=Math.floor(i*Ks),a=Math.sqrt(e**2+t**2)+Ys;this.initialSize=n,this.rippleScale=`${(a+s)/n}`,this.rippleSize=`${n}px`}getNormalizedPointerEventCoords(t){const{scrollX:e,scrollY:i}=window,{left:s,top:n}=this.getBoundingClientRect(),o=e+s,a=i+n,{pageX:c,pageY:l}=t;return{x:c-o,y:l-a}}getTranslationCoordinates(t){const{height:e,width:i}=this.getBoundingClientRect(),s={x:(i-this.initialSize)/2,y:(e-this.initialSize)/2};let n;return t instanceof PointerEvent?n=this.getNormalizedPointerEventCoords(t):n={x:i/2,y:e/2},n={x:n.x-this.initialSize/2,y:n.y-this.initialSize/2},{startPoint:n,endPoint:s}}startPressAnimation(t){var o;if(!this.mdRoot)return;this.pressed=!0,(o=this.growAnimation)==null||o.cancel(),this.determineRippleSize();const{startPoint:e,endPoint:i}=this.getTranslationCoordinates(t),s=`${e.x}px, ${e.y}px`,n=`${i.x}px, ${i.y}px`;this.growAnimation=this.mdRoot.animate({top:[0,0],left:[0,0],height:[this.rippleSize,this.rippleSize],width:[this.rippleSize,this.rippleSize],transform:[`translate(${s}) scale(1)`,`translate(${n}) scale(${this.rippleScale})`]},{pseudoElement:Qs,duration:Gs,easing:Ws.STANDARD,fill:Js})}async endPressAnimation(){this.rippleStartEvent=void 0,this.state=_.INACTIVE;const t=this.growAnimation;let e=1/0;if(typeof(t==null?void 0:t.currentTime)=="number"?e=t.currentTime:t!=null&&t.currentTime&&(e=t.currentTime.to("ms").value),e>=tr){this.pressed=!1;return}await new Promise(i=>{setTimeout(i,tr-e)}),this.growAnimation===t&&(this.pressed=!1)}shouldReactToEvent(t){if(this.disabled||!t.isPrimary||this.rippleStartEvent&&this.rippleStartEvent.pointerId!==t.pointerId)return!1;if(t.type==="pointerenter"||t.type==="pointerleave")return!this.isTouch(t);const e=t.buttons===1;return this.isTouch(t)||e}inBounds({x:t,y:e}){const{top:i,left:s,bottom:n,right:o}=this.getBoundingClientRect();return t>=s&&t<=o&&e>=i&&e<=n}isTouch({pointerType:t}){return t==="touch"}async handleEvent(t){if(!(Ft!=null&&Ft.matches))switch(t.type){case"click":this.handleClick();break;case"contextmenu":this.handleContextmenu();break;case"pointercancel":this.handlePointercancel(t);break;case"pointerdown":await this.handlePointerdown(t);break;case"pointerenter":this.handlePointerenter(t);break;case"pointerleave":this.handlePointerleave(t);break;case"pointerup":this.handlePointerup(t);break}}onControlChange(t,e){for(const i of tn)t==null||t.removeEventListener(i,this),e==null||e.addEventListener(i,this)}}v([w({type:Boolean,reflect:!0})],ut.prototype,"disabled",void 0);v([fe()],ut.prototype,"hovered",void 0);v([fe()],ut.prototype,"pressed",void 0);v([js(".surface")],ut.prototype,"mdRoot",void 0);/**
86
144
  * @license
87
145
  * Copyright 2024 Google LLC
88
146
  * SPDX-License-Identifier: Apache-2.0
89
- */const ns=F`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
147
+ */const rn=L`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--md-ripple-pressed-color, var(--md-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--md-ripple-hover-color, var(--md-sys-color-on-surface, #1d1b20));opacity:var(--md-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--md-ripple-pressed-opacity, 0.12);transition-duration:105ms}
90
148
  `;/**
91
149
  * @license
92
150
  * Copyright 2022 Google LLC
93
151
  * SPDX-License-Identifier: Apache-2.0
94
- */let Lt=class extends rt{};Lt.styles=[ns];Lt=v([et("md-ripple")],Lt);/**
152
+ */let Jt=class extends ut{};Jt.styles=[rn];Jt=v([Y("md-ripple")],Jt);/**
95
153
  * @license
96
154
  * Copyright 2020 Google LLC
97
155
  * SPDX-License-Identifier: BSD-3-Clause
98
- */const er=Symbol.for(""),is=r=>{if((r==null?void 0:r.r)===er)return r==null?void 0:r._$litStatic$},ve=(r,...t)=>({_$litStatic$:t.reduce((e,s,n)=>e+(i=>{if(i._$litStatic$!==void 0)return i._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${i}. Use 'unsafeStatic' to pass non-literal values, but
99
- take care to ensure page security.`)})(s)+r[n+1],r[0]),r:er}),me=new Map,os=r=>(t,...e)=>{const s=e.length;let n,i;const o=[],l=[];let a,c=0,u=!1;for(;c<s;){for(a=t[c];c<s&&(i=e[c],(n=is(i))!==void 0);)a+=n+t[++c],u=!0;c!==s&&l.push(i),o.push(a),c++}if(c===s&&o.push(t[s]),u){const h=o.join("$$lit$$");(t=me.get(h))===void 0&&(o.raw=o,me.set(h,t=o)),e=l}return r(t,...e)},as=os(w);/**
156
+ */const Ir=Symbol.for(""),sn=r=>{if((r==null?void 0:r.r)===Ir)return r==null?void 0:r._$litStatic$},er=(r,...t)=>({_$litStatic$:t.reduce((e,i,s)=>e+(n=>{if(n._$litStatic$!==void 0)return n._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${n}. Use 'unsafeStatic' to pass non-literal values, but
157
+ take care to ensure page security.`)})(i)+r[s+1],r[0]),r:Ir}),rr=new Map,nn=r=>(t,...e)=>{const i=e.length;let s,n;const o=[],a=[];let c,l=0,u=!1;for(;l<i;){for(c=t[l];l<i&&(n=e[l],(s=sn(n))!==void 0);)c+=s+t[++l],u=!0;l!==i&&a.push(n),o.push(c),l++}if(l===i&&o.push(t[i]),u){const h=o.join("$$lit$$");(t=rr.get(h))===void 0&&(o.raw=o,rr.set(h,t=o)),e=a}return r(t,...e)},on=nn(A);/**
100
158
  * @license
101
159
  * Copyright 2023 Google LLC
102
160
  * SPDX-License-Identifier: Apache-2.0
103
- */const rr=["ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];rr.map(sr);function sr(r){return r.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}/**
161
+ */const Nr=["ariaAtomic","ariaAutoComplete","ariaBusy","ariaChecked","ariaColCount","ariaColIndex","ariaColSpan","ariaCurrent","ariaDisabled","ariaExpanded","ariaHasPopup","ariaHidden","ariaInvalid","ariaKeyShortcuts","ariaLabel","ariaLevel","ariaLive","ariaModal","ariaMultiLine","ariaMultiSelectable","ariaOrientation","ariaPlaceholder","ariaPosInSet","ariaPressed","ariaReadOnly","ariaRequired","ariaRoleDescription","ariaRowCount","ariaRowIndex","ariaRowSpan","ariaSelected","ariaSetSize","ariaSort","ariaValueMax","ariaValueMin","ariaValueNow","ariaValueText"];Nr.map(kr);function kr(r){return r.replace("aria","aria-").replace(/Elements?/g,"").toLowerCase()}/**
104
162
  * @license
105
163
  * Copyright 2023 Google LLC
106
164
  * SPDX-License-Identifier: Apache-2.0
107
- */function ls(r){for(const t of rr)r.createProperty(t,{attribute:sr(t),reflect:!0});r.addInitializer(t=>{const e={hostConnected(){t.setAttribute("role","presentation")}};t.addController(e)})}/**
165
+ */function an(r){for(const t of Nr)r.createProperty(t,{attribute:kr(t),reflect:!0});r.addInitializer(t=>{const e={hostConnected(){t.setAttribute("role","presentation")}};t.addController(e)})}/**
108
166
  * @license
109
167
  * Copyright 2023 Google LLC
110
168
  * SPDX-License-Identifier: Apache-2.0
111
- */const dt=Symbol("internals"),St=Symbol("privateInternals");function cs(r){class t extends r{get[dt](){return this[St]||(this[St]=this.attachInternals()),this[St]}}return t}/**
169
+ */const Ct=Symbol("internals"),qt=Symbol("privateInternals");function cn(r){class t extends r{get[Ct](){return this[qt]||(this[qt]=this.attachInternals()),this[qt]}}return t}/**
112
170
  * @license
113
171
  * Copyright 2023 Google LLC
114
172
  * SPDX-License-Identifier: Apache-2.0
115
- */function hs(r){r.addInitializer(t=>{const e=t;e.addEventListener("click",async s=>{const{type:n,[dt]:i}=e,{form:o}=i;if(!(!o||n==="button")&&(await new Promise(l=>{setTimeout(l)}),!s.defaultPrevented)){if(n==="reset"){o.reset();return}o.addEventListener("submit",l=>{Object.defineProperty(l,"submitter",{configurable:!0,enumerable:!0,get:()=>e})},{capture:!0,once:!0}),i.setFormValue(e.value),o.requestSubmit()}})})}/**
173
+ */function ln(r){r.addInitializer(t=>{const e=t;e.addEventListener("click",async i=>{const{type:s,[Ct]:n}=e,{form:o}=n;if(!(!o||s==="button")&&(await new Promise(a=>{setTimeout(a)}),!i.defaultPrevented)){if(s==="reset"){o.reset();return}o.addEventListener("submit",a=>{Object.defineProperty(a,"submitter",{configurable:!0,enumerable:!0,get:()=>e})},{capture:!0,once:!0}),n.setFormValue(e.value),o.requestSubmit()}})})}/**
116
174
  * @license
117
175
  * Copyright 2022 Google LLC
118
176
  * SPDX-License-Identifier: Apache-2.0
119
- */function ge(r,t=!0){return t&&getComputedStyle(r).getPropertyValue("direction").trim()==="rtl"}/**
177
+ */function ir(r,t=!0){return t&&getComputedStyle(r).getPropertyValue("direction").trim()==="rtl"}/**
120
178
  * @license
121
179
  * Copyright 2018 Google LLC
122
180
  * SPDX-License-Identifier: Apache-2.0
123
- */const us=cs(E);class _ extends us{constructor(){super(...arguments),this.disabled=!1,this.flipIconInRtl=!1,this.href="",this.target="",this.ariaLabelSelected="",this.toggle=!1,this.selected=!1,this.type="submit",this.value="",this.flipIcon=ge(this,this.flipIconInRtl)}get name(){return this.getAttribute("name")??""}set name(t){this.setAttribute("name",t)}get form(){return this[dt].form}get labels(){return this[dt].labels}willUpdate(){this.href&&(this.disabled=!1)}render(){const t=this.href?ve`div`:ve`button`,{ariaLabel:e,ariaHasPopup:s,ariaExpanded:n}=this,i=e&&this.ariaLabelSelected,o=this.toggle?this.selected:d;let l=d;return this.href||(l=i&&this.selected?this.ariaLabelSelected:e),as`<${t}
124
- class="icon-button ${tr(this.getRenderClasses())}"
181
+ */const hn=cn(E);class b extends hn{constructor(){super(...arguments),this.disabled=!1,this.flipIconInRtl=!1,this.href="",this.target="",this.ariaLabelSelected="",this.toggle=!1,this.selected=!1,this.type="submit",this.value="",this.flipIcon=ir(this,this.flipIconInRtl)}get name(){return this.getAttribute("name")??""}set name(t){this.setAttribute("name",t)}get form(){return this[Ct].form}get labels(){return this[Ct].labels}willUpdate(){this.href&&(this.disabled=!1)}render(){const t=this.href?er`div`:er`button`,{ariaLabel:e,ariaHasPopup:i,ariaExpanded:s}=this,n=e&&this.ariaLabelSelected,o=this.toggle?this.selected:d;let a=d;return this.href||(a=n&&this.selected?this.ariaLabelSelected:e),on`<${t}
182
+ class="icon-button ${Or(this.getRenderClasses())}"
125
183
  id="button"
126
- aria-label="${l||d}"
127
- aria-haspopup="${!this.href&&s||d}"
128
- aria-expanded="${!this.href&&n||d}"
184
+ aria-label="${a||d}"
185
+ aria-haspopup="${!this.href&&i||d}"
186
+ aria-expanded="${!this.href&&s||d}"
129
187
  aria-pressed="${o}"
130
188
  ?disabled="${!this.href&&this.disabled}"
131
189
  @click="${this.handleClick}">
@@ -135,83 +193,90 @@
135
193
  ${this.selected?this.renderSelectedIcon():d}
136
194
  ${this.renderTouchTarget()}
137
195
  ${this.href&&this.renderLink()}
138
- </${t}>`}renderLink(){const{ariaLabel:t}=this;return w`
196
+ </${t}>`}renderLink(){const{ariaLabel:t}=this;return A`
139
197
  <a
140
198
  class="link"
141
199
  id="link"
142
200
  href="${this.href}"
143
201
  target="${this.target||d}"
144
202
  aria-label="${t||d}"></a>
145
- `}getRenderClasses(){return{"flip-icon":this.flipIcon,selected:this.toggle&&this.selected}}renderIcon(){return w`<span class="icon"><slot></slot></span>`}renderSelectedIcon(){return w`<span class="icon icon--selected"
203
+ `}getRenderClasses(){return{"flip-icon":this.flipIcon,selected:this.toggle&&this.selected}}renderIcon(){return A`<span class="icon"><slot></slot></span>`}renderSelectedIcon(){return A`<span class="icon icon--selected"
146
204
  ><slot name="selected"><slot></slot></slot
147
- ></span>`}renderTouchTarget(){return w`<span class="touch"></span>`}renderFocusRing(){return w`<md-focus-ring
205
+ ></span>`}renderTouchTarget(){return A`<span class="touch"></span>`}renderFocusRing(){return A`<md-focus-ring
148
206
  part="focus-ring"
149
- for=${this.href?"link":"button"}></md-focus-ring>`}renderRipple(){return w`<md-ripple
207
+ for=${this.href?"link":"button"}></md-focus-ring>`}renderRipple(){return A`<md-ripple
150
208
  for=${this.href?"link":d}
151
- ?disabled="${!this.href&&this.disabled}"></md-ripple>`}connectedCallback(){this.flipIcon=ge(this,this.flipIconInRtl),super.connectedCallback()}async handleClick(t){await 0,!(!this.toggle||this.disabled||t.defaultPrevented)&&(this.selected=!this.selected,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}ls(_),hs(_);_.formAssociated=!0;_.shadowRootOptions={mode:"open",delegatesFocus:!0};v([b({type:Boolean,reflect:!0})],_.prototype,"disabled",void 0);v([b({type:Boolean,attribute:"flip-icon-in-rtl"})],_.prototype,"flipIconInRtl",void 0);v([b()],_.prototype,"href",void 0);v([b()],_.prototype,"target",void 0);v([b({attribute:"aria-label-selected"})],_.prototype,"ariaLabelSelected",void 0);v([b({type:Boolean})],_.prototype,"toggle",void 0);v([b({type:Boolean,reflect:!0})],_.prototype,"selected",void 0);v([b()],_.prototype,"type",void 0);v([b({reflect:!0})],_.prototype,"value",void 0);v([Gt()],_.prototype,"flipIcon",void 0);/**
209
+ ?disabled="${!this.href&&this.disabled}"></md-ripple>`}connectedCallback(){this.flipIcon=ir(this,this.flipIconInRtl),super.connectedCallback()}async handleClick(t){await 0,!(!this.toggle||this.disabled||t.defaultPrevented)&&(this.selected=!this.selected,this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}}an(b),ln(b);b.formAssociated=!0;b.shadowRootOptions={mode:"open",delegatesFocus:!0};v([w({type:Boolean,reflect:!0})],b.prototype,"disabled",void 0);v([w({type:Boolean,attribute:"flip-icon-in-rtl"})],b.prototype,"flipIconInRtl",void 0);v([w()],b.prototype,"href",void 0);v([w()],b.prototype,"target",void 0);v([w({attribute:"aria-label-selected"})],b.prototype,"ariaLabelSelected",void 0);v([w({type:Boolean})],b.prototype,"toggle",void 0);v([w({type:Boolean,reflect:!0})],b.prototype,"selected",void 0);v([w()],b.prototype,"type",void 0);v([w({reflect:!0})],b.prototype,"value",void 0);v([fe()],b.prototype,"flipIcon",void 0);/**
152
210
  * @license
153
211
  * Copyright 2024 Google LLC
154
212
  * SPDX-License-Identifier: Apache-2.0
155
- */const ds=F`:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host([disabled]){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{height:100%;outline:none;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host([disabled]){--_disabled-icon-opacity: 1}}
213
+ */const un=L`:host{display:inline-flex;outline:none;-webkit-tap-highlight-color:rgba(0,0,0,0);height:var(--_container-height);width:var(--_container-width);justify-content:center}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_container-height))/2) max(0px,(48px - var(--_container-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_container-shape-start-start);--md-focus-ring-shape-start-end: var(--_container-shape-start-end);--md-focus-ring-shape-end-end: var(--_container-shape-end-end);--md-focus-ring-shape-end-start: var(--_container-shape-end-start)}:host([disabled]){pointer-events:none}.icon-button{place-items:center;background:none;border:none;box-sizing:border-box;cursor:pointer;display:flex;place-content:center;outline:none;padding:0;position:relative;text-decoration:none;user-select:none;z-index:0;flex:1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.icon ::slotted(*){font-size:var(--_icon-size);height:var(--_icon-size);width:var(--_icon-size);font-weight:inherit}md-ripple{z-index:-1;border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-start-radius:var(--_container-shape-end-start);border-end-end-radius:var(--_container-shape-end-end)}.flip-icon .icon{transform:scaleX(-1)}.icon{display:inline-flex}.link{height:100%;outline:none;position:absolute;width:100%}.touch{position:absolute;height:max(48px,100%);width:max(48px,100%)}:host([touch-target=none]) .touch{display:none}@media(forced-colors: active){:host([disabled]){--_disabled-icon-opacity: 1}}
156
214
  `;/**
157
215
  * @license
158
216
  * Copyright 2024 Google LLC
159
217
  * SPDX-License-Identifier: Apache-2.0
160
- */const ps=F`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:disabled{color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:disabled .icon{opacity:var(--_disabled-icon-opacity)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}
218
+ */const dn=L`:host{--_disabled-icon-color: var(--md-icon-button-disabled-icon-color, var(--md-sys-color-on-surface, #1d1b20));--_disabled-icon-opacity: var(--md-icon-button-disabled-icon-opacity, 0.38);--_icon-size: var(--md-icon-button-icon-size, 24px);--_selected-focus-icon-color: var(--md-icon-button-selected-focus-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-icon-color: var(--md-icon-button-selected-hover-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-color: var(--md-icon-button-selected-hover-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-hover-state-layer-opacity: var(--md-icon-button-selected-hover-state-layer-opacity, 0.08);--_selected-icon-color: var(--md-icon-button-selected-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-icon-color: var(--md-icon-button-selected-pressed-icon-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-color: var(--md-icon-button-selected-pressed-state-layer-color, var(--md-sys-color-primary, #6750a4));--_selected-pressed-state-layer-opacity: var(--md-icon-button-selected-pressed-state-layer-opacity, 0.12);--_state-layer-height: var(--md-icon-button-state-layer-height, 40px);--_state-layer-shape: var(--md-icon-button-state-layer-shape, var(--md-sys-shape-corner-full, 9999px));--_state-layer-width: var(--md-icon-button-state-layer-width, 40px);--_focus-icon-color: var(--md-icon-button-focus-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-icon-color: var(--md-icon-button-hover-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-color: var(--md-icon-button-hover-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_hover-state-layer-opacity: var(--md-icon-button-hover-state-layer-opacity, 0.08);--_icon-color: var(--md-icon-button-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--md-icon-button-pressed-icon-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-color: var(--md-icon-button-pressed-state-layer-color, var(--md-sys-color-on-surface-variant, #49454f));--_pressed-state-layer-opacity: var(--md-icon-button-pressed-state-layer-opacity, 0.12);--_container-shape-start-start: 0;--_container-shape-start-end: 0;--_container-shape-end-end: 0;--_container-shape-end-start: 0;--_container-height: 0;--_container-width: 0;height:var(--_state-layer-height);width:var(--_state-layer-width)}:host([touch-target=wrapper]){margin:max(0px,(48px - var(--_state-layer-height))/2) max(0px,(48px - var(--_state-layer-width))/2)}md-focus-ring{--md-focus-ring-shape-start-start: var(--_state-layer-shape);--md-focus-ring-shape-start-end: var(--_state-layer-shape);--md-focus-ring-shape-end-end: var(--_state-layer-shape);--md-focus-ring-shape-end-start: var(--_state-layer-shape)}.standard{background-color:rgba(0,0,0,0);color:var(--_icon-color);--md-ripple-hover-color: var(--_hover-state-layer-color);--md-ripple-hover-opacity: var(--_hover-state-layer-opacity);--md-ripple-pressed-color: var(--_pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_pressed-state-layer-opacity)}.standard:hover{color:var(--_hover-icon-color)}.standard:focus{color:var(--_focus-icon-color)}.standard:active{color:var(--_pressed-icon-color)}.standard:disabled{color:var(--_disabled-icon-color)}md-ripple{border-radius:var(--_state-layer-shape)}.standard:disabled .icon{opacity:var(--_disabled-icon-opacity)}.selected{--md-ripple-hover-color: var(--_selected-hover-state-layer-color);--md-ripple-hover-opacity: var(--_selected-hover-state-layer-opacity);--md-ripple-pressed-color: var(--_selected-pressed-state-layer-color);--md-ripple-pressed-opacity: var(--_selected-pressed-state-layer-opacity)}.selected:not(:disabled){color:var(--_selected-icon-color)}.selected:not(:disabled):hover{color:var(--_selected-hover-icon-color)}.selected:not(:disabled):focus{color:var(--_selected-focus-icon-color)}.selected:not(:disabled):active{color:var(--_selected-pressed-icon-color)}
161
219
  `;/**
162
220
  * @license
163
221
  * Copyright 2021 Google LLC
164
222
  * SPDX-License-Identifier: Apache-2.0
165
- */let Dt=class extends _{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};Dt.styles=[ds,ps];Dt=v([et("md-icon-button")],Dt);/*
166
- * @license
167
- * BSD License
168
- *
169
- * Copyright (c) 2020, UXLand
170
- *
171
- * All rights reserved.
172
- * Redistribution and use in source and binary forms, with or without
173
- * modification, are permitted provided that the following conditions are met:
174
- * 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
175
- * 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
176
- * 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
177
- * 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
178
- *
179
- * THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
180
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
181
- */const fs=()=>{};function f(r){return r!=null&&typeof r=="object"&&r["@@functional/placeholder"]===!0}function A(r){return function t(e){return arguments.length===0||f(e)?t:r.apply(this,arguments)}}function y(r){return function t(e,s){switch(arguments.length){case 0:return t;case 1:return f(e)?t:A(function(n){return r(e,n)});default:return f(e)&&f(s)?t:f(e)?A(function(n){return r(n,s)}):f(s)?A(function(n){return r(e,n)}):r(e,s)}}}function vs(r){var t=Object.prototype.toString.call(r);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}function ye(r){for(var t=[],e;!(e=r.next()).done;)t.push(e.value);return t}function $e(r,t,e){for(var s=0,n=e.length;s<n;){if(r(t,e[s]))return!0;s+=1}return!1}function ms(r){var t=String(r).match(/^function (\w*)/);return t==null?"":t[1]}function pt(r,t){return Object.prototype.hasOwnProperty.call(t,r)}function gs(r,t){return r===t?r!==0||1/r===1/t:r!==r&&t!==t}const Ct=typeof Object.is=="function"?Object.is:gs;var _e=Object.prototype.toString,ys=function(){return _e.call(arguments)==="[object Arguments]"?function(t){return _e.call(t)==="[object Arguments]"}:function(t){return pt("callee",t)}}(),$s=!{toString:null}.propertyIsEnumerable("toString"),be=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Ae=function(){return arguments.propertyIsEnumerable("length")}(),_s=function(t,e){for(var s=0;s<t.length;){if(t[s]===e)return!0;s+=1}return!1},L=A(typeof Object.keys=="function"&&!Ae?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var e,s,n=[],i=Ae&&ys(t);for(e in t)pt(e,t)&&(!i||e!=="length")&&(n[n.length]=e);if($s)for(s=be.length-1;s>=0;)e=be[s],pt(e,t)&&!_s(n,e)&&(n[n.length]=e),s-=1;return n}),we=A(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function Ee(r,t,e,s){var n=ye(r),i=ye(t);function o(l,a){return Xt(l,a,e.slice(),s.slice())}return!$e(function(l,a){return!$e(o,a,l)},i,n)}function Xt(r,t,e,s){if(Ct(r,t))return!0;var n=we(r);if(n!==we(t)||r==null||t==null)return!1;if(typeof r["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof r["fantasy-land/equals"]=="function"&&r["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](r);if(typeof r.equals=="function"||typeof t.equals=="function")return typeof r.equals=="function"&&r.equals(t)&&typeof t.equals=="function"&&t.equals(r);switch(n){case"Arguments":case"Array":case"Object":if(typeof r.constructor=="function"&&ms(r.constructor)==="Promise")return r===t;break;case"Boolean":case"Number":case"String":if(!(typeof r==typeof t&&Ct(r.valueOf(),t.valueOf())))return!1;break;case"Date":if(!Ct(r.valueOf(),t.valueOf()))return!1;break;case"Error":return r.name===t.name&&r.message===t.message;case"RegExp":if(!(r.source===t.source&&r.global===t.global&&r.ignoreCase===t.ignoreCase&&r.multiline===t.multiline&&r.sticky===t.sticky&&r.unicode===t.unicode))return!1;break}for(var i=e.length-1;i>=0;){if(e[i]===r)return s[i]===t;i-=1}switch(n){case"Map":return r.size!==t.size?!1:Ee(r.entries(),t.entries(),e.concat([r]),s.concat([t]));case"Set":return r.size!==t.size?!1:Ee(r.values(),t.values(),e.concat([r]),s.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=L(r);if(o.length!==L(t).length)return!1;var l=e.concat([r]),a=s.concat([t]);for(i=o.length-1;i>=0;){var c=o[i];if(!(pt(c,t)&&Xt(t[c],r[c],l,a)))return!1;i-=1}return!0}var bs=y(function(t,e){return Xt(t,e,[],[])});function As(r,t,e){var s,n;if(typeof r.indexOf=="function")switch(typeof t){case"number":if(t===0){for(s=1/t;e<r.length;){if(n=r[e],n===0&&1/n===s)return e;e+=1}return-1}else if(t!==t){for(;e<r.length;){if(n=r[e],typeof n=="number"&&n!==n)return e;e+=1}return-1}return r.indexOf(t,e);case"string":case"boolean":case"function":case"undefined":return r.indexOf(t,e);case"object":if(t===null)return r.indexOf(t,e)}for(;e<r.length;){if(bs(r[e],t))return e;e+=1}return-1}function ws(r,t){return As(t,r,0)>=0}function at(r,t){for(var e=0,s=t.length,n=Array(s);e<s;)n[e]=r(t[e]),e+=1;return n}function Pt(r){var t=r.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+t.replace(/"/g,'\\"')+'"'}var q=function(t){return(t<10?"0":"")+t},Es=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+q(t.getUTCMonth()+1)+"-"+q(t.getUTCDate())+"T"+q(t.getUTCHours())+":"+q(t.getUTCMinutes())+":"+q(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Ss(r){return function(){return!r.apply(this,arguments)}}const Zt=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Cs(r){return r!=null&&typeof r["@@transducer/step"]=="function"}function nr(r,t,e){return function(){if(arguments.length===0)return e();var s=Array.prototype.slice.call(arguments,0),n=s.pop();if(!Zt(n)){for(var i=0;i<r.length;){if(typeof n[r[i]]=="function")return n[r[i]].apply(n,s);i+=1}if(Cs(n)){var o=t.apply(null,s);return o(n)}}return e.apply(this,arguments)}}function Ps(r,t){for(var e=0,s=t.length,n=[];e<s;)r(t[e])&&(n[n.length]=t[e]),e+=1;return n}function xs(r){return Object.prototype.toString.call(r)==="[object Object]"}function Ts(r){return Object.prototype.toString.call(r)==="[object String]"}var Rs=A(function(t){return Zt(t)?!0:!t||typeof t!="object"||Ts(t)?!1:t.nodeType===1?!!t.length:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),Os=function(){function r(t){this.f=t}return r.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},r.prototype["@@transducer/result"]=function(t){return t},r.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},r}();function Is(r){return new Os(r)}function yt(r,t){switch(r){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,s){return t.apply(this,arguments)};case 3:return function(e,s,n){return t.apply(this,arguments)};case 4:return function(e,s,n,i){return t.apply(this,arguments)};case 5:return function(e,s,n,i,o){return t.apply(this,arguments)};case 6:return function(e,s,n,i,o,l){return t.apply(this,arguments)};case 7:return function(e,s,n,i,o,l,a){return t.apply(this,arguments)};case 8:return function(e,s,n,i,o,l,a,c){return t.apply(this,arguments)};case 9:return function(e,s,n,i,o,l,a,c,u){return t.apply(this,arguments)};case 10:return function(e,s,n,i,o,l,a,c,u,h){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var ir=y(function(t,e){return yt(t.length,function(){return t.apply(e,arguments)})});function Ns(r,t,e){for(var s=0,n=e.length;s<n;){if(t=r["@@transducer/step"](t,e[s]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return r["@@transducer/result"](t)}function Se(r,t,e){for(var s=e.next();!s.done;){if(t=r["@@transducer/step"](t,s.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=e.next()}return r["@@transducer/result"](t)}function Ce(r,t,e,s){return r["@@transducer/result"](e[s](ir(r["@@transducer/step"],r),t))}var Pe=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Jt(r,t,e){if(typeof r=="function"&&(r=Is(r)),Rs(e))return Ns(r,t,e);if(typeof e["fantasy-land/reduce"]=="function")return Ce(r,t,e,"fantasy-land/reduce");if(e[Pe]!=null)return Se(r,t,e[Pe]());if(typeof e.next=="function")return Se(r,t,e);if(typeof e.reduce=="function")return Ce(r,t,e,"reduce");throw new TypeError("reduce: list must be array or iterable")}const ft={init:function(){return this.xf["@@transducer/init"]()},result:function(r){return this.xf["@@transducer/result"](r)}};var Us=function(){function r(t,e){this.xf=e,this.f=t}return r.prototype["@@transducer/init"]=ft.init,r.prototype["@@transducer/result"]=ft.result,r.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},r}(),Ms=y(function(t,e){return new Us(t,e)});const ks=Ms;var Hs=y(nr(["filter"],ks,function(r,t){return xs(t)?Jt(function(e,s){return r(t[s])&&(e[s]=t[s]),e},{},L(t)):Ps(r,t)})),js=y(function(t,e){return Hs(Ss(t),e)});const Ls=js;function or(r,t){var e=function(o){var l=t.concat([r]);return ws(o,l)?"<Circular>":or(o,l)},s=function(i,o){return at(function(l){return Pt(l)+": "+e(i[l])},o.slice().sort())};switch(Object.prototype.toString.call(r)){case"[object Arguments]":return"(function() { return arguments; }("+at(e,r).join(", ")+"))";case"[object Array]":return"["+at(e,r).concat(s(r,Ls(function(i){return/^\d+$/.test(i)},L(r)))).join(", ")+"]";case"[object Boolean]":return typeof r=="object"?"new Boolean("+e(r.valueOf())+")":r.toString();case"[object Date]":return"new Date("+(isNaN(r.valueOf())?e(NaN):Pt(Es(r)))+")";case"[object Null]":return"null";case"[object Number]":return typeof r=="object"?"new Number("+e(r.valueOf())+")":1/r===-1/0?"-0":r.toString(10);case"[object String]":return typeof r=="object"?"new String("+e(r.valueOf())+")":Pt(r);case"[object Undefined]":return"undefined";default:if(typeof r.toString=="function"){var n=r.toString();if(n!=="[object Object]")return n}return"{"+s(r,L(r)).join(", ")+"}"}}function Ds(r,t){if(t==null||!vs(t.then))throw new TypeError("`"+r+"` expected a Promise, received "+or(t,[]))}var zs=y(function(t,e){return Ds("andThen",e),e.then(t)}),Bs=function(){function r(t,e){this.xf=e,this.f=t}return r.prototype["@@transducer/init"]=ft.init,r.prototype["@@transducer/result"]=ft.result,r.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},r}(),Fs=y(function(t,e){return new Bs(t,e)});const Vs=Fs;function ar(r,t,e){return function(){for(var s=[],n=0,i=r,o=0;o<t.length||n<arguments.length;){var l;o<t.length&&(!f(t[o])||n>=arguments.length)?l=t[o]:(l=arguments[n],n+=1),s[o]=l,f(l)||(i-=1),o+=1}return i<=0?e.apply(this,s):yt(i,ar(r,s,e))}}var qs=y(function(t,e){return t===1?A(e):yt(t,ar(t,[],e))}),Ws=y(nr(["fantasy-land/map","map"],Vs,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return qs(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return Jt(function(s,n){return s[n]=t(e[n]),s},{},L(e));default:return at(t,e)}}));function Gs(r,t){return function(){return t.call(this,r.apply(this,arguments))}}function lr(r){return function t(e,s,n){switch(arguments.length){case 0:return t;case 1:return f(e)?t:y(function(i,o){return r(e,i,o)});case 2:return f(e)&&f(s)?t:f(e)?y(function(i,o){return r(i,s,o)}):f(s)?y(function(i,o){return r(e,i,o)}):A(function(i){return r(e,s,i)});default:return f(e)&&f(s)&&f(n)?t:f(e)&&f(s)?y(function(i,o){return r(i,o,n)}):f(e)&&f(n)?y(function(i,o){return r(i,s,o)}):f(s)&&f(n)?y(function(i,o){return r(e,i,o)}):f(e)?A(function(i){return r(i,s,n)}):f(s)?A(function(i){return r(e,i,n)}):f(n)?A(function(i){return r(e,s,i)}):r(e,s,n)}}}var Ks=lr(Jt);function cr(r,t){return function(){var e=arguments.length;if(e===0)return t();var s=arguments[e-1];return Zt(s)||typeof s[r]!="function"?t.apply(this,arguments):s[r].apply(s,Array.prototype.slice.call(arguments,0,e-1))}}var Ys=lr(cr("slice",function(t,e,s){return Array.prototype.slice.call(s,t,e)})),Xs=A(cr("tail",Ys(1,1/0)));function hr(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return yt(arguments[0].length,Ks(Gs,arguments[0],Xs(arguments)))}let Zs=class{constructor(t){this.targetRegion=t}async attach(){const t=this.targetRegion.regionManager.getRegisteredViews(this.targetRegion.name);return hr(Ws(e=>this.targetRegion.addView(e.key,e.view)),ir(Promise.all,Promise),zs(fs))(t)}detach(){return Promise.resolve()}},Js=class{constructor(){this.registry=[]}get behaviors(){return[...this.registry]}register(t){this.behaviors.some(e=>e===t)||this.registry.push(t)}};const ur=new Js;ur.register(Zs);const Qs=ur;let tn=class{constructor(t){this.host=t}get behaviors(){return Qs.behaviors.map(t=>new t(this.host.uxlRegion))}activateView(t){return this.host.contains(t)||this.addViewToHost(t),t.hidden=!1,Promise.resolve(void 0)}deactivateView(t){return t.view&&t.view.removeFromDomWhenDeactivated?this.removeViewFromHost(t):t.hidden=!0,Promise.resolve(null)}removeView(t){this.removeViewFromHost(t)}viewAdded(t){}addViewToHost(t){this.host.appendChild(t)}removeViewFromHost(t){this.host.removeChild(t),this.host.uxlRegion.viewRemovedFromDom(t.view)}};const en=(r,t)=>!r.sortHint&&!t.sortHint||!t.sortHint?-1:r.sortHint?r.sortHint.localeCompare(t.sortHint):1;let rn=class extends tn{async viewAdded(t){await this.host.uxlRegion.activate(t)}addViewToHost(t){const e=this.host.uxlRegion.currentActiveViews.sort(en).indexOf(t.view);e>=this.host.children.length?super.addViewToHost(t):this.host.insertBefore(t,this.host.children[e])}};const sn=(r,t)=>new rn(t),xt="default",xe="dynamic";let nn=class{constructor(){this.adapterRegistry=new Map,this.adapterRegistry.set(xe,[])}registerAdapterFactory(t,e){this.adapterRegistry.set(t,e)}get dynamicFactories(){return this.adapterRegistry.get(xe)}registerDynamicAdapterFactory(t){this.dynamicFactories.indexOf(t)===-1&&this.dynamicFactories.push(t)}getDynamicFactory(t){return this.dynamicFactories.reduce((e,s)=>e||s(t),null)}getAdapterFactory(t){return this.getDynamicFactory(t)||(this.adapterRegistry.has(t.constructor)?this.adapterRegistry.get(t.constructor):this.adapterRegistry.has(t.localName)?this.adapterRegistry.get(t.localName):this.adapterRegistry.has(t.tagName)?this.adapterRegistry.get(t.tagName):this.adapterRegistry.has(xt)?this.adapterRegistry.get(xt):null)}registerDefaultAdapterFactory(t){this.adapterRegistry.set(xt,t)}};const on=new nn,dr=new WeakMap;function an(r,t){let e=t;for(;e;){if(dr.get(e)===r)return!0;e=Object.getPrototypeOf(e)}return!1}function pr(r){return t=>{if(an(r,t))return t;const e=r(t);return dr.set(e,r),e}}/**
182
- * @license
183
- * Copyright 2019 Google LLC
184
- * SPDX-License-Identifier: BSD-3-Clause
185
- */const lt=window,Qt=lt.ShadowRoot&&(lt.ShadyCSS===void 0||lt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fr=Symbol(),Te=new WeakMap;let ln=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==fr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Qt&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=Te.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Te.set(e,t))}return t}toString(){return this.cssText}};const cn=r=>new ln(typeof r=="string"?r:r+"",void 0,fr),hn=(r,t)=>{Qt?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const s=document.createElement("style"),n=lt.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,r.appendChild(s)})},Re=Qt?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return cn(e)})(r):r;/**
186
- * @license
187
- * Copyright 2017 Google LLC
188
- * SPDX-License-Identifier: BSD-3-Clause
189
- */var Tt;const vt=window,Oe=vt.trustedTypes,un=Oe?Oe.emptyScript:"",Ie=vt.reactiveElementPolyfillSupport,zt={toAttribute(r,t){switch(t){case Boolean:r=r?un:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},te=(r,t)=>t!==r&&(t==t||r==r),Rt={attribute:!0,type:String,converter:zt,reflect:!1,hasChanged:te},Bt="finalized";let H=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,s)=>{const n=this._$Ep(s,e);n!==void 0&&(this._$Ev.set(n,s),t.push(n))}),t}static createProperty(t,e=Rt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=typeof t=="symbol"?Symbol():"__"+t,n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(n){const i=this[t];this[e]=n,this.requestUpdate(t,i,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Rt}static finalize(){if(this.hasOwnProperty(Bt))return!1;this[Bt]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const n of s)this.createProperty(n,e[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const n of s)e.unshift(Re(n))}else t!==void 0&&e.push(Re(t));return e}static _$Ep(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return hn(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=Rt){var n;const i=this.constructor._$Ep(t,s);if(i!==void 0&&s.reflect===!0){const o=(((n=s.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?s.converter:zt).toAttribute(e,s.type);this._$El=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$El=null}}_$AK(t,e){var s;const n=this.constructor,i=n._$Ev.get(t);if(i!==void 0&&this._$El!==i){const o=n.getPropertyOptions(i),l=typeof o.converter=="function"?{fromAttribute:o.converter}:((s=o.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?o.converter:zt;this._$El=i,this[i]=l.fromAttribute(e,o.type),this._$El=null}}requestUpdate(t,e,s){let n=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||te)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,i)=>this[i]=n),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(n=>{var i;return(i=n.hostUpdate)===null||i===void 0?void 0:i.call(n)}),this.update(s)):this._$Ek()}catch(n){throw e=!1,this._$Ek(),n}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var n;return(n=s.hostUpdated)===null||n===void 0?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};H[Bt]=!0,H.elementProperties=new Map,H.elementStyles=[],H.shadowRootOptions={mode:"open"},Ie==null||Ie({ReactiveElement:H}),((Tt=vt.reactiveElementVersions)!==null&&Tt!==void 0?Tt:vt.reactiveElementVersions=[]).push("1.6.3");/**
190
- * @license
191
- * Copyright 2017 Google LLC
192
- * SPDX-License-Identifier: BSD-3-Clause
193
- */var Ot;const mt=window,D=mt.trustedTypes,Ne=D?D.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ft="$lit$",C=`lit$${(Math.random()+"").slice(9)}$`,vr="?"+C,dn=`<${vr}>`,U=document,Z=()=>U.createComment(""),J=r=>r===null||typeof r!="object"&&typeof r!="function",mr=Array.isArray,pn=r=>mr(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",It=`[
194
- \f\r]`,W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ue=/-->/g,Me=/>/g,T=RegExp(`>|${It}(?:([^\\s"'>=/]+)(${It}*=${It}*(?:[^
195
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ke=/'/g,He=/"/g,gr=/^(?:script|style|textarea|title)$/i,z=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),je=new WeakMap,O=U.createTreeWalker(U,129,null,!1);function yr(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ne!==void 0?Ne.createHTML(t):t}const fn=(r,t)=>{const e=r.length-1,s=[];let n,i=t===2?"<svg>":"",o=W;for(let l=0;l<e;l++){const a=r[l];let c,u,h=-1,p=0;for(;p<a.length&&(o.lastIndex=p,u=o.exec(a),u!==null);)p=o.lastIndex,o===W?u[1]==="!--"?o=Ue:u[1]!==void 0?o=Me:u[2]!==void 0?(gr.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=T):u[3]!==void 0&&(o=T):o===T?u[0]===">"?(o=n??W,h=-1):u[1]===void 0?h=-2:(h=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?T:u[3]==='"'?He:ke):o===He||o===ke?o=T:o===Ue||o===Me?o=W:(o=T,n=void 0);const m=o===T&&r[l+1].startsWith("/>")?" ":"";i+=o===W?a+dn:h>=0?(s.push(c),a.slice(0,h)+Ft+a.slice(h)+C+m):a+C+(h===-2?(s.push(void 0),l):m)}return[yr(r,i+(r[e]||"<?>")+(t===2?"</svg>":"")),s]};class Q{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let i=0,o=0;const l=t.length-1,a=this.parts,[c,u]=fn(t,e);if(this.el=Q.createElement(c,s),O.currentNode=this.el.content,e===2){const h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(n=O.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes()){const h=[];for(const p of n.getAttributeNames())if(p.endsWith(Ft)||p.startsWith(C)){const m=u[o++];if(h.push(p),m!==void 0){const M=n.getAttribute(m.toLowerCase()+Ft).split(C),nt=/([.?@])?(.*)/.exec(m);a.push({type:1,index:i,name:nt[2],strings:M,ctor:nt[1]==="."?mn:nt[1]==="?"?yn:nt[1]==="@"?$n:$t})}else a.push({type:6,index:i})}for(const p of h)n.removeAttribute(p)}if(gr.test(n.tagName)){const h=n.textContent.split(C),p=h.length-1;if(p>0){n.textContent=D?D.emptyScript:"";for(let m=0;m<p;m++)n.append(h[m],Z()),O.nextNode(),a.push({type:2,index:++i});n.append(h[p],Z())}}}else if(n.nodeType===8)if(n.data===vr)a.push({type:2,index:i});else{let h=-1;for(;(h=n.data.indexOf(C,h+1))!==-1;)a.push({type:7,index:i}),h+=C.length-1}i++}}static createElement(t,e){const s=U.createElement("template");return s.innerHTML=t,s}}function B(r,t,e=r,s){var n,i,o,l;if(t===z)return t;let a=s!==void 0?(n=e._$Co)===null||n===void 0?void 0:n[s]:e._$Cl;const c=J(t)?void 0:t._$litDirective$;return(a==null?void 0:a.constructor)!==c&&((i=a==null?void 0:a._$AO)===null||i===void 0||i.call(a,!1),c===void 0?a=void 0:(a=new c(r),a._$AT(r,e,s)),s!==void 0?((o=(l=e)._$Co)!==null&&o!==void 0?o:l._$Co=[])[s]=a:e._$Cl=a),a!==void 0&&(t=B(r,a._$AS(r,t.values),a,s)),t}class vn{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:s},parts:n}=this._$AD,i=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:U).importNode(s,!0);O.currentNode=i;let o=O.nextNode(),l=0,a=0,c=n[0];for(;c!==void 0;){if(l===c.index){let u;c.type===2?u=new st(o,o.nextSibling,this,t):c.type===1?u=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(u=new _n(o,this,t)),this._$AV.push(u),c=n[++a]}l!==(c==null?void 0:c.index)&&(o=O.nextNode(),l++)}return O.currentNode=U,i}v(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class st{constructor(t,e,s,n){var i;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cp=(i=n==null?void 0:n.isConnected)===null||i===void 0||i}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=B(this,t,e),J(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==z&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):pn(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==g&&J(this._$AH)?this._$AA.nextSibling.data=t:this.$(U.createTextNode(t)),this._$AH=t}g(t){var e;const{values:s,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Q.createElement(yr(n.h,n.h[0]),this.options)),n);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===i)this._$AH.v(s);else{const o=new vn(i,this),l=o.u(this.options);o.v(s),this.$(l),this._$AH=o}}_$AC(t){let e=je.get(t.strings);return e===void 0&&je.set(t.strings,e=new Q(t)),e}T(t){mr(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,n=0;for(const i of t)n===e.length?e.push(s=new st(this.k(Z()),this.k(Z()),this,this.options)):s=e[n],s._$AI(i),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,e);t&&t!==this._$AB;){const n=t.nextSibling;t.remove(),t=n}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}let $t=class{constructor(t,e,s,n,i){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=i,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=g}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,n){const i=this.strings;let o=!1;if(i===void 0)t=B(this,t,e,0),o=!J(t)||t!==this._$AH&&t!==z,o&&(this._$AH=t);else{const l=t;let a,c;for(t=i[0],a=0;a<i.length-1;a++)c=B(this,l[s+a],e,a),c===z&&(c=this._$AH[a]),o||(o=!J(c)||c!==this._$AH[a]),c===g?t=g:t!==g&&(t+=(c??"")+i[a+1]),this._$AH[a]=c}o&&!n&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};class mn extends $t{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}}const gn=D?D.emptyScript:"";class yn extends $t{constructor(){super(...arguments),this.type=4}j(t){t&&t!==g?this.element.setAttribute(this.name,gn):this.element.removeAttribute(this.name)}}class $n extends $t{constructor(t,e,s,n,i){super(t,e,s,n,i),this.type=5}_$AI(t,e=this){var s;if((t=(s=B(this,t,e,0))!==null&&s!==void 0?s:g)===z)return;const n=this._$AH,i=t===g&&n!==g||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==g&&(n===g||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}}class _n{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){B(this,t)}}const Le=mt.litHtmlPolyfillSupport;Le==null||Le(Q,st),((Ot=mt.litHtmlVersions)!==null&&Ot!==void 0?Ot:mt.litHtmlVersions=[]).push("2.8.0");const bn=(r,t,e)=>{var s,n;const i=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:t;let o=i._$litPart$;if(o===void 0){const l=(n=e==null?void 0:e.renderBefore)!==null&&n!==void 0?n:null;i._$litPart$=o=new st(t.insertBefore(Z(),l),l,void 0,e??{})}return o._$AI(r),o};/**
196
- * @license
197
- * Copyright 2017 Google LLC
198
- * SPDX-License-Identifier: BSD-3-Clause
199
- */var Nt,Ut;let ct=class extends H{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=bn(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return z}};ct.finalized=!0,ct._$litElement$=!0,(Nt=globalThis.litElementHydrateSupport)===null||Nt===void 0||Nt.call(globalThis,{LitElement:ct});const De=globalThis.litElementPolyfillSupport;De==null||De({LitElement:ct});((Ut=globalThis.litElementVersions)!==null&&Ut!==void 0?Ut:globalThis.litElementVersions=[]).push("3.3.3");var An=y(function(t,e){return e==null||e!==e?t:e});const wn=(r,t)=>t.constructor._classProperties?t.constructor._classProperties.get(r).hasChanged:void 0,En=hr(wn,An(te)),Sn=pr(r=>{class t extends r{requestUpdate(s,n){const i=super.requestUpdate?super.requestUpdate(s,n):Promise.resolve(null);return En(s,this)(this[s],n)&&this[`${String(s)}Changed`]&&this[`${String(s)}Changed`](this[s],n),i}}return t});on.registerDefaultAdapterFactory(sn);/**
200
- * @license
201
- * Copyright 2017 Google LLC
202
- * SPDX-License-Identifier: BSD-3-Clause
203
- */const Cn=(r,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,r)}},Pn=(r,t,e)=>{t.constructor.createProperty(e,r)};function ze(r){return(t,e)=>e!==void 0?Pn(r,t,e):Cn(r,t)}/**
204
- * @license
205
- * Copyright 2021 Google LLC
206
- * SPDX-License-Identifier: BSD-3-Clause
207
- */var Mt;((Mt=window.HTMLSlotElement)===null||Mt===void 0?void 0:Mt.prototype.assignedElements)!=null;var xn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,Be=(r,t,e,s)=>{for(var n=s>1?void 0:s?Tn(t,e):t,i=r.length-1,o;i>=0;i--)(o=r[i])&&(n=(s?o(t,e,n):o(n))||n);return s&&n&&xn(t,e,n),n};const Rn=pr(r=>{class t extends Sn(r){activeChanged(s,n){}regionContextChanged(s,n){}}return Be([ze({type:Boolean})],t.prototype,"active",2),Be([ze()],t.prototype,"regionContext",2),t});function On(r){return Rn(r)}var In=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,ee=(r,t,e,s)=>{for(var n=s>1?void 0:s?Nn(t,e):t,i=r.length-1,o;i>=0;i--)(o=r[i])&&(n=(s?o(t,e,n):o(n))||n);return s&&n&&In(t,e,n),n};let tt=class extends On(E){render(){return w`
223
+ */let te=class extends b{getRenderClasses(){return{...super.getRenderClasses(),standard:!0}}};te.styles=[un,dn];te=v([Y("md-icon-button")],te);var pn=Object.defineProperty,fn=Object.getOwnPropertyDescriptor,ve=(r,t,e,i)=>{for(var s=i>1?void 0:i?fn(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(s=(i?o(t,e,s):o(s))||s);return i&&s&&pn(t,e,s),s};let ot=class extends ls(E){render(){return A`
208
224
  <div class="container">
209
225
  <md-icon-button aria-label="${this.description}">
210
226
  <md-icon>${this.icon}</md-icon>
211
227
  </md-icon-button>
212
228
  </div>
213
- `}};tt.styles=F`
229
+ `}};ot.styles=L`
214
230
  :host {
215
231
  color: red;
216
232
  }
217
- `;ee([b()],tt.prototype,"icon",2);ee([b()],tt.prototype,"description",2);tt=ee([et("action-toolbar-item")],tt);
233
+ `;ve([w()],ot.prototype,"icon",2);ve([w()],ot.prototype,"description",2);ot=ve([Y("action-toolbar-item")],ot);var gn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,dt=(r,t,e,i)=>{for(var s=i>1?void 0:i?vn(t,e):t,n=r.length-1,o;n>=0;n--)(o=r[n])&&(s=(i?o(t,e,s):o(s))||s);return i&&s&&gn(t,e,s),s};let P=class extends gs(E){render(){return A` <div class="container">
234
+ <div class="header">
235
+ <div id="header-region-container"></div>
236
+ <div id="actions-toolbar-region-container"></div>
237
+ </div>
238
+
239
+ <div class="main-container">
240
+ <div id="sidebar-region-region-container"></div>
241
+ <div id="main-region-region-container"></div>
242
+ </div>
243
+ </div>`}};P.styles=L`
244
+ :host {
245
+ width: 100%;
246
+ overflow: hidden;
247
+ }
248
+ .container {
249
+ width: 100%;
250
+ height: 100%;
251
+ display: flex;
252
+ flex-direction: column;
253
+ background: aliceblue;
254
+ }
255
+ .header {
256
+ display: flex;
257
+ flex-direction: row;
258
+ justify-content: space-between;
259
+ background-color: blue;
260
+ height: 60px;
261
+ background-color: white;
262
+ color: black;
263
+ box-shadow: rgba(0, 0, 0, 0.12) 0px 4px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
264
+ z-index: 1;
265
+
266
+ #actions-toolbar-region-container{
267
+ display: flex;
268
+ flex-direction:row;
269
+ }
270
+ }
271
+ .main-container {
272
+ min-height: 1px;
273
+ height: 100%;
274
+ display: flex;
275
+ flex-direction: row;
276
+ #sidebar-region-region-container {
277
+ background: white;
278
+ width: 15vw;
279
+ box-shadow: rgba(0, 0, 0, 0.12) 4px -1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
280
+ }
281
+ }
282
+ `;dt([xt({targetId:"header-region-container",name:ht.header})],P.prototype,"headerRegion",2);dt([xt({targetId:"actions-toolbar-region-container",name:ht.actionsToolbar})],P.prototype,"actionsToolbarRegion",2);dt([xt({targetId:"sidebar-region-region-container",name:ht.sidebar})],P.prototype,"sidebarRegion",2);dt([xt({targetId:"main-region-region-container",name:ht.main})],P.prototype,"mainRegion",2);P=dt([Y("primary-shell")],P);const mn=r=>{const t=new P;r.appendChild(t)};exports.initializeShell=mn;exports.regions=ht;