@lottiefiles/lottie-player 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@
9
9
  \f\r](?:([^\\s"'>=/]+)([
10
10
  \f\r]*=[
11
11
  \f\r]*(?:[^
12
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ue=/'/g,ye=/"/g,Se=/^(?:script|style|textarea|title)$/i,xe=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Tt=xe(1),gt=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),ge=new WeakMap,Pt=Ct.createTreeWalker(Ct,129,null,!1),Ge=(t,e)=>{let r=t.length-1,i=[],s,a=e===2?"<svg>":"",o=wt;for(let u=0;u<r;u++){let m=t[u],l,f,y=-1,c=0;for(;c<m.length&&(o.lastIndex=c,f=o.exec(m),f!==null);)c=o.lastIndex,o===wt?f[1]==="!--"?o=me:f[1]!==void 0?o=de:f[2]!==void 0?(Se.test(f[2])&&(s=RegExp("</"+f[2],"g")),o=yt):f[3]!==void 0&&(o=yt):o===yt?f[0]===">"?(o=s??wt,y=-1):f[1]===void 0?y=-2:(y=o.lastIndex-f[2].length,l=f[1],o=f[3]===void 0?yt:f[3]==='"'?ye:ue):o===ye||o===ue?o=yt:o===me||o===de?o=wt:(o=yt,s=void 0);let p=o===yt&&t[u+1].startsWith("/>")?" ":"";a+=o===wt?m+ze:y>=0?(i.push(l),m.slice(0,y)+"$lit$"+m.slice(y)+ft+p):m+ft+(y===-2?(i.push(void 0),u):p);}let n=a+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return [fe!==void 0?fe.createHTML(n):n,i]},vt=class{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let a=0,o=0,n=e.length-1,u=this.parts,[m,l]=Ge(e,r);if(this.el=vt.createElement(m,i),Pt.currentNode=this.el.content,r===2){let f=this.el.content,y=f.firstChild;y.remove(),f.append(...y.childNodes);}for(;(s=Pt.nextNode())!==null&&u.length<n;){if(s.nodeType===1){if(s.hasAttributes()){let f=[];for(let y of s.getAttributeNames())if(y.endsWith("$lit$")||y.startsWith(ft)){let c=l[o++];if(f.push(y),c!==void 0){let p=s.getAttribute(c.toLowerCase()+"$lit$").split(ft),d=/([.?@])?(.*)/.exec(c);u.push({type:1,index:a,name:d[2],strings:p,ctor:d[1]==="."?Jt:d[1]==="?"?Qt:d[1]==="@"?te:Mt});}else u.push({type:6,index:a});}for(let y of f)s.removeAttribute(y);}if(Se.test(s.tagName)){let f=s.textContent.split(ft),y=f.length-1;if(y>0){s.textContent=_t?_t.emptyScript:"";for(let c=0;c<y;c++)s.append(f[c],Dt()),Pt.nextNode(),u.push({type:2,index:++a});s.append(f[y],Dt());}}}else if(s.nodeType===8)if(s.data===be)u.push({type:2,index:a});else {let f=-1;for(;(f=s.data.indexOf(ft,f+1))!==-1;)u.push({type:7,index:a}),f+=ft.length-1;}a++;}}static createElement(e,r){let i=Ct.createElement("template");return i.innerHTML=e,i}};function At(t,e,r=t,i){var s,a,o,n;if(e===gt)return e;let u=i!==void 0?(s=r._$Co)===null||s===void 0?void 0:s[i]:r._$Cl,m=Ft(e)?void 0:e._$litDirective$;return u?.constructor!==m&&((a=u?._$AO)===null||a===void 0||a.call(u,!1),m===void 0?u=void 0:(u=new m(t),u._$AT(t,r,i)),i!==void 0?((o=(n=r)._$Co)!==null&&o!==void 0?o:n._$Co=[])[i]=u:r._$Cl=u),u!==void 0&&(e=At(t,u._$AS(t,e.values),u,i)),e}var Kt=class{constructor(e,r){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=r;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var r;let{el:{content:i},parts:s}=this._$AD,a=((r=e?.creationScope)!==null&&r!==void 0?r:Ct).importNode(i,!0);Pt.currentNode=a;let o=Pt.nextNode(),n=0,u=0,m=s[0];for(;m!==void 0;){if(n===m.index){let l;m.type===2?l=new bt(o,o.nextSibling,this,e):m.type===1?l=new m.ctor(o,m.name,m.strings,this,e):m.type===6&&(l=new ee(o,this,e)),this.u.push(l),m=s[++u];}n!==m?.index&&(o=Pt.nextNode(),n++);}return a}p(e){let r=0;for(let i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++;}},bt=class{constructor(e,r,i,s){var a;this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=s,this._$Cm=(a=s?.isConnected)===null||a===void 0||a;}get _$AU(){var e,r;return (r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=At(this,e,r),Ft(e)?e===X||e==null||e===""?(this._$AH!==X&&this._$AR(),this._$AH=X):e!==this._$AH&&e!==gt&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Oe(e)?this.k(e):this.g(e);}O(e,r=this._$AB){return this._$AA.parentNode.insertBefore(e,r)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e));}g(e){this._$AH!==X&&Ft(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ct.createTextNode(e)),this._$AH=e;}$(e){var r;let{values:i,_$litType$:s}=e,a=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=vt.createElement(s.h,this.options)),s);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===a)this._$AH.p(i);else {let o=new Kt(a,this),n=o.v(this.options);o.p(i),this.T(n),this._$AH=o;}}_$AC(e){let r=ge.get(e.strings);return r===void 0&&ge.set(e.strings,r=new vt(e)),r}k(e){Ee(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let a of e)s===r.length?r.push(i=new bt(this.O(Dt()),this.O(Dt()),this,this.options)):i=r[s],i._$AI(a),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s);}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);e&&e!==this._$AB;){let s=e.nextSibling;e.remove(),e=s;}}setConnected(e){var r;this._$AM===void 0&&(this._$Cm=e,(r=this._$AP)===null||r===void 0||r.call(this,e));}},Mt=class{constructor(e,r,i,s,a){this.type=1,this._$AH=X,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=X;}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,s){let a=this.strings,o=!1;if(a===void 0)e=At(this,e,r,0),o=!Ft(e)||e!==this._$AH&&e!==gt,o&&(this._$AH=e);else {let n=e,u,m;for(e=a[0],u=0;u<a.length-1;u++)m=At(this,n[i+u],r,u),m===gt&&(m=this._$AH[u]),o||(o=!Ft(m)||m!==this._$AH[u]),m===X?e=X:e!==X&&(e+=(m??"")+a[u+1]),this._$AH[u]=m;}o&&!s&&this.j(e);}j(e){e===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"");}},Jt=class extends Mt{constructor(){super(...arguments),this.type=3;}j(e){this.element[this.name]=e===X?void 0:e;}},Ne=_t?_t.emptyScript:"",Qt=class extends Mt{constructor(){super(...arguments),this.type=4;}j(e){e&&e!==X?this.element.setAttribute(this.name,Ne):this.element.removeAttribute(this.name);}},te=class extends Mt{constructor(e,r,i,s,a){super(e,r,i,s,a),this.type=5;}_$AI(e,r=this){var i;if((e=(i=At(this,e,r,0))!==null&&i!==void 0?i:X)===gt)return;let s=this._$AH,a=e===X&&s!==X||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,o=e!==X&&(s===X||a);a&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,e),this._$AH=e;}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e);}},ee=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i;}get _$AU(){return this._$AM._$AU}_$AI(e){At(this,e);}};var ve=Nt.litHtmlPolyfillSupport;ve?.(vt,bt),((Zt=Nt.litHtmlVersions)!==null&&Zt!==void 0?Zt:Nt.litHtmlVersions=[]).push("2.4.0");var Pe=(t,e,r)=>{var i,s;let a=(i=r?.renderBefore)!==null&&i!==void 0?i:e,o=a._$litPart$;if(o===void 0){let n=(s=r?.renderBefore)!==null&&s!==void 0?s:null;a._$litPart$=o=new bt(e.insertBefore(Dt(),n),n,void 0,r??{});}return o._$AI(t),o};var re,ie;var mt=class extends ht{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e,r;let i=super.createRenderRoot();return (e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Pe(r,this.renderRoot,this.renderOptions);}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0);}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1);}render(){return gt}};mt.finalized=!0,mt._$litElement$=!0,(re=globalThis.litElementHydrateSupport)===null||re===void 0||re.call(globalThis,{LitElement:mt});var _e=globalThis.litElementPolyfillSupport;_e?.({LitElement:mt});((ie=globalThis.litElementVersions)!==null&&ie!==void 0?ie:globalThis.litElementVersions=[]).push("3.2.2");var Ce=t=>e=>typeof e=="function"?((r,i)=>(customElements.define(r,i),i))(t,e):((r,i)=>{let{kind:s,elements:a}=i;return {kind:s,elements:a,finisher(o){customElements.define(r,o);}}})(t,e);var $e=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t);}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this));},finisher(r){r.createProperty(e.key,t);}};function j(t){return (e,r)=>r!==void 0?((i,s,a)=>{s.constructor.createProperty(a,i);})(t,e,r):$e(t,e)}function Ae(t){return j({...t,state:!0})}var Et=({finisher:t,descriptor:e})=>(r,i)=>{var s;if(i===void 0){let a=(s=r.originalKey)!==null&&s!==void 0?s:r.key,o=e!=null?{kind:"method",placement:"prototype",key:a,descriptor:e(r.key)}:{...r,key:a};return t!=null&&(o.finisher=function(n){t(n,a);}),o}{let a=r.constructor;e!==void 0&&Object.defineProperty(r,i,e(i)),t?.(a,i);}};function Me(t,e){return Et({descriptor:r=>{let i={get(){var s,a;return (a=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&a!==void 0?a:null},enumerable:!0,configurable:!0};if(e){let s=typeof r=="symbol"?Symbol():"__"+r;i.get=function(){var a,o;return this[s]===void 0&&(this[s]=(o=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(t))!==null&&o!==void 0?o:null),this[s]};}return i}})}var se;((se=window.HTMLSlotElement)===null||se===void 0?void 0:se.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);var $t=Ve(Te());var ae={name:"@lottiefiles/lottie-player",version:"2.0.0",description:"Lottie animation and Telegram Sticker player web components.",repository:"https://github.com/LottieFiles/lottie-player.git",homepage:"https://lottiefiles.com/web-player",bugs:"https://github.com/LottieFiles/lottie-player/issues",author:"Jawish Hameed <jawish@lottiefiles.com>",license:"MIT",main:"dist/lottie-player.js",module:"dist/lottie-player.mjs",types:"dist/lottie-player.d.ts",files:["dist/"],keywords:["lottie","animation","lottiefiles","web component","component","lit-element","player","telegram sticker","tgs"],scripts:{build:"tsup",changelog:"changeset add","changelog:check":"changeset status --since=main",dev:"tsup --watch",format:"pnpm run format:prettier","format:prettier":"prettier --loglevel=warn --no-editorconfig --write .","format:remark":"remark . --output --ignore-path .remarkignore --silently-ignore",lint:"eslint . --ext .ts,.tsx,.js","lint:fix":"eslint . --ext .ts,.tsx,.js --fix",open:"cypress open",preinstall:"npx only-allow pnpm",release:"pnpm release:version && pnpm release:publish","release:publish":"pnpm build && changeset publish","release:tag":"changeset tag","release:version":"changeset version",test:"cypress run --component","type-check":"turbo run type-check"},dependencies:{"@changesets/cli":"^2.26.1","@types/pako":"^1.0.4",lit:"^2.4.1","lottie-web":"^5.12.0",pako:"^2.1.0","resize-observer-polyfill":"^1.5.1"},devDependencies:{"@commitlint/cli":"^16.3.0","@commitlint/config-conventional":"^16.2.4","@lottiefiles/eslint-plugin":"^3.0.0","@lottiefiles/prettier-config":"^3.0.0",cypress:"^12.13.0","cypress-ct-lit":"^0.3.2","cypress-real-events":"^1.7.4",eslint:"^7.32.0","eslint-plugin-only-warn":"^1.0.3",husky:"^8.0.2","lint-staged":"^12.5.0",prettier:"^2.8.0","ts-node":"^10.9.1",tsup:"^6.7.0",turbo:"^1.10.2",typescript:"^4.9.3","unicode-canonical-property-names-ecmascript":"^2.0.0",vite:"^4.3.9"},publishConfig:{access:"public"},browserslist:["> 3%"],husky:{hooks:{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{css,scss,md}":["prettier --write"],"src/**/*.{js,jsx,ts,tsx,json}":["eslint . --ext .ts,.tsx,.js --fix"]},nyc:{extends:"@istanbuljs/nyc-config-typescript",all:!0}};var ke=qt`
12
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ue=/'/g,ye=/"/g,Se=/^(?:script|style|textarea|title)$/i,xe=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Tt=xe(1),gt=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),ge=new WeakMap,Pt=Ct.createTreeWalker(Ct,129,null,!1),Ge=(t,e)=>{let r=t.length-1,i=[],s,a=e===2?"<svg>":"",o=wt;for(let u=0;u<r;u++){let m=t[u],l,f,y=-1,c=0;for(;c<m.length&&(o.lastIndex=c,f=o.exec(m),f!==null);)c=o.lastIndex,o===wt?f[1]==="!--"?o=me:f[1]!==void 0?o=de:f[2]!==void 0?(Se.test(f[2])&&(s=RegExp("</"+f[2],"g")),o=yt):f[3]!==void 0&&(o=yt):o===yt?f[0]===">"?(o=s??wt,y=-1):f[1]===void 0?y=-2:(y=o.lastIndex-f[2].length,l=f[1],o=f[3]===void 0?yt:f[3]==='"'?ye:ue):o===ye||o===ue?o=yt:o===me||o===de?o=wt:(o=yt,s=void 0);let p=o===yt&&t[u+1].startsWith("/>")?" ":"";a+=o===wt?m+ze:y>=0?(i.push(l),m.slice(0,y)+"$lit$"+m.slice(y)+ft+p):m+ft+(y===-2?(i.push(void 0),u):p);}let n=a+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return [fe!==void 0?fe.createHTML(n):n,i]},vt=class{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let a=0,o=0,n=e.length-1,u=this.parts,[m,l]=Ge(e,r);if(this.el=vt.createElement(m,i),Pt.currentNode=this.el.content,r===2){let f=this.el.content,y=f.firstChild;y.remove(),f.append(...y.childNodes);}for(;(s=Pt.nextNode())!==null&&u.length<n;){if(s.nodeType===1){if(s.hasAttributes()){let f=[];for(let y of s.getAttributeNames())if(y.endsWith("$lit$")||y.startsWith(ft)){let c=l[o++];if(f.push(y),c!==void 0){let p=s.getAttribute(c.toLowerCase()+"$lit$").split(ft),d=/([.?@])?(.*)/.exec(c);u.push({type:1,index:a,name:d[2],strings:p,ctor:d[1]==="."?Jt:d[1]==="?"?Qt:d[1]==="@"?te:Mt});}else u.push({type:6,index:a});}for(let y of f)s.removeAttribute(y);}if(Se.test(s.tagName)){let f=s.textContent.split(ft),y=f.length-1;if(y>0){s.textContent=_t?_t.emptyScript:"";for(let c=0;c<y;c++)s.append(f[c],Dt()),Pt.nextNode(),u.push({type:2,index:++a});s.append(f[y],Dt());}}}else if(s.nodeType===8)if(s.data===be)u.push({type:2,index:a});else {let f=-1;for(;(f=s.data.indexOf(ft,f+1))!==-1;)u.push({type:7,index:a}),f+=ft.length-1;}a++;}}static createElement(e,r){let i=Ct.createElement("template");return i.innerHTML=e,i}};function At(t,e,r=t,i){var s,a,o,n;if(e===gt)return e;let u=i!==void 0?(s=r._$Co)===null||s===void 0?void 0:s[i]:r._$Cl,m=Ft(e)?void 0:e._$litDirective$;return u?.constructor!==m&&((a=u?._$AO)===null||a===void 0||a.call(u,!1),m===void 0?u=void 0:(u=new m(t),u._$AT(t,r,i)),i!==void 0?((o=(n=r)._$Co)!==null&&o!==void 0?o:n._$Co=[])[i]=u:r._$Cl=u),u!==void 0&&(e=At(t,u._$AS(t,e.values),u,i)),e}var Kt=class{constructor(e,r){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=r;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var r;let{el:{content:i},parts:s}=this._$AD,a=((r=e?.creationScope)!==null&&r!==void 0?r:Ct).importNode(i,!0);Pt.currentNode=a;let o=Pt.nextNode(),n=0,u=0,m=s[0];for(;m!==void 0;){if(n===m.index){let l;m.type===2?l=new bt(o,o.nextSibling,this,e):m.type===1?l=new m.ctor(o,m.name,m.strings,this,e):m.type===6&&(l=new ee(o,this,e)),this.u.push(l),m=s[++u];}n!==m?.index&&(o=Pt.nextNode(),n++);}return a}p(e){let r=0;for(let i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++;}},bt=class{constructor(e,r,i,s){var a;this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=s,this._$Cm=(a=s?.isConnected)===null||a===void 0||a;}get _$AU(){var e,r;return (r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=At(this,e,r),Ft(e)?e===X||e==null||e===""?(this._$AH!==X&&this._$AR(),this._$AH=X):e!==this._$AH&&e!==gt&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Oe(e)?this.k(e):this.g(e);}O(e,r=this._$AB){return this._$AA.parentNode.insertBefore(e,r)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e));}g(e){this._$AH!==X&&Ft(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ct.createTextNode(e)),this._$AH=e;}$(e){var r;let{values:i,_$litType$:s}=e,a=typeof s=="number"?this._$AC(e):(s.el===void 0&&(s.el=vt.createElement(s.h,this.options)),s);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===a)this._$AH.p(i);else {let o=new Kt(a,this),n=o.v(this.options);o.p(i),this.T(n),this._$AH=o;}}_$AC(e){let r=ge.get(e.strings);return r===void 0&&ge.set(e.strings,r=new vt(e)),r}k(e){Ee(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let a of e)s===r.length?r.push(i=new bt(this.O(Dt()),this.O(Dt()),this,this.options)):i=r[s],i._$AI(a),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s);}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);e&&e!==this._$AB;){let s=e.nextSibling;e.remove(),e=s;}}setConnected(e){var r;this._$AM===void 0&&(this._$Cm=e,(r=this._$AP)===null||r===void 0||r.call(this,e));}},Mt=class{constructor(e,r,i,s,a){this.type=1,this._$AH=X,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=X;}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,s){let a=this.strings,o=!1;if(a===void 0)e=At(this,e,r,0),o=!Ft(e)||e!==this._$AH&&e!==gt,o&&(this._$AH=e);else {let n=e,u,m;for(e=a[0],u=0;u<a.length-1;u++)m=At(this,n[i+u],r,u),m===gt&&(m=this._$AH[u]),o||(o=!Ft(m)||m!==this._$AH[u]),m===X?e=X:e!==X&&(e+=(m??"")+a[u+1]),this._$AH[u]=m;}o&&!s&&this.j(e);}j(e){e===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"");}},Jt=class extends Mt{constructor(){super(...arguments),this.type=3;}j(e){this.element[this.name]=e===X?void 0:e;}},Ne=_t?_t.emptyScript:"",Qt=class extends Mt{constructor(){super(...arguments),this.type=4;}j(e){e&&e!==X?this.element.setAttribute(this.name,Ne):this.element.removeAttribute(this.name);}},te=class extends Mt{constructor(e,r,i,s,a){super(e,r,i,s,a),this.type=5;}_$AI(e,r=this){var i;if((e=(i=At(this,e,r,0))!==null&&i!==void 0?i:X)===gt)return;let s=this._$AH,a=e===X&&s!==X||e.capture!==s.capture||e.once!==s.once||e.passive!==s.passive,o=e!==X&&(s===X||a);a&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,e),this._$AH=e;}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e);}},ee=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i;}get _$AU(){return this._$AM._$AU}_$AI(e){At(this,e);}};var ve=Nt.litHtmlPolyfillSupport;ve?.(vt,bt),((Zt=Nt.litHtmlVersions)!==null&&Zt!==void 0?Zt:Nt.litHtmlVersions=[]).push("2.4.0");var Pe=(t,e,r)=>{var i,s;let a=(i=r?.renderBefore)!==null&&i!==void 0?i:e,o=a._$litPart$;if(o===void 0){let n=(s=r?.renderBefore)!==null&&s!==void 0?s:null;a._$litPart$=o=new bt(e.insertBefore(Dt(),n),n,void 0,r??{});}return o._$AI(t),o};var re,ie;var mt=class extends ht{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e,r;let i=super.createRenderRoot();return (e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Pe(r,this.renderRoot,this.renderOptions);}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0);}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1);}render(){return gt}};mt.finalized=!0,mt._$litElement$=!0,(re=globalThis.litElementHydrateSupport)===null||re===void 0||re.call(globalThis,{LitElement:mt});var _e=globalThis.litElementPolyfillSupport;_e?.({LitElement:mt});((ie=globalThis.litElementVersions)!==null&&ie!==void 0?ie:globalThis.litElementVersions=[]).push("3.2.2");var Ce=t=>e=>typeof e=="function"?((r,i)=>(customElements.define(r,i),i))(t,e):((r,i)=>{let{kind:s,elements:a}=i;return {kind:s,elements:a,finisher(o){customElements.define(r,o);}}})(t,e);var $e=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t);}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this));},finisher(r){r.createProperty(e.key,t);}};function j(t){return (e,r)=>r!==void 0?((i,s,a)=>{s.constructor.createProperty(a,i);})(t,e,r):$e(t,e)}function Ae(t){return j({...t,state:!0})}var Et=({finisher:t,descriptor:e})=>(r,i)=>{var s;if(i===void 0){let a=(s=r.originalKey)!==null&&s!==void 0?s:r.key,o=e!=null?{kind:"method",placement:"prototype",key:a,descriptor:e(r.key)}:{...r,key:a};return t!=null&&(o.finisher=function(n){t(n,a);}),o}{let a=r.constructor;e!==void 0&&Object.defineProperty(r,i,e(i)),t?.(a,i);}};function Me(t,e){return Et({descriptor:r=>{let i={get(){var s,a;return (a=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&a!==void 0?a:null},enumerable:!0,configurable:!0};if(e){let s=typeof r=="symbol"?Symbol():"__"+r;i.get=function(){var a,o;return this[s]===void 0&&(this[s]=(o=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(t))!==null&&o!==void 0?o:null),this[s]};}return i}})}var se;((se=window.HTMLSlotElement)===null||se===void 0?void 0:se.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);var $t=Ve(Te());var ae={name:"@lottiefiles/lottie-player",version:"2.0.1",description:"Lottie animation and Telegram Sticker player web components.",repository:"https://github.com/LottieFiles/lottie-player.git",homepage:"https://lottiefiles.com/web-player",bugs:"https://github.com/LottieFiles/lottie-player/issues",author:"Jawish Hameed <jawish@lottiefiles.com>",license:"MIT",main:"dist/lottie-player.js",module:"dist/lottie-player.mjs",types:"dist/lottie-player.d.ts",files:["dist/"],keywords:["lottie","animation","lottiefiles","web component","component","lit-element","player","telegram sticker","tgs"],scripts:{build:"tsup",changelog:"changeset add","changelog:check":"changeset status --since=main",dev:"tsup --watch",format:"pnpm run format:prettier","format:prettier":"prettier --loglevel=warn --no-editorconfig --write .","format:remark":"remark . --output --ignore-path .remarkignore --silently-ignore",lint:"eslint . --ext .ts,.tsx,.js","lint:fix":"eslint . --ext .ts,.tsx,.js --fix",open:"cypress open",preinstall:"npx only-allow pnpm",release:"pnpm release:version && pnpm release:publish","release:publish":"pnpm build && changeset publish","release:tag":"changeset tag","release:version":"changeset version",test:"cypress run --component","type-check":"turbo run type-check"},dependencies:{"@changesets/cli":"^2.26.1","@types/pako":"^1.0.4",lit:"^2.4.1","lottie-web":"^5.12.0",pako:"^2.1.0","resize-observer-polyfill":"^1.5.1"},devDependencies:{"@commitlint/cli":"^16.3.0","@commitlint/config-conventional":"^16.2.4","@lottiefiles/eslint-plugin":"^3.0.0","@lottiefiles/prettier-config":"^3.0.0",cypress:"^12.13.0","cypress-ct-lit":"^0.3.2","cypress-real-events":"^1.7.4",eslint:"^7.32.0","eslint-plugin-only-warn":"^1.0.3",husky:"^8.0.2","lint-staged":"^12.5.0",prettier:"^2.8.0","ts-node":"^10.9.1",tsup:"^6.7.0",turbo:"^1.10.2",typescript:"^4.9.3","unicode-canonical-property-names-ecmascript":"^2.0.0",vite:"^4.3.9"},publishConfig:{access:"public"},browserslist:["> 3%"],husky:{hooks:{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{css,scss,md}":["prettier --write"],"src/**/*.{js,jsx,ts,tsx,json}":["eslint . --ext .ts,.tsx,.js --fix"]},nyc:{extends:"@istanbuljs/nyc-config-typescript",all:!0}};var ke=qt`
13
13
  * {
14
14
  box-sizing: border-box;
15
15
  }