@teipublisher/pb-components 2.1.1 → 2.2.0

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.
@@ -1,4 +1,4 @@
1
- import{P as t,h as e,u as n,f as i,B as o,d as a,b as h,I as s,T as l,v as c,w as r,x as p,D as d,y as u,l as m}from"./paper-checkbox-102e3b43.js";import{w as v,f as g,N as z,i as f,p as y,L as H,h as M,c as b}from"./pb-mixin-8a593923.js";import{t as V}from"./pb-i18n-8a90c591.js";
1
+ import{P as t,h as e,u as n,f as o,B as i,d as a,b as h,I as s,T as l,v as c,w as r,x as p,D as d,y as u,l as m}from"./paper-checkbox-102e3b43.js";import{w as v,f as g,N as z,i as f,p as y,L as H,h as M,c as b}from"./pb-mixin-8a593923.js";import{t as V}from"./pb-i18n-8a90c591.js";
2
2
  /**
3
3
  @license
4
4
  Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
@@ -171,7 +171,7 @@ t({_template:e`
171
171
  </div>
172
172
 
173
173
  <slot></slot>
174
- `,is:"paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(t){return t?"false":"true"},_headingChanged:function(t){var e=this.getAttribute("heading"),n=this.getAttribute("aria-label");"string"==typeof n&&n!==e||this.setAttribute("aria-label",t)},_computeHeadingClass:function(t){return t?" over-image":""},_computeAnimated:function(t){return t}}),function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var t="ShadyCSS"in window&&!ShadyCSS.nativeShadow,e=document.implementation.createHTMLDocument(""),n=new WeakMap,i="object"==typeof DOMException?Error:DOMException,o=Object.defineProperty,a=Array.prototype.forEach,h=/@import.+?;?$/gm,s=["addRule","deleteRule","insertRule","removeRule"],l=CSSStyleSheet.prototype;l.replace=function(){return Promise.reject(new i("Can't call replace on non-constructed CSSStyleSheets."))},l.replaceSync=function(){throw new i("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var c=new WeakMap,r=new WeakMap,p=new WeakMap,d=new WeakMap,u=T.prototype;u.replace=function(t){try{return this.replaceSync(t),Promise.resolve(this)}catch(t){return Promise.reject(t)}},u.replaceSync=function(t){if(O(this),"string"==typeof t){var e=this;c.get(e).textContent=b(t),d.set(e,[]),r.get(e).forEach((function(t){t.isConnected()&&I(e,k(e,t))}))}},o(u,"cssRules",{configurable:!0,enumerable:!0,get:function(){return O(this),c.get(this).sheet.cssRules}}),o(u,"media",{configurable:!0,enumerable:!0,get:function(){return O(this),c.get(this).sheet.media}}),s.forEach((function(t){u[t]=function(){var e=this;O(e);var n=arguments;d.get(e).push({method:t,args:n}),r.get(e).forEach((function(i){if(i.isConnected()){var o=k(e,i).sheet;o[t].apply(o,n)}}));var i=c.get(e).sheet;return i[t].apply(i,n)}})),o(T,Symbol.hasInstance,{configurable:!0,value:S});var m={childList:!0,subtree:!0},v=new WeakMap,g=new WeakMap,z=new WeakMap,f=new WeakMap;if(j.prototype={isConnected:function(){var t=g.get(this);return t instanceof Document?"loading"!==t.readyState:V(t.host)},connect:function(){var t=R(this);f.get(this).observe(t,m),z.get(this).length>0&&P(this),F(t,(function(t){B(t).connect()}))},disconnect:function(){f.get(this).disconnect()},update:function(t){var e=this,n=g.get(e)===document?"Document":"ShadowRoot";if(!Array.isArray(t))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!t.every(S))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(t.some(A))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");e.sheets=t;var i=z.get(e),o=L(t);x(i,o).forEach((function(t){C(k(t,e)),E(t,e)})),z.set(e,o),e.isConnected()&&o.length>0&&P(e)}},window.CSSStyleSheet=T,W(Document),"ShadowRoot"in window){W(ShadowRoot);var y=Element.prototype,H=y.attachShadow;y.attachShadow=function(t){var e=H.call(this,t);return"closed"===t.mode&&n.set(this,e),e}}var M=B(document);M.isConnected()?M.connect():document.addEventListener("DOMContentLoaded",M.connect.bind(M))}function b(t){var e=t.replace(h,"");return e!==t&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),e.trim()}function V(t){return"isConnected"in t?t.isConnected:document.contains(t)}function L(t){return t.filter((function(e,n){return t.indexOf(e)===n}))}function x(t,e){return t.filter((function(t){return-1===e.indexOf(t)}))}function C(t){t.parentNode.removeChild(t)}function w(t){return t.shadowRoot||n.get(t)}function S(t){return"object"==typeof t&&(u.isPrototypeOf(t)||l.isPrototypeOf(t))}function A(t){return"object"==typeof t&&l.isPrototypeOf(t)}function _(t,e){var n=document.createElement("style");return p.get(t).set(e,n),r.get(t).push(e),n}function k(t,e){return p.get(t).get(e)}function E(t,e){p.get(t).delete(e),r.set(t,r.get(t).filter((function(t){return t!==e})))}function I(t,e){requestAnimationFrame((function(){e.textContent=c.get(t).textContent,d.get(t).forEach((function(t){return e.sheet[t.method].apply(e.sheet,t.args)}))}))}function O(t){if(!c.has(t))throw new TypeError("Illegal invocation")}function T(){var t=this,n=document.createElement("style");e.body.appendChild(n),c.set(t,n),r.set(t,[]),p.set(t,new WeakMap),d.set(t,[])}function B(t){var e=v.get(t);return e||(e=new j(t),v.set(t,e)),e}function W(t){o(t.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return B(this).sheets},set:function(t){B(this).update(t)}})}function F(t,e){for(var n=document.createNodeIterator(t,NodeFilter.SHOW_ELEMENT,(function(t){return w(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),i=void 0;i=n.nextNode();)e(w(i))}function N(t,e){return e instanceof HTMLStyleElement&&z.get(t).some((function(e){return k(e,t)}))}function R(t){var e=g.get(t);return e instanceof Document?e.body:e}function P(t){var e=document.createDocumentFragment(),n=z.get(t),i=f.get(t),o=R(t);i.disconnect(),n.forEach((function(n){e.appendChild(k(n,t)||_(n,t))})),o.insertBefore(e,null),i.observe(o,m),n.forEach((function(e){I(e,k(e,t))}))}function j(e){var n=this;n.sheets=[],g.set(n,e),z.set(n,[]),f.set(n,new MutationObserver((function(e,i){document?e.forEach((function(e){t||a.call(e.addedNodes,(function(t){t instanceof Element&&F(t,(function(t){B(t).connect()}))})),a.call(e.removedNodes,(function(e){e instanceof Element&&(N(n,e)&&P(n),t||F(e,(function(t){B(t).disconnect()})))}))})):i.disconnect()})))}}();const L=new Map;async function x(t){const e=[];for(const n of t){const t=await C(n);t&&e.push(t)}if(e.length>0){return(new CSSStyleSheet).replace(e.join(""))}return null}function C(t){return fetch(t).then(e=>e.ok?e.text():(console.warn("<theming> Component stylesheet not found: %s",t),null)).then(t=>t).catch(e=>(console.error("<theming> Error loading stylesheet %s: %o",t,e),null))}function w(t){const e=document.querySelector("pb-page");if(!e)return null;const n=e.stylesheet;if(!n)return null;const i=A(t).join("|");if(L.has(i))return L.get(i);const o=new RegExp(`^(${i})\\b`);let a=null;const h=S(n.cssRules,o,[]);return h.length>0&&(a=new CSSStyleSheet,a.replaceSync(h.join(""))),console.log("<theming> caching stylesheet for %s",i),L.set(i,a),a}function S(t,e,n){for(let i=0;i<t.length;i++){const o=t[i];if(o instanceof CSSStyleRule){if(e.test(o.selectorText)){const t=o.cssText.replace(e,":host($1) ");n.push(t)}}else o instanceof CSSMediaRule?(n.push(`\n@media ${o.conditionText} {\n`),S(o.cssRules,e,n),n.push("\n}\n")):o instanceof CSSFontFaceRule||n.push(o.cssText)}return n}function A(t){const e=[t.localName];return t.id&&e.push("#"+t.id),t.classList.forEach(t=>e.push("."+t)),e}const _=t=>class extends t{connectedCallback(){super.connectedCallback(),v("pb-page-ready",t=>{const e=w(this);e&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,e])})}}
174
+ `,is:"paper-card",properties:{heading:{type:String,value:"",observer:"_headingChanged"},image:{type:String,value:""},alt:{type:String},preloadImage:{type:Boolean,value:!1},fadeImage:{type:Boolean,value:!1},placeholderImage:{type:String,value:null},elevation:{type:Number,value:1,reflectToAttribute:!0},animatedShadow:{type:Boolean,value:!1},animated:{type:Boolean,reflectToAttribute:!0,readOnly:!0,computed:"_computeAnimated(animatedShadow)"}},_isHidden:function(t){return t?"false":"true"},_headingChanged:function(t){var e=this.getAttribute("heading"),n=this.getAttribute("aria-label");"string"==typeof n&&n!==e||this.setAttribute("aria-label",t)},_computeHeadingClass:function(t){return t?" over-image":""},_computeAnimated:function(t){return t}}),function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var t="ShadyCSS"in window&&!ShadyCSS.nativeShadow,e=document.implementation.createHTMLDocument(""),n=new WeakMap,o="object"==typeof DOMException?Error:DOMException,i=Object.defineProperty,a=Array.prototype.forEach,h=/@import.+?;?$/gm,s=["addRule","deleteRule","insertRule","removeRule"],l=CSSStyleSheet.prototype;l.replace=function(){return Promise.reject(new o("Can't call replace on non-constructed CSSStyleSheets."))},l.replaceSync=function(){throw new o("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var c=new WeakMap,r=new WeakMap,p=new WeakMap,d=new WeakMap,u=T.prototype;u.replace=function(t){try{return this.replaceSync(t),Promise.resolve(this)}catch(t){return Promise.reject(t)}},u.replaceSync=function(t){if(O(this),"string"==typeof t){var e=this;c.get(e).textContent=b(t),d.set(e,[]),r.get(e).forEach((function(t){t.isConnected()&&I(e,k(e,t))}))}},i(u,"cssRules",{configurable:!0,enumerable:!0,get:function(){return O(this),c.get(this).sheet.cssRules}}),i(u,"media",{configurable:!0,enumerable:!0,get:function(){return O(this),c.get(this).sheet.media}}),s.forEach((function(t){u[t]=function(){var e=this;O(e);var n=arguments;d.get(e).push({method:t,args:n}),r.get(e).forEach((function(o){if(o.isConnected()){var i=k(e,o).sheet;i[t].apply(i,n)}}));var o=c.get(e).sheet;return o[t].apply(o,n)}})),i(T,Symbol.hasInstance,{configurable:!0,value:S});var m={childList:!0,subtree:!0},v=new WeakMap,g=new WeakMap,z=new WeakMap,f=new WeakMap;if(j.prototype={isConnected:function(){var t=g.get(this);return t instanceof Document?"loading"!==t.readyState:V(t.host)},connect:function(){var t=R(this);f.get(this).observe(t,m),z.get(this).length>0&&P(this),F(t,(function(t){B(t).connect()}))},disconnect:function(){f.get(this).disconnect()},update:function(t){var e=this,n=g.get(e)===document?"Document":"ShadowRoot";if(!Array.isArray(t))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!t.every(S))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(t.some(A))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");e.sheets=t;var o=z.get(e),i=L(t);x(o,i).forEach((function(t){C(k(t,e)),E(t,e)})),z.set(e,i),e.isConnected()&&i.length>0&&P(e)}},window.CSSStyleSheet=T,W(Document),"ShadowRoot"in window){W(ShadowRoot);var y=Element.prototype,H=y.attachShadow;y.attachShadow=function(t){var e=H.call(this,t);return"closed"===t.mode&&n.set(this,e),e}}var M=B(document);M.isConnected()?M.connect():document.addEventListener("DOMContentLoaded",M.connect.bind(M))}function b(t){var e=t.replace(h,"");return e!==t&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),e.trim()}function V(t){return"isConnected"in t?t.isConnected:document.contains(t)}function L(t){return t.filter((function(e,n){return t.indexOf(e)===n}))}function x(t,e){return t.filter((function(t){return-1===e.indexOf(t)}))}function C(t){t.parentNode.removeChild(t)}function w(t){return t.shadowRoot||n.get(t)}function S(t){return"object"==typeof t&&(u.isPrototypeOf(t)||l.isPrototypeOf(t))}function A(t){return"object"==typeof t&&l.isPrototypeOf(t)}function _(t,e){var n=document.createElement("style");return p.get(t).set(e,n),r.get(t).push(e),n}function k(t,e){return p.get(t).get(e)}function E(t,e){p.get(t).delete(e),r.set(t,r.get(t).filter((function(t){return t!==e})))}function I(t,e){requestAnimationFrame((function(){e.textContent=c.get(t).textContent,d.get(t).forEach((function(t){return e.sheet[t.method].apply(e.sheet,t.args)}))}))}function O(t){if(!c.has(t))throw new TypeError("Illegal invocation")}function T(){var t=this,n=document.createElement("style");e.body.appendChild(n),c.set(t,n),r.set(t,[]),p.set(t,new WeakMap),d.set(t,[])}function B(t){var e=v.get(t);return e||(e=new j(t),v.set(t,e)),e}function W(t){i(t.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return B(this).sheets},set:function(t){B(this).update(t)}})}function F(t,e){for(var n=document.createNodeIterator(t,NodeFilter.SHOW_ELEMENT,(function(t){return w(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),o=void 0;o=n.nextNode();)e(w(o))}function N(t,e){return e instanceof HTMLStyleElement&&z.get(t).some((function(e){return k(e,t)}))}function R(t){var e=g.get(t);return e instanceof Document?e.body:e}function P(t){var e=document.createDocumentFragment(),n=z.get(t),o=f.get(t),i=R(t);o.disconnect(),n.forEach((function(n){e.appendChild(k(n,t)||_(n,t))})),i.insertBefore(e,null),o.observe(i,m),n.forEach((function(e){I(e,k(e,t))}))}function j(e){var n=this;n.sheets=[],g.set(n,e),z.set(n,[]),f.set(n,new MutationObserver((function(e,o){document?e.forEach((function(e){t||a.call(e.addedNodes,(function(t){t instanceof Element&&F(t,(function(t){B(t).connect()}))})),a.call(e.removedNodes,(function(e){e instanceof Element&&(N(n,e)&&P(n),t||F(e,(function(t){B(t).disconnect()})))}))})):o.disconnect()})))}}();const L=new Map;async function x(t){const e=[];for(const n of t){const t=await C(n);t&&e.push(t)}if(e.length>0){return(new CSSStyleSheet).replace(e.join(""))}return null}function C(t){return fetch(t).then(e=>e.ok?e.text():(console.warn("<theming> Component stylesheet not found: %s",t),null)).then(t=>t).catch(e=>(console.error("<theming> Error loading stylesheet %s: %o",t,e),null))}function w(t){const e=document.querySelector("pb-page");if(!e)return null;const n=e.stylesheet;if(!n)return null;const o=A(t).join("|");if(L.has(o))return L.get(o);const i=new RegExp(`^(${o})\\b`);let a=null;const h=S(n.cssRules,i,[]);return h.length>0&&(a=new CSSStyleSheet,a.replaceSync(h.join(""))),console.log("<theming> caching stylesheet for %s",o),L.set(o,a),a}function S(t,e,n){for(let o=0;o<t.length;o++){const i=t[o];if(i instanceof CSSStyleRule){if(e.test(i.selectorText)){const t=i.cssText.replace(e,":host($1) ");n.push(t)}}else i instanceof CSSMediaRule?(n.push(`\n@media ${i.conditionText} {\n`),S(i.cssRules,e,n),n.push("\n}\n")):i instanceof CSSFontFaceRule||n.push(i.cssText)}return n}function A(t){const e=[t.localName];return t.id&&e.push("#"+t.id),t.classList.forEach(t=>e.push("."+t)),e}const _=t=>class extends t{connectedCallback(){super.connectedCallback(),v("pb-page-ready",t=>{const e=w(this);e&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,e])})}}
175
175
  /**
176
176
  * @license
177
177
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -184,7 +184,7 @@ t({_template:e`
184
184
  * Code distributed by Google as part of the polymer project is also
185
185
  * subject to an additional IP rights grant found at
186
186
  * http://polymer.github.io/PATENTS.txt
187
- */,k=new WeakMap,E=g(t=>e=>{if(!(e instanceof z))throw new Error("unsafeHTML can only be used in text bindings");const n=k.get(e);if(void 0!==n&&f(t)&&t===n.value&&e.value===n.fragment)return;const i=document.createElement("template");i.innerHTML=t;const o=document.importNode(i.content,!0);e.setValue(o),k.set(e,{value:t,fragment:o})}),I=e`<iron-iconset-svg name="icons" size="24">
187
+ */,k=new WeakMap,E=g(t=>e=>{if(!(e instanceof z))throw new Error("unsafeHTML can only be used in text bindings");const n=k.get(e);if(void 0!==n&&f(t)&&t===n.value&&e.value===n.fragment)return;const o=document.createElement("template");o.innerHTML=t;const i=document.importNode(o.content,!0);e.setValue(i),k.set(e,{value:t,fragment:i})}),I=e`<iron-iconset-svg name="icons" size="24">
188
188
  <svg><defs>
