From dfb2d549423a6e721836c52ad03c33916349b501 Mon Sep 17 00:00:00 2001 From: Neeraj Sharma Date: Fri, 28 Jun 2024 16:14:12 +0530 Subject: [PATCH] ghpages --- .github/workflows/gh-pages-main.yml | 2 +- ghpages/assets/main.13a904ba.js | 1144 +++++++++++++++++++++++++++ ghpages/demo/index.html | 183 +++++ ghpages/manifest.json | 7 + yarn.lock | 567 ++++++++----- 5 files changed, 1704 insertions(+), 199 deletions(-) create mode 100644 ghpages/assets/main.13a904ba.js create mode 100644 ghpages/demo/index.html create mode 100644 ghpages/manifest.json diff --git a/.github/workflows/gh-pages-main.yml b/.github/workflows/gh-pages-main.yml index bf3aa8d..6dc4784 100644 --- a/.github/workflows/gh-pages-main.yml +++ b/.github/workflows/gh-pages-main.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 20 + node-version: 16.x - name: Install dependencies run: yarn install diff --git a/ghpages/assets/main.13a904ba.js b/ghpages/assets/main.13a904ba.js new file mode 100644 index 0000000..2eaea1d --- /dev/null +++ b/ghpages/assets/main.13a904ba.js @@ -0,0 +1,1144 @@ +const Zs=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function e(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?o.credentials="include":s.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=e(s);fetch(s.href,o)}};Zs();/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Zt=window,Xe=Zt.ShadowRoot&&(Zt.ShadyCSS===void 0||Zt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fs=Symbol(),ci=new WeakMap;class Js{constructor(t,e,i){if(this._$cssResult$=!0,i!==fs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Xe&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=ci.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&ci.set(e,t))}return t}toString(){return this.cssText}}const Ys=n=>new Js(typeof n=="string"?n:n+"",void 0,fs),Xs=(n,t)=>{Xe?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=Zt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)})},di=Xe?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Ys(e)})(n):n;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var me;const Yt=window,hi=Yt.trustedTypes,Qs=hi?hi.emptyScript:"",ui=Yt.reactiveElementPolyfillSupport,We={toAttribute(n,t){switch(t){case Boolean:n=n?Qs:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},vs=(n,t)=>t!==n&&(t==t||n==n),we={attribute:!0,type:String,converter:We,reflect:!1,hasChanged:vs};class At extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=we){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||we}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(di(s))}else t!==void 0&&e.push(di(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Xs(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=we){var s;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const r=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:We).toAttribute(e,i.type);this._$El=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const r=s.getPropertyOptions(o),d=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:We;this._$El=o,this[o]=d.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||vs)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}At.finalized=!0,At.elementProperties=new Map,At.elementStyles=[],At.shadowRootOptions={mode:"open"},ui==null||ui({ReactiveElement:At}),((me=Yt.reactiveElementVersions)!==null&&me!==void 0?me:Yt.reactiveElementVersions=[]).push("1.6.1");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var be;const Xt=window,rt=Xt.trustedTypes,pi=rt?rt.createPolicy("lit-html",{createHTML:n=>n}):void 0,je="$lit$",R=`lit$${(Math.random()+"").slice(9)}$`,ms="?"+R,tn=`<${ms}>`,Z=document,Rt=()=>Z.createComment(""),Bt=n=>n===null||typeof n!="object"&&typeof n!="function",ws=Array.isArray,en=n=>ws(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",$e=`[ +\f\r]`,Ct=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gi=/-->/g,fi=/>/g,N=RegExp(`>|${$e}(?:([^\\s"'>=/]+)(${$e}*=${$e}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),vi=/'/g,mi=/"/g,bs=/^(?:script|style|textarea|title)$/i,$s=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),m=$s(1),sn=$s(2),M=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),wi=new WeakMap,q=Z.createTreeWalker(Z,129,null,!1);function ys(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return pi!==void 0?pi.createHTML(t):t}const nn=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"":"",r=Ct;for(let d=0;d"?(r=s!=null?s:Ct,c=-1):u[1]===void 0?c=-2:(c=r.lastIndex-u[2].length,l=u[1],r=u[3]===void 0?N:u[3]==='"'?mi:vi):r===mi||r===vi?r=N:r===gi||r===fi?r=Ct:(r=N,s=void 0);const p=r===N&&n[d+1].startsWith("/>")?" ":"";o+=r===Ct?a+tn:c>=0?(i.push(l),a.slice(0,c)+je+a.slice(c)+R+p):a+R+(c===-2?(i.push(void 0),d):p)}return[ys(n,o+(n[e]||"")+(t===2?"":"")),i]};class Pt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const d=t.length-1,a=this.parts,[l,u]=nn(t,e);if(this.el=Pt.createElement(l,i),q.currentNode=this.el.content,e===2){const c=this.el.content,h=c.firstChild;h.remove(),c.append(...h.childNodes)}for(;(s=q.nextNode())!==null&&a.length0){s.textContent=rt?rt.emptyScript:"";for(let p=0;p2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=at(this,t,e,0),r=!Bt(t)||t!==this._$AH&&t!==M,r&&(this._$AH=t);else{const d=t;let a,l;for(t=o[0],a=0;a{var i,s;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let r=o._$litPart$;if(r===void 0){const d=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new Gt(t.insertBefore(Rt(),d),d,void 0,e!=null?e:{})}return r._$AI(n),r};/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Qe=window.ShadowRoot&&(window.ShadyCSS===void 0||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ti=Symbol(),$i=new Map;class _s{constructor(t,e){if(this._$cssResult$=!0,e!==ti)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=$i.get(this.cssText);return Qe&&t===void 0&&($i.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const un=n=>new _s(typeof n=="string"?n:n+"",ti),g=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new _s(e,ti)},pn=(n,t)=>{Qe?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=window.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)})},yi=Qe?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return un(e)})(n):n;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var ye;const _i=window.trustedTypes,gn=_i?_i.emptyScript:"",Ai=window.reactiveElementPolyfillSupport,Fe={toAttribute(n,t){switch(t){case Boolean:n=n?gn:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},As=(n,t)=>t!==n&&(t==t||n==n),_e={attribute:!0,type:String,converter:Fe,reflect:!1,hasChanged:As};class tt extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;(e=this.l)!==null&&e!==void 0||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Eh(i,e);s!==void 0&&(this._$Eu.set(s,i),t.push(s))}),t}static createProperty(t,e=_e){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||_e}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(yi(s))}else t!==void 0&&e.push(yi(t));return e}static _$Eh(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Em(),this.requestUpdate(),(t=this.constructor.l)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$Eg)!==null&&e!==void 0?e:this._$Eg=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$Eg)===null||e===void 0||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return pn(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$Eg)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$Eg)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=_e){var s,o;const r=this.constructor._$Eh(t,i);if(r!==void 0&&i.reflect===!0){const d=((o=(s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==null&&o!==void 0?o:Fe.toAttribute)(e,i.type);this._$Ei=t,d==null?this.removeAttribute(r):this.setAttribute(r,d),this._$Ei=null}}_$AK(t,e){var i,s,o;const r=this.constructor,d=r._$Eu.get(t);if(d!==void 0&&this._$Ei!==d){const a=r.getPropertyOptions(d),l=a.converter,u=(o=(s=(i=l)===null||i===void 0?void 0:i.fromAttribute)!==null&&s!==void 0?s:typeof l=="function"?l:null)!==null&&o!==void 0?o:Fe.fromAttribute;this._$Ei=d,this[d]=u(e,a.type),this._$Ei=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||As)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Ei!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach((s,o)=>this[o]=s),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$Eg)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$Eg)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$ES(i,this[i],e)),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}tt.finalized=!0,tt.elementProperties=new Map,tt.elementStyles=[],tt.shadowRootOptions={mode:"open"},Ai==null||Ai({ReactiveElement:tt}),((ye=globalThis.reactiveElementVersions)!==null&&ye!==void 0?ye:globalThis.reactiveElementVersions=[]).push("1.3.1");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var Ae,Ce;class x extends tt{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=hn(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return M}}x.finalized=!0,x._$litElement$=!0,(Ae=globalThis.litElementHydrateSupport)===null||Ae===void 0||Ae.call(globalThis,{LitElement:x});const Ci=globalThis.litElementPolyfillSupport;Ci==null||Ci({LitElement:x});((Ce=globalThis.litElementVersions)!==null&&Ce!==void 0?Ce:globalThis.litElementVersions=[]).push("3.3.3");class fn{constructor(){this.resizeObserver=new ResizeObserver(t=>{window.requestAnimationFrame(()=>{for(const e of t){const i=this.resizeHandlers.get(e.target);i==null||i.forEach(s=>{s.handleResize(e)})}})}),this.resizeHandlers=new Map}shutdown(){this.resizeHandlers.forEach((t,e)=>{this.resizeObserver.unobserve(e)}),this.resizeHandlers.clear()}addObserver(t){var e;const i=(e=this.resizeHandlers.get(t.target))!==null&&e!==void 0?e:new Set;i.add(t.handler),this.resizeHandlers.set(t.target,i),this.resizeObserver.observe(t.target,t.options)}removeObserver(t){const e=this.resizeHandlers.get(t.target);!e||(e.delete(t.handler),e.size===0&&(this.resizeObserver.unobserve(t.target),this.resizeHandlers.delete(t.target)))}}class G{constructor(t){var e,i,s,o,r,d,a;this.title=t==null?void 0:t.title,this.subtitle=t==null?void 0:t.subtitle,this.headline=t==null?void 0:t.headline,this.message=t==null?void 0:t.message,this.headerColor=(e=t==null?void 0:t.headerColor)!==null&&e!==void 0?e:"#55A183",this.bodyColor=(i=t==null?void 0:t.bodyColor)!==null&&i!==void 0?i:"#f5f5f7",this.showProcessingIndicator=(s=t==null?void 0:t.showProcessingIndicator)!==null&&s!==void 0?s:!1,this.processingImageMode=(o=t==null?void 0:t.processingImageMode)!==null&&o!==void 0?o:"complete",this.showCloseButton=(r=t==null?void 0:t.showCloseButton)!==null&&r!==void 0?r:!0,this.showHeaderLogo=(d=t==null?void 0:t.showHeaderLogo)!==null&&d!==void 0?d:!0,this.closeOnBackdropClick=(a=t==null?void 0:t.closeOnBackdropClick)!==null&&a!==void 0?a:!0}}/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */function J(n,t,e,i){var s=arguments.length,o=s<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,t,e,i);else for(var d=n.length-1;d>=0;d--)(r=n[d])&&(o=(s<3?r(o):s>3?r(t,e,o):r(t,e))||o);return s>3&&o&&Object.defineProperty(t,e,o),o}function Ei(n,t,e,i){function s(o){return o instanceof e?o:new e(function(r){r(o)})}return new(e||(e=Promise))(function(o,r){function d(u){try{l(i.next(u))}catch(c){r(c)}}function a(u){try{l(i.throw(u))}catch(c){r(c)}}function l(u){u.done?o(u.value):s(u.value).then(d,a)}l((i=i.apply(n,t||[])).next())})}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Cs=n=>t=>typeof t=="function"?((e,i)=>(customElements.define(e,i),i))(n,t):((e,i)=>{const{kind:s,elements:o}=i;return{kind:s,elements:o,finisher(r){customElements.define(e,r)}}})(n,t);/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const vn=(n,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?{...t,finisher(e){e.createProperty(t.key,n)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,n)}};function oe(n){return(t,e)=>e!==void 0?((i,s,o)=>{s.constructor.createProperty(o,i)})(n,t,e):vn(n,t)}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const mn=({finisher:n,descriptor:t})=>(e,i)=>{var s;if(i===void 0){const o=(s=e.originalKey)!==null&&s!==void 0?s:e.key,r=t!=null?{kind:"method",placement:"prototype",key:o,descriptor:t(e.key)}:{...e,key:o};return n!=null&&(r.finisher=function(d){n(d,o)}),r}{const o=e.constructor;t!==void 0&&Object.defineProperty(e,i,t(i)),n==null||n(o,i)}};/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */function wn(n,t){return mn({descriptor:e=>{const i={get(){var s,o;return(o=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(n))!==null&&o!==void 0?o:null},enumerable:!0,configurable:!0};if(t){const s=typeof e=="symbol"?Symbol():"__"+e;i.get=function(){var o,r;return this[s]===void 0&&(this[s]=(r=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(n))!==null&&r!==void 0?r:null),this[s]}}return i}})}/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var Ee;((Ee=window.HTMLSlotElement)===null||Ee===void 0?void 0:Ee.prototype.assignedElements)!=null;function*ei(n=document.activeElement){n!=null&&(yield n,"shadowRoot"in n&&n.shadowRoot&&n.shadowRoot.mode!=="closed"&&(yield*ei(n.shadowRoot.activeElement)))}function bn(){return[...ei()].pop()}const Si=new WeakMap;function Es(n){let t=Si.get(n);return t||(t=window.getComputedStyle(n,null),Si.set(n,t)),t}function $n(n){if("checkVisibility"in n&&typeof n.checkVisibility=="function")return n.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});const t=Es(n);return t.visibility!=="hidden"&&t.display!=="none"}function yn(n){const t=Es(n),{overflowY:e,overflowX:i}=t;return e==="scroll"||i==="scroll"?!0:e!=="auto"||i!=="auto"?!1:n.scrollHeight>n.clientHeight&&e==="auto"||n.scrollWidth>n.clientWidth&&i==="auto"}function _n(n){const t=n.tagName.toLowerCase(),e=Number(n.getAttribute("tabindex"));return n.hasAttribute("tabindex")&&(isNaN(e)||e<=-1)||n.hasAttribute("disabled")||n.closest("[inert]")||t==="input"&&n.getAttribute("type")==="radio"&&!n.hasAttribute("checked")||!$n(n)?!1:(t==="audio"||t==="video")&&n.hasAttribute("controls")||n.hasAttribute("tabindex")||n.hasAttribute("contenteditable")&&n.getAttribute("contenteditable")!=="false"||["button","input","select","textarea","a","audio","video","summary","iframe"].includes(t)?!0:yn(n)}function An(n,t){var e;return((e=n.getRootNode({composed:!0}))===null||e===void 0?void 0:e.host)!==t}function ki(n){const t=new WeakMap,e=[];function i(s){if(s instanceof Element){if(s.hasAttribute("inert")||s.closest("[inert]")||t.has(s))return;t.set(s,!0),!e.includes(s)&&_n(s)&&e.push(s),s instanceof HTMLSlotElement&&An(s,n)&&s.assignedElements({flatten:!0}).forEach(o=>{i(o)}),s.shadowRoot!==null&&s.shadowRoot.mode==="open"&&i(s.shadowRoot)}for(const o of Array.from(s.children))i(o)}return i(n),e.sort((s,o)=>{const r=Number(s.getAttribute("tabindex"))||0;return(Number(o.getAttribute("tabindex"))||0)-r})}let Et=[];class Cn{constructor(t){this.isExternalActivated=!1,this.tabDirection="forward",this.currentFocus=null,this.previousFocus=null,this.handleFocusIn=()=>{!this.isActive()||this.checkFocus()},this.handleKeyDown=e=>{var i;if(e.key!=="Tab"||this.isExternalActivated||!this.isActive())return;const s=bn();if(this.previousFocus=s,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;e.shiftKey?this.tabDirection="backward":this.tabDirection="forward";const o=ki(this.element);let r=o.findIndex(a=>a===s);this.previousFocus=this.currentFocus;const d=this.tabDirection==="forward"?1:-1;for(;;){r+d>=o.length?r=0:r+d<0?r=o.length-1:r+=d,this.previousFocus=this.currentFocus;const a=o[r];if(this.tabDirection==="backward"&&this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus)||a&&this.possiblyHasTabbableChildren(a))return;e.preventDefault(),this.currentFocus=a,(i=this.currentFocus)===null||i===void 0||i.focus({preventScroll:!1});const l=[...ei()];if(l.includes(this.currentFocus)||!l.includes(this.previousFocus))break}setTimeout(()=>this.checkFocus())},this.handleKeyUp=()=>{this.tabDirection="forward"},this.element=t,this.elementsWithTabbableControls=["iframe"]}activate(){Et.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Et=Et.filter(t=>t!==this.element),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Et[Et.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){const t=ki(this.element);if(!this.element.matches(":focus-within")){const e=t[0],i=t[t.length-1],s=this.tabDirection==="forward"?e:i;typeof(s==null?void 0:s.focus)=="function"&&(this.currentFocus=s,s.focus({preventScroll:!1}))}}}possiblyHasTabbableChildren(t){return this.elementsWithTabbableControls.includes(t.tagName.toLowerCase())||t.hasAttribute("controls")}}/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Jt=window,ii=Jt.ShadowRoot&&(Jt.ShadyCSS===void 0||Jt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ss=Symbol(),Li=new WeakMap;class En{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ss)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(ii&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Li.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Li.set(e,t))}return t}toString(){return this.cssText}}const Sn=n=>new En(typeof n=="string"?n:n+"",void 0,Ss),kn=(n,t)=>{ii?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=Jt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)})},xi=ii?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Sn(e)})(n):n;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var Se;const Qt=window,Ti=Qt.trustedTypes,Ln=Ti?Ti.emptyScript:"",Ri=Qt.reactiveElementPolyfillSupport,qe={toAttribute(n,t){switch(t){case Boolean:n=n?Ln:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},ks=(n,t)=>t!==n&&(t==t||n==n),ke={attribute:!0,type:String,converter:qe,reflect:!1,hasChanged:ks};class St extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=ke){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||ke}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(xi(s))}else t!==void 0&&e.push(xi(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return kn(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=ke){var s;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const r=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:qe).toAttribute(e,i.type);this._$El=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const r=s.getPropertyOptions(o),d=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:qe;this._$El=o,this[o]=d.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||ks)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}St.finalized=!0,St.elementProperties=new Map,St.elementStyles=[],St.shadowRootOptions={mode:"open"},Ri==null||Ri({ReactiveElement:St}),((Se=Qt.reactiveElementVersions)!==null&&Se!==void 0?Se:Qt.reactiveElementVersions=[]).push("1.6.1");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var Le;const te=window,lt=te.trustedTypes,Bi=lt?lt.createPolicy("lit-html",{createHTML:n=>n}):void 0,B=`lit$${(Math.random()+"").slice(9)}$`,Ls="?"+B,xn=`<${Ls}>`,ct=document,ee=(n="")=>ct.createComment(n),Ht=n=>n===null||typeof n!="object"&&typeof n!="function",xs=Array.isArray,Tn=n=>xs(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",kt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pi=/-->/g,Hi=/>/g,U=RegExp(`>|[ +\f\r](?:([^\\s"'>=/]+)([ +\f\r]*=[ +\f\r]*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),Ii=/'/g,Mi=/"/g,Ts=/^(?:script|style|textarea|title)$/i,It=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),Oi=new WeakMap,it=ct.createTreeWalker(ct,129,null,!1),Rn=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"":"",r=kt;for(let a=0;a"?(r=s!=null?s:kt,h=-1):c[1]===void 0?h=-2:(h=r.lastIndex-c[2].length,u=c[1],r=c[3]===void 0?U:c[3]==='"'?Mi:Ii):r===Mi||r===Ii?r=U:r===Pi||r===Hi?r=kt:(r=U,s=void 0);const b=r===U&&n[a+1].startsWith("/>")?" ":"";o+=r===kt?l+xn:h>=0?(i.push(u),l.slice(0,h)+"$lit$"+l.slice(h)+B+b):l+B+(h===-2?(i.push(void 0),a):b)}const d=o+(n[e]||"")+(t===2?"":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Bi!==void 0?Bi.createHTML(d):d,i]};class Mt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const d=t.length-1,a=this.parts,[l,u]=Rn(t,e);if(this.el=Mt.createElement(l,i),it.currentNode=this.el.content,e===2){const c=this.el.content,h=c.firstChild;h.remove(),c.append(...h.childNodes)}for(;(s=it.nextNode())!==null&&a.length0){s.textContent=lt?lt.emptyScript:"";for(let p=0;p2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=dt(this,t,e,0),r=!Ht(t)||t!==this._$AH&&t!==It,r&&(this._$AH=t);else{const d=t;let a,l;for(t=o[0],a=0;anew Rs(typeof n=="string"?n:n+"",ni),F=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new Rs(e,ni)},Un=(n,t)=>{si?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=window.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)})},Di=si?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Nn(e)})(n):n;/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var xe;const zi=window.trustedTypes,Dn=zi?zi.emptyScript:"",Wi=window.reactiveElementPolyfillSupport,Ge={toAttribute(n,t){switch(t){case Boolean:n=n?Dn:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},Bs=(n,t)=>t!==n&&(t==t||n==n),Te={attribute:!0,type:String,converter:Ge,reflect:!1,hasChanged:Bs};class et extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;(e=this.l)!==null&&e!==void 0||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Eh(i,e);s!==void 0&&(this._$Eu.set(s,i),t.push(s))}),t}static createProperty(t,e=Te){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Te}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Di(s))}else t!==void 0&&e.push(Di(t));return e}static _$Eh(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Em(),this.requestUpdate(),(t=this.constructor.l)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$Eg)!==null&&e!==void 0?e:this._$Eg=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$Eg)===null||e===void 0||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Un(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$Eg)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$Eg)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=Te){var s,o;const r=this.constructor._$Eh(t,i);if(r!==void 0&&i.reflect===!0){const d=((o=(s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==null&&o!==void 0?o:Ge.toAttribute)(e,i.type);this._$Ei=t,d==null?this.removeAttribute(r):this.setAttribute(r,d),this._$Ei=null}}_$AK(t,e){var i,s,o;const r=this.constructor,d=r._$Eu.get(t);if(d!==void 0&&this._$Ei!==d){const a=r.getPropertyOptions(d),l=a.converter,u=(o=(s=(i=l)===null||i===void 0?void 0:i.fromAttribute)!==null&&s!==void 0?s:typeof l=="function"?l:null)!==null&&o!==void 0?o:Ge.fromAttribute;this._$Ei=d,this[d]=u(e,a.type),this._$Ei=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Bs)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Ei!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach((s,o)=>this[o]=s),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$Eg)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$EU()}catch(s){throw e=!1,this._$EU(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$Eg)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$ES(i,this[i],e)),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}et.finalized=!0,et.elementProperties=new Map,et.elementStyles=[],et.shadowRootOptions={mode:"open"},Wi==null||Wi({ReactiveElement:et}),((xe=globalThis.reactiveElementVersions)!==null&&xe!==void 0?xe:globalThis.reactiveElementVersions=[]).push("1.3.1");/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var Re;const ht=globalThis.trustedTypes,ji=ht?ht.createPolicy("lit-html",{createHTML:n=>n}):void 0,P=`lit$${(Math.random()+"").slice(9)}$`,Ps="?"+P,zn=`<${Ps}>`,ut=document,Ot=(n="")=>ut.createComment(n),Nt=n=>n===null||typeof n!="object"&&typeof n!="function",Hs=Array.isArray,Wn=n=>{var t;return Hs(n)||typeof((t=n)===null||t===void 0?void 0:t[Symbol.iterator])=="function"},Lt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fi=/-->/g,qi=/>/g,D=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,Gi=/'/g,Vi=/"/g,Is=/^(?:script|style|textarea|title)$/i,jn=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),oi=jn(1),pt=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),Ki=new WeakMap,Fn=(n,t,e)=>{var i,s;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let r=o._$litPart$;if(r===void 0){const d=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new Vt(t.insertBefore(Ot(),d),d,void 0,e!=null?e:{})}return r._$AI(n),r},st=ut.createTreeWalker(ut,129,null,!1),qn=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"":"",r=Lt;for(let a=0;a"?(r=s!=null?s:Lt,h=-1):c[1]===void 0?h=-2:(h=r.lastIndex-c[2].length,u=c[1],r=c[3]===void 0?D:c[3]==='"'?Vi:Gi):r===Vi||r===Gi?r=D:r===Fi||r===qi?r=Lt:(r=D,s=void 0);const b=r===D&&n[a+1].startsWith("/>")?" ":"";o+=r===Lt?l+zn:h>=0?(i.push(u),l.slice(0,h)+"$lit$"+l.slice(h)+P+b):l+P+(h===-2?(i.push(void 0),a):b)}const d=o+(n[e]||"")+(t===2?"":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ji!==void 0?ji.createHTML(d):d,i]};class Ut{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const d=t.length-1,a=this.parts,[l,u]=qn(t,e);if(this.el=Ut.createElement(l,i),st.currentNode=this.el.content,e===2){const c=this.el.content,h=c.firstChild;h.remove(),c.append(...h.childNodes)}for(;(s=st.nextNode())!==null&&a.length0){s.textContent=ht?ht.emptyScript:"";for(let p=0;p2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=gt(this,t,e,0),r=!Nt(t)||t!==this._$AH&&t!==pt,r&&(this._$AH=t);else{const d=t;let a,l;for(t=o[0],a=0;a + + Activity Indicator + + A rotating activity indicator with three dots in the middle. + + + + + + + + + + + + + + `}static get styles(){const t=F`var(--activityIndicatorCheckmarkColor, #31A481)`,e=F`var(--activityIndicatorCompletedRingColor, #31A481)`,i=F`var(--activityIndicatorLoadingRingColor, #333333)`,s=F`var(--activityIndicatorLoadingDotColor, #333333)`;return F` + #completed-ring { + fill: ${e}; + } + + #check { + fill: ${t}; + } + + #activity-ring { + fill: ${i}; + } + + #activity-dots { + fill: ${s}; + } + + .activity-indicator { + opacity: 0; + transition: opacity 0.25s ease-out; + } + + .processing .activity-indicator { + opacity: 1; + } + + .loaded-indicator { + opacity: 1; + transition: opacity 0.25s ease-out; + } + + .processing .loaded-indicator { + opacity: 0; + } + + .image { + border: 1px solid red; + display: inline-block; + } + + .processing #activity-ring { + animation: rotate 1.3s infinite linear; + transform-origin: 50px 50px; + transform-box: fill-box; + } + + .processing #left-dot { + opacity: 0; + animation: dot 1.3s infinite; + animation-delay: 0.2s; + } + + .processing #middle-dot { + opacity: 0; + animation: dot 1.3s infinite; + animation-delay: 0.4s; + } + + .processing #right-dot { + opacity: 0; + animation: dot 1.3s infinite; + animation-delay: 0.6s; + } + + @keyframes rotate { + 0% { + transform: rotate(-360deg); + } + 100% { + /* This frame is supposed to be inferred, but Safari doesn't rotate it unless we're explicit */ + transform: rotate(0deg); + } + } + + @keyframes dot { + 0% { + opacity: 0; + } + 25% { + opacity: 1; + } + 100% { + opacity: 0; + } + } + `}}window.customElements.define("ia-activity-indicator",Qn);/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var He;const ft=globalThis.trustedTypes,Yi=ft?ft.createPolicy("lit-html",{createHTML:n=>n}):void 0,H=`lit$${(Math.random()+"").slice(9)}$`,Ms="?"+H,to=`<${Ms}>`,vt=document,ie=(n="")=>vt.createComment(n),Dt=n=>n===null||typeof n!="object"&&typeof n!="function",Os=Array.isArray,eo=n=>{var t;return Os(n)||typeof((t=n)===null||t===void 0?void 0:t[Symbol.iterator])=="function"},xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xi=/-->/g,Qi=/>/g,z=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,ts=/'/g,es=/"/g,Ns=/^(?:script|style|textarea|title)$/i,zt=Symbol.for("lit-noChange"),C=Symbol.for("lit-nothing"),is=new WeakMap,nt=vt.createTreeWalker(vt,129,null,!1),io=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"":"",r=xt;for(let a=0;a"?(r=s!=null?s:xt,h=-1):c[1]===void 0?h=-2:(h=r.lastIndex-c[2].length,u=c[1],r=c[3]===void 0?z:c[3]==='"'?es:ts):r===es||r===ts?r=z:r===Xi||r===Qi?r=xt:(r=z,s=void 0);const b=r===z&&n[a+1].startsWith("/>")?" ":"";o+=r===xt?l+to:h>=0?(i.push(u),l.slice(0,h)+"$lit$"+l.slice(h)+H+b):l+H+(h===-2?(i.push(void 0),a):b)}const d=o+(n[e]||"")+(t===2?"":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Yi!==void 0?Yi.createHTML(d):d,i]};class Wt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const d=t.length-1,a=this.parts,[l,u]=io(t,e);if(this.el=Wt.createElement(l,i),nt.currentNode=this.el.content,e===2){const c=this.el.content,h=c.firstChild;h.remove(),c.append(...h.childNodes)}for(;(s=nt.nextNode())!==null&&a.length0){s.textContent=ft?ft.emptyScript:"";for(let p=0;p2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=C}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=mt(this,t,e,0),r=!Dt(t)||t!==this._$AH&&t!==zt,r&&(this._$AH=t);else{const d=t;let a,l;for(t=o[0],a=0;a + Close icon + A line drawing of an X + + +`;class ho extends V{static get styles(){return F` + :host { + width: var(--iconWidth, 'auto'); + height: var(--iconHeight, 'auto'); + } + + .fill-color { + fill: var(--iconFillColor); + } + + .stroke-color { + stroke: var(--iconStrokeColor); + } + `}render(){return co}}customElements.define("ia-icon-close",ho);var uo=m` + +`;let Ve=class extends x{constructor(){super(...arguments),this.config=new G}render(){return m` + + `}handleCloseButton(t){if(t.preventDefault(),t.type==="keydown"&&t.key!==" "&&t.key!=="Enter")return;const e=new Event("closeButtonPressed");this.dispatchEvent(e)}get closeButtonTemplate(){return m` + + `}static get styles(){const t=g`var(--modalLogoSize, 6.5rem)`,e=g`var(--processingImageSize, 7.5rem)`,i=g`var(--modalCornerRadius, 1rem)`,s=g`var(--modalBorder, 2px solid black)`,o=g`var(--modalBottomMargin, 2.5rem)`,r=g`var(--modalTopMargin, 5rem)`,d=g`var(--modalHeaderBottomPadding, 0.5em)`,a=g`var(--modalBottomPadding, 2rem)`,l=g`var(--modalScrollOffset, 5px)`,u=g`var(--modalTitleFontSize, 1.8rem)`,c=g`var(--modalSubtitleFontSize, 1.4rem)`,h=g`var(--modalHeadlineFontSize, 1.6rem)`,p=g`var(--modalMessageFontSize, 1.4rem)`,b=g`var(--modalTitleLineHeight, normal)`,w=g`var(--modalSubtitleLineHeight, normal)`,Y=g`var(--modalHeadlineLineHeight, normal)`,X=g`var(--modalMessageLineHeight, normal)`;return g` + .processing-logo { + margin: auto; + width: ${e}; + height: ${e}; + } + + .processing-logo.hidden { + height: 1rem; + } + + .processing-logo.hidden ia-activity-indicator { + display: none; + } + + .modal-wrapper { + outline: none; + } + + .modal-container { + border-radius: ${i}; + width: 100%; + margin-top: ${r}; + } + + header { + position: relative; + background-color: #36a483; + color: white; + border-radius: calc(${i}) calc(${i}) 0 0; + border: ${s}; + border-bottom: 0; + text-align: center; + padding-bottom: ${d}; + } + + .title { + margin: 0; + padding: 0; + font-size: ${u}; + font-weight: bold; + line-height: ${b}; + } + + .subtitle { + margin: 0; + padding: 0; + font-weight: normal; + padding-top: 0; + font-size: ${c}; + line-height: ${w}; + } + + .modal-body { + background-color: #f5f5f7; + border-radius: 0 0 calc(${i}) calc(${i}); + border: ${s}; + border-top: 0; + padding: 0 1rem calc(${a} - ${l}) 1rem; + color: #333; + margin-bottom: 2.5rem; + min-height: 5rem; + } + + .content { + overflow-y: auto; + max-height: calc(100vh - (16.5rem + ${o})); + min-height: 5rem; + padding: 0 0 calc(${l}) 0; + } + + .headline { + font-size: ${h}; + font-weight: bold; + text-align: center; + line-height: ${Y}; + margin: 0; + padding: 0; + } + + .message { + margin: 1rem 0 0 0; + text-align: center; + font-size: ${p}; + line-height: ${X}; + } + + .logo-icon { + border-radius: 100%; + border: 3px solid #fff; + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), + 0 2px 2px 0 rgba(0, 0, 0, 0.08); + width: ${t}; + height: ${t}; + margin: -2.9rem auto 0.5rem auto; + background-color: black; + display: flex; + justify-content: center; + align-items: center; + } + + .logo-icon svg { + width: calc(${t} * 0.65); + height: calc(${t} * 0.65); + } + + .logo-icon svg .fill-color { + fill: white; + } + + .logo-icon svg .stroke-color { + stroke: red; + } + + .close-button { + position: absolute; + right: 1.2rem; + top: 1.2rem; + width: 2rem; + height: 2rem; + border-radius: 100%; + border: 0; + padding: 0; + cursor: pointer; + background-color: white; + box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), + 0 4px 4px 0 rgba(0, 0, 0, 0.08); + } + + .sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; + } + + slot::slotted(.sr-only) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; + } + `}};J([oe({type:Object})],Ve.prototype,"config",void 0);Ve=J([Cs("modal-template")],Ve);function po(n,t,e){var i=e||{},s=i.noTrailing,o=s===void 0?!1:s,r=i.noLeading,d=r===void 0?!1:r,a=i.debounceMode,l=a===void 0?void 0:a,u,c=!1,h=0;function p(){u&&clearTimeout(u)}function b(Y){var X=Y||{},O=X.upcomingOnly,ve=O===void 0?!1:O;p(),c=!ve}function w(){for(var Y=arguments.length,X=new Array(Y),O=0;On?d?(h=Date.now(),o||(u=setTimeout(l?li:Kt,n))):Kt():o!==!0&&(u=setTimeout(l?li:Kt,l===void 0?n-ai:n))}return w.cancel=b,w}var K;(function(n){n.Open="open",n.Closed="closed"})(K||(K={}));class go{constructor(t){this.windowResizeThrottler=po(100,this.updateModalContainerHeight,{noLeading:!1,noTrailing:!1}).bind(this),this.modalManager=t}handleModeChange(t){switch(t){case K.Open:this.startResizeListener(),this.stopDocumentScroll();break;case K.Closed:this.stopResizeListener(),this.resumeDocumentScroll();break}}updateModalContainerHeight(){this.modalManager.style.setProperty("--containerHeight",`${window.innerHeight}px`)}stopDocumentScroll(){document.body.classList.add("modal-manager-open")}resumeDocumentScroll(){document.body.classList.remove("modal-manager-open")}startResizeListener(){window.addEventListener("resize",this.windowResizeThrottler)}stopResizeListener(){window.removeEventListener("resize",this.windowResizeThrottler)}}let wt=class extends x{constructor(){super(...arguments),this.mode=K.Closed,this.hostBridge=new go(this),this.modal=new Cn(this),this.closeOnBackdropClick=!0}firstUpdated(){return Ei(this,void 0,void 0,function*(){yield new Promise(t=>setTimeout(t,0)),this.closeOnBackdropClick&&this.addEventListener("keydown",t=>{t.key==="Escape"&&this.backdropClicked()})})}disconnectedCallback(){super.disconnectedCallback(),this.modal.deactivate()}render(){return m` +
+
+ + ${this.customModalContent} + +
+ `}getMode(){return this.mode}closeModal(){this.mode=K.Closed,this.customModalContent=void 0,this.modalTemplate.config=new G,this.modal.deactivate()}callUserClosedModalCallback(){const t=this.userClosedModalCallback;this.userClosedModalCallback=void 0,t&&t()}showModal(t){return Ei(this,void 0,void 0,function*(){this.closeOnBackdropClick=t.config.closeOnBackdropClick,this.userClosedModalCallback=t.userClosedModalCallback,this.modalTemplate.config=t.config,this.customModalContent=t.customModalContent,this.mode=K.Open,yield this.modalTemplate.updateComplete,this.modalTemplate.focus(),this.modal.activate()})}updated(t){t.has("mode")&&this.handleModeChange()}backdropClicked(){this.closeOnBackdropClick&&(this.closeModal(),this.callUserClosedModalCallback())}handleModeChange(){this.hostBridge.handleModeChange(this.mode),this.emitModeChangeEvent()}emitModeChangeEvent(){const t=new CustomEvent("modeChanged",{detail:{mode:this.mode}});this.dispatchEvent(t)}closeButtonPressed(){this.closeModal(),this.callUserClosedModalCallback()}static get styles(){const t=g`var(--modalBackdropColor, rgba(10, 10, 10, 0.9))`,e=g`var(--modalBackdropZindex, 1000)`,i=g`var(--modalWidth, 32rem)`,s=g`var(--modalMaxWidth, 95%)`,o=g`var(--modalZindex, 2000)`;return g` + .container { + width: 100%; + height: 100%; + } + + .backdrop { + position: fixed; + top: 0; + left: 0; + background-color: ${t}; + width: 100%; + height: 100%; + z-index: ${e}; + } + + modal-template { + outline: 0; + position: fixed; + top: 0; + left: 50%; + transform: translate(-50%, 0); + z-index: ${o}; + width: ${i}; + max-width: ${s}; + } + `}};J([oe({type:String,reflect:!0})],wt.prototype,"mode",void 0);J([oe({type:Object})],wt.prototype,"customModalContent",void 0);J([oe({type:Object})],wt.prototype,"hostBridge",void 0);J([wn("modal-template")],wt.prototype,"modalTemplate",void 0);wt=J([Cs("modal-manager")],wt);function _t(n){return new Promise((t,e)=>{n.oncomplete=n.onsuccess=()=>t(n.result),n.onabort=n.onerror=()=>e(n.error)})}function fo(n,t){const e=indexedDB.open(n);e.onupgradeneeded=()=>e.result.createObjectStore(t);const i=_t(e);return(s,o)=>i.then(r=>o(r.transaction(t,s).objectStore(t)))}let Ie;function he(){return Ie||(Ie=fo("keyval-store","keyval")),Ie}function vo(n,t=he()){return t("readonly",e=>_t(e.get(n)))}function mo(n,t,e=he()){return e("readwrite",i=>(i.put(t,n),_t(i.transaction)))}function wo(n,t=he()){return t("readwrite",e=>(e.delete(n),_t(e.transaction)))}function bo(n,t){return n.openCursor().onsuccess=function(){!this.result||(t(this.result),this.result.continue())},_t(n.transaction)}function $o(n=he()){return n("readonly",t=>{if(t.getAllKeys)return _t(t.getAllKeys());const e=[];return bo(t,i=>e.push(i.key)).then(()=>e)})}function yo(n,t){return n.setMilliseconds(n.getMilliseconds()+t*1e3),n}class Us{constructor(t){var e,i,s,o;if(this.namespace=(e=t==null?void 0:t.namespace)!==null&&e!==void 0?e:"LocalCache",this.defaultTTL=(i=t==null?void 0:t.defaultTTL)!==null&&i!==void 0?i:15*60,(!((s=t==null?void 0:t.immediateClean)!==null&&s!==void 0)||s)&&this.cleanExpired(),!(t!=null&&t.disableCleaning)){const r=(o=t==null?void 0:t.cleaningInterval)!==null&&o!==void 0?o:60;setInterval(()=>{this.cleanExpired()},r*1e3)}}async set(t){var e;const i={value:t.value},s=(e=t.ttl)!==null&&e!==void 0?e:this.defaultTTL,o=yo(new Date,s);i.expires=o;const r=this.getNamespacedKey(t.key);try{await mo(r,i)}catch{}}async get(t){const e=this.getNamespacedKey(t);let i;try{i=await vo(e)}catch{}if(!i)return;const s=new Date;if(i.expires&&i.expiresthis.get(e)))}async getAllKeys(){let t=[];try{t=await $o()}catch{}const e=[];for(const o of t)typeof o=="string"&&e.push(o);return e.filter(o=>o.startsWith(this.namespace)).map(o=>this.removeNamespace(o))}getNamespacedKey(t){return`${this.namespace}-${t}`}removeNamespace(t){return t.replace(`${this.namespace}-`,"")}}/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const Ds={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},zs=n=>(...t)=>({_$litDirective$:n,values:t});class Ws{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */const ns=zs(class extends Ws{constructor(n){var t;if(super(n),n.type!==Ds.ATTRIBUTE||n.name!=="class"||((t=n.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(t=>n[t]).join(" ")+" "}update(n,[t]){var e,i;if(this.it===void 0){this.it=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!(!((e=this.nt)===null||e===void 0)&&e.has(o))&&this.it.add(o);return this.render(t)}const s=n.element.classList;this.it.forEach(o=>{o in t||(s.remove(o),this.it.delete(o))});for(const o in t){const r=!!t[o];r===this.it.has(o)||((i=this.nt)===null||i===void 0?void 0:i.has(o))||(r?(s.add(o),this.it.add(o)):(s.remove(o),this.it.delete(o)))}return M}});class k{static isInIframe(){var t;try{return window.self!==window.top}catch(e){return(t=window==null?void 0:window.Sentry)==null||t.captureException(e),!0}}static getRedirectUrl(){let t;return k.isInIframe()?t=window.top.location.href:t=window.location.href,t}static goToUrl(t,e){let i;k.isInIframe()&&e?i=window.top.location:i=window.location,i.href===t?i.reload():i.href=t}static isOnStreamPage(){return window.location.href.indexOf("/stream/")>-1}static getQueryParam(t){const i=window.location.search.substring(1).split("&");let s="";for(let o=0;o{};async function j(n){var l,u;const t={action:null,identifier:"",success(){},error(){},...n};let e="/services/loans/loan";const i=window==null?void 0:window.location,s="loan token not found. please try again later.",o="This book is not available to borrow at this time. Please try again later.",r=["browse_book","borrow_book","create_token","renew_loan","return_loan"],d=((l=i==null?void 0:i.href)==null?void 0:l.indexOf("?error=true"))!==-1&&(i==null?void 0:i.hostname)!=="archive.org";(i==null?void 0:i.pathname)==="/demo/"&&(e="/demo/");let a=new FormData;a.append("action",t.action),a.append("identifier",t.identifier);try{await fetch(e,{method:"POST",body:a}).then(async c=>d&&r.includes(t==null?void 0:t.action)?{success:!1,error:(t==null?void 0:t.action)==="create_token"?s:o}:e=="/demo/1"||e=="/demo/"?(t==null?void 0:t.action)=="renew_loan"||(t==null?void 0:t.action)=="return_loan"?(await new Promise(h=>setTimeout(h,5e3)),{success:!0,loan:{renewal:!0}}):{success:!0,message:"operation executed successfully!"}:c.json()).then(c=>{c!=null&&c.error?t==null||t.error(c):t==null||t.success(c)})}catch(c){(u=window==null?void 0:window.Sentry)==null||u.captureException(`${T.actionsHandlerService} - Error: ${c}`)}}const ue={borrow:"BookReader-ReadingBorrow",browse:"BookReader-ReadingBrowse",preview:"BookReader-Preview",satisfactionMetric:"DetailsPage-Book",bookReaderHeader:"BookReader-Header",adminAccess:"Admin-Access"},ri={browse:"Borrow-1Hour",browseAgain:"Borrow-Again",browseAutoRenew:"AutoRenewBook",browseAutoReturn:"AutoReturnBook",borrow:"Borrow-14Days",waitlistJoin:"JoinWaitlist",waitlistLeave:"LeaveWaitlist",doneBorrowing:"ReturnBook",login:"LogIn",purchase:"BWBPurchase",unavailable:"Book-Unavailable",printDisability:"Print-Disability",titleBar:"Book-Title-Bar"};function _o(n){return n&&decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}function Ke(n,t,e,i,s,o){return document.cookie=encodeURIComponent(n)+"="+encodeURIComponent(t)+(e?`; expires=${e.toUTCString()}`:"")+(s?`; domain=${s}`:"")+(i?`; path=${i}`:"")+(o?"; secure":""),!0}class js{constructor(){this.identifier=void 0,this.gaStats={}}async storeLoanStatsCount(t,e=""){this.identifier=t;try{await this.getLoanStatsCount(e);const i=new Date;i.setHours(i.getHours()+2),await Ke(this.getLoanCountStorageKey,JSON.stringify(this.lendingEventCounts),i,"/")}catch(i){y(i),this.sendEvent("Cookies-Error-Actions",i,this.identifier)}}async getLoanStatsCount(t){var d,a,l,u,c,h,p,b,w;this.lendingEventCounts=JSON.parse(await _o(this.getLoanCountStorageKey)),this.gaStats=(d=this.lendingEventCounts)!=null?d:{browse:0,renew:0,expire:0};let e=(l=(a=this.lendingEventCounts)==null?void 0:a.browse)!=null?l:0,i=(c=(u=this.lendingEventCounts)==null?void 0:u.renew)!=null?c:0,s=(p=(h=this.lendingEventCounts)==null?void 0:h.expire)!=null?p:0;switch(t){case"browse":e=e?Number(e)+1:1,this.gaStats.browse=e,i=0,s=0;break;case"autorenew":i=i?Number(i)+1:1,this.gaStats.renew=i;break;case"return":s=s?Number(s)+1:1,this.gaStats.expire=s,i=0,s=0;break}this.lendingEventCounts={browse:e,renew:i,expire:s};const o=ue.browse,r=`browse${this.paddedNumber((b=this.gaStats)==null?void 0:b.browse)}-autorenew${this.paddedNumber((w=this.gaStats)==null?void 0:w.renew)}:${t}`;this.sendEvent(o,r,this.identifier)}paddedNumber(t){return t?t.toString().padStart(3,"0"):"000"}get getLoanCountStorageKey(){return`br-browse-${this.identifier}`}sendEvent(t,e,i,s){var o;(o=window==null?void 0:window.archive_analytics)==null||o.send_event_no_sampling(t,e,i||this.identifier,s)}}class Fs extends x{constructor(){super(),this.waitUntillBorrowComplete=6,this.loanAnanlytics=new js,this.bindEvents()}bindEvents(){this.addEventListener("browseBook",async()=>{var t;this.handleBrowseIt(),await((t=this.loanAnanlytics)==null?void 0:t.storeLoanStatsCount(this.identifier,"browse"))}),this.addEventListener("browseBookAgain",async()=>{var t;this.handleBrowseIt(),await((t=this.loanAnanlytics)==null?void 0:t.storeLoanStatsCount(this.identifier,"browseagain"))}),this.addEventListener("autoRenew",async()=>{var t;this.handleLoanRenewNow(),await((t=this.loanAnanlytics)==null?void 0:t.storeLoanStatsCount(this.identifier,"autorenew"))}),this.addEventListener("autoReturn",async()=>{var t;this.handleReturnIt(),await((t=this.loanAnanlytics)==null?void 0:t.storeLoanStatsCount(this.identifier,"autoreturn"))}),this.addEventListener("returnNow",({detail:t})=>{var e,i;if((t==null?void 0:t.borrowType)==="browse"&&((e=this.loanAnanlytics)==null||e.storeLoanStatsCount(this.identifier,"return")),this.handleReturnIt("returnNow"),(t==null?void 0:t.borrowType)==="borrow"){const{category:s,action:o}=t.event;(i=this.loanAnanlytics)==null||i.sendEvent(s,o,this.identifier)}}),this.addEventListener("borrowBook",({detail:t})=>{var s;this.handleBorrowIt();const{category:e,action:i}=t.event;(s=this.loanAnanlytics)==null||s.sendEvent(e,i,this.identifier)}),this.addEventListener("loginAndBorrow",({detail:t})=>{var s;this.handleLoginOk();const{category:e,action:i}=t.event;(s=this.loanAnanlytics)==null||s.sendEvent(e,i,this.identifier)}),this.addEventListener("leaveWaitlist",({detail:t})=>{var s;this.handleRemoveFromWaitingList();const{category:e,action:i}=t.event;(s=this.loanAnanlytics)==null||s.sendEvent(e,i,this.identifier)}),this.addEventListener("joinWaitlist",({detail:t})=>{var s;this.handleReserveIt();const{category:e,action:i}=t.event;(s=this.loanAnanlytics)==null||s.sendEvent(e,i,this.identifier)}),this.addEventListener("purchaseBook",({detail:t})=>{var s;const{category:e,action:i}=t.event;(s=this.loanAnanlytics)==null||s.sendEvent(e,i,this.identifier)}),this.addEventListener("adminAccess",({detail:t})=>{var o;const{category:e,action:i}=t.event;(o=this.loanAnanlytics)==null||o.sendEvent(e,i,this.identifier);const s=new URL(window.location.href);s.searchParams.append("admin",1),window.location.search=s.search}),this.addEventListener("exitAdminAccess",({detail:t})=>{var s;const{category:e,action:i}=t.event;(s=this.loanAnanlytics)==null||s.sendEvent(e,i,this.identifier)}),this.addEventListener("bookTitleBar",({detail:t})=>{var s;const{category:e,action:i}=t.event;(s=this.loanAnanlytics)==null||s.sendEvent(e,i,this.identifier)})}handleBrowseIt(){const t="browse_book";this.dispatchToggleActionGroup(),j({action:t,identifier:this.identifier,success:()=>{this.setBrowseTimeSession(),this.handleReadItNow()},error:e=>{this.dispatchActionError(t,e)}})}handleLoanRenewNow(){const t="renew_loan";j({action:t,identifier:this.identifier,success:e=>{var o;y("RENEW_LOAN --- ",e,t,e.loan,this.identifier);const i=e.loan?e.loan:void 0,s=i.renewal;i&&s?this.setBrowseTimeSession():(y("RENEW_LOAN ERROR --- ",{action:t,isRenewal:s,activeLoan:i,data:e,id:this.identifier}),(o=window==null?void 0:window.Sentry)==null||o.captureMessage(`${T.bookRenewFailed} - Error: ${JSON.stringify(e)}`),this.dispatchActionError(t,{data:e,error:!0,message:"Loan renewal failed: no loan active."})),this.dispatchEvent(new CustomEvent("loanAutoRenewed",{detail:{action:t,data:{...e,loan:i}}}))},error:e=>{this.dispatchActionError(t,e)}})}handleReturnIt(t=""){const e="return_loan";t==="returnNow"&&this.dispatchToggleActionGroup(),j({action:e,identifier:this.identifier,success:()=>{this.deleteLoanCookies(),t==="returnNow"&&k.goToUrl(this.returnUrl,!0)},error:i=>{this.dispatchActionError(e,i)}})}handleBorrowIt(){const t="borrow_book";this.dispatchToggleActionGroup(),j({action:t,identifier:this.identifier,success:()=>{this.handleReadItNow()},error:e=>{this.dispatchActionError(t,e)}})}handleReserveIt(){const t="join_waitlist";this.dispatchToggleActionGroup(),j({action:t,identifier:this.identifier,success:()=>{k.goToUrl(k.getRedirectUrl(),!0)},error:e=>{this.dispatchActionError(t,e)}})}handleRemoveFromWaitingList(){const t="leave_waitlist";this.dispatchToggleActionGroup(),j({action:t,identifier:this.identifier,success:()=>{k.goToUrl(k.getRedirectUrl(),!0)},error:e=>{this.dispatchActionError(t,e)}})}dispatchActionError(t,e={}){var i;(i=this.loanAnanlytics)==null||i.sendEvent("LendingServiceError",t),this.dispatchEvent(new CustomEvent("lendingActionError",{detail:{action:t,data:e}}))}dispatchToggleActionGroup(){this.dispatchEvent(new CustomEvent("toggleActionGroup"))}handleLoginOk(){const t=`/account/login?referer=${encodeURIComponent(k.getRedirectUrl())}`;k.goToUrl(t,!0)}handleReadItNow(t){const e=new URLSearchParams(window.location.search);if(t){const r=new URLSearchParams(t);for(const[d,a]of r.entries())e.append(d,a)}const i=e.toString(),s=i?`?${i}`:"",o=window.location.origin+window.location.pathname+s;setTimeout(()=>{k.goToUrl(o,!0)},this.waitUntillBorrowComplete*1e3)}async setBrowseTimeSession(){try{const t=new Date(new Date().getTime()+this.loanTotalTime*1e3);await this.localCache.set({key:`${this.identifier}-loanTime`,value:t,ttl:Number(this.loanTotalTime)}),await this.localCache.delete(`${this.identifier}-pageChangedTime`)}catch(t){y(t)}}deleteLoanCookies(){const t=new Date;t.setTime(t.getTime()-24*60*60*1e3),Ke(`loan-${this.identifier}=""`,"",t,"/",".archive.org"),Ke(`br-loan-${this.identifier}=""`,"",t,"/",".archive.org")}}const os=g`var(--white, #fff)`,Ao=g`var(--primaryDisableCTAFill, #767676)`,Co=g`var(--secondaryCTABorder, #999)`,Eo=g`var(--primaryCTAFill, #194880)`,Me=g`var(--primaryCTAFillRGB, 25, 72, 128)`,So=g`var(--primaryCTABorder, #c5d1df)`,ko=g`var(--primaryErrorCTAFill, #d9534f)`,Oe=g`var(--primaryErrorCTAFillRGB, 229, 28, 38)`,Lo=g`var(--primaryErrorCTABorder, #d43f3a)`,xo=g`var(--secondaryCTAFill, #333)`,Ne=g`var(--secondaryCTAFillRGB, 51, 51, 51)`,To=g`var(--primaryCTABorder, #979797)`,Ro=g`#ee8950`,Bo=g`#ec7939`;var Po=g` + .ia-button { + min-height: 3rem; + cursor: pointer; + color: ${os}; + line-height: normal; + border-radius: 0.4rem; + font-size: 1.4rem; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + border: 1px solid transparent; + white-space: nowrap; + appearance: auto; + box-sizing: border-box; + display: flex; + align-items: center; + transition: all 0.1s ease 0s; + vertical-align: middle; + padding: 0 1rem; + outline-color: ${os}; + outline-offset: -4px; + user-select: none; + text-decoration: none; + width: fit-content; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + -o-user-select: none; + } + .ia-button:focus-visible { + outline-style: double; + } + .ia-button:disabled { + cursor: not-allowed; + background-color: ${Ao}; + border: 1px solid ${Co}; + } + .ia-button.transparent { + background-color: transparent; + } + .ia-button.warning { + background-color: ${Ro} + border-color: ${Bo}; + } + + .ia-button.primary { + background-color: ${Eo}; + border-color: ${So}; + } + .ia-button.primary:hover { + background-color: rgba(${Me}, 0.9); + } + .ia-button.primary:focus-visible { + background-color: rgba(${Me}, 0.8); + } + .ia-button.primary:active { + background-color: rgba(${Me}, 0.7); + } + + .ia-button.danger { + background-color: ${ko}; + border-color: ${Lo}; + } + .ia-button.danger:hover { + background-color: rgba(${Oe}, 0.9); + } + .ia-button.danger:focus-visible { + background-color: rgba(${Oe}, 0.8); + } + .ia-button.danger:active { + background-color: rgba(${Oe}, 0.7); + } + + .ia-button.dark { + background-color: ${xo}; + border-color: ${To}; + } + .ia-button.dark:hover { + background-color: rgba(${Ne}, 0.9); + } + .ia-button.dark:focus-visible { + background-color: rgba(${Ne}, 0.8); + } + .ia-button.dark:active { + background-color: rgba(${Ne}, 0.7); + } +`;const Q=g`var(--white, #fff)`,rs=g`var(--primaryBGColor, #000)`,Ho=g`var(--iaBookActionsDropdownBGColor, #2d2d2d)`;var Io=g` + :host { + display: inline-flex; + height: 3.5rem; + padding: 1rem 0; + } + .actiongroup { + display: flex; + margin-right: 10px; + } + .action-buttons { + display: inline-flex; + align-items: center; + } + .action-buttons .ia-button { + margin: 0; + height: 3.5rem; + padding: 0 2rem; + } + .action-buttons .desktop { + background-color: ${Q}; + border-radius: 10px; + } + .action-buttons .desktop.purchase { + margin-left: 5px; + } + .action-buttons .mobile.purchase.dark { + padding-left: 0; + } + .primary { + background-color: ${Q}; + margin-right: 4px; + } + .primary, + .secondary { + position: relative; + border-radius: 5px; + } + .primary .initial { + border-radius: 4px 0 0 4px; + margin-right: 0; + } + .primary svg { + vertical-align: middle; + } + + .secondary .ia-button.purchase { + padding: 2px 10px 2px 35px; + position: relative; + display: inline-block; + vertical-align: middle; + } + .secondary .ia-button.exit-admin { + background-color: ${rs}; + border: 1px solid ${Q}; + } + + .dropdown-content { + position: absolute; + min-width: 14rem; + margin: 0; + padding: 0; + background: ${Ho}; + border-radius: 4px; + border: 1px solid var(--primaryCTABorder); + top: 3.4rem; + left: 50%; + -webkit-transform: translateX(-50%); + transform: translateX(-50%); + } + .dropdown-content li { + color: ${rs}; + list-style: none; + height: 3rem; + } + .dropdown-content .ia-button { + background: none; + color: ${Q}; + border: none; + box-sizing: border-box; + width: 100%; + text-align: left; + height: 3rem; + position: relative; + padding: 0.6rem 1.2rem; + margin: 0; + } + .dropdown-content .ia-button:is(:focus-visible, :hover) { + background: unset; + } + .dropdown-content li .ia-button { + border-radius: 0; + } + .dropdown-content li .ia-button:hover { + background: ${Q}; + color: rgb(45, 45, 45); + } + .dropdown-content li:first-child .ia-button { + border-radius: 0.3rem 0.3rem 0 0; + } + .dropdown-content li:last-child .ia-button { + border-radius: 0; + border-radius: 0 0 0.3rem 0.3rem; + } + .dropdown-content .purchase:hover svg g { + fill: black; + } + .dropdown-content .purchase { + padding-left: 35px; + margin: 0; + } + .dropdown-content .purchase small { + display: initial; + font-size: 1.4rem; + } + + .ia-button.down-arrow { + border-radius: 0 0.4rem 0.4rem 0; + padding: 0 0.6rem; + margin-left: 0; + } + .actionloader { + vertical-align: middle; + visibility: hidden; + padding: 0.9rem 0.2rem; + } + .close { + display: none; + } + .open { + display: block; + z-index: 2; + } + .visible { + display: inline-block; + } + .btn:hover, + .dropdown:hover .btn { + background-color: ${Q}; + } + a { + text-decoration: none; + } + .purchase small { + display: block; + font-size: 1rem; + } + .purchase svg { + position: absolute; + left: 10px; + top: 20%; + } + .unavailable { + opacity: 0.7; + pointer-events: none; + } + .disabled { + opacity: 0.8; + pointer-events: none; + visibility: visible; + } +`;const as=700,Mo=800,Oo=m` + + + + + + +`,No=m` + +`,Ue=m` + +`;class Uo extends Fs{static get properties(){return{userid:{type:String},identifier:{type:String},primaryActions:{type:Array},secondaryActions:{type:Array},primaryColor:{type:String},dropdownState:{type:String},width:{type:Number},hasAdminAccess:{type:Boolean},dropdownArrow:{type:String},disabled:{type:Boolean},returnUrl:{type:String},autoRenew:{type:Boolean},autoReturn:{type:Boolean},returnNow:{type:Boolean}}}constructor(){super(),this.userid="",this.identifier="",this.primaryActions=[],this.secondaryActions=[],this.primaryColor="",this.dropdownState="close",this.width=0,this.hasAdminAccess=!1,this.dropdownArrow=Ue,this.initialButton=!1,this.title="",this.loaderIcon="https://archive.org/upload/images/tree/loading.gif",this.disabled=!1,this.returnUrl="",this.autoRenew=!1,this.autoReturn=!1,this.returnNow=!1}updated(t){(t.has("width")||t.has("disabled"))&&this.isBelowTabletContainer&&this.resetActions(),t.has("autoRenew")&&this.autoRenew&&this.dispatchLoanEvent("autoRenew");const e=t.has("autoReturn")&&this.autoReturn;e&&this.dispatchLoanEvent("autoReturn"),t.has("returnNow")&&this.returnNow&&!e&&this.dispatchLoanEvent("returnNow",{borrowType:"browse"})}dispatchLoanEvent(t,e){this.dispatchEvent(new CustomEvent(t,{detail:e}))}resetActions(){this.primaryActions.length&&(this.primaryActions=this.primaryActions.concat(this.secondaryActions),this.primaryColor=this.primaryActions[0].className,this.hasAdminAccess&&this.sortActionButtonOrder(),this.secondaryActions=[])}sortActionButtonOrder(){let t=1;const e=0;this.secondaryActions.length===2&&(t=2),t=this.primaryActions.length-t;const i=this.primaryActions[t],s=this.primaryActions;s.splice(t,1),s.splice(e,0,i),this.primaryActions=s}render(){return m` +
+ ${this.getLoaderIcon} +
+ ${this.renderPrimaryActions} +
+
+ ${this.renderSecondaryActions} +
+
+ `}get renderPrimaryActions(){return this.primaryActions.length===0?$:(this.dropdownState==="close"&&(this.primaryColor=this.primaryActions[0].className),this.primaryActions.length===1?this.initialActionTemplate:m` + ${this.initialActionTemplate} + + + + `)}get renderSecondaryActions(){return this.secondaryActions.length?this.secondaryActions.map(t=>this.renderActionButton(t)):$}renderActionLink(t,e=!1){return m` + {this.clickHandler(t.id,t.analyticsEvent,t==null?void 0:t.borrowType)}} + > + ${t.id==="purchaseBook"?Oo:""} ${t.text} + ${t.subText} + + `}renderActionButton(t,e=!1){if(t.url)return this.renderActionLink(t,e);const{analyticsEvent:i}=t;return m``}clickHandler(t,e,i=""){if(this.dropdownState="close",this.dropdownArrow=Ue,!e||!t)return;const{category:s,action:o}=e;this.dispatchEvent(new CustomEvent(t,{detail:{event:{category:s,action:o},borrowType:i}}))}get initialActionTemplate(){return this.initialButton=!1,this.primaryActions.length>1&&(this.initialButton=!0),this.renderActionButton(this.primaryActions[0],this.initialButton)}get getPrimaryItems(){return this.primaryActions.slice(1).map(t=>m`
  • ${this.renderActionButton(t,this.initialButton)}
  • `)}get getLoaderIcon(){return m``}get isBelowTabletContainer(){return this.width<=Mo}get getDeviceType(){return this.isBelowTabletContainer?"mobile":"desktop"}toggleDropdown(){this.dropdownState==="open"?(this.dropdownState="close",this.dropdownArrow=Ue,this.primaryColor=this.primaryActions[0].className):(this.dropdownState="open",this.dropdownArrow=No,this.primaryColor="dark")}static get styles(){return[Po,Io]}}window.customElements.define("collapsible-action-group",Uo);const Do=m` + +`;class zo extends Fs{static get properties(){return{identifier:{type:String},bookTitle:{type:String}}}constructor(){super(),this.identifier="",this.bookTitle="",this.analyticsCategories=ue,this.analyticsActions=ri}clickHandler(){const{category:t,action:e}={category:this.analyticsCategories.bookReaderHeader,action:this.analyticsActions.titleBar};this.dispatchEvent(new CustomEvent("bookTitleBar",{detail:{event:{category:t,action:e}}}))}render(){return m` + {this.clickHandler()}} + href="/details/${this.identifier}" + > + ${Do} + ${this.bookTitle} + + `}static get styles(){return g` + :host { + padding: 0 10px; + height: 3.4rem; + display: flex; + } + .embed-link { + display: inline-flex; + align-items: center; + text-decoration: none; + color: var(--primaryTextColor, #fff); + font-size: 1.4rem; + } + .embed-link .title { + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; + text-align: left; + line-height: initial; + } + .embed-link svg { + margin-right: 0.5rem; + display: block; + } + .embed-link:hover { + text-decoration: underline; + } + `}}window.customElements.define("book-title-bar",zo);class Wo extends x{static get properties(){return{texts:{type:String},textClass:{type:String}}}constructor(){super(),this.texts="",this.textClass=""}render(){return m` + ${this.texts} + `}static get styles(){return g` + :host { + display: inline-block; + } + .variable-texts { + margin-right: 10px; + vertical-align: middle; + font-size: 1.7rem; + } + .hidden { + display: none; + } + .visible { + display: inline-block; + } + `}}window.customElements.define("text-group",Wo);/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */class Ze extends Ws{constructor(t){if(super(t),this.et=$,t.type!==Ds.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===$||t==null)return this.ft=void 0,this.et=t;if(t===M)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ze.directiveName="unsafeHTML",Ze.resultType=1;const jo=zs(Ze);/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */var De;const bt=globalThis.trustedTypes,ls=bt?bt.createPolicy("lit-html",{createHTML:n=>n}):void 0,I=`lit$${(Math.random()+"").slice(9)}$`,qs="?"+I,Fo=`<${qs}>`,$t=document,se=(n="")=>$t.createComment(n),jt=n=>n===null||typeof n!="object"&&typeof n!="function",Gs=Array.isArray,qo=n=>{var t;return Gs(n)||typeof((t=n)===null||t===void 0?void 0:t[Symbol.iterator])=="function"},Tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,cs=/-->/g,ds=/>/g,W=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,hs=/'/g,us=/"/g,Vs=/^(?:script|style|textarea|title)$/i,Ft=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),ps=new WeakMap,ot=$t.createTreeWalker($t,129,null,!1),Go=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"":"",r=Tt;for(let a=0;a"?(r=s!=null?s:Tt,h=-1):c[1]===void 0?h=-2:(h=r.lastIndex-c[2].length,u=c[1],r=c[3]===void 0?W:c[3]==='"'?us:hs):r===us||r===hs?r=W:r===cs||r===ds?r=Tt:(r=W,s=void 0);const b=r===W&&n[a+1].startsWith("/>")?" ":"";o+=r===Tt?l+Fo:h>=0?(i.push(u),l.slice(0,h)+"$lit$"+l.slice(h)+I+b):l+I+(h===-2?(i.push(void 0),a):b)}const d=o+(n[e]||"")+(t===2?"":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ls!==void 0?ls.createHTML(d):d,i]};class qt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const d=t.length-1,a=this.parts,[l,u]=Go(t,e);if(this.el=qt.createElement(l,i),ot.currentNode=this.el.content,e===2){const c=this.el.content,h=c.firstChild;h.remove(),c.append(...h.childNodes)}for(;(s=ot.nextNode())!==null&&a.length0){s.textContent=bt?bt.emptyScript:"";for(let p=0;p2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=E}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=yt(this,t,e,0),r=!jt(t)||t!==this._$AH&&t!==Ft,r&&(this._$AH=t);else{const d=t;let a,l;for(t=o[0],a=0;a + Info icon + Informative icon + + + +`;class tr extends V{static get styles(){return F` + :host { + width: var(--iconWidth, 'auto'); + height: var(--iconHeight, 'auto'); + } + + .fill-color { + fill: var(--iconFillColor); + } + + .stroke-color { + stroke: var(--iconStrokeColor); + } + `}render(){return Qo}}customElements.define("ia-icon-info",tr);class er extends x{static get properties(){return{iconClass:{type:String}}}constructor(){super(),this.iconClass="",this.helpURL="https://help.archive.org/help/borrowing-from-the-lending-library"}render(){return m` + + + + `}get getInfoIcon(){return sn`${jo(this.icon)}`}static get styles(){return g` + ia-icon-info { + display: inline-block; + width: 18px; + height: 20px; + vertical-align: middle; + --iconFillColor: white; + } + .more-info-icon img { + width: 24px; + height: 24px; + vertical-align: middle; + background: white; + } + .hidden { + display: none; + } + .visible { + display: inline-block; + } + `}}window.customElements.define("info-icon",er);class ir extends x{static get properties(){return{secondsLeftOnLoan:{type:Number},displayTime:{type:Boolean}}}constructor(){super(),this.secondsLeftOnLoan=0,this.displayTime=!1}get minutesLeftOnLoan(){let t=Math.round(this.secondsLeftOnLoan);return t=Math.ceil(t/60),t<10?t=`0:0${t}`:t===60?t="1:00":t=`0:${t}`,t}get remainingTime(){const t="minute",e=this.minutesLeftOnLoan;return e!==1?`${e} ${t}s`:`${e} ${t}`}render(){const t=this.displayTime?"view":"hide";return m` + + `}static get styles(){return g` + :host { + right: 0; + margin-right: 10px; + position: absolute; + } + + .sr-only { + position: absolute; + left: -9999px; + width: 1px; + height: 1px; + margin: 0; + padding: 0; + border: none; + overflow: hidden; + } + + button#timer-counter { + cursor: pointer; + } + + .hide { + opacity: 0; + } + + .show { + opacity: 1; + } + `}}window.customElements.define("timer-countdown",ir);window.IALendingIntervals={tokenPoller:0,timerCountdown:0,browseExpireTimeout:0,clearTokenPoller:()=>{window.clearInterval(window.IALendingIntervals.tokenPoller),window.IALendingIntervals.tokenPoller=0},clearTimerCountdown:()=>{window.clearInterval(window.IALendingIntervals.timerCountdown),window.IALendingIntervals.timerCountdown=0},clearBrowseExpireTimeout:()=>{window.clearTimeout(window.IALendingIntervals.browseExpireTimeout),window.IALendingIntervals.browseExpireTimeout=0},clearAll:()=>{var n,t,e;(n=window==null?void 0:window.IALendingIntervals)==null||n.clearTokenPoller(),(t=window==null?void 0:window.IALendingIntervals)==null||t.clearTimerCountdown(),(e=window==null?void 0:window.IALendingIntervals)==null||e.clearBrowseExpireTimeout()}};class sr{constructor(t,e,i={},s){this.userid=t,this.identifier=e,this.lendingStatus=i,this.bwbPurchaseUrl=s,this.printDisabilityLink="/details/printdisabled?tab=about",this.analyticsCategories=ue,this.analyticsActions=ri}firstBrowseConfig(){return{id:"browseBook",text:"Borrow",className:"primary",analyticsEvent:{category:this.analyticsCategories.preview,action:this.analyticsActions.browse}}}browseAgainConfig(){return{id:"browseBookAgain",text:"Borrow",className:"primary",analyticsEvent:{category:this.analyticsCategories.browse,action:this.analyticsActions.browseAgain}}}returnBookConfig(){const t=this.lendingStatus.user_has_browsed?this.analyticsCategories.browse:this.analyticsCategories.borrow;return{id:"returnNow",text:"Return now",className:"danger",analyticsEvent:{category:t,action:this.analyticsActions.doneBorrowing},borrowType:this.lendingStatus.user_has_browsed?"browse":"borrow"}}borrowBookConfig(t=!1){return!this.lendingStatus.available_to_borrow&&!this.lendingStatus.user_is_printdisabled||this.lendingStatus.user_has_borrowed?null:{id:"borrowBook",text:"Borrow for 14 days",className:"primary",disabled:t,analyticsEvent:{category:this.lendingStatus.user_has_browsed?this.analyticsCategories.browse:this.analyticsCategories.preview,action:this.analyticsActions.borrow}}}loginAndBorrowBookConfig(){return{id:"loginAndBorrow",text:"Log In and Borrow",className:"primary",analyticsEvent:{category:this.analyticsCategories.preview,action:this.analyticsActions.login}}}leaveWaitlistConfig(){return{id:"leaveWaitlist",text:"Leave Waitlist",className:"dark",analyticsEvent:{category:this.analyticsCategories.preview,action:this.analyticsActions.waitlistLeave}}}loginAndWaitlistConfig(){return{id:"loginAndWaitlist",text:"Log In and Join Waitlist",className:"warning",analyticsEvent:{category:this.analyticsCategories.preview,action:this.analyticsActions.login}}}waitlistConfig(){const t=!!this.userid,e=this.lendingStatus||{};return!e.available_to_waitlist||e.available_to_borrow?null:t?{id:"joinWaitlist",text:"Join Waitlist",className:"warning",analyticsEvent:{category:this.analyticsCategories.preview,action:this.analyticsActions.waitlistJoin}}:this.loginAndWaitlistConfig()}purchaseConfig(){return this.bwbPurchaseUrl?{id:"purchaseBook",text:"Purchase at ",subText:"Better World Books",title:"Purchase",url:this.bwbPurchaseUrl,target:"_blank",className:"purchase dark",analyticsEvent:{category:this.analyticsCategories.bookReaderHeader,action:this.analyticsActions.purchase}}:null}printDisabilityConfig(){return this.lendingStatus.user_is_printdisabled?null:{id:"printDisability",text:"Print Disability Access",title:"Print Disability Access",url:this.printDisabilityLink,target:"_self",className:"print-disability",analyticsEvent:{category:this.analyticsCategories.bookReaderHeader,action:this.analyticsActions.printDisability}}}adminAccessConfig(){return this.lendingStatus.user_has_borrowed||!this.lendingStatus.isAdmin?null:{id:"adminAccess",text:"Admin Access",title:"You have administrative privileges to read this book",className:"danger",analyticsEvent:{category:this.analyticsCategories.adminAccess,action:this.analyticsActions.borrow}}}adminOrPrintDisabledExitConfig(){const e=`\u2190 Exit ${k.getQueryParam("admin")==="1"?"admin":"print-disabled"} access mode`;return{id:"exitAdminAccess",text:e,url:k.getBackHref(),target:"_self",className:"exit-admin",analyticsEvent:{category:this.analyticsCategories.adminAccess,action:this.analyticsActions.doneBorrowing}}}unavailableBookConfig(){return{id:"borrowUnavailable",text:"Borrow Unavailable",className:"primary unavailable",disabled:!0,analyticsEvent:{category:this.analyticsCategories.preview,action:this.analyticsActions.unavailable}}}isEmbed(t){return{primaryTitle:` ${t}`,primaryActions:[],primaryColor:""}}}const S={available_1hr:"Renews automatically with continued use.",available_14d:"This book can be borrowed for 14 days.",available_pd:"Book available to patrons with print disabilities.",available_waitlist:"A waitlist is available.",admin_access:"You have administrative privileges to read this book.",claim_waitlist:"You are at the top of the waitlist for this book.",being_borrowed:"Another patron is using this book. Please check back later.",eligible_pd:"You are eligible for print-disabled access.",on_waitlist:"You are on the waitlist for this book.",session_expired:"Renews automatically with continued use.",unavailable:"This book is not available at this time."};class nr{constructor(t,e,i,s){this.userid=t,this.identifier=e,this.lendingStatus=i,this.bwbPurchaseUrl=s,this.analyticsCategories=ue,this.analyticsActions=ri,this.actionsConfig=new sr(this.userid,this.identifier,this.lendingStatus,this.bwbPurchaseUrl)}onlyAdminAction(){return{primaryTitle:S.admin_access,primaryActions:[],primaryColor:"primary",secondaryActions:[this.actionsConfig.adminAccessConfig(),this.actionsConfig.purchaseConfig()]}}adminOrPrintDisabledReadingAction(){return{primaryTitle:"",primaryActions:[],secondaryActions:[this.actionsConfig.adminOrPrintDisabledExitConfig()],borrowType:"adminBorrowed"}}patronIsReadingAction(){const t=this.lendingStatus||{},e=t.loanCount>=t.maxLoans;let i="",s=t.user_has_browsed&&!t.browsingExpired;return s?i=S.available_1hr:i=`Your loan of this book has ${t.daysLeftOnLoan} days left.`,{primaryTitle:i,primaryActions:[this.actionsConfig.returnBookConfig(),this.actionsConfig.borrowBookConfig(e),this.actionsConfig.waitlistConfig(),this.actionsConfig.printDisabilityConfig()],primaryColor:"danger",secondaryActions:[this.actionsConfig.adminAccessConfig(),this.actionsConfig.purchaseConfig()],borrowType:s?"browsed":"borrowed"}}claimWaitlistAction(){const t=this.lendingStatus||{},e=this.actionsConfig.leaveWaitlistConfig(),i=this.actionsConfig.borrowBookConfig(),s=t.available_to_browse?this.actionsConfig.firstBrowseConfig():null;let o=[i];return s&&o.push(s),o.push(e),{primaryTitle:S.claim_waitlist,primaryActions:o,primaryColor:"primary",footer:"printDisabilityLine()",secondaryActions:[this.actionsConfig.adminAccessConfig(),this.actionsConfig.purchaseConfig()]}}borrowPrintDisabledAction(){return{primaryTitle:S.eligible_pd,primaryActions:[this.actionsConfig.borrowBookConfig()],primaryColor:"primary",secondaryActions:[this.actionsConfig.adminAccessConfig(),this.actionsConfig.purchaseConfig()]}}onlyPrintDisabledAction(){const t=this.lendingStatus.isAdmin?[]:this.actionsConfig.unavailableBookConfig();return{primaryTitle:S.available_pd,primaryActions:[t],primaryColor:"primary",secondaryActions:[]}}onWaitlistAction(){return{primaryTitle:S.on_waitlist,primaryActions:[this.actionsConfig.leaveWaitlistConfig(),this.actionsConfig.firstBrowseConfig()],primaryColor:"primary",secondaryActions:[this.actionsConfig.adminAccessConfig(),this.actionsConfig.purchaseConfig()]}}restrictedAction(){const t=this.lendingStatus||{};return{primaryTitle:t.max_browsable_copies&&!t.available_lendable_copies?S.being_borrowed:S.unavailable,primaryActions:[this.actionsConfig.unavailableBookConfig()],primaryColor:"primary",secondaryActions:[this.actionsConfig.adminAccessConfig(),this.actionsConfig.purchaseConfig()]}}loggedOutOptions(){const t=this.lendingStatus||{},e=!t.available_to_waitlist&&!t.available_to_borrow,i=this.actionsConfig.waitlistConfig();let s=null;t.available_to_borrow||t.available_to_browse?s=this.actionsConfig.loginAndBorrowBookConfig():e&&(s=this.actionsConfig.unavailableBookConfig());const o=this.actionsConfig.printDisabilityConfig(),r=[s,i,o].filter(a=>a!==null);return{primaryTitle:t.available_to_browse?S.available_1hr:t.available_to_borrow?S.available_14d:S.unavailable,primaryActions:r,primaryColor:"primary",footer:"printDisabilityLine()",secondaryActions:[this.actionsConfig.adminAccessConfig(),this.actionsConfig.purchaseConfig()]}}borrow1HrAction(){const t=this.lendingStatus||{},e=!t.available_to_browse&&t.browsingExpired,i=t.available_to_browse||e,s=i&&t.available_to_borrow,o=i&&!t.available_to_borrow&&t.available_to_waitlist,r=i&&!t.available_to_borrow&&!t.available_to_waitlist,d=t.available_browsable_copies<1&&t.available_browsable_copies=t.maxLoans;!t.available_to_borrow&&!s?i=this.actionsConfig.unavailableBookConfig():t.available_to_borrow&&(i=this.actionsConfig.borrowBookConfig(r));const a=[i,s,o].filter(function(l){return l!==null});return{primaryTitle:s?S.being_borrowed:"",primaryActions:a,primaryColor:"primary",secondaryActions:[this.actionsConfig.adminAccessConfig(),this.actionsConfig.purchaseConfig()]}}getBrowseCountdownTitle(){const t=this.lendingStatus.secondsLeftOnLoan;var e=new Date(+new Date+t*1e3),i=e.getHours()%12,s=(""+e.getMinutes()).replace(/^(\d{1})$/,"0$1"),o=e.getHours()>11?" PM":" AM";return i===0&&(i=12),"Borrow ends at "+i+":"+s+o}getCurrentLendingActions(){let t;const e=this.lendingStatus||{},i=k.getQueryParam("admin")=="1"&&e.isAdmin,s=k.getQueryParam("access")=="1"&&e.user_is_printdisabled,o=e.user_has_borrowed||e.user_has_browsed&&!e.browsingExpired,r=!e.user_has_borrowed&&!e.user_has_browsed,d=!e.available_to_borrow&&!e.available_to_browse,a=e.is_printdisabled&&e.user_is_printdisabled,l=(e.available_to_browse||e.available_to_borrow)&&r&&!e.user_on_waitlist;return i||s?t=this.adminOrPrintDisabledReadingAction():e.isAdmin&&r&&d?t=this.onlyAdminAction():o?t=this.patronIsReadingAction():e.user_can_claim_waitlist?t=this.claimWaitlistAction():a?t=this.borrowPrintDisabledAction():l||e.browsingExpired?t=this.borrowAction():e.isPrintDisabledOnly?t=this.onlyPrintDisabledAction():e.user_on_waitlist?t=this.onWaitlistAction():t=this.restrictedAction(),t}}class or{constructor(t,e,i,s,o){this.identifier=t,this.borrowType=e,this.successCallback=i,this.errorCallback=s,this.pollerDelay=o,this.loanTokenInterval=void 0,this.loanAnalytics=new js,this.bookAccessed()}disconnectedCallback(){var t;(t=window==null?void 0:window.IALendingIntervals)==null||t.clearTokenPoller()}async bookAccessed(){var t;this.borrowType?(this.handleLoanTokenPoller(!0),this.borrowType!=="adminBorrowed"&&(window.IALendingIntervals.tokenPoller=setInterval(()=>{this.handleLoanTokenPoller()},this.pollerDelay*1e3))):((t=window==null?void 0:window.Sentry)==null||t.captureMessage(`${T.bookAccessed} - not borrowed`),this.disconnectedCallback())}async handleLoanTokenPoller(t=!1){const e="create_token";j({identifier:this.identifier,action:e,error:i=>{var s,o;this.errorCallback({detail:{action:e,data:i}}),(s=window==null?void 0:window.Sentry)==null||s.captureMessage(`${T.handleLoanTokenPoller} - Error: ${JSON.stringify(i)}`),(o=this.loanAnalytics)==null||o.sendEvent("LendingServiceLoanError",e,this.identifier)},success:()=>{t&&this.successCallback()}})}}class rr{constructor(t,e,i,s){this.hasPageChanged=t,this.identifier=e,this.localCache=i,this.loanRenewTimeConfig=s,this.loanRenewMessage="This book has been renewed for #time #unitsOfTime.",this.loanReturnWarning="With no action, this book will be auto-returned in #time #unitsOfTime.",this.result={texts:null,renewNow:!1}}handleLoanRenew(){try{return this.hasPageChanged?this.pageChanged():this.autoChecker()}catch(t){y(t)}return $}async pageChanged(){const{loanRenewAtLast:t}=this.loanRenewTimeConfig,e=new Date,i=await this.localCache.get(`${this.identifier}-loanTime`),s=this.changeTime(i,t,"sub");return s!==null&&e>=s&&(this.result.texts=this.loanRenewMessage,this.result.renewNow=!0),this.setPageChangedTime(),this.result}async autoChecker(){const{pageChangedInLast:t}=this.loanRenewTimeConfig,e=await this.localCache.get(`${this.identifier}-pageChangedTime`),i=this.changeTime(new Date,t,"sub");return e===void 0||e<=i?(this.result.texts=this.loanReturnWarning,this.result.renewNow=!1):e>=i&&(this.result.texts="",this.result.renewNow=!0),this.result}async setPageChangedTime(){await this.localCache.set({key:`${this.identifier}-pageChangedTime`,value:new Date,ttl:Number(this.loanRenewTimeConfig.loanTotalTime)})}getMessageTexts(t,e){let i="minute",s=t,o=e;return o=Math.ceil(o/60),o>59&&(o=1,i="hour"),s=s==null?void 0:s.replace(/#time/,o),s==null?void 0:s.replace(/#unitsOfTime/,o!==1?`${i}s`:i)}changeTime(t,e,i){return t===void 0?null:i==="sub"?new Date(t.getTime()-e*1e3):new Date(t.getTime()+e*1e3)}}const ar={browseExpired:"IABookReader:BrowsingHasExpired"},L={iaButton:"min-height:3.5rem;cursor:pointer;color:white;border-radius:0.4rem;border:1px solid #c5d1df;padding:4px 8px;width:auto;user-select:none;",renew:"background:#194880;width:110px;",return:"background:#d9534f;width:120px;",loaderIcon:"display:inline-block;width:20px;height:20px;margin-top:2px;color:white;--activityIndicatorLoadingRingColor:#fff;--activityIndicatorLoadingDotColor:#fff;",refresh:"background:none;font-size:inherit;border:0;padding:0;color:#0000ee;cursor:pointer;text-decoration:underline"};class lr extends x{static get properties(){return{userid:{type:String},identifier:{type:String},bookTitle:{type:String},lendingStatus:{type:Object},returnUrl:{type:String},width:{type:Number},bwbPurchaseUrl:{type:String},lendingBarPostInit:{type:Function,attribute:!1},barType:{type:String},sharedObserver:{attribute:!1},disableActionGroup:{type:Boolean},modal:{Object},tokenDelay:{type:Number},timerExecutionSeconds:{type:Number},localCache:{type:Object},loanRenewTimeConfig:{type:Object},loanRenewResult:{type:Object}}}constructor(){super(),this.userid="",this.identifier="",this.bookTitle="",this.returnUrl="",this.lendingStatus={},this.width=0,this.bwbPurchaseUrl="",this.lendingBarPostInit=()=>{},this.barType="action",this.sharedObserver=void 0,this.disableActionGroup=!1,this.tokenDelay=120,this.timerExecutionSeconds=30,this.postInitComplete=!1,this.primaryActions=[],this.primaryTitle="",this.primaryColor="primary",this.secondaryActions=[],this.lendingOptions={},this.borrowType=null,this.browseTimer=void 0,this.returnNow=!1,this.loanRenewTimeConfig={loanTotalTime:3600,loanRenewAtLast:660,pageChangedInLast:900},this.loanRenewResult={texts:"",renewNow:!1,secondsLeft:0}}disconnectedCallback(){var t;(t=window==null?void 0:window.IALendingIntervals)==null||t.clearAll(),this.sentryCaptureMsg(T.disconnectedCallback),this.disconnectResizeObserver()}sentryCaptureMsg(t){var e;y(window==null?void 0:window.Sentry),(e=window==null?void 0:window.Sentry)==null||e.captureMessage(t)}firstUpdated(){this.bindLoanRenewEvents(),this.localCache=new Us({namespace:"loanRenew"}),this.sharedObserver||(this.sharedObserver=new fn,this.setupResizeObserver())}updated(t){(t.has("lendingStatus")||t.has("bwbPurchaseUrl"))&&this.setupLendingToolbarActions(),t.has("sharedObserver")&&(this.disconnectResizeObserver(),this.setupResizeObserver()),t.has("loanRenewResult")&&this.loanRenewResult.renewNow&&window.IALendingIntervals.clearAll()}handleResize(t){const{target:e}=t;if(e!==this.shadowRoot.host)return;const{contentRect:i}=t;this.width=Math.round(i.width)}disconnectResizeObserver(){var t;(t=this.sharedObserver)==null||t.removeObserver({handler:this,target:this.shadowRoot.host})}setupResizeObserver(){var t;!this.shadowRoot||(t=this.sharedObserver)==null||t.addObserver({handler:this,target:this.shadowRoot.host})}async setupLendingToolbarActions(){var i,s,o,r;this.lendingOptions=new nr(this.userid,this.identifier,this.lendingStatus,this.bwbPurchaseUrl);const t=this.lendingOptions.getCurrentLendingActions();if(!t)return;this.primaryTitle=t.primaryTitle,this.primaryActions=(i=t.primaryActions)==null?void 0:i.filter(d=>d!=null),this.primaryColor=t.primaryColor,this.secondaryActions=(s=t.secondaryActions)==null?void 0:s.filter(d=>d!=null),this.borrowType=t.borrowType?t.borrowType:null;const e="browsingExpired"in this.lendingStatus&&((o=this.lendingStatus)==null?void 0:o.browsingExpired);if(e){y("setupLendingToolbarActions > hasExpired --- "),this.tokenPoller||this.sentryCaptureMsg(T.bookWasExpired),(r=window==null?void 0:window.IALendingIntervals)==null||r.clearAll(),this.dispatchEvent(new Event(ar.browseExpired,{bubbles:!0,cancelable:!1,composed:!0}));return}if(this.borrowType==="browsed"&&(await this.startTimerCountdown(),await this.startBrowseTimer()),!this.borrowType||this.barType==="title"){this.lendingBarPostInit();return}setTimeout(()=>{!e&&!window.IALendingIntervals.tokenPoller&&this.startLoanTokenPoller()},100),this.requestUpdate()}bindLoanRenewEvents(){window.addEventListener("BookReader:userAction",()=>{y("IABookActions:BookReader:userAction"),this.borrowType==="browsed"&&this.autoLoanRenewChecker(!0)}),document.addEventListener("visibilitychange",async()=>{if(!document.hidden&&(y("visibilitychange event execute:------------------ ",new Date().getMinutes(),new Date().getSeconds(),this.borrowType),this.borrowType==="browsed"&&this.lendingStatus.browsingExpired===!1)){const t=await this.localCache.get(`${this.identifier}-loanTime`),e=Math.round((t-new Date)/1e3);e>=this.timerExecutionSeconds?this.loanStatusCheckInterval(Number(e)):(this.browseHasExpired(),this.disconnectedCallback())}})}async autoLoanRenewChecker(t=!1){this.loanRenewHelper=new rr(t,this.identifier,this.localCache,this.loanRenewTimeConfig),await this.loanRenewHelper.handleLoanRenew(),this.loanRenewResult=this.loanRenewHelper.result}get modal(){const t=document.body.querySelector("modal-manager");return t==null||t.setAttribute("id","action-bar-modal"),t}async showWarningModal(){var s,o,r;y("****** showWarningModal ******"),this.modal.customModalContent=$,(s=this.modal)==null||s.closeModal(),this.loanRenewResult={texts:"",renewNow:!1};let{secondsLeft:t}=this.loanRenewResult;t===void 0?t=this.lendingStatus.secondsLeftOnLoan:t=t>60?t:60;const e=new G({headline:"Are you still reading?",headerColor:"#194880",showCloseButton:!1,closeOnBackdropClick:!1,message:(o=this.loanRenewHelper)==null?void 0:o.getMessageTexts(this.loanRenewResult.texts,t)}),i=m`
    +
    + + +
    `;this.modal.setAttribute("aria-live","assertive"),await((r=this.modal)==null?void 0:r.showModal({config:e,customModalContent:i}))}async showWarningDisabledModal(t="renewBook"){var o,r;let{secondsLeft:e}=this.loanRenewResult;e===void 0?e=this.lendingStatus.secondsLeftOnLoan:e=e>60?e:60;const i=new G({headline:"Are you still reading?",headerColor:"#194880",showCloseButton:!1,closeOnBackdropClick:!1,message:(o=this.loanRenewHelper)==null?void 0:o.getMessageTexts(this.loanRenewResult.texts,e)}),s=m`
    +
    + + Renewing loan, one moment please. + +
    `;await((r=this.modal)==null?void 0:r.showModal({config:i,customModalContent:s}))}async patronWantsToRenewBook(){this.showWarningDisabledModal(),this.loanRenewResult={texts:"",renewNow:!0}}async patronWantsToReturnBook(){this.showWarningDisabledModal("returnBook"),document.querySelector("ia-book-actions").disableActionGroup=!0,this.returnNow=!0}async showExpiredModal(){var i;const t=new G({headline:"",showCloseButton:!1,closeOnBackdropClick:!1,headerColor:"#194880",message:"This book has been returned due to inactivity."}),e=m`
    +
    + +
    `;await((i=this.modal)==null?void 0:i.showModal({config:t,customModalContent:e}))}async browseHasExpired(){var e;y("BrowseHasExpired ---"),(e=window==null?void 0:window.IALendingIntervals)==null||e.clearAll();const t={...this.lendingStatus,browsingExpired:!0,secondsLeftOnLoan:0};this.lendingStatus=t,await this.localCache.delete(`${this.identifier}-loanTime`),await this.localCache.delete(`${this.identifier}-pageChangedTime`),this.loanRenewResult.renewNow=!1,this.loanRenewResult.texts="This book has been returned due to inactivity.",await this.showExpiredModal(),this.sentryCaptureMsg(T.browseHasExpired)}async startBrowseTimer(){var s;(s=window==null?void 0:window.IALendingIntervals)==null||s.clearBrowseExpireTimeout();const{browsingExpired:t,user_has_browsed:e,secondsLeftOnLoan:i}=this.lendingStatus;if(!e||t){y("startBrowseTimer --- !user_has_browsed || browsingExpired",{user_has_browsed:e,browsingExpired:t,secondsLeftOnLoan:i});return}window.IALendingIntervals.browseExpireTimeout=setTimeout(()=>{y("startBrowseTimer > browseExpireTimeout --- will expire loan",i),this.browseHasExpired()},i*1e3)}render(){return this.barType==="title"?m`
    + ${this.bookTitleBar} +
    `:m`
    + ${this.bookActionBar} +
    `}get bookTitleBar(){return m``}get timerCountdownEl(){return this.shadowRoot.querySelector("timer-countdown")}get bookActionBar(){return m` + + + ${this.textGroupTemplate} ${this.infoIconTemplate} + + `}async handleLoanAutoRenewed({detail:t}){var s,o,r;const e=(s=t==null?void 0:t.data)==null?void 0:s.loan,i=`Whoops, seems we hit a hiccup with renewing this book. Please refresh & retry. --- (Debug: ${(o=t==null?void 0:t.data)==null?void 0:o.error})`;if(!e){this.showErrorModal(i,"handleLoanAutoRenewed");return}if(this.loanRenewResult.renewNow){const d=await this.localCache.get(`${this.identifier}-loanTime`),a=Math.round((d-new Date)/1e3);y(d,a),y("IABookActions: handleLoanAutoRenewed --- ",{ajaxResponse:t==null?void 0:t.data,loanRenewResult:this.loanRenewResult,secondsLeftOnLoan:a});const l={...this.lendingStatus,user_has_browsed:!0,browsingExpired:!1,secondsLeftOnLoan:a};this.lendingStatus=l,(r=this.modal)==null||r.closeModal(),this.modal.removeAttribute("id"),this.modal.customModalContent=$,this.sentryCaptureMsg(T.bookHasRenewed)}}startTimerCountdown(){var e;(e=window==null?void 0:window.IALendingIntervals)==null||e.clearTimerCountdown();const t=Number(this.lendingStatus.secondsLeftOnLoan);this.timeWhenTimerStart=new Date,window.IALendingIntervals.timerCountdown=setInterval(async()=>{await this.loanStatusCheckInterval(t)},this.timerExecutionSeconds*1e3)}async loanStatusCheckInterval(t){let e=t;e-=this.timerExecutionSeconds,e=Math.round(e);const i=await this.reSyncTimerIfGoneOff(e);i.hasSynced&&(e=i.whatShouldLeft,y("startTimerCountdown --- stale, timer has resyncd",{secondsLeft:e})),y("startTimerCountdown --- countdown still valid. continue...",{resyncd:i,secondsLeft:e,loanRenewAtLast:this.loanRenewTimeConfig.loanRenewAtLast},"time: ",new Date().getMinutes(),":",new Date().getSeconds(),", timerDelay: ",this.timerExecutionSeconds),e<=this.loanRenewTimeConfig.loanRenewAtLast&&await this.loanRenewAttempt(e),e<=this.timerExecutionSeconds&&(this.disconnectedCallback(),this.sentryCaptureMsg(T.clearOneHourTimer))}async reSyncTimerIfGoneOff(t){const i=new Date().getTime()/1e3-this.timeWhenTimerStart.getTime()/1e3,s=this.lendingStatus.secondsLeftOnLoan-i,o=Math.round(t),r=Math.round(s),d=this.timerCountdownEl.secondsLeftOnLoan||0;if(y("reSyncTimerIfGoneOff?",{whatIsleft:o,whatShouldLeft:r,timerElSeconds:d,timeLeftInMin:Math.ceil(t/60)}),d!==r||o!==r){const a={...this.lendingStatus,secondsLeftOnLoan:r};this.lendingStatus=a}return o!==r?(y("reSyncTimerIfGoneOff --- let's re-sync."),{hasSynced:!0,whatShouldLeft:r}):{hasSynced:!1,whatShouldLeft:r}}async loanRenewAttempt(t){y("loanRenewAttempt ---",{secondsLeft:t,loanRenewResult:this.loanRenewResult});let e=t;if(e<50){y("loanRenewAttempt --- loanSecondsLeft < 50, will expire"),await this.browseHasExpired();return}await this.autoLoanRenewChecker(!1),this.loanRenewResult.renewNow===!1&&(e-=60,this.loanRenewResult.secondsLeft=e,this.showWarningModal())}startLoanTokenPoller(){const t=()=>{this.postInitComplete||this.lendingBarPostInit(),this.postInitComplete=!0},e=i=>{this.handleLendingActionError(i)};this.tokenPoller=new or(this.identifier,this.borrowType,t,e,this.tokenDelay)}handleToggleActionGroup(){this.disableActionGroup=!this.disableActionGroup}handleLendingActionError(t){var s,o,r,d;this.disableActionGroup=!1,(s=window==null?void 0:window.IALendingIntervals)==null||s.clearAll();const e=(o=t==null?void 0:t.detail)==null?void 0:o.action,i=(d=(r=t==null?void 0:t.detail)==null?void 0:r.data)==null?void 0:d.error;if(i&&e!=="create_token"&&this.showErrorModal(i,e),e==="create_token"){const a={...this.lendingStatus,user_has_browsed:!1,available_to_browse:!0};this.lendingStatus=a}if(i&&i.match(/not available to borrow/gm)){let a=this.lendingStatus;e==="browse_book"?a={...this.lendingStatus,available_to_browse:!1}:e==="borrow_book"&&(a={...this.lendingStatus,available_to_borrow:!1}),this.lendingStatus=a}}async showErrorModal(t,e){var s;const i=new G({title:"Lending error",message:t,headerColor:"#d9534f",showCloseButton:!0});if(e==="create_token"){const o=m``;i.message=m` Uh oh, something went wrong trying to access + this book.
    + Please ${o} to try again or send us an email to + info@archive.org

    + errorLog: ${t}`}await((s=this.modal)==null?void 0:s.showModal({config:i}))}get iconClass(){return this.width<=as?"mobile":"desktop"}get textClass(){return this.width>=as?"visible":"hidden"}get infoIconTemplate(){return m``}get textGroupTemplate(){return this.primaryTitle?m` + `:$}get hasAdminAccess(){return!this.lendingStatus.userHasBorrowed&&this.lendingStatus.isAdmin}static get styles(){return g` + :host { + display: block; + } + + .hide { + display: none; + } + + .lending-wrapper { + width: 100%; + margin: 0 auto; + background: var(--primaryBGColor, #000); + color: var(--primaryTextColor, #fff); + display: inline-flex; + align-items: center; + justify-content: center; + flex-wrap: wrap; + } + `}}window.customElements.define("ia-book-actions",lr);const fe={active_borrows:0,active_browses:0,available_borrowable_copies:0,available_browsable_copies:1,available_lendable_copies:1,available_to_borrow:!1,available_to_browse:!1,available_to_waitlist:!1,copies_reserved_for_waitlist:0,is_lendable:!0,is_login_required:!1,is_printdisabled:!1,is_readable:!1,last_borrow:null,last_browse:null,last_waitlist:null,max_borrowable_copies:0,max_browsable_copies:1,max_lendable_copies:1,next_borrow_expiration:null,next_browse_expiration:null,orphaned_acs_loans:0,upgradable_browses:0,user_at_max_loans:!1,user_can_claim_waitlist:!1,user_has_acs_borrowed:!1,user_has_borrowed:!1,user_has_browsed:!1,user_is_printdisabled:!1,user_loan_count:0,user_loan_record:[],user_on_waitlist:!1,users_on_waitlist:0,bookUrl:"/details/practicalorganic00plim",browsingExpired:!1,daysLeftOnLoan:0,isAdmin:!1,isArchiveOrgLending:!0,isAvailable:!1,isAvailableForBrowsing:!0,isBrowserBorrowable:!0,isLendingRequired:!0,isOpenLibraryLending:!1,isPrintDisabledOnly:!1,loanCount:0,loanRecord:[],loansUrl:"/details/@neeraj-archive?tab=loans#loans-on-loan",maxLoans:10,secondsLeftOnLoan:10,shouldProtectImages:!0,totalWaitlistCount:0,userHasBorrowed:!1,userHasBrowsed:!1,userHoldIsReady:!1,userIsPrintDisabled:!1,userOnWaitingList:!1,userWaitlistPosition:-1,userid:"@neeraj-archive"},cr={active_borrows:0,active_browses:1,available_borrowable_copies:0,available_browsable_copies:0,available_lendable_copies:0,available_to_borrow:!0,available_to_browse:!0,available_to_waitlist:!1,copies_reserved_for_waitlist:0,is_lendable:!0,is_login_required:!1,is_printdisabled:!0,is_readable:!1,last_borrow:null,last_browse:"2021-07-30 09:57:40",last_waitlist:null,max_borrowable_copies:0,max_browsable_copies:1,max_lendable_copies:1,next_borrow_expiration:null,next_browse_expiration:"2021-07-30 10:57:40",orphaned_acs_loans:0,upgradable_browses:0,user_at_max_loans:!1,user_can_claim_waitlist:!1,user_has_acs_borrowed:!1,user_has_borrowed:!1,user_has_browsed:!1,user_is_printdisabled:!1,user_loan_count:1,user_loan_record:{userid:"@neeraj-archive",listname:"loan",identifier:"practicalorganic00plim"},user_on_waitlist:!1,users_on_waitlist:0,bookUrl:"/details/practicalorganic00plim",daysLeftOnLoan:0,isAdmin:!1,isArchiveOrgLending:!0,isAvailable:!1,isAvailableForBrowsing:!1,isBrowserBorrowable:!0,isLendingRequired:!0,isOpenLibraryLending:!1,isPrintDisabledOnly:!1,loanCount:1,loanId:"1ca15f92d07dfdae3f7b1516084aec5d603800b8",loanRecord:{userid:"@neeraj-archive",listname:"loan",identifier:"practicalorganic00plim"},loanStartDate:"2021-07-30 09:57:40",loansUrl:"/details/@neeraj-archive?tab=loans#loans-on-loan",maxLoans:10,secondsLeftOnLoan:155,shouldProtectImages:!0,totalWaitlistCount:0,userHasBorrowed:!1,userHasBrowsed:!0,userHoldIsReady:!1,userIsPrintDisabled:!1,userOnWaitingList:!1,userWaitlistPosition:-1,userid:"@neeraj-archive"},Je=new Us({namespace:"loanRenew",defaultTTL:1*60}),dr="@neeraj-archive",Ye="naturalhistoryof00unse_4111";let ze="https://www.betterworldbooks.com/product/detail/cambridge-ancient-hist-v04-0521044863";const Ks=new G;Ks.headerColor="#d9534f";let hr=function(){setTimeout(function(){},100)},v=document.querySelector("ia-book-actions");v.userid=dr;v.identifier=Ye;v.bookTitle="Contemporary Black biography. Volume 39 : profiles from the interContemporary Black biography. Volume 39";v.lendingStatus=cr;v.bwbPurchaseUrl="";v.modalConfig=Ks;v.lendingBarPostInit=hr;v.tokenDelay=2;v.timerExecutionSeconds=4;v.returnUrl="";v.localCache=Je;let ur={loanTotalTime:120,loanRenewAtLast:80,pageChangedInLast:15};v.loanRenewTimeConfig=ur;let f=v.lendingStatus,pr=v.loanRenewTimeConfig.loanTotalTime;document.querySelectorAll(".titleBar input[type=checkbox]").forEach(n=>{n.addEventListener("click",t=>{t.target.checked?v.barType="title":v.barType="action"})});document.querySelectorAll(".searchParam input[type=checkbox]").forEach(n=>{n.addEventListener("click",t=>{var e=new URLSearchParams(window.location.search),i="";if(t.target.checked?(i="?",e.set("q","test")):(i="",e.delete("q")),history.pushState){var s=window.location.protocol+"//"+window.location.host+window.location.pathname+i+e;window.history.pushState({path:s},"",s)}})});document.querySelectorAll(".errorEnable input[type=checkbox]").forEach(n=>{window.location.href.indexOf("?error=true")!==-1&&(n.checked=!0),n.addEventListener("click",t=>{var e=new URLSearchParams(window.location.search),i="";if(t.target.checked?(i="?",e.set("error",!0)):(i="",e.delete("error")),history.pushState){var s=window.location.protocol+"//"+window.location.host+window.location.pathname+i+e;window.history.pushState({path:s},"",s)}})});document.querySelectorAll(".userState input[type=checkbox]").forEach(n=>{n.addEventListener("click",t=>{t.target.checked?(t.target.value==="isAdmin"&&(f.isAdmin=!0),t.target.value==="isLoggedIn"&&(v.userid="@neeraj")):(t.target.value==="isAdmin"&&(f.isAdmin=!1),t.target.value==="isLoggedIn"&&(v.userid=""));let e={...fe,...f};v.lendingStatus=e})});document.querySelectorAll(".printDisabled input[type=checkbox]").forEach(n=>{n.addEventListener("click",t=>{t.target.checked?(t.target.value==="is_printdisabled"&&(f.is_printdisabled=!0),t.target.value==="user_is_printdisabled"&&(f.user_is_printdisabled=!0)):(t.target.value==="is_printdisabled"&&(f.is_printdisabled=!1),t.target.value==="user_is_printdisabled"&&(f.user_is_printdisabled=!1));let e={...fe,...f};v.lendingStatus=e})});document.querySelectorAll(".availableToBrowse input[type=radio]").forEach(n=>{n.addEventListener("click",async t=>{if(t.target.value==="user_has_browsed"){f.user_has_browsed=!0,f.available_to_browse=!1,f.secondsLeftOnLoan=pr,f.browsingExpired=!1;const e=new Date(new Date().getTime()+v.loanRenewTimeConfig.loanTotalTime*1e3);try{await Je.set({key:`${Ye}-loanTime`,value:e,ttl:Number(v.loanRenewTimeConfig.loanTotalTime)}),await Je.delete(`${Ye}-pageChangedTime`)}catch{}}else t.target.value==="browsingExpired"?(f.user_has_browsed=!0,f.available_to_browse=!1,f.secondsLeftOnLoan=0,f.browsingExpired=!0):t.target.value==="available_to_browse"&&(f.available_to_browse=!0,f.user_has_browsed=!1);setTimeout(()=>{let e={...fe,...f};v.lendingStatus=e},10)})});document.querySelector("#show_warning_modal").addEventListener("click",async()=>{if(!v.lendingStatus.user_has_browsed){const n={...v.lendingStatus,user_has_browsed:!0};v.lendingStatus=n,await v.updateComplete}v.showWarningModal(),v.lendingStatus.user_has_browsed&&v.showWarningModal()});document.querySelector("#show_expired_modal").addEventListener("click",async()=>{if(!v.lendingStatus.user_has_browsed){const n={...v.lendingStatus,user_has_browsed:!0};v.lendingStatus=n,await v.updateComplete}await new Promise(n=>setTimeout(n,5e3)),v.browseHasExpired()});document.querySelector("#resync_timer").addEventListener("click",async n=>{v.lendingStatus.user_has_browsed&&document.querySelector("ia-book-actions").dispatchEvent(new Event("visibilitychange",{detail:{},bubbles:!0,composed:!0})),await new Promise(t=>setTimeout(t,5e3))});document.querySelectorAll(".availableToBorrow input[type=radio]").forEach(n=>{n.addEventListener("click",t=>{t.target.value==="available_to_borrow"?(f.available_to_borrow=!0,f.user_on_waitlist=!1,f.available_to_waitlist=!1,f.user_has_borrowed=!1):t.target.value==="user_can_claim_waitlist"?(f.available_to_borrow=!0,f.user_on_waitlist=!0,f.user_can_claim_waitlist=!0,f.user_has_borrowed=!1,f.available_to_waitlist=!1):t.target.value==="user_on_waitlist"?(f.available_to_borrow=!1,f.user_on_waitlist=!0,f.available_to_waitlist=!1,f.user_has_borrowed=!1):t.target.value==="available_to_waitlist"?(f.available_to_borrow=!1,f.user_on_waitlist=!1,f.available_to_waitlist=!0,f.user_has_borrowed=!1):t.target.value==="user_has_borrowed"&&(f.available_to_borrow=!1,f.user_on_waitlist=!1,f.available_to_waitlist=!1,f.user_has_borrowed=!0);let e={...fe,...f};v.lendingStatus=e})});document.querySelectorAll(".purchase input[type=checkbox]").forEach(n=>{n.addEventListener("click",t=>{t.target.checked?ze="https://www.google.com":ze="",v.bwbPurchaseUrl=ze})});document.querySelector(".pageChangedEvent").addEventListener("click",()=>{document.querySelector("ia-book-actions").dispatchEvent(new CustomEvent("BookReader:userAction",{detail:{},bubbles:!0,composed:!0}))});window.addEventListener("IABookReader:BrowsingHasExpired",()=>{console.log("IABookReader:BrowsingHasExpired EVENT FIRED")}); diff --git a/ghpages/demo/index.html b/ghpages/demo/index.html new file mode 100644 index 0000000..9f7f07a --- /dev/null +++ b/ghpages/demo/index.html @@ -0,0 +1,183 @@ + + + + + + + + + + + + + + + +
    +
    + Dev testing for book title bar + + + + + + +
    + + + + + +
    +
    + +
    + Dev testing for book action bar + + + + + + + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + +
    +
    + controls for browsed book + + + + + + + +
    +
    +
    +
    + + + diff --git a/ghpages/manifest.json b/ghpages/manifest.json new file mode 100644 index 0000000..a5bcd67 --- /dev/null +++ b/ghpages/manifest.json @@ -0,0 +1,7 @@ +{ + "demo/index.html": { + "file": "assets/main.13a904ba.js", + "src": "demo/index.html", + "isEntry": true + } +} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 5eb909d..d048a4f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -47,6 +47,11 @@ dependencies: regenerator-runtime "^0.13.4" +"@esbuild/linux-loong64@0.14.54": + version "0.14.54" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.14.54.tgz#de2a4be678bd4d0d1ffbb86e6de779cde5999028" + integrity sha512-bZBrLAIX1kpWelV0XemxBZllyRmM6vgFQQG2GdNb+r3Fkp0FOh1NJSvekXDs7jq70k4euu1cryLMfU+mTXlEpw== + "@eslint/eslintrc@^0.4.3": version "0.4.3" resolved "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz" @@ -952,11 +957,23 @@ array-includes@^3.1.1: get-intrinsic "^1.1.1" is-string "^1.0.5" +array-union@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" + integrity sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng== + dependencies: + array-uniq "^1.0.1" + array-union@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== +array-uniq@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" + integrity sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q== + array.prototype.flat@^1.2.3: version "1.2.4" resolved "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.2.4.tgz" @@ -976,6 +993,13 @@ astral-regex@^2.0.0: resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz" integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== +async@^2.6.1: + version "2.6.4" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221" + integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA== + dependencies: + lodash "^4.17.14" + async@^2.6.2: version "2.6.3" resolved "https://registry.npmjs.org/async/-/async-2.6.3.tgz" @@ -1081,25 +1105,6 @@ call-bind@^1.0.0, call-bind@^1.0.2: function-bind "^1.1.1" get-intrinsic "^1.0.2" -caller-callsite@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz" - integrity sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ= - dependencies: - callsites "^2.0.0" - -caller-path@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz" - integrity sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ= - dependencies: - caller-callsite "^2.0.0" - -callsites@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz" - integrity sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA= - callsites@^3.0.0: version "3.1.0" resolved "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz" @@ -1193,11 +1198,6 @@ chrome-launcher@^0.13.4: mkdirp "^0.5.3" rimraf "^3.0.2" -ci-info@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz" - integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== - clean-stack@^2.0.0: version "2.2.0" resolved "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz" @@ -1291,11 +1291,21 @@ command-line-usage@^6.1.1: table-layout "^1.0.1" typical "^5.2.0" +commander@^2.18.0: + version "2.20.3" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== + commander@^6.2.0: version "6.2.1" resolved "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz" integrity sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA== +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + integrity sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg== + concat-map@0.0.1: version "0.0.1" resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" @@ -1343,16 +1353,6 @@ core-js-pure@^3.0.0: resolved "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.9.1.tgz" integrity sha512-laz3Zx0avrw9a4QEIdmIblnVuJz8W51leY9iLThatCsFawWxC3sE4guASC78JbCin+DkwMpCdp1AVAuzL/GN7A== -cosmiconfig@^5.0.7: - version "5.2.1" - resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-5.2.1.tgz" - integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== - dependencies: - import-fresh "^2.0.0" - is-directory "^0.3.1" - js-yaml "^3.13.1" - parse-json "^4.0.0" - cosmiconfig@^7.0.0: version "7.0.0" resolved "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.0.0.tgz" @@ -1364,17 +1364,6 @@ cosmiconfig@^7.0.0: path-type "^4.0.0" yaml "^1.10.0" -cross-spawn@^6.0.0: - version "6.0.5" - resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz" - integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== - dependencies: - nice-try "^1.0.4" - path-key "^2.0.1" - semver "^5.5.0" - shebang-command "^1.2.0" - which "^1.2.9" - cross-spawn@^7.0.0, cross-spawn@^7.0.2: version "7.0.3" resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" @@ -1599,6 +1588,11 @@ ee-first@1.1.1: resolved "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz" integrity sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0= +email-addresses@^3.0.1: + version "3.1.0" + resolved "https://registry.yarnpkg.com/email-addresses/-/email-addresses-3.1.0.tgz#cabf7e085cbdb63008a70319a74e6136188812fb" + integrity sha512-k0/r7GrWVL32kZlGwfPNgB2Y/mMXVTq/decgLczm/j34whdaspNrZO8CnXPf1laaHxI6ptUlsnAxN+UAPw+fzg== + emoji-regex@^7.0.1: version "7.0.3" resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz" @@ -1713,17 +1707,144 @@ es6-symbol@^3.1.1, es6-symbol@^3.1.3: d "^1.0.2" ext "^1.7.0" +esbuild-android-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-android-64/-/esbuild-android-64-0.14.54.tgz#505f41832884313bbaffb27704b8bcaa2d8616be" + integrity sha512-Tz2++Aqqz0rJ7kYBfz+iqyE3QMycD4vk7LBRyWaAVFgFtQ/O8EJOnVmTOiDWYZ/uYzB4kvP+bqejYdVKzE5lAQ== + +esbuild-android-arm64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-android-arm64/-/esbuild-android-arm64-0.14.54.tgz#8ce69d7caba49646e009968fe5754a21a9871771" + integrity sha512-F9E+/QDi9sSkLaClO8SOV6etqPd+5DgJje1F9lOWoNncDdOBL2YF59IhsWATSt0TLZbYCf3pNlTHvVV5VfHdvg== + +esbuild-darwin-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-darwin-64/-/esbuild-darwin-64-0.14.54.tgz#24ba67b9a8cb890a3c08d9018f887cc221cdda25" + integrity sha512-jtdKWV3nBviOd5v4hOpkVmpxsBy90CGzebpbO9beiqUYVMBtSc0AL9zGftFuBon7PNDcdvNCEuQqw2x0wP9yug== + +esbuild-darwin-arm64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.54.tgz#3f7cdb78888ee05e488d250a2bdaab1fa671bf73" + integrity sha512-OPafJHD2oUPyvJMrsCvDGkRrVCar5aVyHfWGQzY1dWnzErjrDuSETxwA2HSsyg2jORLY8yBfzc1MIpUkXlctmw== + +esbuild-freebsd-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.54.tgz#09250f997a56ed4650f3e1979c905ffc40bbe94d" + integrity sha512-OKwd4gmwHqOTp4mOGZKe/XUlbDJ4Q9TjX0hMPIDBUWWu/kwhBAudJdBoxnjNf9ocIB6GN6CPowYpR/hRCbSYAg== + +esbuild-freebsd-arm64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.54.tgz#bafb46ed04fc5f97cbdb016d86947a79579f8e48" + integrity sha512-sFwueGr7OvIFiQT6WeG0jRLjkjdqWWSrfbVwZp8iMP+8UHEHRBvlaxL6IuKNDwAozNUmbb8nIMXa7oAOARGs1Q== + +esbuild-linux-32@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-32/-/esbuild-linux-32-0.14.54.tgz#e2a8c4a8efdc355405325033fcebeb941f781fe5" + integrity sha512-1ZuY+JDI//WmklKlBgJnglpUL1owm2OX+8E1syCD6UAxcMM/XoWd76OHSjl/0MR0LisSAXDqgjT3uJqT67O3qw== + +esbuild-linux-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-64/-/esbuild-linux-64-0.14.54.tgz#de5fdba1c95666cf72369f52b40b03be71226652" + integrity sha512-EgjAgH5HwTbtNsTqQOXWApBaPVdDn7XcK+/PtJwZLT1UmpLoznPd8c5CxqsH2dQK3j05YsB3L17T8vE7cp4cCg== + +esbuild-linux-arm64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.54.tgz#dae4cd42ae9787468b6a5c158da4c84e83b0ce8b" + integrity sha512-WL71L+0Rwv+Gv/HTmxTEmpv0UgmxYa5ftZILVi2QmZBgX3q7+tDeOQNqGtdXSdsL8TQi1vIaVFHUPDe0O0kdig== + +esbuild-linux-arm@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-arm/-/esbuild-linux-arm-0.14.54.tgz#a2c1dff6d0f21dbe8fc6998a122675533ddfcd59" + integrity sha512-qqz/SjemQhVMTnvcLGoLOdFpCYbz4v4fUo+TfsWG+1aOu70/80RV6bgNpR2JCrppV2moUQkww+6bWxXRL9YMGw== + +esbuild-linux-mips64le@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.54.tgz#d9918e9e4cb972f8d6dae8e8655bf9ee131eda34" + integrity sha512-qTHGQB8D1etd0u1+sB6p0ikLKRVuCWhYQhAHRPkO+OF3I/iSlTKNNS0Lh2Oc0g0UFGguaFZZiPJdJey3AGpAlw== + +esbuild-linux-ppc64le@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.54.tgz#3f9a0f6d41073fb1a640680845c7de52995f137e" + integrity sha512-j3OMlzHiqwZBDPRCDFKcx595XVfOfOnv68Ax3U4UKZ3MTYQB5Yz3X1mn5GnodEVYzhtZgxEBidLWeIs8FDSfrQ== + +esbuild-linux-riscv64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.54.tgz#618853c028178a61837bc799d2013d4695e451c8" + integrity sha512-y7Vt7Wl9dkOGZjxQZnDAqqn+XOqFD7IMWiewY5SPlNlzMX39ocPQlOaoxvT4FllA5viyV26/QzHtvTjVNOxHZg== + +esbuild-linux-s390x@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.54.tgz#d1885c4c5a76bbb5a0fe182e2c8c60eb9e29f2a6" + integrity sha512-zaHpW9dziAsi7lRcyV4r8dhfG1qBidQWUXweUjnw+lliChJqQr+6XD71K41oEIC3Mx1KStovEmlzm+MkGZHnHA== + +esbuild-netbsd-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.54.tgz#69ae917a2ff241b7df1dbf22baf04bd330349e81" + integrity sha512-PR01lmIMnfJTgeU9VJTDY9ZerDWVFIUzAtJuDHwwceppW7cQWjBBqP48NdeRtoP04/AtO9a7w3viI+PIDr6d+w== + +esbuild-openbsd-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.54.tgz#db4c8495287a350a6790de22edea247a57c5d47b" + integrity sha512-Qyk7ikT2o7Wu76UsvvDS5q0amJvmRzDyVlL0qf5VLsLchjCa1+IAvd8kTBgUxD7VBUUVgItLkk609ZHUc1oCaw== + +esbuild-sunos-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-sunos-64/-/esbuild-sunos-64-0.14.54.tgz#54287ee3da73d3844b721c21bc80c1dc7e1bf7da" + integrity sha512-28GZ24KmMSeKi5ueWzMcco6EBHStL3B6ubM7M51RmPwXQGLe0teBGJocmWhgwccA1GeFXqxzILIxXpHbl9Q/Kw== + +esbuild-windows-32@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-windows-32/-/esbuild-windows-32-0.14.54.tgz#f8aaf9a5667630b40f0fb3aa37bf01bbd340ce31" + integrity sha512-T+rdZW19ql9MjS7pixmZYVObd9G7kcaZo+sETqNH4RCkuuYSuv9AGHUVnPoP9hhuE1WM1ZimHz1CIBHBboLU7w== + +esbuild-windows-64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-windows-64/-/esbuild-windows-64-0.14.54.tgz#bf54b51bd3e9b0f1886ffdb224a4176031ea0af4" + integrity sha512-AoHTRBUuYwXtZhjXZbA1pGfTo8cJo3vZIcWGLiUcTNgHpJJMC1rVA44ZereBHMJtotyN71S8Qw0npiCIkW96cQ== + +esbuild-windows-arm64@0.14.54: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.54.tgz#937d15675a15e4b0e4fafdbaa3a01a776a2be982" + integrity sha512-M0kuUvXhot1zOISQGXwWn6YtS+Y/1RT9WrVIOywZnJHo3jCDyewAc79aKNQWFCQm+xNHVTq9h8dZKvygoXQQRg== + esbuild@^0.12.21: version "0.12.29" resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.12.29.tgz" integrity sha512-w/XuoBCSwepyiZtIRsKsetiLDUVGPVw1E/R3VTFSecIy8UR7Cq3SOtwKHJMFoVqqVG36aGkzh4e8BvpO1Fdc7g== +esbuild@^0.14.27: + version "0.14.54" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.14.54.tgz#8b44dcf2b0f1a66fc22459943dccf477535e9aa2" + integrity sha512-Cy9llcy8DvET5uznocPyqL3BFRrFXSVqbgpMJ9Wz8oVjZlh/zUSNbPRbov0VX7VxN2JH1Oa0uNxZ7eLRb62pJA== + optionalDependencies: + "@esbuild/linux-loong64" "0.14.54" + esbuild-android-64 "0.14.54" + esbuild-android-arm64 "0.14.54" + esbuild-darwin-64 "0.14.54" + esbuild-darwin-arm64 "0.14.54" + esbuild-freebsd-64 "0.14.54" + esbuild-freebsd-arm64 "0.14.54" + esbuild-linux-32 "0.14.54" + esbuild-linux-64 "0.14.54" + esbuild-linux-arm "0.14.54" + esbuild-linux-arm64 "0.14.54" + esbuild-linux-mips64le "0.14.54" + esbuild-linux-ppc64le "0.14.54" + esbuild-linux-riscv64 "0.14.54" + esbuild-linux-s390x "0.14.54" + esbuild-netbsd-64 "0.14.54" + esbuild-openbsd-64 "0.14.54" + esbuild-sunos-64 "0.14.54" + esbuild-windows-32 "0.14.54" + esbuild-windows-64 "0.14.54" + esbuild-windows-arm64 "0.14.54" + escape-html@^1.0.3: version "1.0.3" resolved "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz" integrity sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg= -escape-string-regexp@1.0.5, escape-string-regexp@^1.0.5: +escape-string-regexp@1.0.5, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: version "1.0.5" resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= @@ -1985,19 +2106,6 @@ event-emitter@^0.3.5: d "1" es5-ext "~0.10.14" -execa@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz" - integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== - dependencies: - cross-spawn "^6.0.0" - get-stream "^4.0.0" - is-stream "^1.1.0" - npm-run-path "^2.0.0" - p-finally "^1.0.0" - signal-exit "^3.0.0" - strip-eof "^1.0.0" - execa@^4.1.0: version "4.1.0" resolved "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz" @@ -2086,6 +2194,20 @@ file-entry-cache@^6.0.1: dependencies: flat-cache "^3.0.4" +filename-reserved-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/filename-reserved-regex/-/filename-reserved-regex-2.0.0.tgz#abf73dfab735d045440abfea2d91f389ebbfa229" + integrity sha512-lc1bnsSr4L4Bdif8Xb/qrtokGbq5zlsms/CYH8PP+WtCkGNF65DPiQY8vG3SakEdRn8Dlnm+gW/qWKKjS5sZzQ== + +filenamify@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/filenamify/-/filenamify-4.3.0.tgz#62391cb58f02b09971c9d4f9d63b3cf9aba03106" + integrity sha512-hcFKyUG57yWGAzu1CMt/dPzYZuv+jAJUT85bL8mrXvNe6hWj6yEHEc4EdcgiA6Z3oi1/9wXJdZPXF2dZNgwgOg== + dependencies: + filename-reserved-regex "^2.0.0" + strip-outer "^1.0.1" + trim-repeated "^1.0.0" + fill-range@^7.0.1: version "7.0.1" resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" @@ -2093,6 +2215,15 @@ fill-range@^7.0.1: dependencies: to-regex-range "^5.0.1" +find-cache-dir@^3.3.1: + version "3.3.2" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.2.tgz#b30c5b6eff0730731aea9bbd9dbecbd80256d64b" + integrity sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig== + dependencies: + commondir "^1.0.1" + make-dir "^3.0.2" + pkg-dir "^4.1.0" + find-replace@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz" @@ -2160,6 +2291,15 @@ fs-constants@^1.0.0: resolved "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz" integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== +fs-extra@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + fs.realpath@^1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" @@ -2180,6 +2320,11 @@ function-bind@^1.1.1: resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + functional-red-black-tree@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz" @@ -2214,13 +2359,6 @@ get-stdin@^6.0.0: resolved "https://registry.npmjs.org/get-stdin/-/get-stdin-6.0.0.tgz" integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== -get-stream@^4.0.0: - version "4.1.0" - resolved "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz" - integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== - dependencies: - pump "^3.0.0" - get-stream@^5.0.0, get-stream@^5.1.0: version "5.2.0" resolved "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz" @@ -2233,6 +2371,19 @@ get-stream@^6.0.0: resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.0.tgz" integrity sha512-A1B3Bh1UmL0bidM/YX2NsCOTnGJePL9rO/M+Mw3m9f2gUpfokS0hi5Eah0WSUEWZdZhIZtMjkIYS7mDfOqNHbg== +gh-pages@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/gh-pages/-/gh-pages-4.0.0.tgz#bd7447bab7eef008f677ac8cc4f6049ab978f4a6" + integrity sha512-p8S0T3aGJc68MtwOcZusul5qPSNZCalap3NWbhRUZYu1YOdp+EjZ+4kPmRM8h3NNRdqw00yuevRjlkuSzCn7iQ== + dependencies: + async "^2.6.1" + commander "^2.18.0" + email-addresses "^3.0.1" + filenamify "^4.3.0" + find-cache-dir "^3.3.1" + fs-extra "^8.1.0" + globby "^6.1.0" + glob-parent@^5.1.0, glob-parent@^5.1.2, glob-parent@~5.1.0: version "5.1.2" resolved "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz" @@ -2252,6 +2403,18 @@ glob@7.1.3, glob@^7.1.3: once "^1.3.0" path-is-absolute "^1.0.0" +glob@^7.0.3: + version "7.2.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" + globals@^13.6.0, globals@^13.9.0: version "13.11.0" resolved "https://registry.npmjs.org/globals/-/globals-13.11.0.tgz" @@ -2271,11 +2434,27 @@ globby@^11.0.1: merge2 "^1.3.0" slash "^3.0.0" +globby@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" + integrity sha512-KVbFv2TQtbzCoxAnfD6JcHZTYCzyliEaaeM/gH8qQdkKr5s0OP9scEgvdcngyk7AVdY6YVW/TJHd+lQ/Df3Daw== + dependencies: + array-union "^1.0.1" + glob "^7.0.3" + object-assign "^4.0.1" + pify "^2.0.0" + pinkie-promise "^2.0.0" + graceful-fs@^4.1.2: version "4.2.6" resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz" integrity sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ== +graceful-fs@^4.1.6, graceful-fs@^4.2.0: + version "4.2.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" + integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== + growl@1.10.5: version "1.10.5" resolved "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz" @@ -2308,6 +2487,13 @@ has@^1.0.3: dependencies: function-bind "^1.1.1" +hasown@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + he@1.2.0: version "1.2.0" resolved "https://registry.npmjs.org/he/-/he-1.2.0.tgz" @@ -2386,21 +2572,10 @@ human-signals@^1.1.1: resolved "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz" integrity sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw== -husky@^1.0.0: - version "1.3.1" - resolved "https://registry.npmjs.org/husky/-/husky-1.3.1.tgz" - integrity sha512-86U6sVVVf4b5NYSZ0yvv88dRgBSSXXmHaiq5pP4KDj5JVzdwKgBjEtUPOm8hcoytezFwbU+7gotXNhpHdystlg== - dependencies: - cosmiconfig "^5.0.7" - execa "^1.0.0" - find-up "^3.0.0" - get-stdin "^6.0.0" - is-ci "^2.0.0" - pkg-dir "^3.0.0" - please-upgrade-node "^3.1.1" - read-pkg "^4.0.1" - run-node "^1.0.0" - slash "^2.0.0" +husky@^7.0.0: + version "7.0.4" + resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.4.tgz#242048245dc49c8fb1bf0cc7cfb98dd722531535" + integrity sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ== iconv-lite@0.4.24: version "0.4.24" @@ -2431,14 +2606,6 @@ ignore@^5.1.4: resolved "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz" integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw== -import-fresh@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-2.0.0.tgz" - integrity sha1-2BNVwVYS04bGH53dOSLUMEgipUY= - dependencies: - caller-path "^2.0.0" - resolve-from "^3.0.0" - import-fresh@^3.0.0, import-fresh@^3.2.1: version "3.3.0" resolved "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz" @@ -2532,12 +2699,12 @@ is-callable@^1.1.4, is-callable@^1.2.3: resolved "https://registry.npmjs.org/is-callable/-/is-callable-1.2.3.tgz" integrity sha512-J1DcMe8UYTBSrKezuIUTUwjXsho29693unXM2YhJUTR2txK/eG47bvNa/wipPFmZFgr/N6f1GA66dv0mEyTIyQ== -is-ci@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz" - integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== +is-core-module@^2.13.0: + version "2.14.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.14.0.tgz#43b8ef9f46a6a08888db67b1ffd4ec9e3dfd59d1" + integrity sha512-a5dFJih5ZLYlRtDc0dZWP7RiKr6xIKzmn/oAYCDvdLThadVgyJwlaoQPmRtMSpz+rk0OGAgIu+TcM9HUF0fk1A== dependencies: - ci-info "^2.0.0" + hasown "^2.0.2" is-core-module@^2.2.0: version "2.2.0" @@ -2551,11 +2718,6 @@ is-date-object@^1.0.1: resolved "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz" integrity sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== -is-directory@^0.3.1: - version "0.3.1" - resolved "https://registry.npmjs.org/is-directory/-/is-directory-0.3.1.tgz" - integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= - is-docker@^2.0.0, is-docker@^2.1.1: version "2.1.1" resolved "https://registry.npmjs.org/is-docker/-/is-docker-2.1.1.tgz" @@ -2631,11 +2793,6 @@ is-regexp@^1.0.0: resolved "https://registry.npmjs.org/is-regexp/-/is-regexp-1.0.0.tgz" integrity sha1-/S2INUXEa6xaYz57mgnof6LLUGk= -is-stream@^1.1.0: - version "1.1.0" - resolved "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz" - integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= - is-stream@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz" @@ -2735,11 +2892,6 @@ js-yaml@^3.13.1: argparse "^1.0.7" esprima "^4.0.0" -json-parse-better-errors@^1.0.1: - version "1.0.2" - resolved "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz" - integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== - json-parse-even-better-errors@^2.3.0: version "2.3.1" resolved "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz" @@ -2767,6 +2919,13 @@ json5@^1.0.1: dependencies: minimist "^1.2.0" +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== + optionalDependencies: + graceful-fs "^4.1.6" + just-extend@^4.0.2: version "4.2.1" resolved "https://registry.npmjs.org/just-extend/-/just-extend-4.2.1.tgz" @@ -3085,7 +3244,7 @@ lru-cache@^6.0.0: dependencies: yallist "^4.0.0" -make-dir@^3.0.0: +make-dir@^3.0.0, make-dir@^3.0.2: version "3.1.0" resolved "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz" integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== @@ -3144,6 +3303,13 @@ minimatch@3.0.4, minimatch@^3.0.4: dependencies: brace-expansion "^1.1.7" +minimatch@^3.1.1: + version "3.1.2" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + minimist@^1.2.0, minimist@^1.2.5: version "1.2.5" resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz" @@ -3222,6 +3388,11 @@ nanoid@^3.1.25: resolved "https://registry.npmjs.org/nanoid/-/nanoid-3.3.2.tgz" integrity sha512-CuHBogktKwpm5g2sRgv83jEy2ijFzBwMoYA60orPDR7ynsLijJDqgsi4RDGj3OJpy3Ieb+LYwiRmIOGyytgITA== +nanoid@^3.3.7: + version "3.3.7" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8" + integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g== + natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" @@ -3237,11 +3408,6 @@ next-tick@^1.1.0: resolved "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz" integrity sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ== -nice-try@^1.0.4: - version "1.0.5" - resolved "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz" - integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== - nise@^5.1.1: version "5.1.1" resolved "https://registry.npmjs.org/nise/-/nise-5.1.1.tgz" @@ -3283,13 +3449,6 @@ normalize-path@^3.0.0, normalize-path@~3.0.0: resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== -npm-run-path@^2.0.0: - version "2.0.2" - resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz" - integrity sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8= - dependencies: - path-key "^2.0.0" - npm-run-path@^4.0.0: version "4.0.1" resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz" @@ -3297,6 +3456,11 @@ npm-run-path@^4.0.0: dependencies: path-key "^3.0.0" +object-assign@^4.0.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== + object-inspect@^1.9.0: version "1.9.0" resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.9.0.tgz" @@ -3411,11 +3575,6 @@ optionator@^0.9.1: type-check "^0.4.0" word-wrap "^1.2.3" -p-finally@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz" - integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4= - p-limit@^1.1.0: version "1.3.0" resolved "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz" @@ -3482,14 +3641,6 @@ parse-json@^2.2.0: dependencies: error-ex "^1.2.0" -parse-json@^4.0.0: - version "4.0.0" - resolved "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz" - integrity sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA= - dependencies: - error-ex "^1.3.1" - json-parse-better-errors "^1.0.1" - parse-json@^5.0.0: version "5.2.0" resolved "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz" @@ -3542,17 +3693,12 @@ path-is-absolute@1.0.1, path-is-absolute@^1.0.0: resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= -path-key@^2.0.0, path-key@^2.0.1: - version "2.0.1" - resolved "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz" - integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= - path-key@^3.0.0, path-key@^3.1.0: version "3.1.1" resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== -path-parse@^1.0.6: +path-parse@^1.0.6, path-parse@^1.0.7: version "1.0.7" resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== @@ -3601,10 +3747,17 @@ pify@^2.0.0: resolved "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz" integrity sha1-7RQaasBDqEnqWISY59yosVMw6Qw= -pify@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz" - integrity sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY= +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + integrity sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw== + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + integrity sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg== pkg-dir@^2.0.0: version "2.0.0" @@ -3613,14 +3766,7 @@ pkg-dir@^2.0.0: dependencies: find-up "^2.1.0" -pkg-dir@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz" - integrity sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw== - dependencies: - find-up "^3.0.0" - -pkg-dir@^4.2.0: +pkg-dir@^4.1.0, pkg-dir@^4.2.0: version "4.2.0" resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz" integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== @@ -3641,7 +3787,7 @@ playwright@^1.14.0: optionalDependencies: fsevents "2.3.2" -please-upgrade-node@^3.1.1, please-upgrade-node@^3.2.0: +please-upgrade-node@^3.2.0: version "3.2.0" resolved "https://registry.npmjs.org/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz" integrity sha512-gQR3WpIgNIKwBMVLkpMUeR3e1/E1y42bqDQZfql+kDeXd8COYfM8PQA4X6y7a8u9Ua9FHmsrrmirW2vHs45hWg== @@ -3657,6 +3803,15 @@ portfinder@^1.0.28: debug "^3.1.1" mkdirp "^0.5.5" +postcss@^8.4.13: + version "8.4.38" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.38.tgz#b387d533baf2054288e337066d81c6bee9db9e0e" + integrity sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A== + dependencies: + nanoid "^3.3.7" + picocolors "^1.0.0" + source-map-js "^1.2.0" + prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz" @@ -3745,15 +3900,6 @@ read-pkg@^2.0.0: normalize-package-data "^2.3.2" path-type "^2.0.0" -read-pkg@^4.0.1: - version "4.0.1" - resolved "https://registry.npmjs.org/read-pkg/-/read-pkg-4.0.1.tgz" - integrity sha1-ljYlN48+HE1IyFhytabsfV0JMjc= - dependencies: - normalize-package-data "^2.3.2" - parse-json "^4.0.0" - pify "^3.0.0" - readable-stream@^3.1.1, readable-stream@^3.4.0: version "3.6.0" resolved "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz" @@ -3810,11 +3956,6 @@ requireindex@~1.1.0: resolved "https://registry.npmjs.org/requireindex/-/requireindex-1.1.0.tgz" integrity sha1-5UBLgVV+91225JxacgBIk/4D4WI= -resolve-from@^3.0.0: - version "3.0.0" - resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz" - integrity sha1-six699nWiBvItuZTM17rywoYh0g= - resolve-from@^4.0.0: version "4.0.0" resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz" @@ -3836,6 +3977,15 @@ resolve@^1.10.0, resolve@^1.13.1, resolve@^1.17.0, resolve@^1.19.0: is-core-module "^2.2.0" path-parse "^1.0.6" +resolve@^1.22.0: + version "1.22.8" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" + integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== + dependencies: + is-core-module "^2.13.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + restore-cursor@^3.1.0: version "3.1.0" resolved "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz" @@ -3856,6 +4006,13 @@ rimraf@^3.0.2: dependencies: glob "^7.1.3" +"rollup@>=2.59.0 <2.78.0": + version "2.77.3" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.77.3.tgz#8f00418d3a2740036e15deb653bed1a90ee0cc12" + integrity sha512-/qxNTG7FbmefJWoeeYJFbHehJ2HNWnjkAFRKzWN/45eNBBF/r8lo992CwcJXEzyVxs5FmfId+vTSTQDb+bxA+g== + optionalDependencies: + fsevents "~2.3.2" + rollup@^2.35.1: version "2.70.1" resolved "https://registry.npmjs.org/rollup/-/rollup-2.70.1.tgz" @@ -3863,11 +4020,6 @@ rollup@^2.35.1: optionalDependencies: fsevents "~2.3.2" -run-node@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/run-node/-/run-node-1.0.0.tgz" - integrity sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A== - run-parallel@^1.1.9: version "1.2.0" resolved "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz" @@ -3907,7 +4059,7 @@ semver-compare@^1.0.0: resolved "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz" integrity sha1-De4hahyUGrN+nvsXiPavxf9VN/w= -"semver@2 || 3 || 4 || 5", semver@^5.5.0, semver@^5.7.0: +"semver@2 || 3 || 4 || 5", semver@^5.7.0: version "5.7.1" resolved "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== @@ -3951,13 +4103,6 @@ setprototypeof@1.2.0: resolved "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz" integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== -shebang-command@^1.2.0: - version "1.2.0" - resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz" - integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo= - dependencies: - shebang-regex "^1.0.0" - shebang-command@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" @@ -3965,17 +4110,12 @@ shebang-command@^2.0.0: dependencies: shebang-regex "^3.0.0" -shebang-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz" - integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= - shebang-regex@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -signal-exit@^3.0.0, signal-exit@^3.0.2: +signal-exit@^3.0.2: version "3.0.3" resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz" integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA== @@ -3997,11 +4137,6 @@ sinon@^13.0.2: nise "^5.1.1" supports-color "^7.2.0" -slash@^2.0.0: - version "2.0.0" - resolved "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz" - integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== - slash@^3.0.0: version "3.0.0" resolved "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz" @@ -4025,6 +4160,11 @@ slice-ansi@^4.0.0: astral-regex "^2.0.0" is-fullwidth-code-point "^3.0.0" +source-map-js@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.0.tgz#16b809c162517b5b8c3e7dcd315a2a5c2612b2af" + integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg== + source-map@^0.7.3: version "0.7.3" resolved "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz" @@ -4155,11 +4295,6 @@ strip-bom@^3.0.0: resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz" integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= -strip-eof@^1.0.0: - version "1.0.0" - resolved "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz" - integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= - strip-final-newline@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz" @@ -4175,6 +4310,13 @@ strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== +strip-outer@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/strip-outer/-/strip-outer-1.0.1.tgz#b2fd2abf6604b9d1e6013057195df836b8a9d631" + integrity sha512-k55yxKHwaXnpYGsOzg4Vl8+tDrWylxDEpknGjhTiZB8dFRU5rTo9CAzeycivxV3s+zlTKwrs6WxMxR95n26kwg== + dependencies: + escape-string-regexp "^1.0.2" + supports-color@6.0.0: version "6.0.0" resolved "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz" @@ -4196,6 +4338,11 @@ supports-color@^7.1.0, supports-color@^7.2.0: dependencies: has-flag "^4.0.0" +supports-preserve-symlinks-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" + integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== + table-layout@^1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/table-layout/-/table-layout-1.0.1.tgz" @@ -4278,6 +4425,13 @@ tr46@~0.0.3: resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o= +trim-repeated@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/trim-repeated/-/trim-repeated-1.0.0.tgz#e3646a2ea4e891312bf7eace6cfb05380bc01c21" + integrity sha512-pkonvlKk8/ZuR0D5tLW8ljt5I8kmxp2XKymhepUeOdCEfKpZaktSArkLHZt76OB1ZvO9bssUsDty4SWhLvZpLg== + dependencies: + escape-string-regexp "^1.0.2" + tsconfig-paths@^3.9.0: version "3.9.0" resolved "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz" @@ -4366,6 +4520,11 @@ unbzip2-stream@^1.3.3: buffer "^5.2.1" through "^2.3.8" +universalify@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + unpipe@1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz" @@ -4424,6 +4583,18 @@ vary@^1.1.2: resolved "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz" integrity sha1-IpnwLG3tMNSllhsLn3RSShj2NPw= +vite@^2.9.9: + version "2.9.18" + resolved "https://registry.yarnpkg.com/vite/-/vite-2.9.18.tgz#74e2a83b29da81e602dac4c293312cc575f091c7" + integrity sha512-sAOqI5wNM9QvSEE70W3UGMdT8cyEn0+PmJMTFvTB8wB0YbYUWw3gUbY62AOyrXosGieF2htmeLATvNxpv/zNyQ== + dependencies: + esbuild "^0.14.27" + postcss "^8.4.13" + resolve "^1.22.0" + rollup ">=2.59.0 <2.78.0" + optionalDependencies: + fsevents "~2.3.2" + webidl-conversions@^3.0.0: version "3.0.1" resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" @@ -4467,7 +4638,7 @@ which-module@^2.0.0: resolved "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz" integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= -which@1.3.1, which@^1.2.9: +which@1.3.1: version "1.3.1" resolved "https://registry.npmjs.org/which/-/which-1.3.1.tgz" integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==