PageSourceSearch

https://learn.lalia.io/_next/static/chunks/pages/experiments/synoflex-354026a94a1ea5c8.js

js lalia.io collected 2026-10-09 17:35:23 UTC 22,412 bytes, 9 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9172],{78047:function(e,t,n){var r=n(52074).w_;e.exports.g=function(e){return r({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z"}},{tag:"path",attr:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 0 0 .6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0 0 46.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z"}}]})(e)}},61592:function(e,t,n){var r=n(52074).w_;e.exports.F=function(e){return r({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"}}]})(e)}},94264:function(e,t,n){var r=n(52074).w_;e.exports.F=function(e){return r({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"}}]})(e)}},42060:function(e,t,n){var r=n(52074).w_;e.exports.a=function(e){return r({tag:"svg",attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"}}]})(e)}},99851:function(e,t,n){var r=n(52074).w_;e.exports.G=function(e){return r({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"}}]})(e)}},39069:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/experiments/synoflex",function(){return n(96987)}])},77207:function(e,t,n){"use strict";var r=n(97458),a=n(52983),l=n(61592),s=n(42060);let i=[{label:"My Decks",items:[{label:"Cards",href:"/vocab"},{label:"Decks",href:"/vocab/decks"}]},{label:"Games",items:[{label:'"Anki"',href:"/vocab/cardDisplay"},{label:"Crossword",href:"/experiments/crossword"},{label:"Synoflex",href:"/experiments/synoflex"}]},{label:"Dev",items:[{label:"Index",href:"/vocab"},{label:"Developer",href:"/vocab/developer"},{label:"Articles",href:"/articles"}]}];t.Z=function(){let[e,t]=(0,a.useState)(!1),n=(0,a.useRef)(null);(0,a.useEffect)(()=>{function e(e){n.current&&!n.current.contains(e.target)&&t(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let o=()=>{t(!e)};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{className:"fixed top-4 right-4 rounded-md  p-2 text-blue-600 transition-colors duration-200 hover:text-gray-900",onClick:o,children:e?(0,r.jsx)(s.a,{size:20}):null}),(0,r.jsx)("button",{className:"fixed top-4 left-4 rounded-md bg-gray-100 p-2 text-gray-600 transition-colors duration-200 hover:text-gray-900",onClick:o,children:e?null:(0,r.jsx)(l.F,{size:20})}),(0,r.jsxs)("div",{ref:n,className:"fixed top-0 left-0 z-50 h-screen w-64 bg-white py-4 shadow-lg transition-all duration-200 ".concat(e?"translate-x-0":"-translate-x-full"),children:[(0,r.jsx)("h2",{className:"my-auto px-4 text-center text-lg font-bold uppercase tracking-wider text-gray-900",children:"Menu"}),i.map(e=>(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{className:"my-auto border-b border-gray-300 py-2 px-4 text-lg font-bold text-gray-900 hover:text-primary-600",children:e.label}),e.items.map(e=>(0,r.jsx)("a",{href:e.href,className:"my-auto block px-4 py-2 text-gray-600 transition-colors duration-200 hover:bg-gray-100 hover:text-primary-600",children:e.label},e.label))]},e.label))]})]})}},26718:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=n(40739);function a(e){let t=r.S.experiments.lankia.addVocab.useMutation(),n=r.S.experiments.lankia.addVocabToCurrentUser.useMutation(),a=r.S.experiments.lankia.addExistingCardToDeck.useMutation(),l=r.S.experiments.lankia.addNewCardToDeck.useMutation(),s=r.S.experiments.lankia.addDeck.useMutation(),i=r.S.experiments.lankia.getAllVocab.useQuery(void 0,{staleTime:1/0,enabled:e}),o=r.S.experiments.lankia.getAllPublicDecks.useQuery(void 0,{staleTime:1/0,enabled:e}),c=r.S.experiments.lankia.getAllDecksForUser.useQuery(void 0,{staleTime:1/0,enabled:e}),d=r.S.experiments.lankia.getAllUserVocab.useQuery(void 0,{staleTime:1/0,enabled:e}),m=r.S.experiments.lankia.updateUserVocab.useMutation(),u=r.S.experiments.lankia.decrementUserVocab.useMutation(),h=r.S.experiments.lankia.removeUserVocab.useMutation(),x=r.S.experiments.lankia.removeVocab.useMutation(),p=r.S.experiments.lankia.removeCardDeckRecord.useMutation(),f=r.S.experiments.lankia.updateDeck.useMutation(),y=r.S.experiments.lankia.removeDeck.useMutation();return{isAddingCard:t.isLoading||n.isLoading||a.isLoading||l.isLoading,addVocab:(e,n,r,a)=>t.mutateAsync({keyphrase:e,definition:n,examples:r,cardID:a}),addVocabToCurrentUser:(e,t,r)=>n.mutateAsync({cardID:e,mastery:t,notes:r||null}),addExistingVocabToDeck:(e,t)=>a.mutateAsync({cardID:e,deckID:t}),addNewVocabToDeck:(e,t,n,r,a)=>l.mutateAsync({keyphrase:e,definition:t,examples:n,cardID:a,deckID:r}),addDeck:(e,t,n)=>s.mutateAsync({deck:e,isPublic:t,deckID:n}),getAllVocabQuery:i,getAllUserVocabQuery:d,getDeckVocabQuery:t=>r.S.experiments.lankia.getDeckVocab.useQuery({deck:t},{staleTime:1/0,enabled:e}),getDeckUserVocabQuery:t=>r.S.experiments.lankia.getDeckUserVocab.useQuery({deck:t},{staleTime:1/0,enabled:e}),getAllPublicDeckQuery:o,getAllUserDeckQuery:c,updateUserVocab:(e,t,n
1)=>m.mutateAsync({cardID:e,mastery:t,notes:n||null}),decrementUserVocabCountdown:e=>u.mutateAsync({cardID:e}),removeUserVocab:e=>h.mutateAsync({cardID:e}),removeVocab:e=>x.mutateAsync({cardID:e}),removeCardDeckRecord:e=>p.mutateAsync({cardID:e}),updateDeck:(e,t)=>f.mutateAsync({deck:e,deckID:t}),removeDeck:e=>y.mutateAsync({deckID:e})}}},96987:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return C}});var r=n(97458),a=n(52983),l=n(23559),s=n(78047),i=n(7873);let o=e=>{let{closeAction:t}=e,n=(0,i.w5)("confetti","confetti");return(0,a.useEffect)(()=>{n.reward()},[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsx)("div",{id:"popup-modal",className:"fixed top-0 left-0 right-0 bottom-0 z-50 flex items-center justify-center bg-gray-800 bg-opacity-75",children:(0,r.jsxs)("div",{className:"relative my-auto w-full max-w-4xl md:h-auto",children:[(0,r.jsx)("div",{className:"relative mx-auto max-w-xl rounded-lg bg-white p-10 shadow-lg",children:(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(s.g,{className:"mx-auto mb-4 h-14 w-14 text-blue-600"}),(0,r.jsx)("h3",{className:"mb-5 text-xl font-medium text-gray-800",children:"Congratulations! You are now a Vocab Monster."}),(0,r.jsx)("button",{onClick:t,"data-modal-hide":"popup-modal",type:"button",className:"focus:shadow-outline-blue inline-block rounded-lg border border-transparent bg-blue-600 px-6 py-2 text-sm font-medium uppercase leading-5 text-white transition-colors duration-150 focus:outline-none hover:bg-blue-800 active:bg-blue-800",children:"Play again"})]})}),(0,r.jsx)("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 transform",children:(0,r.jsx)("div",{className:"h-1 w-1 items-center justify-center",id:"confetti"})})]})})})};var c=n(94264),d=n(99851),m=e=>{let{score:t}=e,n=t.correct/5*100,a=t.incorrect/5*100;return(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsxs)("div",{className:"mt-10 flex flex-row px-2 md:px-4",children:[(0,r.jsxs)("div",{className:"mx-6 flex items-center",children:[(0,r.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-red-500 text-white md:h-10 md:w-10",children:(0,r.jsx)(d.G,{className:"h-12 w-12 md:h-14 md:w-14"})}),(0,r.jsx)("div",{className:"mx-2 text-xl font-medium text-white md:ml-4 md:text-2xl",children:t.incorrect})]}),(0,r.jsxs)("div",{className:"mx-6 flex items-center",children:[(0,r.jsx)("div",{className:"mx-2 text-xl font-medium text-white md:mr-4 md:text-2xl",children:t.correct}),(0,r.jsx)("div",{className:"flex h-12 w-12 items-center justify-center rounded-full bg-green-500 text-white md:h-10 md:w-10",children:(0,r.jsx)(c.F,{className:"h-12 w-12 md:h-14 md:w-14"})})]})]}),(0,r.jsx)("div",{className:"mt-4 w-full max-w-md md:mt-8",children:(0,r.jsxs)("div",{className:"h-4 overflow-hidden rounded-full bg-gray-200",children:[(0,r.jsx)("div",{className:"h-full bg-green-500",style:{width:"".concat(n,"%")}}),(0,r.jsx)("div",{className:"h-full bg-red-500",style:{width:"".concat(a,"%")}})]})})]})},u=n(73656);let h={happy:{meta:{syns:[["pleased","content","joyful"]],ants:[["sad","unhappy","meow"]]}},blue:{meta:{syns:[["sad"]],ants:[["happy"]]}},apple:{meta:{syns:[["pear","urmom","urdad",".get(legend)"]],ants:[["ppap","lol","lmao"]]}}},x=[{keyphrase:"happy"},{keyphrase:"blue"},{keyphrase:"apple"}];async function p(e,t){let n=[];if(u.env.NEXT_PUBLIC_SYNOFLEX_API_KEY,e&&!t)for(let e=0;e<x.length;e++){let t=x[e].keyphrase,i=[],o="";try{var r,a,l,s;let e=h[t],c=null==e?void 0:null===(a=e.meta)||void 0===a?void 0:null===(r=a.syns)||void 0===r?void 0:r[0],d=null==e?void 0:null===(s=e.meta)||void 0===s?void 0:null===(l=s.ants)||void 0===l?void 0:l[0];if(c){let e=Math.floor(Math.random()*c.length);o=c[e]}if(d){let e=d.sort(()=>Math.random()-.5).slice(0,3);i.splice(0,e.length,...e)}i.length>=3&&n.push({word:t,options:i,synonym:o})}catch(e){console.error('Failed to fetch antonyms and synonyms for "'.concat(t,'":'),e)}}return n}let f=(e,t)=>{let n=y([...e.filter(e=>e!==t.synonym)]).slice(0,3);return y([...n,t.synonym])};function y(e){for(let t=0;t<e.length;t++){let n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}var g=n(77207),b=n(26718),C=()=>{let[e,t]=(0,a.useState)({currentWord:{word:"",options:[],synonym:""},shuffledOptions:[],isCorrect:null}),[n,s]=(0,a.useState)({correct:0,incorrect:0}),[i,c]=(0,a.useState)(!1),[d,u]=(0,a.useState)({}),[h,x]=(0,a.useState)(!1),{getAllUserVocabQuery:y}=(0,b.O)(),{data:C,isLoading:v}=y,[w,k]=(0,a.useState)([]),j=()=>{let e=w[Math.floor(Math.random()*w.length)];if(!e||!e.options){console.error("Invalid random word:",e);return}let n=f(e.options,e);t({currentWord:e,shuffledOptions:n,isCorrect:null}),x(!1)};(0,a.useEffect)(()=>{(async function(){k(await p(C,v))})()},[C,v]),(0,a.useEffect)(()=>{w.length>0&&j()},[w]);let M=r=>{let a=e.currentWord.word,l=r===e.currentWord.synonym;if(!i&&!h){let r=d[a]||{correct:0,incorrect:0},i={...d,[a]:{correct:r.correct+(l?1:0),incorrect:r.incorrect+(l?0:1)}},o={correct:n.correct+(l?1:0),incorrect:n.incorrect+(l?0:1)};t({...e,isCorrect:l}),u(i),s(o),c(!0),x(!0)}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(g.Z,{}),v&&(0,r.jsxs)("div",{className:"flex h-screen flex-col items-center justify-center space-y-4",children:[(0,r.jsx)("header",{className:"text-2xl font-bold",children:"Get ready to SynoFlex..."}),(0,r.jsx)(l.Z,{size:200})]}),(0,r.jsxs)("div",{className:"flex h-screen flex-col items-center justify-center bg-gradient-to-b from-purple-800 to-blue-800 p-4 md:p-8",children:[(0,r.jsx)("h1",{className:"mb-10 text-center text-5xl font-bold text-white md:mb-4 md:text-5xl",children:"SynoFlex"}),(0,r.jsx)("p",{className:"mb-4 text-center text-lg text-white",children:"Choose the option that has the same meaning as:"}),(0,r.jsx)("p",{className:"mb-8 text-4xl font-bold text-white",children:e.currentWord.word}),5===n.correct&&(0,r.jsx)(o,{closeAction:()=>{j(),x(!1),c(!1),s({correct:0,incorrect:0})}}),!0===e.isCorrect&&(0,r.jsx)("p",{className:"mb-4 text-center text-lg font-bold text-green-500",children:"Correct!"}),!1===e.isCorrect&&(0,r.jsxs)("p",{className:"mb-4 text-center text-lg font-bold text-red-500",children:["Incorrect.",(0,r.jsxs)("p",{children:["The correct answer was ",e.currentWord.synonym,"."]})]}),(0,r.jsx)("div",{className:"grid grid-cols-2 gap-4",children:e.shuffledOptions.map((e,t)=>(0,r.jsx)("button",{onClick:()=>{M(e)},className:"transform rounded-full border border-gray-300 py-3 px-6 text-xl font-bold text-white transition-colors duration-300 hover:-translate-y-1 hover:bg-gray-100 hover:text-gray-900 md:py-3 md:px-6 md:text-2xl",children:e},t))}
1),null!==e.isCorrect&&n.correct<=5&&(0,r.jsx)("button",{onClick:()=>{c(!1),j()},className:"mt-6 transform rounded-lg bg-white py-3 px-6 font-semibold text-gray-900 shadow-md transition duration-300 hover:scale-105",children:"Next Word"}),(0,r.jsx)(m,{score:n})]})]})}},7873:function(e,t,n){"use strict";n.d(t,{w5:function(){return A}});var r=n(52983);let a=({root:e,particles:t,decay:n,lifetime:r,updateParticle:a,onFinish:l})=>{let s=0,i=()=>{t.forEach(e=>a(e,s/r,n)),(s+=1)<r?window.requestAnimationFrame(i):(t.forEach(t=>{if(t.element.parentNode===e)return e.removeChild(t.element)}),l())};window.requestAnimationFrame(i)},{PI:l}=Math,s=e=>l/180*e,i=(e,t)=>{let n=Math.ceil(e);return Math.floor(Math.random()*(Math.floor(t)-n))+n},o=(e,t,n,r)=>{let a=s(e),i=s(t),{random:o}=Math;return{x:0,y:0,z:0,height:0,wobble:10*o(),velocity:.5*n+o()*n,angle2D:-a+(.5*i-o()*i),angle3D:-(l/4)+o()*(l/2),tiltAngle:o()*l,differentiator:r}},c=e=>{let t=document.getElementById(e);return t||console.error(`Element with an ID of ${e} could not be found. Please provide a valid ID.`),t},d=["#A45BF1","#25C6F6","#72F753","#F76C88","#F5F770"],m=[-.6,-.3,0,.3,.6],u=(e,t,n,r,a,l)=>Array.from({length:t}).map((t,s)=>{let o=document.createElement("span");return o.style["background-color"]=l[s%l.length],o.style.width=`${n}px`,o.style.height=`${n}px`,o.style.position=a,o.style.zIndex=`${r}`,e.appendChild(o),{element:o,differentiator:i(0,m.length)}}),h=(e,t,n)=>{let{x:r,y:a,tiltAngle:l,wobble:s,angle2D:i,angle3D:o,velocity:c,differentiator:d}=e.physics;e.physics.x+=Math.cos(i)*c,e.physics.y+=Math.sin(i)*c,e.physics.z+=Math.sin(o)*c,e.physics.wobble+=.05,e.physics.velocity*=n,e.physics.y+=3.5,e.physics.tiltAngle+=.15;let u=r+(m[d]*t*s*s+20*(d%2?Math.sin(s/4):Math.cos(s/4)));e.element.style.transform=`translate3d(${u}px, ${a+5*Math.sin(s)}px, 0) rotate3d(1, 1, 1, ${d%2?l:-1*l}rad)`,e.element.style.scale=`${1-.2*t}`,t>.5&&(e.element.style.opacity=`${2-2*t}`)},x=(e,t,n)=>{let{elementCount:r=50,elementSize:l=8,colors:s=d,angle:i=90,spread:c=45,decay:m=.94,lifetime:x=200,startVelocity:p=35,zIndex:f=0,position:y="fixed",onAnimationComplete:g}=n||{},b=u(e,r,l,f,y,s).map(({element:e,differentiator:t})=>({element:e,physics:o(i,c,p,t)}));a({root:e,particles:b,decay:m,lifetime:x,updateParticle:h,onFinish:()=>{"function"==typeof g&&g(),t()}})},p=["\uD83E\uDD13","\uD83D\uDE0A","\uD83E\uDD73"],f=[-.6,-.3,0,.3,.6],y=(e,t,n,r,a,l)=>Array.from({length:t}).map((t,s)=>{let o=document.createElement("span");return o.innerHTML=l[s%l.length],o.style.fontSize=`${n+i(0,4)}px`,o.style.position=a,o.style.zIndex=`${r}`,e.appendChild(o),{element:o,differentiator:i(0,f.length)}}),g=(e,t,n)=>{let{x:r,y:a,tiltAngle:l,angle2D:s,velocity:i,differentiator:o,wobble:c}=e.physics;e.physics.x+=Math.cos(s)*i,e.physics.y+=Math.sin(s)*i,e.physics.wobble+=0,e.physics.velocity*=n,e.physics.y+=5,e.physics.tiltAngle+=.05;let d=r+(f[o]*t*c*c+20*Math.sin(c/4));e.element.style.transform=`translate3d(${d}px, ${a}px, 0) rotate3d(0, 0, 1, ${o%2?l:-1*l}rad)`,t>.5&&(e.element.style.opacity=`${2-2*t}`)},b=(e,t,n)=>{let{elementCount:r=20,elementSize:l=25,emoji:s=p,angle:i=90,spread:c=45,decay:d=.94,lifetime:m=200,startVelocity:u=35,zIndex:h=0,position:x="fixed",onAnimationComplete:f}=n||{},b=y(e,r,l,h,x,s).map(({element:e,differentiator:t})=>({element:e,physics:o(i,c,u,t)}));a({root:e,particles:b,decay:d,lifetime:m,updateParticle:g,onFinish:()=>{"function"==typeof f&&f(),t()}})};
1var C=`<svg width="100%" viewBox="0 0 976 3040" fill="none" xmlns="http://www.w3.org/2000/svg">
2<path d="M489.693 1269.49C489.773 1378.79 410.493 1466.8 389.107 1571.11C384.147 1595.33 382.893 1620.12 386.187 1644.64C389.44 1668.83 399.28 1691.16 409.04 1713.29C419.253 1736.44 429.28 1760.11 429.453 1785.83C429.64 1812.27 416.307 1836.8 408.933 1861.59C396 1905.15 409.613 1948.88 425.213 1989.73C442.04 2033.83 461.387 2077.87 456.6 2126.17C453.92 2153.15 444.147 2179.13 434.2 2204.13C424.173 2229.35 413.72 2254.28 405.507 2280.17C389.213 2331.51 379.493 2385.83 378.267 2439.72C377.693 2464.89 380.333 2490.25 388.667 2514.11C397.053 2538.09 412.6 2558.75 424.733 2580.84C449.907 2626.64 458.453 2681 451.053 2732.52C443.853 2782.56 414.227 2825.99 408.893 2876.35C404.44 2918.39 416.733 2961.63 440.08 2996.53C450.373 3011.91 463.267 3025.44 477.867 3036.75C480.773 3039 484.88 3034.95 481.947 3032.68C446.147 3004.96 423.24 2964.2 415.907 2919.71C412.107 2896.61 413.627 2872.95 419.427 2850.35C426.053 2824.51 438.067 2800.36 446.667 2775.17C462.44 2729 463.147 2678.51 450.92 2631.45C444.733 2607.64 434.453 2585.4 421.893 2564.32C407.933 2540.91 394.307 2518.68 388.32 2491.71C382.493 2465.45 383.413 2438 385.56 2411.37C387.853 2382.85 392.467 2354.56 398.827 2326.67C405 2299.61 413.253 2273.05 423.107 2247.12C432.533 2222.27 443.533 2198.05 451.867 2172.8C459.707 2149.04 464.387 2124.29 463 2099.23C461.773 2077.19 455.64 2055.65 448.467 2034.89C433.587 1991.8 411.307 1949.77 409.413 1903.37C408.36 1877.76 417.12 1854.67 425.587 1830.97C433.68 1808.33 437.44 1786.41 432.787 1762.6C428.307 1739.63 417.333 1718.23 408.12 1696.91C397.267 1671.77 390.413 1646.41 390.013 1618.89C388.387 1509.52 469.707 1420.85 490.813 1316.72C493.973 1301.19 495.467 1285.33 495.453 1269.49C495.453 1265.77 489.693 1265.77 489.693 1269.49" stroke="#7A7E82" stroke-width="4"/>
3<path d="M555.653 1298.41H423.52C415.173 1298.41 408.413 1305.17 408.413 1313.52C408.413 1321.85 415.173 1328.63 423.52 1328.63H555.653C564 1328.63 570.76 1321.85 570.76 1313.52C570.76 1305.17 564 1298.41 555.653 1298.41Z" fill="currentColor"/>
4<path d="M555.653 1298.41H423.52C415.173 1298.41 408.413 1305.17 408.413 1313.52C408.413 1321.85 415.173 1328.63 423.52 1328.63H555.653C564 1328.63 570.76 1321.85 570.76 1313.52C570.76 1305.17 564 1298.41 555.653 1298.41Z" fill="black" fill-opacity="0.1"/>
5<path d="M975.133 528.947C975.133 820.667 756.973 1255.43 487.853 1255.43C218.733 1255.43 0.559814 820.667 0.559814 528.947C0.559814 237.227 218.733 0.733359 487.853 0.733359C756.973 0.733359 975.133 237.227 975.133 528.947Z" fill="currentColor"/>
6<path d="M549.04 1298.41C531.293 1285.91 519.893 1269.95 512.587 1254.2C504.387 1255.01 496.147 1255.43 487.853 1255.43C481.04 1255.43 474.28 1255.15 467.546 1254.6C460.226 1270.21 448.867 1286.01 431.253 1298.41H549.04Z" fill="currentColor"/>
7<path d="M211.413 569.213C193.787 569.213 175.947 564.4 160.92 555.24C128.133 535.293 108.133 498.56 101.147 460.827C97.0133 438.533 96.9468 415.827 99.1068 393.214C120.627 308.28 168.453 234.48 233.467 183.733C246.947 173.213 261.16 163.693 276.027 155.267C280.347 152.813 284.72 150.467 289.147 148.2C291.707 147.373 294.347 146.92 297.12 146.92C301.347 146.92 305.907 147.974 311.067 150.414C332.773 160.64 334.36 192.213 323.693 213.72C313.04 235.226 294.187 251.8 283.413 273.253C262 315.88 276.48 366.707 287.347 413.147C298.213 459.6 302.427 515.373 267.8 548.187C252.707 562.48 232.227 569.213 211.413 569.213" fill="white" fill-opacity="0.2"/>
8<path d="M785.133 110.4C863.72 204.187 911.613 328.747 911.613 465.414C911.613 757.147 693.44 1191.89 424.32 1191.89C350.973 1191.89 281.413 1159.6 219.013 1106.71C296.067 1196.16 388.48 1255.43 487.853 1255.43C756.973 1255.43 975.133 820.667 975.133 528.947C975.133 358.547 900.693 206.987 785.133 110.4Z" fill="black" fill-opacity="0.1"/>
9</svg>`;let v=["#A45BF1","#25C6F6","#72F753","#F76C88","#F5F770"],w=[-.6,-.3,0,.3,.6],k=(e,t,n)=>{t.parentNode===n&&n.removeChild(t)},j=(e,t,n,r,a,l)=>Array.from({length:t}).map((t,s)=>{let o=document.createElement("span");return o.innerHTML=C,o.style.width=`${n}px`,o.style.position=a,o.style.color=l[s%l.length],o.style.zIndex=`${r}`,o.addEventListener("click",t=>{k(t,o,e)},{once:!0}),e.appendChild(o),{element:o,differentiator:i(0,w.length)}}),M=(e,t,n)=>{let{x:r,y:a,tiltAngle:l,angle2D:s,velocity:i,differentiator:o,wobble:c}=e.physics;e.physics.x+=.5*Math.cos(s)*i,e.physics.y+=.5*Math.sin(s)*i,e.physics.wobble+=0,e.physics.velocity
9*=n,e.physics.tiltAngle+=.1;let d=r+(w[o]*t*c*c+20*Math.sin(c));e.element.style.transform=`translate3d(${d}px, ${a}px, 0) rotate3d(0, 0, 1, ${o%2?Math.sin(l/4)/3:Math.cos(l/4)/3}rad)`,e.element.style.scale=`${1-.2*t}`,t>.5&&(e.element.style.opacity=`${2-2*t}`)},N=(e,t,n)=>{let{angle:r=90,decay:l=.999,spread:s=50,startVelocity:i=3,elementCount:c=10,elementSize:d=20,lifetime:m=600,zIndex:u=0,position:h="fixed",colors:x=v,onAnimationComplete:p}=n||{},f=j(e,c,d,u,h,x).map(({element:e,differentiator:t})=>({element:e,physics:o(r,s,i,t)}));a({root:e,particles:f,decay:l,lifetime:m,updateParticle:M,onFinish:()=>{"function"==typeof p&&p(),t()}})},A=(e,t,n)=>{let[a,l]=(0,r.useState)(!1),s=()=>{l(!1)};return{reward:(0,r.useCallback)(()=>{let r=c(e);if(r)switch(l(!0),t){case"confetti":x(r,s,n);break;case"emoji":b(r,s,n);break;case"balloons":N(r,s,n);break;default:console.error(`${t} is not a valid react-rewards type.`)}},[n,e,t]),isAnimating:a}}}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=39069)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.