189
189
  <g id="3d-rotation"><path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.13-.4-.24-.11-.1-.2-.22-.26-.37-.06-.14-.09-.3-.09-.47h-1.3c0 .36.07.68.21.95.14.27.33.5.56.69.24.18.51.32.82.41.3.1.62.15.96.15.37 0 .72-.05 1.03-.15.32-.1.6-.25.83-.44s.42-.43.55-.72c.13-.29.2-.61.2-.97 0-.19-.02-.38-.07-.56-.05-.18-.12-.35-.23-.51-.1-.16-.24-.3-.4-.43-.17-.13-.37-.23-.61-.31.2-.09.37-.2.52-.33.15-.13.27-.27.37-.42.1-.15.17-.3.22-.46.05-.16.07-.32.07-.48 0-.36-.06-.68-.18-.96-.12-.28-.29-.51-.51-.69-.2-.19-.47-.33-.77-.43C9.1 8.05 8.76 8 8.39 8c-.36 0-.69.05-1 .16-.3.11-.57.26-.79.45-.21.19-.38.41-.51.67-.12.26-.18.54-.18.85h1.3c0-.17.03-.32.09-.45s.14-.25.25-.34c.11-.09.23-.17.38-.22.15-.05.3-.08.48-.08.4 0 .7.1.89.31.19.2.29.49.29.86 0 .18-.03.34-.08.49-.05.15-.14.27-.25.37-.11.1-.25.18-.41.24-.16.06-.36.09-.58.09H7.5v1.03h.77c.22 0 .42.02.6.07s.33.13.45.23c.12.11.22.24.29.4.07.16.1.35.1.57 0 .41-.12.72-.35.93-.23.23-.55.33-.95.33zm8.55-5.92c-.32-.33-.7-.59-1.14-.77-.43-.18-.92-.27-1.46-.27H12v8h2.3c.55 0 1.06-.09 1.51-.27.45-.18.84-.43 1.16-.76.32-.33.57-.73.74-1.19.17-.47.26-.99.26-1.57v-.4c0-.58-.09-1.1-.26-1.57-.18-.47-.43-.87-.75-1.2zm-.39 3.16c0 .42-.05.79-.14 1.13-.1.33-.24.62-.43.85-.19.23-.43.41-.71.53-.29.12-.62.18-.99.18h-.91V9.12h.97c.72 0 1.27.23 1.64.69.38.46.57 1.12.57 1.99v.4zM12 0l-.66.03 3.81 3.81 1.33-1.33c3.27 1.55 5.61 4.72 5.96 8.48h1.5C23.44 4.84 18.29 0 12 0z"></path></g>
190
190
  <g id="accessibility"><path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"></path></g>
