@nuralyui/carousel 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bundle.js +1 -161
  2. package/package.json +1 -1
package/bundle.js CHANGED
@@ -1,161 +1 @@
1
- /**
2
- * @license
3
- * Copyright 2019 Google LLC
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- */
6
- const t=window,i=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),e=new WeakMap;class o{constructor(t,i,e){if(this._$cssResult$=!0,e!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const s=this.t;if(i&&void 0===t){const i=void 0!==s&&1===s.length;i&&(t=e.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&e.set(s,t))}return t}toString(){return this.cssText}}const n=i?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let i="";for(const s of t.cssRules)i+=s.cssText;return(t=>new o("string"==typeof t?t:t+"",void 0,s))(i)})(t):t
7
- /**
8
- * @license
9
- * Copyright 2017 Google LLC
10
- * SPDX-License-Identifier: BSD-3-Clause
11
- */;var r;const l=window,h=l.trustedTypes,c=h?h.emptyScript:"",u=l.reactiveElementPolyfillSupport,d={toAttribute(t,i){switch(i){case Boolean:t=t?c:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,i){let s=t;switch(i){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},a=(t,i)=>i!==t&&(i==i||t==t),v={attribute:!0,type:String,converter:d,reflect:!1,hasChanged:a},f="finalized";class p extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var i;this.finalize(),(null!==(i=this.h)&&void 0!==i?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((i,s)=>{const e=this._$Ep(s,i);void 0!==e&&(this._$Ev.set(e,s),t.push(e))})),t}static createProperty(t,i=v){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,e=this.getPropertyDescriptor(t,s,i);void 0!==e&&Object.defineProperty(this.prototype,t,e)}}static getPropertyDescriptor(t,i,s){return{get(){return this[i]},set(e){const o=this[t];this[i]=e,this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}static finalize(){if(this.hasOwnProperty(f))return!1;this[f]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,i=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of i)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)i.unshift(n(t))}else void 0!==t&&i.push(n(t));return i}static _$Ep(t,i){const s=i.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var i,s;(null!==(i=this._$ES)&&void 0!==i?i:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var i;null===(i=this._$ES)||void 0===i||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])}))}createRenderRoot(){var s;const e=null!==(s=this.shadowRoot)&&void 0!==s?s:this.attachShadow(this.constructor.shadowRootOptions);return((s,e)=>{i?s.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((i=>{const e=document.createElement("style"),o=t.litNonce;void 0!==o&&e.setAttribute("nonce",o),e.textContent=i.cssText,s.appendChild(e)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostConnected)||void 0===i?void 0:i.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostDisconnected)||void 0===i?void 0:i.call(t)}))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$EO(t,i,s=v){var e;const o=this.constructor._$Ep(t,s);if(void 0!==o&&!0===s.reflect){const n=(void 0!==(null===(e=s.converter)||void 0===e?void 0:e.toAttribute)?s.converter:d).toAttribute(i,s.type);this._$El=t,null==n?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,i){var s;const e=this.constructor,o=e._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=e.getPropertyOptions(o),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:d;this._$El=o,this[o]=n.fromAttribute(i,t.type),this._$El=null}}requestUpdate(t,i,s){let e=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||a)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):e=!1),!this.isUpdatePending&&e&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,i)=>this[i]=t)),this._$Ei=void 0);let i=!1;const s=this._$AL;try{i=this.shouldUpdate(s),i?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var i;return null===(i=t.hostUpdate)||void 0===i?void 0:i.call(t)})),this.update(s)):this._$Ek()}catch(t){throw i=!1,this._$Ek(),t}i&&this._$AE(s)}willUpdate(t){}_$AE(t){var i;null===(i=this._$ES)||void 0===i||i.forEach((t=>{var i;return null===(i=t.hostUpdated)||void 0===i?void 0:i.call(t)})),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){void 0!==this._$EC&&(this._$EC.forEach(((t,i)=>this._$EO(i,this[i],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
12
- /**
13
- * @license
14
- * Copyright 2017 Google LLC
15
- * SPDX-License-Identifier: BSD-3-Clause
16
- */
17
- var y;p[f]=!0,p.elementProperties=new Map,p.elementStyles=[],p.shadowRootOptions={mode:"open"},null==u||u({ReactiveElement:p}),(null!==(r=l.reactiveElementVersions)&&void 0!==r?r:l.reactiveElementVersions=[]).push("1.6.3");const g=window,b=g.trustedTypes,m=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",w=`lit$${(Math.random()+"").slice(9)}$`,A="?"+w,S=`<${A}>`,_=document,k=()=>_.createComment(""),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,C=t=>E(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),U="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,M=/>/g,T=RegExp(`>|${U}(?:([^\\s"'>=/]+)(${U}*=${U}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),O=/'/g,I=/"/g,R=/^(?:script|style|textarea|title)$/i,z=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),L=new WeakMap,D=_.createTreeWalker(_,129,null,!1);function H(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==m?m.createHTML(i):i}const Z=(t,i)=>{const s=t.length-1,e=[];let o,n=2===i?"<svg>":"",r=j;for(let i=0;i<s;i++){const s=t[i];let l,h,c=-1,u=0;for(;u<s.length&&(r.lastIndex=u,h=r.exec(s),null!==h);)u=r.lastIndex,r===j?"!--"===h[1]?r=N:void 0!==h[1]?r=M:void 0!==h[2]?(R.test(h[2])&&(o=RegExp("</"+h[2],"g")),r=T):void 0!==h[3]&&(r=T):r===T?">"===h[0]?(r=null!=o?o:j,c=-1):void 0===h[1]?c=-2:(c=r.lastIndex-h[2].length,l=h[1],r=void 0===h[3]?T:'"'===h[3]?I:O):r===I||r===O?r=T:r===N||r===M?r=j:(r=T,o=void 0);const d=r===T&&t[i+1].startsWith("/>")?" ":"";n+=r===j?s+S:c>=0?(e.push(l),s.slice(0,c)+$+s.slice(c)+w+d):s+w+(-2===c?(e.push(void 0),i):d)}return[H(t,n+(t[s]||"<?>")+(2===i?"</svg>":"")),e]};class B{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let o=0,n=0;const r=t.length-1,l=this.parts,[h,c]=Z(t,i);if(this.el=B.createElement(h,s),D.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(e=D.nextNode())&&l.length<r;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith($)||i.startsWith(w)){const s=c[n++];if(t.push(i),void 0!==s){const t=e.getAttribute(s.toLowerCase()+$).split(w),i=/([.?@])?(.*)/.exec(s);l.push({type:1,index:o,name:i[2],strings:t,ctor:"."===i[1]?q:"?"===i[1]?G:"@"===i[1]?Q:V})}else l.push({type:6,index:o})}for(const i of t)e.removeAttribute(i)}if(R.test(e.tagName)){const t=e.textContent.split(w),i=t.length-1;if(i>0){e.textContent=b?b.emptyScript:"";for(let s=0;s<i;s++)e.append(t[s],k()),D.nextNode(),l.push({type:2,index:++o});e.append(t[i],k())}}}else if(8===e.nodeType)if(e.data===A)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=e.data.indexOf(w,t+1));)l.push({type:7,index:o}),t+=w.length-1}o++}}static createElement(t,i){const s=_.createElement("template");return s.innerHTML=t,s}}function W(t,i,s=t,e){var o,n,r,l;if(i===z)return i;let h=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const c=x(i)?void 0:i._$litDirective$;return(null==h?void 0:h.constructor)!==c&&(null===(n=null==h?void 0:h._$AO)||void 0===n||n.call(h,!1),void 0===c?h=void 0:(h=new c(t),h._$AT(t,s,e)),void 0!==e?(null!==(r=(l=s)._$Co)&&void 0!==r?r:l._$Co=[])[e]=h:s._$Cl=h),void 0!==h&&(i=W(t,h._$AS(t,i.values),h,e)),i}class J{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:_).importNode(s,!0);D.currentNode=o;let n=D.nextNode(),r=0,l=0,h=e[0];for(;void 0!==h;){if(r===h.index){let i;2===h.type?i=new K(n,n.nextSibling,this,t):1===h.type?i=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(i=new X(n,this,t)),this._$AV.push(i),h=e[++l]}r!==(null==h?void 0:h.index)&&(n=D.nextNode(),r++)}return D.currentNode=_,o}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class K{constructor(t,i,s,e){var o;this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(o=null==e?void 0:e.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=W(this,t,i),x(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==z&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):C(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==P&&x(this._$AH)?this._$AA.nextSibling.data=t:this.$(_.createTextNode(t)),this._$AH=t}g(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=B.createElement(H(e.h,e.h[0]),this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.v(s);else{const t=new J(o,this),i=t.u(this.options);t.v(s),this.$(i),this._$AH=t}}_$AC(t){let i=L.get(t.strings);return void 0===i&&L.set(t.strings,i=new B(t)),i}T(t){E(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new K(this.k(k()),this.k(k()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class V{constructor(t,i,s,e,o){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=P}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=W(this,t,i,0),n=!x(t)||t!==this._$AH&&t!==z,n&&(this._$AH=t);else{const e=t;let r,l;for(t=o[0],r=0;r<o.length-1;r++)l=W(this,e[s+r],i,r),l===z&&(l=this._$AH[r]),n||(n=!x(l)||l!==this._$AH[r]),l===P?t=P:t!==P&&(t+=(null!=l?l:"")+o[r+1]),this._$AH[r]=l}n&&!e&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}const F=b?b.emptyScript:"";class G extends V{constructor(){super(...arguments),this.type=4}j(t){t&&t!==P?this.element.setAttribute(this.name,F):this.element.removeAttribute(this.name)}}class Q extends V{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=W(this,t,i,0))&&void 0!==s?s:P)===z)return;const e=this._$AH,o=t===P&&e!==P||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==P&&(e===P||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){W(this,t)}}const Y={O:$,P:w,A,C:1,M:Z,L:J,R:C,D:W,I:K,V,H:G,N:Q,U:q,F:X},tt=g.litHtmlPolyfillSupport;
18
- /**
19
- * @license
20
- * Copyright 2017 Google LLC
21
- * SPDX-License-Identifier: BSD-3-Clause
22
- */
23
- var it;null==tt||tt(B,K),(null!==(y=g.litHtmlVersions)&&void 0!==y?y:g.litHtmlVersions=[]).push("2.8.0");const st=window,et=st.trustedTypes,ot=et?et.createPolicy("lit-html",{createHTML:t=>t}):void 0,nt="$lit$",rt=`lit$${(Math.random()+"").slice(9)}$`,lt="?"+rt,ht=`<${lt}>`,ct=document,ut=()=>ct.createComment(""),dt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,at=Array.isArray,vt="[ \t\n\f\r]",ft=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pt=/-->/g,yt=/>/g,gt=RegExp(`>|${vt}(?:([^\\s"'>=/]+)(${vt}*=${vt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),bt=/'/g,mt=/"/g,$t=/^(?:script|style|textarea|title)$/i,wt=(t=>(i,...s)=>({_$litType$:t,strings:i,values:s}))(1),At=Symbol.for("lit-noChange"),St=Symbol.for("lit-nothing"),_t=new WeakMap,kt=ct.createTreeWalker(ct,129,null,!1);function xt(t,i){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ot?ot.createHTML(i):i}const Et=(t,i)=>{const s=t.length-1,e=[];let o,n=2===i?"<svg>":"",r=ft;for(let i=0;i<s;i++){const s=t[i];let l,h,c=-1,u=0;for(;u<s.length&&(r.lastIndex=u,h=r.exec(s),null!==h);)u=r.lastIndex,r===ft?"!--"===h[1]?r=pt:void 0!==h[1]?r=yt:void 0!==h[2]?($t.test(h[2])&&(o=RegExp("</"+h[2],"g")),r=gt):void 0!==h[3]&&(r=gt):r===gt?">"===h[0]?(r=null!=o?o:ft,c=-1):void 0===h[1]?c=-2:(c=r.lastIndex-h[2].length,l=h[1],r=void 0===h[3]?gt:'"'===h[3]?mt:bt):r===mt||r===bt?r=gt:r===pt||r===yt?r=ft:(r=gt,o=void 0);const d=r===gt&&t[i+1].startsWith("/>")?" ":"";n+=r===ft?s+ht:c>=0?(e.push(l),s.slice(0,c)+nt+s.slice(c)+rt+d):s+rt+(-2===c?(e.push(void 0),i):d)}return[xt(t,n+(t[s]||"<?>")+(2===i?"</svg>":"")),e]};class Ct{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let o=0,n=0;const r=t.length-1,l=this.parts,[h,c]=Et(t,i);if(this.el=Ct.createElement(h,s),kt.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(e=kt.nextNode())&&l.length<r;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith(nt)||i.startsWith(rt)){const s=c[n++];if(t.push(i),void 0!==s){const t=e.getAttribute(s.toLowerCase()+nt).split(rt),i=/([.?@])?(.*)/.exec(s);l.push({type:1,index:o,name:i[2],strings:t,ctor:"."===i[1]?Tt:"?"===i[1]?It:"@"===i[1]?Rt:Mt})}else l.push({type:6,index:o})}for(const i of t)e.removeAttribute(i)}if($t.test(e.tagName)){const t=e.textContent.split(rt),i=t.length-1;if(i>0){e.textContent=et?et.emptyScript:"";for(let s=0;s<i;s++)e.append(t[s],ut()),kt.nextNode(),l.push({type:2,index:++o});e.append(t[i],ut())}}}else if(8===e.nodeType)if(e.data===lt)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=e.data.indexOf(rt,t+1));)l.push({type:7,index:o}),t+=rt.length-1}o++}}static createElement(t,i){const s=ct.createElement("template");return s.innerHTML=t,s}}function Ut(t,i,s=t,e){var o,n,r,l;if(i===At)return i;let h=void 0!==e?null===(o=s._$Co)||void 0===o?void 0:o[e]:s._$Cl;const c=dt(i)?void 0:i._$litDirective$;return(null==h?void 0:h.constructor)!==c&&(null===(n=null==h?void 0:h._$AO)||void 0===n||n.call(h,!1),void 0===c?h=void 0:(h=new c(t),h._$AT(t,s,e)),void 0!==e?(null!==(r=(l=s)._$Co)&&void 0!==r?r:l._$Co=[])[e]=h:s._$Cl=h),void 0!==h&&(i=Ut(t,h._$AS(t,i.values),h,e)),i}class jt{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:s},parts:e}=this._$AD,o=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:ct).importNode(s,!0);kt.currentNode=o;let n=kt.nextNode(),r=0,l=0,h=e[0];for(;void 0!==h;){if(r===h.index){let i;2===h.type?i=new Nt(n,n.nextSibling,this,t):1===h.type?i=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(i=new zt(n,this,t)),this._$AV.push(i),h=e[++l]}r!==(null==h?void 0:h.index)&&(n=kt.nextNode(),r++)}return kt.currentNode=ct,o}v(t){let i=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}}class Nt{constructor(t,i,s,e){var o;this.type=2,this._$AH=St,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cp=null===(o=null==e?void 0:e.isConnected)||void 0===o||o}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Ut(this,t,i),dt(t)?t===St||null==t||""===t?(this._$AH!==St&&this._$AR(),this._$AH=St):t!==this._$AH&&t!==At&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>at(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==St&&dt(this._$AH)?this._$AA.nextSibling.data=t:this.$(ct.createTextNode(t)),this._$AH=t}g(t){var i;const{values:s,_$litType$:e}=t,o="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=Ct.createElement(xt(e.h,e.h[0]),this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===o)this._$AH.v(s);else{const t=new jt(o,this),i=t.u(this.options);t.v(s),this.$(i),this._$AH=t}}_$AC(t){let i=_t.get(t.strings);return void 0===i&&_t.set(t.strings,i=new Ct(t)),i}T(t){at(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new Nt(this.k(ut()),this.k(ut()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Mt{constructor(t,i,s,e,o){this.type=1,this._$AH=St,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=St}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(void 0===o)t=Ut(this,t,i,0),n=!dt(t)||t!==this._$AH&&t!==At,n&&(this._$AH=t);else{const e=t;let r,l;for(t=o[0],r=0;r<o.length-1;r++)l=Ut(this,e[s+r],i,r),l===At&&(l=this._$AH[r]),n||(n=!dt(l)||l!==this._$AH[r]),l===St?t=St:t!==St&&(t+=(null!=l?l:"")+o[r+1]),this._$AH[r]=l}n&&!e&&this.j(t)}j(t){t===St?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Tt extends Mt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===St?void 0:t}}const Ot=et?et.emptyScript:"";class It extends Mt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==St?this.element.setAttribute(this.name,Ot):this.element.removeAttribute(this.name)}}class Rt extends Mt{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){var s;if((t=null!==(s=Ut(this,t,i,0))&&void 0!==s?s:St)===At)return;const e=this._$AH,o=t===St&&e!==St||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,n=t!==St&&(e===St||o);o&&this.element.removeEventListener(this.name,this,e),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class zt{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){Ut(this,t)}}const Pt=st.litHtmlPolyfillSupport;null==Pt||Pt(Ct,Nt),(null!==(it=st.litHtmlVersions)&&void 0!==it?it:st.litHtmlVersions=[]).push("2.8.0");
24
- /**
25
- * @license
26
- * Copyright 2017 Google LLC
27
- * SPDX-License-Identifier: BSD-3-Clause
28
- */
29
- var Lt,Dt;class Ht extends p{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;const s=super.createRenderRoot();return null!==(t=(i=this.renderOptions).renderBefore)&&void 0!==t||(i.renderBefore=s.firstChild),s}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,i,s)=>{var e,o;const n=null!==(e=null==s?void 0:s.renderBefore)&&void 0!==e?e:i;let r=n._$litPart$;if(void 0===r){const t=null!==(o=null==s?void 0:s.renderBefore)&&void 0!==o?o:null;n._$litPart$=r=new Nt(i.insertBefore(ut(),t),t,void 0,null!=s?s:{})}return r._$AI(t),r})(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return At}}Ht.finalized=!0,Ht._$litElement$=!0,null===(Lt=globalThis.litElementHydrateSupport)||void 0===Lt||Lt.call(globalThis,{LitElement:Ht});const Zt=globalThis.litElementPolyfillSupport;null==Zt||Zt({LitElement:Ht}),(null!==(Dt=globalThis.litElementVersions)&&void 0!==Dt?Dt:globalThis.litElementVersions=[]).push("3.3.3");const Bt=((t,...i)=>{const e=1===t.length?t[0]:i.reduce(((i,s,e)=>i+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[e+1]),t[0]);return new o(e,t,s)})`
30
- :host {
31
- position: relative;
32
- }
33
-
34
- .carousel {
35
- width: 100%;
36
- display: flex;
37
- justify-content: center;
38
- flex-direction: column;
39
- align-items: center;
40
- }
41
-
42
- ::slotted(.carousel-item-hidden) {
43
- position: absolute;
44
- opacity: 0;
45
- }
46
- ::slotted(:not(.carousel-item-hidden)) {
47
- opacity: 1;
48
- transition: opacity 0.5s ease;
49
- }
50
-
51
- .controls {
52
- position: absolute;
53
- width: 100%;
54
- top: 50%;
55
- display: flex;
56
- justify-content: space-between;
57
- }
58
- .button-control {
59
- --nuraly-button-ghost-text-color: grey;
60
- --nuraly-button-ghost-active-border-color: transparent;
61
- --nuraly-button-ghost-hover-background-color: transparent;
62
- --nuraly-button-ghost-hover-border-color: transparent;
63
- }
64
-
65
- .dot {
66
- height: 8px;
67
- width: 8px;
68
- margin: 0 5px;
69
- background-color: var(--carousel-dot-background-color);
70
- display: inline-block;
71
- cursor: pointer;
72
- opacity: 0.4;
73
- }
74
-
75
- .dot.active {
76
- background-color: var(--carousel-dot-active-background-color);
77
- opacity: 0.9;
78
- }
79
-
80
- :host {
81
- --carousel-dot-background-color: #bebebe;
82
- --carousel-dot-active-background-color: gray;
83
- }
84
- @media (prefers-color-scheme: dark) {
85
- :host {
86
- --carousel-dot-background-color: gray;
87
- --carousel-dot-active-background-color: lightgray;
88
- .button-control {
89
- --nuraly-button-ghost-text-color: #ffffff;
90
- }
91
- }
92
- }
93
- `,Wt=Bt,Jt=(t,i)=>"method"===i.kind&&i.descriptor&&!("value"in i.descriptor)?{...i,finisher(s){s.createProperty(i.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:i.key,initializer(){"function"==typeof i.initializer&&(this[i.key]=i.initializer.call(this))},finisher(s){s.createProperty(i.key,t)}},Kt=(t,i,s)=>{i.constructor.createProperty(s,t)};function Vt(t){return(i,s)=>void 0!==s?Kt(t,i,s):Jt(t,i)
94
- /**
95
- * @license
96
- * Copyright 2017 Google LLC
97
- * SPDX-License-Identifier: BSD-3-Clause
98
- */}
99
- /**
100
- * @license
101
- * Copyright 2021 Google LLC
102
- * SPDX-License-Identifier: BSD-3-Clause
103
- */
104
- var qt;const Ft=null!=(null===(qt=window.HTMLSlotElement)||void 0===qt?void 0:qt.prototype.assignedElements)?(t,i)=>t.assignedElements(i):(t,i)=>t.assignedNodes(i).filter((t=>t.nodeType===Node.ELEMENT_NODE));
105
- /**
106
- * @license
107
- * Copyright 2017 Google LLC
108
- * SPDX-License-Identifier: BSD-3-Clause
109
- */
110
- const Gt=2;class Qt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,s){this._$Ct=t,this._$AM=i,this._$Ci=s}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
111
- /**
112
- * @license
113
- * Copyright 2020 Google LLC
114
- * SPDX-License-Identifier: BSD-3-Clause
115
- */const{I:Xt}=Y,Yt=()=>document.createComment(""),ti=(t,i,s)=>{var e;const o=t._$AA.parentNode,n=void 0===i?t._$AB:i._$AA;if(void 0===s){const i=o.insertBefore(Yt(),n),e=o.insertBefore(Yt(),n);s=new Xt(i,e,t,t.options)}else{const i=s._$AB.nextSibling,r=s._$AM,l=r!==t;if(l){let i;null===(e=s._$AQ)||void 0===e||e.call(s,t),s._$AM=t,void 0!==s._$AP&&(i=t._$AU)!==r._$AU&&s._$AP(i)}if(i!==n||l){let t=s._$AA;for(;t!==i;){const i=t.nextSibling;o.insertBefore(t,n),t=i}}}return s},ii=(t,i,s=t)=>(t._$AI(i,s),t),si={},ei=(t,i=si)=>t._$AH=i,oi=t=>{var i;null===(i=t._$AP)||void 0===i||i.call(t,!1,!0);let s=t._$AA;const e=t._$AB.nextSibling;for(;s!==e;){const t=s.nextSibling;s.remove(),s=t}},ni=(t,i,s)=>{const e=new Map;for(let o=i;o<=s;o++)e.set(t[o],o);return e},ri=(t=>(...i)=>({_$litDirective$:t,values:i}))(class extends Qt{constructor(t){if(super(t),t.type!==Gt)throw Error("repeat() can only be used in text expressions")}ct(t,i,s){let e;void 0===s?s=i:void 0!==i&&(e=i);const o=[],n=[];let r=0;for(const i of t)o[r]=e?e(i,r):r,n[r]=s(i,r),r++;return{values:n,keys:o}}render(t,i,s){return this.ct(t,i,s).values}update(t,[i,s,e]){var o;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.ct(i,s,e);if(!Array.isArray(n))return this.ut=l,r;const h=null!==(o=this.ut)&&void 0!==o?o:this.ut=[],c=[];let u,d,a=0,v=n.length-1,f=0,p=r.length-1;for(;a<=v&&f<=p;)if(null===n[a])a++;else if(null===n[v])v--;else if(h[a]===l[f])c[f]=ii(n[a],r[f]),a++,f++;else if(h[v]===l[p])c[p]=ii(n[v],r[p]),v--,p--;else if(h[a]===l[p])c[p]=ii(n[a],r[p]),ti(t,c[p+1],n[a]),a++,p--;else if(h[v]===l[f])c[f]=ii(n[v],r[f]),ti(t,n[a],n[v]),v--,f++;else if(void 0===u&&(u=ni(l,f,p),d=ni(h,a,v)),u.has(h[a]))if(u.has(h[v])){const i=d.get(l[f]),s=void 0!==i?n[i]:null;if(null===s){const i=ti(t,n[a]);ii(i,r[f]),c[f]=i}else c[f]=ii(s,r[f]),ti(t,n[a],s),n[i]=null;f++}else oi(n[v]),v--;else oi(n[a]),a++;for(;f<=p;){const i=ti(t,c[p+1]);ii(i,r[f]),c[f++]=i}for(;a<=v;){const t=n[a++];null!==t&&oi(t)}return this.ut=l,ei(t,c),z}});
116
- /**
117
- * @license
118
- * Copyright 2017 Google LLC
119
- * SPDX-License-Identifier: BSD-3-Clause
120
- */var li=function(t,i,s,e){for(var o,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e,l=t.length-1;l>=0;l--)(o=t[l])&&(r=(n<3?o(r):n>3?o(i,s,r):o(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};let hi=class extends Ht{constructor(){super(...arguments),this.currentIndex=0,this.autoPlay=!1,this.autoplaySpeed=3e3,this.intervalId=null}firstUpdated(){this.displayedElements=this.slideElements.map(((t,i)=>(i!=this.currentIndex&&t.classList.add("carousel-item-hidden"),t))),this.autoPlay&&this.startAutoPlay()}startAutoPlay(){this.intervalId=window.setInterval((()=>{this.next()}),this.autoplaySpeed)}stopAutoPlay(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}next(){this.displayedElements[this.currentIndex].classList.add("carousel-item-hidden"),this.displayedElements.length-1==this.currentIndex?this.currentIndex=0:this.currentIndex++,this.displayedElements[this.currentIndex].classList.remove("carousel-item-hidden")}prev(){this.displayedElements[this.currentIndex].classList.add("carousel-item-hidden"),0==this.currentIndex?this.currentIndex=this.displayedElements.length-1:this.currentIndex--,this.displayedElements[this.currentIndex].classList.remove("carousel-item-hidden")}goTo(t){this.displayedElements[this.currentIndex].classList.add("carousel-item-hidden"),this.currentIndex=t,this.displayedElements[this.currentIndex].classList.remove("carousel-item-hidden")}disconnectedCallback(){super.disconnectedCallback(),this.stopAutoPlay()}render(){var t;return wt`
121
- <div class="carousel">
122
- <slot></slot>
123
- ${this.autoPlay?St:wt`
124
- <div class="controls">
125
- <nr-button
126
- @click="${this.prev}"
127
- type="ghost"
128
- size="small"
129
- class="button-control"
130
- .icon="${["chevron-left"]}"
131
- ></nr-button>
132
- <nr-button
133
- @click="${this.next}"
134
- type="ghost"
135
- size="small"
136
- class="button-control"
137
- .icon="${["chevron-right"]}"
138
- ></nr-button>
139
- </div>
140
- `}
141
-
142
- <div class="dots">
143
- ${ri(Array.from({length:null===(t=this.displayedElements)||void 0===t?void 0:t.length}),((t,i)=>wt`
144
- <span
145
- class="dot ${i===this.currentIndex?"active":""}"
146
- @click="${()=>this.goTo(i)}"
147
- ></span>
148
- `))}
149
- </div
150
- </div>
151
- `}};hi.styles=Wt,li([Vt({type:Number})],hi.prototype,"currentIndex",void 0),li([Vt({type:Boolean})],hi.prototype,"autoPlay",void 0),li([Vt({type:Number})],hi.prototype,"autoplaySpeed",void 0),li([function(t){const{slot:i,selector:s}=null!=t?t:{};return(({finisher:t,descriptor:i})=>(s,e)=>{var o;if(void 0===e){const e=null!==(o=s.originalKey)&&void 0!==o?o:s.key,n=null!=i?{kind:"method",placement:"prototype",key:e,descriptor:i(s.key)}:{...s,key:e};return null!=t&&(n.finisher=function(i){t(i,e)}),n}{const o=s.constructor;void 0!==i&&Object.defineProperty(s,e,i(e)),null==t||t(o,e)}})({descriptor:e=>({get(){var e;const o="slot"+(i?`[name=${i}]`:":not([name])"),n=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(o),r=null!=n?Ft(n,t):[];return s?r.filter((t=>t.matches(s))):r},enumerable:!0,configurable:!0})})}()],hi.prototype,"slideElements",void 0),li([function(t){return Vt({...t,state:!0})}
152
- /**
153
- * @license
154
- * Copyright 2017 Google LLC
155
- * SPDX-License-Identifier: BSD-3-Clause
156
- */()],hi.prototype,"displayedElements",void 0),hi=li([(t=>i=>"function"==typeof i?((t,i)=>(customElements.define(t,i),i))(t,i):((t,i)=>{const{kind:s,elements:e}=i;return{kind:s,elements:e,finisher(i){customElements.define(t,i)}}})(t,i)
157
- /**
158
- * @license
159
- * Copyright 2017 Google LLC
160
- * SPDX-License-Identifier: BSD-3-Clause
161
- */)("hy-carousel")],hi);export{hi as CarouselComponent};
1
+ import{css as t,LitElement as o,html as i,nothing as s}from"lit";import{property as e,queryAssignedElements as r,state as l,customElement as a}from"lit/decorators.js";import{repeat as n}from"lit/directives/repeat.js";const c=t`:host{position:relative}.carousel{width:100%;display:flex;justify-content:center;flex-direction:column;align-items:center}::slotted(.carousel-item-hidden){position:absolute;opacity:0}::slotted(:not(.carousel-item-hidden)){opacity:1;transition:opacity .5s ease}.controls{position:absolute;width:100%;top:50%;display:flex;justify-content:space-between}.button-control{--nuraly-button-ghost-text-color:grey;--nuraly-button-ghost-active-border-color:transparent;--nuraly-button-ghost-hover-background-color:transparent;--nuraly-button-ghost-hover-border-color:transparent}.dot{height:8px;width:8px;margin:0 5px;background-color:var(--carousel-dot-background-color);display:inline-block;cursor:pointer;opacity:.4}.dot.active{background-color:var(--carousel-dot-active-background-color);opacity:.9}:host{--carousel-dot-background-color:#bebebe;--carousel-dot-active-background-color:gray}@media (prefers-color-scheme:dark){:host{--carousel-dot-background-color:gray;--carousel-dot-active-background-color:lightgray}}`;var d=function(t,o,i,s){for(var e,r=arguments.length,l=r<3?o:null===s?s=Object.getOwnPropertyDescriptor(o,i):s,a=t.length-1;a>=0;a--)(e=t[a])&&(l=(r<3?e(l):r>3?e(o,i,l):e(o,i))||l);return r>3&&l&&Object.defineProperty(o,i,l),l};let h=class extends o{constructor(){super(...arguments),this.currentIndex=0,this.autoPlay=!1,this.autoplaySpeed=3e3,this.intervalId=null}firstUpdated(){this.displayedElements=this.slideElements.map(((t,o)=>(o!=this.currentIndex&&t.classList.add("carousel-item-hidden"),t))),this.autoPlay&&this.startAutoPlay()}startAutoPlay(){this.intervalId=window.setInterval((()=>{this.next()}),this.autoplaySpeed)}stopAutoPlay(){this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null)}next(){this.displayedElements[this.currentIndex].classList.add("carousel-item-hidden"),this.displayedElements.length-1==this.currentIndex?this.currentIndex=0:this.currentIndex++,this.displayedElements[this.currentIndex].classList.remove("carousel-item-hidden")}prev(){this.displayedElements[this.currentIndex].classList.add("carousel-item-hidden"),0==this.currentIndex?this.currentIndex=this.displayedElements.length-1:this.currentIndex--,this.displayedElements[this.currentIndex].classList.remove("carousel-item-hidden")}goTo(t){this.displayedElements[this.currentIndex].classList.add("carousel-item-hidden"),this.currentIndex=t,this.displayedElements[this.currentIndex].classList.remove("carousel-item-hidden")}disconnectedCallback(){super.disconnectedCallback(),this.stopAutoPlay()}render(){var t;return i`<div class="carousel"><slot></slot>${this.autoPlay?s:i`<div class="controls"><nr-button @click="${this.prev}" type="ghost" size="small" class="button-control" .icon="${["chevron-left"]}"></nr-button><nr-button @click="${this.next}" type="ghost" size="small" class="button-control" .icon="${["chevron-right"]}"></nr-button></div>`}<div class="dots">${n(Array.from({length:null===(t=this.displayedElements)||void 0===t?void 0:t.length}),((t,o)=>i`<span class="dot ${o===this.currentIndex?"active":""}" @click="${()=>this.goTo(o)}"></span>`))}</div></div>`}};h.styles=c,d([e({type:Number})],h.prototype,"currentIndex",void 0),d([e({type:Boolean})],h.prototype,"autoPlay",void 0),d([e({type:Number})],h.prototype,"autoplaySpeed",void 0),d([r()],h.prototype,"slideElements",void 0),d([l()],h.prototype,"displayedElements",void 0),h=d([a("hy-carousel")],h);export{h as CarouselComponent};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuralyui/carousel",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",