replaywebpage 2.1.0 → 2.1.1

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.
Binary file
package/dist/misc.js CHANGED
@@ -34,7 +34,7 @@ class gi extends ui{constructor(i){if(super(i),this.it=Z,i.type!==mi)throw Error
34
34
  * Copyright 2017 Google LLC
35
35
  * SPDX-License-Identifier: BSD-3-Clause
36
36
  */
37
- class pi extends gi{}pi.directiveName="unsafeSVG",pi.resultType=2;const vi=hi(pi),xi="important",ki=" !"+xi,wi=hi(class extends ui{constructor(i){if(super(i),i.type!==fi||"style"!==i.name||i.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce(((e,o)=>{const a=i[o];return null==a?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${a};`}),"")}update(i,[e]){const{style:o}=i.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)null==e[i]&&(this.ft.delete(i),i.includes("-")?o.removeProperty(i):o[i]=null);for(const i in e){const a=e[i];if(null!=a){this.ft.add(i);const e="string"==typeof a&&a.endsWith(ki);i.includes("-")||e?o.setProperty(i,e?a.slice(0,-11):a,e?xi:""):o[i]=a}}return Y}});var yi,zi=o(989);const $i="./w/api",_i="./w",Ai=s(zi.A);function Si(i){return[Ai,i]}const ji=window.IS_APP||(null===(yi=window.electron)||void 0===yi?void 0:yi.IS_APP)||window.matchMedia("(display-mode: standalone)").matches,Gi="2.1.0";function Ei(i){" "==i.key&&(i.preventDefault(),i.target.click())}function Ci(i){const e=document.querySelector("head"),o=document.querySelectorAll("link[rel*='icon']");for(const i of o)e.removeChild(i);for(const o of i.icons){const i=document.createElement("link");i.rel=o.rel,i.href=o.href,e.appendChild(i)}}class Pi extends ci{constructor(){super(),this.size="1.1em",this.width=null,this.height=null}static get properties(){return{svg:{type:String},size:{type:String},width:{type:String},height:{type:String}}}static get styles(){return l`
37
+ class pi extends gi{}pi.directiveName="unsafeSVG",pi.resultType=2;const vi=hi(pi),xi="important",ki=" !"+xi,wi=hi(class extends ui{constructor(i){if(super(i),i.type!==fi||"style"!==i.name||i.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(i){return Object.keys(i).reduce(((e,o)=>{const a=i[o];return null==a?e:e+`${o=o.includes("-")?o:o.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${a};`}),"")}update(i,[e]){const{style:o}=i.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const i of this.ft)null==e[i]&&(this.ft.delete(i),i.includes("-")?o.removeProperty(i):o[i]=null);for(const i in e){const a=e[i];if(null!=a){this.ft.add(i);const e="string"==typeof a&&a.endsWith(ki);i.includes("-")||e?o.setProperty(i,e?a.slice(0,-11):a,e?xi:""):o[i]=a}}return Y}});var yi,zi=o(989);const $i="./w/api",_i="./w",Ai=s(zi.A);function Si(i){return[Ai,i]}const ji=window.IS_APP||(null===(yi=window.electron)||void 0===yi?void 0:yi.IS_APP)||window.matchMedia("(display-mode: standalone)").matches,Gi="2.1.1";function Ei(i){" "==i.key&&(i.preventDefault(),i.target.click())}function Ci(i){const e=document.querySelector("head"),o=document.querySelectorAll("link[rel*='icon']");for(const i of o)e.removeChild(i);for(const o of i.icons){const i=document.createElement("link");i.rel=o.rel,i.href=o.href,e.appendChild(i)}}class Pi extends ci{constructor(){super(),this.size="1.1em",this.width=null,this.height=null}static get properties(){return{svg:{type:String},size:{type:String},width:{type:String},height:{type:String}}}static get styles(){return l`
38
38
  :host {
39
39
  display: inline-block;
40
40
  padding: 0;