@@ -527,7 +527,7 @@ t({_template:e`
527
527
  </style>
528
528
 
529
529
  <slot></slot>
530
- `,is:"iron-collapse",behaviors:[i],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group","aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},show:function(){this.opened=!0},hide:function(){this.opened=!1},updateSize:function(t,e){t="auto"===t?"":t;var n=e&&!this.noAnimation&&this.isAttached&&this._desiredSize!==t;if(this._desiredSize=t,this._updateTransition(!1),n){var i=this._calcSize();""===t&&(this.style[this._dimensionMax]="",t=this._calcSize()),this.style[this._dimensionMax]=i,this.scrollTop=this.scrollTop,this._updateTransition(!0),n=t!==i}this.style[this._dimensionMax]=t,n||this._transitionEnd()},enableTransition:function(t){o._warn("`enableTransition()` is deprecated, use `noAnimation` instead."),this.noAnimation=!t},_updateTransition:function(t){this.style.transitionDuration=t&&!this.noAnimation?"":"0s"},_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;var t="maxWidth"===this._dimensionMax?"maxHeight":"maxWidth";this.style[t]="",this.updateSize(this.opened?"auto":"0px",!1)},_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened),this._setTransitioning(!0),this.toggleClass("iron-collapse-closed",!1),this.toggleClass("iron-collapse-opened",!1),this.updateSize(this.opened?"auto":"0px",!0),this.opened&&this.focus()},_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize,this.toggleClass("iron-collapse-closed",!this.opened),this.toggleClass("iron-collapse-opened",this.opened),this._updateTransition(!1),this.notifyResize(),this._setTransitioning(!1)},_onTransitionEnd:function(t){a(t).rootTarget===this&&this._transitionEnd()},_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});class O extends(_(y(H))){static get properties(){return Object.assign(Object.assign({},super.properties),{},{horizontal:{type:Boolean},noAnimation:{type:Boolean,attribute:"no-animation"},opened:{type:Boolean},toggles:{type:Boolean},expandIcon:{type:String,attribute:"expand-icon"},collapseIcon:{type:String,attribute:"collapse-icon"},noIcons:{type:Boolean,attribute:"no-icons"}})}constructor(){super(),this.horizontal=!1,this.noAnimation=!1,this.opened=!1,this.expandIcon="icons:expand-more",this.collapseIcon="icons:expand-less",this.noIcons=!1,this.toggles=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("pb-collapse-open",()=>{this.open()}),this.toggles&&this.subscribeTo("pb-collapse-open",t=>{if(t.detail&&t.detail._source!==this){for(const e of this.querySelectorAll("pb-collapse"))if(e===t.detail._source)return;this.close()}})}open(){this.opened||(this.opened=!0,this.emitTo("pb-collapse-open",this))}close(){this.opened&&(this.opened=!1)}toggle(){this.opened=!this.opened,this.opened&&this.emitTo("pb-collapse-open",this.data)}render(){return M`
530
+ `,is:"iron-collapse",behaviors:[o],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group","aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},show:function(){this.opened=!0},hide:function(){this.opened=!1},updateSize:function(t,e){t="auto"===t?"":t;var n=e&&!this.noAnimation&&this.isAttached&&this._desiredSize!==t;if(this._desiredSize=t,this._updateTransition(!1),n){var o=this._calcSize();""===t&&(this.style[this._dimensionMax]="",t=this._calcSize()),this.style[this._dimensionMax]=o,this.scrollTop=this.scrollTop,this._updateTransition(!0),n=t!==o}this.style[this._dimensionMax]=t,n||this._transitionEnd()},enableTransition:function(t){i._warn("`enableTransition()` is deprecated, use `noAnimation` instead."),this.noAnimation=!t},_updateTransition:function(t){this.style.transitionDuration=t&&!this.noAnimation?"":"0s"},_horizontalChanged:function(){this.style.transitionProperty=this._dimensionMaxCss;var t="maxWidth"===this._dimensionMax?"maxHeight":"maxWidth";this.style[t]="",this.updateSize(this.opened?"auto":"0px",!1)},_openedChanged:function(){this.setAttribute("aria-hidden",!this.opened),this._setTransitioning(!0),this.toggleClass("iron-collapse-closed",!1),this.toggleClass("iron-collapse-opened",!1),this.updateSize(this.opened?"auto":"0px",!0),this.opened&&this.focus()},_transitionEnd:function(){this.style[this._dimensionMax]=this._desiredSize,this.toggleClass("iron-collapse-closed",!this.opened),this.toggleClass("iron-collapse-opened",this.opened),this._updateTransition(!1),this.notifyResize(),this._setTransitioning(!1)},_onTransitionEnd:function(t){a(t).rootTarget===this&&this._transitionEnd()},_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});class O extends(_(y(H))){static get properties(){return Object.assign(Object.assign({},super.properties),{},{horizontal:{type:Boolean},noAnimation:{type:Boolean,attribute:"no-animation"},opened:{type:Boolean},toggles:{type:Boolean},expandIcon:{type:String,attribute:"expand-icon"},collapseIcon:{type:String,attribute:"collapse-icon"},noIcons:{type:Boolean,attribute:"no-icons"}})}constructor(){super(),this.horizontal=!1,this.noAnimation=!1,this.opened=!1,this.expandIcon="icons:expand-more",this.collapseIcon="icons:expand-less",this.noIcons=!1,this.toggles=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("pb-collapse-open",()=>{this.open()}),this.toggles&&this.subscribeTo("pb-collapse-open",t=>{if(t.detail&&t.detail._source!==this){for(const e of this.querySelectorAll("pb-collapse"))if(e===t.detail._source)return;this.close()}})}open(){this.opened||(this.opened=!0,this.emitTo("pb-collapse-open",this))}close(){this.opened&&(this.opened=!1)}toggle(){this.opened=!this.opened,this.opened&&this.emitTo("pb-collapse-open",this.data)}render(){return M`
531
531
  <div id="trigger" @click="${this.toggle}" class="collapse-trigger">
532
532
  ${this.noIcons?null:M`<iron-icon icon="${this.opened?this.collapseIcon:this.expandIcon}"></iron-icon>`}
533
533
  <slot id="collapseTrigger" name="collapse-trigger"></slot>
@@ -538,21 +538,27 @@ t({_template:e`
538
538
  `}static get styles(){return b`
539
539
  :host {
540
540
  display: block;
541
+ position: relative;
541
542
  }
542
543
 
543
544
  #trigger {
544
545
  display: table-row;
545
546
  }
546
547
 
547
- #trigger iron-icon {
548
+ iron-icon {
548
549
  display: table-cell;
549
550
  padding: var(--pb-collapse-icon-padding, 0 4px 0 0);
550
551
  }
551
552
 
553
+ :host(.icon-right) iron-icon {
554
+ position: absolute;
555
+ right: 0;
556
+ }
557
+
552
558
  slot[name="collapse-trigger"] {
553
559
  display: table-cell;
554
560
  }
555
- `}}customElements.define("pb-collapse",O);
561
+ `}}customElements.get("pb-collapse")||customElements.define("pb-collapse",O)
556
562
  /**
557
563
  @license
558
564
  Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
@@ -562,8 +568,7 @@ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
562
568
  found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
563
569
  part of the polymer project is also subject to an additional IP rights grant
564
570
  found at http://polymer.github.io/PATENTS.txt
565
- */
566
- const T=document.createElement("template");T.setAttribute("style","display: none;"),T.innerHTML="<dom-module id=\"paper-item-shared-styles\">\n <template>\n <style>\n :host, .paper-item {\n display: block;\n position: relative;\n min-height: var(--paper-item-min-height, 48px);\n padding: 0px 16px;\n }\n\n .paper-item {\n @apply --paper-font-subhead;\n border:none;\n outline: none;\n background: white;\n width: 100%;\n text-align: left;\n }\n\n :host([hidden]), .paper-item[hidden] {\n display: none !important;\n }\n\n :host(.iron-selected), .paper-item.iron-selected {\n font-weight: var(--paper-item-selected-weight, bold);\n\n @apply --paper-item-selected;\n }\n\n :host([disabled]), .paper-item[disabled] {\n color: var(--paper-item-disabled-color, var(--disabled-text-color));\n\n @apply --paper-item-disabled;\n }\n\n :host(:focus), .paper-item:focus {\n position: relative;\n outline: 0;\n\n @apply --paper-item-focused;\n }\n\n :host(:focus):before, .paper-item:focus:before {\n @apply --layout-fit;\n\n background: currentColor;\n content: '';\n opacity: var(--dark-divider-opacity);\n pointer-events: none;\n\n @apply --paper-item-focused-before;\n }\n </style>\n </template>\n</dom-module>",document.head.appendChild(T.content);
571
+ */;const T=document.createElement("template");T.setAttribute("style","display: none;"),T.innerHTML="<dom-module id=\"paper-item-shared-styles\">\n <template>\n <style>\n :host, .paper-item {\n display: block;\n position: relative;\n min-height: var(--paper-item-min-height, 48px);\n padding: 0px 16px;\n }\n\n .paper-item {\n @apply --paper-font-subhead;\n border:none;\n outline: none;\n background: white;\n width: 100%;\n text-align: left;\n }\n\n :host([hidden]), .paper-item[hidden] {\n display: none !important;\n }\n\n :host(.iron-selected), .paper-item.iron-selected {\n font-weight: var(--paper-item-selected-weight, bold);\n\n @apply --paper-item-selected;\n }\n\n :host([disabled]), .paper-item[disabled] {\n color: var(--paper-item-disabled-color, var(--disabled-text-color));\n\n @apply --paper-item-disabled;\n }\n\n :host(:focus), .paper-item:focus {\n position: relative;\n outline: 0;\n\n @apply --paper-item-focused;\n }\n\n :host(:focus):before, .paper-item:focus:before {\n @apply --layout-fit;\n\n background: currentColor;\n content: '';\n opacity: var(--dark-divider-opacity);\n pointer-events: none;\n\n @apply --paper-item-focused-before;\n }\n </style>\n </template>\n</dom-module>",document.head.appendChild(T.content);
567
572
  /**
568
573
  @license
569
574
  Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
@@ -723,7 +728,7 @@ t({_template:e`
723
728
  <!-- Custom template -->
724
729
  <slot id="templates" name="autocomplete-custom-template"></slot>
725
730
  </div>
726
- `,is:"paper-autocomplete-suggestions",behaviors:[l],properties:{for:{type:String},isOpen:{type:Boolean,value:!1,notify:!0},minLength:{type:Number,value:1},maxViewableItems:{type:Number,value:7},textProperty:{type:String,value:"text"},valueProperty:{type:String,value:"value"},source:{type:Array},selectedOption:{type:Object,notify:!0},remoteSource:{type:Boolean,value:!1},eventNamespace:{type:String,value:"-"},highlightedSuggestion:{type:Object,value:{},notify:!0},queryFn:{type:Function},highlightFirst:{type:Boolean,value:!1},showResultsOnFocus:{type:Boolean,value:!1},_suggestions:{type:Array,observer:"_onSuggestionsChanged"},_currentIndex:{type:Number,value:-1},_scrollIndex:{type:Number,value:0},_itemHeight:{type:Number,value:36,observer:"_itemHeightChanged"},_value:{value:void 0},_text:{value:void 0},_idItemSeed:{type:String,value:"aria-"+(new Date).getTime()+"-"+Math.floor(1e3*Math.random()),readOnly:!0},_bindedFunctions:{type:Object,value:function(){return{_onKeypress:null,_onFocus:null,_onBlur:null}}},_hasItemHighBeenCalculated:{type:Boolean,value:!1},__customTplRef:Object},ready:function(){this._value=this.value,this.dataHost=this,this.$.suggestionsWrapper.addEventListener("mousedown",(function(t){t.preventDefault()})),this._suggestionTemplate.__dataHost=this,this.templatize(this._suggestionTemplate)},attached:function(){if(this._input=this.parentNode.querySelector("#"+this.for),null===this._input)throw new Error("Cannot find input field with id: "+this.for);this._bindedFunctions._onKeypress=this._onKeypress.bind(this),this._bindedFunctions._onFocus=this._onFocus.bind(this),this._bindedFunctions._onBlur=this._onBlur.bind(this),this._input.addEventListener("keyup",this._bindedFunctions._onKeypress),this._input.addEventListener("focus",this._bindedFunctions._onFocus),this._input.addEventListener("blur",this._bindedFunctions._onBlur)},detached:function(){this.cancelDebouncer("_onSuggestionChanged"),this._input.removeEventListener("keyup",this._bindedFunctions._onKeypress),this._input.removeEventListener("focus",this._bindedFunctions._onFocus),this._input.removeEventListener("blur",this._bindedFunctions._onBlur),this._input=null,this.__customTplRef=null},_getItemText:function(t){return t[this.textProperty]},_showSuggestionsWrapper:function(){var t=this.$.suggestionsWrapper;t.style.display="block",t.setAttribute("role","listbox"),this.isOpen=!0},_hideSuggestionsWrapper:function(){var t=this.$.suggestionsWrapper;t.style.display="none",t.removeAttribute("role"),this.isOpen=!1,this.highlightedSuggestion={},this._clearSuggestions()},_handleSuggestions:function(t){this.remoteSource?this._remoteSuggestions():this._createSuggestions(t)},_remoteSuggestions:function(){var t=this._input.value,e={text:t,value:t};t&&t.length>=this.minLength?this._fireEvent(e,"change"):this._suggestions=[]},_bindSuggestions:function(t){t.length&&t.length>0?(this._suggestions=t,this._currentIndex=-1,this._scrollIndex=0):this._suggestions=[]},_createSuggestions:function(t){this._currentIndex=-1,this._scrollIndex=0;var e=t.target.value;null!==e&&e.length>=this.minLength?(e=e.toLowerCase(),this.source&&this.source.length>0&&(this._suggestions=this.queryFn(this.source,e))):this._suggestions=[]},get _suggestionTemplate(){if(this.__customTplRef)return this.__customTplRef;var t=this.getEffectiveChildren();return this.__customTplRef=t.length>0?t[0]:this.$.defaultTemplate,this.__customTplRef},_renderSuggestions:function(t){var e=a(this.$.suggestionsWrapper);this._clearSuggestions(),[].slice.call(t).forEach(function(t,n){var i=this.stamp();i.item=t,i.index=n,e.appendChild(i.root)}.bind(this))},_clearSuggestions:function(){for(var t,e=a(this.$.suggestionsWrapper);t=e.lastChild;)e.removeChild(t)},_onSuggestionsChanged:function(){this.debounce("_onSuggestionChanged",()=>{if(this._renderSuggestions(this._suggestions),this._suggestions.length>0?this._showSuggestionsWrapper():this._hideSuggestionsWrapper(),c(),this._resetScroll(),!this._hasItemHighBeenCalculated){var t=this.$.suggestionsWrapper.querySelector("paper-item");null!==t&&(this._itemHeight=t.offsetHeight,this._hasItemHighBeenCalculated=!0)}this.highlightFirst&&this._moveHighlighted(F.DOWN)},100)},_selection:function(t){var e=this._suggestions[t];this._input.value=e[this.textProperty],this.selectedOption=e,this._value=this.value,this._text=this.text,this._emptyItems(),this._fireEvent(e,"selected"),this.hideSuggestions()},_getItems:function(){return this.$.suggestionsWrapper.querySelectorAll("paper-item")},_emptyItems:function(){this._suggestions=[]},_getId:function(){var t=this.getAttribute("id");return t||(t=this.dataset.id),t},_removeActive:function(t){[].slice.call(t).forEach((function(t){t.classList.remove("active"),t.setAttribute("aria-selected","false")}))},_onKeypress:function(t){switch(t.which||t.keyCode){case N.DOWN_ARROW:this._moveHighlighted(F.DOWN);break;case N.UP_ARROW:this._moveHighlighted(F.UP);break;case N.ENTER:this._keyenter();break;case N.ESCAPE:this._hideSuggestionsWrapper();break;case N.LEFT_ARROW:case N.RIGHT_ARROW:break;default:this._handleSuggestions(t)}},_keyenter:function(){if("block"===this.$.suggestionsWrapper.style.display&&this._currentIndex>-1){var t=this._currentIndex;this._selection(t)}},_moveHighlighted:function(t){var e=this._getItems();if(0!==e.length){var n=e.length-1,i=0===this._currentIndex,o=this._currentIndex===n;if((-1===this._currentIndex||i)&&t===F.UP)this._currentIndex=n;else if(o&&t===F.DOWN)this._currentIndex=0;else{var a=t===F.DOWN?1:-1;this._currentIndex=this._currentIndex+a}var h=this._suggestions[this._currentIndex],s=e[this._currentIndex];this._removeActive(e),s.classList.add("active"),s.setAttribute("aria-selected","true"),this._setHighlightedSuggestion(h,s.id),this._scroll(t)}},_scroll:function(t){var e,n,i=this._currentIndex-this._scrollIndex,o=0===this._currentIndex&&i<0,a=this._currentIndex===this._suggestions.length-1&&i>=this.maxViewableItems;o&&t===F.DOWN?(e=0,n=!0):a&&t===F.UP?(e=this._suggestions.length-this.maxViewableItems,n=!0):t===F.UP?(e=this._scrollIndex-1,n=i<0):(e=this._scrollIndex+1,n=i>=this.maxViewableItems),n&&(this._scrollIndex=e,this.$.suggestionsWrapper.scrollTop=this._scrollIndex*this._itemHeight)},_resetScroll:function(){this.$.suggestionsWrapper.scrollTop=0},_setHighlightedSuggestion:function(t,e){this.highlightedSuggestion={option:t,elementId:e,textValue:t[this.textProperty],value:t[this.valueProperty]}},_fireEvent:function(t,e){var n=this._getId(),i="autocomplete"+this.eventNamespace+e;this.fire(i,{id:n,value:t[this.valueProperty]||t.value,text:t[this.textProperty]||t.text,target:this,option:t})},_onSelect:function(t){var e=this.modelForElement(t.currentTarget).index;this._selection(e)},_onBlur:function(){var t={text:this.text,value:this.value};this._fireEvent(t,"blur"),this.hideSuggestions()},_onFocus:function(t){var e={text:this.text,value:this.value};this.showResultsOnFocus&&this._handleSuggestions(t),this._fireEvent(e,"focus")},_getSuggestionId:function(t){return this._idItemSeed+"-"+t},_itemHeightChanged:function(){this.$.suggestionsWrapper.style.maxHeight=this._itemHeight*this.maxViewableItems+"px"},suggestions:function(t){this._bindSuggestions(t)},hideSuggestions:function(){setTimeout(function(){this._hideSuggestionsWrapper()}.bind(this),0)},queryFn:function(t,e){var n=[];return t.forEach(function(t){var i,o;if("object"==typeof t?(i=t[this.textProperty],o=t[this.valueProperty]):o=i=t.toString(),0===i.toLowerCase().indexOf(e)){var a={};a[this.textProperty]=i,a[this.valueProperty]=o,n.push(a)}}.bind(this)),n}});
731
+ `,is:"paper-autocomplete-suggestions",behaviors:[l],properties:{for:{type:String},isOpen:{type:Boolean,value:!1,notify:!0},minLength:{type:Number,value:1},maxViewableItems:{type:Number,value:7},textProperty:{type:String,value:"text"},valueProperty:{type:String,value:"value"},source:{type:Array},selectedOption:{type:Object,notify:!0},remoteSource:{type:Boolean,value:!1},eventNamespace:{type:String,value:"-"},highlightedSuggestion:{type:Object,value:{},notify:!0},queryFn:{type:Function},highlightFirst:{type:Boolean,value:!1},showResultsOnFocus:{type:Boolean,value:!1},_suggestions:{type:Array,observer:"_onSuggestionsChanged"},_currentIndex:{type:Number,value:-1},_scrollIndex:{type:Number,value:0},_itemHeight:{type:Number,value:36,observer:"_itemHeightChanged"},_value:{value:void 0},_text:{value:void 0},_idItemSeed:{type:String,value:"aria-"+(new Date).getTime()+"-"+Math.floor(1e3*Math.random()),readOnly:!0},_bindedFunctions:{type:Object,value:function(){return{_onKeypress:null,_onFocus:null,_onBlur:null}}},_hasItemHighBeenCalculated:{type:Boolean,value:!1},__customTplRef:Object},ready:function(){this._value=this.value,this.dataHost=this,this.$.suggestionsWrapper.addEventListener("mousedown",(function(t){t.preventDefault()})),this._suggestionTemplate.__dataHost=this,this.templatize(this._suggestionTemplate)},attached:function(){if(this._input=this.parentNode.querySelector("#"+this.for),null===this._input)throw new Error("Cannot find input field with id: "+this.for);this._bindedFunctions._onKeypress=this._onKeypress.bind(this),this._bindedFunctions._onFocus=this._onFocus.bind(this),this._bindedFunctions._onBlur=this._onBlur.bind(this),this._input.addEventListener("keyup",this._bindedFunctions._onKeypress),this._input.addEventListener("focus",this._bindedFunctions._onFocus),this._input.addEventListener("blur",this._bindedFunctions._onBlur)},detached:function(){this.cancelDebouncer("_onSuggestionChanged"),this._input.removeEventListener("keyup",this._bindedFunctions._onKeypress),this._input.removeEventListener("focus",this._bindedFunctions._onFocus),this._input.removeEventListener("blur",this._bindedFunctions._onBlur),this._input=null,this.__customTplRef=null},_getItemText:function(t){return t[this.textProperty]},_showSuggestionsWrapper:function(){var t=this.$.suggestionsWrapper;t.style.display="block",t.setAttribute("role","listbox"),this.isOpen=!0},_hideSuggestionsWrapper:function(){var t=this.$.suggestionsWrapper;t.style.display="none",t.removeAttribute("role"),this.isOpen=!1,this.highlightedSuggestion={},this._clearSuggestions()},_handleSuggestions:function(t){this.remoteSource?this._remoteSuggestions():this._createSuggestions(t)},_remoteSuggestions:function(){var t=this._input.value,e={text:t,value:t};t&&t.length>=this.minLength?this._fireEvent(e,"change"):this._suggestions=[]},_bindSuggestions:function(t){t.length&&t.length>0?(this._suggestions=t,this._currentIndex=-1,this._scrollIndex=0):this._suggestions=[]},_createSuggestions:function(t){this._currentIndex=-1,this._scrollIndex=0;var e=t.target.value;null!==e&&e.length>=this.minLength?(e=e.toLowerCase(),this.source&&this.source.length>0&&(this._suggestions=this.queryFn(this.source,e))):this._suggestions=[]},get _suggestionTemplate(){if(this.__customTplRef)return this.__customTplRef;var t=this.getEffectiveChildren();return this.__customTplRef=t.length>0?t[0]:this.$.defaultTemplate,this.__customTplRef},_renderSuggestions:function(t){var e=a(this.$.suggestionsWrapper);this._clearSuggestions(),[].slice.call(t).forEach(function(t,n){var o=this.stamp();o.item=t,o.index=n,e.appendChild(o.root)}.bind(this))},_clearSuggestions:function(){for(var t,e=a(this.$.suggestionsWrapper);t=e.lastChild;)e.removeChild(t)},_onSuggestionsChanged:function(){this.debounce("_onSuggestionChanged",()=>{if(this._renderSuggestions(this._suggestions),this._suggestions.length>0?this._showSuggestionsWrapper():this._hideSuggestionsWrapper(),c(),this._resetScroll(),!this._hasItemHighBeenCalculated){var t=this.$.suggestionsWrapper.querySelector("paper-item");null!==t&&(this._itemHeight=t.offsetHeight,this._hasItemHighBeenCalculated=!0)}this.highlightFirst&&this._moveHighlighted(F.DOWN)},100)},_selection:function(t){var e=this._suggestions[t];this._input.value=e[this.textProperty],this.selectedOption=e,this._value=this.value,this._text=this.text,this._emptyItems(),this._fireEvent(e,"selected"),this.hideSuggestions()},_getItems:function(){return this.$.suggestionsWrapper.querySelectorAll("paper-item")},_emptyItems:function(){this._suggestions=[]},_getId:function(){var t=this.getAttribute("id");return t||(t=this.dataset.id),t},_removeActive:function(t){[].slice.call(t).forEach((function(t){t.classList.remove("active"),t.setAttribute("aria-selected","false")}))},_onKeypress:function(t){switch(t.which||t.keyCode){case N.DOWN_ARROW:this._moveHighlighted(F.DOWN);break;case N.UP_ARROW:this._moveHighlighted(F.UP);break;case N.ENTER:this._keyenter();break;case N.ESCAPE:this._hideSuggestionsWrapper();break;case N.LEFT_ARROW:case N.RIGHT_ARROW:break;default:this._handleSuggestions(t)}},_keyenter:function(){if("block"===this.$.suggestionsWrapper.style.display&&this._currentIndex>-1){var t=this._currentIndex;this._selection(t)}},_moveHighlighted:function(t){var e=this._getItems();if(0!==e.length){var n=e.length-1,o=0===this._currentIndex,i=this._currentIndex===n;if((-1===this._currentIndex||o)&&t===F.UP)this._currentIndex=n;else if(i&&t===F.DOWN)this._currentIndex=0;else{var a=t===F.DOWN?1:-1;this._currentIndex=this._currentIndex+a}var h=this._suggestions[this._currentIndex],s=e[this._currentIndex];this._removeActive(e),s.classList.add("active"),s.setAttribute("aria-selected","true"),this._setHighlightedSuggestion(h,s.id),this._scroll(t)}},_scroll:function(t){var e,n,o=this._currentIndex-this._scrollIndex,i=0===this._currentIndex&&o<0,a=this._currentIndex===this._suggestions.length-1&&o>=this.maxViewableItems;i&&t===F.DOWN?(e=0,n=!0):a&&t===F.UP?(e=this._suggestions.length-this.maxViewableItems,n=!0):t===F.UP?(e=this._scrollIndex-1,n=o<0):(e=this._scrollIndex+1,n=o>=this.maxViewableItems),n&&(this._scrollIndex=e,this.$.suggestionsWrapper.scrollTop=this._scrollIndex*this._itemHeight)},_resetScroll:function(){this.$.suggestionsWrapper.scrollTop=0},_setHighlightedSuggestion:function(t,e){this.highlightedSuggestion={option:t,elementId:e,textValue:t[this.textProperty],value:t[this.valueProperty]}},_fireEvent:function(t,e){var n=this._getId(),o="autocomplete"+this.eventNamespace+e;this.fire(o,{id:n,value:t[this.valueProperty]||t.value,text:t[this.textProperty]||t.text,target:this,option:t})},_onSelect:function(t){var e=this.modelForElement(t.currentTarget).index;this._selection(e)},_onBlur:function(){var t={text:this.text,value:this.value};this._fireEvent(t,"blur"),this.hideSuggestions()},_onFocus:function(t){var e={text:this.text,value:this.value};this.showResultsOnFocus&&this._handleSuggestions(t),this._fireEvent(e,"focus")},_getSuggestionId:function(t){return this._idItemSeed+"-"+t},_itemHeightChanged:function(){this.$.suggestionsWrapper.style.maxHeight=this._itemHeight*this.maxViewableItems+"px"},suggestions:function(t){this._bindSuggestions(t)},hideSuggestions:function(){setTimeout(function(){this._hideSuggestionsWrapper()}.bind(this),0)},queryFn:function(t,e){var n=[];return t.forEach(function(t){var o,i;if("object"==typeof t?(o=t[this.textProperty],i=t[this.valueProperty]):i=o=t.toString(),0===o.toLowerCase().indexOf(e)){var a={};a[this.textProperty]=o,a[this.valueProperty]=i,n.push(a)}}.bind(this)),n}});
727
732
  /*!
728
733
  * hotkeys-js v3.8.7
729
734
  * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
@@ -733,7 +738,7 @@ t({_template:e`
733
738
  *
734
739
  * Licensed under the MIT license.
735
740
  */
