@returningai/widget-sdk 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -28
- package/dist/rai-widget.iife.js +1 -1
- package/dist/rai-widget.js +10415 -48
- package/dist/types/BaseWidget.d.ts +2 -0
- package/dist/types/types.d.ts +1 -1
- package/package.json +4 -1
package/dist/rai-widget.iife.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var RaiWidget=function(e){"use strict";var t=Object.defineProperty,r=(e,r,i)=>((e,r,i)=>r in e?t(e,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[r]=i)(e,"symbol"!=typeof r?r+"":r,i);function i(e){return`${e.storagePrefix}-${e.widgetId}-auth`}function a(e){return`${e.storagePrefix}-${e.widgetId}-error-settings`}function n(e){try{localStorage.removeItem(i(e))}catch{}}function o(e){try{const t=localStorage.getItem(a(e));if(!t)return null;const r=JSON.parse(t);return r.cachedAt&&Date.now()-r.cachedAt<36e5?r:(localStorage.removeItem(a(e)),null)}catch{return null}}function s(e){return!e||Date.now()>=e-6e4}function l(e,t,r,a){t.accessToken=r.accessToken,t.refreshToken=r.refreshToken,t.tokenFamily=r.tokenFamily??null;const n=Date.now();t.accessTokenExpiry=n+1e3*r.accessTokenTTL,t.refreshTokenExpiry=n+1e3*r.refreshTokenTTL,function(e,t){try{const r={refreshToken:t.refreshToken,tokenFamily:t.tokenFamily,refreshTokenExpiry:t.refreshTokenExpiry};localStorage.setItem(i(e),JSON.stringify(r))}catch{}}(e,t),e.autoRefresh&&a&&a()}async function c(e,t,r){const i=crypto.randomUUID(),a=Date.now(),n=e.maxRetries??3,o=e.retryDelay??500;for(let s=0;s<=n;s++){s>0&&await new Promise(e=>setTimeout(e,o*(1<<s-1)));let c=!1;try{const n={nonce:i,timestamp:a,widgetType:e.widgetType};e.embedToken&&(n.embedToken=e.embedToken),e.userIdentifiers&&Object.keys(e.userIdentifiers).length>0&&(n.userIdentifiers=e.userIdentifiers);const o=await fetch(`${e.apiUrl}/${e.widgetId}/auth/serverless`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n),credentials:"include"});if(!o.ok){c=o.status>=400&&o.status<500;const e=await o.json().catch(()=>({error:"Authentication failed"}));throw c&&(t.lastAuthError={status:o.status,error:null==e?void 0:e.error,hint:null==e?void 0:e.hint},console.error(`[rai-widget] /auth/serverless ${o.status}:`,(null==e?void 0:e.error)||"Authentication failed",(null==e?void 0:e.hint)?`— ${e.hint}`:"")),new Error((null==e?void 0:e.error)||`HTTP ${o.status}`)}t.lastAuthError=null;const s=await o.json();if(!s.accessToken||!s.refreshToken)throw new Error("Invalid authentication response");return l(e,t,s,r),t.isAuthenticated=!0,!0}catch{if(c||s===n)return t.isAuthenticated=!1,!1}}return t.isAuthenticated=!1,!1}async function d(e,t,r){const i=e.maxRetries??3,a=e.retryDelay??500;for(let n=0;n<=i;n++){n>0&&await new Promise(e=>setTimeout(e,a*(1<<n-1)));let o=!1;try{const i=await fetch(e.authUrl,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"}});if(!i.ok)throw o=i.status>=400&&i.status<500,new Error(`HTTP ${i.status}`);const a=await i.json();if(!a.token)throw new Error("Invalid proxy auth response");const n=a.expiresIn??300;return t.accessToken=a.token,t.refreshToken=null,t.tokenFamily=null,t.accessTokenExpiry=Date.now()+1e3*n,t.refreshTokenExpiry=null,t.isAuthenticated=!0,e.autoRefresh&&r&&r(),!0}catch{if(o||n===i)return t.isAuthenticated=!1,!1}}return t.isAuthenticated=!1,!1}async function h(e,t,r,i){return t.isRefreshing?t.refreshPromise:!!t.refreshToken&&(t.isRefreshing=!0,t.refreshPromise=(async()=>{try{const a=await fetch(`${e.apiUrl}/${e.widgetId}/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.refreshToken}`},body:JSON.stringify({widgetType:e.widgetType})});if(!a.ok){if(401===a.status||403===a.status)return g(t),n(e),c(e,t,r);const i=await a.json().catch(()=>({error:"Token refresh failed"}));throw new Error(i.error||`HTTP ${a.status}`)}const o=await a.json();if(!o.accessToken||!o.refreshToken)throw new Error("Invalid refresh response");return l(e,t,o,r),i&&i(),!0}catch{return g(t),n(e),c(e,t,r)}finally{t.isRefreshing=!1,t.refreshPromise=null}})(),t.refreshPromise)}const u=new Map;function m(e,t){t.configured&&(e.errorSettings={errorMessage:t.errorMessage,modalColor:t.modalColor,backgroundImage:t.backgroundImage}),t.loadingAnimation&&(e.loadingAnimation=t.loadingAnimation),t.themePalette&&(e.themePalette=t.themePalette),"string"==typeof t.font&&t.font&&(e.font=t.font),"light"!==t.defaultColorSchema&&"dark"!==t.defaultColorSchema||(e.defaultColorSchema=t.defaultColorSchema)}async function f(e,t,r={}){if(!r.skipCache){const r=o(e);if(r)return m(t,r),t.errorSettings}const i=`${e.apiUrl}/${e.widgetId}/auth/error-settings?widgetType=${e.widgetType}`;let n=u.get(i);n||(n=(async()=>{try{const t=await fetch(i,{method:"GET",headers:{"Content-Type":"application/json"}});if(!t.ok)return null;const r=await t.json();return function(e,t){try{localStorage.setItem(a(e),JSON.stringify({...t,cachedAt:Date.now()}))}catch{}}(e,r),r}catch{return null}finally{u.delete(i)}})(),u.set(i,n));const s=await n;return s?(m(t,s),t.errorSettings):null}function g(e){e.accessToken=null,e.refreshToken=null,e.tokenFamily=null,e.accessTokenExpiry=null,e.refreshTokenExpiry=null,e.isAuthenticated=!1,e.isRefreshing=!1,e.refreshPromise=null,e.lastAuthError=null,e.refreshTimer&&(clearTimeout(e.refreshTimer),e.refreshTimer=null),e.syncTimer&&(clearInterval(e.syncTimer),e.syncTimer=null)}function p(e,t,r){var i;if(t.accessToken)try{null==(i=r.contentWindow)||i.postMessage({type:"RETURNINGAI_WIDGET_TOKEN",value:{widgetId:e.widgetId,token:t.accessToken,...void 0!==e.customData&&{customData:e.customData}}},e.widgetDomain)}catch{}}function y(e,t,r,i,a,n,o,l){const u=function(e,t){let r=null;return{call(i){r&&clearTimeout(r),r=setTimeout(()=>{e(i),r=null},t)},cancel(){r&&(clearTimeout(r),r=null)}}}(e=>{i.style.height=`${e}px`,null==l||l("rai-height-change",{height:e})},e.heightDebounce??100),m=async r=>{var m;if(r.origin!==e.widgetDomain)return;if(!r.data||"string"!=typeof r.data.type)return;const{type:f,containerId:g,widgetId:p,payload:y}=r.data;switch(f){case"RETURNINGAI_WIDGET_REQUEST_TOKEN":try{const r=await async function(e,t,r){if(t.accessToken&&!s(t.accessTokenExpiry))return t.accessToken;if(e.authUrl){if(await d(e,t,r)&&t.accessToken)return t.accessToken;throw new Error("Unable to obtain valid token")}if(await h(e,t,r)&&t.accessToken)return t.accessToken;if(await c(e,t,r)&&t.accessToken)return t.accessToken;throw new Error("Unable to obtain valid token")}(e,t,a);null==(m=i.contentWindow)||m.postMessage({type:"RETURNINGAI_WIDGET_TOKEN",value:{token:r,widgetId:e.widgetId,...void 0!==e.customData&&{customData:e.customData}}},e.widgetDomain)}catch{}break;case"WIDGET_HEIGHT_UPDATE":{const e=Number(null==y?void 0:y.height);Number.isFinite(e)&&e>0&&u.call(e);break}case"WIDGET_READY":if(void 0!==p&&p!==e.widgetId)break;if(void 0!==g&&g!==e.container)break;i.classList.add("loaded"),o&&o(),null==l||l("rai-ready");break;case"WIDGET_ERROR":o&&o();break;case"WIDGET_LOGOUT":n&&await n()}};return window.addEventListener("message",m),()=>{window.removeEventListener("message",m),u.cancel()}}const w=new Set(["community-id","channel-id","widget-id","widget-type","theme","container","width","height","api-url","widget-url","auto-refresh","debug","storage-prefix","max-retries","retry-delay","height-debounce","locale","custom-data","retry-label","auth-url","bundle-url","embed-token","v2-api-url","domain-key","loading-text","bg","text","accent","font"]),b={store:"RaiStoreWidget",channel:"RaiChannelWidget",social:"RaiSocialWidget",milestone:"RaiMilestoneWidget","currency-view":"RaiCurrencyWidget","referral-conditions":"RaiReferralWidget",custom:"RaiCustomWidget"},k={"RAI-STORE-WIDGET":"store","RAI-CHANNEL-WIDGET":"channel","RAI-MILESTONE-WIDGET":"milestone","RAI-SOCIAL-WIDGET":"social","RAI-CURRENCY-WIDGET":"currency-view","RAI-REFERRAL-WIDGET":"referral-conditions","RAI-CUSTOM-WIDGET":"custom","RAI-WIDGET":"store"};const v=new Set;const x=["script","iframe","object","embed"],T=["src","href","xlink:href"];class E extends HTMLElement{constructor(){super(),r(this,"shadow"),r(this,"config"),r(this,"state",{accessToken:null,refreshToken:null,tokenFamily:null,accessTokenExpiry:null,refreshTokenExpiry:null,refreshTimer:null,syncTimer:null,iframe:null,isAuthenticated:!1,isRefreshing:!1,refreshPromise:null,errorSettings:null,loadingAnimation:null,themePalette:null,font:null,defaultColorSchema:null,lastAuthError:null}),r(this,"loaderEl",null),r(this,"errorEl",null),r(this,"msgEl",null),r(this,"cleanupListener"),r(this,"intersectionObserver"),r(this,"themeObserver"),this.shadow=this.attachShadow({mode:"closed"})}connectedCallback(){this.config=function(e,t){const r=t=>e.getAttribute(t)??e.getAttribute(`data-${t}`)??"",i=(e,t)=>{const i=parseInt(r(e),10);return Number.isFinite(i)&&i>=0?i:t},a=!!r("community-id"),n=r("community-id")||r("widget-id")||t||"";if(n&&!/^[a-zA-Z0-9_\-=]{8,}$/.test(n))throw new Error(`[rai-widget] Invalid community-id: "${n}"`);const o=r("channel-id")||void 0;if(o&&!/^[a-zA-Z0-9_\-=]{8,}$/.test(o))throw new Error(`[rai-widget] Invalid channel-id: "${o}"`);const s=r("widget-type")||k[e.tagName]||"store";let l;l=a?"store"===s?n:"channel"===s?o?btoa(o):n:n?btoa(n):n:n;let c,d=r("widget-url")||"https://widget.returningai.com";d.endsWith("store-widget")&&(d=`${d}/${n}/open-widget`);try{c=new URL(d).origin}catch{c=d}if(d.includes("store-widget")){const e=new URL(d);e.searchParams.set("color",r("theme")||"light"),d=e.toString()}const h=r("container")||r("data-container")||`returning-ai-widget-${l}`,u={};Array.from(e.attributes).forEach(e=>{const t=e.name.toLowerCase();if(!t.startsWith("data-"))return;const r=t.slice(5);w.has(r)||(u[t]=e.value)});const m=(()=>{const e=r("custom-data");if(e)try{return JSON.parse(e)}catch{return}})();return{communityId:n,channelId:o,widgetId:l,widgetType:s,theme:r("theme")||"light",themeExplicit:!!r("theme"),container:h,width:r("width")||"100%",height:r("height")||"600px",apiUrl:r("api-url")||"https://sgtr-eks-widgets.genesiv.org",widgetUrl:d,widgetDomain:c,autoRefresh:"false"!==r("auto-refresh"),debug:"true"===r("debug"),storagePrefix:r("storage-prefix")||"returning-ai-widget",userIdentifiers:u,maxRetries:i("max-retries",3),retryDelay:i("retry-delay",500),heightDebounce:i("height-debounce",100),locale:r("locale")||void 0,customData:m,authUrl:r("auth-url")||void 0,bundleUrl:r("bundle-url")||void 0,embedToken:r("embed-token")||void 0,v2ApiUrl:r("v2-api-url")||void 0,domainKey:r("domain-key")||void 0,loadingText:r("loading-text")||"Loading ...",firstPaintColors:(()=>{const e=r("bg")||void 0,t=r("text")||void 0,i=r("accent")||void 0;return e||t||i?{bg:e,text:t,accent:i}:void 0})(),firstPaintFont:r("font")||void 0}}(this,void 0);const e=document.createElement("style");e.textContent=':host{display:block;position:relative;width:100%;height:100%}.rai-loader{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;width:100%;height:100%;background:var(--background-5, var(--rai-loader-bg, #ffffff));border-radius:8px;z-index:10;transition:opacity .3s ease-out;font-family:var(--rai-loader-font, "Roboto", system-ui, -apple-system, sans-serif)}.rai-loader.fade-out{opacity:0;pointer-events:none}.rai-loader-text{margin:.5rem 0 0;font-size:1.125rem;line-height:1.75rem;font-weight:400;letter-spacing:normal;color:var(--accent-1, var(--rai-accent, #000000));text-align:center}@media (min-width: 768px){.rai-loader-text{font-size:1.5rem;line-height:2rem}}.rai-error{display:none;position:absolute;top:0;left:0;width:100%;height:100%;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:var(--rai-error-bg, #1a1a1a);border-radius:8px;padding:24px;box-sizing:border-box;text-align:center;color:var(--rai-error-text, #9ca3af);font-family:system-ui,-apple-system,sans-serif;z-index:10}.rai-error.visible{display:flex}iframe{display:block;border:none;opacity:0;transition:opacity .3s ease-in}iframe.loaded{opacity:1}.rai-lottie-loader{width:100px;height:100px}.rai-lottie-loader svg{width:100%!important;height:100%!important}.rai-lottie-spinner{width:32px;height:32px;margin:34px auto;border:3px solid var(--rai-text4, #6b7280);border-top-color:var(--rai-accent, #000000);border-radius:50%;animation:rai-spin .7s linear infinite}@keyframes rai-spin{to{transform:rotate(360deg)}}.rai-sdk-loader{position:relative;width:75px;height:100px}.rai-sdk-loader__bar{position:absolute;bottom:0;width:10px;height:50%;background:var(--rai-accent, #000000);transform-origin:center bottom;box-shadow:1px 1px #0003}.rai-sdk-loader__bar:nth-child(1){left:0;transform:scaleY(.2);animation:rai-sdk-barUp1 4s infinite}.rai-sdk-loader__bar:nth-child(2){left:15px;transform:scaleY(.4);animation:rai-sdk-barUp2 4s infinite}.rai-sdk-loader__bar:nth-child(3){left:30px;transform:scaleY(.6);animation:rai-sdk-barUp3 4s infinite}.rai-sdk-loader__bar:nth-child(4){left:45px;transform:scaleY(.8);animation:rai-sdk-barUp4 4s infinite}.rai-sdk-loader__bar:nth-child(5){left:60px;transform:scale(1);animation:rai-sdk-barUp5 4s infinite}.rai-sdk-loader__ball{position:absolute;bottom:10px;left:0;width:10px;height:10px;background:var(--rai-accent, #000000);border-radius:50%;animation:rai-sdk-ball 4s infinite}@keyframes rai-sdk-ball{0%{transform:translate(0)}5%{transform:translate(8px,-14px)}10%{transform:translate(15px,-10px)}17%{transform:translate(23px,-24px)}20%{transform:translate(30px,-20px)}27%{transform:translate(38px,-34px)}30%{transform:translate(45px,-30px)}37%{transform:translate(53px,-44px)}40%{transform:translate(60px,-40px)}50%{transform:translate(60px)}57%{transform:translate(53px,-14px)}60%{transform:translate(45px,-10px)}67%{transform:translate(37px,-24px)}70%{transform:translate(30px,-20px)}77%{transform:translate(22px,-34px)}80%{transform:translate(15px,-30px)}87%{transform:translate(7px,-44px)}90%{transform:translateY(-40px)}to{transform:translate(0)}}@keyframes rai-sdk-barUp1{0%{transform:scaleY(.2)}40%{transform:scaleY(.2)}50%{transform:scale(1)}90%{transform:scale(1)}to{transform:scaleY(.2)}}@keyframes rai-sdk-barUp2{0%{transform:scaleY(.4)}40%{transform:scaleY(.4)}50%{transform:scaleY(.8)}90%{transform:scaleY(.8)}to{transform:scaleY(.4)}}@keyframes rai-sdk-barUp3{0%{transform:scaleY(.6)}to{transform:scaleY(.6)}}@keyframes rai-sdk-barUp4{0%{transform:scaleY(.8)}40%{transform:scaleY(.8)}50%{transform:scaleY(.4)}90%{transform:scaleY(.4)}to{transform:scaleY(.8)}}@keyframes rai-sdk-barUp5{0%{transform:scale(1)}40%{transform:scale(1)}50%{transform:scaleY(.2)}90%{transform:scaleY(.2)}to{transform:scale(1)}}#loading-square{width:75px;aspect-ratio:1;display:flex;color:var(--rai-accent, #000000);background:linear-gradient(currentColor 0 0) right / 51% 100%,linear-gradient(currentColor 0 0) bottom / 100% 51%;background-repeat:no-repeat;animation:l16-0 2s infinite linear .25s}#loading-square>div{width:50%;height:50%;background:currentColor;animation:l16-1 .5s infinite linear}@keyframes l16-0{0%,12.49%{transform:rotate(0)}12.5%,37.49%{transform:rotate(90deg)}37.5%,62.49%{transform:rotate(180deg)}62.5%,87.49%{transform:rotate(270deg)}87.5%,to{transform:rotate(360deg)}}@keyframes l16-1{0%{transform:perspective(80px) rotate3d(-1,-1,0,0)}80%,to{transform:perspective(80px) rotate3d(-1,-1,0,-180deg)}}#loading-circle{width:75px;aspect-ratio:1;display:grid;grid:50%/50%;color:var(--rai-accent, #000000);border-radius:50%;--_g: no-repeat linear-gradient(currentColor 0 0);background:var(--_g),var(--_g),var(--_g);background-size:50.1% 50.1%;animation:l9-0 1.5s infinite steps(1) alternate,l9-0-0 3s infinite steps(1) alternate}#loading-circle>div{background:var(--rai-text4, #6b7280);border-top-left-radius:100px;transform:perspective(150px) rotateY(0) rotateX(0);transform-origin:bottom right;animation:l9-1 1.5s infinite linear alternate}@keyframes l9-0{0%{background-position:0 100%,100% 100%,100% 0}33%{background-position:100% 100%,100% 100%,100% 0}66%{background-position:100% 0,100% 0,100% 0}}@keyframes l9-0-0{0%{transform:scaleX(1) rotate(0)}50%{transform:scaleX(-1) rotate(-90deg)}}@keyframes l9-1{16.5%{transform:perspective(150px) rotateX(-90deg) rotateY(0) rotateX(0);filter:grayscale(.8)}33%{transform:perspective(150px) rotateX(-180deg) rotateY(0) rotateX(0)}66%{transform:perspective(150px) rotateX(-180deg) rotateY(-180deg) rotateX(0)}to{transform:perspective(150px) rotateX(-180deg) rotateY(-180deg) rotateX(-180deg);filter:grayscale(.8)}}.rai-custom-error{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.tiptap strong.tw-font-bold,.tiptap b.tw-font-bold{font-weight:700}.tiptap em.tw-font-italic,.tiptap i.tw-font-italic{font-style:italic}.tiptap a.tiptap-rich-text-link{color:#3b82f6;text-decoration:underline;position:relative;display:inline-block;width:fit-content}.tiptap a.tiptap-rich-text-link:hover{color:#3b82f6cc;text-decoration:none}.tiptap a.tiptap-rich-text-link:not([title=""]):before{content:attr(title);position:absolute;top:-2rem;left:50%;transform:translate(-50%);white-space:nowrap;border-radius:.25rem;background-color:#000;padding:.25rem .5rem;color:#fff;opacity:0;transition:opacity .2s;pointer-events:none}.tiptap a.tiptap-rich-text-link:not([title=""]):hover:before{opacity:1}.tiptap p[style*="text-align: left"]{text-align:left}.tiptap p[style*="text-align: center"]{text-align:center}.tiptap p[style*="text-align: right"]{text-align:right}.tiptap p[style*="text-align: justify"]{text-align:justify}.tiptap u{text-decoration:underline}.tiptap.ProseMirror{background-color:transparent;height:fit-content!important;word-wrap:break-word;white-space:pre-wrap;white-space:break-spaces;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;font-feature-settings:"liga" 0;padding:0;width:100%;overflow-y:auto}.tiptap{line-height:1.6;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.tiptap p{margin:.5em 0}.tiptap p:first-child{margin-top:0}.tiptap p:last-child{margin-bottom:0}.tiptap img{max-width:100%;height:auto;display:block}.tiptap p[style*="text-align: left"] img{margin-left:0;margin-right:auto}.tiptap p[style*="text-align: center"] img{margin-left:auto;margin-right:auto}.tiptap p[style*="text-align: right"] img{margin-left:auto;margin-right:0}.rai-retry-btn{padding:8px 20px;border:none;border-radius:6px;background:var(--rai-accent, #000000);color:var(--rai-error-bg, #ffffff);font-size:14px;font-family:system-ui,-apple-system,sans-serif;cursor:pointer}.rai-retry-btn:hover{opacity:.85}',this.shadow.appendChild(e);const t=this.config.theme,r="dark"===t?"#ffffff":"#000000",i="dark"===t?"#9ca3af":"#6b7280",a="dark"===t?"#1a1a1a":"#ffffff";this.style.width=this.config.width,this.style.height=this.config.height,this.style.setProperty("--rai-accent",r),this.style.setProperty("--rai-text4",i),this.style.setProperty("--rai-loader-bg",a),this.style.setProperty("--rai-error-bg",a),this.applyFirstPaintColors(),this.renderShell(),this.hasAttribute("eager")?this.init():(this.intersectionObserver=new IntersectionObserver(e=>{e[0].isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0,this.init())}),this.intersectionObserver.observe(this))}disconnectedCallback(){var e,t;null==(e=this.intersectionObserver)||e.disconnect(),null==(t=this.themeObserver)||t.disconnect(),this.cleanupListener&&this.cleanupListener(),g(this.state)}emit(e,t){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,detail:t??{}}))}applyFirstPaintColors(){var e;const t=o(this.config);if(!this.config.themeExplicit){const e=null==t?void 0:t.defaultColorSchema;"light"!==e&&"dark"!==e||(this.config.theme=e)}const r="dark"===this.config.theme?"dark":"light",i=null==(e=null==t?void 0:t.themePalette)?void 0:e[r];i&&this.applyPalette(i);const a=("string"==typeof(null==t?void 0:t.font)?t.font:void 0)||this.config.firstPaintFont;if(a&&this.applyFont(a),i)return;const n=this.config.firstPaintColors;(null==n?void 0:n.bg)&&this.style.setProperty("--background-5",n.bg),(null==n?void 0:n.text)&&this.style.setProperty("--text-1",n.text),(null==n?void 0:n.accent)&&this.style.setProperty("--accent-1",n.accent)}applyFont(e){this.style.setProperty("--rai-loader-font",`'${e}', system-ui, -apple-system, sans-serif`),function(e){if(!e||v.has(e))return;v.add(e);const t=`rai-font-${e.toLowerCase().replace(/\s+/g,"-")}`;if(document.getElementById(t))return;const r=document.createElement("link");r.id=t,r.rel="stylesheet",r.href=`https://fonts.googleapis.com/css2?family=${encodeURIComponent(e)}&display=swap`,document.head.appendChild(r)}(e)}applyPalette(e){Object.entries(e).forEach(([e,t])=>{e.startsWith("--")&&t&&this.style.setProperty(e,t)})}renderShell(){this.loaderEl=document.createElement("div"),this.loaderEl.className="rai-loader";const e=document.createElement("h1");e.className="rai-loader-text",e.textContent=this.config.loadingText,this.loaderEl.appendChild(e),this.shadow.appendChild(this.loaderEl),this.fetchAndRenderLoader(),this.errorEl=document.createElement("div"),this.errorEl.className="rai-error",this.msgEl=document.createElement("span"),this.msgEl.className="rai-error-msg",this.msgEl.textContent="Authentication failed. Please try again later.",this.errorEl.appendChild(this.msgEl);const t=this.getAttribute("retry-label")||this.getAttribute("data-retry-label")||"Retry",r=document.createElement("button");r.className="rai-retry-btn",r.textContent=t,r.addEventListener("click",()=>this.reload()),this.errorEl.appendChild(r),this.shadow.appendChild(this.errorEl)}async fetchAndRenderLoader(){var e;const t=o(this.config);if(t)return m(this.state,t),this.renderLoaderAnimation(),void f(this.config,this.state,{skipCache:!0}).catch(()=>{});try{await f(this.config,this.state)}catch{}if(!this.loaderEl)return;this.config.themeExplicit||"light"!==this.state.defaultColorSchema&&"dark"!==this.state.defaultColorSchema||this.state.defaultColorSchema===this.config.theme||(this.config.theme=this.state.defaultColorSchema);const r="dark"===this.config.theme?"dark":"light",i=null==(e=this.state.themePalette)?void 0:e[r];i&&this.applyPalette(i),this.state.font&&this.applyFont(this.state.font),this.renderLoaderAnimation()}renderLoaderAnimation(){if(!this.loaderEl)return;const e=this.loaderEl.querySelector(".rai-loader-anim");e&&e.remove();const t=document.createElement("div");t.className="rai-loader-anim";const r=this.state.loadingAnimation,i="dark"===this.config.theme?"dark":"light";if("custom"===(null==r?void 0:r.type)&&r.custom){const e=r.custom[i]||r.custom.light||r.custom.dark;if(e){if("lottie"===e.type&&e.lottieData)return this.renderLottieInto(t,e.lottieData),void this.loaderEl.insertBefore(t,this.loaderEl.firstChild);if("html"===e.type&&e.html)return t.innerHTML=function(e){const t=(new DOMParser).parseFromString(e,"text/html");return t.body.querySelectorAll(x.join(",")).forEach(e=>e.remove()),t.body.querySelectorAll("*").forEach(e=>{Array.from(e.attributes).forEach(t=>{const r=t.name.toLowerCase();(r.startsWith("on")||T.includes(r)&&t.value.trim().toLowerCase().startsWith("javascript:"))&&e.removeAttribute(t.name)})}),t.body.innerHTML}(e.html),void this.loaderEl.insertBefore(t,this.loaderEl.firstChild)}}if("preset"===(null==r?void 0:r.type)&&r.preset)return t.appendChild(this.createPresetLoader(r.preset)),void this.loaderEl.insertBefore(t,this.loaderEl.firstChild);t.appendChild(this.createDefaultLoader()),this.loaderEl.insertBefore(t,this.loaderEl.firstChild)}renderLottieInto(e,t){const r=document.createElement("div");r.className="rai-lottie-loader",e.appendChild(r);const i=window;if(void 0!==i.lottie)i.lottie.loadAnimation({container:r,renderer:"svg",loop:!0,autoplay:!0,animationData:t});else{const i=document.createElement("script");i.src="https://cdnjs.cloudflare.com/ajax/libs/lottie-web/5.12.2/lottie.min.js",i.onload=()=>{window.lottie.loadAnimation({container:r,renderer:"svg",loop:!0,autoplay:!0,animationData:t})},i.onerror=()=>{r.remove(),e.appendChild(this.createDefaultLoader())},document.head.appendChild(i)}}createDefaultLoader(){const e=document.createElement("div");e.className="rai-sdk-loader";for(let r=0;r<5;r++){const t=document.createElement("div");t.className="rai-sdk-loader__bar",e.appendChild(t)}const t=document.createElement("div");return t.className="rai-sdk-loader__ball",e.appendChild(t),e}createPresetLoader(e){if("square"===e){const e=document.createElement("div");e.id="loading-square";const t=document.createElement("div");return e.appendChild(t),e}if("circle"===e){const e=document.createElement("div");e.id="loading-circle";const t=document.createElement("div");return e.appendChild(t),e}return this.createDefaultLoader()}hideLoader(){this.loaderEl&&(this.loaderEl.classList.add("fade-out"),setTimeout(()=>{var e;return null==(e=this.loaderEl)?void 0:e.remove()},300),this.loaderEl=null)}deferLoaderRemovalUntilReactPaints(e){if(!this.loaderEl)return;let t=!1;const r=()=>{t||(t=!0,this.hideLoader())},i=new MutationObserver(()=>{e.children.length>0&&(i.disconnect(),requestAnimationFrame(r))});i.observe(e,{childList:!0}),setTimeout(()=>{i.disconnect(),r()},2e3)}showError(){this.hideLoader();const e=this.state.errorSettings,t=this.state.lastAuthError,r="User not found"===(null==t?void 0:t.error)||"Missing required user identifier fields"===(null==t?void 0:t.error)||"Missing user identifier fields"===(null==t?void 0:t.error),i=!!(null==e?void 0:e.errorMessage)&&(r||!t);i?this.renderCustomError(e):this.errorEl&&((null==t?void 0:t.error)&&this.msgEl&&(this.msgEl.textContent=t.hint?`${t.error}: ${t.hint}`:t.error),this.errorEl.classList.add("visible"));const a=i?e.errorMessage:(null==t?void 0:t.error)||"Authentication failed";this.emit("rai-error",{message:a,hint:null==t?void 0:t.hint,status:null==t?void 0:t.status})}renderCustomError(e){var t,r;null==(t=this.errorEl)||t.remove(),this.errorEl=null;const i=(null==(r=e.backgroundImage)?void 0:r.trim())?`background-image: url('${e.backgroundImage}'); background-size: cover; background-position: center; background-repeat: no-repeat;`:"",a=document.createElement("div");a.className="rai-custom-error",a.style.cssText=`\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: auto;\n width: 100%;\n height: 100%;\n ${i}\n `;const n=document.createElement("div");n.className="rai-rich-text",n.style.cssText=`\n min-width: 50%;\n min-height: 50%;\n margin: 0 auto;\n padding: 20px;\n width: auto;\n height: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 6px;\n background-color: ${e.modalColor||"transparent"};\n `;const o=document.createElement("div");o.className="tiptap ProseMirror",o.innerHTML=e.errorMessage||"",n.appendChild(o),a.appendChild(n),this.shadow.appendChild(a)}async init(){if(!this.config.communityId)return void this.showError();await f(this.config,this.state);const e=()=>{this.config.bundleUrl?this.mountWidget():this.createIframe()};if(this.config.authUrl){return void(await d(this.config,this.state,()=>this.scheduleRefresh())?(this.emit("rai-authenticated"),e()):this.showError())}if(this.config.embedToken){g(this.state),n(this.config);return void(await c(this.config,this.state,()=>this.scheduleRefresh())?(this.emit("rai-authenticated"),e()):this.showError())}if(function(e,t){try{const r=localStorage.getItem(i(e));if(!r)return!1;const a=JSON.parse(r);return a.refreshToken&&!s(a.refreshTokenExpiry)?(t.refreshToken=a.refreshToken,t.tokenFamily=a.tokenFamily,t.refreshTokenExpiry=a.refreshTokenExpiry,!0):(n(e),!1)}catch{return!1}}(this.config,this.state)){return await h(this.config,this.state,()=>this.scheduleRefresh())?(this.state.isAuthenticated=!0,this.emit("rai-authenticated"),void e()):void this.showError()}await c(this.config,this.state,()=>this.scheduleRefresh())?(this.emit("rai-authenticated"),e()):this.showError()}createIframe(){const e=document.createElement("iframe");e.src=this.buildWidgetUrl(this.config),e.allow="clipboard-write",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"),e.frameBorder="0",e.scrolling="no",e.style.width=this.config.width,e.style.height=this.config.height,e.style.border="none",e.style.display="block",e.onload=()=>{p(this.config,this.state,e),this.schedulePeriodicSync(e)},e.onerror=()=>{this.showError()},this.state.iframe=e,this.shadow.appendChild(e),this.cleanupListener=y(this.config,this.state,this.shadow,e,()=>this.scheduleRefresh(),()=>this.logoutAndClear(),()=>this.hideLoader(),(e,t)=>this.emit(e,t))}async mountWidget(){try{const t=this.config.v2ApiUrl||this.config.apiUrl,r=window;!r.DomainKey&&this.config.domainKey&&(r.DomainKey="PROD"===this.config.domainKey?"GEN":this.config.domainKey);const i=["api_url","base_url","auth_api","socket_path_v2","socket_path","channel_api"];for(const e of i)r[e]||(r[e]=t);window.__IS_WIDGET__=!0,window.guest_token=this.state.accessToken;const a="dark"===this.config.theme?"dark":"light",n="dark"===a?"dark-knight":"white-smoke";document.documentElement.setAttribute("data-theme",n),window.currentTheme=a,window.__FORCE_COLOR_MODE__=a,window.__WIDGET_STORAGE_KEY__=`color-schema-${this.config.widgetType}-${this.config.widgetId}`,this.state.loadingAnimation&&(window.loadingAnimation=this.state.loadingAnimation),await(e=this.config.bundleUrl,new Promise((t,r)=>{const i=document.createElement("script");i.src=e,i.onload=()=>t(),i.onerror=()=>r(new Error(`Failed to load ${e}`)),document.head.appendChild(i)}));const o=b[this.config.widgetType],s=window[o];if(!(null==s?void 0:s.mount))throw new Error(`window.${o}.mount not found after loading bundle`);const l=document.createElement("div");if(l.className="rai-widget-root",l.style.cssText=["position: relative","width: 100%","height: 100%","color: var(--text-1)","background: var(--background-1)","font-family: var(--rai-loader-font, 'Roboto', system-ui, -apple-system, sans-serif)"].join("; "),this.appendChild(l),!this.shadow.querySelector("slot")){const e=document.createElement("slot");this.shadow.appendChild(e)}this.deferLoaderRemovalUntilReactPaints(l),s.mount(l,{widgetType:this.config.widgetType,communityId:this.config.communityId,channelId:this.config.channelId,widgetId:this.config.communityId,apiUrl:t,token:this.state.accessToken,basePath:"/",isPreview:!1,isOpenWidget:!this.state.accessToken,defaultColorSchema:"dark"===this.config.theme?"dark":"light"}),this.emit("rai-mounted")}catch(t){console.error("[rai-widget] Bundle mount failed:",t),this.showError()}var e}scheduleRefresh(){if(this.state.refreshTimer&&clearTimeout(this.state.refreshTimer),!this.state.accessTokenExpiry)return;const e=this.state.accessTokenExpiry-Date.now()-6e4,t=()=>{this.state.iframe&&p(this.config,this.state,this.state.iframe),this.config.bundleUrl&&this.state.accessToken&&(window.guest_token=this.state.accessToken)},r=async()=>{if(this.config.authUrl){await d(this.config,this.state,()=>this.scheduleRefresh())&&t()}else await h(this.config,this.state,()=>this.scheduleRefresh(),t)};e>0?this.state.refreshTimer=setTimeout(r,e):r()}schedulePeriodicSync(e){this.state.syncTimer&&clearInterval(this.state.syncTimer),this.state.syncTimer=setInterval(()=>{this.state.accessToken&&p(this.config,this.state,e)},12e4)}async logoutAndClear(){await async function(e,t){if(t.accessToken)try{await fetch(`${e.apiUrl}/${e.widgetId}/auth/logout`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t.accessToken}`},body:JSON.stringify({refreshToken:t.refreshToken})})}catch{}g(t),n(e)}(this.config,this.state),this.shadow.querySelectorAll("iframe").forEach(e=>e.remove()),this.emit("rai-logout")}async reload(){g(this.state),this.shadow.querySelectorAll("iframe").forEach(e=>e.remove()),await this.init()}async logoutPublic(){await this.logoutAndClear()}isAuthenticated(){return this.state.isAuthenticated&&null!==this.state.accessToken}getTokenInfo(){return{hasAccessToken:!!this.state.accessToken,hasRefreshToken:!!this.state.refreshToken,accessTokenExpiry:this.state.accessTokenExpiry?new Date(this.state.accessTokenExpiry):null,refreshTokenExpiry:this.state.refreshTokenExpiry?new Date(this.state.refreshTokenExpiry):null,isAccessTokenValid:!!this.state.accessToken&&!s(this.state.accessTokenExpiry),isRefreshTokenValid:!!this.state.refreshToken&&!s(this.state.refreshTokenExpiry)}}}class I extends E{buildWidgetUrl(e){const t=new URL(e.widgetUrl);return t.searchParams.set("color",e.theme),t.searchParams.set("containerId",e.container),t.searchParams.set("connectType","simple"),t.searchParams.set("mode","private"),e.locale&&t.searchParams.set("locale",e.locale),t.toString()}}class A extends E{buildWidgetUrl(e){const t=e.widgetUrl.endsWith("channel-widget")?`${e.widgetUrl}/${e.widgetId}`:e.widgetUrl;try{const r=new URL(t);return r.searchParams.set("color",e.theme),e.locale&&r.searchParams.set("locale",e.locale),r.toString()}catch{const r=[`color=${e.theme}`];return e.locale&&r.push(`locale=${encodeURIComponent(e.locale)}`),`${t}?${r.join("&")}`}}}class C extends E{buildWidgetUrl(e){const t=e.widgetUrl.endsWith("milestone-widget")?`${e.widgetUrl}/${e.widgetId}`:e.widgetUrl;try{const r=new URL(t);return r.searchParams.set("color",e.theme),e.locale&&r.searchParams.set("locale",e.locale),r.toString()}catch{const r=[`color=${e.theme}`];return e.locale&&r.push(`locale=${encodeURIComponent(e.locale)}`),`${t}?${r.join("&")}`}}}class U extends E{buildWidgetUrl(e){const t=e.widgetUrl.endsWith("social-widget")?`${e.widgetUrl}/${e.widgetId}`:e.widgetUrl;try{const r=new URL(t);return r.searchParams.set("color",e.theme),e.locale&&r.searchParams.set("locale",e.locale),r.toString()}catch{const r=[`color=${e.theme}`];return e.locale&&r.push(`locale=${encodeURIComponent(e.locale)}`),`${t}?${r.join("&")}`}}}class R extends E{buildWidgetUrl(e){const t=e.widgetUrl.endsWith("currency-overview-widget")?`${e.widgetUrl}/${e.widgetId}`:e.widgetUrl;try{const r=new URL(t);return r.searchParams.set("color",e.theme),e.locale&&r.searchParams.set("locale",e.locale),r.toString()}catch{const r=[`color=${e.theme}`];return e.locale&&r.push(`locale=${encodeURIComponent(e.locale)}`),`${t}?${r.join("&")}`}}}class S extends E{buildWidgetUrl(e){const t=e.widgetUrl.endsWith("referral-conditions-widget")?`${e.widgetUrl}/${e.widgetId}`:e.widgetUrl;try{const r=new URL(t);return r.searchParams.set("color",e.theme),e.locale&&r.searchParams.set("locale",e.locale),r.toString()}catch{const r=[`color=${e.theme}`];return e.locale&&r.push(`locale=${encodeURIComponent(e.locale)}`),`${t}?${r.join("&")}`}}}class P extends E{buildWidgetUrl(e){const t=e.widgetUrl.endsWith("custom-widget")?`${e.widgetUrl}/${e.widgetId}`:e.widgetUrl;try{const r=new URL(t);return r.searchParams.set("color",e.theme),e.locale&&r.searchParams.set("locale",e.locale),r.toString()}catch{const r=[`color=${e.theme}`];return e.locale&&r.push(`locale=${encodeURIComponent(e.locale)}`),`${t}?${r.join("&")}`}}}console.log("[rai-widget] v1.3.0");const $=[["rai-store-widget",I],["rai-channel-widget",A],["rai-milestone-widget",C],["rai-social-widget",U],["rai-currency-widget",R],["rai-referral-widget",S],["rai-custom-widget",P],["rai-widget",class extends I{}]];for(const[O,N]of $)customElements.get(O)||customElements.define(O,N);const _={store:I,channel:A,milestone:C,social:U,"currency-view":R,"referral-conditions":S,custom:P},D=$.map(([e])=>e).join(", ");function L(){var e,t;const r=((null==(e=document.currentScript)?void 0:e.hasAttribute("data-widget-id"))||(null==(t=document.currentScript)?void 0:t.hasAttribute("data-community-id"))?document.currentScript:null)||document.querySelector("script[data-widget-id], script[data-community-id]");if(!r)return;const i=r.getAttribute("data-community-id")||r.getAttribute("data-widget-id");if(!i)return;const a=r.getAttribute("data-container")||`returning-ai-widget-${i}`,n=document.getElementById(a);if(!n)return;"static"===getComputedStyle(n).position&&(n.style.position="relative");const o=r.getAttribute("data-widget-type")??"store",s=new(_[o]??I);Array.from(r.attributes).forEach(e=>{s.setAttribute(e.name,e.value)}),n.appendChild(s)}function W(){const e=(()=>{var e,t;const r=((null==(e=document.currentScript)?void 0:e.hasAttribute("data-widget-id"))||(null==(t=document.currentScript)?void 0:t.hasAttribute("data-community-id"))?document.currentScript:null)||document.querySelector("script[data-widget-id], script[data-community-id]");if(!r)return null;const i=r.getAttribute("data-container")||`returning-ai-widget-${r.getAttribute("data-community-id")||r.getAttribute("data-widget-id")}`;return document.getElementById(i)})(),t=null==e?void 0:e.querySelector(D);window.ReturningAIWidget={version:"1.3.0",reload:()=>(null==t?void 0:t.reload())??Promise.resolve(),logout:()=>(null==t?void 0:t.logoutPublic())??Promise.resolve(),isAuthenticated:()=>(null==t?void 0:t.isAuthenticated())??!1,getTokenInfo:()=>(null==t?void 0:t.getTokenInfo())??{}}}return"loading"===document.readyState?document.addEventListener("DOMContentLoaded",L):L(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",W):W(),e.ChannelWidget=A,e.CurrencyWidget=R,e.CustomWidget=P,e.MilestoneWidget=C,e.ReferralWidget=S,e.SocialWidget=U,e.StoreWidget=I,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({});
|
|
1
|
+
var RaiWidget=function(t){"use strict";var e=Object.defineProperty,i=(t,i,s)=>((t,i,s)=>i in t?e(t,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[i]=s)(t,"symbol"!=typeof i?i+"":i,s);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function s(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var a,r,n={exports:{}};a=n,r=n.exports,"undefined"!=typeof document&&"undefined"!=typeof navigator&&(a.exports=function(){var t="http://www.w3.org/2000/svg",e="",i=!1,s=-999999,a=function(t){i=!!t},n=function(){return i},o=function(t){e=t},h=function(){return e};function l(t){return document.createElement(t)}function p(t,e){var i,s,a=t.length;for(i=0;i<a;i+=1)for(var r in s=t[i].prototype)Object.prototype.hasOwnProperty.call(s,r)&&(e.prototype[r]=s[r])}function c(t){function e(){}return e.prototype=t,e}var d=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),f=function(){function t(t,e){var i,s=0,a=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(s=0;s<e;s+=1)a.push(i);return a}function e(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?e:t}();function u(t){return Array.apply(null,{length:t})}var m=!0,g=null,y="",v=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),b=Math.pow,k=Math.sqrt,w=Math.floor,_=Math.min,x=150,T=Math.PI/180,P=.5519;function A(t,e,i,s){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=s<0?-1:1}function S(t,e){this.type=t,this.direction=e<0?-1:1}function E(t,e,i,s){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=s<0?-1:1}function C(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function D(t,e){this.type=t,this.target=e}function M(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function I(t){this.type="configError",this.nativeError=t}var F=function(){var t=0;return function(){return y+"__lottie_element_"+(t+=1)}}();function L(t,e,i){var s,a,r,n,o,h,l,p;switch(h=i*(1-e),l=i*(1-(o=6*t-(n=Math.floor(6*t)))*e),p=i*(1-(1-o)*e),n%6){case 0:s=i,a=p,r=h;break;case 1:s=l,a=i,r=h;break;case 2:s=h,a=i,r=p;break;case 3:s=h,a=l,r=i;break;case 4:s=p,a=h,r=i;break;case 5:s=i,a=h,r=l}return[s,a,r]}function R(t,e,i){var s,a=Math.max(t,e,i),r=Math.min(t,e,i),n=a-r,o=0===a?0:n/a,h=a/255;switch(a){case r:s=0;break;case t:s=e-i+n*(e<i?6:0),s/=6*n;break;case e:s=i-t+2*n,s/=6*n;break;case i:s=t-e+4*n,s/=6*n}return[s,o,h]}function O(t,e){var i=R(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),L(i[0],i[1],i[2])}function N(t,e){var i=R(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),L(i[0],i[1],i[2])}function V(t,e){var i=R(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),L(i[0],i[1],i[2])}!function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e}();var z=function(t){m=!!t},U=function(){return m},W=function(t){g=t},j=function(){return g},q=function(t){x=t},B=function(){return x},$=function(t){y=t};function G(e){return document.createElementNS(t,e)}function Y(t){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var H=function(){var t,e,i=1,s=[],a={onmessage:function(){},postMessage:function(e){t({data:e})}},r={postMessage:function(t){a.onmessage({data:t})}};function o(e){if(window.Worker&&window.Blob&&n()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),s=URL.createObjectURL(i);return new Worker(s)}return t=e,a}function h(){e||((e=o(function(t){function e(){function t(e,i){var n,o,h,l,p,c,d=e.length;for(o=0;o<d;o+=1)if("ks"in(n=e[o])&&!n.completed){if(n.completed=!0,n.hasMask){var u=n.masksProperties;for(l=u.length,h=0;h<l;h+=1)if(u[h].pt.k.i)r(u[h].pt.k);else for(c=u[h].pt.k.length,p=0;p<c;p+=1)u[h].pt.k[p].s&&r(u[h].pt.k[p].s[0]),u[h].pt.k[p].e&&r(u[h].pt.k[p].e[0])}0===n.ty?(n.layers=s(n.refId,i),t(n.layers,i)):4===n.ty?a(n.shapes):5===n.ty&&f(n)}}function e(e,i){if(e){var a=0,r=e.length;for(a=0;a<r;a+=1)1===e[a].t&&(e[a].data.layers=s(e[a].data.refId,i),t(e[a].data.layers,i))}}function i(t,e){for(var i=0,s=e.length;i<s;){if(e[i].id===t)return e[i];i+=1}return null}function s(t,e){var s=i(t,e);return s?s.layers.__used?JSON.parse(JSON.stringify(s.layers)):(s.layers.__used=!0,s.layers):null}function a(t){var e,i,s;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)r(t[e].ks.k);else for(s=t[e].ks.k.length,i=0;i<s;i+=1)t[e].ks.k[i].s&&r(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&r(t[e].ks.k[i].e[0]);else"gr"===t[e].ty&&a(t[e].it)}function r(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function n(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var o=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,a=e.assets.length;for(s=0;s<a;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),h=function(){var t=[4,7,99];return function(e){if(e.chars&&!n(t,e.v)){var i,s=e.chars.length;for(i=0;i<s;i+=1){var r=e.chars[i];r.data&&r.data.shapes&&(a(r.data.shapes),r.data.ip=0,r.data.op=99999,r.data.st=0,r.data.sr=1,r.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[i].t||(r.data.shapes.push({ty:"no"}),r.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),l=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,a=e.assets.length;for(s=0;s<a;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),p=function(){var t=[4,1,9];function e(t){var i,s,a,r=t.length;for(i=0;i<r;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty)if(t[i].c.k&&t[i].c.k[0].i)for(a=t[i].c.k.length,s=0;s<a;s+=1)t[i].c.k[s].s&&(t[i].c.k[s].s[0]/=255,t[i].c.k[s].s[1]/=255,t[i].c.k[s].s[2]/=255,t[i].c.k[s].s[3]/=255),t[i].c.k[s].e&&(t[i].c.k[s].e[0]/=255,t[i].c.k[s].e[1]/=255,t[i].c.k[s].e[2]/=255,t[i].c.k[s].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}function i(t){var i,s=t.length;for(i=0;i<s;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,a=e.assets.length;for(s=0;s<a;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}(),c=function(){var t=[4,4,18];function e(t){var i,s,a;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty)if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(a=t[i].ks.k.length,s=0;s<a;s+=1)t[i].ks.k[s].s&&(t[i].ks.k[s].s[0].c=t[i].closed),t[i].ks.k[s].e&&(t[i].ks.k[s].e[0].c=t[i].closed);else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,s,a,r,n,o,h=t.length;for(s=0;s<h;s+=1){if((i=t[s]).hasMask){var l=i.masksProperties;for(r=l.length,a=0;a<r;a+=1)if(l[a].pt.k.i)l[a].pt.k.c=l[a].cl;else for(o=l[a].pt.k.length,n=0;n<o;n+=1)l[a].pt.k[n].s&&(l[a].pt.k[n].s[0].c=l[a].cl),l[a].pt.k[n].e&&(l[a].pt.k[n].e[0].c=l[a].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(n(t,e.v)&&(i(e.layers),e.assets)){var s,a=e.assets.length;for(s=0;s<a;s+=1)e.assets[s].layers&&i(e.assets[s].layers)}}}();function d(i){i.__complete||(p(i),o(i),h(i),l(i),c(i),t(i.layers,i.assets),e(i.chars,i.assets),i.__complete=!0)}function f(t){0===t.t.a.length&&t.t.p}var u={};return u.completeData=d,u.checkColors=p,u.checkChars=h,u.checkPathProperties=l,u.checkShapes=c,u.completeLayers=t,u}if(r.dataManager||(r.dataManager=e()),r.assetLoader||(r.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===Y(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}function e(e,i,s,a){var r,n=new XMLHttpRequest;try{n.responseType="json"}catch(o){}n.onreadystatechange=function(){if(4===n.readyState)if(200===n.status)r=t(n),s(r);else try{r=t(n),s(r)}catch(o){a&&a(o)}};try{n.open(["G","E","T"].join(""),e,!0)}catch(h){n.open(["G","E","T"].join(""),i+"/"+e,!0)}n.send()}return{load:e}}()),"loadAnimation"===t.data.type)r.assetLoader.load(t.data.path,t.data.fullPath,function(e){r.dataManager.completeData(e),r.postMessage({id:t.data.id,payload:e,status:"success"})},function(){r.postMessage({id:t.data.id,status:"error"})});else if("complete"===t.data.type){var i=t.data.animation;r.dataManager.completeData(i),r.postMessage({id:t.data.id,payload:i,status:"success"})}else"loadData"===t.data.type&&r.assetLoader.load(t.data.path,t.data.fullPath,function(e){r.postMessage({id:t.data.id,payload:e,status:"success"})},function(){r.postMessage({id:t.data.id,status:"error"})})})).onmessage=function(t){var e=t.data,i=e.id,a=s[i];s[i]=null,"success"===e.status?a.onComplete(e.payload):a.onError&&a.onError()})}function l(t,e){var a="processId_"+(i+=1);return s[a]={onComplete:t,onError:e},a}function p(t,i,s){h();var a=l(i,s);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:a})}function c(t,i,s){h();var a=l(i,s);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:a})}function d(t,i,s){h();var a=l(i,s);e.postMessage({type:"complete",animation:t,id:a})}return{loadAnimation:p,loadData:c,completeAnimation:d}}(),X=function(){var t=function(){var t=l("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function s(t,e,i){var s="";if(t.e)s=t.p;else if(e){var a=t.p;-1!==a.indexOf("images/")&&(a=a.split("/")[1]),s=e+a}else s=i,s+=t.u?t.u:"",s+=t.p;return s}function a(t){var e=0,i=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}.bind(this),50)}function r(e){var i=s(e,this.assetsPath,this.path),a=G("image");v?this.testImageLoaded(a):a.addEventListener("load",this._imageLoaded,!1),a.addEventListener("error",function(){r.img=t,this._imageLoaded()}.bind(this),!1),a.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(a):this._elementHelper.appendChild(a);var r={img:a,assetData:e};return r}function n(e){var i=s(e,this.assetsPath,this.path),a=l("img");a.crossOrigin="anonymous",a.addEventListener("load",this._imageLoaded,!1),a.addEventListener("error",function(){r.img=t,this._imageLoaded()}.bind(this),!1),a.src=i;var r={img:a,assetData:e};return r}function o(t){var e={assetData:t},i=s(t,this.assetsPath,this.path);return H.loadData(i,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function h(t,e){var i;this.imagesLoadedCb=e;var s=t.length;for(i=0;i<s;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))}function p(t){this.path=t||""}function c(t){this.assetsPath=t||""}function d(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function u(){return this.totalImages===this.loadedAssets}function m(){return this.totalFootages===this.loadedFootagesCount}function g(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function y(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=a.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return y.prototype={loadAssets:h,setAssetsPath:c,setPath:p,loadedImages:u,loadedFootages:m,destroy:f,getAsset:d,createImgData:n,createImageData:r,imageLoaded:e,footageLoaded:i,setCacheType:g},y}();function K(){}K.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var J=function(){function t(t){for(var e,i=t.split("\r\n"),s={},a=0,r=0;r<i.length;r+=1)2===(e=i[r].split(":")).length&&(s[e[0]]=e[1].trim(),a+=1);if(0===a)throw new Error;return s}return function(e){for(var i=[],s=0;s<e.length;s+=1){var a=e[s],r={time:a.tm,duration:a.dr};try{r.payload=JSON.parse(e[s].cm)}catch(n){try{r.payload=t(e[s].cm)}catch(o){r.payload={name:e[s].cm}}}i.push(r)}return i}}(),Z=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),Q={},tt=function(t,e){Q[t]=e};function et(t){return Q[t]}function it(){if(Q.canvas)return"canvas";for(var t in Q)if(Q[t])return t;return""}function st(t){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var at=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=F(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=U(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=Z(),this.imagePreloader=new X,this.audioController=d(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new A("drawnFrame",0,0,0),this.expressionsPlugin=j()};p([K],at),at.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=et(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),H.loadAnimation(t.path,this.configAnimation,this.onSetupError))},at.prototype.onSetupError=function(){this.trigger("data_failed")},at.prototype.setupAnimation=function(t){H.completeAnimation(t,this.configAnimation)},at.prototype.setData=function(t,e){e&&"object"!==st(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},s=t.attributes;i.path=s.getNamedItem("data-animation-path")?s.getNamedItem("data-animation-path").value:s.getNamedItem("data-bm-path")?s.getNamedItem("data-bm-path").value:s.getNamedItem("bm-path")?s.getNamedItem("bm-path").value:"",i.animType=s.getNamedItem("data-anim-type")?s.getNamedItem("data-anim-type").value:s.getNamedItem("data-bm-type")?s.getNamedItem("data-bm-type").value:s.getNamedItem("bm-type")?s.getNamedItem("bm-type").value:s.getNamedItem("data-bm-renderer")?s.getNamedItem("data-bm-renderer").value:s.getNamedItem("bm-renderer")?s.getNamedItem("bm-renderer").value:it()||"canvas";var a=s.getNamedItem("data-anim-loop")?s.getNamedItem("data-anim-loop").value:s.getNamedItem("data-bm-loop")?s.getNamedItem("data-bm-loop").value:s.getNamedItem("bm-loop")?s.getNamedItem("bm-loop").value:"";"false"===a?i.loop=!1:"true"===a?i.loop=!0:""!==a&&(i.loop=parseInt(a,10));var r=s.getNamedItem("data-anim-autoplay")?s.getNamedItem("data-anim-autoplay").value:s.getNamedItem("data-bm-autoplay")?s.getNamedItem("data-bm-autoplay").value:!s.getNamedItem("bm-autoplay")||s.getNamedItem("bm-autoplay").value;i.autoplay="false"!==r,i.name=s.getNamedItem("data-name")?s.getNamedItem("data-name").value:s.getNamedItem("data-bm-name")?s.getNamedItem("data-bm-name").value:s.getNamedItem("bm-name")?s.getNamedItem("bm-name").value:"","false"===(s.getNamedItem("data-anim-prerender")?s.getNamedItem("data-anim-prerender").value:s.getNamedItem("data-bm-prerender")?s.getNamedItem("data-bm-prerender").value:s.getNamedItem("bm-prerender")?s.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},at.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,s=this.animationData.layers,a=s.length,r=t.layers,n=r.length;for(i=0;i<n;i+=1)for(e=0;e<a;){if(s[e].id===r[i].id){s[e]=r[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(a=t.assets.length,e=0;e<a;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,H.completeAnimation(this.animationData,this.onSegmentComplete)},at.prototype.onSegmentComplete=function(t){this.animationData=t;var e=j();e&&e.initExpressions(this),this.loadNextSegment()},at.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,H.loadData(i,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},at.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},at.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},at.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},at.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=J(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},at.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},at.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=j();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},at.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,s="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,s)},at.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},at.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},at.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},at.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},at.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},at.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},at.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},at.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},at.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var a=this.getMarkerData(t);a&&this.goToAndStop(a.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},at.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var s=Number(t);if(isNaN(s)){var a=this.getMarkerData(t);a&&(a.duration?this.playSegments([a.time,a.time+a.duration],!0):this.goToAndStop(a.time,!0))}else this.goToAndStop(s,e,i);this.play()}},at.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},at.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},at.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},at.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===st(t[0])){var i,s=t.length;for(i=0;i<s;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},at.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},at.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},at.prototype.destroy=function(t){t&&this.name!==t||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},at.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},at.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},at.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},at.prototype.setLoop=function(t){this.loop=t},at.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},at.prototype.getVolume=function(){return this.audioController.getVolume()},at.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},at.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},at.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},at.prototype.getPath=function(){return this.path},at.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},at.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},at.prototype.hide=function(){this.renderer.hide()},at.prototype.show=function(){this.renderer.show()},at.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},at.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(s){}},at.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new A(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new E(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new S(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new C(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new D(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new A(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new E(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new S(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new C(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new D(t,this))},at.prototype.triggerRenderFrameError=function(t){var e=new M(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},at.prototype.triggerConfigError=function(t){var e=new I(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var rt=function(){var t={},e=[],i=0,s=0,a=0,r=!0,n=!1;function o(t){for(var i=0,a=t.target;i<s;)e[i].animation===a&&(e.splice(i,1),i-=1,s-=1,a.isPaused||d()),i+=1}function h(t,i){if(!t)return null;for(var a=0;a<s;){if(e[a].elem===t&&null!==e[a].elem)return e[a].animation;a+=1}var r=new at;return f(r,t),r.setData(t,i),r}function p(){var t,i=e.length,s=[];for(t=0;t<i;t+=1)s.push(e[t].animation);return s}function c(){a+=1,S()}function d(){a-=1}function f(t,i){t.addEventListener("destroy",o),t.addEventListener("_active",c),t.addEventListener("_idle",d),e.push({elem:i,animation:t}),s+=1}function u(t){var e=new at;return f(e,null),e.setParams(t),e}function m(t,i){var a;for(a=0;a<s;a+=1)e[a].animation.setSpeed(t,i)}function g(t,i){var a;for(a=0;a<s;a+=1)e[a].animation.setDirection(t,i)}function y(t){var i;for(i=0;i<s;i+=1)e[i].animation.play(t)}function v(t){var o,h=t-i;for(o=0;o<s;o+=1)e[o].animation.advanceTime(h);i=t,a&&!n?window.requestAnimationFrame(v):r=!0}function b(t){i=t,window.requestAnimationFrame(v)}function k(t){var i;for(i=0;i<s;i+=1)e[i].animation.pause(t)}function w(t,i,a){var r;for(r=0;r<s;r+=1)e[r].animation.goToAndStop(t,i,a)}function _(t){var i;for(i=0;i<s;i+=1)e[i].animation.stop(t)}function x(t){var i;for(i=0;i<s;i+=1)e[i].animation.togglePause(t)}function T(t){var i;for(i=s-1;i>=0;i-=1)e[i].animation.destroy(t)}function P(t,e,i){var s,a=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),r=a.length;for(s=0;s<r;s+=1)i&&a[s].setAttribute("data-bm-type",i),h(a[s],t);if(e&&0===r){i||(i="svg");var n=document.getElementsByTagName("body")[0];n.innerText="";var o=l("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",i),n.appendChild(o),h(o,t)}}function A(){var t;for(t=0;t<s;t+=1)e[t].animation.resize()}function S(){!n&&a&&r&&(window.requestAnimationFrame(b),r=!1)}function E(){n=!0}function C(){n=!1,S()}function D(t,i){var a;for(a=0;a<s;a+=1)e[a].animation.setVolume(t,i)}function M(t){var i;for(i=0;i<s;i+=1)e[i].animation.mute(t)}function I(t){var i;for(i=0;i<s;i+=1)e[i].animation.unmute(t)}return t.registerAnimation=h,t.loadAnimation=u,t.setSpeed=m,t.setDirection=g,t.play=y,t.pause=k,t.stop=_,t.togglePause=x,t.searchAnimations=P,t.resize=A,t.goToAndStop=w,t.destroy=T,t.freeze=E,t.unfreeze=C,t.setVolume=D,t.mute=M,t.unmute=I,t.getRegisteredAnimations=p,t}(),nt=function(){var t={};t.getBezierEasing=i;var e={};function i(t,i,s,a,r){var n=r||("bez_"+t+"_"+i+"_"+s+"_"+a).replace(/\./g,"p");if(e[n])return e[n];var o=new y([t,i,s,a]);return e[n]=o,o}var s=4,a=.001,r=1e-7,n=10,o=11,h=1/(o-1),l="function"==typeof Float32Array;function p(t,e){return 1-3*e+3*t}function c(t,e){return 3*e-6*t}function d(t){return 3*t}function f(t,e,i){return((p(e,i)*t+c(e,i))*t+d(e))*t}function u(t,e,i){return 3*p(e,i)*t*t+2*c(e,i)*t+d(e)}function m(t,e,i,s,a){var o,h,l=0;do{(o=f(h=e+(i-e)/2,s,a)-t)>0?i=h:e=h}while(Math.abs(o)>r&&++l<n);return h}function g(t,e,i,a){for(var r=0;r<s;++r){var n=u(e,i,a);if(0===n)return e;e-=(f(e,i,a)-t)/n}return e}function y(t){this._p=t,this._mSampleValues=l?new Float32Array(o):new Array(o),this._precomputed=!1,this.get=this.get.bind(this)}return y.prototype={get:function(t){var e=this._p[0],i=this._p[1],s=this._p[2],a=this._p[3];return this._precomputed||this._precompute(),e===i&&s===a?t:0===t?0:1===t?1:f(this._getTForX(t),i,a)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],s=this._p[3];this._precomputed=!0,t===e&&i===s||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<o;++i)this._mSampleValues[i]=f(i*h,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],s=this._mSampleValues,r=0,n=1,l=o-1;n!==l&&s[n]<=t;++n)r+=h;var p=r+(t-s[--n])/(s[n+1]-s[n])*h,c=u(p,e,i);return c>=a?g(t,p,e,i):0===c?p:m(t,r,r+h,e,i)}},t}(),ot=function(){function t(t){return t.concat(u(t.length))}return{double:t}}(),ht=function(){return function(t,e,i){var s=0,a=t,r=u(a);function n(){return s?r[s-=1]:e()}function o(t){s===a&&(r=ot.double(r),a*=2),i&&i(t),r[s]=t,s+=1}return{newElement:n,release:o}}}(),lt=function(){function t(){return{addedLength:0,percents:f("float32",B()),lengths:f("float32",B())}}return ht(8,t)}(),pt=function(){function t(){return{lengths:[],totalLength:0}}function e(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)lt.release(t.lengths[e]);t.lengths.length=0}return ht(8,t,e)}();function ct(){var t=Math;function e(t,e,i,s,a,r){var n=t*s+e*a+i*r-a*s-r*t-i*e;return n>-.001&&n<.001}function i(i,s,a,r,n,o,h,l,p){if(0===a&&0===o&&0===p)return e(i,s,r,n,h,l);var c,d=t.sqrt(t.pow(r-i,2)+t.pow(n-s,2)+t.pow(o-a,2)),f=t.sqrt(t.pow(h-i,2)+t.pow(l-s,2)+t.pow(p-a,2)),u=t.sqrt(t.pow(h-r,2)+t.pow(l-n,2)+t.pow(p-o,2));return(c=d>f?d>u?d-f-u:u-f-d:u>f?u-f-d:f-d-u)>-1e-4&&c<1e-4}var s=function(){return function(t,e,i,s){var a,r,n,o,h,l,p=B(),c=0,d=[],f=[],u=lt.newElement();for(n=i.length,a=0;a<p;a+=1){for(h=a/(p-1),l=0,r=0;r<n;r+=1)o=b(1-h,3)*t[r]+3*b(1-h,2)*h*i[r]+3*(1-h)*b(h,2)*s[r]+b(h,3)*e[r],d[r]=o,null!==f[r]&&(l+=b(d[r]-f[r],2)),f[r]=d[r];l&&(c+=l=k(l)),u.percents[a]=h,u.lengths[a]=c}return u.addedLength=c,u}}();function a(t){var e,i=pt.newElement(),a=t.c,r=t.v,n=t.o,o=t.i,h=t._length,l=i.lengths,p=0;for(e=0;e<h-1;e+=1)l[e]=s(r[e],r[e+1],n[e],o[e+1]),p+=l[e].addedLength;return a&&h&&(l[e]=s(r[e],r[0],n[e],o[0]),p+=l[e].addedLength),i.totalLength=p,i}function r(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}var o=function(){var t={};return function(i,s,a,o){var h=(i[0]+"_"+i[1]+"_"+s[0]+"_"+s[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!t[h]){var l,p,c,d,f,m,g,y=B(),v=0,w=null;2===i.length&&(i[0]!==s[0]||i[1]!==s[1])&&e(i[0],i[1],s[0],s[1],i[0]+a[0],i[1]+a[1])&&e(i[0],i[1],s[0],s[1],s[0]+o[0],s[1]+o[1])&&(y=2);var _=new r(y);for(c=a.length,l=0;l<y;l+=1){for(g=u(c),f=l/(y-1),m=0,p=0;p<c;p+=1)d=b(1-f,3)*i[p]+3*b(1-f,2)*f*(i[p]+a[p])+3*(1-f)*b(f,2)*(s[p]+o[p])+b(f,3)*s[p],g[p]=d,null!==w&&(m+=b(g[p]-w[p],2));v+=m=k(m),_.points[l]=new n(m,g),w=g}_.segmentLength=v,t[h]=_}return t[h]}}();function h(t,e){var i=e.percents,s=e.lengths,a=i.length,r=w((a-1)*t),n=t*e.addedLength,o=0;if(r===a-1||0===r||n===s[r])return i[r];for(var h=s[r]>n?-1:1,l=!0;l;)if(s[r]<=n&&s[r+1]>n?(o=(n-s[r])/(s[r+1]-s[r]),l=!1):r+=h,r<0||r>=a-1){if(r===a-1)return i[r];l=!1}return i[r]+(i[r+1]-i[r])*o}function l(e,i,s,a,r,n){var o=h(r,n),l=1-o;return[t.round(1e3*(l*l*l*e[0]+(o*l*l+l*o*l+l*l*o)*s[0]+(o*o*l+l*o*o+o*l*o)*a[0]+o*o*o*i[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(o*l*l+l*o*l+l*l*o)*s[1]+(o*o*l+l*o*o+o*l*o)*a[1]+o*o*o*i[1]))/1e3]}var p=f("float32",8);function c(e,i,s,a,r,n,o){r<0?r=0:r>1&&(r=1);var l,c=h(r,o),d=h(n=n>1?1:n,o),f=e.length,u=1-c,m=1-d,g=u*u*u,y=c*u*u*3,v=c*c*u*3,b=c*c*c,k=u*u*m,w=c*u*m+u*c*m+u*u*d,_=c*c*m+u*c*d+c*u*d,x=c*c*d,T=u*m*m,P=c*m*m+u*d*m+u*m*d,A=c*d*m+u*d*d+c*m*d,S=c*d*d,E=m*m*m,C=d*m*m+m*d*m+m*m*d,D=d*d*m+m*d*d+d*m*d,M=d*d*d;for(l=0;l<f;l+=1)p[4*l]=t.round(1e3*(g*e[l]+y*s[l]+v*a[l]+b*i[l]))/1e3,p[4*l+1]=t.round(1e3*(k*e[l]+w*s[l]+_*a[l]+x*i[l]))/1e3,p[4*l+2]=t.round(1e3*(T*e[l]+P*s[l]+A*a[l]+S*i[l]))/1e3,p[4*l+3]=t.round(1e3*(E*e[l]+C*s[l]+D*a[l]+M*i[l]))/1e3;return p}return{getSegmentsLength:a,getNewSegment:c,getPointInSegment:l,buildBezierData:o,pointOnLine2D:e,pointOnLine3D:i}}var dt=ct(),ft=s,ut=Math.abs;function mt(t,e){var i,s=this.offsetTime;"multidimensional"===this.propType&&(i=f("float32",this.pv.length));for(var a,r,n,o,h,l,p,c,d,u=e.lastIndex,m=u,g=this.keyframes.length-1,y=!0;y;){if(a=this.keyframes[m],r=this.keyframes[m+1],m===g-1&&t>=r.t-s){a.h&&(a=r),u=0;break}if(r.t-s>t){u=m;break}m<g-1?m+=1:(u=0,y=!1)}n=this.keyframesMetadata[m]||{};var v,b=r.t-s,k=a.t-s;if(a.to){n.bezierData||(n.bezierData=dt.buildBezierData(a.s,r.s||a.e,a.to,a.ti));var w=n.bezierData;if(t>=b||t<k){var _=t>=b?w.points.length-1:0;for(h=w.points[_].point.length,o=0;o<h;o+=1)i[o]=w.points[_].point[o]}else{n.__fnct?d=n.__fnct:(d=nt.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,n.__fnct=d),l=d((t-k)/(b-k));var x,T=w.segmentLength*l,P=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastAddedLength:0;for(c=e.lastFrame<t&&e._lastKeyframeIndex===m?e._lastPoint:0,y=!0,p=w.points.length;y;){if(P+=w.points[c].partialLength,0===T||0===l||c===w.points.length-1){for(h=w.points[c].point.length,o=0;o<h;o+=1)i[o]=w.points[c].point[o];break}if(T>=P&&T<P+w.points[c+1].partialLength){for(x=(T-P)/w.points[c+1].partialLength,h=w.points[c].point.length,o=0;o<h;o+=1)i[o]=w.points[c].point[o]+(w.points[c+1].point[o]-w.points[c].point[o])*x;break}c<p-1?c+=1:y=!1}e._lastPoint=c,e._lastAddedLength=P-w.points[c].partialLength,e._lastKeyframeIndex=m}}else{var A,S,E,C,D;if(g=a.s.length,v=r.s||a.e,this.sh&&1!==a.h)t>=b?(i[0]=v[0],i[1]=v[1],i[2]=v[2]):t<=k?(i[0]=a.s[0],i[1]=a.s[1],i[2]=a.s[2]):yt(i,gt(vt(a.s),vt(v),(t-k)/(b-k)));else for(m=0;m<g;m+=1)1!==a.h&&(t>=b?l=1:t<k?l=0:(a.o.x.constructor===Array?(n.__fnct||(n.__fnct=[]),n.__fnct[m]?d=n.__fnct[m]:(A=void 0===a.o.x[m]?a.o.x[0]:a.o.x[m],S=void 0===a.o.y[m]?a.o.y[0]:a.o.y[m],E=void 0===a.i.x[m]?a.i.x[0]:a.i.x[m],C=void 0===a.i.y[m]?a.i.y[0]:a.i.y[m],d=nt.getBezierEasing(A,S,E,C).get,n.__fnct[m]=d)):n.__fnct?d=n.__fnct:(A=a.o.x,S=a.o.y,E=a.i.x,C=a.i.y,d=nt.getBezierEasing(A,S,E,C).get,a.keyframeMetadata=d),l=d((t-k)/(b-k)))),v=r.s||a.e,D=1===a.h?a.s[m]:a.s[m]+(v[m]-a.s[m])*l,"multidimensional"===this.propType?i[m]=D:i=D}return e.lastIndex=u,i}function gt(t,e,i){var s,a,r,n,o,h=[],l=t[0],p=t[1],c=t[2],d=t[3],f=e[0],u=e[1],m=e[2],g=e[3];return(a=l*f+p*u+c*m+d*g)<0&&(a=-a,f=-f,u=-u,m=-m,g=-g),1-a>1e-6?(s=Math.acos(a),r=Math.sin(s),n=Math.sin((1-i)*s)/r,o=Math.sin(i*s)/r):(n=1-i,o=i),h[0]=n*l+o*f,h[1]=n*p+o*u,h[2]=n*c+o*m,h[3]=n*d+o*g,h}function yt(t,e){var i=e[0],s=e[1],a=e[2],r=e[3],n=Math.atan2(2*s*r-2*i*a,1-2*s*s-2*a*a),o=Math.asin(2*i*s+2*a*r),h=Math.atan2(2*i*r-2*s*a,1-2*i*i-2*a*a);t[0]=n/T,t[1]=o/T,t[2]=h/T}function vt(t){var e=t[0]*T,i=t[1]*T,s=t[2]*T,a=Math.cos(e/2),r=Math.cos(i/2),n=Math.cos(s/2),o=Math.sin(e/2),h=Math.sin(i/2),l=Math.sin(s/2);return[o*h*n+a*r*l,o*r*n+a*h*l,a*h*n-o*r*l,a*r*n-o*h*l]}function bt(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==ft&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(t,this._caching);this.pv=s}return this._caching.lastFrame=t,this.pv}function kt(t){var e;if("unidimensional"===this.propType)e=t*this.mult,ut(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)e=t[i]*this.mult,ut(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function wt(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function _t(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function xt(t,e,i,s){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=wt,this.setVValue=kt,this.addEffect=_t}function Tt(t,e,i,s){var a;this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=s,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r=e.k.length;for(this.v=f("float32",r),this.pv=f("float32",r),this.vel=f("float32",r),a=0;a<r;a+=1)this.v[a]=e.k[a]*this.mult,this.pv[a]=e.k[a];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=wt,this.setVValue=kt,this.addEffect=_t}function Pt(t,e,i,s){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:ft,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.v=ft,this.pv=ft,this._isFirstFrame=!0,this.getValue=wt,this.setVValue=kt,this.interpolateValue=mt,this.effectsSequence=[bt.bind(this)],this.addEffect=_t}function At(t,e,i,s){var a;this.propType="multidimensional";var r,n,o,h,l=e.k.length;for(a=0;a<l-1;a+=1)e.k[a].to&&e.k[a].s&&e.k[a+1]&&e.k[a+1].s&&(r=e.k[a].s,n=e.k[a+1].s,o=e.k[a].to,h=e.k[a].ti,(2===r.length&&(r[0]!==n[0]||r[1]!==n[1])&&dt.pointOnLine2D(r[0],r[1],n[0],n[1],r[0]+o[0],r[1]+o[1])&&dt.pointOnLine2D(r[0],r[1],n[0],n[1],n[0]+h[0],n[1]+h[1])||3===r.length&&(r[0]!==n[0]||r[1]!==n[1]||r[2]!==n[2])&&dt.pointOnLine3D(r[0],r[1],r[2],n[0],n[1],n[2],r[0]+o[0],r[1]+o[1],r[2]+o[2])&&dt.pointOnLine3D(r[0],r[1],r[2],n[0],n[1],n[2],n[0]+h[0],n[1]+h[1],n[2]+h[2]))&&(e.k[a].to=null,e.k[a].ti=null),r[0]===n[0]&&r[1]===n[1]&&0===o[0]&&0===o[1]&&0===h[0]&&0===h[1]&&(2===r.length||r[2]===n[2]&&0===o[2]&&0===h[2])&&(e.k[a].to=null,e.k[a].ti=null));this.effectsSequence=[bt.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=s,this.comp=t.comp,this.getValue=wt,this.setVValue=kt,this.interpolateValue=mt,this.frameId=-1;var p=e.k[0].s.length;for(this.v=f("float32",p),this.pv=f("float32",p),a=0;a<p;a+=1)this.v[a]=ft,this.pv[a]=ft;this._caching={lastFrame:ft,lastIndex:0,value:f("float32",p)},this.addEffect=_t}var St=function(){function t(t,e,i,s,a){var r;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length)if("number"==typeof e.k[0])r=new Tt(t,e,s,a);else switch(i){case 0:r=new Pt(t,e,s,a);break;case 1:r=new At(t,e,s,a)}else r=new xt(t,e,s,a);return r.effectsSequence.length&&a.addDynamicProperty(r),r}return{getProp:t}}();function Et(){}Et.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var Ct=function(){function t(){return f("float32",2)}return ht(8,t)}();function Dt(){this.c=!1,this._length=0,this._maxLength=8,this.v=u(this._maxLength),this.o=u(this._maxLength),this.i=u(this._maxLength)}Dt.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=Ct.newElement(),this.o[i]=Ct.newElement(),this.i[i]=Ct.newElement(),i+=1},Dt.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},Dt.prototype.doubleArrayLength=function(){this.v=this.v.concat(u(this._maxLength)),this.i=this.i.concat(u(this._maxLength)),this.o=this.o.concat(u(this._maxLength)),this._maxLength*=2},Dt.prototype.setXYAt=function(t,e,i,s,a){var r;switch(this._length=Math.max(this._length,s+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":r=this.v;break;case"i":r=this.i;break;case"o":r=this.o;break;default:r=[]}(!r[s]||r[s]&&!a)&&(r[s]=Ct.newElement()),r[s][0]=t,r[s][1]=e},Dt.prototype.setTripleAt=function(t,e,i,s,a,r,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(i,s,"o",n,o),this.setXYAt(a,r,"i",n,o)},Dt.prototype.reverse=function(){var t=new Dt;t.setPathData(this.c,this._length);var e=this.v,i=this.o,s=this.i,a=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],s[0][0],s[0][1],i[0][0],i[0][1],0,!1),a=1);var r,n=this._length-1,o=this._length;for(r=a;r<o;r+=1)t.setTripleAt(e[n][0],e[n][1],s[n][0],s[n][1],i[n][0],i[n][1],r,!1),n-=1;return t},Dt.prototype.length=function(){return this._length};var Mt=function(){function t(){return new Dt}function e(t){var e,i=t._length;for(e=0;e<i;e+=1)Ct.release(t.v[e]),Ct.release(t.i[e]),Ct.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}function i(t){var e,i=s.newElement(),a=void 0===t._length?t.v.length:t._length;for(i.setLength(a),i.c=t.c,e=0;e<a;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i}var s=ht(4,t,e);return s.clone=i,s}();function It(){this._length=0,this._maxLength=4,this.shapes=u(this._maxLength)}It.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(u(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},It.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)Mt.release(this.shapes[t]);this._length=0};var Ft=function(){var t={newShapeCollection:a,release:r},e=0,i=4,s=u(i);function a(){return e?s[e-=1]:new It}function r(t){var a,r=t._length;for(a=0;a<r;a+=1)Mt.release(t.shapes[a]);t._length=0,e===i&&(s=ot.double(s),i*=2),s[e]=t,e+=1}return t}(),Lt=function(){var t=-999999;function e(t,e,i){var s,a,r,n,o,h,l,p,c,d=i.lastIndex,f=this.keyframes;if(t<f[0].t-this.offsetTime)s=f[0].s[0],r=!0,d=0;else if(t>=f[f.length-1].t-this.offsetTime)s=f[f.length-1].s?f[f.length-1].s[0]:f[f.length-2].e[0],r=!0;else{for(var u,m,g,y=d,v=f.length-1,b=!0;b&&(u=f[y],!((m=f[y+1]).t-this.offsetTime>t));)y<v-1?y+=1:b=!1;if(g=this.keyframesMetadata[y]||{},d=y,!(r=1===u.h)){if(t>=m.t-this.offsetTime)p=1;else if(t<u.t-this.offsetTime)p=0;else{var k;g.__fnct?k=g.__fnct:(k=nt.getBezierEasing(u.o.x,u.o.y,u.i.x,u.i.y).get,g.__fnct=k),p=k((t-(u.t-this.offsetTime))/(m.t-this.offsetTime-(u.t-this.offsetTime)))}a=m.s?m.s[0]:u.e[0]}s=u.s[0]}for(h=e._length,l=s.i[0].length,i.lastIndex=d,n=0;n<h;n+=1)for(o=0;o<l;o+=1)c=r?s.i[n][o]:s.i[n][o]+(a.i[n][o]-s.i[n][o])*p,e.i[n][o]=c,c=r?s.o[n][o]:s.o[n][o]+(a.o[n][o]-s.o[n][o])*p,e.o[n][o]=c,c=r?s.v[n][o]:s.v[n][o]+(a.v[n][o]-s.v[n][o])*p,e.v[n][o]=c}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,s=this.keyframes[this.keyframes.length-1].t-this.offsetTime,a=this._caching.lastFrame;return a!==t&&(a<i&&e<i||a>s&&e>s)||(this._caching.lastIndex=a<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function s(){this.paths=this.localShapeCollection}function a(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,s=t._length;for(i=0;i<s;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0}function r(t){a(this.v,t)||(this.v=Mt.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function o(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var a=3===i?e.pt.k:e.ks.k;this.v=Mt.clone(a),this.pv=Mt.clone(this.v),this.localShapeCollection=Ft.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=s,this.effectsSequence=[]}function h(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(e,a,r){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===r?a.pt.k:a.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var n=this.keyframes[0].s[0].i.length;this.v=Mt.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,n),this.pv=Mt.clone(this.v),this.localShapeCollection=Ft.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=s,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}o.prototype.interpolateShape=e,o.prototype.getValue=n,o.prototype.setVValue=r,o.prototype.addEffect=h,l.prototype.getValue=n,l.prototype.interpolateShape=e,l.prototype.setVValue=r,l.prototype.addEffect=h;var c=function(){var t=P;function e(t,e){this.v=Mt.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=Ft.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=St.getProp(t,e.p,1,0,this),this.s=St.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],s=this.s.v[0]/2,a=this.s.v[1]/2,r=3!==this.d,n=this.v;n.v[0][0]=e,n.v[0][1]=i-a,n.v[1][0]=r?e+s:e-s,n.v[1][1]=i,n.v[2][0]=e,n.v[2][1]=i+a,n.v[3][0]=r?e-s:e+s,n.v[3][1]=i,n.i[0][0]=r?e-s*t:e+s*t,n.i[0][1]=i-a,n.i[1][0]=r?e+s:e-s,n.i[1][1]=i-a*t,n.i[2][0]=r?e+s*t:e-s*t,n.i[2][1]=i+a,n.i[3][0]=r?e-s:e+s,n.i[3][1]=i+a*t,n.o[0][0]=r?e+s*t:e-s*t,n.o[0][1]=i-a,n.o[1][0]=r?e+s:e-s,n.o[1][1]=i+a*t,n.o[2][0]=r?e-s*t:e+s*t,n.o[2][1]=i+a,n.o[3][0]=r?e-s:e+s,n.o[3][1]=i-a*t}},p([Et],e),e}(),d=function(){function t(t,e){this.v=Mt.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=St.getProp(t,e.ir,0,0,this),this.is=St.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=St.getProp(t,e.pt,0,0,this),this.p=St.getProp(t,e.p,1,0,this),this.r=St.getProp(t,e.r,0,T,this),this.or=St.getProp(t,e.or,0,0,this),this.os=St.getProp(t,e.os,0,.01,this),this.localShapeCollection=Ft.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:s,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,s,a=2*Math.floor(this.pt.v),r=2*Math.PI/a,n=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,c=2*Math.PI*o/(2*a),d=2*Math.PI*h/(2*a),f=-Math.PI/2;f+=this.r.v;var u=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<a;t+=1){i=n?l:p,s=n?c:d;var m=(e=n?o:h)*Math.cos(f),g=e*Math.sin(f),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-y*s*i*u,g-v*s*i*u,m+y*s*i*u,g+v*s*i*u,t,!0),n=!n,f+=r*u}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,s=this.or.v,a=this.os.v,r=2*Math.PI*s/(4*e),n=.5*-Math.PI,o=3===this.data.d?-1:1;for(n+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=s*Math.cos(n),l=s*Math.sin(n),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),c=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*r*a*o,l-c*r*a*o,h+p*r*a*o,l+c*r*a*o,t,!0),n+=i*o}this.paths.length=0,this.paths[0]=this.v}},p([Et],t),t}(),f=function(){function t(t,e){this.v=Mt.newElement(),this.v.c=!0,this.localShapeCollection=Ft.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=St.getProp(t,e.p,1,0,this),this.s=St.getProp(t,e.s,1,0,this),this.r=St.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,a=_(i,s,this.r.v),r=a*(1-P);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-s+a,t+i,e-s+a,t+i,e-s+r,0,!0),this.v.setTripleAt(t+i,e+s-a,t+i,e+s-r,t+i,e+s-a,1,!0),0!==a?(this.v.setTripleAt(t+i-a,e+s,t+i-a,e+s,t+i-r,e+s,2,!0),this.v.setTripleAt(t-i+a,e+s,t-i+r,e+s,t-i+a,e+s,3,!0),this.v.setTripleAt(t-i,e+s-a,t-i,e+s-a,t-i,e+s-r,4,!0),this.v.setTripleAt(t-i,e-s+a,t-i,e-s+r,t-i,e-s+a,5,!0),this.v.setTripleAt(t-i+a,e-s,t-i+a,e-s,t-i+r,e-s,6,!0),this.v.setTripleAt(t+i-a,e-s,t+i-r,e-s,t+i-a,e-s,7,!0)):(this.v.setTripleAt(t-i,e+s,t-i+r,e+s,t-i,e+s,2),this.v.setTripleAt(t-i,e-s,t-i,e-s+r,t-i,e-s,3))):(this.v.setTripleAt(t+i,e-s+a,t+i,e-s+r,t+i,e-s+a,0,!0),0!==a?(this.v.setTripleAt(t+i-a,e-s,t+i-a,e-s,t+i-r,e-s,1,!0),this.v.setTripleAt(t-i+a,e-s,t-i+r,e-s,t-i+a,e-s,2,!0),this.v.setTripleAt(t-i,e-s+a,t-i,e-s+a,t-i,e-s+r,3,!0),this.v.setTripleAt(t-i,e+s-a,t-i,e+s-r,t-i,e+s-a,4,!0),this.v.setTripleAt(t-i+a,e+s,t-i+a,e+s,t-i+r,e+s,5,!0),this.v.setTripleAt(t+i-a,e+s,t+i-r,e+s,t+i-a,e+s,6,!0),this.v.setTripleAt(t+i,e+s-a,t+i,e+s-a,t+i,e+s-r,7,!0)):(this.v.setTripleAt(t-i,e-s,t-i+r,e-s,t-i,e-s,1,!0),this.v.setTripleAt(t-i,e+s,t-i,e+s-r,t-i,e+s,2,!0),this.v.setTripleAt(t+i,e+s,t+i-r,e+s,t+i,e+s,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:s},p([Et],t),t}();function u(t,e,i){var s;return 3===i||4===i?s=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new o(t,e,i):5===i?s=new f(t,e):6===i?s=new c(t,e):7===i&&(s=new d(t,e)),s.k&&t.addDynamicProperty(s),s}function m(){return o}function g(){return l}var y={};return y.getShapeProp=u,y.getConstructorFunction=m,y.getKeyframedConstructorFunction=g,y}(),Rt=function(){var t=Math.cos,e=Math.sin,i=Math.tan,s=Math.round;function a(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function r(i){if(0===i)return this;var s=t(i),a=e(i);return this._t(s,-a,0,0,a,s,0,0,0,0,1,0,0,0,0,1)}function n(i){if(0===i)return this;var s=t(i),a=e(i);return this._t(1,0,0,0,0,s,-a,0,0,a,s,0,0,0,0,1)}function o(i){if(0===i)return this;var s=t(i),a=e(i);return this._t(s,0,a,0,0,1,0,0,-a,0,s,0,0,0,0,1)}function h(i){if(0===i)return this;var s=t(i),a=e(i);return this._t(s,-a,0,0,a,s,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(i(t),i(e))}function c(s,a){var r=t(a),n=e(a);return this._t(r,n,0,0,-n,r,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(s),1,0,0,0,0,1,0,0,0,0,1)._t(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function d(t,e,i){return i||0===i||(i=1),1===t&&1===e&&1===i?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function u(t,e,i,s,a,r,n,o,h,l,p,c,d,f,u,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=s,this.props[4]=a,this.props[5]=r,this.props[6]=n,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=c,this.props[12]=d,this.props[13]=f,this.props[14]=u,this.props[15]=m,this}function m(t,e,i){return i=i||0,0!==t||0!==e||0!==i?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function g(t,e,i,s,a,r,n,o,h,l,p,c,d,f,u,m){var g=this.props;if(1===t&&0===e&&0===i&&0===s&&0===a&&1===r&&0===n&&0===o&&0===h&&0===l&&1===p&&0===c)return g[12]=g[12]*t+g[15]*d,g[13]=g[13]*r+g[15]*f,g[14]=g[14]*p+g[15]*u,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],b=g[2],k=g[3],w=g[4],_=g[5],x=g[6],T=g[7],P=g[8],A=g[9],S=g[10],E=g[11],C=g[12],D=g[13],M=g[14],I=g[15];return g[0]=y*t+v*a+b*h+k*d,g[1]=y*e+v*r+b*l+k*f,g[2]=y*i+v*n+b*p+k*u,g[3]=y*s+v*o+b*c+k*m,g[4]=w*t+_*a+x*h+T*d,g[5]=w*e+_*r+x*l+T*f,g[6]=w*i+_*n+x*p+T*u,g[7]=w*s+_*o+x*c+T*m,g[8]=P*t+A*a+S*h+E*d,g[9]=P*e+A*r+S*l+E*f,g[10]=P*i+A*n+S*p+E*u,g[11]=P*s+A*o+S*c+E*m,g[12]=C*t+D*a+M*h+I*d,g[13]=C*e+D*r+M*l+I*f,g[14]=C*i+D*n+M*p+I*u,g[15]=C*s+D*o+M*c+I*m,this._identityCalculated=!1,this}function y(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function b(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function k(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function w(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function _(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function x(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function T(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function P(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function A(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,s=-this.props[4]/t,a=this.props[0]/t,r=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,n=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Rt;return o.props[0]=e,o.props[1]=i,o.props[4]=s,o.props[5]=a,o.props[12]=r,o.props[13]=n,o}function S(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function E(t){var e,i=t.length,s=[];for(e=0;e<i;e+=1)s[e]=S(t[e]);return s}function C(t,e,i){var s=f("float32",6);if(this.isIdentity())s[0]=t[0],s[1]=t[1],s[2]=e[0],s[3]=e[1],s[4]=i[0],s[5]=i[1];else{var a=this.props[0],r=this.props[1],n=this.props[4],o=this.props[5],h=this.props[12],l=this.props[13];s[0]=t[0]*a+t[1]*n+h,s[1]=t[0]*r+t[1]*o+l,s[2]=e[0]*a+e[1]*n+h,s[3]=e[0]*r+e[1]*o+l,s[4]=i[0]*a+i[1]*n+h,s[5]=i[0]*r+i[1]*o+l}return s}function D(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function M(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function I(){for(var t=0,e=this.props,i="matrix3d(",a=1e4;t<16;)i+=s(e[t]*a)/a,i+=15===t?")":",",t+=1;return i}function F(t){var e=1e4;return t<1e-6&&t>0||t>-1e-6&&t<0?s(t*e)/e:t}function L(){var t=this.props;return"matrix("+F(t[0])+","+F(t[1])+","+F(t[4])+","+F(t[5])+","+F(t[12])+","+F(t[13])+")"}return function(){this.reset=a,this.rotate=r,this.rotateX=n,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=c,this.shear=l,this.scale=d,this.setTransform=u,this.translate=m,this.transform=g,this.multiply=y,this.applyToPoint=_,this.applyToX=x,this.applyToY=T,this.applyToZ=P,this.applyToPointArray=D,this.applyToTriplePoints=C,this.applyToPointStringified=M,this.toCSS=I,this.to2dCSS=L,this.clone=k,this.cloneFromProps=w,this.equals=b,this.inversePoints=E,this.inversePoint=S,this.getInverseMatrix=A,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=f("float32",16),this.reset()}}();function Ot(t){return(Ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Nt={};function Vt(t){o(t)}function zt(){rt.searchAnimations()}function Ut(t){z(t)}function Wt(t){$(t)}function jt(t){return rt.loadAnimation(t)}function qt(t){if("string"==typeof t)switch(t){case"high":q(200);break;default:case"medium":q(50);break;case"low":q(10)}else!isNaN(t)&&t>1&&q(t)}function Bt(){return"undefined"!=typeof navigator}function $t(t,e){"expressions"===t&&W(e)}function Gt(t){switch(t){case"propertyFactory":return St;case"shapePropertyFactory":return Lt;case"matrix":return Rt;default:return null}}function Yt(){"complete"===document.readyState&&(clearInterval(Qt),zt())}function Ht(t){for(var e=Xt.split("&"),i=0;i<e.length;i+=1){var s=e[i].split("=");if(decodeURIComponent(s[0])==t)return decodeURIComponent(s[1])}return null}Nt.play=rt.play,Nt.pause=rt.pause,Nt.setLocationHref=Vt,Nt.togglePause=rt.togglePause,Nt.setSpeed=rt.setSpeed,Nt.setDirection=rt.setDirection,Nt.stop=rt.stop,Nt.searchAnimations=zt,Nt.registerAnimation=rt.registerAnimation,Nt.loadAnimation=jt,Nt.setSubframeRendering=Ut,Nt.resize=rt.resize,Nt.goToAndStop=rt.goToAndStop,Nt.destroy=rt.destroy,Nt.setQuality=qt,Nt.inBrowser=Bt,Nt.installPlugin=$t,Nt.freeze=rt.freeze,Nt.unfreeze=rt.unfreeze,Nt.setVolume=rt.setVolume,Nt.mute=rt.mute,Nt.unmute=rt.unmute,Nt.getRegisteredAnimations=rt.getRegisteredAnimations,Nt.useWebWorker=a,Nt.setIDPrefix=Wt,Nt.__getFactory=Gt,Nt.version="5.13.0";var Xt="",Kt=document.getElementsByTagName("script"),Jt=Kt.length-1,Zt=Kt[Jt]||{src:""};Xt=Zt.src?Zt.src.replace(/^[^\?]+\??/,""):"",Ht("renderer");var Qt=setInterval(Yt,100);try{"object"!==Ot(r)&&(window.bodymovin=Nt)}catch(Ji){}var te=function(){var t={},e={};function i(t,i){e[t]||(e[t]=i)}function s(t,i,s){return new e[t](i,s)}return t.registerModifier=i,t.getModifier=s,t}();function ee(){}function ie(){}function se(){}ee.prototype.initModifierProperties=function(){},ee.prototype.addShapeToModifier=function(){},ee.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:Ft.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ee.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=s,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ee.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},p([Et],ee),p([ee],ie),ie.prototype.initModifierProperties=function(t,e){this.s=St.getProp(t,e.s,0,.01,this),this.e=St.getProp(t,e.e,0,.01,this),this.o=St.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},ie.prototype.addShapeToModifier=function(t){t.pathsData=[]},ie.prototype.calculateShapeEdges=function(t,e,i,s,a){var r=[];e<=1?r.push({s:t,e:e}):t>=1?r.push({s:t-1,e:e-1}):(r.push({s:t,e:1}),r.push({s:0,e:e-1}));var n,o,h=[],l=r.length;for(n=0;n<l;n+=1){var p,c;(o=r[n]).e*a<s||o.s*a>s+i||(p=o.s*a<=s?0:(o.s*a-s)/i,c=o.e*a>=s+i?1:(o.e*a-s)/i,h.push([p,c]))}return h.length||h.push([0,0]),h},ie.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)pt.release(t[e]);return t.length=0,t},ie.prototype.processShapes=function(t){var e,i,s,a;if(this._mdf||t){var r=this.o.v%360/360;if(r<0&&(r+=1),(e=this.s.v>1?1+r:this.s.v<0?0+r:this.s.v+r)>(i=this.e.v>1?1+r:this.e.v<0?0+r:this.e.v+r)){var n=e;e=i,i=n}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var o,h,l,p,c,d=this.shapes.length,f=0;if(i===e)for(a=0;a<d;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection,this._mdf&&(this.shapes[a].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(a=0;a<d;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var u,m,g=[];for(a=0;a<d;a+=1)if((u=this.shapes[a]).shape._mdf||this._mdf||t||2===this.m){if(h=(s=u.shape.paths)._length,c=0,!u.shape._mdf&&u.pathsData.length)c=u.totalShapeLength;else{for(l=this.releasePathsData(u.pathsData),o=0;o<h;o+=1)p=dt.getSegmentsLength(s.shapes[o]),l.push(p),c+=p.totalLength;u.totalShapeLength=c,u.pathsData=l}f+=c,u.shape._mdf=!0}else u.shape.paths=u.localShapeCollection;var y,v=e,b=i,k=0;for(a=d-1;a>=0;a-=1)if((u=this.shapes[a]).shape._mdf){for((m=u.localShapeCollection).releaseShapes(),2===this.m&&d>1?(y=this.calculateShapeEdges(e,i,u.totalShapeLength,k,f),k+=u.totalShapeLength):y=[[v,b]],h=y.length,o=0;o<h;o+=1){v=y[o][0],b=y[o][1],g.length=0,b<=1?g.push({s:u.totalShapeLength*v,e:u.totalShapeLength*b}):v>=1?g.push({s:u.totalShapeLength*(v-1),e:u.totalShapeLength*(b-1)}):(g.push({s:u.totalShapeLength*v,e:u.totalShapeLength}),g.push({s:0,e:u.totalShapeLength*(b-1)}));var w=this.addShapes(u,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(u.shape.paths.shapes[u.shape.paths._length-1].c){var _=w.pop();this.addPaths(w,m),w=this.addShapes(u,g[1],_)}else this.addPaths(w,m),w=this.addShapes(u,g[1]);this.addPaths(w,m)}}u.shape.paths=m}}},ie.prototype.addPaths=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)e.addShape(t[i])},ie.prototype.addSegment=function(t,e,i,s,a,r,n){a.setXYAt(e[0],e[1],"o",r),a.setXYAt(i[0],i[1],"i",r+1),n&&a.setXYAt(t[0],t[1],"v",r),a.setXYAt(s[0],s[1],"v",r+1)},ie.prototype.addSegmentFromArray=function(t,e,i,s){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),s&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},ie.prototype.addShapes=function(t,e,i){var s,a,r,n,o,h,l,p,c=t.pathsData,d=t.shape.paths.shapes,f=t.shape.paths._length,u=0,m=[],g=!0;for(i?(o=i._length,p=i._length):(i=Mt.newElement(),o=0,p=0),m.push(i),s=0;s<f;s+=1){for(h=c[s].lengths,i.c=d[s].c,r=d[s].c?h.length:h.length+1,a=1;a<r;a+=1)if(u+(n=h[a-1]).addedLength<e.s)u+=n.addedLength,i.c=!1;else{if(u>e.e){i.c=!1;break}e.s<=u&&e.e>=u+n.addedLength?(this.addSegment(d[s].v[a-1],d[s].o[a-1],d[s].i[a],d[s].v[a],i,o,g),g=!1):(l=dt.getNewSegment(d[s].v[a-1],d[s].v[a],d[s].o[a-1],d[s].i[a],(e.s-u)/n.addedLength,(e.e-u)/n.addedLength,h[a-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1),u+=n.addedLength,o+=1}if(d[s].c&&h.length){if(n=h[a-1],u<=e.e){var y=h[a-1].addedLength;e.s<=u&&e.e>=u+y?(this.addSegment(d[s].v[a-1],d[s].o[a-1],d[s].i[0],d[s].v[0],i,o,g),g=!1):(l=dt.getNewSegment(d[s].v[a-1],d[s].v[0],d[s].o[a-1],d[s].i[0],(e.s-u)/y,(e.e-u)/y,h[a-1]),this.addSegmentFromArray(l,i,o,g),g=!1,i.c=!1)}else i.c=!1;u+=n.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[p][0],i.v[p][1],"i",p),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),u>e.e)break;s<f-1&&(i=Mt.newElement(),g=!0,m.push(i),o=0)}return m},p([ee],se),se.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=St.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},se.prototype.processPath=function(t,e){var i=e/100,s=[0,0],a=t._length,r=0;for(r=0;r<a;r+=1)s[0]+=t.v[r][0],s[1]+=t.v[r][1];s[0]/=a,s[1]/=a;var n,o,h,l,p,c,d=Mt.newElement();for(d.c=t.c,r=0;r<a;r+=1)n=t.v[r][0]+(s[0]-t.v[r][0])*i,o=t.v[r][1]+(s[1]-t.v[r][1])*i,h=t.o[r][0]+(s[0]-t.o[r][0])*-i,l=t.o[r][1]+(s[1]-t.o[r][1])*-i,p=t.i[r][0]+(s[0]-t.i[r][0])*-i,c=t.i[r][1]+(s[1]-t.i[r][1])*-i,d.setTripleAt(n,o,h,l,p,c,r);return d},se.prototype.processShapes=function(t){var e,i,s,a,r,n,o=this.shapes.length,h=this.amount.v;if(0!==h)for(i=0;i<o;i+=1){if(n=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(n.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,a=r.shape.paths._length,s=0;s<a;s+=1)n.addShape(this.processPath(e[s],h));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var ae=function(){var t=[0,0];function e(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.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.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&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 s,a;if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(s=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),a=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(s=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),a=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(s=this.p.pv,a=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){s=[],a=[];var r=this.px,n=this.py;r._caching.lastFrame+r.offsetTime<=r.keyframes[0].t?(s[0]=r.getValueAtTime((r.keyframes[0].t+.01)/i,0),s[1]=n.getValueAtTime((n.keyframes[0].t+.01)/i,0),a[0]=r.getValueAtTime(r.keyframes[0].t/i,0),a[1]=n.getValueAtTime(n.keyframes[0].t/i,0)):r._caching.lastFrame+r.offsetTime>=r.keyframes[r.keyframes.length-1].t?(s[0]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/i,0),s[1]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/i,0),a[0]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/i,0),a[1]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/i,0)):(s=[r.pv,n.pv],a[0]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/i,r.offsetTime),a[1]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/i,n.offsetTime))}else s=a=t;this.v.rotate(-Math.atan2(s[1]-a[1],s[0]-a[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}}function s(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(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)}}function a(){}function r(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function n(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Rt,this.pre=new Rt,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=St.getProp(t,e.p.x,0,0,this),this.py=St.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=St.getProp(t,e.p.z,0,0,this))):this.p=St.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=St.getProp(t,e.rx,0,T,this),this.ry=St.getProp(t,e.ry,0,T,this),this.rz=St.getProp(t,e.rz,0,T,this),e.or.k[0].ti){var s,a=e.or.k.length;for(s=0;s<a;s+=1)e.or.k[s].to=null,e.or.k[s].ti=null}this.or=St.getProp(t,e.or,1,T,this),this.or.sh=!0}else this.r=St.getProp(t,e.r||{k:0},0,T,this);e.sk&&(this.sk=St.getProp(t,e.sk,0,T,this),this.sa=St.getProp(t,e.sa,0,T,this)),this.a=St.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=St.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=St.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}function o(t,e,i){return new n(t,e,i)}return n.prototype={applyToMatrix:e,getValue:i,precalculateMatrix:s,autoOrient:a},p([Et],n),n.prototype.addDynamicProperty=r,n.prototype._addDynamicProperty=Et.prototype.addDynamicProperty,{getTransformProperty:o}}();function re(){}function ne(){}function oe(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function he(t){return Math.abs(t)<=1e-5}function le(t,e,i){return t*(1-i)+e*i}function pe(t,e,i){return[le(t[0],e[0],i),le(t[1],e[1],i)]}function ce(t,e,i){if(0===t)return[];var s=e*e-4*t*i;if(s<0)return[];var a=-e/(2*t);if(0===s)return[a];var r=Math.sqrt(s)/(2*t);return[a-r,a+r]}function de(t,e,i,s){return[3*e-t-3*i+s,3*t-6*e+3*i,-3*t+3*e,t]}function fe(t){return new ue(t,t,t,t,!1)}function ue(t,e,i,s,a){a&&Te(t,e)&&(e=pe(t,s,1/3)),a&&Te(i,s)&&(i=pe(t,s,2/3));var r=de(t[0],e[0],i[0],s[0]),n=de(t[1],e[1],i[1],s[1]);this.a=[r[0],n[0]],this.b=[r[1],n[1]],this.c=[r[2],n[2]],this.d=[r[3],n[3]],this.points=[t,e,i,s]}function me(t,e){var i=t.points[0][e],s=t.points[t.points.length-1][e];if(i>s){var a=s;s=i,i=a}for(var r=ce(3*t.a[e],2*t.b[e],t.c[e]),n=0;n<r.length;n+=1)if(r[n]>0&&r[n]<1){var o=t.point(r[n])[e];o<i?i=o:o>s&&(s=o)}return{min:i,max:s}}function ge(t,e,i){var s=t.boundingBox();return{cx:s.cx,cy:s.cy,width:s.width,height:s.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function ye(t){var e=t.bez.split(.5);return[ge(e[0],t.t1,t.t),ge(e[1],t.t,t.t2)]}function ve(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function be(t,e,i,s,a,r){if(ve(t,e))if(i>=r||t.width<=s&&t.height<=s&&e.width<=s&&e.height<=s)a.push([t.t,e.t]);else{var n=ye(t),o=ye(e);be(n[0],o[0],i+1,s,a,r),be(n[0],o[1],i+1,s,a,r),be(n[1],o[0],i+1,s,a,r),be(n[1],o[1],i+1,s,a,r)}}function ke(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function we(t,e,i,s){var a=[t[0],t[1],1],r=[e[0],e[1],1],n=[i[0],i[1],1],o=[s[0],s[1],1],h=ke(ke(a,r),ke(n,o));return he(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function _e(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function xe(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function Te(t,e){return oe(t[0],e[0])&&oe(t[1],e[1])}function Pe(){}function Ae(t,e,i,s,a,r,n){var o=i-Math.PI/2,h=i+Math.PI/2,l=e[0]+Math.cos(i)*s*a,p=e[1]-Math.sin(i)*s*a;t.setTripleAt(l,p,l+Math.cos(o)*r,p-Math.sin(o)*r,l+Math.cos(h)*n,p-Math.sin(h)*n,t.length())}function Se(t,e){var i=[e[0]-t[0],e[1]-t[1]],s=.5*-Math.PI;return[Math.cos(s)*i[0]-Math.sin(s)*i[1],Math.sin(s)*i[0]+Math.cos(s)*i[1]]}function Ee(t,e){var i=0===e?t.length()-1:e-1,s=(e+1)%t.length(),a=Se(t.v[i],t.v[s]);return Math.atan2(0,1)-Math.atan2(a[1],a[0])}function Ce(t,e,i,s,a,r,n){var o=Ee(e,i),h=e.v[i%e._length],l=e.v[0===i?e._length-1:i-1],p=e.v[(i+1)%e._length],c=2===r?Math.sqrt(Math.pow(h[0]-l[0],2)+Math.pow(h[1]-l[1],2)):0,d=2===r?Math.sqrt(Math.pow(h[0]-p[0],2)+Math.pow(h[1]-p[1],2)):0;Ae(t,e.v[i%e._length],o,n,s,d/(2*(a+1)),c/(2*(a+1)))}function De(t,e,i,s,a,r){for(var n=0;n<s;n+=1){var o=(n+1)/(s+1),h=2===a?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,l=e.normalAngle(o);Ae(t,e.point(o),l,r,i,h/(2*(s+1)),h/(2*(s+1))),r=-r}return r}function Me(t,e,i){var s=Math.atan2(e[0]-t[0],e[1]-t[1]);return[_e(t,s,i),_e(e,s,i)]}function Ie(t,e){var i,s,a,r,n,o,h;i=(h=Me(t.points[0],t.points[1],e))[0],s=h[1],a=(h=Me(t.points[1],t.points[2],e))[0],r=h[1],n=(h=Me(t.points[2],t.points[3],e))[0],o=h[1];var l=we(i,s,a,r);null===l&&(l=s);var p=we(n,o,a,r);return null===p&&(p=n),new ue(i,l,p,o)}function Fe(t,e,i,s,a){var r=e.points[3],n=i.points[0];if(3===s)return r;if(Te(r,n))return r;if(2===s){var o=-e.tangentAngle(1),h=-i.tangentAngle(0)+Math.PI,l=we(r,_e(r,o+Math.PI/2,100),n,_e(n,o+Math.PI/2,100)),p=l?xe(l,r):xe(r,n)/2,c=_e(r,o,2*p*P);return t.setXYAt(c[0],c[1],"o",t.length()-1),c=_e(n,h,2*p*P),t.setTripleAt(n[0],n[1],n[0],n[1],c[0],c[1],t.length()),n}var d=we(Te(r,e.points[2])?e.points[0]:e.points[2],r,n,Te(n,i.points[1])?i.points[3]:i.points[1]);return d&&xe(d,r)<a?(t.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],t.length()),d):r}function Le(t,e){var i=t.intersections(e);return i.length&&oe(i[0][0],1)&&i.shift(),i.length?i[0]:null}function Re(t,e){var i=t.slice(),s=e.slice(),a=Le(t[t.length-1],e[0]);return a&&(i[t.length-1]=t[t.length-1].split(a[0])[0],s[0]=e[0].split(a[1])[1]),t.length>1&&e.length>1&&(a=Le(t[0],e[e.length-1]))?[[t[0].split(a[0])[0]],[e[e.length-1].split(a[1])[1]]]:[i,s]}function Oe(t){for(var e,i=1;i<t.length;i+=1)e=Re(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=Re(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function Ne(t,e){var i,s,a,r,n=t.inflectionPoints();if(0===n.length)return[Ie(t,e)];if(1===n.length||oe(n[1],1))return i=(a=t.split(n[0]))[0],s=a[1],[Ie(i,e),Ie(s,e)];i=(a=t.split(n[0]))[0];var o=(n[1]-n[0])/(1-n[0]);return r=(a=a[1].split(o))[0],s=a[1],[Ie(i,e),Ie(r,e),Ie(s,e)]}function Ve(){}function ze(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",s="normal",a=e.length,r=0;r<a;r+=1)switch(e[r].toLowerCase()){case"italic":s="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:s,weight:t.fWeight||i}}p([ee],re),re.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=St.getProp(t,e.c,0,null,this),this.o=St.getProp(t,e.o,0,null,this),this.tr=ae.getTransformProperty(t,e.tr,this),this.so=St.getProp(t,e.tr.so,0,.01,this),this.eo=St.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Rt,this.rMatrix=new Rt,this.sMatrix=new Rt,this.tMatrix=new Rt,this.matrix=new Rt},re.prototype.applyTransforms=function(t,e,i,s,a,r){var n=r?-1:1,o=s.s.v[0]+(1-s.s.v[0])*(1-a),h=s.s.v[1]+(1-s.s.v[1])*(1-a);t.translate(s.p.v[0]*n*a,s.p.v[1]*n*a,s.p.v[2]),e.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),e.rotate(-s.r.v*n*a),e.translate(s.a.v[0],s.a.v[1],s.a.v[2]),i.translate(-s.a.v[0],-s.a.v[1],s.a.v[2]),i.scale(r?1/o:o,r?1/h:h),i.translate(s.a.v[0],s.a.v[1],s.a.v[2])},re.prototype.init=function(t,e,i,s){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=s,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},re.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},re.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},re.prototype.changeGroupRender=function(t,e){var i,s=t.length;for(i=0;i<s;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},re.prototype.processShapes=function(t){var e,i,s,a,r,n=!1;if(this._mdf||t){var o,h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),n=!0}for(r=0,s=0;s<=this._groups.length-1;s+=1){if(o=r<h,this._groups[s]._render=o,this.changeGroupRender(this._groups[s].it,o),!o){var p=this.elemsData[s].it,c=p[p.length-1];0!==c.transform.op.v?(c.transform.op._mdf=!0,c.transform.op.v=0):c.transform.op._mdf=!1}r+=1}this._currentCopies=h;var d=this.o.v,f=d%1,u=d>0?Math.floor(d):Math.ceil(d),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,k=0;if(d>0){for(;k<u;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),k+=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,f,!1),k+=f)}else if(d<0){for(;k>u;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),k-=1;f&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-f,!0),k-=f)}for(s=1===this.data.m?0:this._currentCopies-1,a=1===this.data.m?1:-1,r=this._currentCopies;r;){if(b=(i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(s/(this._currentCopies-1)),0!==k){for((0!==s&&1===a||s!==this._currentCopies-1&&-1===a)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[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]),v=0;v<b;v+=1)i[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)i[v]=this.matrix.props[v];k+=1,r-=1,s+=a}}else for(r=this._currentCopies,s=0,a=1;r;)i=(e=this.elemsData[s].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,r-=1,s+=a;return n},re.prototype.addShape=function(){},p([ee],ne),ne.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=St.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},ne.prototype.processPath=function(t,e){var i,s=Mt.newElement();s.c=t.c;var a,r,n,o,h,l,p,c,d,f,u,m,g=t._length,y=0;for(i=0;i<g;i+=1)a=t.v[i],n=t.o[i],r=t.i[i],a[0]===n[0]&&a[1]===n[1]&&a[0]===r[0]&&a[1]===r[1]?0!==i&&i!==g-1||t.c?(o=0===i?t.v[g-1]:t.v[i-1],l=(h=Math.sqrt(Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=u=a[0]+(o[0]-a[0])*l,c=m=a[1]-(a[1]-o[1])*l,d=p-(p-a[0])*P,f=c-(c-a[1])*P,s.setTripleAt(p,c,d,f,u,m,y),y+=1,o=i===g-1?t.v[0]:t.v[i+1],l=(h=Math.sqrt(Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=d=a[0]+(o[0]-a[0])*l,c=f=a[1]+(o[1]-a[1])*l,u=p-(p-a[0])*P,m=c-(c-a[1])*P,s.setTripleAt(p,c,d,f,u,m,y),y+=1):(s.setTripleAt(a[0],a[1],n[0],n[1],r[0],r[1],y),y+=1):(s.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],y),y+=1);return s},ne.prototype.processShapes=function(t){var e,i,s,a,r,n,o=this.shapes.length,h=this.rd.v;if(0!==h)for(i=0;i<o;i+=1){if(n=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(n.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,a=r.shape.paths._length,s=0;s<a;s+=1)n.addShape(this.processPath(e[s],h));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},ue.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},ue.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},ue.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},ue.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},ue.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(he(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var s=Math.sqrt(i);return he(s)?s>0&&s<1?[e]:[]:[e-s,e+s].filter(function(t){return t>0&&t<1})},ue.prototype.split=function(t){if(t<=0)return[fe(this.points[0]),this];if(t>=1)return[this,fe(this.points[this.points.length-1])];var e=pe(this.points[0],this.points[1],t),i=pe(this.points[1],this.points[2],t),s=pe(this.points[2],this.points[3],t),a=pe(e,i,t),r=pe(i,s,t),n=pe(a,r,t);return[new ue(this.points[0],e,a,n,!0),new ue(n,r,s,this.points[3],!0)]},ue.prototype.bounds=function(){return{x:me(this,0),y:me(this,1)}},ue.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},ue.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var s=[];return be(ge(this,0,1),ge(t,0,1),0,e,s,i),s},ue.shapeSegment=function(t,e){var i=(e+1)%t.length();return new ue(t.v[e],t.o[e],t.i[i],t.v[i],!0)},ue.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new ue(t.v[i],t.i[i],t.o[e],t.v[e],!0)},p([ee],Pe),Pe.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=St.getProp(t,e.s,0,null,this),this.frequency=St.getProp(t,e.r,0,null,this),this.pointsType=St.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},Pe.prototype.processPath=function(t,e,i,s){var a=t._length,r=Mt.newElement();if(r.c=t.c,t.c||(a-=1),0===a)return r;var n=-1,o=ue.shapeSegment(t,0);Ce(r,t,0,e,i,s,n);for(var h=0;h<a;h+=1)n=De(r,o,e,i,s,-n),o=h!==a-1||t.c?ue.shapeSegment(t,(h+1)%a):null,Ce(r,t,h+1,e,i,s,n);return r},Pe.prototype.processShapes=function(t){var e,i,s,a,r,n,o=this.shapes.length,h=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),p=this.pointsType.v;if(0!==h)for(i=0;i<o;i+=1){if(n=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(n.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,a=r.shape.paths._length,s=0;s<a;s+=1)n.addShape(this.processPath(e[s],h,l,p));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},p([ee],Ve),Ve.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=St.getProp(t,e.a,0,null,this),this.miterLimit=St.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},Ve.prototype.processPath=function(t,e,i,s){var a=Mt.newElement();a.c=t.c;var r,n,o,h=t.length();t.c||(h-=1);var l=[];for(r=0;r<h;r+=1)o=ue.shapeSegment(t,r),l.push(Ne(o,e));if(!t.c)for(r=h-1;r>=0;r-=1)o=ue.shapeSegmentInverted(t,r),l.push(Ne(o,e));l=Oe(l);var p=null,c=null;for(r=0;r<l.length;r+=1){var d=l[r];for(c&&(p=Fe(a,c,d[0],i,s)),c=d[d.length-1],n=0;n<d.length;n+=1)o=d[n],p&&Te(o.points[0],p)?a.setXYAt(o.points[1][0],o.points[1][1],"o",a.length()-1):a.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],a.length()),a.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],a.length()),p=o.points[3]}return l.length&&Fe(a,c,l[0][0],i,s),a},Ve.prototype.processShapes=function(t){var e,i,s,a,r,n,o=this.shapes.length,h=this.amount.v,l=this.miterLimit.v,p=this.lineJoin;if(0!==h)for(i=0;i<o;i+=1){if(n=(r=this.shapes[i]).localShapeCollection,r.shape._mdf||this._mdf||t)for(n.releaseShapes(),r.shape._mdf=!0,e=r.shape.paths.shapes,a=r.shape.paths._length,s=0;s<a;s+=1)n.addShape(this.processPath(e[s],h,p,l));r.shape.paths=r.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var Ue=function(){var t=5e3,e={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var s=127988,a=917631,r=917601,n=917626,o=65039,h=8205,p=127462,c=127487,d=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(t){var e,i=t.split(","),s=i.length,a=[];for(e=0;e<s;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&a.push(i[e]);return a.join(",")}function u(t,e){var i=l("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var s=l("span");s.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(s),document.body.appendChild(i);var a=s.offsetWidth;return s.style.fontFamily=f(t)+", "+e,{node:s,w:a,parent:i}}function m(){var e,i,s,a=this.fonts.length,r=a;for(e=0;e<a;e+=1)this.fonts[e].loaded?r-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(i=this.fonts[e].monoCase.node,s=this.fonts[e].monoCase.w,i.offsetWidth!==s?(r-=1,this.fonts[e].loaded=!0):(i=this.fonts[e].sansCase.node,s=this.fonts[e].sansCase.w,i.offsetWidth!==s&&(r-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==r&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function g(t,e){var i,s=document.body&&e?"svg":"canvas",a=ze(t);if("svg"===s){var r=G("text");r.style.fontSize="100px",r.setAttribute("font-family",t.fFamily),r.setAttribute("font-style",a.style),r.setAttribute("font-weight",a.weight),r.textContent="1",t.fClass?(r.style.fontFamily="inherit",r.setAttribute("class",t.fClass)):r.style.fontFamily=t.fFamily,e.appendChild(r),i=r}else{var n=new OffscreenCanvas(500,500).getContext("2d");n.font=a.style+" "+a.weight+" 100px "+t.fFamily,i=n}function o(t){return"svg"===s?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}return{measureText:o}}function y(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach(function(t){t.helper=g(t),t.cache={}}),void(this.fonts=t.list);var i,s=t.list,a=s.length,r=a;for(i=0;i<a;i+=1){var n,o,h=!0;if(s[i].loaded=!1,s[i].monoCase=u(s[i].fFamily,"monospace"),s[i].sansCase=u(s[i].fFamily,"sans-serif"),s[i].fPath){if("p"===s[i].fOrigin||3===s[i].origin){if((n=document.querySelectorAll('style[f-forigin="p"][f-family="'+s[i].fFamily+'"], style[f-origin="3"][f-family="'+s[i].fFamily+'"]')).length>0&&(h=!1),h){var p=l("style");p.setAttribute("f-forigin",s[i].fOrigin),p.setAttribute("f-origin",s[i].origin),p.setAttribute("f-family",s[i].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+s[i].fFamily+"; font-style: normal; src: url('"+s[i].fPath+"');}",e.appendChild(p)}}else if("g"===s[i].fOrigin||1===s[i].origin){for(n=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),o=0;o<n.length;o+=1)-1!==n[o].href.indexOf(s[i].fPath)&&(h=!1);if(h){var c=l("link");c.setAttribute("f-forigin",s[i].fOrigin),c.setAttribute("f-origin",s[i].origin),c.type="text/css",c.rel="stylesheet",c.href=s[i].fPath,document.body.appendChild(c)}}else if("t"===s[i].fOrigin||2===s[i].origin){for(n=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),o=0;o<n.length;o+=1)s[i].fPath===n[o].src&&(h=!1);if(h){var d=l("link");d.setAttribute("f-forigin",s[i].fOrigin),d.setAttribute("f-origin",s[i].origin),d.setAttribute("rel","stylesheet"),d.setAttribute("href",s[i].fPath),e.appendChild(d)}}}else s[i].loaded=!0,r-=1;s[i].helper=g(s[i],e),s[i].cache={},this.fonts.push(s[i])}0===r?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0}function v(t){if(t){var e;this.chars||(this.chars=[]);var i,s,a=t.length,r=this.chars.length;for(e=0;e<a;e+=1){for(i=0,s=!1;i<r;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(s=!0),i+=1;s||(this.chars.push(t[e]),r+=1)}}}function b(t,i,s){for(var a=0,r=this.chars.length;a<r;){if(this.chars[a].ch===t&&this.chars[a].style===i&&this.chars[a].fFamily===s)return this.chars[a];a+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,i,s)),e}function k(t,e,i){var s=this.getFontByName(e),a=t;if(!s.cache[a]){var r=s.helper;if(" "===t){var n=r.measureText("|"+t+"|"),o=r.measureText("||");s.cache[a]=(n-o)/100}else s.cache[a]=r.measureText(t)/100}return s.cache[a]*i}function w(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}function _(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var s=t.charCodeAt(1);s>=56320&&s<=57343&&(e=1024*(i-55296)+s-56320+65536)}return e}function x(t,e){var i=t.toString(16)+e.toString(16);return-1!==d.indexOf(i)}function T(t){return t===h}function P(t){return t===o}function A(t){var e=_(t);return e>=p&&e<=c}function S(t){return A(t.substr(0,2))&&A(t.substr(2,2))}function E(t){return-1!==i.indexOf(t)}function C(t,e){var i=_(t.substr(e,2));if(i!==s)return!1;var o=0;for(e+=2;o<5;){if((i=_(t.substr(e,2)))<r||i>n)return!1;o+=1,e+=2}return _(t.substr(e,2))===a}function D(){this.isLoaded=!0}var M=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};M.isModifier=x,M.isZeroWidthJoiner=T,M.isFlagEmoji=S,M.isRegionalCode=A,M.isCombinedCharacter=E,M.isRegionalFlag=C,M.isVariationSelector=P,M.BLACK_FLAG_CODE_POINT=s;var I={addChars:v,addFonts:y,getCharData:b,getFontByName:w,measureText:k,checkLoadedFonts:m,setIsLoaded:D};return M.prototype=I,M}();function We(t){this.animationData=t}function je(t){return new We(t)}function qe(){}We.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},qe.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!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 t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var Be=function(){var t={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(e){return t[e]||""}}();function $e(t,e,i){this.p=St.getProp(e,t.v,0,0,i)}function Ge(t,e,i){this.p=St.getProp(e,t.v,0,0,i)}function Ye(t,e,i){this.p=St.getProp(e,t.v,1,0,i)}function He(t,e,i){this.p=St.getProp(e,t.v,1,0,i)}function Xe(t,e,i){this.p=St.getProp(e,t.v,0,0,i)}function Ke(t,e,i){this.p=St.getProp(e,t.v,0,0,i)}function Je(t,e,i){this.p=St.getProp(e,t.v,0,0,i)}function Ze(){this.p={}}function Qe(t,e){var i,s=t.ef||[];this.effectElements=[];var a,r=s.length;for(i=0;i<r;i+=1)a=new ti(s[i],e),this.effectElements.push(a)}function ti(t,e){this.init(t,e)}function ei(){}function ii(){}function si(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function ai(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var s=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(s),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?St.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=St.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function ri(){}p([Et],ti),ti.prototype.getValue=ti.prototype.iterateDynamicProperties,ti.prototype.init=function(t,e){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var s,a=this.data.ef.length,r=this.data.ef;for(i=0;i<a;i+=1){switch(s=null,r[i].ty){case 0:s=new $e(r[i],e,this);break;case 1:s=new Ge(r[i],e,this);break;case 2:s=new Ye(r[i],e,this);break;case 3:s=new He(r[i],e,this);break;case 4:case 7:s=new Je(r[i],e,this);break;case 10:s=new Xe(r[i],e,this);break;case 11:s=new Ke(r[i],e,this);break;case 5:s=new Qe(r[i],e);break;default:s=new Ze(r[i])}s&&this.effectElements.push(s)}},ei.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){},setBlendMode:function(){var t=Be(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=F(),this.data.sr||(this.data.sr=1),this.effectsManager=new Qe(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},ii.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},si.prototype.prepareFrame=function(){},p([qe,ei,ii],si),si.prototype.getBaseElement=function(){return null},si.prototype.renderFrame=function(){},si.prototype.destroy=function(){},si.prototype.initExpressions=function(){},si.prototype.getFootageData=function(){return this.footageData},ai.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},p([qe,ei,ii],ai),ai.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},ai.prototype.show=function(){},ai.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},ai.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},ai.prototype.resume=function(){this._canPlay=!0},ai.prototype.setRate=function(t){this.audio.rate(t)},ai.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},ai.prototype.getBaseElement=function(){return null},ai.prototype.destroy=function(){},ai.prototype.sourceRectAtTime=function(){},ai.prototype.initExpressions=function(){},ri.prototype.checkLayers=function(t){var e,i,s=this.layers.length;for(this.completeLayers=!0,e=s-1;e>=0;e-=1)this.elements[e]||(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},ri.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},ri.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},ri.prototype.createAudio=function(t){return new ai(t,this.globalData,this)},ri.prototype.createFootage=function(t){return new si(t,this.globalData,this)},ri.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},ri.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var i,s=t.length,a=this.layers.length;for(e=0;e<s;e+=1)for(i=0;i<a;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},ri.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},ri.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},ri.prototype.buildElementParenting=function(t,e,i){for(var s=this.elements,a=this.layers,r=0,n=a.length;r<n;)a[r].ind==e&&(s[r]&&!0!==s[r]?(i.push(s[r]),s[r].setAsParent(),void 0!==a[r].parent?this.buildElementParenting(t,a[r].parent,i):t.setHierarchy(i)):(this.buildItem(r),this.addPendingElement(t))),r+=1},ri.prototype.addPendingElement=function(t){this.pendingElements.push(t)},ri.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var s=this.createComp(t[e]);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},ri.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},ri.prototype.getElementByPath=function(t){var e,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var s,a=this.elements.length;for(s=0;s<a;s+=1)if(this.elements[s].data.nm===i){e=this.elements[s];break}}return 0===t.length?e:e.getElementByPath(t)},ri.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new Ue,this.globalData.slotManager=je(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var ni={TRANSFORM_EFFECT:"transformEFfect"};function oi(){}function hi(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var s,a,r=this.globalData.defs,n=this.masksProperties?this.masksProperties.length:0;this.viewData=u(n),this.solidPath="";var o,l,p,c,d,f,m=this.masksProperties,g=0,y=[],v=F(),b="clipPath",k="clip-path";for(s=0;s<n;s+=1)if(("a"!==m[s].mode&&"n"!==m[s].mode||m[s].inv||100!==m[s].o.k||m[s].o.x)&&(b="mask",k="mask"),"s"!==m[s].mode&&"i"!==m[s].mode||0!==g?p=null:((p=G("rect")).setAttribute("fill","#ffffff"),p.setAttribute("width",this.element.comp.data.w||0),p.setAttribute("height",this.element.comp.data.h||0),y.push(p)),a=G("path"),"n"===m[s].mode)this.viewData[s]={op:St.getProp(this.element,m[s].o,0,.01,this.element),prop:Lt.getShapeProp(this.element,m[s],3),elem:a,lastPath:""},r.appendChild(a);else{var w;if(g+=1,a.setAttribute("fill","s"===m[s].mode?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero"),0!==m[s].x.k?(b="mask",k="mask",f=St.getProp(this.element,m[s].x,0,null,this.element),w=F(),(c=G("filter")).setAttribute("id",w),(d=G("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),c.appendChild(d),r.appendChild(c),a.setAttribute("stroke","s"===m[s].mode?"#000000":"#ffffff")):(d=null,f=null),this.storedData[s]={elem:a,x:f,expan:d,lastPath:"",lastOperator:"",filterId:w,lastRadius:0},"i"===m[s].mode){l=y.length;var _=G("g");for(o=0;o<l;o+=1)_.appendChild(y[o]);var x=G("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",v+"_"+g),x.appendChild(a),r.appendChild(x),_.setAttribute("mask","url("+h()+"#"+v+"_"+g+")"),y.length=0,y.push(_)}else y.push(a);m[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:a,lastPath:"",op:St.getProp(this.element,m[s].o,0,.01,this.element),prop:Lt.getShapeProp(this.element,m[s],3),invRect:p},this.viewData[s].prop.k||this.drawPath(m[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=G(b),n=y.length,s=0;s<n;s+=1)this.maskElement.appendChild(y[s]);g>0&&(this.maskElement.setAttribute("id",v),this.element.maskedElement.setAttribute(k,"url("+h()+"#"+v+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}oi.prototype={initTransform:function(){var t=new Rt;this.finalTransform={mProp:this.data.ks?ae.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<s;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var a=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)a*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=a}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(ni.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Rt;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var i,s=!0,a=this.comp;s;)a.finalTransform?(a.data.hasMask&&e.splice(0,0,a.finalTransform),a=a.comp):s=!1;var r,n=e.length;for(i=0;i<n;i+=1)r=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-r[0],t[1]-r[1],0];return t},mHelper:new Rt},hi.prototype.getMaskProperty=function(t){return this.viewData[t].prop},hi.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,s=this.masksProperties.length;for(e=0;e<s;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var a=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+h()+"#"+this.storedData[e].filterId+")")),a.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},hi.prototype.getMaskelement=function(){return this.maskElement},hi.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},hi.prototype.drawPath=function(t,e,i){var s,a,r=" M"+e.v[0][0]+","+e.v[0][1];for(a=e._length,s=1;s<a;s+=1)r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[s][0]+","+e.i[s][1]+" "+e.v[s][0]+","+e.v[s][1];if(e.c&&a>1&&(r+=" C"+e.o[s-1][0]+","+e.o[s-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==r){var n="";i.elem&&(e.c&&(n=t.inv?this.solidPath+r:r),i.elem.setAttribute("d",n)),i.lastPath=r}},hi.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var li,pi=function(){var t={};function e(t,e){var i=G("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i}function i(){var t=G("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}return t.createFilter=e,t.createAlphaToLuminanceFilter=i,t}(),ci=(li={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas},(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(li.maskType=!1),/firefox/i.test(navigator.userAgent)&&(li.svgLumaHidden=!1),li),di={},fi="filter_result_";function ui(t){var e,i,s="SourceGraphic",a=t.data.ef?t.data.ef.length:0,r=F(),n=pi.createFilter(r,!0),o=0;for(this.filters=[],e=0;e<a;e+=1){i=null;var l=t.data.ef[e].ty;di[l]&&(i=new(0,di[l].effect)(n,t.effectsManager.effectElements[e],t,fi+o,s),s=fi+o,di[l].countsAsEffect&&(o+=1)),i&&this.filters.push(i)}o&&(t.globalData.defs.appendChild(n),t.layerElement.setAttribute("filter","url("+h()+"#"+r+")")),this.filters.length&&t.addRenderableComponent(this)}function mi(){}function gi(){}function yi(){}function vi(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function bi(t,e){this.elem=t,this.pos=e}function ki(){}ui.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},ui.prototype.getEffects=function(t){var e,i=this.filters.length,s=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&s.push(this.filters[e]);return s},mi.prototype={initRendererElement:function(){this.layerElement=G("g")},createContainerElements:function(){this.matteElement=G("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=G("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=G("clipPath"),s=G("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var a=F();if(i.setAttribute("id",a),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var r=G("g");r.setAttribute("clip-path","url("+h()+"#"+a+")"),r.appendChild(this.layerElement),this.transformedElement=r,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+h()+"#"+a+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new hi(this.data,this,this.globalData),this.renderableEffectsManager=new ui(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,s,a,r=this.layerId+"_"+t;if(1===t||3===t){var n=G("mask");n.setAttribute("id",r),n.setAttribute("mask-type",3===t?"luminance":"alpha"),(s=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),n.appendChild(s),this.globalData.defs.appendChild(n),ci.maskType||1!==t||(n.setAttribute("mask-type","luminance"),e=F(),i=pi.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(pi.createAlphaToLuminanceFilter()),(a=G("g")).appendChild(s),n.appendChild(a),a.setAttribute("filter","url("+h()+"#"+e+")"))}else if(2===t){var o=G("mask");o.setAttribute("id",r),o.setAttribute("mask-type","alpha");var l=G("g");o.appendChild(l),e=F(),i=pi.createFilter(e);var p=G("feComponentTransfer");p.setAttribute("in","SourceGraphic"),i.appendChild(p);var c=G("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),p.appendChild(c),this.globalData.defs.appendChild(i);var d=G("rect");d.setAttribute("width",this.comp.data.w),d.setAttribute("height",this.comp.data.h),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("fill","#ffffff"),d.setAttribute("opacity","0"),l.setAttribute("filter","url("+h()+"#"+e+")"),l.appendChild(d),(s=G("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(s),ci.maskType||(o.setAttribute("mask-type","luminance"),i.appendChild(pi.createAlphaToLuminanceFilter()),a=G("g"),l.appendChild(d),a.appendChild(this.layerElement),l.appendChild(a)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=r}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+h()+"#"+t+")")}},gi.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},p([qe,c({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],yi),p([ei,oi,mi,gi,ii,yi],vi),vi.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=G("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},vi.prototype.sourceRectAtTime=function(){return this.sourceRect},ki.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=0,i=this.shapeModifiers.length;e<i;)if(this.shapeModifiers[e].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,s=e.length;i<s;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,s=i.length;s;)if(i[s-=1].elem===t)return void(i[s].pos=e);i.push(new bi(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var wi={1:"butt",2:"round",3:"square"},_i={1:"miter",2:"round",3:"bevel"};function xi(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var s=0,a=t.length;s<a;){if(t[s].mProps.dynamicProperties.length){this._isAnimated=!0;break}s+=1}}function Ti(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=G("path"),this.msElem=null}function Pi(t,e,i,s){var a;this.elem=t,this.frameId=-1,this.dataProps=u(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=f("float32",e.length?e.length-1:0),this.dashoffset=f("float32",1),this.initDynamicPropertyContainer(s);var r,n=e.length||0;for(a=0;a<n;a+=1)r=St.getProp(t,e[a].v,0,0,this),this.k=r.k||this.k,this.dataProps[a]={n:e[a].n,p:r};this.k||this.getValue(!0),this._isAnimated=this.k}function Ai(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=St.getProp(t,e.o,0,.01,this),this.w=St.getProp(t,e.w,0,null,this),this.d=new Pi(t,e.d||{},"svg",this),this.c=St.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function Si(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=St.getProp(t,e.o,0,.01,this),this.c=St.getProp(t,e.c,1,255,this),this.style=i}function Ei(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function Ci(t,e,i){this.data=e,this.c=f("uint8c",4*e.p);var s=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=f("float32",s),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=s,this.initDynamicPropertyContainer(i),this.prop=St.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function Di(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function Mi(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=St.getProp(t,e.w,0,null,this),this.d=new Pi(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function Ii(){this.it=[],this.prevViewData=[],this.gr=G("g")}function Fi(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}xi.prototype.setAsAnimated=function(){this._isAnimated=!0},Ti.prototype.reset=function(){this.d="",this._mdf=!1},Pi.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},p([Et],Pi),p([Et],Ai),p([Et],Si),p([Et],Ei),Ci.prototype.comparePoints=function(t,e){for(var i=0,s=this.o.length/2;i<s;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},Ci.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},Ci.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,s,a=4*this.data.p;for(e=0;e<a;e+=1)i=e%4==0?100:255,s=Math.round(this.prop.v[e]*i),this.c[e]!==s&&(this.c[e]=s,this._cmdf=!t);if(this.o.length)for(a=this.prop.v.length,e=4*this.data.p;e<a;e+=1)i=e%2==0?100:1,s=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==s&&(this.o[e-4*this.data.p]=s,this._omdf=!t);this._mdf=!t}},p([Et],Ci),Di.prototype.initGradientData=function(t,e,i){this.o=St.getProp(t,e.o,0,.01,this),this.s=St.getProp(t,e.s,1,null,this),this.e=St.getProp(t,e.e,1,null,this),this.h=St.getProp(t,e.h||{k:0},0,.01,this),this.a=St.getProp(t,e.a||{k:0},0,T,this),this.g=new Ci(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},Di.prototype.setGradientData=function(t,e){var i=F(),s=G(1===e.t?"linearGradient":"radialGradient");s.setAttribute("id",i),s.setAttribute("spreadMethod","pad"),s.setAttribute("gradientUnits","userSpaceOnUse");var a,r,n,o=[];for(n=4*e.g.p,r=0;r<n;r+=4)a=G("stop"),s.appendChild(a),o.push(a);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+h()+"#"+i+")"),this.gf=s,this.cst=o},Di.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,s,a,r=G("mask"),n=G("path");r.appendChild(n);var o=F(),l=F();r.setAttribute("id",l);var p=G(1===t.t?"linearGradient":"radialGradient");p.setAttribute("id",o),p.setAttribute("spreadMethod","pad"),p.setAttribute("gradientUnits","userSpaceOnUse"),a=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(s=4*t.g.p;s<a;s+=2)(i=G("stop")).setAttribute("stop-color","rgb(255,255,255)"),p.appendChild(i),c.push(i);n.setAttribute("gf"===t.ty?"fill":"stroke","url("+h()+"#"+o+")"),"gs"===t.ty&&(n.setAttribute("stroke-linecap",wi[t.lc||2]),n.setAttribute("stroke-linejoin",_i[t.lj||2]),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),this.of=p,this.ms=r,this.ost=c,this.maskId=l,e.msElem=n}},p([Et],Di),p([Di,Et],Mi);var Li=function(t,e,i,s){if(0===e)return"";var a,r=t.o,n=t.i,o=t.v,h=" M"+s.applyToPointStringified(o[0][0],o[0][1]);for(a=1;a<e;a+=1)h+=" C"+s.applyToPointStringified(r[a-1][0],r[a-1][1])+" "+s.applyToPointStringified(n[a][0],n[a][1])+" "+s.applyToPointStringified(o[a][0],o[a][1]);return i&&e&&(h+=" C"+s.applyToPointStringified(r[a-1][0],r[a-1][1])+" "+s.applyToPointStringified(n[0][0],n[0][1])+" "+s.applyToPointStringified(o[0][0],o[0][1]),h+="z"),h},Ri=function(){var t=new Rt,e=new Rt;function i(t){switch(t.ty){case"fl":return n;case"gf":return h;case"gs":return o;case"st":return l;case"sh":case"el":case"rc":case"sr":return r;case"tr":return s;case"no":return a;default:return null}}function s(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function a(){}function r(i,s,a){var r,n,o,h,l,p,c,d,f,u,m=s.styles.length,g=s.lvl;for(p=0;p<m;p+=1){if(h=s.sh._mdf||a,s.styles[p].lvl<g){for(d=e.reset(),f=g-s.styles[p].lvl,u=s.transformers.length-1;!h&&f>0;)h=s.transformers[u].mProps._mdf||h,f-=1,u-=1;if(h)for(f=g-s.styles[p].lvl,u=s.transformers.length-1;f>0;)d.multiply(s.transformers[u].mProps.v),f-=1,u-=1}else d=t;if(n=(c=s.sh.paths)._length,h){for(o="",r=0;r<n;r+=1)(l=c.shapes[r])&&l._length&&(o+=Li(l,l._length,l.c,d));s.caches[p]=o}else o=s.caches[p];s.styles[p].d+=!0===i.hd?"":o,s.styles[p]._mdf=h||s.styles[p]._mdf}}function n(t,e,i){var s=e.style;(e.c._mdf||i)&&s.pElem.setAttribute("fill","rgb("+w(e.c.v[0])+","+w(e.c.v[1])+","+w(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("fill-opacity",e.o.v)}function o(t,e,i){h(t,e,i),l(t,e,i)}function h(t,e,i){var s,a,r,n,o,h=e.gf,l=e.g._hasOpacity,p=e.s.v,c=e.e.v;if(e.o._mdf||i){var d="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(d,e.o.v)}if(e.s._mdf||i){var f=1===t.t?"x1":"cx",u="x1"===f?"y1":"cy";h.setAttribute(f,p[0]),h.setAttribute(u,p[1]),l&&!e.g._collapsable&&(e.of.setAttribute(f,p[0]),e.of.setAttribute(u,p[1]))}if(e.g._cmdf||i){s=e.cst;var m=e.g.c;for(r=s.length,a=0;a<r;a+=1)(n=s[a]).setAttribute("offset",m[4*a]+"%"),n.setAttribute("stop-color","rgb("+m[4*a+1]+","+m[4*a+2]+","+m[4*a+3]+")")}if(l&&(e.g._omdf||i)){var g=e.g.o;for(r=(s=e.g._collapsable?e.cst:e.ost).length,a=0;a<r;a+=1)n=s[a],e.g._collapsable||n.setAttribute("offset",g[2*a]+"%"),n.setAttribute("stop-opacity",g[2*a+1])}if(1===t.t)(e.e._mdf||i)&&(h.setAttribute("x2",c[0]),h.setAttribute("y2",c[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",c[0]),e.of.setAttribute("y2",c[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(p[0]-c[0],2)+Math.pow(p[1]-c[1],2)),h.setAttribute("r",o),l&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.s._mdf||e.e._mdf||e.h._mdf||e.a._mdf||i){o||(o=Math.sqrt(Math.pow(p[0]-c[0],2)+Math.pow(p[1]-c[1],2)));var y=Math.atan2(c[1]-p[1],c[0]-p[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=o*v,k=Math.cos(y+e.a.v)*b+p[0],w=Math.sin(y+e.a.v)*b+p[1];h.setAttribute("fx",k),h.setAttribute("fy",w),l&&!e.g._collapsable&&(e.of.setAttribute("fx",k),e.of.setAttribute("fy",w))}}function l(t,e,i){var s=e.style,a=e.d;a&&(a._mdf||i)&&a.dashStr&&(s.pElem.setAttribute("stroke-dasharray",a.dashStr),s.pElem.setAttribute("stroke-dashoffset",a.dashoffset[0])),e.c&&(e.c._mdf||i)&&s.pElem.setAttribute("stroke","rgb("+w(e.c.v[0])+","+w(e.c.v[1])+","+w(e.c.v[2])+")"),(e.o._mdf||i)&&s.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(s.pElem.setAttribute("stroke-width",e.w.v),s.msElem&&s.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:i}}();function Oi(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function Ni(t,e,i,s,a,r){this.o=t,this.sw=e,this.sc=i,this.fc=s,this.m=a,this.p=r,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!s,m:!0,p:!0}}function Vi(t,e){this._frameId=s,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}p([ei,oi,mi,ki,gi,ii,yi],Oi),Oi.prototype.initSecondaryElement=function(){},Oi.prototype.identityMatrix=new Rt,Oi.prototype.buildExpressionInterface=function(){},Oi.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},Oi.prototype.filterUniqueShapes=function(){var t,e,i,s,a=this.shapes.length,r=this.stylesList.length,n=[],o=!1;for(i=0;i<r;i+=1){for(s=this.stylesList[i],o=!1,n.length=0,t=0;t<a;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(s)&&(n.push(e),o=e._isAnimated||o);n.length>1&&o&&this.setShapesAsAnimated(n)}},Oi.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},Oi.prototype.createStyleElement=function(t,e){var i,s=new Ti(t,e),a=s.pElem;return"st"===t.ty?i=new Ai(this,t,s):"fl"===t.ty?i=new Si(this,t,s):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?Di:Mi)(this,t,s),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),a.setAttribute("mask","url("+h()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new Ei(this,t,s)),"st"!==t.ty&&"gs"!==t.ty||(a.setAttribute("stroke-linecap",wi[t.lc||2]),a.setAttribute("stroke-linejoin",_i[t.lj||2]),a.setAttribute("fill-opacity","0"),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&a.setAttribute("fill-rule","evenodd"),t.ln&&a.setAttribute("id",t.ln),t.cl&&a.setAttribute("class",t.cl),t.bm&&(a.style["mix-blend-mode"]=Be(t.bm)),this.stylesList.push(s),this.addToAnimatedContents(t,i),i},Oi.prototype.createGroupElement=function(t){var e=new Ii;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=Be(t.bm)),e},Oi.prototype.createTransformElement=function(t,e){var i=ae.getTransformProperty(this,t,this),s=new Fi(i,i.o,e);return this.addToAnimatedContents(t,s),s},Oi.prototype.createShapeElement=function(t,e,i){var s=4;"rc"===t.ty?s=5:"el"===t.ty?s=6:"sr"===t.ty&&(s=7);var a=new xi(e,i,Lt.getShapeProp(this,t,s,this));return this.shapes.push(a),this.addShapeToModifiers(a),this.addToAnimatedContents(t,a),a},Oi.prototype.addToAnimatedContents=function(t,e){for(var i=0,s=this.animatedContents.length;i<s;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:Ri.createRenderFunction(t),element:e,data:t})},Oi.prototype.setElementStyles=function(t){var e,i=t.styles,s=this.stylesList.length;for(e=0;e<s;e+=1)-1!==i.indexOf(this.stylesList[e])||this.stylesList[e].closed||i.push(this.stylesList[e])},Oi.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},Oi.prototype.searchShapes=function(t,e,i,s,a,r,n){var o,h,l,p,c,d,f=[].concat(r),u=t.length-1,m=[],g=[];for(o=u;o>=0;o-=1){if((d=this.searchProcessedElement(t[o]))?e[o]=i[d-1]:t[o]._render=n,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)d?e[o].style.closed=t[o].hd:e[o]=this.createStyleElement(t[o],a),t[o]._render&&e[o].style.pElem.parentNode!==s&&s.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"===t[o].ty){if(d)for(l=e[o].it.length,h=0;h<l;h+=1)e[o].prevViewData[h]=e[o].it[h];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,a+1,f,n),t[o]._render&&e[o].gr.parentNode!==s&&s.appendChild(e[o].gr)}else"tr"===t[o].ty?(d||(e[o]=this.createTransformElement(t[o],s)),p=e[o].transform,f.push(p)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(d||(e[o]=this.createShapeElement(t[o],f,a)),this.setElementStyles(e[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(d?(c=e[o]).closed=!1:((c=te.getModifier(t[o].ty)).init(this,t[o]),e[o]=c,this.shapeModifiers.push(c)),g.push(c)):"rp"===t[o].ty&&(d?(c=e[o]).closed=!0:(c=te.getModifier(t[o].ty),e[o]=c,c.init(this,t,o,e),this.shapeModifiers.push(c),n=!1),g.push(c));this.addProcessedElement(t[o],o+1)}for(u=m.length,o=0;o<u;o+=1)m[o].closed=!0;for(u=g.length,o=0;o<u;o+=1)g[o].closed=!0},Oi.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},Oi.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},Oi.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},Ni.prototype.update=function(t,e,i,s,a,r){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var n=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,n=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,n=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,n=!0),this.fc!==s&&(this.fc=s,this._mdf.fc=!0,n=!0),this.m!==a&&(this.m=a,this._mdf.m=!0,n=!0),!r.length||this.p[0]===r[0]&&this.p[1]===r[1]&&this.p[4]===r[4]&&this.p[5]===r[5]&&this.p[12]===r[12]&&this.p[13]===r[13]||(this.p=r,this._mdf.p=!0,n=!0),n},Vi.prototype.defaultBoxWidth=[0,0],Vi.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Vi.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},Vi.prototype.searchProperty=function(){return this.searchKeyframes()},Vi.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},Vi.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},Vi.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var s;this.lock=!0,this._mdf=!1;var a=this.effectsSequence.length,r=t||this.data.d.k[this.keysIndex].s;for(s=0;s<a;s+=1)r=i!==this.keysIndex?this.effectsSequence[s](r,r.t):this.effectsSequence[s](this.currentData,r.t);e!==r&&this.setCurrentData(r),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},Vi.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,s=t.length;i<=s-1&&!(i===s-1||t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},Vi.prototype.buildFinalText=function(t){for(var e,i,s=[],a=0,r=t.length,n=!1,o=!1,h="";a<r;)n=o,o=!1,e=t.charCodeAt(a),h=t.charAt(a),Ue.isCombinedCharacter(e)?n=!0:e>=55296&&e<=56319?Ue.isRegionalFlag(t,a)?h=t.substr(a,14):(i=t.charCodeAt(a+1))>=56320&&i<=57343&&(Ue.isModifier(e,i)?(h=t.substr(a,2),n=!0):h=Ue.isFlagEmoji(t.substr(a,4))?t.substr(a,4):t.substr(a,2)):e>56319?(i=t.charCodeAt(a+1),Ue.isVariationSelector(e)&&(n=!0)):Ue.isZeroWidthJoiner(e)&&(n=!0,o=!0),n?(s[s.length-1]+=h,n=!1):s.push(h),a+=h.length;return s},Vi.prototype.completeTextData=function(t){t.__complete=!0;var e,i,s,a,r,n,o,h=this.elem.globalData.fontManager,l=this.data,p=[],c=0,d=l.m.g,f=0,u=0,m=0,g=[],y=0,v=0,b=h.getFontByName(t.f),k=0,w=ze(b);t.fWeight=w.weight,t.fStyle=w.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var _,x=t.tr/1e3*t.finalSize;if(t.sz)for(var T,P,A=!0,S=t.sz[0],E=t.sz[1];A;){T=0,y=0,i=(P=this.buildFinalText(t.t)).length,x=t.tr/1e3*t.finalSize;var C=-1;for(e=0;e<i;e+=1)_=P[e].charCodeAt(0),s=!1," "===P[e]?C=e:13!==_&&3!==_||(y=0,s=!0,T+=t.finalLineHeight||1.2*t.finalSize),h.chars?(o=h.getCharData(P[e],b.fStyle,b.fFamily),k=s?0:o.w*t.finalSize/100):k=h.measureText(P[e],t.f,t.finalSize),y+k>S&&" "!==P[e]?(-1===C?i+=1:e=C,T+=t.finalLineHeight||1.2*t.finalSize,P.splice(e,C===e?1:0,"\r"),C=-1,y=0):(y+=k,y+=x);T+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&E<T?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=P,i=t.finalText.length,A=!1)}y=-x,k=0;var D,M=0;for(e=0;e<i;e+=1)if(s=!1,13===(_=(D=t.finalText[e]).charCodeAt(0))||3===_?(M=0,g.push(y),v=y>v?y:v,y=-2*x,a="",s=!0,m+=1):a=D,h.chars?(o=h.getCharData(D,b.fStyle,h.getFontByName(t.f).fFamily),k=s?0:o.w*t.finalSize/100):k=h.measureText(a,t.f,t.finalSize)," "===D?M+=k+x:(y+=k+x+M,M=0),p.push({l:k,an:k,add:f,n:s,anIndexes:[],val:a,line:m,animatorJustifyOffset:0}),2==d){if(f+=k,""===a||" "===a||e===i-1){for(""!==a&&" "!==a||(f-=k);u<=e;)p[u].an=f,p[u].ind=c,p[u].extra=k,u+=1;c+=1,f=0}}else if(3==d){if(f+=k,""===a||e===i-1){for(""===a&&(f-=k);u<=e;)p[u].an=f,p[u].ind=c,p[u].extra=k,u+=1;f=0,c+=1}}else p[c].ind=c,p[c].extra=0,c+=1;if(t.l=p,v=y>v?y:v,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var I,F,L,R,O=l.a;n=O.length;var N=[];for(r=0;r<n;r+=1){for((I=O[r]).a.sc&&(t.strokeColorAnim=!0),I.a.sw&&(t.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(t.fillColorAnim=!0),R=0,L=I.s.b,e=0;e<i;e+=1)(F=p[e]).anIndexes[r]=R,(1==L&&""!==F.val||2==L&&""!==F.val&&" "!==F.val||3==L&&(F.n||" "==F.val||e==i-1)||4==L&&(F.n||e==i-1))&&(1===I.s.rn&&N.push(R),R+=1);l.a[r].s.totalChars=R;var V,z=-1;if(1===I.s.rn)for(e=0;e<i;e+=1)z!=(F=p[e]).anIndexes[r]&&(z=F.anIndexes[r],V=N.splice(Math.floor(Math.random()*N.length),1)[0]),F.anIndexes[r]=V}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},Vi.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},Vi.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},Vi.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},Vi.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var zi=function(){var t=Math.max,e=Math.min,i=Math.floor;function s(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=St.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?St.getProp(t,e.e,0,0,this):{v:100},this.o=St.getProp(t,e.o||{k:0},0,0,this),this.xe=St.getProp(t,e.xe||{k:0},0,0,this),this.ne=St.getProp(t,e.ne||{k:0},0,0,this),this.sm=St.getProp(t,e.sm||{k:100},0,0,this),this.a=St.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}function a(t,e,i){return new s(t,e)}return s.prototype={getMult:function(s){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var a=0,r=0,n=1,o=1;this.ne.v>0?a=this.ne.v/100:r=-this.ne.v/100,this.xe.v>0?n=1-this.xe.v/100:o=1+this.xe.v/100;var h=nt.getBezierEasing(a,r,n,o).get,l=0,p=this.finalS,c=this.finalE,d=this.data.sh;if(2===d)l=h(l=c===p?s>=c?1:0:t(0,e(.5/(c-p)+(s-p)/(c-p),1)));else if(3===d)l=h(l=c===p?s>=c?0:1:1-t(0,e(.5/(c-p)+(s-p)/(c-p),1)));else if(4===d)c===p?l=0:(l=t(0,e(.5/(c-p)+(s-p)/(c-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===d){if(c===p)l=0;else{var f=c-p,u=-f/2+(s=e(t(0,s+.5-p),c-p)),m=f/2;l=Math.sqrt(1-u*u/(m*m))}l=h(l)}else 6===d?(c===p?l=0:(s=e(t(0,s+.5-p),c-p),l=(1+Math.cos(Math.PI+2*Math.PI*s/(c-p)))/2),l=h(l)):(s>=i(p)&&(l=t(0,e(s-p<0?e(c,1)-(p-s):c-s,1))),l=h(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;l<y?l=0:(l=(l-y)/g)>1&&(l=1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,s=this.s.v/e+i,a=this.e.v/e+i;if(s>a){var r=s;s=a,a=r}this.finalS=s,this.finalE=a}},p([Et],s),{getTextSelectorProp:a}}();function Ui(t,e,i){var s={propType:!1},a=St.getProp,r=e.a;this.a={r:r.r?a(t,r.r,0,T,i):s,rx:r.rx?a(t,r.rx,0,T,i):s,ry:r.ry?a(t,r.ry,0,T,i):s,sk:r.sk?a(t,r.sk,0,T,i):s,sa:r.sa?a(t,r.sa,0,T,i):s,s:r.s?a(t,r.s,1,.01,i):s,a:r.a?a(t,r.a,1,0,i):s,o:r.o?a(t,r.o,0,.01,i):s,p:r.p?a(t,r.p,1,0,i):s,sw:r.sw?a(t,r.sw,0,0,i):s,sc:r.sc?a(t,r.sc,1,0,i):s,fc:r.fc?a(t,r.fc,1,0,i):s,fh:r.fh?a(t,r.fh,0,0,i):s,fs:r.fs?a(t,r.fs,0,.01,i):s,fb:r.fb?a(t,r.fb,0,.01,i):s,t:r.t?a(t,r.t,0,0,i):s},this.s=zi.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function Wi(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=u(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ji(){}Wi.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,s=St.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new Ui(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:s(this._elem,this._textData.p.a,0,0,this),f:s(this._elem,this._textData.p.f,0,0,this),l:s(this._elem,this._textData.p.l,0,0,this),r:s(this._elem,this._textData.p.r,0,0,this),p:s(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=s(this._elem,this._textData.m.a,1,0,this)},Wi.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,s,a,r,n,o,h,l,p,c,d,f,u,m,g,y,v,b,k,w=this._moreOptions.alignment.v,_=this._animatorsData,x=this._textData,T=this.mHelper,P=this._renderType,A=this.renderedLetters.length,S=t.l;if(this._hasMaskedPath){if(k=this._pathData.m,!this._pathData.n||this._pathData._mdf){var E,C=k.v;for(this._pathData.r.v&&(C=C.reverse()),n={tLength:0,segments:[]},r=C._length-1,y=0,a=0;a<r;a+=1)E=dt.buildBezierData(C.v[a],C.v[a+1],[C.o[a][0]-C.v[a][0],C.o[a][1]-C.v[a][1]],[C.i[a+1][0]-C.v[a+1][0],C.i[a+1][1]-C.v[a+1][1]]),n.tLength+=E.segmentLength,n.segments.push(E),y+=E.segmentLength;a=r,k.v.c&&(E=dt.buildBezierData(C.v[a],C.v[0],[C.o[a][0]-C.v[a][0],C.o[a][1]-C.v[a][1]],[C.i[0][0]-C.v[0][0],C.i[0][1]-C.v[0][1]]),n.tLength+=E.segmentLength,n.segments.push(E),y+=E.segmentLength),this._pathData.pi=n}if(n=this._pathData.pi,o=this._pathData.f.v,d=0,c=1,l=0,p=!0,m=n.segments,o<0&&k.v.c)for(n.tLength<Math.abs(o)&&(o=-Math.abs(o)%n.tLength),c=(u=m[d=m.length-1].points).length-1;o<0;)o+=u[c].partialLength,(c-=1)<0&&(c=(u=m[d-=1].points).length-1);f=(u=m[d].points)[c-1],g=(h=u[c]).partialLength}r=S.length,i=0,s=0;var D,M,I,F,L,R=1.2*t.finalSize*.714,z=!0;I=_.length;var U,W,j,q,B,$,G,Y,H,X,K,J,Z=-1,Q=o,tt=d,et=c,it=-1,st="",at=this.defaultPropsArray;if(2===t.j||1===t.j){var rt=0,nt=0,ot=2===t.j?-.5:-1,ht=0,lt=!0;for(a=0;a<r;a+=1)if(S[a].n){for(rt&&(rt+=nt);ht<a;)S[ht].animatorJustifyOffset=rt,ht+=1;rt=0,lt=!0}else{for(M=0;M<I;M+=1)(D=_[M].a).t.propType&&(lt&&2===t.j&&(nt+=D.t.v*ot),(L=_[M].s.getMult(S[a].anIndexes[M],x.a[M].s.totalChars)).length?rt+=D.t.v*L[0]*ot:rt+=D.t.v*L*ot);lt=!1}for(rt&&(rt+=nt);ht<a;)S[ht].animatorJustifyOffset=rt,ht+=1}for(a=0;a<r;a+=1){if(T.reset(),q=1,S[a].n)i=0,s+=t.yOffset,s+=z?1:0,o=Q,z=!1,this._hasMaskedPath&&(c=et,f=(u=m[d=tt].points)[c-1],g=(h=u[c]).partialLength,l=0),st="",K="",H="",J="",at=this.defaultPropsArray;else{if(this._hasMaskedPath){if(it!==S[a].line){switch(t.j){case 1:o+=y-t.lineWidths[S[a].line];break;case 2:o+=(y-t.lineWidths[S[a].line])/2}it=S[a].line}Z!==S[a].ind&&(S[Z]&&(o+=S[Z].extra),o+=S[a].an/2,Z=S[a].ind),o+=w[0]*S[a].an*.005;var pt=0;for(M=0;M<I;M+=1)(D=_[M].a).p.propType&&((L=_[M].s.getMult(S[a].anIndexes[M],x.a[M].s.totalChars)).length?pt+=D.p.v[0]*L[0]:pt+=D.p.v[0]*L),D.a.propType&&((L=_[M].s.getMult(S[a].anIndexes[M],x.a[M].s.totalChars)).length?pt+=D.a.v[0]*L[0]:pt+=D.a.v[0]*L);for(p=!0,this._pathData.a.v&&(o=.5*S[0].an+(y-this._pathData.f.v-.5*S[0].an-.5*S[S.length-1].an)*Z/(r-1),o+=this._pathData.f.v);p;)l+g>=o+pt||!u?(v=(o+pt-l)/h.partialLength,W=f.point[0]+(h.point[0]-f.point[0])*v,j=f.point[1]+(h.point[1]-f.point[1])*v,T.translate(-w[0]*S[a].an*.005,-w[1]*R*.01),p=!1):u&&(l+=h.partialLength,(c+=1)>=u.length&&(c=0,m[d+=1]?u=m[d].points:k.v.c?(c=0,u=m[d=0].points):(l-=h.partialLength,u=null)),u&&(f=h,g=(h=u[c]).partialLength));U=S[a].an/2-S[a].add,T.translate(-U,0,0)}else U=S[a].an/2-S[a].add,T.translate(-U,0,0),T.translate(-w[0]*S[a].an*.005,-w[1]*R*.01,0);for(M=0;M<I;M+=1)(D=_[M].a).t.propType&&(L=_[M].s.getMult(S[a].anIndexes[M],x.a[M].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?L.length?o+=D.t.v*L[0]:o+=D.t.v*L:L.length?i+=D.t.v*L[0]:i+=D.t.v*L));for(t.strokeWidthAnim&&($=t.sw||0),t.strokeColorAnim&&(B=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(G=[t.fc[0],t.fc[1],t.fc[2]]),M=0;M<I;M+=1)(D=_[M].a).a.propType&&((L=_[M].s.getMult(S[a].anIndexes[M],x.a[M].s.totalChars)).length?T.translate(-D.a.v[0]*L[0],-D.a.v[1]*L[1],D.a.v[2]*L[2]):T.translate(-D.a.v[0]*L,-D.a.v[1]*L,D.a.v[2]*L));for(M=0;M<I;M+=1)(D=_[M].a).s.propType&&((L=_[M].s.getMult(S[a].anIndexes[M],x.a[M].s.totalChars)).length?T.scale(1+(D.s.v[0]-1)*L[0],1+(D.s.v[1]-1)*L[1],1):T.scale(1+(D.s.v[0]-1)*L,1+(D.s.v[1]-1)*L,1));for(M=0;M<I;M+=1){if(D=_[M].a,L=_[M].s.getMult(S[a].anIndexes[M],x.a[M].s.totalChars),D.sk.propType&&(L.length?T.skewFromAxis(-D.sk.v*L[0],D.sa.v*L[1]):T.skewFromAxis(-D.sk.v*L,D.sa.v*L)),D.r.propType&&(L.length?T.rotateZ(-D.r.v*L[2]):T.rotateZ(-D.r.v*L)),D.ry.propType&&(L.length?T.rotateY(D.ry.v*L[1]):T.rotateY(D.ry.v*L)),D.rx.propType&&(L.length?T.rotateX(D.rx.v*L[0]):T.rotateX(D.rx.v*L)),D.o.propType&&(L.length?q+=(D.o.v*L[0]-q)*L[0]:q+=(D.o.v*L-q)*L),t.strokeWidthAnim&&D.sw.propType&&(L.length?$+=D.sw.v*L[0]:$+=D.sw.v*L),t.strokeColorAnim&&D.sc.propType)for(Y=0;Y<3;Y+=1)L.length?B[Y]+=(D.sc.v[Y]-B[Y])*L[0]:B[Y]+=(D.sc.v[Y]-B[Y])*L;if(t.fillColorAnim&&t.fc){if(D.fc.propType)for(Y=0;Y<3;Y+=1)L.length?G[Y]+=(D.fc.v[Y]-G[Y])*L[0]:G[Y]+=(D.fc.v[Y]-G[Y])*L;D.fh.propType&&(G=L.length?V(G,D.fh.v*L[0]):V(G,D.fh.v*L)),D.fs.propType&&(G=L.length?O(G,D.fs.v*L[0]):O(G,D.fs.v*L)),D.fb.propType&&(G=L.length?N(G,D.fb.v*L[0]):N(G,D.fb.v*L))}}for(M=0;M<I;M+=1)(D=_[M].a).p.propType&&(L=_[M].s.getMult(S[a].anIndexes[M],x.a[M].s.totalChars),this._hasMaskedPath?L.length?T.translate(0,D.p.v[1]*L[0],-D.p.v[2]*L[1]):T.translate(0,D.p.v[1]*L,-D.p.v[2]*L):L.length?T.translate(D.p.v[0]*L[0],D.p.v[1]*L[1],-D.p.v[2]*L[2]):T.translate(D.p.v[0]*L,D.p.v[1]*L,-D.p.v[2]*L));if(t.strokeWidthAnim&&(H=$<0?0:$),t.strokeColorAnim&&(X="rgb("+Math.round(255*B[0])+","+Math.round(255*B[1])+","+Math.round(255*B[2])+")"),t.fillColorAnim&&t.fc&&(K="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),this._hasMaskedPath){if(T.translate(0,-t.ls),T.translate(0,w[1]*R*.01+s,0),this._pathData.p.v){b=(h.point[1]-f.point[1])/(h.point[0]-f.point[0]);var ct=180*Math.atan(b)/Math.PI;h.point[0]<f.point[0]&&(ct+=180),T.rotate(-ct*Math.PI/180)}T.translate(W,j,0),o-=w[0]*S[a].an*.005,S[a+1]&&Z!==S[a+1].ind&&(o+=S[a].an/2,o+=.001*t.tr*t.finalSize)}else{switch(T.translate(i,s,0),t.ps&&T.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:T.translate(S[a].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[S[a].line]),0,0);break;case 2:T.translate(S[a].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[S[a].line])/2,0,0)}T.translate(0,-t.ls),T.translate(U,0,0),T.translate(w[0]*S[a].an*.005,w[1]*R*.01,0),i+=S[a].l+.001*t.tr*t.finalSize}"html"===P?st=T.toCSS():"svg"===P?st=T.to2dCSS():at=[T.props[0],T.props[1],T.props[2],T.props[3],T.props[4],T.props[5],T.props[6],T.props[7],T.props[8],T.props[9],T.props[10],T.props[11],T.props[12],T.props[13],T.props[14],T.props[15]],J=q}A<=a?(F=new Ni(J,H,X,K,st,at),this.renderedLetters.push(F),A+=1,this.lettersChangedFlag=!0):(F=this.renderedLetters[a],this.lettersChangedFlag=F.update(J,H,X,K,st,at)||this.lettersChangedFlag)}}},Wi.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},Wi.prototype.mHelper=new Rt,Wi.prototype.defaultPropsArray=[],p([Et],Wi),ji.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new Vi(this,t.t,this.dynamicProperties),this.textAnimator=new Wi(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ji.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ji.prototype.createPathShape=function(t,e){var i,s,a=e.length,r="";for(i=0;i<a;i+=1)"sh"===e[i].ty&&(s=e[i].ks.k,r+=Li(s,s.i.length,!0,t));return r},ji.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ji.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ji.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ji.prototype.applyTextPropertiesToMatrix=function(t,e,i,s,a){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(s,a,0)},ji.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ji.prototype.emptyProp=new Ni,ji.prototype.destroy=function(){},ji.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var qi={shapes:[]};function Bi(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function $i(t,e,i){this.initElement(t,e,i)}function Gi(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function Yi(){}function Hi(){}function Xi(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?u(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?St.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function Ki(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=G("svg");var i="";if(e&&e.title){var s=G("title"),a=F();s.setAttribute("id",a),s.textContent=e.title,this.svgElement.appendChild(s),i+=a}if(e&&e.description){var r=G("desc"),n=F();r.setAttribute("id",n),r.textContent=e.description,this.svgElement.appendChild(r),i+=" "+n}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=G("defs");this.svgElement.appendChild(o);var h=G("g");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}return p([ei,oi,mi,gi,ii,yi,ji],Bi),Bi.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=G("text"))},Bi.prototype.buildTextContents=function(t){for(var e=0,i=t.length,s=[],a="";e<i;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(s.push(a),a=""):a+=t[e],e+=1;return s.push(a),s},Bi.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var s=i.it[i.it.length-1];s.s&&(s.s.k[0]=e,s.s.k[1]=e)}}return t},Bi.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=u(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var s=this.globalData.fontManager.getFontByName(i.f);if(s.fClass)this.layerElement.setAttribute("class",s.fClass);else{this.layerElement.setAttribute("font-family",s.fFamily);var a=i.fWeight,r=i.fStyle;this.layerElement.setAttribute("font-style",r),this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",i.t);var n,o=i.l||[],h=!!this.globalData.fontManager.chars;e=o.length;var l=this.mHelper,p="",c=this.data.singleShape,d=0,f=0,m=!0,g=.001*i.tr*i.finalSize;if(!c||h||i.sz){var y,v=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!h||!c||0===t){if(n=v>t?this.textSpans[t].span:G(h?"g":"text"),v<=t){if(n.setAttribute("stroke-linecap","butt"),n.setAttribute("stroke-linejoin","round"),n.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=n,h){var b=G("g");n.appendChild(b),this.textSpans[t].childSpan=b}this.textSpans[t].span=n,this.layerElement.appendChild(n)}n.style.display="inherit"}if(l.reset(),c&&(o[t].n&&(d=-g,f+=i.yOffset,f+=m?1:0,m=!1),this.applyTextPropertiesToMatrix(i,l,o[t].line,d,f),d+=o[t].l||0,d+=g),h){var k;if(1===(y=this.globalData.fontManager.getCharData(i.finalText[t],s.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)k=new Xi(y.data,this.globalData,this);else{var w=qi;y.data&&y.data.shapes&&(w=this.buildShapeData(y.data,i.finalSize)),k=new Oi(w,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=k,k._debug=!0,k.prepareFrame(0),k.renderFrame(),this.textSpans[t].childSpan.appendChild(k.layerElement),1===y.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else c&&n.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),n.textContent=o[t].val,n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&n&&n.setAttribute("d",p)}else{var x=this.textContainer,T="start";switch(i.j){case 1:T="end";break;case 2:T="middle";break;default:T="start"}x.setAttribute("text-anchor",T),x.setAttribute("letter-spacing",g);var P=this.buildTextContents(i.finalText);for(e=P.length,f=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(n=this.textSpans[t].span||G("tspan")).textContent=P[t],n.setAttribute("x",0),n.setAttribute("y",f),n.style.display="inherit",x.appendChild(n),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=n,f+=i.finalLineHeight;this.layerElement.appendChild(x)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=1;this._sizeChanged=!0},Bi.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},Bi.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},Bi.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var i,s,a,r=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;for(e=n.length,t=0;t<e;t+=1)n[t].n||(i=r[t],s=this.textSpans[t].span,(a=this.textSpans[t].glyph)&&a.renderFrame(),i._mdf.m&&s.setAttribute("transform",i.m),i._mdf.o&&s.setAttribute("opacity",i.o),i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i._mdf.sc&&s.setAttribute("stroke",i.sc),i._mdf.fc&&s.setAttribute("fill",i.fc))}},p([vi],$i),$i.prototype.createContent=function(){var t=G("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},Gi.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},Gi.prototype.renderFrame=function(){},Gi.prototype.getBaseElement=function(){return null},Gi.prototype.destroy=function(){},Gi.prototype.sourceRectAtTime=function(){},Gi.prototype.hide=function(){},p([ei,oi,gi,ii],Gi),p([ri],Yi),Yi.prototype.createNull=function(t){return new Gi(t,this.globalData,this)},Yi.prototype.createShape=function(t){return new Oi(t,this.globalData,this)},Yi.prototype.createText=function(t){return new Bi(t,this.globalData,this)},Yi.prototype.createImage=function(t){return new vi(t,this.globalData,this)},Yi.prototype.createSolid=function(t){return new $i(t,this.globalData,this)},Yi.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=G("clipPath"),s=G("rect");s.setAttribute("width",t.w),s.setAttribute("height",t.h),s.setAttribute("x",0),s.setAttribute("y",0);var a=F();i.setAttribute("id",a),i.appendChild(s),this.layerElement.setAttribute("clip-path","url("+h()+"#"+a+")"),e.appendChild(i),this.layers=t.layers,this.elements=u(t.layers.length)},Yi.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},Yi.prototype.updateContainerSize=function(){},Yi.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return-1},Yi.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,j()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var s="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===s)return;if(this.elements[s]&&!0!==this.elements[s]){var a=e[s].getMatte(this.layers[t].tt);i.setMatte(a)}else this.buildItem(s),this.addPendingElement(i)}}},Yi.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var s="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,a=this.elements[s].getMatte(this.layers[e].tt);t.setMatte(a);break}e+=1}}},Yi.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},Yi.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){for(var s,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement()&&(s=this.elements[a].getBaseElement()),a+=1;s?this.layerElement.insertBefore(i,s):this.layerElement.appendChild(i)}},Yi.prototype.hide=function(){this.layerElement.style.display="none"},Yi.prototype.show=function(){this.layerElement.style.display="block"},p([ei,oi,gi,ii,yi],Hi),Hi.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},Hi.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,s=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=s-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._mdf&&(this._mdf=!0))}},Hi.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},Hi.prototype.setElements=function(t){this.elements=t},Hi.prototype.getElements=function(){return this.elements},Hi.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},Hi.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},p([Yi,Hi,mi],Xi),Xi.prototype.createComp=function(t){return new Xi(t,this.globalData,this)},p([Yi],Ki),Ki.prototype.createComp=function(t){return new Xi(t,this.globalData,this)},tt("svg",Ki),te.registerModifier("tm",ie),te.registerModifier("pb",se),te.registerModifier("rp",re),te.registerModifier("rd",ne),te.registerModifier("zz",Pe),te.registerModifier("op",Ve),Nt}());const o=s(n.exports);function h(t){return`${t.storagePrefix}-${t.widgetId}-auth`}function l(t){return`${t.storagePrefix}-${t.widgetId}-error-settings`}function p(t){try{localStorage.removeItem(h(t))}catch{}}function c(t){try{const e=localStorage.getItem(l(t));if(!e)return null;const i=JSON.parse(e);return i.cachedAt&&Date.now()-i.cachedAt<36e5?i:(localStorage.removeItem(l(t)),null)}catch{return null}}function d(t){return!t||Date.now()>=t-6e4}function f(t,e,i,s){e.accessToken=i.accessToken,e.refreshToken=i.refreshToken,e.tokenFamily=i.tokenFamily??null;const a=Date.now();e.accessTokenExpiry=a+1e3*i.accessTokenTTL,e.refreshTokenExpiry=a+1e3*i.refreshTokenTTL,function(t,e){try{const i={refreshToken:e.refreshToken,tokenFamily:e.tokenFamily,refreshTokenExpiry:e.refreshTokenExpiry};localStorage.setItem(h(t),JSON.stringify(i))}catch{}}(t,e),t.autoRefresh&&s&&s()}async function u(t,e,i){const s=crypto.randomUUID(),a=Date.now(),r=t.maxRetries??3,n=t.retryDelay??500;for(let o=0;o<=r;o++){o>0&&await new Promise(t=>setTimeout(t,n*(1<<o-1)));let h=!1;try{const r={nonce:s,timestamp:a,widgetType:t.widgetType};t.embedToken&&(r.embedToken=t.embedToken),t.userIdentifiers&&Object.keys(t.userIdentifiers).length>0&&(r.userIdentifiers=t.userIdentifiers);const n=await fetch(`${t.apiUrl}/${t.widgetId}/auth/serverless`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r),credentials:"include"});if(!n.ok){h=n.status>=400&&n.status<500;const t=await n.json().catch(()=>({error:"Authentication failed"}));throw h&&(e.lastAuthError={status:n.status,error:null==t?void 0:t.error,hint:null==t?void 0:t.hint},console.error(`[rai-widget] /auth/serverless ${n.status}:`,(null==t?void 0:t.error)||"Authentication failed",(null==t?void 0:t.hint)?`— ${t.hint}`:"")),new Error((null==t?void 0:t.error)||`HTTP ${n.status}`)}e.lastAuthError=null;const o=await n.json();if(!o.accessToken||!o.refreshToken)throw new Error("Invalid authentication response");return f(t,e,o,i),e.isAuthenticated=!0,!0}catch{if(h||o===r)return e.isAuthenticated=!1,!1}}return e.isAuthenticated=!1,!1}async function m(t,e,i){const s=t.maxRetries??3,a=t.retryDelay??500;for(let r=0;r<=s;r++){r>0&&await new Promise(t=>setTimeout(t,a*(1<<r-1)));let n=!1;try{const s=await fetch(t.authUrl,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"}});if(!s.ok)throw n=s.status>=400&&s.status<500,new Error(`HTTP ${s.status}`);const a=await s.json();if(!a.token)throw new Error("Invalid proxy auth response");const r=a.expiresIn??300;return e.accessToken=a.token,e.refreshToken=null,e.tokenFamily=null,e.accessTokenExpiry=Date.now()+1e3*r,e.refreshTokenExpiry=null,e.isAuthenticated=!0,t.autoRefresh&&i&&i(),!0}catch{if(n||r===s)return e.isAuthenticated=!1,!1}}return e.isAuthenticated=!1,!1}async function g(t,e,i,s){return e.isRefreshing?e.refreshPromise:!!e.refreshToken&&(e.isRefreshing=!0,e.refreshPromise=(async()=>{try{const a=await fetch(`${t.apiUrl}/${t.widgetId}/auth/refresh`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.refreshToken}`},body:JSON.stringify({widgetType:t.widgetType})});if(!a.ok){if(401===a.status||403===a.status)return k(e),p(t),u(t,e,i);const s=await a.json().catch(()=>({error:"Token refresh failed"}));throw new Error(s.error||`HTTP ${a.status}`)}const r=await a.json();if(!r.accessToken||!r.refreshToken)throw new Error("Invalid refresh response");return f(t,e,r,i),s&&s(),!0}catch{return k(e),p(t),u(t,e,i)}finally{e.isRefreshing=!1,e.refreshPromise=null}})(),e.refreshPromise)}const y=new Map;function v(t,e){e.configured&&(t.errorSettings={errorMessage:e.errorMessage,modalColor:e.modalColor,backgroundImage:e.backgroundImage}),e.loadingAnimation&&(t.loadingAnimation=e.loadingAnimation),e.themePalette&&(t.themePalette=e.themePalette),"string"==typeof e.font&&e.font&&(t.font=e.font),"light"!==e.defaultColorSchema&&"dark"!==e.defaultColorSchema||(t.defaultColorSchema=e.defaultColorSchema)}async function b(t,e,i={}){if(!i.skipCache){const i=c(t);if(i)return v(e,i),e.errorSettings}const s=`${t.apiUrl}/${t.widgetId}/auth/error-settings?widgetType=${t.widgetType}`;let a=y.get(s);a||(a=(async()=>{try{const e=await fetch(s,{method:"GET",headers:{"Content-Type":"application/json"}});if(!e.ok)return null;const i=await e.json();return function(t,e){try{localStorage.setItem(l(t),JSON.stringify({...e,cachedAt:Date.now()}))}catch{}}(t,i),i}catch{return null}finally{y.delete(s)}})(),y.set(s,a));const r=await a;return r?(v(e,r),e.errorSettings):null}function k(t){t.accessToken=null,t.refreshToken=null,t.tokenFamily=null,t.accessTokenExpiry=null,t.refreshTokenExpiry=null,t.isAuthenticated=!1,t.isRefreshing=!1,t.refreshPromise=null,t.lastAuthError=null,t.refreshTimer&&(clearTimeout(t.refreshTimer),t.refreshTimer=null),t.syncTimer&&(clearInterval(t.syncTimer),t.syncTimer=null)}function w(t,e,i){var s;if(e.accessToken)try{null==(s=i.contentWindow)||s.postMessage({type:"RETURNINGAI_WIDGET_TOKEN",value:{widgetId:t.widgetId,token:e.accessToken,...void 0!==t.customData&&{customData:t.customData}}},t.widgetDomain)}catch{}}function _(t,e,i,s,a,r,n,o){const h=function(t,e){let i=null;return{call(s){i&&clearTimeout(i),i=setTimeout(()=>{t(s),i=null},e)},cancel(){i&&(clearTimeout(i),i=null)}}}(t=>{s.style.height=`${t}px`,null==o||o("rai-height-change",{height:t})},t.heightDebounce??100),l=async i=>{var l;if(i.origin!==t.widgetDomain)return;if(!i.data||"string"!=typeof i.data.type)return;const{type:p,containerId:c,widgetId:f,payload:y}=i.data;switch(p){case"RETURNINGAI_WIDGET_REQUEST_TOKEN":try{const i=await async function(t,e,i){if(e.accessToken&&!d(e.accessTokenExpiry))return e.accessToken;if(t.authUrl){if(await m(t,e,i)&&e.accessToken)return e.accessToken;throw new Error("Unable to obtain valid token")}if(await g(t,e,i)&&e.accessToken)return e.accessToken;if(await u(t,e,i)&&e.accessToken)return e.accessToken;throw new Error("Unable to obtain valid token")}(t,e,a);null==(l=s.contentWindow)||l.postMessage({type:"RETURNINGAI_WIDGET_TOKEN",value:{token:i,widgetId:t.widgetId,...void 0!==t.customData&&{customData:t.customData}}},t.widgetDomain)}catch{}break;case"WIDGET_HEIGHT_UPDATE":{const t=Number(null==y?void 0:y.height);Number.isFinite(t)&&t>0&&h.call(t);break}case"WIDGET_READY":if(void 0!==f&&f!==t.widgetId)break;if(void 0!==c&&c!==t.container)break;s.classList.add("loaded"),n&&n(),null==o||o("rai-ready");break;case"WIDGET_ERROR":n&&n();break;case"WIDGET_LOGOUT":r&&await r()}};return window.addEventListener("message",l),()=>{window.removeEventListener("message",l),h.cancel()}}const x=new Set(["community-id","channel-id","widget-id","widget-type","theme","container","width","height","api-url","widget-url","auto-refresh","debug","storage-prefix","max-retries","retry-delay","height-debounce","locale","custom-data","retry-label","auth-url","bundle-url","embed-token","v2-api-url","domain-key","loading-text","bg","text","accent","font"]),T={store:"RaiStoreWidget",channel:"RaiChannelWidget",social:"RaiSocialWidget",milestone:"RaiMilestoneWidget","currency-view":"RaiCurrencyWidget","referral-conditions":"RaiReferralWidget",custom:"RaiCustomWidget"},P={"RAI-STORE-WIDGET":"store","RAI-CHANNEL-WIDGET":"channel","RAI-MILESTONE-WIDGET":"milestone","RAI-SOCIAL-WIDGET":"social","RAI-CURRENCY-WIDGET":"currency-view","RAI-REFERRAL-WIDGET":"referral-conditions","RAI-CUSTOM-WIDGET":"custom","RAI-WIDGET":"store"},A={SGTR:"https://sgtr-eks-widgets.genesiv.org",STG:"https://staging-widgets.genesiv.org",PROD:"https://prod-widgets.returning.ai",GEN:"https://prod-widgets.returning.ai",LOCAL:"http://localhost:1333"},S={SGTR:"https://api-v2.genesiv.org",STG:"https://staging-api-v2.genesiv.org",PROD:"https://api-v2.returning.ai",GEN:"https://api-v2.returning.ai",LOCAL:"http://localhost:1335"};function E(t){if(t)try{const e=new URL(t).hostname.toLowerCase();if("localhost"===e||"127.0.0.1"===e)return"LOCAL";if(e.includes("sgtr"))return"SGTR";if(e.includes("staging"))return"STG";if("genesiv.org"===e||e.endsWith(".genesiv.org"))return"SGTR";if(e.includes("returning.ai")||e.includes("returningai.com")||e.includes("genesiv.com"))return"PROD"}catch{return}}function C(t){return A[t]||A.PROD}const D=new Set;const M=["script","iframe","object","embed"],I=["src","href","xlink:href"];function F(t,e){const i=e=>t.getAttribute(e)??t.getAttribute(`data-${e}`)??"",s=(t,e)=>{const s=parseInt(i(t),10);return Number.isFinite(s)&&s>=0?s:e},a=!!i("community-id"),r=i("community-id")||i("widget-id")||e||"";if(r&&!/^[a-zA-Z0-9_\-=]{8,}$/.test(r))throw new Error(`[rai-widget] Invalid community-id: "${r}"`);const n=i("channel-id")||void 0;if(n&&!/^[a-zA-Z0-9_\-=]{8,}$/.test(n))throw new Error(`[rai-widget] Invalid channel-id: "${n}"`);const o=i("widget-type")||P[t.tagName]||"store";let h;h=a?"store"===o?r:"channel"===o?n?btoa(n):r:r?btoa(r):r:r;let l,p=i("widget-url")||"https://widget.returningai.com";p.endsWith("store-widget")&&(p=`${p}/${r}/open-widget`);try{l=new URL(p).origin}catch{l=p}if(p.includes("store-widget")){const t=new URL(p);t.searchParams.set("color",i("theme")||"light"),p=t.toString()}const c=i("api-url")||void 0,d=i("v2-api-url")||void 0,f=function(t){const e=null==t?void 0:t.trim().toUpperCase();if(e)return"GEN"===e||"PRODUCTION"===e?"PROD":"PRE-STAGING"===e||"PRESTAGING"===e?"SGTR":"STAGING"===e?"STG":"LOCALHOST"===e?"LOCAL":e in A?e:void 0}(i("domain-key"))||E(c)||E(d)||"PROD",u=i("container")||i("data-container")||`returning-ai-widget-${h}`,m={};Array.from(t.attributes).forEach(t=>{const e=t.name.toLowerCase();if(!e.startsWith("data-"))return;const i=e.slice(5);x.has(i)||(m[e]=t.value)});const g=(()=>{const t=i("custom-data");if(t)try{return JSON.parse(t)}catch{return}})();return{communityId:r,channelId:n,widgetId:h,widgetType:o,theme:i("theme")||"light",themeExplicit:!!i("theme"),container:u,width:i("width")||"100%",height:i("height")||"600px",apiUrl:c||C(f),widgetUrl:p,widgetDomain:l,autoRefresh:"false"!==i("auto-refresh"),debug:"true"===i("debug"),storagePrefix:i("storage-prefix")||"returning-ai-widget",userIdentifiers:m,maxRetries:s("max-retries",3),retryDelay:s("retry-delay",500),heightDebounce:s("height-debounce",100),locale:i("locale")||void 0,customData:g,authUrl:i("auth-url")||void 0,bundleUrl:i("bundle-url")||void 0,embedToken:i("embed-token")||void 0,v2ApiUrl:d,domainKey:f,loadingText:i("loading-text")||"Loading ...",firstPaintColors:(()=>{const t=i("bg")||void 0,e=i("text")||void 0,s=i("accent")||void 0;return t||e||s?{bg:t,text:e,accent:s}:void 0})(),firstPaintFont:i("font")||void 0}}class L extends HTMLElement{constructor(){super(),i(this,"shadow"),i(this,"config"),i(this,"state",{accessToken:null,refreshToken:null,tokenFamily:null,accessTokenExpiry:null,refreshTokenExpiry:null,refreshTimer:null,syncTimer:null,iframe:null,isAuthenticated:!1,isRefreshing:!1,refreshPromise:null,errorSettings:null,loadingAnimation:null,themePalette:null,font:null,defaultColorSchema:null,lastAuthError:null}),i(this,"loaderEl",null),i(this,"errorEl",null),i(this,"msgEl",null),i(this,"cleanupListener"),i(this,"intersectionObserver"),i(this,"themeObserver"),i(this,"lottieInstances",[]),this.shadow=this.attachShadow({mode:"closed"})}connectedCallback(){this.config=F(this,void 0);const t=document.createElement("style");t.textContent=':host{display:block;position:relative;width:100%;height:100%}.rai-loader{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;width:100%;height:100%;background:var(--background-5, var(--rai-loader-bg, #ffffff));border-radius:8px;z-index:10;transition:opacity .3s ease-out;font-family:var(--rai-loader-font, "Roboto", system-ui, -apple-system, sans-serif)}.rai-loader.fade-out{opacity:0;pointer-events:none}.rai-loader-text{margin:.5rem 0 0;font-size:1.125rem;line-height:1.75rem;font-weight:400;letter-spacing:normal;color:var(--accent-1, var(--rai-accent, #000000));text-align:center}@media (min-width: 768px){.rai-loader-text{font-size:1.5rem;line-height:2rem}}.rai-error{display:none;position:absolute;top:0;left:0;width:100%;height:100%;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:var(--rai-error-bg, #1a1a1a);border-radius:8px;padding:24px;box-sizing:border-box;text-align:center;color:var(--rai-error-text, #9ca3af);font-family:system-ui,-apple-system,sans-serif;z-index:10}.rai-error.visible{display:flex}iframe{display:block;border:none;opacity:0;transition:opacity .3s ease-in}iframe.loaded{opacity:1}.rai-lottie-loader{width:100px;height:100px}.rai-lottie-loader svg{width:100%!important;height:100%!important}.rai-lottie-spinner{width:32px;height:32px;margin:34px auto;border:3px solid var(--rai-text4, #6b7280);border-top-color:var(--rai-accent, #000000);border-radius:50%;animation:rai-spin .7s linear infinite}@keyframes rai-spin{to{transform:rotate(360deg)}}.rai-sdk-loader{position:relative;width:75px;height:100px}.rai-sdk-loader__bar{position:absolute;bottom:0;width:10px;height:50%;background:var(--rai-accent, #000000);transform-origin:center bottom;box-shadow:1px 1px #0003}.rai-sdk-loader__bar:nth-child(1){left:0;transform:scaleY(.2);animation:rai-sdk-barUp1 4s infinite}.rai-sdk-loader__bar:nth-child(2){left:15px;transform:scaleY(.4);animation:rai-sdk-barUp2 4s infinite}.rai-sdk-loader__bar:nth-child(3){left:30px;transform:scaleY(.6);animation:rai-sdk-barUp3 4s infinite}.rai-sdk-loader__bar:nth-child(4){left:45px;transform:scaleY(.8);animation:rai-sdk-barUp4 4s infinite}.rai-sdk-loader__bar:nth-child(5){left:60px;transform:scale(1);animation:rai-sdk-barUp5 4s infinite}.rai-sdk-loader__ball{position:absolute;bottom:10px;left:0;width:10px;height:10px;background:var(--rai-accent, #000000);border-radius:50%;animation:rai-sdk-ball 4s infinite}@keyframes rai-sdk-ball{0%{transform:translate(0)}5%{transform:translate(8px,-14px)}10%{transform:translate(15px,-10px)}17%{transform:translate(23px,-24px)}20%{transform:translate(30px,-20px)}27%{transform:translate(38px,-34px)}30%{transform:translate(45px,-30px)}37%{transform:translate(53px,-44px)}40%{transform:translate(60px,-40px)}50%{transform:translate(60px)}57%{transform:translate(53px,-14px)}60%{transform:translate(45px,-10px)}67%{transform:translate(37px,-24px)}70%{transform:translate(30px,-20px)}77%{transform:translate(22px,-34px)}80%{transform:translate(15px,-30px)}87%{transform:translate(7px,-44px)}90%{transform:translateY(-40px)}to{transform:translate(0)}}@keyframes rai-sdk-barUp1{0%{transform:scaleY(.2)}40%{transform:scaleY(.2)}50%{transform:scale(1)}90%{transform:scale(1)}to{transform:scaleY(.2)}}@keyframes rai-sdk-barUp2{0%{transform:scaleY(.4)}40%{transform:scaleY(.4)}50%{transform:scaleY(.8)}90%{transform:scaleY(.8)}to{transform:scaleY(.4)}}@keyframes rai-sdk-barUp3{0%{transform:scaleY(.6)}to{transform:scaleY(.6)}}@keyframes rai-sdk-barUp4{0%{transform:scaleY(.8)}40%{transform:scaleY(.8)}50%{transform:scaleY(.4)}90%{transform:scaleY(.4)}to{transform:scaleY(.8)}}@keyframes rai-sdk-barUp5{0%{transform:scale(1)}40%{transform:scale(1)}50%{transform:scaleY(.2)}90%{transform:scaleY(.2)}to{transform:scale(1)}}#loading-square{width:75px;aspect-ratio:1;display:flex;color:var(--rai-accent, #000000);background:linear-gradient(currentColor 0 0) right / 51% 100%,linear-gradient(currentColor 0 0) bottom / 100% 51%;background-repeat:no-repeat;animation:l16-0 2s infinite linear .25s}#loading-square>div{width:50%;height:50%;background:currentColor;animation:l16-1 .5s infinite linear}@keyframes l16-0{0%,12.49%{transform:rotate(0)}12.5%,37.49%{transform:rotate(90deg)}37.5%,62.49%{transform:rotate(180deg)}62.5%,87.49%{transform:rotate(270deg)}87.5%,to{transform:rotate(360deg)}}@keyframes l16-1{0%{transform:perspective(80px) rotate3d(-1,-1,0,0)}80%,to{transform:perspective(80px) rotate3d(-1,-1,0,-180deg)}}#loading-circle{width:75px;aspect-ratio:1;display:grid;grid:50%/50%;color:var(--rai-accent, #000000);border-radius:50%;--_g: no-repeat linear-gradient(currentColor 0 0);background:var(--_g),var(--_g),var(--_g);background-size:50.1% 50.1%;animation:l9-0 1.5s infinite steps(1) alternate,l9-0-0 3s infinite steps(1) alternate}#loading-circle>div{background:var(--rai-text4, #6b7280);border-top-left-radius:100px;transform:perspective(150px) rotateY(0) rotateX(0);transform-origin:bottom right;animation:l9-1 1.5s infinite linear alternate}@keyframes l9-0{0%{background-position:0 100%,100% 100%,100% 0}33%{background-position:100% 100%,100% 100%,100% 0}66%{background-position:100% 0,100% 0,100% 0}}@keyframes l9-0-0{0%{transform:scaleX(1) rotate(0)}50%{transform:scaleX(-1) rotate(-90deg)}}@keyframes l9-1{16.5%{transform:perspective(150px) rotateX(-90deg) rotateY(0) rotateX(0);filter:grayscale(.8)}33%{transform:perspective(150px) rotateX(-180deg) rotateY(0) rotateX(0)}66%{transform:perspective(150px) rotateX(-180deg) rotateY(-180deg) rotateX(0)}to{transform:perspective(150px) rotateX(-180deg) rotateY(-180deg) rotateX(-180deg);filter:grayscale(.8)}}.rai-custom-error{position:absolute;top:0;left:0;width:100%;height:100%;z-index:10}.tiptap strong.tw-font-bold,.tiptap b.tw-font-bold{font-weight:700}.tiptap em.tw-font-italic,.tiptap i.tw-font-italic{font-style:italic}.tiptap a.tiptap-rich-text-link{color:#3b82f6;text-decoration:underline;position:relative;display:inline-block;width:fit-content}.tiptap a.tiptap-rich-text-link:hover{color:#3b82f6cc;text-decoration:none}.tiptap a.tiptap-rich-text-link:not([title=""]):before{content:attr(title);position:absolute;top:-2rem;left:50%;transform:translate(-50%);white-space:nowrap;border-radius:.25rem;background-color:#000;padding:.25rem .5rem;color:#fff;opacity:0;transition:opacity .2s;pointer-events:none}.tiptap a.tiptap-rich-text-link:not([title=""]):hover:before{opacity:1}.tiptap p[style*="text-align: left"]{text-align:left}.tiptap p[style*="text-align: center"]{text-align:center}.tiptap p[style*="text-align: right"]{text-align:right}.tiptap p[style*="text-align: justify"]{text-align:justify}.tiptap u{text-decoration:underline}.tiptap.ProseMirror{background-color:transparent;height:fit-content!important;word-wrap:break-word;white-space:pre-wrap;white-space:break-spaces;-webkit-font-variant-ligatures:none;font-variant-ligatures:none;font-feature-settings:"liga" 0;padding:0;width:100%;overflow-y:auto}.tiptap{line-height:1.6;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.tiptap p{margin:.5em 0}.tiptap p:first-child{margin-top:0}.tiptap p:last-child{margin-bottom:0}.tiptap img{max-width:100%;height:auto;display:block}.tiptap p[style*="text-align: left"] img{margin-left:0;margin-right:auto}.tiptap p[style*="text-align: center"] img{margin-left:auto;margin-right:auto}.tiptap p[style*="text-align: right"] img{margin-left:auto;margin-right:0}.rai-retry-btn{padding:8px 20px;border:none;border-radius:6px;background:var(--rai-accent, #000000);color:var(--rai-error-bg, #ffffff);font-size:14px;font-family:system-ui,-apple-system,sans-serif;cursor:pointer}.rai-retry-btn:hover{opacity:.85}',this.shadow.appendChild(t);const e=this.config.theme,i="dark"===e?"#ffffff":"#000000",s="dark"===e?"#9ca3af":"#6b7280",a="dark"===e?"#1a1a1a":"#ffffff";this.style.width=this.config.width,this.style.height=this.config.height,this.style.setProperty("--rai-accent",i),this.style.setProperty("--rai-text4",s),this.style.setProperty("--rai-loader-bg",a),this.style.setProperty("--rai-error-bg",a),this.applyFirstPaintColors(),this.renderShell(),this.hasAttribute("eager")?this.init():(this.intersectionObserver=new IntersectionObserver(t=>{t[0].isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0,this.init())}),this.intersectionObserver.observe(this))}disconnectedCallback(){var t,e;null==(t=this.intersectionObserver)||t.disconnect(),null==(e=this.themeObserver)||e.disconnect(),this.cleanupListener&&this.cleanupListener(),this.clearLottieInstances(),k(this.state)}emit(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e??{}}))}applyFirstPaintColors(){var t;const e=c(this.config);if(!this.config.themeExplicit){const t=null==e?void 0:e.defaultColorSchema;"light"!==t&&"dark"!==t||(this.config.theme=t)}const i="dark"===this.config.theme?"dark":"light",s=null==(t=null==e?void 0:e.themePalette)?void 0:t[i];s&&this.applyPalette(s);const a=("string"==typeof(null==e?void 0:e.font)?e.font:void 0)||this.config.firstPaintFont;if(a&&this.applyFont(a),s)return;const r=this.config.firstPaintColors;(null==r?void 0:r.bg)&&this.style.setProperty("--background-5",r.bg),(null==r?void 0:r.text)&&this.style.setProperty("--text-1",r.text),(null==r?void 0:r.accent)&&this.style.setProperty("--accent-1",r.accent)}applyFont(t){this.style.setProperty("--rai-loader-font",`'${t}', system-ui, -apple-system, sans-serif`),function(t){if(!t||D.has(t))return;D.add(t);const e=`rai-font-${t.toLowerCase().replace(/\s+/g,"-")}`;if(document.getElementById(e))return;const i=document.createElement("link");i.id=e,i.rel="stylesheet",i.href=`https://fonts.googleapis.com/css2?family=${encodeURIComponent(t)}&display=swap`,document.head.appendChild(i)}(t)}applyPalette(t){Object.entries(t).forEach(([t,e])=>{t.startsWith("--")&&e&&this.style.setProperty(t,e)})}renderShell(){this.loaderEl=document.createElement("div"),this.loaderEl.className="rai-loader";const t=document.createElement("h1");t.className="rai-loader-text",t.textContent=this.config.loadingText,this.loaderEl.appendChild(t),this.shadow.appendChild(this.loaderEl),this.fetchAndRenderLoader(),this.errorEl=document.createElement("div"),this.errorEl.className="rai-error",this.msgEl=document.createElement("span"),this.msgEl.className="rai-error-msg",this.msgEl.textContent="Authentication failed. Please try again later.",this.errorEl.appendChild(this.msgEl);const e=this.getAttribute("retry-label")||this.getAttribute("data-retry-label")||"Retry",i=document.createElement("button");i.className="rai-retry-btn",i.textContent=e,i.addEventListener("click",()=>this.reload()),this.errorEl.appendChild(i),this.shadow.appendChild(this.errorEl)}async fetchAndRenderLoader(){var t;const e=c(this.config);if(e)return v(this.state,e),this.renderLoaderAnimation(),void b(this.config,this.state,{skipCache:!0}).catch(()=>{});try{await b(this.config,this.state)}catch{}if(!this.loaderEl)return;this.config.themeExplicit||"light"!==this.state.defaultColorSchema&&"dark"!==this.state.defaultColorSchema||this.state.defaultColorSchema===this.config.theme||(this.config.theme=this.state.defaultColorSchema);const i="dark"===this.config.theme?"dark":"light",s=null==(t=this.state.themePalette)?void 0:t[i];s&&this.applyPalette(s),this.state.font&&this.applyFont(this.state.font),this.renderLoaderAnimation()}renderLoaderAnimation(){if(!this.loaderEl)return;this.clearLottieInstances();const t=this.loaderEl.querySelector(".rai-loader-anim");t&&t.remove();const e=document.createElement("div");e.className="rai-loader-anim";const i=this.state.loadingAnimation,s="dark"===this.config.theme?"dark":"light";if("custom"===(null==i?void 0:i.type)&&i.custom){const t=i.custom[s]||i.custom.light||i.custom.dark;if(t){if("lottie"===t.type&&t.lottieData)return this.renderLottieInto(e,t.lottieData),void this.loaderEl.insertBefore(e,this.loaderEl.firstChild);if("html"===t.type&&t.html)return e.innerHTML=function(t){const e=(new DOMParser).parseFromString(t,"text/html");return e.body.querySelectorAll(M.join(",")).forEach(t=>t.remove()),e.body.querySelectorAll("*").forEach(t=>{Array.from(t.attributes).forEach(e=>{const i=e.name.toLowerCase();(i.startsWith("on")||I.includes(i)&&e.value.trim().toLowerCase().startsWith("javascript:"))&&t.removeAttribute(e.name)})}),e.body.innerHTML}(t.html),void this.loaderEl.insertBefore(e,this.loaderEl.firstChild)}}if("preset"===(null==i?void 0:i.type)&&i.preset)return e.appendChild(this.createPresetLoader(i.preset)),void this.loaderEl.insertBefore(e,this.loaderEl.firstChild);e.appendChild(this.createDefaultLoader()),this.loaderEl.insertBefore(e,this.loaderEl.firstChild)}renderLottieInto(t,e){const i=document.createElement("div");i.className="rai-lottie-loader",t.appendChild(i);const s=o.loadAnimation({container:i,renderer:"svg",loop:!0,autoplay:!0,animationData:e});this.lottieInstances.push(s)}clearLottieInstances(){this.lottieInstances.forEach(t=>t.destroy()),this.lottieInstances=[]}createDefaultLoader(){const t=document.createElement("div");t.className="rai-sdk-loader";for(let i=0;i<5;i++){const e=document.createElement("div");e.className="rai-sdk-loader__bar",t.appendChild(e)}const e=document.createElement("div");return e.className="rai-sdk-loader__ball",t.appendChild(e),t}createPresetLoader(t){if("square"===t){const t=document.createElement("div");t.id="loading-square";const e=document.createElement("div");return t.appendChild(e),t}if("circle"===t){const t=document.createElement("div");t.id="loading-circle";const e=document.createElement("div");return t.appendChild(e),t}return this.createDefaultLoader()}hideLoader(){this.loaderEl&&(this.loaderEl.classList.add("fade-out"),setTimeout(()=>{var t;return null==(t=this.loaderEl)?void 0:t.remove()},300),this.loaderEl=null)}deferLoaderRemovalUntilReactPaints(t){if(!this.loaderEl)return;let e=!1;const i=()=>{e||(e=!0,this.hideLoader())},s=new MutationObserver(()=>{t.children.length>0&&(s.disconnect(),requestAnimationFrame(i))});s.observe(t,{childList:!0}),setTimeout(()=>{s.disconnect(),i()},2e3)}showError(){this.hideLoader();const t=this.state.errorSettings,e=this.state.lastAuthError,i="User not found"===(null==e?void 0:e.error)||"Missing required user identifier fields"===(null==e?void 0:e.error)||"Missing user identifier fields"===(null==e?void 0:e.error),s=!!(null==t?void 0:t.errorMessage)&&(i||!e);s?this.renderCustomError(t):this.errorEl&&((null==e?void 0:e.error)&&this.msgEl&&(this.msgEl.textContent=e.hint?`${e.error}: ${e.hint}`:e.error),this.errorEl.classList.add("visible"));const a=s?t.errorMessage:(null==e?void 0:e.error)||"Authentication failed";this.emit("rai-error",{message:a,hint:null==e?void 0:e.hint,status:null==e?void 0:e.status})}renderCustomError(t){var e,i;null==(e=this.errorEl)||e.remove(),this.errorEl=null;const s=(null==(i=t.backgroundImage)?void 0:i.trim())?`background-image: url('${t.backgroundImage}'); background-size: cover; background-position: center; background-repeat: no-repeat;`:"",a=document.createElement("div");a.className="rai-custom-error",a.style.cssText=`\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: auto;\n width: 100%;\n height: 100%;\n ${s}\n `;const r=document.createElement("div");r.className="rai-rich-text",r.style.cssText=`\n min-width: 50%;\n min-height: 50%;\n margin: 0 auto;\n padding: 20px;\n width: auto;\n height: auto;\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: 6px;\n background-color: ${t.modalColor||"transparent"};\n `;const n=document.createElement("div");n.className="tiptap ProseMirror",n.innerHTML=t.errorMessage||"",r.appendChild(n),a.appendChild(r),this.shadow.appendChild(a)}async init(){if(!this.config.communityId)return void this.showError();await b(this.config,this.state);const t=()=>{this.config.bundleUrl?this.mountWidget():this.createIframe()};if(this.config.authUrl){return void(await m(this.config,this.state,()=>this.scheduleRefresh())?(this.emit("rai-authenticated"),t()):this.showError())}if(this.config.embedToken){k(this.state),p(this.config);return void(await u(this.config,this.state,()=>this.scheduleRefresh())?(this.emit("rai-authenticated"),t()):this.showError())}if(function(t,e){try{const i=localStorage.getItem(h(t));if(!i)return!1;const s=JSON.parse(i);return s.refreshToken&&!d(s.refreshTokenExpiry)?(e.refreshToken=s.refreshToken,e.tokenFamily=s.tokenFamily,e.refreshTokenExpiry=s.refreshTokenExpiry,!0):(p(t),!1)}catch{return!1}}(this.config,this.state)){return await g(this.config,this.state,()=>this.scheduleRefresh())?(this.state.isAuthenticated=!0,this.emit("rai-authenticated"),void t()):void this.showError()}await u(this.config,this.state,()=>this.scheduleRefresh())?(this.emit("rai-authenticated"),t()):this.showError()}createIframe(){const t=document.createElement("iframe");t.src=this.buildWidgetUrl(this.config),t.allow="clipboard-write",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms allow-popups allow-popups-to-escape-sandbox"),t.frameBorder="0",t.scrolling="no",t.style.width=this.config.width,t.style.height=this.config.height,t.style.border="none",t.style.display="block",t.onload=()=>{w(this.config,this.state,t),this.schedulePeriodicSync(t)},t.onerror=()=>{this.showError()},this.state.iframe=t,this.shadow.appendChild(t),this.cleanupListener=_(this.config,this.state,this.shadow,t,()=>this.scheduleRefresh(),()=>this.logoutAndClear(),()=>this.hideLoader(),(t,e)=>this.emit(t,e))}async mountWidget(){try{const i=this.config.v2ApiUrl||(e=this.config.domainKey,S[e]||S.PROD),s=window;s.DomainKey||(s.DomainKey=function(t){return"PROD"===t?"GEN":t}(this.config.domainKey)),s.api_url||(s.api_url=i),window.__IS_WIDGET__=!0,window.guest_token=this.state.accessToken;const a="dark"===this.config.theme?"dark":"light",r="dark"===a?"dark-knight":"white-smoke";document.documentElement.setAttribute("data-theme",r),window.currentTheme=a,window.__FORCE_COLOR_MODE__=a,window.__WIDGET_STORAGE_KEY__=`color-schema-${this.config.widgetType}-${this.config.widgetId}`,this.state.loadingAnimation&&(window.loadingAnimation=this.state.loadingAnimation),await(t=this.config.bundleUrl,new Promise((e,i)=>{const s=document.createElement("script");s.src=t,s.onload=()=>e(),s.onerror=()=>i(new Error(`Failed to load ${t}`)),document.head.appendChild(s)}));const n=T[this.config.widgetType],o=window[n];if(!(null==o?void 0:o.mount))throw new Error(`window.${n}.mount not found after loading bundle`);const h=document.createElement("div");if(h.className="rai-widget-root",h.setAttribute("data-rai-widget-root","true"),h.style.cssText=["position: relative","width: 100%","height: 100%","color: var(--text-1)","background: var(--background-1)","font-family: var(--rai-loader-font, 'Roboto', system-ui, -apple-system, sans-serif)"].join("; "),this.appendChild(h),!this.shadow.querySelector("slot")){const t=document.createElement("slot");this.shadow.appendChild(t)}this.deferLoaderRemovalUntilReactPaints(h),o.mount(h,{widgetType:this.config.widgetType,communityId:this.config.communityId,channelId:this.config.channelId,widgetId:this.config.communityId,apiUrl:i,token:this.state.accessToken,basePath:"/",isPreview:!1,isOpenWidget:!this.state.accessToken,defaultColorSchema:"dark"===this.config.theme?"dark":"light"}),this.emit("rai-mounted")}catch(i){console.error("[rai-widget] Bundle mount failed:",i),this.showError()}var t,e}scheduleRefresh(){if(this.state.refreshTimer&&clearTimeout(this.state.refreshTimer),!this.state.accessTokenExpiry)return;const t=this.state.accessTokenExpiry-Date.now()-6e4,e=()=>{this.state.iframe&&w(this.config,this.state,this.state.iframe),this.config.bundleUrl&&this.state.accessToken&&(window.guest_token=this.state.accessToken)},i=async()=>{if(this.config.authUrl){await m(this.config,this.state,()=>this.scheduleRefresh())&&e()}else await g(this.config,this.state,()=>this.scheduleRefresh(),e)};t>0?this.state.refreshTimer=setTimeout(i,t):i()}schedulePeriodicSync(t){this.state.syncTimer&&clearInterval(this.state.syncTimer),this.state.syncTimer=setInterval(()=>{this.state.accessToken&&w(this.config,this.state,t)},12e4)}async logoutAndClear(){await async function(t,e){if(e.accessToken)try{await fetch(`${t.apiUrl}/${t.widgetId}/auth/logout`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.accessToken}`},body:JSON.stringify({refreshToken:e.refreshToken})})}catch{}k(e),p(t)}(this.config,this.state),this.shadow.querySelectorAll("iframe").forEach(t=>t.remove()),this.emit("rai-logout")}async reload(){k(this.state),this.shadow.querySelectorAll("iframe").forEach(t=>t.remove()),await this.init()}async logoutPublic(){await this.logoutAndClear()}isAuthenticated(){return this.state.isAuthenticated&&null!==this.state.accessToken}getTokenInfo(){return{hasAccessToken:!!this.state.accessToken,hasRefreshToken:!!this.state.refreshToken,accessTokenExpiry:this.state.accessTokenExpiry?new Date(this.state.accessTokenExpiry):null,refreshTokenExpiry:this.state.refreshTokenExpiry?new Date(this.state.refreshTokenExpiry):null,isAccessTokenValid:!!this.state.accessToken&&!d(this.state.accessTokenExpiry),isRefreshTokenValid:!!this.state.refreshToken&&!d(this.state.refreshTokenExpiry)}}}class R extends L{buildWidgetUrl(t){const e=new URL(t.widgetUrl);return e.searchParams.set("color",t.theme),e.searchParams.set("containerId",t.container),e.searchParams.set("connectType","simple"),e.searchParams.set("mode","private"),t.locale&&e.searchParams.set("locale",t.locale),e.toString()}}class O extends L{buildWidgetUrl(t){const e=t.widgetUrl.endsWith("channel-widget")?`${t.widgetUrl}/${t.widgetId}`:t.widgetUrl;try{const i=new URL(e);return i.searchParams.set("color",t.theme),t.locale&&i.searchParams.set("locale",t.locale),i.toString()}catch{const i=[`color=${t.theme}`];return t.locale&&i.push(`locale=${encodeURIComponent(t.locale)}`),`${e}?${i.join("&")}`}}}class N extends L{buildWidgetUrl(t){const e=t.widgetUrl.endsWith("milestone-widget")?`${t.widgetUrl}/${t.widgetId}`:t.widgetUrl;try{const i=new URL(e);return i.searchParams.set("color",t.theme),t.locale&&i.searchParams.set("locale",t.locale),i.toString()}catch{const i=[`color=${t.theme}`];return t.locale&&i.push(`locale=${encodeURIComponent(t.locale)}`),`${e}?${i.join("&")}`}}}class V extends L{buildWidgetUrl(t){const e=t.widgetUrl.endsWith("social-widget")?`${t.widgetUrl}/${t.widgetId}`:t.widgetUrl;try{const i=new URL(e);return i.searchParams.set("color",t.theme),t.locale&&i.searchParams.set("locale",t.locale),i.toString()}catch{const i=[`color=${t.theme}`];return t.locale&&i.push(`locale=${encodeURIComponent(t.locale)}`),`${e}?${i.join("&")}`}}}class z extends L{buildWidgetUrl(t){const e=t.widgetUrl.endsWith("currency-overview-widget")?`${t.widgetUrl}/${t.widgetId}`:t.widgetUrl;try{const i=new URL(e);return i.searchParams.set("color",t.theme),t.locale&&i.searchParams.set("locale",t.locale),i.toString()}catch{const i=[`color=${t.theme}`];return t.locale&&i.push(`locale=${encodeURIComponent(t.locale)}`),`${e}?${i.join("&")}`}}}class U extends L{buildWidgetUrl(t){const e=t.widgetUrl.endsWith("referral-conditions-widget")?`${t.widgetUrl}/${t.widgetId}`:t.widgetUrl;try{const i=new URL(e);return i.searchParams.set("color",t.theme),t.locale&&i.searchParams.set("locale",t.locale),i.toString()}catch{const i=[`color=${t.theme}`];return t.locale&&i.push(`locale=${encodeURIComponent(t.locale)}`),`${e}?${i.join("&")}`}}}class W extends L{buildWidgetUrl(t){const e=t.widgetUrl.endsWith("custom-widget")?`${t.widgetUrl}/${t.widgetId}`:t.widgetUrl;try{const i=new URL(e);return i.searchParams.set("color",t.theme),t.locale&&i.searchParams.set("locale",t.locale),i.toString()}catch{const i=[`color=${t.theme}`];return t.locale&&i.push(`locale=${encodeURIComponent(t.locale)}`),`${e}?${i.join("&")}`}}}console.log("[rai-widget] v1.4.0");const j=[["rai-store-widget",R],["rai-channel-widget",O],["rai-milestone-widget",N],["rai-social-widget",V],["rai-currency-widget",z],["rai-referral-widget",U],["rai-custom-widget",W],["rai-widget",class extends R{}]];for(const[Y,H]of j)customElements.get(Y)||customElements.define(Y,H);const q={store:R,channel:O,milestone:N,social:V,"currency-view":z,"referral-conditions":U,custom:W},B=j.map(([t])=>t).join(", ");function $(){var t,e;const i=((null==(t=document.currentScript)?void 0:t.hasAttribute("data-widget-id"))||(null==(e=document.currentScript)?void 0:e.hasAttribute("data-community-id"))?document.currentScript:null)||document.querySelector("script[data-widget-id], script[data-community-id]");if(!i)return;const s=i.getAttribute("data-community-id")||i.getAttribute("data-widget-id");if(!s)return;const a=i.getAttribute("data-container")||`returning-ai-widget-${s}`,r=document.getElementById(a);if(!r)return;"static"===getComputedStyle(r).position&&(r.style.position="relative");const n=i.getAttribute("data-widget-type")??"store",o=new(q[n]??R);Array.from(i.attributes).forEach(t=>{o.setAttribute(t.name,t.value)}),r.appendChild(o)}function G(){const t=(()=>{var t,e;const i=((null==(t=document.currentScript)?void 0:t.hasAttribute("data-widget-id"))||(null==(e=document.currentScript)?void 0:e.hasAttribute("data-community-id"))?document.currentScript:null)||document.querySelector("script[data-widget-id], script[data-community-id]");if(!i)return null;const s=i.getAttribute("data-container")||`returning-ai-widget-${i.getAttribute("data-community-id")||i.getAttribute("data-widget-id")}`;return document.getElementById(s)})(),e=null==t?void 0:t.querySelector(B);window.ReturningAIWidget={version:"1.4.0",reload:()=>(null==e?void 0:e.reload())??Promise.resolve(),logout:()=>(null==e?void 0:e.logoutPublic())??Promise.resolve(),isAuthenticated:()=>(null==e?void 0:e.isAuthenticated())??!1,getTokenInfo:()=>(null==e?void 0:e.getTokenInfo())??{}}}return"loading"===document.readyState?document.addEventListener("DOMContentLoaded",$):$(),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",G):G(),t.ChannelWidget=O,t.CurrencyWidget=z,t.CustomWidget=W,t.MilestoneWidget=N,t.ReferralWidget=U,t.SocialWidget=V,t.StoreWidget=R,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t}({});
|