!function(a,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((a="undefined"==typeof globalThis?a||self:globalThis)["lottie-player"]={})}(this,function(exports){"use strict";function _asyncIterator(a){var t=2,n,o,l;for("undefined"!=typeof Symbol&&(o=Symbol.asyncIterator,l=Symbol.iterator);t--;){if(o&&null!=(n=a[o]))return n.call(a);if(l&&null!=(n=a[l]))return new AsyncFromSyncIterator(n.call(a));o="@@asyncIterator",l="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(a){function n(a){if(Object(a)!==a)return Promise.reject(new TypeError(a+" is not an object."));var r=a.done;return Promise.resolve(a.value).then(function(e){return{value:e,done:r}})}return AsyncFromSyncIterator=function(e){this.s=e,this.n=e.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function(){return n(this.n.apply(this.s,arguments))},return:function(e){var t=this.s.return;return void 0===t?Promise.resolve({value:e,done:!0}):n(t.apply(this.s,arguments))},throw:function(e){var t=this.s.return;return void 0===t?Promise.reject(e):n(t.apply(this.s,arguments))}},new AsyncFromSyncIterator(a)}function _jsx(l,t,p,r){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var i=l&&l.defaultProps,s=arguments.length-3;if(t||0===s||(t={children:void 0}),1==s)t.children=r;else if(1]+)>/g,function(a,t){return"$"+s[t]}))}if("function"==typeof r){var i=this;return o[Symbol.replace].call(this,e,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(a(e,i)),r.apply(this,e)})}return o[Symbol.replace].call(this,e,r)},_wrapRegExp.apply(this,arguments)}function _AwaitValue(e){this.wrapped=e}function _AsyncGenerator(l){function p(s,e){try{var r=l[s](e),t=r.value,a=t instanceof _AwaitValue;Promise.resolve(a?t.wrapped:t).then(function(e){a?p("return"===s?"return":"next",e):n(r.done?"return":"normal",e)},function(e){p("throw",e)})}catch(e){n("throw",e)}}function n(e,t){"return"===e?i.resolve({value:t,done:!0}):"throw"===e?i.reject(t):i.resolve({value:t,done:!1});(i=i.next)?p(i.key,i.arg):d=null}var i,d;this._invoke=function(e,t){return new Promise(function(r,a){var n={key:e,arg:t,resolve:r,reject:a,next:null};d?d=d.next=n:(i=d=n,p(e,t))})},"function"!=typeof l.return&&(this.return=void 0)}function _wrapAsyncGenerator(e){return function(){return new _AsyncGenerator(e.apply(this,arguments))}}function _awaitAsyncGenerator(e){return new _AwaitValue(e)}function _asyncGeneratorDelegate(a,t){function e(n,r){return o=!0,r=new Promise(function(t){t(a[n](r))}),{done:!1,value:t(r)}}var n={},o=!1;return n["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},n.next=function(a){return o?(o=!1,a):e("next",a)},"function"==typeof a.throw&&(n.throw=function(a){if(o)throw o=!1,a;return e("throw",a)}),"function"==typeof a.return&&(n.return=function(a){return o?(o=!1,a):e("return",a)}),n}function asyncGeneratorStep(l,t,e,r,i,s,a){try{var n=l[s](a),o=n.value}catch(a){return void e(a)}n.done?t(o):Promise.resolve(o).then(r,i)}function _asyncToGenerator(l){return function(){var t=this,e=arguments;return new Promise(function(r,i){function s(e){asyncGeneratorStep(o,r,i,s,n,"next",e)}function n(e){asyncGeneratorStep(o,r,i,s,n,"throw",e)}var o=l.apply(t,e);s(void 0)})}}function _classCallCheck(a,t){if(!(a instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,t){for(var e=0,n;earguments.length?a:e):n.value}},_get.apply(this,arguments)}function set(a,t,e,r){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(n,t,e,r){var o=_superPropBase(n,t),a;if(o){if((a=Object.getOwnPropertyDescriptor(o,t)).set)return a.set.call(r,e),!0;if(!a.writable)return!1}if(a=Object.getOwnPropertyDescriptor(r,t)){if(!a.writable)return!1;a.value=e,Object.defineProperty(r,t,a)}else _defineProperty(r,t,e);return!0},set(a,t,e,r)}function _set(a,t,e,r,n){if(!set(a,t,e,r||a)&&n)throw new Error("failed to set property");return e}function _taggedTemplateLiteral(a,t){return t||(t=a.slice(0)),Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(t)}}))}function _taggedTemplateLiteralLoose(a,t){return t||(t=a.slice(0)),a.raw=t,a}function _readOnlyError(e){throw new TypeError("\""+e+"\" is read-only")}function _writeOnlyError(e){throw new TypeError("\""+e+"\" is write-only")}function _classNameTDZError(e){throw new Error("Class \""+e+"\" cannot be referenced in computed property keys.")}function _temporalUndefined(){}function _tdz(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}function _temporalRef(a,t){return a===_temporalUndefined?_tdz(t):a}function _slicedToArray(a,t){return _arrayWithHoles(a)||_iterableToArrayLimit(a,t)||_unsupportedIterableToArray(a,t)||_nonIterableRest()}function _slicedToArrayLoose(a,t){return _arrayWithHoles(a)||_iterableToArrayLimitLoose(a,t)||_unsupportedIterableToArray(a,t)||_nonIterableRest()}function _toArray(e){return _arrayWithHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableRest()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _maybeArrayLike(a,t,e){if(t&&!Array.isArray(t)&&"number"==typeof t.length){var r=t.length;return _arrayLikeToArray(t,void 0!==e&&ea.length)&&(t=a.length);for(var n=0,o=Array(t);n=l.length?{done:!0}:{done:!1,value:l[d++]}},e:function(e){throw e},f:m}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s=!0,c=!1,f;return{s:function(){e=e.call(l)},n:function(){var a=e.next();return s=a.done,a},e:function(e){c=!0,f=e},f:function(){try{s||null==e.return||e.return()}finally{if(c)throw f}}}}function _createForOfIteratorHelperLoose(a,n){var e="undefined"!=typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(e)return(e=e.call(a)).next.bind(e);if(Array.isArray(a)||(e=_unsupportedIterableToArray(a))||n&&a&&"number"==typeof a.length){e&&(a=e);var o=0;return function(){return o>=a.length?{done:!0}:{done:!1,value:a[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _skipFirstGeneratorNext(a){return function(){var t=a.apply(this,arguments);return t.next(),t}}function _toPrimitive(a,t){if("object"!=typeof a||null===a)return a;var e=a[Symbol.toPrimitive];if(void 0!==e){var r=e.call(a,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(a)}function _toPropertyKey(a){var t=_toPrimitive(a,"string");return"symbol"==typeof t?t:t+""}function _initializerWarningHelper(){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}function _initializerDefineProperty(a,t,e,r){e&&Object.defineProperty(a,t,{enumerable:e.enumerable,configurable:e.configurable,writable:e.writable,value:e.initializer?e.initializer.call(r):void 0})}function _applyDecoratedDescriptor(n,t,e,r,o){var s={};return Object.keys(r).forEach(function(e){s[e]=r[e]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=e.slice().reverse().reduce(function(e,a){return a(n,t,e)||e},s),o&&void 0!==s.initializer&&(s.value=s.initializer?s.initializer.call(o):void 0,s.initializer=void 0),void 0===s.initializer&&(Object.defineProperty(n,t,s),s=null),s}function _classPrivateFieldLooseKey(e){return"__private_"+id++ +"_"+e}function _classPrivateFieldLooseBase(a,t){if(!Object.prototype.hasOwnProperty.call(a,t))throw new TypeError("attempted to use private field on non-instance");return a}function _classPrivateFieldGet(a,t){return _classApplyDescriptorGet(a,_classExtractFieldDescriptor(a,t,"get"))}function _classPrivateFieldSet(a,t,e){return _classApplyDescriptorSet(a,_classExtractFieldDescriptor(a,t,"set"),e),e}function _classPrivateFieldDestructureSet(a,t){return _classApplyDescriptorDestructureSet(a,_classExtractFieldDescriptor(a,t,"set"))}function _classExtractFieldDescriptor(a,t,e){if(!t.has(a))throw new TypeError("attempted to "+e+" private field on non-instance");return t.get(a)}function _classStaticPrivateFieldSpecGet(a,t,e){return _classCheckPrivateStaticAccess(a,t),_classCheckPrivateStaticFieldDescriptor(e,"get"),_classApplyDescriptorGet(a,e)}function _classStaticPrivateFieldSpecSet(a,t,e,r){return _classCheckPrivateStaticAccess(a,t),_classCheckPrivateStaticFieldDescriptor(e,"set"),_classApplyDescriptorSet(a,e,r),r}function _classStaticPrivateMethodGet(a,t,e){return _classCheckPrivateStaticAccess(a,t),e}function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}function _classApplyDescriptorGet(a,t){return t.get?t.get.call(a):t.value}function _classApplyDescriptorSet(a,t,e){if(t.set)t.set.call(a,e);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=e}}function _classApplyDescriptorDestructureSet(a,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(e){t.set.call(a,e)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}function _classStaticPrivateFieldDestructureSet(a,t,e){return _classCheckPrivateStaticAccess(a,t),_classCheckPrivateStaticFieldDescriptor(e,"set"),_classApplyDescriptorDestructureSet(a,e)}function _classCheckPrivateStaticAccess(a,t){if(a!==t)throw new TypeError("Private static access of wrong provenance")}function _classCheckPrivateStaticFieldDescriptor(a,t){if(void 0===a)throw new TypeError("attempted to "+t+" private static field before its declaration")}function _decorate(l,t,e,r){var i=_getDecoratorsApi();if(r)for(var p=0;pt.indexOf(r)&&(e[r]=a[r]);if(null!=a&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(a);nt.indexOf(r[n])&&Object.prototype.propertyIsEnumerable.call(a,r[n])&&(e[r[n]]=a[r[n]])}return e}function __decorate(l,t,e,r){var p=arguments.length,a=3>p?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r,d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(l,t,e,r);else for(var m=l.length-1;0<=m;m--)(d=l[m])&&(a=(3>p?d(a):3m[0]&&e[1]=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(o,t){var l="function"==typeof Symbol&&o[Symbol.iterator];if(!l)return o;var p=l.call(o),a=[],n,d;try{for(;(void 0===t||0void 0===e?i$1(a,t):((a,t,e)=>{t.constructor.createProperty(e,a)})(a,t,e)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function t$1(e){return e$5(_objectSpread2(_objectSpread2({},e),{},{state:!0}))}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause *//** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function e$3(a){return o$1({finisher:(t,e)=>{Object.assign(t.prototype[e],a)}})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function i(a,t){return o$1({descriptor:e=>{var r={get(){var t,n;return null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(a))&&void 0!==n?n:null},enumerable:!0,configurable:!0};if(t){var n="symbol"==typeof e?Symbol():"__"+e;r.get=function(){var t,o;return void 0===this[n]&&(this[n]=null!==(o=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(a))&&void 0!==o?o:null),this[n]}}return r}})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function e$2(a){return o$1({descriptor:t=>({get(){var t,n;return null!==(n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelectorAll(a))&&void 0!==n?n:[]},enumerable:!0,configurable:!0})})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function e$1(a){return o$1({descriptor:t=>({get(){var t=this;return _asyncToGenerator(function*(){var e;return yield t.updateComplete,null===(e=t.renderRoot)||void 0===e?void 0:e.querySelector(a)})()},enumerable:!0,configurable:!0})})}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function l(l){var{slot:t,selector:r}=null==l?{}:l;return o$1({descriptor:a=>({get(){var i="slot"+(t?"[name=".concat(t,"]"):":not([name])"),a=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(i),n=null==a?[]:e(a,l),o;return r?n.filter(e=>e.matches(r)):n},enumerable:!0,configurable:!0})})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function o(a,t,e){var n=a,o;return"object"==typeof a?(n=a.slot,o=a):o={flatten:t},e?l({slot:n,flatten:t,selector:e}):o$1({descriptor:e=>({get(){var s="slot"+(n?"[name=".concat(n,"]"):":not([name])"),r=null===(a=this.renderRoot)||void 0===a?void 0:a.querySelector(s),a,i;return null!==(i=null==r?void 0:r.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getDefaultExportFromNamespaceIfPresent(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getDefaultExportFromNamespaceIfNotNamed(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&1===Object.keys(e).length?e.default:e}function getAugmentedNamespace(a){if(a.__esModule)return a;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(a).forEach(function(e){var r=Object.getOwnPropertyDescriptor(a,e);Object.defineProperty(t,e,r.get?r:{enumerable:!0,get:function(){return a[e]}})}),t}function commonjsRequire(e){throw new Error("Could not dynamically require \""+e+"\". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.")}function parseSrc(a){if("object"==typeof a)return a;try{return JSON.parse(a)}catch(t){return new URL(a,window.location.href).toString()}}function isLottie(a){return["v","ip","op","layers","fr","w","h"].every(t=>Object.prototype.hasOwnProperty.call(a,t))}function fromURL(e){return _fromURL.apply(this,arguments)}function _fromURL(){return(_fromURL=_asyncToGenerator(function*(a){if("string"!=typeof a)throw new Error("The url value must be a string");var t;try{var n=new URL(a),r=yield fetch(n.toString());t=yield r.json()}catch(e){throw new Error("An error occurred while trying to load the Lottie file from URL")}return t})).apply(this,arguments)}var REACT_ELEMENT_TYPE;_AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},_AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},_AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},_AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};var id=0,_extendStatics=function(a,t){return _extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,t){a.__proto__=t}||function(a,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(a[e]=t[e])},_extendStatics(a,t)},_assign=function(){return _assign=Object.assign||function(a){for(var t=1,n=arguments.length,o;tnew s$3("string"==typeof e?e:e+"",e$8),r$3=function(a){for(var t=arguments.length,e=Array(1t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+a[r+1],a[0]);return new s$3(n,e$8)},i$3=(a,t)=>{t$3?a.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(t=>{var e=document.createElement("style"),r=window.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=t.cssText,a.appendChild(e)})},S$1=t$3?e=>e:e=>e instanceof CSSStyleSheet?(a=>{var t="";for(var n of a.cssRules)t+=n.cssText;return o$5(t)})(e):e,e$7=window.trustedTypes,r$2=e$7?e$7.emptyScript:"",h$2=window.reactiveElementPolyfillSupport,o$4={toAttribute(a,r){return r===Boolean?a=a?r$2:null:r===Object||r===Array?a=null==a?a:JSON.stringify(a):void 0,a},fromAttribute(a,t){var e=a;switch(t){case Boolean:e=null!==a;break;case Number:e=null===a?null:+a;break;case Object:case Array:try{e=JSON.parse(a)}catch(a){e=null}}return e}},n$4=(a,t)=>t!==a&&(t==t||a==a),l$3={attribute:!0,type:String,converter:o$4,reflect:!1,hasChanged:n$4},/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */s$2,t$2;class a$1 extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(a){var t;null!==(t=this.l)&&void 0!==t||(this.l=[]),this.l.push(a)}static get observedAttributes(){this.finalize();var a=[];return this.elementProperties.forEach((t,e)=>{var r=this._$Eh(e,t);void 0!==r&&(this._$Eu.set(r,e),a.push(r))}),a}static createProperty(a){var t=1this.enableUpdating=e),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(e=this.constructor.l)||void 0===e||e.forEach(e=>e(this))}addController(a){var t,n;(null!==(t=this._$Eg)&&void 0!==t?t:this._$Eg=[]).push(a),void 0!==this.renderRoot&&this.isConnected&&(null===(n=a.hostConnected)||void 0===n||n.call(a))}removeController(a){var t;null===(t=this._$Eg)||void 0===t||t.splice(this._$Eg.indexOf(a)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach((a,t)=>{this.hasOwnProperty(t)&&(this._$Et.set(t,this[t]),delete this[t])})}createRenderRoot(){var a=null!==(e=this.shadowRoot)&&void 0!==e?e:this.attachShadow(this.constructor.shadowRootOptions),e;return i$3(a,this.constructor.elementStyles),a}connectedCallback(){var e;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(e=this._$Eg)||void 0===e||e.forEach(a=>{var t;return null===(t=a.hostConnected)||void 0===t?void 0:t.call(a)})}enableUpdating(e){}disconnectedCallback(){var e;null===(e=this._$Eg)||void 0===e||e.forEach(a=>{var t;return null===(t=a.hostDisconnected)||void 0===t?void 0:t.call(a)})}attributeChangedCallback(a,t,e){this._$AK(a,e)}_$ES(o,t){var e=2this[t]=a),this._$Et=void 0);var n=!1,o=this._$AL;try{(n=this.shouldUpdate(o))?(this.willUpdate(o),null===(a=this._$Eg)||void 0===a||a.forEach(a=>{var t;return null===(t=a.hostUpdate)||void 0===t?void 0:t.call(a)}),this.update(o)):this._$EU()}catch(e){throw n=!1,this._$EU(),e}n&&this._$AE(o)}}willUpdate(e){}_$AE(a){var t;null===(t=this._$Eg)||void 0===t||t.forEach(a=>{var t;return null===(t=a.hostUpdated)||void 0===t?void 0:t.call(a)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(a)),this.updated(a)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(e){return!0}update(e){void 0!==this._$E_&&(this._$E_.forEach((a,t)=>this._$ES(t,this[t],a)),this._$E_=void 0),this._$EU()}updated(e){}firstUpdated(e){}}a$1.finalized=!0,a$1.elementProperties=new Map,a$1.elementStyles=[],a$1.shadowRootOptions={mode:"open"},null==h$2||h$2({ReactiveElement:a$1}),(null!==(s$2=globalThis.reactiveElementVersions)&&void 0!==s$2?s$2:globalThis.reactiveElementVersions=[]).push("1.2.1");var i$2=globalThis.trustedTypes,s$1=i$2?i$2.createPolicy("lit-html",{createHTML:e=>e}):void 0,e$6="lit$".concat((Math.random()+"").slice(9),"$"),o$3="?"+e$6,n$3="<".concat(o$3,">"),l$2=document,h$1=function(){var e=0null===e||"object"!=typeof e&&"function"!=typeof e,d=Array.isArray,u=a=>{var t;return d(a)||"function"==typeof(null===(t=a)||void 0===t?void 0:t[Symbol.iterator])},c=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,a=/>/g,f=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,_=/'/g,m=/"/g,g=/^(?:script|style|textarea)$/i,p=a=>function(t){for(var e=arguments.length,r=Array(1{var r=null!==(p=null==e?void 0:e.renderBefore)&&void 0!==p?p:t,a=r._$litPart$,p,d;if(void 0===a){var m=null!==(d=null==e?void 0:e.renderBefore)&&void 0!==d?d:null;r._$litPart$=a=new N(t.insertBefore(h$1(),m),m,void 0,null==e?{}:e)}return a._$AI(l),a},A=l$2.createTreeWalker(l$2,129,null,!1),C=(x,t)=>{for(var e=x.length-1,i=[],s=2===t?"":"",k=c,A=0,C;A"===S[0]?(k=null==C?c:C,T=-1):void 0===S[1]?T=-2:(T=k.lastIndex-S[2].length,D=S[1],k=void 0===S[3]?f:"\""===S[3]?m:_):k===m||k===_?k=f:k===v||k===a?k=c:(k=f,C=void 0);var F=k===f&&x[A+1].startsWith("/>")?" ":"";s+=k===c?E+n$3:0<=T?(i.push(D),E.slice(0,T)+"$lit$"+E.slice(T)+e$6+F):E+e$6+(-2===T?(i.push(void 0),A):F)}var M=s+(x[e]||"")+(2===t?"":"");if(!Array.isArray(x)||!x.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0===s$1?M:s$1.createHTML(M),i]};class E{constructor(k,t){var{strings:e,_$litType$:i}=k,s;this.parts=[];var D=0,T=0,F=e.length-1,o=this.parts,[h,l]=C(e,i);if(this.el=E.createElement(h,t),A.currentNode=this.el.content,2===i){var p=this.el.content,c=p.firstChild;c.remove(),p.append(...c.childNodes)}for(;null!==(s=A.nextNode())&&o.length{a._$AK(t,e)},_$AL:e=>e._$AL};(null!==(o$2=globalThis.litElementVersions)&&void 0!==o$2?o$2:globalThis.litElementVersions=[]).push("3.1.2");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */var n$1=a=>t=>"function"==typeof t?((a,t)=>(window.customElements.define(a,t),t))(a,t):((a,t)=>{var{kind:e,elements:r}=t;return{kind:e,elements:r,finisher(t){window.customElements.define(a,t)}}})(a,t),/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */i$1=(a,t)=>"method"===t.kind&&t.descriptor&&!("value"in t.descriptor)?_objectSpread2(_objectSpread2({},t),{},{finisher(e){e.createProperty(t.key,a)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){"function"==typeof t.initializer&&(this[t.key]=t.initializer.call(this))},finisher(e){e.createProperty(t.key,a)}},e$4=(a,t,e)=>{Object.defineProperty(t,e,a)},t=(a,t)=>({kind:"method",placement:"prototype",key:t.key,descriptor:a}),o$1=a=>{var{finisher:l,descriptor:e}=a;return(r,t)=>{var i;if(void 0===t){var p=null!==(i=r.originalKey)&&void 0!==i?i:r.key,a=null==e?_objectSpread2(_objectSpread2({},r),{},{key:p}):{kind:"method",placement:"prototype",key:p,descriptor:e(r.key)};return null!=l&&(a.finisher=function(e){l(e,p)}),a}var n=r.constructor;void 0!==e&&Object.defineProperty(r,t,e(t)),null==l||l(n,t)}},e=null==(null===(n=window.HTMLSlotElement)||void 0===n?void 0:n.prototype.assignedElements)?(a,t)=>a.assignedNodes(t).filter(e=>e.nodeType===Node.ELEMENT_NODE):(a,t)=>a.assignedElements(t),commonjsGlobal="undefined"==typeof globalThis?"undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?{}:self:global:window:globalThis,lottie$1={exports:{}},n;(function(module){var root,factory;"undefined"!=typeof navigator&&(root=window||{},factory=function(window){function ProjectInterface(){return{}}function roundValues(e){bmRnd=e?Math.round:function(e){return e}}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(a,t,e,r){this.type=a,this.currentTime=t,this.totalTime=e,this.direction=0>r?-1:1}function BMCompleteEvent(a,t){this.type=a,this.direction=0>t?-1:1}function BMCompleteLoopEvent(a,t,e,r){this.type=a,this.currentLoop=e,this.totalLoops=t,this.direction=0>r?-1:1}function BMSegmentStartEvent(a,t,e){this.type=a,this.firstFrame=t,this.totalFrames=e}function BMDestroyEvent(a,t){this.type=a,this.target=t}function BMRenderFrameErrorEvent(a,t){this.type="renderFrameError",this.nativeError=a,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(a,t){this.type=a,this.nativeError=t}function HSVtoRGB(d,t,e){var r,m,c,f,g,u,y,v;switch(u=e*(1-t),y=e*(1-(g=6*d-(f=Math.floor(6*d)))*t),v=e*(1-(1-g)*t),f%6){case 0:r=e,m=v,c=u;break;case 1:r=y,m=e,c=u;break;case 2:r=u,m=e,c=v;break;case 3:r=u,m=y,c=e;break;case 4:r=v,m=u,c=e;break;case 5:r=e,m=u,c=y}return[r,m,c]}function RGBtoHSV(l,t,e){var r=Math.max(l,t,e),s=Math.min(l,t,e),a=r-s,n=0===r?0:a/r,o=r/255,p;return r===s?p=0:r===l?(p=t-e+a*(t=e[1]&&(e[1]=0),HSVtoRGB(e[0],e[1],e[2])}function addBrightnessToRGB(a,t){var e=RGBtoHSV(255*a[0],255*a[1],255*a[2]);return e[2]+=t,1e[2]&&(e[2]=0),HSVtoRGB(e[0],e[1],e[2])}function addHueToRGB(a,t){var e=RGBtoHSV(255*a[0],255*a[1],255*a[2]);return e[0]+=t/360,1e[0]&&(e[0]+=1),HSVtoRGB(e[0],e[1],e[2])}function BaseEvent(){}function createSizedArray(e){return Array.apply(null,{length:e})}function createNS(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function createTag(e){return document.createElement(e)}function DynamicPropertyContainer(){}function extendPrototype(n,t){var e=n.length,o,s;for(o=0;oa}function e(e){this.segmentLength=0,this.points=Array(e)}function i(a,t){this.partialLength=a,this.point=t}function F(p,t){var e=t.percents,r=t.lengths,i=e.length,s=bmFloor((i-1)*p),d=p*t.addedLength,n=0;if(s===i-1||0===s||d===r[s])return e[s];for(var m=r[s]>d?-1:1,c=!0;c;)if(r[s]<=d&&r[s+1]>d?(n=(d-r[s])/(r[s+1]-r[s]),c=!1):s+=m,0>s||s>=i-1){if(s===i-1)return e[s];c=!1}return e[s]+(e[s+1]-e[s])*n}var u=Math,d=function(g,t,e,r){var i=defaultCurveSegments,p=0,u=[],f=[],d=bezierLengthPool.newElement(),m,y,v,b,_,x;for(v=e.length,m=0;ms?s=0:1f?p>d?p-f-d:d-f-p:d>f?d-f-p:f-p-d)&&1e-4>m}}}function getFontProperties(n){for(var t=n.fStyle?n.fStyle.split(" "):[],e="normal",o="normal",l=t.length,s=0;se;e+=1)this.saved[e]=createTypedArray("float32",16);this._length=15}function CVBaseElement(){}function CVImageElement(a,t,e){this.assetData=t.getAssetData(a.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(a,t,e)}function CVCompElement(a,t,e){this.completeLayers=!1,this.layers=a.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(a,t,e),this.tm=a.tm?PropertyFactory.getProp(this,a.tm,0,t.frameRate,this):{_placeholder:!0}}function CVMaskElement(a,t){var e;this.data=a,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n=this.masksProperties.length,o=!1;for(e=0;er;r+=1)n=r.toString(16),a[r]=1===n.length?"0"+n:n;return function(r,n,o){return 0>r&&(r=0),0>n&&(n=0),0>o&&(o=0),"#"+a[r]+a[n]+a[o]}}(),_count;BaseEvent.prototype={triggerEvent:function(a,t){if(this._cbs[a])for(var e=this._cbs[a],r=0;rt;){if(a.props[t]!==this.props[t])return!1;t+=1}return!0}function g(a){var t;for(t=0;16>t;t+=1)a.props[t]=this.props[t];return a}function v(a){var t;for(t=0;16>t;t+=1)this.props[t]=a[t]}function b(a,t,e){return{x:a*this.props[0]+t*this.props[4]+e*this.props[8]+this.props[12],y:a*this.props[1]+t*this.props[5]+e*this.props[9]+this.props[13],z:a*this.props[2]+t*this.props[6]+e*this.props[10]+this.props[14]}}function P(a,t,e){return a*this.props[0]+t*this.props[4]+e*this.props[8]+this.props[12]}function _(a,t,e){return a*this.props[1]+t*this.props[5]+e*this.props[9]+this.props[13]}function E(a,t,e){return a*this.props[2]+t*this.props[6]+e*this.props[10]+this.props[14]}function S(){var l=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/l,e=-this.props[1]/l,r=-this.props[4]/l,i=this.props[0]/l,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/l,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/l,n=new Matrix;return n.props[0]=t,n.props[1]=e,n.props[4]=r,n.props[5]=i,n.props[12]=s,n.props[13]=a,n}function x(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function A(a){var t=a.length,r=[],n;for(n=0;na;)e+=r(1e4*n[a])/1e4,e+=15==a?")":",",a+=1;return e}function D(e){return 1e-6>e&&0e?r(1e4*e)/1e4:e}function M(){var e=this.props;return"matrix("+D(e[0])+","+D(e[1])+","+D(e[4])+","+D(e[5])+","+D(e[12])+","+D(e[13])+")"}var F=Math.cos,t=Math.sin,L=Math.tan,r=Math.round;return function(){this.reset=I,this.rotate=s,this.rotateX=a,this.rotateY=n,this.rotateZ=o,this.skew=l,this.skewFromAxis=p,this.shear=h,this.scale=c,this.setTransform=f,this.translate=d,this.transform=m,this.applyToPoint=b,this.applyToX=P,this.applyToY=_,this.applyToZ=E,this.applyToPointArray=C,this.applyToTriplePoints=w,this.applyToPointStringified=k,this.toCSS=T,this.to2dCSS=M,this.clone=g,this.cloneFromProps=v,this.equals=y,this.inversePoints=A,this.inversePoint=x,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=u,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}(),blendModeEnums;!function(b,_){function e(o){var i=o.length,l=this,s=0,p=l.i=l.j=0,d=l.S=[],m;for(i||(o=[i++]);s<256;)d[s]=s++;for(s=0;s<256;s++)d[s]=d[p=255&p+o[s%i]+(m=d[s])],d[p]=m;l.g=function(o){for(var s=0,i=l.i,p=l.j,d=l.S,m;o--;)m=d[i=255&i+1],s=s*256+d[255&(d[i]=d[p=255&p+m])+(d[p]=m)];return l.i=i,l.j=p,s}}function d(a,t){return t.i=a.i,t.j=a.j,t.S=a.S.slice(),t}function l(a,t){var e=[],n=typeof a,o;if(t&&"object"==n)for(o in a)try{e.push(l(a[o],t-1))}catch(e){}return e.length?e:"string"==n?a:a+"\0"}function t(a,t){for(var e=a+"",n=0,o;n=a;)n/=2,o/=2,l>>>=1;return(n+l)/o};return g.int32=function(){return 0|h.g(4)},g.quick=function(){return h.g(4)/4294967296},g.double=g,t(p(h.S),b),(n.pass||o||function(e,t,a,r){return r&&(r.S&&d(r,h),e.state=function(){return d(h,{})}),a?(_.random=e,t):e})(g,f,"global"in n?n.global:this==_,n.state)},t(_.random(),b)}([],BMMath);var BezierFactory=function(){function p(a,t){return 1-3*t+3*a}function s(a,t){return 3*t-6*a}function a(e){return 3*e}function d(n,t,e){return((p(t,e)*n+s(t,e))*n+a(t))*n}function o(n,t,e){return 3*p(t,e)*n*n+2*s(t,e)*n+a(t)}function m(a){this._p=a,this._mSampleValues=e?new Float32Array(11):Array(11),this._precomputed=!1,this.get=this.get.bind(this)}var n={getBezierEasing:function(e,t,r,i,s){var a=s||("bez_"+e+"_"+t+"_"+r+"_"+i).replace(/\./g,"p");if(l[a])return l[a];var n=new m([e,t,r,i]);return l[a]=n,n}},l={},c=.1,e="function"==typeof Float32Array;return m.prototype={get:function(a){var t=this._p[0],e=this._p[1],r=this._p[2],n=this._p[3];return this._precomputed||this._precompute(),t===e&&r===n?a:0===a?0:1===a?1:d(this._getTForX(a),e,n)},_precompute:function(){var a=this._p[0],t=this._p[1],e=this._p[2],r=this._p[3];this._precomputed=!0,a===t&&e===r||this._calcSampleValues()},_calcSampleValues:function(){for(var a=this._p[0],t=this._p[2],e=0;11>e;++e)this._mSampleValues[e]=d(e*c,a,t)},_getTForX:function(r){for(var t=this._p[0],e=this._p[2],i=this._mSampleValues,s=0,m=1;10!=m&&i[m]<=r;++m)s+=c;var f=s+(r-i[--m])/(i[m+1]-i[m])*c,l=o(f,t,e);return .001<=l?function(n,t,l,r){for(var i=0,p;4>i;++i){if(p=o(t,l,r),0===p)return t;t-=(d(t,l,r)-n)/p}return t}(r,f,t,e):0===l?f:function(o,t,l,p,i){var s=0,m,c;do 0<(m=d(c=t+(l-t)/2,p,i)-o)?l=c:t=c;while(1e-7++s);return c}(r,s,s+c,t,e)}},n}();!function(){for(var a=0,n=["ms","moz","webkit","o"],e=0;ee[0]||!(e[0]>a[0])&&(a[1]>e[1]||!(e[1]>a[1])&&(a[2]>e[2]||!(e[2]>a[2])&&null))}function e(e){0!==e.t.a.length||"m"in e.t.p||(e.singleShape=!0)}var r=function(){function n(a){var t=a.length,n,o,s;for(n=0;nDate.now()-this.initTime?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return t.prototype=n,t}(),PropertyFactory=function(){function g(i,t){var e=this.offsetTime,s;"multidimensional"===this.propType&&(s=createTypedArray("float32",this.pv.length));for(var N=t.lastIndex,j=N,q=this.keyframes.length-1,H=!0,W,Y,X,U,K,Z,J,Q,ee;H;){if(W=this.keyframes[j],Y=this.keyframes[j+1],j===q-1&&i>=Y.t-e){W.h&&(W=Y),N=0;break}if(Y.t-e>i){N=j;break}j=te||i=te?me.points.length-1:0;for(K=me.points[D].point.length,U=0;U=I&&M=te?Z=1:i=te)s[0]=T[0],s[1]=T[1],s[2]=T[2];else if(i<=k)s[0]=W.s[0],s[1]=W.s[1],s[2]=W.s[2];else{var ve=d(W.s),z=d(T);ae=s,re=function(g,t,e){var r=[],h=g[0],l=g[1],p=g[2],c=g[3],f=t[0],v=t[1],b=t[2],_=t[3],x,P,k,A,C;return 0>(P=h*f+l*v+p*b+c*_)&&(P=-P,f=-f,v=-v,b=-b,_=-_),1e-6<1-P?(x=Math.acos(P),k=Math.sin(x),A=Math.sin((1-e)*x)/k,C=Math.sin(e*x)/k):(A=1-e,C=e),r[0]=A*h+C*f,r[1]=A*l+C*v,r[2]=A*p+C*b,r[3]=A*c+C*_,r}(ve,z,(i-k)/(te-k)),ne=re[0],oe=re[1],se=re[2],ie=re[3],le=Math.atan2(2*oe*ie-2*ne*se,1-2*oe*oe-2*se*se),pe=Math.asin(2*ne*oe+2*se*ie),de=Math.atan2(2*ne*ie-2*oe*se,1-2*ne*ne-2*se*se),ae[0]=le/degToRads,ae[1]=pe/degToRads,ae[2]=de/degToRads}}return t.lastIndex=N,s}function d(p){var t=p[0]*degToRads,e=p[1]*degToRads,r=p[2]*degToRads,i=Math.cos(t/2),s=Math.cos(e/2),a=Math.cos(r/2),n=Math.sin(t/2),o=Math.sin(e/2),d=Math.sin(r/2);return[n*o*a+i*s*d,n*s*a+i*o*d,i*o*a-n*s*d,i*s*a-n*o*d]}function r(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==-999999&&(this._caching.lastFrame>=a&&t>=a||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r}return this._caching.lastFrame=t,this.pv}function v(e){var t;if("unidimensional"===this.propType)t=e*this.mult,1e-5this.appliedTransformations&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),2>this.appliedTransformations&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&3>this.appliedTransformations&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&4>this.appliedTransformations?this.v.rotate(-this.r.v):!this.r&&4>this.appliedTransformations&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var l,p;if(o=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(l=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/o,0),p=this.p.getValueAtTime(this.p.keyframes[0].t/o,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(l=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/o,0),p=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/o,0)):(l=this.p.pv,p=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/o,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){l=[],p=[];var d=this.px,a=this.py;d._caching.lastFrame+d.offsetTime<=d.keyframes[0].t?(l[0]=d.getValueAtTime((d.keyframes[0].t+.01)/o,0),l[1]=a.getValueAtTime((a.keyframes[0].t+.01)/o,0),p[0]=d.getValueAtTime(d.keyframes[0].t/o,0),p[1]=a.getValueAtTime(a.keyframes[0].t/o,0)):d._caching.lastFrame+d.offsetTime>=d.keyframes[d.keyframes.length-1].t?(l[0]=d.getValueAtTime(d.keyframes[d.keyframes.length-1].t/o,0),l[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/o,0),p[0]=d.getValueAtTime((d.keyframes[d.keyframes.length-1].t-.01)/o,0),p[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/o,0)):(l=[d.pv,a.pv],p[0]=d.getValueAtTime((d._caching.lastFrame+d.offsetTime-.01)/o,d.offsetTime),p[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/o,a.offsetTime))}else l=p=e;this.v.rotate(-Math.atan2(l[1]-p[1],l[0]-p[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],a),a.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},a.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,t,r){return new a(e,t,r)}}}();ShapePath.prototype.setPathData=function(a,t){this.c=a,this.setLength(t);for(var e=0;e=this._maxLength&&this.doubleArrayLength(),e){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}s[r]&&(!s[r]||o)||(s[r]=pointPool.newElement()),s[r][0]=n,s[r][1]=t},ShapePath.prototype.setTripleAt=function(l,t,e,r,i,s,a,n){this.setXYAt(l,t,"v",a,n),this.setXYAt(e,r,"o",a,n),this.setXYAt(i,s,"i",a,n)},ShapePath.prototype.reverse=function(){var l=new ShapePath;l.setPathData(this.c,this._length);var t=this.v,e=this.o,r=this.i,i=0;this.c&&(l.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],e[0][0],e[0][1],0,!1),i=1);var p=this._length-1,d=this._length,o;for(o=i;o=x[x.length-1].t-this.offsetTime)d=x[x.length-1].s?x[x.length-1].s[0]:x[x.length-2].e[0],A=!0;else{for(var F=r,M=x.length-1,v=!0,I,L,B;v&&(I=x[F],!((L=x[F+1]).t-this.offsetTime>_));)F=L.t-this.offsetTime)T=1;else if(_a&&t>a)||(this._caching.lastIndex=r=t?s.push({s:d,e:t}):1<=d?s.push({s:d-1,e:t-1}):(s.push({s:d,e:1}),s.push({s:0,e:t-1}));var a=[],m=s.length,l,f;for(l=0;lr+e||(g=f.s*i<=r?0:(f.s*i-r)/e,h=f.e*i>=r+e?1:(f.e*i-r)/e,a.push([g,h]))}return a.length||a.push([0,0]),a},TrimModifier.prototype.releasePathsData=function(a){var t=a.length,r;for(r=0;rD&&(D+=1),(t=1this.s.v?0+D:this.s.v+D)>(k=1this.e.v?0+D:this.e.v+D)){var S=t;t=k,k=S}t=1e-4*Math.round(1e4*t),k=1e-4*Math.round(1e4*k),this.sValue=t,this.eValue=k}else t=this.sValue,k=this.eValue;var n=this.shapes.length,f=0,T,w,F,M,I;if(k===t)for(C=0;C=z?L.push({s:y.totalShapeLength*R,e:y.totalShapeLength*z}):1<=R?L.push({s:y.totalShapeLength*(R-1),e:y.totalShapeLength*(z-1)}):(L.push({s:y.totalShapeLength*R,e:y.totalShapeLength}),L.push({s:0,e:y.totalShapeLength*(z-1)}));var $=this.addShapes(y,L[0]);if(L[0].s!==L[0].e){if(1t.e){e.c=!1;break}t.s<=d&&t.e>=d+A.addedLength?(this.addSegment(c[x].v[P-1],c[x].o[P-1],c[x].i[P],c[x].v[P],e,C,u),u=!1):(D=bez.getNewSegment(c[x].v[P-1],c[x].v[P],c[x].o[P-1],c[x].i[P],(t.s-d)/A.addedLength,(t.e-d)/A.addedLength,E[P-1]),this.addSegmentFromArray(D,e,C,u),u=!1,e.c=!1),d+=A.addedLength,C+=1}if(c[x].c&&E.length){if(A=E[P-1],d<=t.e){var T=E[P-1].addedLength;t.s<=d&&t.e>=d+T?(this.addSegment(c[x].v[P-1],c[x].o[P-1],c[x].i[0],c[x].v[0],e,C,u),u=!1):(D=bez.getNewSegment(c[x].v[P-1],c[x].v[0],c[x].o[P-1],c[x].i[0],(t.s-d)/T,(t.e-d)/T,E[P-1]),this.addSegmentFromArray(D,e,C,u),u=!1,e.c=!1)}else e.c=!1;d+=A.addedLength,C+=1}if(e._length&&(e.setXYAt(e.v[S][0],e.v[S][1],"i",S),e.setXYAt(e.v[e._length-1][0],e.v[e._length-1][1],"o",e._length-1)),d>t.e)break;xF){for(;g>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),g-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),g-=f)}for(A=1===this.data.m?0:this._currentCopies-1,C=1===this.data.m?1:-1,E=this._currentCopies;E;){if(I=(k=(x=this.elemsData[A].it)[x.length-1].transform.mProps.v.props).length,x[x.length-1].transform.mProps._mdf=!0,x[x.length-1].transform.op._mdf=!0,x[x.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(A/(this._currentCopies-1)),0!==g){for((0!==A&&1===C||A!==this._currentCopies-1&&-1===C)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),M=0;Mse&&be.v.c)for(oe.tLengthse;)se+=fe[de].partialLength,0>(de-=1)&&(de=(fe=ge[me-=1].points).length-1);ce=(fe=ge[me].points)[de-1],he=(ie=fe[de]).partialLength}ne=te.length,C=0,ae=0;var Pe=.714*(1.2*ee.finalSize),V=!0,ke,Ae,Ce,Ee,De;Ce=_.length;var Se=-1,Te=se,K=me,J=de,Z=-1,we="",Fe=this.defaultPropsArray,Me,Ie,Le,Be,Re,ze,Ve,Oe,$e,Ne,Ge,je;if(2===ee.j||1===ee.j){var qe=0,He=0,We=2===ee.j?-.5:-1,Ye=0,Xe=!0;for(re=0;re=se+Ue||!fe?(ye=(se+Ue-le)/ie.partialLength,Ie=ce.point[0]+(ie.point[0]-ce.point[0])*ye,Le=ce.point[1]+(ie.point[1]-ce.point[1])*ye,S.translate(.005*(-e[0]*te[re].an),.01*(-e[1]*Pe)),pe=!1):fe&&(le+=ie.partialLength,(de+=1)>=fe.length&&(de=0,ge[me+=1]?fe=ge[me].points:be.v.c?(de=0,fe=ge[me=0].points):(le-=ie.partialLength,fe=null)),fe&&(ce=ie,he=(ie=fe[de]).partialLength));Me=te[re].an/2-te[re].add,S.translate(-Me,0,0)}else Me=te[re].an/2-te[re].add,S.translate(-Me,0,0),S.translate(.005*(-e[0]*te[re].an),.01*(-e[1]*Pe),0);for(Ae=0;AeOe;Oe+=1)Re[Oe]+=De.length?(ke.sc.v[Oe]-Re[Oe])*De[0]:(ke.sc.v[Oe]-Re[Oe])*De;if(ee.fillColorAnim&&ee.fc){if(ke.fc.propType)for(Oe=0;3>Oe;Oe+=1)Ve[Oe]+=De.length?(ke.fc.v[Oe]-Ve[Oe])*De[0]:(ke.fc.v[Oe]-Ve[Oe])*De;ke.fh.propType&&(Ve=De.length?addHueToRGB(Ve,ke.fh.v*De[0]):addHueToRGB(Ve,ke.fh.v*De)),ke.fs.propType&&(Ve=De.length?addSaturationToRGB(Ve,ke.fs.v*De[0]):addSaturationToRGB(Ve,ke.fs.v*De)),ke.fb.propType&&(Ve=De.length?addBrightnessToRGB(Ve,ke.fb.v*De[0]):addBrightnessToRGB(Ve,ke.fb.v*De))}}for(Ae=0;Aeze?0:ze),ee.strokeColorAnim&&(Ne="rgb("+Math.round(255*Re[0])+","+Math.round(255*Re[1])+","+Math.round(255*Re[2])+")"),ee.fillColorAnim&&ee.fc&&(Ge="rgb("+Math.round(255*Ve[0])+","+Math.round(255*Ve[1])+","+Math.round(255*Ve[2])+")"),this._hasMaskedPath){if(S.translate(0,-ee.ls),S.translate(0,.01*(e[1]*Pe)+ae,0),this._pathData.p.v){ve=(ie.point[1]-ce.point[1])/(ie.point[0]-ce.point[0]);var Ke=180*Math.atan(ve)/Math.PI;ie.point[0]t);)e+=1;return this.keysIndex!==e&&(this.keysIndex=e),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(o){for(var t=[],i=0,l=o.length,a=!1,p,d;i=p?56320<=(d=o.charCodeAt(i+1))&&57343>=d?(a||FontManager.isModifier(p,d)?(t[t.length-1]+=o.substr(i,2),a=!1):t.push(o.substr(i,2)),i+=1):t.push(o.charAt(i)):56319re&&" "!==ne[_]?(-1===oe?X+=1:_=oe,k+=z.finalLineHeight||1.2*z.finalSize,ne.splice(_,oe===_?1:0,"\r"),oe=-1,y=0):(y+=b,y+=ee);k+=W.ascent*z.finalSize/100,this.canResize&&z.finalSize>this.minimumFontSize&&CH?y:H,y=-2*ee,K="",U=!0,j+=1):K=ie,t.chars?(Q=t.getCharData(ie,W.fStyle,t.getFontByName(z.f).fFamily),b=U?0:Q.w*z.finalSize/100):b=t.measureText(K,z.f,z.finalSize)," "===ie?se+=b+ee:(y+=b+ee+se,se=0),l.push({l:b,an:b,add:f,n:U,anIndexes:[],val:K,line:j,animatorJustifyOffset:0}),2==N){if(f+=b,""===K||" "===K||_===X-1){for(""!==K&&" "!==K||(f-=b);G<=_;)l[G].an=f,l[G].ind=p,l[G].extra=b,G+=1;p+=1,f=0}}else if(!(3==N))l[p].ind=p,l[p].extra=0,p+=1;else if(f+=b,""===K||_===X-1){for(""===K&&(f-=b);G<=_;)l[G].an=f,l[G].ind=p,l[G].extra=b,G+=1;f=0,p+=1}if(z.l=l,H=y>H?y:H,q.push(y),z.sz)z.boxWidth=z.sz[0],z.justifyOffset=0;else switch(z.boxWidth=H,z.j){case 1:z.justifyOffset=-z.boxWidth;break;case 2:z.justifyOffset=-z.boxWidth/2;break;default:z.justifyOffset=0}z.lineWidths=q;var le=h.a,O,pe,de,me;J=le.length;var ce=[];for(Z=0;Z=p?1:0:v(0,t(.5/(p-A)+(r-A)/(p-A),1)));else if(3===c)h=k(h=p===A?r>=p?0:1:1-v(0,t(.5/(p-A)+(r-A)/(p-A),1)));else if(4===c)p===A?h=0:.5>(h=v(0,t(.5/(p-A)+(r-A)/(p-A),1)))?h*=2:h=1-2*(h-.5),h=k(h);else if(5===c){if(p===A)h=0;else{var f=p-A,d=-f/2+(r=t(v(0,r+.5-A),p-A)),m=f/2;h=Math.sqrt(1-d*d/(m*m))}h=k(h)}else 6===c?(p===A?h=0:(r=t(v(0,r+.5-A),p-A),h=(1+Math.cos(Math.PI+2*Math.PI*r/(p-A)))/2),h=k(h)):(r>=e(A)&&(h=v(0,t(0>r-A?t(p,1)-(A-r):p-r,1))),h=k(h));if(100!==this.sm.v){var u=.01*this.sm.v;0==u&&(u=1e-8);var C=.5-.5*u;ho){var l=r;r=o,o=l}this.finalS=r,this.finalE=o}},extendPrototype([DynamicPropertyContainer],a),{getTextSelectorProp:function(n,t,e){return new a(n,t,e)}}}(),poolFactory=function(n,t,e){var r=0,o=n,l=createSizedArray(o);return{newElement:function(){return r?l[r-=1]:t()},release:function(a){r===o&&(l=pooling.double(l),o*=2),e&&e(a),l[r]=a,r+=1}}},pooling={double:function(e){return e.concat(createSizedArray(e.length))}},pointPool=poolFactory(8,function(){return createTypedArray("float32",2)}),shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(a){var t=a._length,r;for(r=0;ra-this.layers[n].st&&this.buildItem(n),this.completeLayers=!!this.elements[n]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var a=this.layers.length,e;for(e=0;ee?0:e,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)):(this.canvasContext.globalAlpha*=0>e?0:e,void(this.globalData.currentGlobalAlpha=this.contextData.cO))},CanvasRenderer.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRenderer.prototype.save=function(a){if(this.renderConfig.clearCanvas){a&&this.canvasContext.save();var t=this.contextData.cTr.props,r;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var n=this.contextData.saved[this.contextData.cArrPos];for(r=0;16>r;r+=1)n[r]=t[r];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRenderer.prototype.restore=function(a){if(this.renderConfig.clearCanvas){a&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var t=this.contextData.saved[this.contextData.cArrPos],n=this.contextData.cTr.props,o;for(o=0;16>o;o+=1)n[o]=t[o];this.canvasContext.setTransform(t[0],t[1],t[4],t[5],t[12],t[13]),t=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=t,this.globalData.currentGlobalAlpha!==t&&(this.canvasContext.globalAlpha=t,this.globalData.currentGlobalAlpha=t)}else this.canvasContext.restore()},CanvasRenderer.prototype.configAnimation=function(a){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var e="0px 0px 0px";t.transformOrigin="0px 0px 0px",t.mozTransformOrigin="0px 0px 0px",t.webkitTransformOrigin="0px 0px 0px",t["-webkit-transform"]="0px 0px 0px",t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.data=a,this.layers=a.layers,this.transformCanvas={w:a.w,h:a.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(a,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(a.layers.length),this.updateContainerSize()},CanvasRenderer.prototype.updateContainerSize=function(){var l,p,d,m;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(l=this.animationItem.wrapper.offsetWidth,p=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",l*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",p*this.renderConfig.dpr)):(l=this.canvasContext.canvas.width*this.renderConfig.dpr,p=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var c=this.renderConfig.preserveAspectRatio.split(" "),s=c[1]||"meet",a=c[0]||"xMidYMid",n=a.substr(0,4),o=a.substr(4);d=l/p,(m=this.transformCanvas.w/this.transformCanvas.h)>d&&"meet"===s||md&&"slice"===s)?(l-this.transformCanvas.w*(p/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===n&&(md&&"slice"===s)?(l-this.transformCanvas.w*(p/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===o&&(m>d&&"meet"===s||md&&"meet"===s||m=a)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRenderer.prototype.createThreeDContainer=function(l,t){var e=createTag("div"),s,p;styleDiv(e);var d=createTag("div");if(styleDiv(d),"3d"===t){(s=e.style).width=this.globalData.compSize.w+"px",s.height=this.globalData.compSize.h+"px";var a="50% 50%";s.webkitTransformOrigin="50% 50%",s.mozTransformOrigin="50% 50%",s.transformOrigin="50% 50%";var n="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(p=d.style).transform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)",p.webkitTransform="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)"}e.appendChild(d);var o={container:d,perspectiveElem:e,startPos:l,endPos:l,type:t};return this.threeDElements.push(o),o},HybridRenderer.prototype.build3dContainers=function(){var a=this.layers.length,n="",o,s;for(o=0;oa?(n=l/this.globalData.compSize.w,p=l/this.globalData.compSize.w,d=0,m=(s-this.globalData.compSize.h*(l/this.globalData.compSize.w))/2):(n=s/this.globalData.compSize.h,p=s/this.globalData.compSize.h,d=(l-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,m=0);var c=this.resizerElem.style;c.webkitTransform="matrix3d("+n+",0,0,0,0,"+p+",0,0,0,0,1,0,"+d+","+m+",0,1)",c.transform=c.webkitTransform},HybridRenderer.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRenderer.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRenderer.prototype.show=function(){this.resizerElem.style.display="block"},HybridRenderer.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var a=this.globalData.compSize.w,e=this.globalData.compSize.h,r=this.threeDElements.length,n;for(n=0;nthis.storedData[n].x.v?("erode"!==this.storedData[n].lastOperator&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+locationHref+"#"+this.storedData[n].filterId+")")),o.setAttribute("radius",-this.storedData[n].x.v)):("dilate"!==this.storedData[n].lastOperator&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",2*this.storedData[n].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(o,t,e){var r=" M"+t.v[0][0]+","+t.v[0][1],l,p;for(p=t._length,l=1;l=this.finalTransform.mProp.o.v?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var a=this.renderableComponents.length,e;for(e=0;e=g&&(g=-.99);var S=E*g,b=Math.cos(y+t.a.v)*S+l[0],P=Math.sin(y+t.a.v)*S+l[1];r.setAttribute("fx",b),r.setAttribute("fy",P),h&&!t.g._collapsable&&(t.of.setAttribute("fx",b),t.of.setAttribute("fy",P))}}function n(a,t,e){var r=t.style,n=t.d;n&&(n._mdf||e)&&n.dashStr&&(r.pElem.setAttribute("stroke-dasharray",n.dashStr),r.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),t.c&&(t.c._mdf||e)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||e)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||e)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}var y=new Matrix,t=new Matrix;return{createRenderFunction:function(e){switch(e.ty){case"fl":return i;case"gf":return a;case"gs":return s;case"st":return n;case"sh":case"el":case"rc":case"sr":return r;case"tr":return l;default:return null}}}}();ShapeTransformManager.prototype={addTransformSequence:function(a){var t=a.length,r="_",n;for(n=0;nr?this.textSpans[r]:createNS(o?"path":"text"),F<=r&&(h.setAttribute("stroke-linecap","butt"),h.setAttribute("stroke-linejoin","round"),h.setAttribute("stroke-miterlimit","4"),this.textSpans[r]=h,this.layerElement.appendChild(h)),h.style.display="inherit"),C.reset(),C.scale(x.finalSize/100,x.finalSize/100),D&&(a[r].n&&(f=-w,S+=x.yOffset,S+=T?1:0,T=!1),this.applyTextPropertiesToMatrix(x,C,a[r].line,f,S),f+=a[r].l||0,f+=w),o?(y=(b=(M=this.globalData.fontManager.getCharData(x.finalText[r],A.fStyle,this.globalData.fontManager.getFontByName(x.f).fFamily))&&M.data||{}).shapes?b.shapes[0].it:[],D?p+=this.createPathShape(C,y):h.setAttribute("d",this.createPathShape(C,y))):(D&&h.setAttribute("transform","translate("+C.props[12]+","+C.props[13]+")"),h.textContent=a[r].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"));D&&h&&h.setAttribute("d",p)}else{var I=this.textContainer,P="start";switch(x.j){case 1:P="end";break;case 2:P="middle";break;default:P="start"}I.setAttribute("text-anchor",P),I.setAttribute("letter-spacing",w);var L=this.buildTextContents(x.finalText);for(k=L.length,S=x.ps?x.ps[1]+x.ascent:0,r=0;r=s;)y=(d=s/256)<=g?0>f?i:r:d>=h?0>f?r:i:r+u*Math.pow((d-m)/f,1/e),l[p]=y,p+=1,s+=256/255;return l.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(a){if(a||this.filterManager._mdf){var t=this.filterManager.effectElements,r;this.feFuncRComposed&&(a||t[3].p._mdf||t[4].p._mdf||t[5].p._mdf||t[6].p._mdf||t[7].p._mdf)&&(r=this.getTableValue(t[3].p.v,t[4].p.v,t[5].p.v,t[6].p.v,t[7].p.v),this.feFuncRComposed.setAttribute("tableValues",r),this.feFuncGComposed.setAttribute("tableValues",r),this.feFuncBComposed.setAttribute("tableValues",r)),this.feFuncR&&(a||t[10].p._mdf||t[11].p._mdf||t[12].p._mdf||t[13].p._mdf||t[14].p._mdf)&&(r=this.getTableValue(t[10].p.v,t[11].p.v,t[12].p.v,t[13].p.v,t[14].p.v),this.feFuncR.setAttribute("tableValues",r)),this.feFuncG&&(a||t[17].p._mdf||t[18].p._mdf||t[19].p._mdf||t[20].p._mdf||t[21].p._mdf)&&(r=this.getTableValue(t[17].p.v,t[18].p.v,t[19].p.v,t[20].p.v,t[21].p.v),this.feFuncG.setAttribute("tableValues",r)),this.feFuncB&&(a||t[24].p._mdf||t[25].p._mdf||t[26].p._mdf||t[27].p._mdf||t[28].p._mdf)&&(r=this.getTableValue(t[24].p.v,t[25].p.v,t[26].p.v,t[27].p.v,t[28].p.v),this.feFuncB.setAttribute("tableValues",r)),this.feFuncA&&(a||t[31].p._mdf||t[32].p._mdf||t[33].p._mdf||t[34].p._mdf||t[35].p._mdf)&&(r=this.getTableValue(t[31].p.v,t[32].p.v,t[33].p.v,t[34].p.v,t[35].p.v),this.feFuncA.setAttribute("tableValues",r))}},SVGDropShadowEffect.prototype.renderFrame=function(n){if(n||this.filterManager._mdf){if((n||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),n||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((n||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),n||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var e=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,o=e*Math.cos(r),s=e*Math.sin(r);this.feOffset.setAttribute("dx",o),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];SVGMatte3Effect.prototype.findSymbol=function(a){for(var t=0,n=_svgMatteSymbols.length;tn&&"xMidYMid slice"===o||a=p&&(p=-.99);var x=_*p,f=Math.cos(l+t.a.v)*x+n[0],d=Math.sin(l+t.a.v)*x+n[1];s=b.createRadialGradient(f,d,0,n[0],n[1],_)}var m=v.g.p,u=t.g.c,y=1;for(h=0;h=d)){for(l=0;lm;++m)g=6*d[m]-12*t[m]+6*e[m],c=-3*d[m]+9*t[m]-9*e[m]+3*r[m],u=3*t[m]-3*d[m],g|=0,u|=0,0==(c|=0)&&0===g||(0===c?0<(y=-u/g)&&1>y&&i[m].push(this.calculateF(y,d,t,e,r,m)):0<=(v=g*g-4*u*c)&&(0<(b=(-g+bmSqrt(v))/(2*c))&&1>b&&i[m].push(this.calculateF(b,d,t,e,r,m)),0<(_=(-g-bmSqrt(v))/(2*c))&&1>_&&i[m].push(this.calculateF(_,d,t,e,r,m))));this.shapeBoundingBox.left=bmMin.apply(null,i[0]),this.shapeBoundingBox.top=bmMin.apply(null,i[1]),this.shapeBoundingBox.right=bmMax.apply(null,i[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,i[1])},HShapeElement.prototype.calculateF=function(n,t,e,r,o,s){return bmPow(1-n,3)*t[s]+3*bmPow(1-n,2)*n*e[s]+3*(1-n)*bmPow(n,2)*r[s]+bmPow(n,3)*o[s]},HShapeElement.prototype.calculateBoundingBox=function(a,t){var e=a.length,n;for(n=0;n=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var a=this.tempBoundingBox,t=999999;if(a.x=999999,a.xMax=-999999,a.y=999999,a.yMax=-999999,this.calculateBoundingBox(this.itemsData,a),a.width=a.xMaxthis.animationData.op&&(this.animationData.op=o.op,this.totalFrames=Math.floor(o.op-this.animationData.ip));var t=this.animationData.layers,i=t.length,l=o.layers,a=l.length,n,p;for(p=0;pthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(a){for(var t=0,n;t=this.totalFrames-1&&0=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):0>t?this.checkSegments(t%this.totalFrames)||(!this.loop||0>=this.playCount--&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(a,t){this.playCount=0,a[1]this.playSpeed?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=a[0]-a[1],this.timeCompleted=this.totalFrames,this.firstFrame=a[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):a[1]>a[0]&&(0>this.frameModifier&&(0>this.playSpeed?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=a[1]-a[0],this.timeCompleted=this.totalFrames,this.firstFrame=a[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(a,t){var e=-1;this.isPaused&&(this.currentRawFrame+this.firstFramet&&(e=t-a)),this.firstFrame=a,this.totalFrames=t-a,this.timeCompleted=this.totalFrames,-1!=e&&this.goToAndStop(e,!0)},AnimationItem.prototype.playSegments=function(a,t){if(t&&(this.segments.length=0),"object"==typeof a[0]){var e=a.length,n;for(n=0;ne?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(a,t){t&&this.name!==t||this.audioController.setVolume(a)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(a){var t="";if(a.e)t=a.p;else if(this.assetsPath){var n=a.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=a.u?a.u:"",t+=a.p;return t},AnimationItem.prototype.getAssetData=function(a){for(var t=0,n=this.assets.length;tn){var o=n;n=t,t=o}return Math.min(Math.max(a,t),n)}function radiansToDegrees(e){return e/degToRads}function degreesToRadians(e){return e*degToRads}function length(a,t){if("number"==typeof a||a instanceof Number)return t=t||0,Math.abs(a-t);var n;t||(t=helperLengthArray);var o=Math.min(a.length,t.length),i=0;for(n=0;ne&&(e+=1),1e?t:e<2/3?a+6*((t-a)*(2/3-e)):a}function hslToRgb(l){var t=l[0],s=l[1],a=l[2],n,p,d;if(0===s)n=a,d=a,p=a;else{var m=.5>a?a*(1+s):a+s-a*s,o=2*a-m;n=hue2rgb(o,m,t+1/3),p=hue2rgb(o,m,t),d=hue2rgb(o,m,t-1/3)}return[n,p,d,l[3]]}function linear(p,t,d,m,c){if(void 0!==m&&void 0!==c||(m=t,c=d,t=0,d=1),d=d)return c;var a=d===t?0:(p-t)/(d-t),o;if(!m.length)return m+(c-m)*a;var g=m.length,h=createTypedArray("float32",g);for(o=0;ot&&(t=0);var c=p(t);if($bm_isInstanceOfArray(i)){var n=i.length,f=createTypedArray("float32",n),l;for(l=0;ldata.k[s].t&&ndata.k[s+1].t-n?(l=s+2,p=data.k[s+1].t):(l=s+1,p=data.k[s].t);break}}-1===l&&(l=s+1,p=data.k[s].t)}var d={};return d.index=l,d.time=p/elem.comp.globalData.frameRate,d}function key(a){var n,o,l;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+a);a-=1,n={time:data.k[a].t/elem.comp.globalData.frameRate,value:[]};var p=Object.prototype.hasOwnProperty.call(data.k[a],"s")?data.k[a].s:data.k[a-1].e;for(l=p.length,o=0;oh.length-1)&&(v=h.length-1),p=l-(_=h[h.length-1-v].t)),"pingpong"!==g){if("offset"===g){var A=this.getValueAtTime(_/this.comp.globalData.frameRate,0),c=this.getValueAtTime(l/this.comp.globalData.frameRate,0),f=this.getValueAtTime(((r-_)%p+_)/this.comp.globalData.frameRate,0),d=Math.floor((r-_)/p);if(this.pv.length){for(P=(k=Array(A.length)).length,x=0;x=l)return this.pv;if(b?_=l+(p=v?Math.abs(this.elem.comp.globalData.frameRate*v):Math.max(0,this.elem.data.op-l)):((!v||v>h.length-1)&&(v=h.length-1),p=(_=h[v].t)-l),"pingpong"!==g){if("offset"===g){var A=this.getValueAtTime(l/this.comp.globalData.frameRate,0),c=this.getValueAtTime(_/this.comp.globalData.frameRate,0),f=this.getValueAtTime((p-(l-r)%p+l)/this.comp.globalData.frameRate,0),d=Math.floor((l-r)/p)+1;if(this.pv.length){for(P=(k=Array(A.length)).length,x=0;x=(p=Math.floor(p||5)))return this.pv;var d=this.comp.renderedFrame/this.comp.globalData.frameRate,s=d-l,a=1this.appliedTransformations){var e=this.a.getValueAtTime(g);t.translate(-e[0]*this.a.mult,-e[1]*this.a.mult,e[2]*this.a.mult)}if(2>this.appliedTransformations){var r=this.s.getValueAtTime(g);t.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&3>this.appliedTransformations){var i=this.sk.getValueAtTime(g),s=this.sa.getValueAtTime(g);t.skewFromAxis(-i*this.sk.mult,s*this.sa.mult)}if(this.r&&4>this.appliedTransformations){var a=this.r.getValueAtTime(g);t.rotate(-a*this.r.mult)}else if(!this.r&&4>this.appliedTransformations){var n=this.rz.getValueAtTime(g),o=this.ry.getValueAtTime(g),h=this.rx.getValueAtTime(g),l=this.or.getValueAtTime(g);t.rotateZ(-n*this.rz.mult).rotateY(o*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-l[2]*this.or.mult).rotateY(l[1]*this.or.mult).rotateX(l[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(g),c=this.py.getValueAtTime(g);if(this.data.p.z){var f=this.pz.getValueAtTime(g);t.translate(p*this.px.mult,c*this.py.mult,-f*this.pz.mult)}else t.translate(p*this.px.mult,c*this.py.mult,0)}else{var d=this.p.getValueAtTime(g);t.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}function r(){}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(a,t,e){var r=s(a,t,e);return r.getValueAtTime=r.dynamicProperties.length?m.bind(r):i.bind(r),r.setGroupProperty=expressionHelpers.setGroupProperty,r};var c=PropertyFactory.getProp;PropertyFactory.getProp=function(r,n,s,a,o){var i=c(r,n,s,a,o);i.getValueAtTime=i.kf?expressionHelpers.getValueAtTime.bind(i):expressionHelpers.getStaticValueAtTime.bind(i),i.setGroupProperty=expressionHelpers.setGroupProperty,i.loopOut=d,i.loopIn=t,i.smooth=e,i.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(i),i.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(i),i.numKeys=1===n.a?n.k.length:0,i.propertyIndex=n.ix;var l=0;return 0!==s&&(l=createTypedArray("float32",1===n.a?n.k[0].s.length:n.k.length)),i._cachingAtTime={lastFrame:-999999,lastIndex:0,value:l},expressionHelpers.searchExpressions(r,n,i),i.k&&o.addDynamicProperty(i),i};var a=ShapePropertyFactory.getConstructorFunction(),n=ShapePropertyFactory.getKeyframedConstructorFunction();r.prototype={vertices:function(l,t){this.k&&this.getValue();var e=this.v,p;void 0!==t&&(e=this.getValueAtTime(t,0));var d=e._length,s=e[l],a=e.v,n=createSizedArray(d);for(p=0;pa){var y=n,v=e.c&&n===g-1?0:n+1,b=(a-h)/s[n].addedLength;u=bez.getPointInSegment(e.v[y],e.v[v],e.o[y],e.i[v],b,s[n]);break}h+=s[n].addedLength,n+=1}return u||(u=e.c?[e.v[0][0],e.v[0][1]]:[e.v[e._length-1][0],e.v[e._length-1][1]]),u},vectorOnPath:function(l,p,e){1==l?l=this.v.c:0==l&&(l=.999);var r=this.pointOnPath(l,p),i=this.pointOnPath(l+.001,p),s=i[0]-r[0],a=i[1]-r[1],n=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));return 0===n?[0,0]:"tangent"===e?[s/n,a/n]:[-a/n,s/n]},tangentOnPath:function(a,t){return this.vectorOnPath(a,t,"tangent")},normalOnPath:function(a,t){return this.vectorOnPath(a,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([r],a),extendPrototype([r],n),n.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:-999999}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime=(e=void 0===e?1:e)?a:t(e-1)}},PropertyInterface=function(a,n){var e={_name:a};return function(a){return 0>=(a=void 0===a?1:a)?e:n(a-1)}},ShapeExpressionInterface=function(){function d(c,t,n){var f=[],m=c?c.length:0,u;for(u=0;uthis._onVisibilityChange()),this.destroy()}render(){var a=this.controls?"main controls":"main",t=this.controls?"animation controls":"animation";return $(_templateObject||(_templateObject=_taggedTemplateLiteral([" \n \n ","\n \n ","\n "])),a,this.description,t,this.background,this.currentState===exports.PlayerState.Error?$(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["
\u26A0\uFE0F
"]))):void 0,this.controls?this.renderControls():void 0)}firstUpdated(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver(e=>{e[0].isIntersecting?this.currentState===exports.PlayerState.Frozen&&this.play():this.currentState===exports.PlayerState.Playing&&this.freeze()}),this._io.observe(this.container)),void 0!==document.hidden&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange()),this.src&&this.load(this.src),this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Rendered))}renderControls(){var a=this.currentState===exports.PlayerState.Playing,t=this.currentState===exports.PlayerState.Paused,e=this.currentState===exports.PlayerState.Stopped;return $(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n \n \n ","\n \n \n \n \n \n \n \n \n \n \n \n \n \n "])),this.togglePlay,a||t?"active":"",$(a?_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n \n "])):_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n \n "]))),this.stop,e?"active":"",this.seeker,this._handleSeekChange,()=>{this._prevState=this.currentState,this.freeze()},()=>{this._prevState===exports.PlayerState.Playing&&this.play()},this.seeker,this.toggleLooping,this.loop?"active":"")}_onVisibilityChange(){!0===document.hidden&&this.currentState===exports.PlayerState.Playing?this.freeze():this.currentState===exports.PlayerState.Frozen&&this.play()}_handleSeekChange(a){if(this._lottie&&!isNaN(a.target.value)){var t=a.target.value/100*this._lottie.totalFrames;this.seek(t)}}_attachEventListeners(){this._lottie.addEventListener("enterFrame",()=>{this.seeker=100*(this._lottie.currentFrame/this._lottie.totalFrames),this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))}),this._lottie.addEventListener("complete",()=>{if(this.currentState===exports.PlayerState.Playing){if(!this.loop||this.count&&this._counter>=this.count){if(this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Complete)),this.mode!==exports.PlayMode.Bounce)return;if(0===this._lottie.currentFrame)return}this.mode===exports.PlayMode.Bounce?(this.count&&(this._counter+=.5),setTimeout(()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Loop)),this.currentState===exports.PlayerState.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())},this.intermission)):(this.count&&(this._counter+=1),window.setTimeout(()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Loop)),this.currentState===exports.PlayerState.Playing&&(-1===this.direction?(this.seek("99%"),this.play()):(this._lottie.stop(),this._lottie.play()))},this.intermission))}else this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Complete))}),this._lottie.addEventListener("DOMLoaded",()=>{this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&(-1===this.direction&&this.seek("100%"),this.play()),this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Ready))}),this._lottie.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Load))}),this._lottie.addEventListener("data_failed",()=>{this.currentState=exports.PlayerState.Error,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Error))}),this.container.addEventListener("mouseenter",()=>{this.hover&&this.currentState!==exports.PlayerState.Playing&&this.play()}),this.container.addEventListener("mouseleave",()=>{this.hover&&this.currentState===exports.PlayerState.Playing&&this.stop()})}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=exports.PlayerState.Frozen,this.dispatchEvent(new CustomEvent(exports.PlayerEvents.Freeze)))}},__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"autoplay",void 0),__decorate([e$5({type:String,reflect:!0})],exports.LottiePlayer.prototype,"background",void 0),__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"controls",void 0),__decorate([e$5({type:Number})],exports.LottiePlayer.prototype,"count",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"currentState",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"description",void 0),__decorate([e$5({type:Number})],exports.LottiePlayer.prototype,"direction",void 0),__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"hover",void 0),__decorate([e$5()],exports.LottiePlayer.prototype,"intermission",void 0),__decorate([e$5({type:Boolean,reflect:!0})],exports.LottiePlayer.prototype,"loop",void 0),__decorate([e$5()],exports.LottiePlayer.prototype,"mode",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"preserveAspectRatio",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"renderer",void 0),__decorate([e$5()],exports.LottiePlayer.prototype,"seeker",void 0),__decorate([e$5({type:Number})],exports.LottiePlayer.prototype,"speed",void 0),__decorate([e$5({type:String})],exports.LottiePlayer.prototype,"src",void 0),__decorate([e$5({type:Boolean})],exports.LottiePlayer.prototype,"webworkers",void 0),__decorate([i(".animation")],exports.LottiePlayer.prototype,"container",void 0),exports.LottiePlayer=__decorate([n$1("lottie-player")],exports.LottiePlayer),exports.parseSrc=parseSrc,Object.defineProperty(exports,"__esModule",{value:!0})});