!function(){"use strict";const e={bush:{hitLayer:"hit_bush",hitId:"617",frameRange:[0,94],auto:!1},bird:{hitLayer:"hit_bird",hitId:"616",frameRange:[95,220],auto:!1},board:{hitLayer:"hit_board",hitId:"619",frameRange:[233,279],auto:!1}};let t,n,o=null,r=null,i=!1,a=0,s=[],l=0;function u(){const l=document.getElementById("interactiveLottie");if(!l)return;if("LOTTIE-PLAYER"===l.tagName)t=l;else if(t=l.querySelector("lottie-player"),!t)return;const u=()=>{t.shadowRoot&&t.shadowRoot.querySelector("svg")&&function(){if(t.shadowRoot){if(n=t.shadowRoot.querySelector("svg"),!n&&(n=t.querySelector("svg"),!n))return}else if(n=t.querySelector("svg"),!n)return;t.stop(),t.seek(0),function(){let l=null;try{l=t.getLottie(),l||(t.lottie?l=t.lottie.animationData||t.lottie:t._lottie&&(l=t._lottie.animationData||t._lottie)),l&&(a=l.op||l.totalFrames||0,a>0&&(s=f()))}catch(e){}const u=l?.layers||[],d=Array.from(n.querySelectorAll("g"));Object.keys(e).forEach(t=>{const n=e[t].hitLayer,a=e[t].hitId;let s=c(n);!s&&a&&(s=c(a)),!s&&u.length>0&&(s=function(e,t,n){const o=t.findIndex(t=>t.nm===e);if(-1===o)return null;const r=t.length-1-o;if(n[r])return n[r];for(let e=1;e<=5;e++){if(n[r+e])return n[r+e];if(n[r-e])return n[r-e]}return null}(n,u,d)),s||(s=function(e,t){const n=e.toLowerCase(),o=e.split("_");for(let e of t){const t=String(e.id||"").toLowerCase(),r=String(e.getAttribute("data-name")||"").toLowerCase();let i="";e.className&&(i="string"==typeof e.className?e.className.toLowerCase():e.className.baseVal?String(e.className.baseVal).toLowerCase():String(e.className).toLowerCase());const a=e.querySelector("title"),s=a?String(a.textContent||"").toLowerCase():"";if(t.includes(n)||r.includes(n)||i.includes(n)||s.includes(n))return e;if(o.length>1){if(o.every(e=>t.includes(e.toLowerCase())||r.includes(e.toLowerCase())))return e}}return null}(n,d)),s&&(s.style.pointerEvents="auto",s.style.cursor="pointer",s.addEventListener("mouseenter",()=>{!function(e){if(o===e)return;o=e,i=!1,clearTimeout(r),g(e)}(t)}),s.addEventListener("mouseleave",()=>{!function(e){if(o!==e)return;o=null}(t)}))})}(),d()}()};t.loaded?setTimeout(u,200):(t.addEventListener("ready",()=>{setTimeout(u,100)}),t.addEventListener("loaded",()=>{setTimeout(u,100)}),setTimeout(()=>{n||u()},3e3))}function c(e){const t=n.querySelectorAll("*");let o=null;for(let n of t){const t=n.id||"",r=n.getAttribute("data-name")||"";if(t===e){o=n;break}if(r===e){o=n;break}}return o}function f(){if(!a||0===a)return[];const t=Object.values(e).map(e=>e.frameRange),n=[];let o=0;t.sort((e,t)=>e[0]-t[0]);for(const[e,r]of t)o{o||(l=(l+1)%s.length,m())},a)}function g(n){if(null!==o&&o!==n)return;const[i,a]=e[n].frameRange,s=h(i,a);t.seek(i),t.play(),r=setTimeout(()=>{o===n?g(n):d()},s)}function h(e,n){let o=30;try{const e=t.getLottie();o=e?.fr||30}catch(e){}return(n-e)/o*1e3}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",u):u()}();