736
- var R="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function P(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on".concat(e),(function(){n(window.event)}))}function j(t,e){for(var n=e.slice(0,e.length-1),i=0;i<n.length;i++)n[i]=t[n[i].toLowerCase()];return n}function D(t){"string"!=typeof t&&(t="");for(var e=(t=t.replace(/\s/g,"")).split(","),n=e.lastIndexOf("");n>=0;)e[n-1]+=",",e.splice(n,1),n=e.lastIndexOf("");return e}function G(t,e){for(var n=t.length>=e.length?t:e,i=t.length>=e.length?e:t,o=!0,a=0;a<n.length;a++)-1===i.indexOf(n[a])&&(o=!1);return o}for(var U={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":R?173:189,"=":R?61:187,";":R?59:186,"'":222,"[":219,"]":221,"\\":220},K={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},X={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},q={16:!1,18:!1,17:!1,91:!1},Y={},Z=1;Z<20;Z++)U["f".concat(Z)]=111+Z;var J=[],Q="all",$=[],tt=function(t){return U[t.toLowerCase()]||K[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function et(t){Q=t||"all"}function nt(){return Q||"all"}function it(){return J.slice(0)}function ot(t){var e=t.target||t.srcElement,n=e.tagName,i=!0;return!e.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||e.readOnly)||(i=!1),i}function at(t){return"string"==typeof t&&(t=tt(t)),-1!==J.indexOf(t)}function ht(t,e){var n,i;for(var o in t||(t=nt()),Y)if(Object.prototype.hasOwnProperty.call(Y,o))for(n=Y[o],i=0;i<n.length;)n[i].scope===t?n.splice(i,1):i++;nt()===t&&et(e||"all")}function st(t){var e=t.keyCode||t.which||t.charCode,n=J.indexOf(e);if(n>=0&&J.splice(n,1),t.key&&"meta"===t.key.toLowerCase()&&J.splice(0,J.length),93!==e&&224!==e||(e=91),e in q)for(var i in q[e]=!1,K)K[i]===e&&(ut[i]=!1)}function lt(t){if(t){if(Array.isArray(t))t.forEach((function(t){t.key&&ct(t)}));else if("object"==typeof t)t.key&&ct(t);else if("string"==typeof t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var o=n[0],a=n[1];"function"==typeof o&&(a=o,o=""),ct({key:t,scope:o,method:a,splitKey:"+"})}}else Object.keys(Y).forEach((function(t){return delete Y[t]}))}var ct=function(t){var e=t.key,n=t.scope,i=t.method,o=t.splitKey,a=void 0===o?"+":o;D(e).forEach((function(t){var e=t.split(a),o=e.length,h=e[o-1],s="*"===h?"*":tt(h);if(Y[s]){n||(n=nt());var l=o>1?j(K,e):[];Y[s]=Y[s].map((function(t){return(!i||t.method===i)&&t.scope===n&&G(t.mods,l)?{}:t}))}}))};function rt(t,e,n){var i;if(e.scope===n||"all"===e.scope){for(var o in i=e.mods.length>0,q)Object.prototype.hasOwnProperty.call(q,o)&&(!q[o]&&e.mods.indexOf(+o)>-1||q[o]&&-1===e.mods.indexOf(+o))&&(i=!1);(0!==e.mods.length||q[16]||q[18]||q[17]||q[91])&&!i&&"*"!==e.shortcut||!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function pt(t){var e=Y["*"],n=t.keyCode||t.which||t.charCode;if(ut.filter.call(this,t)){if(93!==n&&224!==n||(n=91),-1===J.indexOf(n)&&229!==n&&J.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var n=X[e];t[e]&&-1===J.indexOf(n)?J.push(n):!t[e]&&J.indexOf(n)>-1?J.splice(J.indexOf(n),1):"metaKey"===e&&t[e]&&3===J.length&&(t.ctrlKey||t.shiftKey||t.altKey||(J=J.slice(J.indexOf(n))))})),n in q){for(var i in q[n]=!0,K)K[i]===n&&(ut[i]=!0);if(!e)return}for(var o in q)Object.prototype.hasOwnProperty.call(q,o)&&(q[o]=t[X[o]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===J.indexOf(17)&&J.push(17),-1===J.indexOf(18)&&J.push(18),q[17]=!0,q[18]=!0);var a=nt();if(e)for(var h=0;h<e.length;h++)e[h].scope===a&&("keydown"===t.type&&e[h].keydown||"keyup"===t.type&&e[h].keyup)&&rt(t,e[h],a);if(n in Y)for(var s=0;s<Y[n].length;s++)if(("keydown"===t.type&&Y[n][s].keydown||"keyup"===t.type&&Y[n][s].keyup)&&Y[n][s].key){for(var l=Y[n][s],c=l.splitKey,r=l.key.split(c),p=[],d=0;d<r.length;d++)p.push(tt(r[d]));p.sort().join("")===J.sort().join("")&&rt(t,l,a)}}}function dt(t){return $.indexOf(t)>-1}function ut(t,e,n){J=[];var i=D(t),o=[],a="all",h=document,s=0,l=!1,c=!0,r="+";for(void 0===n&&"function"==typeof e&&(n=e),"[object Object]"===Object.prototype.toString.call(e)&&(e.scope&&(a=e.scope),e.element&&(h=e.element),e.keyup&&(l=e.keyup),void 0!==e.keydown&&(c=e.keydown),"string"==typeof e.splitKey&&(r=e.splitKey)),"string"==typeof e&&(a=e);s<i.length;s++)o=[],(t=i[s].split(r)).length>1&&(o=j(K,t)),(t="*"===(t=t[t.length-1])?"*":tt(t))in Y||(Y[t]=[]),Y[t].push({keyup:l,keydown:c,scope:a,mods:o,shortcut:i[s],method:n,key:i[s],splitKey:r});void 0!==h&&!dt(h)&&window&&($.push(h),P(h,"keydown",(function(t){pt(t)})),P(window,"focus",(function(){J=[]})),P(h,"keyup",(function(t){pt(t),st(t)})))}var mt={setScope:et,getScope:nt,deleteScope:ht,getPressedKeyCodes:it,isPressed:at,filter:ot,unbind:lt};for(var vt in mt)Object.prototype.hasOwnProperty.call(mt,vt)&&(ut[vt]=mt[vt]);if("undefined"!=typeof window){var gt=window.hotkeys;ut.noConflict=function(t){return t&&window.hotkeys===ut&&(window.hotkeys=gt),ut},window.hotkeys=ut}const zt=new Set(["INPUT","SELECT","TEXTAREA","PAPER-INPUT","PAPER-TEXTAREA","PB-SEARCH"]);let ft=!0;ft&&(ut.filter=t=>{const e=(t.target||t.srcElement).tagName;return!(e.isContentEditable||zt.has(e))},ft=!1);const yt=t=>class extends t{static get properties(){return Object.assign(Object.assign({},super.properties),{},{hotkeys:{type:Object}})}constructor(){super(),this.hotkeys={}}registerHotkey(t,e,n){t&&this.hotkeys[t]&&(n?ut(this.hotkeys[t],{element:n},e):ut(this.hotkeys[t],e))}display(t){if(t&&this.hotkeys[t]){let e=[];return this.hotkeys[t].split(/\s*,\s*/).forEach(t=>{e.push(t.replace("+","-"))}),e.join(", ")}return""}};function Ht(t,e,n){n?ut(t,{element:n},e):ut(t,e)}window.pbKeyboard=Ht,
741
+ var R="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function P(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on".concat(e),(function(){n(window.event)}))}function j(t,e){for(var n=e.slice(0,e.length-1),o=0;o<n.length;o++)n[o]=t[n[o].toLowerCase()];return n}function D(t){"string"!=typeof t&&(t="");for(var e=(t=t.replace(/\s/g,"")).split(","),n=e.lastIndexOf("");n>=0;)e[n-1]+=",",e.splice(n,1),n=e.lastIndexOf("");return e}function G(t,e){for(var n=t.length>=e.length?t:e,o=t.length>=e.length?e:t,i=!0,a=0;a<n.length;a++)-1===o.indexOf(n[a])&&(i=!1);return i}for(var U={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":R?173:189,"=":R?61:187,";":R?59:186,"'":222,"[":219,"]":221,"\\":220},K={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},X={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},q={16:!1,18:!1,17:!1,91:!1},Y={},Z=1;Z<20;Z++)U["f".concat(Z)]=111+Z;var J=[],Q="all",$=[],tt=function(t){return U[t.toLowerCase()]||K[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function et(t){Q=t||"all"}function nt(){return Q||"all"}function ot(){return J.slice(0)}function it(t){var e=t.target||t.srcElement,n=e.tagName,o=!0;return!e.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||e.readOnly)||(o=!1),o}function at(t){return"string"==typeof t&&(t=tt(t)),-1!==J.indexOf(t)}function ht(t,e){var n,o;for(var i in t||(t=nt()),Y)if(Object.prototype.hasOwnProperty.call(Y,i))for(n=Y[i],o=0;o<n.length;)n[o].scope===t?n.splice(o,1):o++;nt()===t&&et(e||"all")}function st(t){var e=t.keyCode||t.which||t.charCode,n=J.indexOf(e);if(n>=0&&J.splice(n,1),t.key&&"meta"===t.key.toLowerCase()&&J.splice(0,J.length),93!==e&&224!==e||(e=91),e in q)for(var o in q[e]=!1,K)K[o]===e&&(ut[o]=!1)}function lt(t){if(t){if(Array.isArray(t))t.forEach((function(t){t.key&&ct(t)}));else if("object"==typeof t)t.key&&ct(t);else if("string"==typeof t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];var i=n[0],a=n[1];"function"==typeof i&&(a=i,i=""),ct({key:t,scope:i,method:a,splitKey:"+"})}}else Object.keys(Y).forEach((function(t){return delete Y[t]}))}var ct=function(t){var e=t.key,n=t.scope,o=t.method,i=t.splitKey,a=void 0===i?"+":i;D(e).forEach((function(t){var e=t.split(a),i=e.length,h=e[i-1],s="*"===h?"*":tt(h);if(Y[s]){n||(n=nt());var l=i>1?j(K,e):[];Y[s]=Y[s].map((function(t){return(!o||t.method===o)&&t.scope===n&&G(t.mods,l)?{}:t}))}}))};function rt(t,e,n){var o;if(e.scope===n||"all"===e.scope){for(var i in o=e.mods.length>0,q)Object.prototype.hasOwnProperty.call(q,i)&&(!q[i]&&e.mods.indexOf(+i)>-1||q[i]&&-1===e.mods.indexOf(+i))&&(o=!1);(0!==e.mods.length||q[16]||q[18]||q[17]||q[91])&&!o&&"*"!==e.shortcut||!1===e.method(t,e)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}function pt(t){var e=Y["*"],n=t.keyCode||t.which||t.charCode;if(ut.filter.call(this,t)){if(93!==n&&224!==n||(n=91),-1===J.indexOf(n)&&229!==n&&J.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(e){var n=X[e];t[e]&&-1===J.indexOf(n)?J.push(n):!t[e]&&J.indexOf(n)>-1?J.splice(J.indexOf(n),1):"metaKey"===e&&t[e]&&3===J.length&&(t.ctrlKey||t.shiftKey||t.altKey||(J=J.slice(J.indexOf(n))))})),n in q){for(var o in q[n]=!0,K)K[o]===n&&(ut[o]=!0);if(!e)return}for(var i in q)Object.prototype.hasOwnProperty.call(q,i)&&(q[i]=t[X[i]]);t.getModifierState&&(!t.altKey||t.ctrlKey)&&t.getModifierState("AltGraph")&&(-1===J.indexOf(17)&&J.push(17),-1===J.indexOf(18)&&J.push(18),q[17]=!0,q[18]=!0);var a=nt();if(e)for(var h=0;h<e.length;h++)e[h].scope===a&&("keydown"===t.type&&e[h].keydown||"keyup"===t.type&&e[h].keyup)&&rt(t,e[h],a);if(n in Y)for(var s=0;s<Y[n].length;s++)if(("keydown"===t.type&&Y[n][s].keydown||"keyup"===t.type&&Y[n][s].keyup)&&Y[n][s].key){for(var l=Y[n][s],c=l.splitKey,r=l.key.split(c),p=[],d=0;d<r.length;d++)p.push(tt(r[d]));p.sort().join("")===J.sort().join("")&&rt(t,l,a)}}}function dt(t){return $.indexOf(t)>-1}function ut(t,e,n){J=[];var o=D(t),i=[],a="all",h=document,s=0,l=!1,c=!0,r="+";for(void 0===n&&"function"==typeof e&&(n=e),"[object Object]"===Object.prototype.toString.call(e)&&(e.scope&&(a=e.scope),e.element&&(h=e.element),e.keyup&&(l=e.keyup),void 0!==e.keydown&&(c=e.keydown),"string"==typeof e.splitKey&&(r=e.splitKey)),"string"==typeof e&&(a=e);s<o.length;s++)i=[],(t=o[s].split(r)).length>1&&(i=j(K,t)),(t="*"===(t=t[t.length-1])?"*":tt(t))in Y||(Y[t]=[]),Y[t].push({keyup:l,keydown:c,scope:a,mods:i,shortcut:o[s],method:n,key:o[s],splitKey:r});void 0!==h&&!dt(h)&&window&&($.push(h),P(h,"keydown",(function(t){pt(t)})),P(window,"focus",(function(){J=[]})),P(h,"keyup",(function(t){pt(t),st(t)})))}var mt={setScope:et,getScope:nt,deleteScope:ht,getPressedKeyCodes:ot,isPressed:at,filter:it,unbind:lt};for(var vt in mt)Object.prototype.hasOwnProperty.call(mt,vt)&&(ut[vt]=mt[vt]);if("undefined"!=typeof window){var gt=window.hotkeys;ut.noConflict=function(t){return t&&window.hotkeys===ut&&(window.hotkeys=gt),ut},window.hotkeys=ut}const zt=new Set(["INPUT","SELECT","TEXTAREA","PAPER-INPUT","PAPER-TEXTAREA","PB-SEARCH"]);let ft=!0;ft&&(ut.filter=t=>{const e=(t.target||t.srcElement).tagName;return!(e.isContentEditable||zt.has(e))},ft=!1);const yt=t=>class extends t{static get properties(){return Object.assign(Object.assign({},super.properties),{},{hotkeys:{type:Object}})}constructor(){super(),this.hotkeys={}}registerHotkey(t,e,n){t&&this.hotkeys[t]&&(n?ut(this.hotkeys[t],{element:n},e):ut(this.hotkeys[t],e))}display(t){if(t&&this.hotkeys[t]){let e=[];return this.hotkeys[t].split(/\s*,\s*/).forEach(t=>{e.push(t.replace("+","-"))}),e.join(", ")}return""}};function Ht(t,e,n){n?ut(t,{element:n},e):ut(t,e)}window.pbKeyboard=Ht,
737
742
  /**
738
743
  @license
739
744
  Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
@@ -874,7 +879,7 @@ t({is:"paper-icon-button",_template:e`
874
879
  <slot id="templates" name="autocomplete-custom-template"></slot>
875
880
 
876
881
  </paper-autocomplete-suggestions>
877
- `,is:"paper-autocomplete",properties:{autoValidate:{type:Boolean,value:!1},invalid:{type:Boolean,notify:!0,value:!1},autocapitalize:String,errorMessage:{type:String},label:String,noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},placeholder:String,required:{type:Boolean,value:!1},readonly:{type:Boolean,value:!1},focused:{type:Boolean,value:!1,notify:!0},disabled:{type:Boolean,value:!1},source:{type:Array,observer:"_sourceChanged"},textProperty:{type:String,value:"text"},valueProperty:{type:String,value:"value"},value:{type:Object,notify:!0},text:{type:String,notify:!0,value:""},disableShowClear:{type:Boolean,value:!1},remoteSource:{type:Boolean,value:!1},eventNamespace:{type:String,value:"-"},minLength:{type:Number,value:1},pattern:String,allowedPattern:String,charCounter:{type:Boolean,value:!1},maxlength:{type:Number},name:String,queryFn:{type:Function},highlightFirst:{type:Boolean,value:!1},showResultsOnFocus:{type:Boolean,value:!1},_value:{value:void 0},_text:{value:void 0},_isClearButtonVisible:{type:Boolean,value:!1},_isSuggestionsOpened:{type:Boolean,value:!1},selectedOption:{type:Object,notify:!0}},observers:["_textObserver(text)"],_sourceChanged:function(t){var e=this.text;!Array.isArray(t)||0===t.length||null===e||e.length<this.minLength||this.$.autocompleteInput.focused&&this.$.paperAutocompleteSuggestions._handleSuggestions({target:{value:e}})},ready:function(){this._value=this.value,this.addEventListener("autocomplete"+this.eventNamespace+"selected",this._onAutocompleteSelected.bind(this))},_clear:function(){var t={text:this.text,value:this.value};this.value=null,this._value=null,this.text="",this._text="",this._fireEvent(t,"reset-blur"),this._hideClearButton(),this.$.autocompleteInput.focused||this.$.autocompleteInput.focus()},_fireEvent:function(t,e){var n=this._getId(),i="autocomplete"+this.eventNamespace+e;this.fire(i,{id:n,value:t[this.valueProperty]||t.value,text:t[this.textProperty]||t.text,target:this,option:t})},_textObserver:function(t){t&&t.trim()?this._showClearButton():this._hideClearButton()},_onAutocompleteSelected:function(t){var e=t.detail;this.value=e.value,this.text=e.text},_showClearButton:function(){this.disableShowClear||this._isClearButtonVisible||(this.$.clear.style.display="inline-block",this._isClearButtonVisible=!0)},_hideClearButton:function(){this._isClearButtonVisible&&(this.$.clear.style.display="none",this._isClearButtonVisible=!1)},_getId:function(){var t=this.getAttribute("id");return t||(t=this.dataset.id),t},getOption:function(){return{text:this.text,value:this.value}},setOption:function(t){this.text=t[this.textProperty]||t.text,this.value=t[this.valueProperty]||t.value,this._showClearButton()},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1},suggestions:function(t){this.$.paperAutocompleteSuggestions.suggestions(t)},validate:function(){return this.$.autocompleteInput.validate()},clear:function(){this._value="",this._text="",this._clear()},reset:function(){this._clear()},hideSuggestions:function(){this._hideClearButton(),this.$.paperAutocompleteSuggestions.hideSuggestions()},onSelectHandler:function(t){this.$.paperAutocompleteSuggestions._onSelect(t)}});class Mt extends H{static get styles(){return b`
882
+ `,is:"paper-autocomplete",properties:{autoValidate:{type:Boolean,value:!1},invalid:{type:Boolean,notify:!0,value:!1},autocapitalize:String,errorMessage:{type:String},label:String,noLabelFloat:{type:Boolean,value:!1},alwaysFloatLabel:{type:Boolean,value:!1},placeholder:String,required:{type:Boolean,value:!1},readonly:{type:Boolean,value:!1},focused:{type:Boolean,value:!1,notify:!0},disabled:{type:Boolean,value:!1},source:{type:Array,observer:"_sourceChanged"},textProperty:{type:String,value:"text"},valueProperty:{type:String,value:"value"},value:{type:Object,notify:!0},text:{type:String,notify:!0,value:""},disableShowClear:{type:Boolean,value:!1},remoteSource:{type:Boolean,value:!1},eventNamespace:{type:String,value:"-"},minLength:{type:Number,value:1},pattern:String,allowedPattern:String,charCounter:{type:Boolean,value:!1},maxlength:{type:Number},name:String,queryFn:{type:Function},highlightFirst:{type:Boolean,value:!1},showResultsOnFocus:{type:Boolean,value:!1},_value:{value:void 0},_text:{value:void 0},_isClearButtonVisible:{type:Boolean,value:!1},_isSuggestionsOpened:{type:Boolean,value:!1},selectedOption:{type:Object,notify:!0}},observers:["_textObserver(text)"],_sourceChanged:function(t){var e=this.text;!Array.isArray(t)||0===t.length||null===e||e.length<this.minLength||this.$.autocompleteInput.focused&&this.$.paperAutocompleteSuggestions._handleSuggestions({target:{value:e}})},ready:function(){this._value=this.value,this.addEventListener("autocomplete"+this.eventNamespace+"selected",this._onAutocompleteSelected.bind(this))},_clear:function(){var t={text:this.text,value:this.value};this.value=null,this._value=null,this.text="",this._text="",this._fireEvent(t,"reset-blur"),this._hideClearButton(),this.$.autocompleteInput.focused||this.$.autocompleteInput.focus()},_fireEvent:function(t,e){var n=this._getId(),o="autocomplete"+this.eventNamespace+e;this.fire(o,{id:n,value:t[this.valueProperty]||t.value,text:t[this.textProperty]||t.text,target:this,option:t})},_textObserver:function(t){t&&t.trim()?this._showClearButton():this._hideClearButton()},_onAutocompleteSelected:function(t){var e=t.detail;this.value=e.value,this.text=e.text},_showClearButton:function(){this.disableShowClear||this._isClearButtonVisible||(this.$.clear.style.display="inline-block",this._isClearButtonVisible=!0)},_hideClearButton:function(){this._isClearButtonVisible&&(this.$.clear.style.display="none",this._isClearButtonVisible=!1)},_getId:function(){var t=this.getAttribute("id");return t||(t=this.dataset.id),t},getOption:function(){return{text:this.text,value:this.value}},setOption:function(t){this.text=t[this.textProperty]||t.text,this.value=t[this.valueProperty]||t.value,this._showClearButton()},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1},suggestions:function(t){this.$.paperAutocompleteSuggestions.suggestions(t)},validate:function(){return this.$.autocompleteInput.validate()},clear:function(){this._value="",this._text="",this._clear()},reset:function(){this._clear()},hideSuggestions:function(){this._hideClearButton(),this.$.paperAutocompleteSuggestions.hideSuggestions()},onSelectHandler:function(t){this.$.paperAutocompleteSuggestions._onSelect(t)}});class Mt extends H{static get styles(){return b`
878
883
  :host {
879
884
  display:block;
880
885
  }
@@ -895,7 +900,7 @@ t({is:"paper-icon-button",_template:e`
895
900
  <paper-button id="reject" dialog-confirm="dialog-confirm" autofocus="autofocus" ?hidden="${this.isMessage()}">${V("dialogs.no")}</paper-button>
896
901
  </div>
897
902
  </paper-dialog>
898
- `}firstUpdated(){this.modal=this.shadowRoot.getElementById("modal")}updated(){this.modal&&this.modal.notifyResize()}show(t,e){this.type="message",this.set(t,e),this.modal.noCancelOnOutsideClick=!1,this.modal.noCancelOnEscKey=!1,this.modal.open()}confirm(t,e){this.type="confirm",this.set(t,e),this.modal.noCancelOnOutsideClick=!0,this.modal.noCancelOnEscKey=!0,this.modal.open();const n=this.shadowRoot.getElementById("confirm"),i=this.shadowRoot.getElementById("reject");return new Promise((t,e)=>{n.addEventListener("click",t,{once:!0}),i.addEventListener("click",e,{once:!0})})}set(t,e){(t||e)&&(t&&(this.title=t),e&&(this.message=e),this.modal.notifyResize())}isMessage(){return"message"===this.type}isConfirm(){return"confirm"===this.type}}customElements.define("pb-message",Mt);class bt extends(y(H)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{path:{type:String},src:{type:String},title:{type:String},_href:{type:String}})}constructor(){super(),this.title=""}connectedCallback(){super.connectedCallback(),v("pb-page-ready",t=>{if("."===t.endpoint)this._href="/exist/apps/eXide/";else{const e=/^(.*:\/+[^/]+)\/.*$/.exec(t.endpoint);this._href=e?e[1]+"/exist/apps/eXide/":"/exist/apps/eXide/"}})}render(){return new URL(this._href,window.location.href).origin===this.getUrl().origin?M`<a href="${this._href}" target="eXide" title="${this.title}" @click="${this.open}"><slot></slot></a>`:M`<a href="${this._href}/index.html?open=${this.path}" title="${this.title}"><slot></slot></a>`}static get styles(){return b`
903
+ `}firstUpdated(){this.modal=this.shadowRoot.getElementById("modal")}updated(){this.modal&&this.modal.notifyResize()}show(t,e){this.type="message",this.set(t,e),this.modal.noCancelOnOutsideClick=!1,this.modal.noCancelOnEscKey=!1,this.modal.open()}confirm(t,e){this.type="confirm",this.set(t,e),this.modal.noCancelOnOutsideClick=!0,this.modal.noCancelOnEscKey=!0,this.modal.open();const n=this.shadowRoot.getElementById("confirm"),o=this.shadowRoot.getElementById("reject");return new Promise((t,e)=>{n.addEventListener("click",t,{once:!0}),o.addEventListener("click",e,{once:!0})})}set(t,e){(t||e)&&(t&&(this.title=t),e&&(this.message=e),this.modal.notifyResize())}isMessage(){return"message"===this.type}isConfirm(){return"confirm"===this.type}}customElements.define("pb-message",Mt);class bt extends(y(H)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{path:{type:String},src:{type:String},title:{type:String},_href:{type:String}})}constructor(){super(),this.title=""}connectedCallback(){super.connectedCallback(),v("pb-page-ready",t=>{if("."===t.endpoint)this._href="/exist/apps/eXide/";else{const e=/^(.*:\/+[^/]+)\/.*$/.exec(t.endpoint);this._href=e?e[1]+"/exist/apps/eXide/":"/exist/apps/eXide/"}})}render(){return new URL(this._href,window.location.href).origin===this.getUrl().origin?M`<a href="${this._href}" target="eXide" title="${this.title}" @click="${this.open}"><slot></slot></a>`:M`<a href="${this._href}/index.html?open=${this.path}" title="${this.title}"><slot></slot></a>`}static get styles(){return b`
899
904
  :host {
900
905
  display: inline;
901
906
  }
@@ -904,9 +909,9 @@ t({is:"paper-icon-button",_template:e`
904
909
  color: inherit;
905
910
  text-decoration: none;
906
911
  }
907
- `}setPath(t){this.path=t}open(t){t.preventDefault();let e=this._href,n=this.path;if(this.src){const t=document.getElementById(this.src);n=t.getFullPath(),e=t.sourceView}const i=window.open("","eXide");if(i&&!i.closed){i.eXide?(console.log("<pb-edit-xml> using existing eXide to open %s",n),i.eXide.app.findDocument(n),i.focus()):(console.log("<pb-edit-xml> opening new eXide for %s",n),window.eXide_onload=function(){i.eXide.app.findDocument(n)},i.location=e)}}}customElements.define("pb-edit-xml",bt);class Vt extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",Vt);const Lt=document.createElement("template");Lt.innerHTML='<custom-style>\n <style>\n @font-face {\n font-family: \'lumo-icons\';\n src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEcAAsAAAAAIiwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2MAABd4h9To2WhlYWQAAA3kAAAAMAAAADZa/6SsaGhlYQAADhQAAAAdAAAAJAbpA35obXR4AAAONAAAABA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2WBvdNgZUc+ujAWzXW3UDnu1w43asStHc8GpzAXX/py0jqTQZJTgkcxJLpaCF0lD32xNt+43tAsn29Dft02uDKS2cjGUNgsk26qK2lFthYoU27INPqmiDqg5goe0pqR5qSoqMdek/CUZFywL46rEsiImleqiqoMyt4baXlu/1GLdNFf5zbcNmdr1YUWCZe47o+zUmb/DoStbw3cVsef9ALjjiPQA) format(\'woff\');\n font-weight: normal;\n font-style: normal;\n }\n\n html {\n --lumo-icons-align-center: "\\ea01";\n --lumo-icons-align-left: "\\ea02";\n --lumo-icons-align-right: "\\ea03";\n --lumo-icons-angle-down: "\\ea04";\n --lumo-icons-angle-left: "\\ea05";\n --lumo-icons-angle-right: "\\ea06";\n --lumo-icons-angle-up: "\\ea07";\n --lumo-icons-arrow-down: "\\ea08";\n --lumo-icons-arrow-left: "\\ea09";\n --lumo-icons-arrow-right: "\\ea0a";\n --lumo-icons-arrow-up: "\\ea0b";\n --lumo-icons-bar-chart: "\\ea0c";\n --lumo-icons-bell: "\\ea0d";\n --lumo-icons-calendar: "\\ea0e";\n --lumo-icons-checkmark: "\\ea0f";\n --lumo-icons-chevron-down: "\\ea10";\n --lumo-icons-chevron-left: "\\ea11";\n --lumo-icons-chevron-right: "\\ea12";\n --lumo-icons-chevron-up: "\\ea13";\n --lumo-icons-clock: "\\ea14";\n --lumo-icons-cog: "\\ea15";\n --lumo-icons-cross: "\\ea16";\n --lumo-icons-download: "\\ea17";\n --lumo-icons-dropdown: "\\ea18";\n --lumo-icons-edit: "\\ea19";\n --lumo-icons-error: "\\ea1a";\n --lumo-icons-eye: "\\ea1b";\n --lumo-icons-eye-disabled: "\\ea1c";\n --lumo-icons-menu: "\\ea1d";\n --lumo-icons-minus: "\\ea1e";\n --lumo-icons-ordered-list: "\\ea1f";\n --lumo-icons-phone: "\\ea20";\n --lumo-icons-photo: "\\ea21";\n --lumo-icons-play: "\\ea22";\n --lumo-icons-plus: "\\ea23";\n --lumo-icons-redo: "\\ea24";\n --lumo-icons-reload: "\\ea25";\n --lumo-icons-search: "\\ea26";\n --lumo-icons-undo: "\\ea27";\n --lumo-icons-unordered-list: "\\ea28";\n --lumo-icons-upload: "\\ea29";\n --lumo-icons-user: "\\ea2a";\n }\n </style>\n</custom-style>',document.head.appendChild(Lt.content);const xt=document.createElement("template");xt.innerHTML='<custom-style>\n <style>\n html {\n /* Base (background) */\n --lumo-base-color: #FFF;\n\n /* Tint */\n --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);\n --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);\n --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);\n --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);\n --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);\n --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);\n --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);\n --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);\n --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);\n --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);\n --lumo-tint: #FFF;\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);\n --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);\n --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);\n --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);\n --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);\n --lumo-shade-50pct: hsla(214, 45%, 20%, 0.5);\n --lumo-shade-60pct: hsla(214, 43%, 19%, 0.61);\n --lumo-shade-70pct: hsla(214, 42%, 18%, 0.72);\n --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);\n --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);\n --lumo-shade: hsl(214, 35%, 15%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-shade-5pct);\n --lumo-contrast-10pct: var(--lumo-shade-10pct);\n --lumo-contrast-20pct: var(--lumo-shade-20pct);\n --lumo-contrast-30pct: var(--lumo-shade-30pct);\n --lumo-contrast-40pct: var(--lumo-shade-40pct);\n --lumo-contrast-50pct: var(--lumo-shade-50pct);\n --lumo-contrast-60pct: var(--lumo-shade-60pct);\n --lumo-contrast-70pct: var(--lumo-shade-70pct);\n --lumo-contrast-80pct: var(--lumo-shade-80pct);\n --lumo-contrast-90pct: var(--lumo-shade-90pct);\n --lumo-contrast: var(--lumo-shade);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 90%, 52%);\n --lumo-primary-color-50pct: hsla(214, 90%, 52%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 52%, 0.1);\n --lumo-primary-text-color: var(--lumo-primary-color);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 100%, 61%);\n --lumo-error-color-50pct: hsla(3, 100%, 60%, 0.5);\n --lumo-error-color-10pct: hsla(3, 100%, 60%, 0.1);\n --lumo-error-text-color: hsl(3, 92%, 53%);\n --lumo-error-contrast-color: #FFF;\n\n /* Success */\n --lumo-success-color: hsl(145, 80%, 42%); /* hsl(144,82%,37%); */\n --lumo-success-color-50pct: hsla(145, 76%, 44%, 0.55);\n --lumo-success-color-10pct: hsla(145, 76%, 44%, 0.12);\n --lumo-success-text-color: hsl(145, 100%, 32%);\n --lumo-success-contrast-color: #FFF;\n }\n </style>\n</custom-style><dom-module id="lumo-color">\n <template>\n <style>\n [theme~="dark"] {\n /* Base (background) */\n --lumo-base-color: hsl(214, 35%, 21%);\n\n /* Tint */\n --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);\n --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);\n --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);\n --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);\n --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);\n --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);\n --lumo-tint-60pct: hsla(214, 82%, 90%, 0.6);\n --lumo-tint-70pct: hsla(214, 87%, 92%, 0.7);\n --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);\n --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);\n --lumo-tint: hsl(214, 100%, 98%);\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);\n --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);\n --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);\n --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);\n --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);\n --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);\n --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);\n --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);\n --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);\n --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);\n --lumo-shade: hsl(214, 33%, 13%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-tint-5pct);\n --lumo-contrast-10pct: var(--lumo-tint-10pct);\n --lumo-contrast-20pct: var(--lumo-tint-20pct);\n --lumo-contrast-30pct: var(--lumo-tint-30pct);\n --lumo-contrast-40pct: var(--lumo-tint-40pct);\n --lumo-contrast-50pct: var(--lumo-tint-50pct);\n --lumo-contrast-60pct: var(--lumo-tint-60pct);\n --lumo-contrast-70pct: var(--lumo-tint-70pct);\n --lumo-contrast-80pct: var(--lumo-tint-80pct);\n --lumo-contrast-90pct: var(--lumo-tint-90pct);\n --lumo-contrast: var(--lumo-tint);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 86%, 55%);\n --lumo-primary-color-50pct: hsla(214, 86%, 55%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 63%, 0.1);\n --lumo-primary-text-color: hsl(214, 100%, 70%);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 90%, 63%);\n --lumo-error-color-50pct: hsla(3, 90%, 63%, 0.5);\n --lumo-error-color-10pct: hsla(3, 90%, 63%, 0.1);\n --lumo-error-text-color: hsl(3, 100%, 67%);\n\n /* Success */\n --lumo-success-color: hsl(145, 65%, 42%);\n --lumo-success-color-50pct: hsla(145, 65%, 42%, 0.5);\n --lumo-success-color-10pct: hsla(145, 65%, 42%, 0.1);\n --lumo-success-text-color: hsl(145, 85%, 47%);\n }\n\n html {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n [theme~="dark"] {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: var(--lumo-header-text-color);\n }\n\n a {\n color: var(--lumo-primary-text-color);\n }\n\n blockquote {\n color: var(--lumo-secondary-text-color);\n }\n\n code,\n pre {\n background-color: var(--lumo-contrast-10pct);\n border-radius: var(--lumo-border-radius-m);\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-color-legacy">\n <template>\n <style include="lumo-color">\n :host {\n color: var(--lumo-body-text-color) !important;\n background-color: var(--lumo-base-color) !important;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(xt.content);const Ct=document.createElement("template");Ct.innerHTML="<custom-style>\n <style>\n html {\n --lumo-size-xs: 1.625rem;\n --lumo-size-s: 1.875rem;\n --lumo-size-m: 2.25rem;\n --lumo-size-l: 2.75rem;\n --lumo-size-xl: 3.5rem;\n\n /* Icons */\n --lumo-icon-size-s: 1.25em;\n --lumo-icon-size-m: 1.5em;\n --lumo-icon-size-l: 2.25em;\n /* For backwards compatibility */\n --lumo-icon-size: var(--lumo-icon-size-m);\n }\n </style>\n</custom-style>",document.head.appendChild(Ct.content);const wt=document.createElement("template");wt.innerHTML="<custom-style>\n <style>\n html {\n /* Square */\n --lumo-space-xs: 0.25rem;\n --lumo-space-s: 0.5rem;\n --lumo-space-m: 1rem;\n --lumo-space-l: 1.5rem;\n --lumo-space-xl: 2.5rem;\n\n /* Wide */\n --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);\n --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);\n --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);\n --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);\n --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);\n\n /* Tall */\n --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);\n --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);\n --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);\n --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);\n --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);\n }\n </style>\n</custom-style>",document.head.appendChild(wt.content);const St=document.createElement("template");St.innerHTML="<custom-style>\n <style>\n html {\n /* Border radius */\n --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */\n --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */\n --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */\n --lumo-border-radius: 0.25em; /* Deprecated */\n\n /* Shadow */\n --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);\n --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);\n --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);\n --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);\n --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);\n\n /* Clickable element cursor */\n --lumo-clickable-cursor: default;\n }\n </style>\n</custom-style>",document.head.appendChild(St.content);const At=document.createElement("template");At.innerHTML='<custom-style>\n <style>\n html {\n /* Font families */\n --lumo-font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n\n /* Font sizes */\n --lumo-font-size-xxs: .75rem;\n --lumo-font-size-xs: .8125rem;\n --lumo-font-size-s: .875rem;\n --lumo-font-size-m: 1rem;\n --lumo-font-size-l: 1.125rem;\n --lumo-font-size-xl: 1.375rem;\n --lumo-font-size-xxl: 1.75rem;\n --lumo-font-size-xxxl: 2.5rem;\n\n /* Line heights */\n --lumo-line-height-xs: 1.25;\n --lumo-line-height-s: 1.375;\n --lumo-line-height-m: 1.625;\n }\n\n </style>\n</custom-style><dom-module id="lumo-typography">\n <template>\n <style>\n html {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n /* Can’t combine with the above selector because that doesn’t work in browsers without native shadow dom */\n :host {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n small,\n [theme~="font-size-s"] {\n font-size: var(--lumo-font-size-s);\n line-height: var(--lumo-line-height-s);\n }\n\n [theme~="font-size-xs"] {\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: var(--lumo-line-height-xs);\n margin-top: 1.25em;\n }\n\n h1 {\n font-size: var(--lumo-font-size-xxxl);\n margin-bottom: 0.75em;\n }\n\n h2 {\n font-size: var(--lumo-font-size-xxl);\n margin-bottom: 0.5em;\n }\n\n h3 {\n font-size: var(--lumo-font-size-xl);\n margin-bottom: 0.5em;\n }\n\n h4 {\n font-size: var(--lumo-font-size-l);\n margin-bottom: 0.5em;\n }\n\n h5 {\n font-size: var(--lumo-font-size-m);\n margin-bottom: 0.25em;\n }\n\n h6 {\n font-size: var(--lumo-font-size-xs);\n margin-bottom: 0;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n }\n\n p,\n blockquote {\n margin-top: 0.5em;\n margin-bottom: 0.75em;\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n hr {\n display: block;\n align-self: stretch;\n height: 1px;\n border: 0;\n padding: 0;\n margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);\n background-color: var(--lumo-contrast-10pct);\n }\n\n blockquote {\n border-left: 2px solid var(--lumo-contrast-30pct);\n }\n\n b,\n strong {\n font-weight: 600;\n }\n\n /* RTL specific styles */\n\n blockquote[dir="rtl"] {\n border-left: none;\n border-right: 2px solid var(--lumo-contrast-30pct);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(At.content);const _t=t=>class extends t{static get properties(){return{theme:{type:String,readOnly:!0}}}attributeChangedCallback(t,e,n){super.attributeChangedCallback(t,e,n),"theme"===t&&this._setTheme(n)}},kt=t=>class extends(_t(t)){static finalize(){super.finalize();const t=this.prototype._template,e=this.template&&this.template.parentElement&&this.template.parentElement.id===this.is,n=Object.getPrototypeOf(this.prototype)._template;n&&!e&&Array.from(n.content.querySelectorAll("style[include]")).forEach(e=>{this._includeStyle(e.getAttribute("include"),t)}),this._includeMatchingThemes(t)}static _includeMatchingThemes(t){const e=p.prototype.modules;let n=!1;const i=this.is+"-default-theme";Object.keys(e).sort((t,e)=>{const n=0===t.indexOf("vaadin-"),i=0===e.indexOf("vaadin-"),o=["lumo-","material-"],a=o.filter(e=>0===t.indexOf(e)).length>0,h=o.filter(t=>0===e.indexOf(t)).length>0;return n!==i?n?-1:1:a!==h?a?-1:1:0}).forEach(o=>{if(o!==i){const i=e[o].getAttribute("theme-for");i&&i.split(" ").forEach(e=>{new RegExp("^"+e.split("*").join(".*")+"$").test(this.is)&&(n=!0,this._includeStyle(o,t))})}}),!n&&e[i]&&this._includeStyle(i,t)}static _includeStyle(t,e){if(e&&!e.content.querySelector(`style[include="${t}"]`)){const n=document.createElement("style");n.setAttribute("include",t),e.content.appendChild(n)}}}
912
+ `}setPath(t){this.path=t}open(t){t.preventDefault();let e=this._href,n=this.path;if(this.src){const t=document.getElementById(this.src);n=t.getFullPath(),e=t.sourceView}const o=window.open("","eXide");if(o&&!o.closed){o.eXide?(console.log("<pb-edit-xml> using existing eXide to open %s",n),o.eXide.app.findDocument(n),o.focus()):(console.log("<pb-edit-xml> opening new eXide for %s",n),window.eXide_onload=function(){o.eXide.app.findDocument(n)},o.location=e)}}}customElements.define("pb-edit-xml",bt);class Vt extends HTMLElement{static get version(){return"1.6.1"}}customElements.define("vaadin-lumo-styles",Vt);const Lt=document.createElement("template");Lt.innerHTML='<custom-style>\n <style>\n @font-face {\n font-family: \'lumo-icons\';\n src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEcAAsAAAAAIiwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2MAABd4h9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oznOMCl7jCNW5wizvc4wGPeMIzXvCKN7zjAzN8eonQRWZSSaYmjvug6ase98hFltexMJmmVNmV2WBvdNgZUc+ujAWzXW3UDnu1w43asStHc8GpzAXX/py0jqTQZJTgkcxJLpaCF0lD32xNt+43tAsn29Dft02uDKS2cjGUNgsk26qK2lFthYoU27INPqmiDqg5goe0pqR5qSoqMdek/CUZFywL46rEsiImleqiqoMyt4baXlu/1GLdNFf5zbcNmdr1YUWCZe47o+zUmb/DoStbw3cVsef9ALjjiPQA) format(\'woff\');\n font-weight: normal;\n font-style: normal;\n }\n\n html {\n --lumo-icons-align-center: "\\ea01";\n --lumo-icons-align-left: "\\ea02";\n --lumo-icons-align-right: "\\ea03";\n --lumo-icons-angle-down: "\\ea04";\n --lumo-icons-angle-left: "\\ea05";\n --lumo-icons-angle-right: "\\ea06";\n --lumo-icons-angle-up: "\\ea07";\n --lumo-icons-arrow-down: "\\ea08";\n --lumo-icons-arrow-left: "\\ea09";\n --lumo-icons-arrow-right: "\\ea0a";\n --lumo-icons-arrow-up: "\\ea0b";\n --lumo-icons-bar-chart: "\\ea0c";\n --lumo-icons-bell: "\\ea0d";\n --lumo-icons-calendar: "\\ea0e";\n --lumo-icons-checkmark: "\\ea0f";\n --lumo-icons-chevron-down: "\\ea10";\n --lumo-icons-chevron-left: "\\ea11";\n --lumo-icons-chevron-right: "\\ea12";\n --lumo-icons-chevron-up: "\\ea13";\n --lumo-icons-clock: "\\ea14";\n --lumo-icons-cog: "\\ea15";\n --lumo-icons-cross: "\\ea16";\n --lumo-icons-download: "\\ea17";\n --lumo-icons-dropdown: "\\ea18";\n --lumo-icons-edit: "\\ea19";\n --lumo-icons-error: "\\ea1a";\n --lumo-icons-eye: "\\ea1b";\n --lumo-icons-eye-disabled: "\\ea1c";\n --lumo-icons-menu: "\\ea1d";\n --lumo-icons-minus: "\\ea1e";\n --lumo-icons-ordered-list: "\\ea1f";\n --lumo-icons-phone: "\\ea20";\n --lumo-icons-photo: "\\ea21";\n --lumo-icons-play: "\\ea22";\n --lumo-icons-plus: "\\ea23";\n --lumo-icons-redo: "\\ea24";\n --lumo-icons-reload: "\\ea25";\n --lumo-icons-search: "\\ea26";\n --lumo-icons-undo: "\\ea27";\n --lumo-icons-unordered-list: "\\ea28";\n --lumo-icons-upload: "\\ea29";\n --lumo-icons-user: "\\ea2a";\n }\n </style>\n</custom-style>',document.head.appendChild(Lt.content);const xt=document.createElement("template");xt.innerHTML='<custom-style>\n <style>\n html {\n /* Base (background) */\n --lumo-base-color: #FFF;\n\n /* Tint */\n --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);\n --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);\n --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);\n --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);\n --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);\n --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);\n --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);\n --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);\n --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);\n --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);\n --lumo-tint: #FFF;\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);\n --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);\n --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);\n --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);\n --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);\n --lumo-shade-50pct: hsla(214, 45%, 20%, 0.5);\n --lumo-shade-60pct: hsla(214, 43%, 19%, 0.61);\n --lumo-shade-70pct: hsla(214, 42%, 18%, 0.72);\n --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);\n --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);\n --lumo-shade: hsl(214, 35%, 15%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-shade-5pct);\n --lumo-contrast-10pct: var(--lumo-shade-10pct);\n --lumo-contrast-20pct: var(--lumo-shade-20pct);\n --lumo-contrast-30pct: var(--lumo-shade-30pct);\n --lumo-contrast-40pct: var(--lumo-shade-40pct);\n --lumo-contrast-50pct: var(--lumo-shade-50pct);\n --lumo-contrast-60pct: var(--lumo-shade-60pct);\n --lumo-contrast-70pct: var(--lumo-shade-70pct);\n --lumo-contrast-80pct: var(--lumo-shade-80pct);\n --lumo-contrast-90pct: var(--lumo-shade-90pct);\n --lumo-contrast: var(--lumo-shade);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 90%, 52%);\n --lumo-primary-color-50pct: hsla(214, 90%, 52%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 52%, 0.1);\n --lumo-primary-text-color: var(--lumo-primary-color);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 100%, 61%);\n --lumo-error-color-50pct: hsla(3, 100%, 60%, 0.5);\n --lumo-error-color-10pct: hsla(3, 100%, 60%, 0.1);\n --lumo-error-text-color: hsl(3, 92%, 53%);\n --lumo-error-contrast-color: #FFF;\n\n /* Success */\n --lumo-success-color: hsl(145, 80%, 42%); /* hsl(144,82%,37%); */\n --lumo-success-color-50pct: hsla(145, 76%, 44%, 0.55);\n --lumo-success-color-10pct: hsla(145, 76%, 44%, 0.12);\n --lumo-success-text-color: hsl(145, 100%, 32%);\n --lumo-success-contrast-color: #FFF;\n }\n </style>\n</custom-style><dom-module id="lumo-color">\n <template>\n <style>\n [theme~="dark"] {\n /* Base (background) */\n --lumo-base-color: hsl(214, 35%, 21%);\n\n /* Tint */\n --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);\n --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);\n --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);\n --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);\n --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);\n --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);\n --lumo-tint-60pct: hsla(214, 82%, 90%, 0.6);\n --lumo-tint-70pct: hsla(214, 87%, 92%, 0.7);\n --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);\n --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);\n --lumo-tint: hsl(214, 100%, 98%);\n\n /* Shade */\n --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);\n --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);\n --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);\n --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);\n --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);\n --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);\n --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);\n --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);\n --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);\n --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);\n --lumo-shade: hsl(214, 33%, 13%);\n\n /* Contrast */\n --lumo-contrast-5pct: var(--lumo-tint-5pct);\n --lumo-contrast-10pct: var(--lumo-tint-10pct);\n --lumo-contrast-20pct: var(--lumo-tint-20pct);\n --lumo-contrast-30pct: var(--lumo-tint-30pct);\n --lumo-contrast-40pct: var(--lumo-tint-40pct);\n --lumo-contrast-50pct: var(--lumo-tint-50pct);\n --lumo-contrast-60pct: var(--lumo-tint-60pct);\n --lumo-contrast-70pct: var(--lumo-tint-70pct);\n --lumo-contrast-80pct: var(--lumo-tint-80pct);\n --lumo-contrast-90pct: var(--lumo-tint-90pct);\n --lumo-contrast: var(--lumo-tint);\n\n /* Text */\n --lumo-header-text-color: var(--lumo-contrast);\n --lumo-body-text-color: var(--lumo-contrast-90pct);\n --lumo-secondary-text-color: var(--lumo-contrast-70pct);\n --lumo-tertiary-text-color: var(--lumo-contrast-50pct);\n --lumo-disabled-text-color: var(--lumo-contrast-30pct);\n\n /* Primary */\n --lumo-primary-color: hsl(214, 86%, 55%);\n --lumo-primary-color-50pct: hsla(214, 86%, 55%, 0.5);\n --lumo-primary-color-10pct: hsla(214, 90%, 63%, 0.1);\n --lumo-primary-text-color: hsl(214, 100%, 70%);\n --lumo-primary-contrast-color: #FFF;\n\n /* Error */\n --lumo-error-color: hsl(3, 90%, 63%);\n --lumo-error-color-50pct: hsla(3, 90%, 63%, 0.5);\n --lumo-error-color-10pct: hsla(3, 90%, 63%, 0.1);\n --lumo-error-text-color: hsl(3, 100%, 67%);\n\n /* Success */\n --lumo-success-color: hsl(145, 65%, 42%);\n --lumo-success-color-50pct: hsla(145, 65%, 42%, 0.5);\n --lumo-success-color-10pct: hsla(145, 65%, 42%, 0.1);\n --lumo-success-text-color: hsl(145, 85%, 47%);\n }\n\n html {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n [theme~="dark"] {\n color: var(--lumo-body-text-color);\n background-color: var(--lumo-base-color);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n color: var(--lumo-header-text-color);\n }\n\n a {\n color: var(--lumo-primary-text-color);\n }\n\n blockquote {\n color: var(--lumo-secondary-text-color);\n }\n\n code,\n pre {\n background-color: var(--lumo-contrast-10pct);\n border-radius: var(--lumo-border-radius-m);\n }\n </style>\n </template>\n</dom-module><dom-module id="lumo-color-legacy">\n <template>\n <style include="lumo-color">\n :host {\n color: var(--lumo-body-text-color) !important;\n background-color: var(--lumo-base-color) !important;\n }\n </style>\n </template>\n</dom-module>',document.head.appendChild(xt.content);const Ct=document.createElement("template");Ct.innerHTML="<custom-style>\n <style>\n html {\n --lumo-size-xs: 1.625rem;\n --lumo-size-s: 1.875rem;\n --lumo-size-m: 2.25rem;\n --lumo-size-l: 2.75rem;\n --lumo-size-xl: 3.5rem;\n\n /* Icons */\n --lumo-icon-size-s: 1.25em;\n --lumo-icon-size-m: 1.5em;\n --lumo-icon-size-l: 2.25em;\n /* For backwards compatibility */\n --lumo-icon-size: var(--lumo-icon-size-m);\n }\n </style>\n</custom-style>",document.head.appendChild(Ct.content);const wt=document.createElement("template");wt.innerHTML="<custom-style>\n <style>\n html {\n /* Square */\n --lumo-space-xs: 0.25rem;\n --lumo-space-s: 0.5rem;\n --lumo-space-m: 1rem;\n --lumo-space-l: 1.5rem;\n --lumo-space-xl: 2.5rem;\n\n /* Wide */\n --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);\n --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);\n --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);\n --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);\n --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);\n\n /* Tall */\n --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);\n --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);\n --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);\n --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);\n --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);\n }\n </style>\n</custom-style>",document.head.appendChild(wt.content);const St=document.createElement("template");St.innerHTML="<custom-style>\n <style>\n html {\n /* Border radius */\n --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */\n --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */\n --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */\n --lumo-border-radius: 0.25em; /* Deprecated */\n\n /* Shadow */\n --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);\n --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);\n --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);\n --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);\n --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);\n\n /* Clickable element cursor */\n --lumo-clickable-cursor: default;\n }\n </style>\n</custom-style>",document.head.appendChild(St.content);const At=document.createElement("template");At.innerHTML='<custom-style>\n <style>\n html {\n /* Font families */\n --lumo-font-family: -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n\n /* Font sizes */\n --lumo-font-size-xxs: .75rem;\n --lumo-font-size-xs: .8125rem;\n --lumo-font-size-s: .875rem;\n --lumo-font-size-m: 1rem;\n --lumo-font-size-l: 1.125rem;\n --lumo-font-size-xl: 1.375rem;\n --lumo-font-size-xxl: 1.75rem;\n --lumo-font-size-xxxl: 2.5rem;\n\n /* Line heights */\n --lumo-line-height-xs: 1.25;\n --lumo-line-height-s: 1.375;\n --lumo-line-height-m: 1.625;\n }\n\n </style>\n</custom-style><dom-module id="lumo-typography">\n <template>\n <style>\n html {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n /* Can’t combine with the above selector because that doesn’t work in browsers without native shadow dom */\n :host {\n font-family: var(--lumo-font-family);\n font-size: var(--lumo-font-size, var(--lumo-font-size-m));\n line-height: var(--lumo-line-height-m);\n -webkit-text-size-adjust: 100%;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n small,\n [theme~="font-size-s"] {\n font-size: var(--lumo-font-size-s);\n line-height: var(--lumo-line-height-s);\n }\n\n [theme~="font-size-xs"] {\n font-size: var(--lumo-font-size-xs);\n line-height: var(--lumo-line-height-xs);\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-weight: 600;\n line-height: var(--lumo-line-height-xs);\n margin-top: 1.25em;\n }\n\n h1 {\n font-size: var(--lumo-font-size-xxxl);\n margin-bottom: 0.75em;\n }\n\n h2 {\n font-size: var(--lumo-font-size-xxl);\n margin-bottom: 0.5em;\n }\n\n h3 {\n font-size: var(--lumo-font-size-xl);\n margin-bottom: 0.5em;\n }\n\n h4 {\n font-size: var(--lumo-font-size-l);\n margin-bottom: 0.5em;\n }\n\n h5 {\n font-size: var(--lumo-font-size-m);\n margin-bottom: 0.25em;\n }\n\n h6 {\n font-size: var(--lumo-font-size-xs);\n margin-bottom: 0;\n text-transform: uppercase;\n letter-spacing: 0.03em;\n }\n\n p,\n blockquote {\n margin-top: 0.5em;\n margin-bottom: 0.75em;\n }\n\n a {\n text-decoration: none;\n }\n\n a:hover {\n text-decoration: underline;\n }\n\n hr {\n display: block;\n align-self: stretch;\n height: 1px;\n border: 0;\n padding: 0;\n margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);\n background-color: var(--lumo-contrast-10pct);\n }\n\n blockquote {\n border-left: 2px solid var(--lumo-contrast-30pct);\n }\n\n b,\n strong {\n font-weight: 600;\n }\n\n /* RTL specific styles */\n\n blockquote[dir="rtl"] {\n border-left: none;\n border-right: 2px solid var(--lumo-contrast-30pct);\n }\n\n </style>\n </template>\n</dom-module>',document.head.appendChild(At.content);const _t=t=>class extends t{static get properties(){return{theme:{type:String,readOnly:!0}}}attributeChangedCallback(t,e,n){super.attributeChangedCallback(t,e,n),"theme"===t&&this._setTheme(n)}},kt=t=>class extends(_t(t)){static finalize(){super.finalize();const t=this.prototype._template,e=this.template&&this.template.parentElement&&this.template.parentElement.id===this.is,n=Object.getPrototypeOf(this.prototype)._template;n&&!e&&Array.from(n.content.querySelectorAll("style[include]")).forEach(e=>{this._includeStyle(e.getAttribute("include"),t)}),this._includeMatchingThemes(t)}static _includeMatchingThemes(t){const e=p.prototype.modules;let n=!1;const o=this.is+"-default-theme";Object.keys(e).sort((t,e)=>{const n=0===t.indexOf("vaadin-"),o=0===e.indexOf("vaadin-"),i=["lumo-","material-"],a=i.filter(e=>0===t.indexOf(e)).length>0,h=i.filter(t=>0===e.indexOf(t)).length>0;return n!==o?n?-1:1:a!==h?a?-1:1:0}).forEach(i=>{if(i!==o){const o=e[i].getAttribute("theme-for");o&&o.split(" ").forEach(e=>{new RegExp("^"+e.split("*").join(".*")+"$").test(this.is)&&(n=!0,this._includeStyle(i,t))})}}),!n&&e[o]&&this._includeStyle(o,t)}static _includeStyle(t,e){if(e&&!e.content.querySelector(`style[include="${t}"]`)){const n=document.createElement("style");n.setAttribute("include",t),e.content.appendChild(n)}}}
908
913
  /**
909
914
  @license
910
915
  Copyright (c) 2020 Vaadin Ltd.
911
916
  This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
912
- */;class Et{static detectScrollType(){const t=document.createElement("div");t.textContent="ABCD",t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t);let e="reverse";return t.scrollLeft>0?e="default":(t.scrollLeft=2,t.scrollLeft<2&&(e="negative")),document.body.removeChild(t),e}static getNormalizedScrollLeft(t,e,n){const{scrollLeft:i}=n;if("rtl"!==e||!t)return i;switch(t){case"negative":return n.scrollWidth-n.clientWidth+i;case"reverse":return n.scrollWidth-n.clientWidth-i}return i}static setNormalizedScrollLeft(t,e,n,i){if("rtl"===e&&t)switch(t){case"negative":n.scrollLeft=n.clientWidth-n.scrollWidth+i;break;case"reverse":n.scrollLeft=n.scrollWidth-n.clientWidth-i;break;default:n.scrollLeft=i}else n.scrollLeft=i}}const It=[];let Ot;new MutationObserver((function(){const t=Bt();It.forEach(e=>{Tt(e,t)})})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Tt=function(t,e){e?t.setAttribute("dir",e):t.removeAttribute("dir")},Bt=function(){return document.documentElement.getAttribute("dir")},Wt=t=>class extends t{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),Ot||(Ot=Et.detectScrollType())}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),Tt(this,Bt()))}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),"dir"!==t)return;const i=n===Bt()&&-1===It.indexOf(this),o=!n&&e&&-1===It.indexOf(this),a=n!==Bt()&&e===Bt();i||o?(this.__subscribe(),Tt(this,Bt())):a&&this.__subscribe(!1)}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(t=!0){t?-1===It.indexOf(this)&&It.push(this):It.indexOf(this)>-1&&It.splice(It.indexOf(this),1)}__getNormalizedScrollLeft(t){return Et.getNormalizedScrollLeft(Ot,this.getAttribute("dir")||"ltr",t)}__setNormalizedScrollLeft(t,e){return Et.setNormalizedScrollLeft(Ot,this.getAttribute("dir")||"ltr",t,e)}},Ft=/\/\*\*\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Nt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Rt(){function t(){return!0}return Ut(t)}function Pt(){try{return!!jt()||!!Dt()&&(Nt?!Gt():!Rt())}catch(t){return!1}}function jt(){return localStorage.getItem("vaadin.developmentmode.force")}function Dt(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Gt(){if(Nt){if(Object.keys(Nt).map(t=>Nt[t]).filter(t=>t.productionMode).length>0)return!0}return!1}function Ut(t,e){if("function"!=typeof t)return;const n=Ft.exec(t.toString());if(n)try{t=new Function(n[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};const Kt=function(t,e){if(window.Vaadin.developmentMode)return Ut(t,e)};function Xt(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=Pt());const qt=function(){if("function"==typeof Kt)return Kt(Xt)};let Yt;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){qt&&qt()};const Zt=new Set,Jt=t=>class extends(Wt(t)){static finalize(){super.finalize();const{is:t}=this;t&&!Zt.has(t)&&(window.Vaadin.registrations.push(this),Zt.add(t),window.Vaadin.developmentModeCallback&&(Yt=d.debounce(Yt,u,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),m(Yt)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};export{Et as D,Jt as E,B as P,kt as T,w as i,x as l,yt as p,_ as t,E as u};
917
+ */;class Et{static detectScrollType(){const t=document.createElement("div");t.textContent="ABCD",t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t);let e="reverse";return t.scrollLeft>0?e="default":(t.scrollLeft=2,t.scrollLeft<2&&(e="negative")),document.body.removeChild(t),e}static getNormalizedScrollLeft(t,e,n){const{scrollLeft:o}=n;if("rtl"!==e||!t)return o;switch(t){case"negative":return n.scrollWidth-n.clientWidth+o;case"reverse":return n.scrollWidth-n.clientWidth-o}return o}static setNormalizedScrollLeft(t,e,n,o){if("rtl"===e&&t)switch(t){case"negative":n.scrollLeft=n.clientWidth-n.scrollWidth+o;break;case"reverse":n.scrollLeft=n.scrollWidth-n.clientWidth-o;break;default:n.scrollLeft=o}else n.scrollLeft=o}}const It=[];let Ot;new MutationObserver((function(){const t=Bt();It.forEach(e=>{Tt(e,t)})})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Tt=function(t,e){e?t.setAttribute("dir",e):t.removeAttribute("dir")},Bt=function(){return document.documentElement.getAttribute("dir")},Wt=t=>class extends t{static get properties(){return{dir:{type:String,readOnly:!0}}}static finalize(){super.finalize(),Ot||(Ot=Et.detectScrollType())}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")||(this.__subscribe(),Tt(this,Bt()))}attributeChangedCallback(t,e,n){if(super.attributeChangedCallback(t,e,n),"dir"!==t)return;const o=n===Bt()&&-1===It.indexOf(this),i=!n&&e&&-1===It.indexOf(this),a=n!==Bt()&&e===Bt();o||i?(this.__subscribe(),Tt(this,Bt())):a&&this.__subscribe(!1)}disconnectedCallback(){super.disconnectedCallback(),this.__subscribe(!1),this.removeAttribute("dir")}__subscribe(t=!0){t?-1===It.indexOf(this)&&It.push(this):It.indexOf(this)>-1&&It.splice(It.indexOf(this),1)}__getNormalizedScrollLeft(t){return Et.getNormalizedScrollLeft(Ot,this.getAttribute("dir")||"ltr",t)}__setNormalizedScrollLeft(t,e){return Et.setNormalizedScrollLeft(Ot,this.getAttribute("dir")||"ltr",t,e)}},Ft=/\/\*\*\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Nt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Rt(){function t(){return!0}return Ut(t)}function Pt(){try{return!!jt()||!!Dt()&&(Nt?!Gt():!Rt())}catch(t){return!1}}function jt(){return localStorage.getItem("vaadin.developmentmode.force")}function Dt(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Gt(){if(Nt){if(Object.keys(Nt).map(t=>Nt[t]).filter(t=>t.productionMode).length>0)return!0}return!1}function Ut(t,e){if("function"!=typeof t)return;const n=Ft.exec(t.toString());if(n)try{t=new Function(n[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};const Kt=function(t,e){if(window.Vaadin.developmentMode)return Ut(t,e)};function Xt(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=Pt());const qt=function(){if("function"==typeof Kt)return Kt(Xt)};let Yt;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){qt&&qt()};const Zt=new Set,Jt=t=>class extends(Wt(t)){static finalize(){super.finalize();const{is:t}=this;t&&!Zt.has(t)&&(window.Vaadin.registrations.push(this),Zt.add(t),window.Vaadin.developmentModeCallback&&(Yt=d.debounce(Yt,u,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),m(Yt)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};export{Et as D,Jt as E,B as P,kt as T,w as i,x as l,yt as p,_ as t,E as u};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teipublisher/pb-components",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "Collection of webcomponents underlying TEI Publisher",
5
5
  "repository": "https://github.com/eeditiones/tei-publisher-components.git",
6
6
  "main": "index.html",
package/pb-elements.json CHANGED
@@ -2500,7 +2500,7 @@
2500
2500
  {
2501
2501
  "name": "pb-collapse",
2502
2502
  "path": "./src/pb-collapse.js",
2503
- "description": "A collapsible block: in collapsed state it only shows a header and expands if clicked.\r\nThe header should go into slot `collapse-trigger`, the content into `collapse-content`.\r\nExample:\r\n\r\n```html\r\n<pb-collapse>\r\n <div slot=\"collapse-trigger\">\r\n Metadata\r\n </div>\r\n <pb-view slot=\"collapse-content\" src=\"document1\" subscribe=\"transcription\" xpath=\"//teiHeader\"></pb-view>\r\n</pb-collapse>\r\n```",
2503
+ "description": "A collapsible block: in collapsed state it only shows a header and expands if clicked.\nThe header should go into slot `collapse-trigger`, the content into `collapse-content`.\nExample:\n\n```html\n<pb-collapse>\n <div slot=\"collapse-trigger\">\n Metadata\n </div>\n <pb-view slot=\"collapse-content\" src=\"document1\" subscribe=\"transcription\" xpath=\"//teiHeader\"></pb-view>\n</pb-collapse>\n```\n\nBy adding a CSS 'icon-right' to a `pb-collapse` the icon can be placed on the right side\n```\n<pb-collapse class='icon-right'>\n```",
2504
2504
  "attributes": [
2505
2505
  {
2506
2506
  "name": "horizontal",
@@ -2540,7 +2540,7 @@
2540
2540
  },
2541
2541
  {
2542
2542
  "name": "toggles",
2543
- "description": "By default, an open collapse is closed if another pb-collapse is expanded on the same event channel.\r\nSet to true to keep multiple pb-collapse open at the same time.",
2543
+ "description": "By default, an open collapse is closed if another pb-collapse is expanded on the same event channel.\nSet to true to keep multiple pb-collapse open at the same time.",
2544
2544
  "type": "boolean",
2545
2545
  "default": "false"
2546
2546
  },
@@ -2622,7 +2622,7 @@
2622
2622
  {
2623
2623
  "name": "toggles",
2624
2624
  "attribute": "toggles",
2625
- "description": "By default, an open collapse is closed if another pb-collapse is expanded on the same event channel.\r\nSet to true to keep multiple pb-collapse open at the same time.",
2625
+ "description": "By default, an open collapse is closed if another pb-collapse is expanded on the same event channel.\nSet to true to keep multiple pb-collapse open at the same time.",
2626
2626
  "type": "boolean",
2627
2627
  "default": "false"
2628
2628
  },