PageSourceSearch

https://tutorly.ai/_next/static/chunks/app/(application)/page-7652ca31de533d6b.js

js tutorly.ai collected 2026-10-03 19:21:13 UTC 161,527 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4692],{24654:function(){},37494:function(e,t,a){Promise.resolve().then(a.t.bind(a,73994,23)),Promise.resolve().then(a.bind(a,95872))},95872:function(e,t,a){"use strict";let i,n;a.r(t),a.d(t,{default:function(){return ax}});var s=a(57437),r=a(2265);a(51809);var l=a(43918),o=a(22826),c=a(46800);a(20662);var d=a(80504),u=e=>{let{name:t,icon:a,description:i}=e;return(0,s.jsxs)("div",{className:"feature-item",children:[(0,s.jsx)("div",{className:"item-icon",children:(0,s.jsx)(d.G,{icon:a,style:{width:"16px",height:"16px",color:"#ffffff"}})}),(0,s.jsx)("p",{className:"item-name",children:t}),(0,s.jsx)("p",{className:"item-description",children:i})]})},m=()=>{let e=[{name:"Chat",description:"Chat with AI tutors to get immediate answers to your homework questions. Never feel stuck again, no matter the time.",icon:c.vto},{name:"Ask",description:"Have a question? Just ask, and get detailed, personalized answers. It's like having a tutor available 24/7.",icon:c.Psp},{name:"Paraphrase",description:"Let AI rephrase your text to make it clearer and more engaging. Perfect for polishing essays and reports.",icon:c.IwR},{name:"Essay",description:"Receive step-by-step guidance to write compelling essays. From brainstorming to final edits, we've got you covered.",icon:c.CK2},{name:"AI Tools",description:"Harness the power of AI to streamline your work. Get instant solutions and take your productivity to the next level",icon:c.Z30}];return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("section",{className:"section-features",children:(0,s.jsxs)(l.default,{className:"home-features",gutter:[0,16],children:[(0,s.jsx)(o.default,{xs:24,sm:24,md:24,lg:12,children:(0,s.jsxs)("div",{className:"sticky-toc mb-mr-2",children:[(0,s.jsx)("p",{className:"feature-tag",children:"FEATURES"}),(0,s.jsx)("h2",{className:"feature-heading",children:"Discover What Tutorly Has To Offer"}),(0,s.jsx)("p",{className:"feature-description",children:"From instant answers to detailed explanations, Tutorly is here to help"})]})}),(0,s.jsx)(o.default,{xs:24,sm:24,md:24,lg:12,children:e.map((e,t)=>(0,s.jsx)(u,{name:e.name,icon:e.icon,description:e.description},t))})]})})})};a(56843);var h=a(55202);a(6413);var x=e=>{let{title:t,price:a,duration:i,features:n,button:r,onClick:l}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"pricing-card",children:[(0,s.jsx)("h2",{className:"title",children:t}),(0,s.jsx)("div",{className:"pricing-info",children:(0,s.jsxs)("p",{children:[(0,s.jsx)("span",{className:"price",children:a}),(0,s.jsxs)("div",{className:"dv-frequency",children:[(0,s.jsxs)("span",{className:i.isPromotional?"frequency-promo":"frequency",children:["/",i.frequency]}),i.comments&&(0,s.jsx)("span",{className:"comments",children:i.comments})]})]})}),(0,s.jsx)("ul",{className:"features-info",children:n&&n.map((e,t)=>(0,s.jsxs)("li",{className:"pricing-feature-item",children:[(0,s.jsx)(d.G,{icon:c.LEp,className:"feature-icon mx-2 size-4","aria-hidden":"true"})," ",e]},t))}),(0,s.jsx)(h.ZP,{className:"align-items-center justify-content-center btn-plan flex",type:"primary",onClick:l,children:r.label})]})})},p=a(63747),f=a(692),y=a(15757),g=()=>{let e=(0,y.I0)(),{isSubscribed:t,isSubscriptionPaused:a,isLoggedIn:i}=(0,y.v9)(e=>({isSubscribed:e.userSubscriptionReducer.isSubscribed,isSubscriptionPaused:e.userSubscriptionReducer.isSubscriptionPaused,isLoggedIn:e.userSubscriptionReducer.isLoggedIn})),n=[{title:"STARTER",price:"FREE",duration:{frequency:"forever",comments:"*yes, really",isPromotional:!0},features:["Daily Credits","Routine Roll Call & Offers","Access To 100+ AI Tools","Upgrade To Elite When Ready"],button:{label:"GET STARTED"},onClick:()=>{i||e((0,p.y)())}},{title:"BECOME ELITE",price:"$9.99",duration:{frequency:"month",comments:"",isPromotional:!1},features:["Everything Included In Free Plan","Unlimited Generations","Faster Answers","Detailed & Step By Step Explanations","Cancel anytime","Dedicated Support"],button:{label:"GET STARTED"},onClick:()=>{i?(!t||a)&&e((0,f.Z)()):e((0,p.y)())}}];return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("section",{className:"pricing-plans",id:"pricing-section",children:(0,s.jsx)(l.default,{children:(0,s.jsxs)(o.default,{xs:{span:24},sm:{span:24},md:{span:24},lg:{span:16,offset:4},xl:{span:16,offset:4},children:[(0,s.jsx)("h2",{className:"heading",children:"Simple Pricing as it should be"}),(0,s.jsx)("p",{className:"sub-heading",children:"What would you like to know about Tutorly"}),(0,s.jsx)(l.default,{gutter:[16,16],children:null==n?void 0:n.map((e,t)=>(0,s.jsx)(o.default,{xs:{span:24},sm:{span:24},md:{span:24},lg:{span:12},xl:{span:12},children:(0,s.jsx)(x,{title:e.title,price:e.price,duration:e.duration,features:e.features,button:e.button,onClick:e.onClick})},t))})]})})})})},k=a(55694),v=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(k.default,{children:(0,s.jsx)(g,{})})});a(6521);var b=a(20434),j=a(55294),w=e=>{let{faqs:t}=e,a=null==t?void 0:t.map((e,t)=>({key:t+1,label:e.title,children:e.description,forceRender:!0}));return(0,s.jsx)(s.Fragment,{children:(null==a?void 0:a.length)>0&&(0,s.jsx)("section",{className:"faqs-section",children:(0,s.jsx)(l.default,{children:(0,s.jsxs)(o.default,{span:24,children:[(0,s.jsx)("h2",{className:"heading",children:"Frequently Asked Questions"}),(0,s.jsx)("p",{className:"sub-heading",children:"What would you like to know about Tutorly"}),(0,s.jsx)(b.default,{defaultActiveKey:["1"],expandIconPosition:"end",items:a,expandIcon:e=>{let{isActive:t}=e;return(0,s.jsx)(d.G,{style:{color:"#EE6C4D",width:"25px",height:"25px"},icon:t?j.M3_:j.DY})}})]})})})})},E=a(38020);a(69675),a(3257);var S=a(82783),N=a(16691),A=a.n(N),T=e=>{let{pictureUrl:t,heading:a,rating:i,comment:n}=e;return(0,s.jsxs)("div",{className:"div-testimonial",children:[(0,s.jsxs)("div",{className:"user-info",children:[(0,s.jsx)("div",{className:"div-picture",children:(0,s.jsx)(A(),{src:t,alt:a,width:41,height:41,className:"picture"})}),(0,s.jsxs)("div",{className:"rating-info",children:[(0,s.jsx)("p",{className:"heading",children:a}),(0,s.jsx)(S.Z,{value:i,disabled:!0})]})]}),(0,s.jsx)("div",{className:"comments",children:(0,s.jsx)("p",{children:n})})]})},I=e=>{let{testimonials:t}=e,a=(e,t)=>(0,s.jsx)("div",{className:"grid-item",children:(0,s.jsx)(T,{pictureUrl:e.image.url,heading:e.name,rating:e.rating,comment:e.comment})},e.id||t);return(0,s.jsx)(s.Fragment,{children:(null==t?void 0:t.length)>0&&(0,s.jsx)("section",{className:"section-testimonial",id:"testimonial-section",children:(0,s.jsx)(l.default,{children:(0,s.jsxs)(o.default,{span:"24",children:[(0,s.jsx)("p",{className:"label",children:"REAL STUDENTS, REAL RESULTS"}),(0,s.jsx)("h2",{className:"heading",children:"Trusted by Thousands"}),(0,s.jsx)("p",{className:"sub-heading",children:"See why students around the world rely of Tutorly AI to boost their grades"}),(0,s.jsx)("div",{className:"mobile-content",children:(0,s.jsx)(E.Z,{dots:!0,infinite:!0,speed:500,slidesToShow:1,slidesToScroll:1,autoplay:!1,children:t.map(a)})}),(0,s.jsx)("div",{className:"desktop-content",children:(0,s.jsx)("div",{className:"grid-container",children:t.map(a)})})]})})})})},C=a(77784);a(9327),a(22823);var D=e=>{let{title:t,path:a}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"section-btn",children:(0,s.jsx)("a",{href:a,className:"btn-link-primary",children:t})})})},G=e=>{let{blogs:t}=e;return(0,s.jsx)(s.Fragment,{children:(null==t?void 0:t.length)>0&&(0,s.jsxs)("section",{className:"blogs-section",children:[(0,s.jsx)(l.default,{children:(0,s.jsxs)(o.default,{xs:{span:24,offset:0},sm:{span:24,offset:0},md:{span:24,offset:0},lg:{span:16,offset:4},xl:{span:16,offset:4},children:[(0,s.jsx)("h2",{className:"heading",children:"Our Latest Blogs"}),(0,s.jsxs)("p",{className:"sub-heading",children:["Explore, Learn, & Grow With Tutorly.ai"," "]})]})}),(0,s.jsx)(l.default,{gutter:[16,16],children:null==t?void 0:t.map((e,t)=>{var a;return(0,s.jsx)(o.default,{xs:24,sm:24,md:12,lg:8,xl:6,children:(0,s.jsx)(C.Z,{image:null==e?void 0:e.bannerImage,title:null==e?void 0:e.title,publishedAt:null==e?void 0:e.publishedDate,category:null==e?void 0:null===(a=e.Category)||void 0===a?void 0:a.category,slug:null==e?void 0:e.slug})},t)})}),(0,s.jsx)(l.default,{className:"btn-view-articals",children:(0,s.jsx)(o.default,{children:(0,s.jsx)(D,{title:"View Articles",path:"/resources/blogs"})})})]})})};a(58717);var F=a(77780),P=a(50894),B=a(71787),L=a(67654),R=a(65916),Z=a(26523),V=a(53895),O=a(98720);a(91961);var M=a(1070),q=a(99766);a(24521);var _=a(77581),J=a(72855),H=a(79398);let{Title:W}=V.default;var z=e=>{let{trackVote:t}=(0,H.Z)(),{className:a,lastQueryId:i}=e,[n,l]=r.useState(0),[o,c]=r.useState(!0);r.useEffect(()=>{c(!0)},[n]);let u=e=>{e&&(c(!1),setTimeout(()=>{e()},400))},m=async(e,a)=>{var n,s;let r=await (0,J.k)({path:"v1/query/feedback",method:"patch",data:JSON.stringify({id:i,resultFeedbackRating:e?"upvote":"downvote",resultFeedbackDescription:a})});(null==r?void 0:null===(n=r.data)||void 0===n?void 0:n.error)?console.error("Feedback not given",null==r?void 0:null===(s=r.data)||void 0===s?void 0:s.message):(console.log("Feedback given"),t(e?"upvote":"downvote",a))},x=[{title:"How did I do?",thumbsUp:()=>{u(async()=>{await m(!0),l(1)})},thumbsDown:()=>{u(async()=>
1{l(2)})}},{title:"Thanks"},{title:"Oh No! What went wrong?",thumbsDown:()=>{u(async()=>{await m(!1),l(1)})},reasons:[{title:"Wrong Answer",onClick:()=>{u(async()=>{await m(!1,"Wrong Answer"),l(1)})}},{title:"AI Didn't Understand the Question",onClick:()=>{u(async()=>{await m(!1,"AI Didn't Understand the Question"),l(1)})}},{title:"Poorly Formatted Answer",onClick:()=>{u(async()=>{await m(!1,"Poorly Formatted Answer"),l(1)})}},{title:"Other",onClick:()=>{u(async()=>{await m(!1,"Other"),l(1)})}}],cancelable:!0}];return(0,s.jsxs)("div",{className:"".concat(a),style:{backgroundColor:"#28303F"},children:[(0,s.jsx)(q.Z,{orientation:"center",style:{marginTop:"10px",marginBottom:"10px"},children:"Feedback"}),(0,s.jsxs)(_.f,{animationIn:"fadeInUp",animationOut:"fadeOutDown",animateOnMount:!1,isVisible:o,animationInDuration:400,animationOutDuration:400,children:[(0,s.jsxs)("div",{className:"justify-content-between align-items-center flex",children:[(0,s.jsx)(W,{level:5,children:x[n].title}),(0,s.jsxs)("div",{className:"flex",style:{gap:"12px"},children:[x[n].thumbsUp&&(0,s.jsx)("div",{className:"thumb-container",children:(0,s.jsx)(d.G,{className:"thumbs",icon:j.u8Q,onClick:x[n].thumbsUp})}),x[n].thumbsDown&&(0,s.jsx)("div",{className:"thumb-container",children:(0,s.jsx)(d.G,{className:"thumbs",icon:j.bam,onClick:x[n].thumbsDown})})]})]}),x[n].reasons&&(0,s.jsx)("div",{className:"mt3",children:(0,s.jsx)(M.ZP.Group,{className:"feedback-reasons-container",onChange:()=>{},defaultValue:"multiple-choice",children:x[n].reasons.map((e,t)=>(0,s.jsx)(M.ZP.Button,{value:e.title,onClick:e.onClick,children:e.title},"reasonsRadio".concat(t)))})}),x[n].cancelable&&(0,s.jsx)(h.ZP,{className:"mt3 w-full",onClick:()=>{l(0)},children:"Cancel"})]})]})},U=a(47424),Y=a.n(U),K=JSON.parse('{"nm":"8ai reading books","mn":"","layers":[{"ty":4,"nm":"glass","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[444.608,124.829,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[552.41,544.063,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[52.564,-0.205],[12.166,70.762],[0,0]],"o":[[-47.168,0.224],[0,0],[-12.56,58.013]],"v":[[-2.368,47.804],[-119.042,-48.029],[119.042,-40.972]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.1647,0.3098,0.4941],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[487.974,142.358],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":2,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[52.808,5.733],[4.686,49.542],[0,0]],"o":[[-46.631,-5.043],[0,0],[-19.128,63.629]],"v":[[-26.772,42.148],[-107.243,-44.371],[107.243,-47.881]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.1647,0.3098,0.4941],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[132.33,142.603],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 3","ix":3,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[-7.225,-39.11],[0,0],[17.083,32.626],[0,0]],"o":[[0,0],[16.947,31.809],[0,0],[-3.928,-42.01],[0,0],[0,0]],"v":[[-127.66,-87.885],[93.591,-49.471],[128.415,57.984],[91.775,87.885
1],[61.837,-25.194],[-128.415,-59.123]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.1647,0.3098,0.4941],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[760.248,160.733],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 4","ix":4,"cix":2,"np":5,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[52.564,-0.205],[12.166,70.762],[0,0]],"o":[[-47.168,0.224],[0,0],[-12.56,58.013]],"v":[[168.544,83.657],[51.87,-12.176],[289.953,-5.119]]},"ix":2}},{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 2","ix":2,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[52.808,5.733],[4.686,49.542],[0,0]],"o":[[-46.632,-5.043],[0,0],[-19.128,63.628]],"v":[[-211.504,78.246],[-291.975,-8.273],[-77.489,-11.783]]},"ix":2}},{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 3","ix":3,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[1.287,-0.012],[0,0],[6.645,13.252],[6.988,6.592],[11.535,0.717],[7.25,-6.584],[3.84,-7.922],[1.634,-13.398],[0.003,0],[-0.239,-2.584],[-18.685,-20.802],[-24.397,-4.186],[-2.57,-0.277],[-6.207,0.182],[-21.768,12.702],[-12.948,23.737],[-3.093,11.734],[-8.204,15.707],[-8.113,-0.732],[-4.598,-3.848],[-3.593,-5.903],[-14.85,-29.891],[-22.739,-12.39],[-23.304,-0.772],[-1.983,0.01],[-1.29,0.038],[-4.152,0.44],[-23.013,17.991],[-8.282,13.021],[-2.035,15.721]],"o":[[-0.447,0.006],[-2.24,-13.786],[-3.921,-7.7],[-6.852,-6.508],[-11.517,-0.889],[-7.492,6.673],[-6.259,13.073],[0,0],[-0.47,-0.008],[2.534,27.409],[16.627,18.523],[2.548,0.438],[6.057,0.654],[25.222,-0.736],[23.329,-13.613],[5.812,-10.655],[4.465,-16.944],[6.174,-12.05],[4.203,0.004],[4.592,3.87],[17.529,28.807],[11.529,23.206],[20.518,11.181],[1.983,0.065],[1.286,-0.007],[4.175,-0.12],[28.96,-3.072],[12.185,-9.524],[8.398,-13.206],[0.312,-2.418]],"v":[[315.525,-33.657],[41.52,-29.665],[28.886,-70.504],[13.038,-92.343],[-14.893,-105.366],[-44.732,-94.403],[-61.148,-71.964],[-72.171,-31.995],[-316.342,-39.671],[-315.923,-12.08],[-285.709,65.27],[-221.614,99.63],[-213.934,100.703],[-195.518,101.411],[-123.586,80.539],[-67.761,23.411],[-54.39,-10.348],[-40.041,-61.291],[-16.193,-81.402],[-2.613,-75.139],[9.673,-59.941],[42.829,33.748],[95.555,88.373],[162.698,106.16],[168.647,106.245],[172.503,106.18],[185,105.338],[265.416,73.578],[296.055,39.161],[314.771,-4.895]]},"ix":2}},{"ty":"mm","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Filter - Merge","nm":"Merge Paths 1","mm":1},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.1647,0.3098,0.4941],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[317.062,106.505],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":0,"parent":13},{"ty":4,"nm":"rhand","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[80.473,111.217,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[-253.911,98.228,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-10.154,-1.713],[2.1,22.305],[2.558,11.974],[2.512,10.533],[7.464,7.846],[10.571,-2.35],[3.786,-10.784],[-7.434,-25.332],[-6.095,-8.299]],"o":[[25.983,4.382],[-1.146,-12.191],[-2.261,-10.59],[-2.512,-10.534],[-7.465,-7.844],[-11.157,2.479],[-9.014,25.677],[2.9,9.88],[6.095,8.299]],"v":[[5.015,74.377],[43.618,30.553],[35.809,-5.306],[29.982,-37.259],[15.865,-66.097],[-13.44,-76.41],[-36.705,-53.254],[-32.709,29.665],[-20.06,57.671]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":13.411,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[79.246,112.287],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":1,"parent":2},{"ty":4,"nm":"lhand","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[356.57,88.859,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[400.853,202.924,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"o":{"x":0.333,"y":0}
1,"i":{"x":0.667,"y":1},"s":[0],"t":0},{"o":{"x":0.333,"y":0},"i":{"x":0.833,"y":0.833},"s":[7],"t":8},{"o":{"x":0.167,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":16},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":47},{"o":{"x":0.333,"y":0},"i":{"x":0.833,"y":0.833},"s":[7],"t":55},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":63}],"ix":10}},"ef":[{"ty":5,"mn":"Pseudo/MDS Elastic Controller","nm":"Elastic: Rotation","ix":1,"en":1,"ef":[{"ty":0,"mn":"Pseudo/MDS Elastic Controller-0001","nm":"Amplitude","ix":1,"v":{"a":0,"k":20,"ix":1}},{"ty":0,"mn":"Pseudo/MDS Elastic Controller-0002","nm":"Frequency","ix":2,"v":{"a":0,"k":40,"ix":2}},{"ty":0,"mn":"Pseudo/MDS Elastic Controller-0003","nm":"Decay","ix":3,"v":{"a":0,"k":60,"ix":3}}]}],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[22.389,-27.114],[2.722,-2.824],[3.697,-2.773],[12.016,2.003],[4.467,37.178],[-49.194,-0.257],[-11.605,-8.165],[-10.835,-8.987],[-3.955,-1.694],[0,-4.314]],"o":[[-2.464,3.029],[-3.235,3.338],[-12.529,-0.822],[-37.23,-6.161],[-5.444,-45.394],[14.224,0.052],[11.605,8.165],[3.646,2.978],[0.771,4.416],[0.155,35.175]],"v":[[46.652,71.07],[38.847,79.851],[28.474,89.146],[-8.447,84.832],[-76.333,10.271],[0.077,-88.888],[40.028,-76.05],[69.195,-46.523],[80.544,-39.591],[81.622,-26.342]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":13.411,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[115.304,125.36],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":2,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[5.432,-10.395],[24.073,-19.38],[66.789,4.694],[-3.219,3.353],[-2.481,3.018],[0.134,35.138],[0.738,4.426],[-11.467,0.268],[-29.371,20.118],[-16.765,1.073],[-4.56,-10.864],[-0.335,-1.944]],"o":[[-14.283,27.56],[-52.036,42.044],[3.689,-2.749],[2.681,-2.817],[22.397,-27.09],[0,-4.359],[9.857,4.224],[35.54,-1.006],[13.143,-9.051],[11.6,-0.805],[0.804,1.877],[1.677,11.601]],"v":[[120.167,-33.696],[60.284,38.056],[-130.157,88.147],[-119.762,78.826],[-111.984,70.04],[-76.98,-27.325],[-78.053,-40.603],[-46.001,-36.109],[54.116,-68.634],[98.507,-92.035],[126.805,-73.058],[128.481,-67.291]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":13.411,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[273.928,126.368],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":2,"parent":9},{"ty":4,"nm":"book","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[260.986,231.537,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[-91.434,3.35,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10}},"ef":[{"ty":5,"mn":"Pseudo/MDS Elastic Controller","nm":"Elastic: Position","ix":1,"en":1,"ef":[{"ty":0,"mn":"Pseudo/MDS Elastic Controller-0001","nm":"Amplitude","ix":1,"v":{"a":0,"k":20,"ix":1}},{"ty":0,"mn":"Pseudo/MDS Elastic Controller-0002","nm":"Frequency","ix":2,"v":{"a":0,"k":40,"ix":2}},{"ty":0,"mn":"Pseudo/MDS Elastic Controller-0003","nm":"Decay","ix":3,"v":{"a":0,"k":60,"ix":3}}]}],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-118.569,29.476],[0,0],[0,0],[0,0],[15.97,9.449],[0,0],[0,0],[0,0],[-22.286,-45.909]],"o":[[0,0],[0,0],[0,0],[-20.181,2.825],[0,0],[0,0],[0,0],[48.886,35.176],[63.573,-39.335]],"v":[[210.667,-11.837],[216.11,13.376],[-46.242,35.303],[-51.993,49.938],[-104.217,40.233],[-96.874,31.709],[-216.11,-43.983],[-201.322,-52.763],[-72.431,17.639]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9333,0.4235,0.302],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[262.63,77.511],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":2,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[37.05,-104.139],[80.595,189.691],[0.694,147.223],[-80.595,-189.691],[45.728,-112.868]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":13.411,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[114.122,223.218],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 3","ix":3,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-24.75,4.16],[0,0],[18.127,9.551],[0,0],[0,0]],"o":[[0,0],[-23.878,-0.873],[0,0],[0,0],[17.357,10.835]],"v":[[11.066,-147.917],[53.174,159.624],[-8.498,143.089],[-9.628,134.205],[
1-53.174,-159.624]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":13.411,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[204.346,278.703],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 4","ix":4,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[23.108,150.92],[19,159.804],[-23.108,-147.737],[-18.178,-159.804]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[238.521,278.524],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 5","ix":5,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[134.052,-165.581],[113.1,149.046],[-92.765,165.581],[-134.052,-145.143]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":13.411,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[354.393,263.863],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 6","ix":6,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[17.357,10.835],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-20.181,2.824],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[-24.75,4.161],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[15.97,9.449],[0,0],[0,0]],"v":[[217.754,9.114],[225.866,8.447],[227.458,16.509],[-40.644,36.947],[-45.574,49.013],[-109.814,37.306],[-101.136,28.576],[-227.458,-48.245],[-222.22,-53.174],[-214.466,-48.245],[-95.23,27.447],[-102.574,35.971],[-50.35,45.677],[-44.598,31.041]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9333,0.4235,0.302],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[260.986,81.773],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":3,"parent":2},{"ty":4,"nm":"Shape Layer 1","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[-370,413,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[191.753,428.849,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0.01,"ix":10}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Shape 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-498,18],[-370,80],[-352,355],[-446,283]]}],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-328,-24],[-370,80],[-328,413],[-276,299]]}],"t":13.454},{"h":1,"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-116,82],[-354,86],[-328,413],[-124,361]]}],"t":20},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-498,18],[-370,80],[-352,355],[-446,283]]}],"t":54},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-328,-24],[-370,80],[-328,413],[-276,299]]}],"t":60.363},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-116,82],[-354,86],[-328,413],[-124,361]]}],"t":68}],"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.2392,0.3529,0.502],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0,0],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":4,"parent":3},{"ty":4,"nm":"lip","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[39.185,17.913,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[453.854,617.385,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-18.646,23.632],[26.327,-0.99],[0.832,-2.843]],"o":[[-21.739,14.884],[-0.833,2.844],[29.819,4.121]],"v":[[38.935,-19.386],[-35.13,5.076],[-38.935,15.264]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.2667,0.502,0.8118],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[39.185,19.636],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":5,"parent":13},{"ty":4,"nm":"e2","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[43.316,70.268,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[522.41,496.093,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[18.213,-0.05],[7.309,-8.018],[-1.188,-23.164],[-6.147,-20.54],[-22.739,-0.899],[-0.103,3.677],[4.763,18.845]],"o":[[-10.85,0.03],[-16.412,18],[1.098,21.413],[22.76,-0.206],[0.292,-14.331],[0.525,-18.577],[-4.464,-17.659]],"v":[[1.789,-69.944],[-26.616,-56.049],[-42.935,5.725],[-31.942,68.945],[36.316,69.993],[37.49,18.95],[39.359,-35.903]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9333,0.4235,0.302],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[44.373,70.244],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":6,"parent":13},{"ty":4,"nm":"e1","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[33.088,65.52,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[-245.116,68.524,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[1.671,4.1],[9.149,1.316],[5.51,-7.11],[1.765,-8.821],[
1-8.834,-26.001],[-3.468,-2.261],[-15.342,1.839],[0.239,2.576],[-0.317,29.512]],"o":[[-3.489,-8.56],[-8.903,-1.281],[-5.509,7.111],[-5.105,26.816],[1.772,5.217],[15.269,-2.384],[-0.335,-2.592],[-1.185,-24.801],[-0.595,-4.387]],"v":[[26.372,-45.941],[6.497,-63.449],[-16.857,-52.607],[-26.745,-27.762],[-22.138,53.825],[-14.072,64.73],[31.849,58.307],[30.988,50.555],[29.591,-33.147]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9333,0.4235,0.302],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[32.099,64.98],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":7,"parent":6},{"ty":4,"nm":"lleg","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[237.296,74.083,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[1078.931,1451.39,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":0},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[-27],"t":12.8},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":24},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[-27],"t":36.8},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[0],"t":48},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[-27],"t":60.8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":72}],"ix":10}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[2.615,-8.583],[8.717,-11.869],[9.254,-15.155],[12.338,-34.534],[6.572,0.402],[8.45,1.61],[1.14,36.01],[13.076,5.834],[7.913,-3.018],[11.064,-13.948],[-15.96,16.027],[-49.823,-16.496],[-4.895,-7.712],[-0.402,-0.67]],"o":[[-4.56,14.686],[-10.528,14.35],[-19.044,31.382],[-6.638,0.269],[-8.583,-0.537],[12.406,-34.199],[-0.469,-14.283],[-7.711,-3.42],[-16.495,6.169],[10.193,-20.185],[33.863,-34.199],[8.718,2.884],[0.403,0.671],[4.157,7.913]],"v":[[102.631,-59.312],[78.289,-24.509],[48.918,20.285],[0.905,119.126],[-18.876,118.859],[-44.426,115.64],[-22.832,10.361],[-40.267,-26.32],[-64.944,-25.38],[-105.246,6.74],[-65.614,-48.113],[77.954,-102.899],[99.949,-87.341],[101.088,-85.397]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":13.411,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[168.257,152.922],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":2,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-0.462,-14.275],[12.376,-34.149],[24.648,17.048],[-3.441,7.446],[-1.13,2.208],[-16.484,6.162],[-7.703,-3.439]],"o":[[1.13,36.049],[-29.372,-5.546],[-8.114,-5.545],[1.028,-2.259],[11.04,-13.968],[7.907,-2.979],[13.043,5.804]],"v":[[55.382,-32.583],[33.815,72.687],[-48.398,38.23],[-30.323,-29.451],[-27.036,-36.177],[13.275,-68.323],[37.974,-69.248]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":13.411,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[90.039,195.855],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":8},{"ty":4,"nm":"body","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[258.241,314.892,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.333,"y":0}
1,"i":{"x":0.667,"y":1},"s":[1004.607,1413.107,0],"t":0},{"o":{"x":0.333,"y":0},"i":{"x":0.833,"y":0.833},"s":[1004.607,1435.107,0],"t":8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.667,"y":0.667},"s":[1004.607,1413.107,0],"t":16},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[1004.607,1413.107,0],"t":47},{"o":{"x":0.333,"y":0},"i":{"x":0.833,"y":0.833},"s":[1004.607,1435.107,0],"t":55},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[1004.607,1413.107,0],"t":63}],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10}},"ef":[{"ty":5,"mn":"Pseudo/MDS Elastic Controller","nm":"Elastic: Position","ix":1,"en":1,"ef":[{"ty":0,"mn":"Pseudo/MDS Elastic Controller-0001","nm":"Amplitude","ix":1,"v":{"a":0,"k":20,"ix":1}},{"ty":0,"mn":"Pseudo/MDS Elastic Controller-0002","nm":"Frequency","ix":2,"v":{"a":0,"k":40,"ix":2}},{"ty":0,"mn":"Pseudo/MDS Elastic Controller-0003","nm":"Decay","ix":3,"v":{"a":0,"k":60,"ix":3}}]}],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-27.038,5.447],[0.352,9.164],[8.597,-0.974]],"o":[[9.05,-1.887],[-0.31,-7.994],[-19.986,2.226]],"v":[[3.629,11.9],[23.057,-4.218],[4.146,-16.373]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9333,0.4235,0.302],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[194.259,165.253],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":2,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-5.961,-4.491],[1.018,-0.008],[14.64,-18.348],[1.56,-3.445],[-13.172,-10.311],[-9.94,2.194],[11.157,2.256],[-9.082,18.89],[-3.006,3.74],[-26.654,0.848]],"o":[[-0.963,-0.036],[-26.777,1.116],[-3.009,3.807],[-6.537,14.431],[9.798,1.298],[-11.579,2.578],[-28.072,-5.863],[1.612,-3.393],[14.885,-18.011],[9.928,-0.274]],"v":[[54.449,-43.498],[51.502,-43.517],[-17.193,-3.97],[-24.124,7.009],[-15.745,49.098],[14.303,47.647],[-20.603,48.332],[-45.367,-1.045],[-38.28,-11.84],[30.747,-50.314]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[163.871,175.42],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 3","ix":3,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0.014,-0.669],[2.204,-5.998],[0.939,-1.706],[0.763,-1.182],[10.903,-5.495],[3.34,-1.216],[4.094,-0.908],[9.797,1.298],[-6.537,14.43],[-3.009,3.805],[-26.777,1.116],[-0.963,-0.036],[-0.627,-0.515],[-1.961,-3.597],[-0.617,-1.423],[-0.453,-1.665],[-0.146,-0.81],[-0.048,-0.285],[-0.189,-1.381],[-0.043,-0.572],[0.014,-0.668]],"o":[[0.138,6.588],[-0.657,1.856],[-0.593,1.33],[-5.736,8.79],[-3.106,1.584],[-3.925,1.426],[-9.94,2.194],[-13.172,-10.31],[1.56,-3.445],[14.639,-18.349],[1.019,-0.009],[0.625,0.516],[3.077,2.719],[0.722,1.373],[0.612,1.614],[0.253,0.808],[0.102,0.333],[0.297,1.382],[0.097,0.573],[0.041,0.668],[0.042,0.667]],"v":[[49.931,-13.545],[46.794,5.639],[44.429,10.961],[42.312,14.702],[16.624,36.538],[6.955,40.717],[-5.105,44.216],[-35.152,45.667],[-43.531,3.577],[-36.6,-7.401],[32.094,-46.947],[35.042,-46.929],[36.921,-45.384],[44.452,-35.818],[46.458,-31.601],[48.083,-26.705],[48.682,-24.277],[48.88,-23.373],[49.557,-19.226],[49.74,-17.508],[49.862,-15.503]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.2667,0.502,0.8118],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[183.278,178.851],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 4","ix":4,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-0.657,1.857],[0.137,6.589],[0.04,0.668],[0.04,0.667],[0.097,0.572],[0.298,1.382],[0.102,0.333],[0.253,0.808],[0.611,1.615],[0.721,1.372],[3.078,2.718],[0.625,0.515],[9.928,-0.275],[14.886,-18.012],[1.612,-3.393],[-28.071,-5.864],[-11.577,2.578],[-3.925,1.425],[-3.106,1.585],[-5.737,8.791],[-0.593,1.33]],"o":[[2.204,-5.998],[0.014,-0.669],[0.014,-0.668],[-0.043,-0.573],[-0.135,-1.383],[-0.047,-0.284],[-0.146,-0.811],[-0.453,-1.666],[-0.616,-1.471],[-1.962,-3.598],[-0.626,-0.563],[-5.962,-4.49],[-26.654,0.849],[-3.006,3.741],[-9.08,18.89],[11.158,2.254],[4.094,-0.907],[3.34,-1.217],[10.902,-5.495],[0.761,-1.181],[0.939,-1.706]],"v":[[58.688,9.071],[61.824,-10.112],[61.756,-12.07],[61.634,-14.075],[61.45,-15.792],[60.774,-19.94],[60.577,-20.844],[59.978,-23.273],[58.353,-28.167],[56.345,-32.385],[48.814,-41.951],[46.936,-43.495],[23.233,-50.313],[-45.795,-11.839],[-52.882,-1.042],[-28.118,48.333],[6.788,47.648],[18.848,44.149],[28.517,39.971],[54.205,18.135],[56.322,14.393]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.4824,0.6431,0.8588],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[171.385,175.418],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 5","ix":5,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-25.247,-40.253],[7.533,-37.163],[53.879,-28.6],[48.399,14.105],[12.429,40.546],[-31.716,38.086],[-40.66,19.79],[-22.81,-0.922]],"o":[[20.104,32.319],[-10.465,52.936],[-40.211,21.632],[-53.937,-22.432],[-14.089,-45.735],[27.151,-32.287
1],[23.077,-3.426],[46.599,1.84]],"v":[[160.923,-104.817],[174.363,5.729],[82.802,139.137],[-62.504,151.755],[-167.806,49.269],[-133.939,-80.678],[-28.204,-160.188],[40.509,-164.938]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":13.411,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[215.423,232.521],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 6","ix":6,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-57.171,-18.586],[17.58,-85.689],[41.931,-27.09],[78.729,21.999],[8.825,3.692],[-40.212,21.632],[-10.465,52.937],[20.103,32.319],[46.597,1.84],[23.079,-3.426]],"o":[[75.07,24.218],[-9.859,44.758],[-57.073,37.728],[-9.502,-2.595],[48.399,14.105],[53.879,-28.6],[7.533,-37.164],[-25.247,-40.252],[-22.811,-0.921],[54.25,-25.997]],"v":[[32.44,-172.527],[154.278,20.154],[71.8,131.166],[-144.294,169.114],[-171.858,159.636],[-26.551,147.018],[65.009,13.61],[51.569,-96.936],[-68.845,-157.057],[-137.559,-152.307]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":13.411,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[324.777,224.64],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":9},{"ty":4,"nm":"rleg","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[141.152,63.323,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[842.035,1448.543,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[-7],"t":0},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[21],"t":12.8},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[-7],"t":24},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[21],"t":36.8},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[-7],"t":48},{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[21],"t":60.8},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[-7],"t":72}],"ix":10}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[1.14,-14.618],[-0.737,-14.685],[0,-0.402],[6.236,-1.744],[4.829,-1.072],[9.187,23.47],[6.504,7.444],[9.924,0.402],[7.175,-8.182],[1.409,-2.079],[-1.207,5.029],[-19.781,18.038],[-18.642,4.962],[-8.248,-5.432],[-0.738,-8.382],[2.682,-13.009]],"o":[[-1.14,14.753],[0.134,3.755],[-6.036,2.147],[-4.761,1.341],[-2.212,-25.146],[-3.621,-9.254],[-6.572,-7.443],[-10.863,-0.402],[-1.609,1.877],[0.805,-5.163],[6.773,-27.628],[12.942,-11.869],[9.589,-2.548],[7.041,4.56],[1.207,13.344],[-2.95,14.417]],"v":[[52.741,6.773],[52.137,50.963],[57.033,94.684],[38.658,100.452],[24.307,104.139],[7.074,30.846],[-7.276,4.962],[-32.892,-8.516],[-61.324,5.231],[-65.816,11.199],[-62.732,-4.157],[-22.967,-74.701],[24.442,-100.518],[53.142,-98.707],[64.609,-77.249],[58.909,-36.814]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":13.411,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[104.888,137.666],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":2,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-3.646,-9.243],[-2.208,-25.111],[25.881,-0.668],[-5.546,34.406],[-1.644,1.899],[-10.887,-0.41],[-6.573,-7.446]],"o":[[9.141,23.468],[-25.984,6.059],[-12.787,-32.403],[1.386,-2.105],[7.137,-8.165],[9.91,0.36],[6.522,7.445]],"v":[[30.631,-21.671],[47.833,51.607],[-31.247,61.416],[-42.287,-41.287],[-37.768,
1-47.294],[-9.371,-61.006],[16.253,-47.551]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":13.411,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[81.361,190.175],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":10},{"ty":4,"nm":"book 2","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[291.575,66.771,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[1031.882,1531.872,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[1.409,-0.134],[-8.717,12.674],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-15.423,-12.003],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[274.396,-52.505],[271.58,-33.863],[269.635,-20.921],[258.772,52.438],[20.384,53.981],[6.236,54.048],[-216.728,55.523],[-231.614,44.996],[-251.262,51.098],[-265.679,-55.523],[-241.203,-41.575],[-228.53,-53.377],[6.236,-52.975],[23.604,-52.907]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9333,0.4235,0.302],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[285.309,69.52],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":2,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-15.423,-12.003],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-14.149,42.515],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-8.718,12.674],[1.408,-0.134],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[0,0],[-20.318,-45.867],[0,0],[0,0],[0,0]],"v":[[287.842,-66.521],[283.281,-49.957],[271.613,-49.755],[20.822,-50.159],[3.453,-50.225],[-231.312,-50.628],[-243.986,-38.827],[-268.461,-52.773],[-254.044,53.846],[-234.397,47.746],[-219.51,58.272],[3.453,56.797],[17.603,56.73],[255.989,55.188],[271.28,55.188],[271.28,66.521],[-224.338,66.521],[-237.414,58.674],[-259.677,66.521],[-273.692,-66.521],[-243.986,-48.749],[-237.414,-66.521]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[288.091,66.771],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":11},{"ty":4,"nm":"f","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[334.246,258.957,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[475.427,466.127,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[73.033,-0.006],[0,0],[0.006,73.033],[0,0],[-182.352,0.015],[0,0],[-0.016,-182.351],[0,0]],"o":[[0,0],[-73.033,0.006],[0,0],[-0.016,-182.352],[0,0],[182.352,-0.015],[0,0],[0.005,73.033]],"v":[[201.758,258.662],[-201.72,258.696],[-333.97,126.469],[-333.974,71.519],[-3.824,-258.686],[3.776,-258.687],[333.98,71.463],[333.985,126.413]]},"ix":2}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[334.24,258.952],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":12,"parent":13},{"ty":4,"nm":"mf","mn":"","sr":1,"st":0,"op":148,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[495.919,725.128,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[287.209,-55.349,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[133.128,-0.012],[0,0],[0.011,133.128],[0,0],[-242.446,0.02],[0,0],[-0.02,-242.448],[0,0]],"o":[[0,0],[-133.128,0.011],[0,0],[-0.02,-242.447],[0,0],[242.447,-0.02],[0,0],[0.011,133.128]],"v":[[217.347,379.549],[-217.291,379.585],[-458.361,138.555],[-458.367,59.452],[-19.415,-379.574],[19.344,-379.576],[458.369,59.377],[458.376,138.479]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":13.411,"ix":5},"d":[],"c":{"a":0,"k":[0.0235,0.1059,0.2157],"ix":3}},{"ty":"fl","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[491.915,413.124],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":13,"parent":9}],"ddd":0,"h":2000,"w":2000,"meta":{"a":"","k":"","d":"","g":"LottieFiles AE 0.1.20","tc":"#ffffff"},"v":"5.5.7","fr":24,"op":73,"ip":1,"assets":[]}'),Q=a(82961);a(28859);let{Text}=V.default;var $=e=>{let{placeholderAnimationIndex:t}=e,{animationContent:a,animationContentIndex:n,animationMainContentIndex:l,onAnimationComplete:o}=r.useContext(Q.$),[c,d]=r.useState(!1),[u,m]=(0,r.useState)(null);function h(){d(!1),o&&setTimeout(()=>{m(null)},600)}if((0,r.useEffect)(()=>{n===t&&setTimeout(()=>{(function e(t,s,r){if(!a){h();return}c||d(!0),m(a[n].slice(0,t+s)),t>=a[n].length?o():i=setTimeout(()=>{e(t+s,s,r)},r)})(0,2===t?5:1,20)}
1,0)},[a,n]),(0,r.useEffect)(()=>(i&&clearTimeout(i),h(),()=>{i&&clearTimeout(i)}),[l]),a&&a[n])return(0,s.jsx)(_.f,{animationIn:"fadeIn",animationOut:"fadeOut",animateOnMount:!1,isVisible:c,animationInDuration:600,animationOutDuration:600,children:(0,s.jsx)(Text,{className:"placeholder-text",children:u})})};a(50330);var X=e=>{let{text:t,removeHighlightDelay:a}=e,[i,n]=(0,r.useState)(!0),l=r.useRef(null);return(0,r.useEffect)(()=>{l&&l.current&&a&&"number"==typeof a&&a>0&&setTimeout(()=>{n(!1)},a)},[l]),(0,s.jsx)(s.Fragment,{children:i?(0,s.jsx)("span",{ref:l,className:"highlighted",children:t}):(0,s.jsx)(s.Fragment,{children:t})})},ee=a(96291);a(22426);let{Text:et,Link:ea}=V.default;var ei=e=>{let{takeToParaphrase:t,navigateTo:a,answers:i,score:n,writtenBy:r,isDetectingScore:l,error:o}=e,u=Math.ceil(100*n);return(0,s.jsxs)("div",{className:"detection-container ".concat(u>50?"ai-detection-container":"human-detection-container"," ").concat(t?"cursor-pointer":""),onClick:()=>{t&&a&&a("/paraphrase",{essay:i.join("")})},children:[(0,s.jsxs)("div",{children:[!l&&(0,s.jsxs)(s.Fragment,{children:[!o&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(et,{children:["AI Score: ",(0,s.jsx)("strong",{children:u})," - Written by"," ",r]}),(0,s.jsx)(d.G,{className:"ml1",icon:u>50?c.KfU:c.ctA}),t&&(0,s.jsx)(ea,{className:"ml2 link",href:"#",children:"Click here to paraphrase!"})]}),o&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(et,{children:"AI Detector Score Couldn't be Calculated"})})]}),l&&(0,s.jsx)(et,{children:"Calculating AI Detection Score..."})]}),!l&&(0,s.jsx)(s.Fragment,{children:t&&(0,s.jsx)(d.G,{icon:c.yOZ})}),l&&(0,s.jsx)(O.Z,{size:"small"})]})};let{Text:en,Link:es}=V.default;var er=e=>{let{isStopped:t}=r.useContext(Q.$),a=(0,y.I0)(),{isSubscribed:i,isLoggedIn:n}=(0,y.v9)(e=>({isSubscribed:e.userSubscriptionReducer.isSubscribed,isLoggedIn:e.userSubscriptionReducer.isLoggedIn})),{hideDisclaimer:l,preventParentFill:o,wasResponseTruncated:c}=e,{answer:d,error:u,aiDetection:m,isDetectingScore:h,isLoading:x,lastQueryId:p,useAnswerProp:g,useAnimationIndex:k}=e,{navigateTo:v}=e,[b,j]=(0,r.useState)(d||[]),[w,E]=(0,r.useState)(!1);r.useEffect(()=>{d&&0!==d.length?w||E(!0):E(!1),setTimeout(()=>j(d),600)},[d]);let S=e=>!!("string"==typeof e||Array.isArray(e)&&e.every(e=>"string"==typeof e));return(0,s.jsx)("div",{className:"flex-column flex flex-1 ",children:(0,s.jsxs)(P.default,{className:"results-card",children:[(m||h)&&(0,s.jsx)(ei,{...m,isDetectingScore:h,navigateTo:v,answers:b}),(0,s.jsxs)("div",{className:"result-text",style:o?{flex:"unset",maxHeight:"300px"}:void 0,children:[!x&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(en,{style:{whiteSpace:"pre-wrap"},children:t||b&&b.length>0||d&&d.length>0||u?(0,s.jsxs)(s.Fragment,{children:[u&&(0,s.jsx)(en,{type:"danger",children:u}),g&&S(d)?(0,s.jsx)(s.Fragment,{children:d}):(0,s.jsx)(s.Fragment,{children:b&&Array.isArray(b)&&b.length>0&&!u&&S(b)&&(0,s.jsxs)(_.f,{animationIn:"fadeIn",animationOut:"fadeOut",animateOnMount:!1,isVisible:w,animationInDuration:600,animationOutDuration:600,children:[b.map((e,t)=>(0,s.jsx)(X,{text:e,removeHighlightDelay:100},"highlightedText".concat(t))),c&&!i&&(0,s.jsx)(es,{href:"#",className:"ml2",onClick:()=>{n?i||a((0,f.Z)()):a((0,ee.M)("upgrade"))},children:"...You have reached your response limit! Become Elite for descriptive answers."})]})})]}):(0,s.jsx)($,{placeholderAnimationIndex:k||1})})}),x&&(0,s.jsx)(_.f,{className:"justify-content-end align-items-center flex w-full",animationIn:"slideInRight",animationOut:"fadeOut",animationInDuration:600,animationOutDuration:600,children:(0,s.jsxs)("div",{className:"loader-container",children:[(null==x?void 0:x.message)&&(0,s.jsx)(en,{className:"mr2",children:x.message}),(0,s.jsx)(O.Z,{size:"small"})]})})]}),(0,s.jsx)(Y(),{style:{height:"200px",backgroundColor:"#28303F"},animationData:K,loop:!0}),b&&b.length>0&&p&&(0,s.jsx)(z,{className:"pt2",lastQueryId:p}),!l&&(0,s.jsx)("div",{className:"mt3",style:{textAlign:"center"},children:(0,s.jsx)(en,{className:"subtitle-text m1",children:"Please note, we are still in development and may not always provide accurate answers. We recommend fact-checking any information provided by Tutorly.ai"})})]})})},el=a(72852),eo=a(17421),ec=a(63589);a(99965);let{Text:ed}=V.default;var eu=e=>{let{icon:t,label:a}=e;return(0,s.jsxs)("div",{className:"",children:[t&&(0,s.jsx)(d.G,{icon:t,style:{width:"20px"}}),a&&(0,s.jsx)(ed,{className:"ml1",children:a})]})},em=a(39798),eh=a(73833),ex=a(68106),ep=a(93530),ef=a(26052),ey=a(46564),eg=a(24033),ek=a(21),ev=a(25566);let{Text:eb}=V.default;var ej=e=>{let{onAnswer:t,onAnswerComplete:a,onNewQuery:i,onAnswerError:n,onAnswerRetryError:l}=e,o=(0,eg.usePathname)(),u=(0,y.I0)(),m=r.useRef(),{trackUpgradeButtonClicked:x,trackUserRanOutOfCredits:g}=(0,H.Z)(),{isSubscribed:k,isSubscriptionPaused:v,isLoggedIn:b,ocrModalResult:j,creditLimit:w}=(0,y.v9)(e=>({isSubscribed:e.userSubscriptionReducer.isSubscribed,isSubscriptionPaused:e.userSubscriptionReducer.isSubscriptionPaused,isLoggedIn:e.userSubscriptionReducer.isLoggedIn,isAmbassad
1or:e.userSubscriptionReducer.isAmbassador,ocrModalResult:e.ocrModalReducer.result,creditLimit:e.creditLimitReducer.creditLimit})),{stopDemo:E}=r.useContext(Q.$),[S]=ec.Z.useForm(),[N,A]=r.useState(!1),[T,I]=r.useState({subject:null,level:null,questionType:null,additionalContext:null,options:{explain:!1,steps:!1,links:!1},input:""}),C=(0,ep.PR)();r.useEffect(()=>{var e;w&&!k&&(null==T?void 0:null===(e=T.input)||void 0===e?void 0:e.length)>0&&(0==w.remainingLimit?(g(w.totalLimit),b?u((0,f.Z)()):setTimeout(()=>{u((0,p.y)("upgrade"))},3e3)):1==w.remainingLimit&&u((0,ey.O)()))},[w]),r.useEffect(()=>{(null==j?void 0:j.text)&&I({...T,input:j.text})},[j]),r.useEffect(()=>{let e=new URLSearchParams(window.location.search),t=e.get("ask");return(null==t?void 0:t.length)>0&&(I({...T,input:t}),S.setFieldValue("question",t),D(t)),()=>{(null==m?void 0:m.current)&&(null==m||m.current.abort(),m.current=null,null==i||i(!1)),(null==t?void 0:t.length)>0&&window.history.replaceState({},void 0,o)}},[]);let D=async e=>{let s;if((!T.input||0===T.input.length)&&!e){S.setFields([{name:"question",errors:["Question is required"]}]);return}A(!0),null==i||i(!0);let r=!1,o=!1,c=[],d={mock:ev.env.REACT_APP_MOCK};Object.keys(T).forEach(e=>{T[e]&&(d[e]=T[e])}),e&&(d.input=e),m.current=new AbortController;let h="";(0,J.k)({path:"v1/completion/ask/completion-stream",method:"post",data:JSON.stringify(d),responseType:"stream",signal:m.current.signal,onData:e=>{null==i||i(!1);try{let a=new TextDecoder;e=a.decode(e);let i=e.split("data: ");for(let e of i){let a;if(!(""===e||e.includes("[DONE]"))){try{a=JSON.parse(h+e),h=""}catch(t){h+=e;continue}if((null==a?void 0:a.error)&&(console.error(JSON.stringify(a.error)),s=a.error.message),(null==a?void 0:a.retryError)&&(l&&console.warn(JSON.stringify(a.retryError)),l({...T,forType:"Ask"},a.retryError)),(null==a?void 0:a.error)&&(null==a?void 0:a.rateLimitHeaders)){u((0,ex.r)(a.rateLimitHeaders));continue}if((null==a?void 0:a.remainingLimit)!=null){u((0,ex.r)(a));continue}if(null==a?void 0:a.choices){let e=a.choices[0].text||a.choices[0].delta.content;null!==a.choices[0].finish_reason&&(o="length"===a.choices[0].finish_reason),e&&"Null"!=e&&"string"==typeof e&&(r=r||"\n"!==e)&&(c.push(e),null==t||t(e))}}}}catch(e){ek.Tb(e),console.error(e)}},onEnd:()=>{s&&s.length>0?null==n||n({...T,forType:"Ask"},{...w,wasResponseTruncated:o},s):null==a||a({...T,forType:"Ask"},{...w,wasResponseTruncated:o},c),A(!1)},onResponse:()=>{}})};return(0,s.jsx)(ec.Z,{className:"flex flex-1",form:S,onFinish:()=>D(),children:(e,t)=>{var a;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"query-card-container",children:[(0,s.jsxs)("div",{className:"context-dropdown-container",children:[(0,s.jsx)(ec.Z.Item,{children:(0,s.jsx)(el.Z,{name:"subject",placeholder:"Subject",optionFilterProp:"children",value:T.subject,allowClear:!1,"data-testId":"subject",options:[{label:(0,s.jsx)(eu,{icon:c.xFR,label:"Math"}),value:"Math","data-testId":"subject-item-math"},{label:(0,s.jsx)(eu,{icon:c.A47,label:"Science"}),value:"Science","data-testId":"subject-item-science"},{label:(0,s.jsx)(eu,{icon:c.cp3,label:"History"}),value:"History","data-testId":"subject-item-history"},{label:(0,s.jsx)(eu,{icon:c.TzT,label:"English"}),value:"English","data-testId":"subject-item-english"},{label:(0,s.jsx)(eu,{icon:c.KtD,label:"Other"}),value:"Other","data-testId":"subject-item-other"}],onChange:e=>{I({...T,subject:e})}})}),(0,s.jsx)(ec.Z.Item,{children:(0,s.jsx)(el.Z,{name:"level",placeholder:"Level",optionFilterProp:"children",value:T.level,allowClear:!1,"data-testId":"level",options:[{label:"1st-6th Grade",value:"1st-6th Grade","data-testId":"level-0"},{label:"6th-9th Grade",value:"6th-9th Grade","data-testId":"level-1"},{label:"9th-12th Grade",value:"9th-12th Grade","data-testId":"level-2"},{label:"Bachelors",value:"Bachelors","data-testId":"level-3"},{label:"Masters",value:"Masters","data-testId":"level-4"},{label:"PhD",value:"PhD","data-testId":"level-5"}],onChange:e=>{I({...T,level:e})}})})]}),(0,s.jsx)(ec.Z.Item,{children:(0,s.jsxs)(M.ZP.Group,{className:"context-pill-container",onChange:e=>{I({...T,questionType:e.target.value})},children:[(0,s.jsxs)(M.ZP.Button,{value:"multiple-choice","data-testId":"rd-mcq",checked:"multiple-choice"===T.questionType,children:[(0,s.jsx)(d.G,{icon:c.LuL})," Multiple Choice"]}),(0,s.jsxs)(M.ZP.Button,{value:"short-answer","data-testId":"rd-short-answer",checked:"short-answer"===T.questionType,children:[(0,s.jsx)(d.G,{icon:c.ZL_})," Short Answer"]}),(0,s.jsxs)(M.ZP.Button,{value:"other","data-testId":"rd-other",checked:"other"===T.questionType,children:[(0,s.jsx)(d.G,{icon:c.KtD})," Other"]}
1)]})}),(0,s.jsx)("div",{className:"flex-column flex",children:(0,s.jsx)(ec.Z.Item,{hasFeedback:!0,children:(0,s.jsx)(el.Z,{mode:"tags",placeholder:"Additional Context",notFoundContent:"",onChange:e=>{I({...T,additionalContext:e})},tokenSeparators:[","],options:[]})})}),(0,s.jsx)(q.Z,{orientation:"center",style:{marginTop:"15px",marginBottom:"15px"},children:"Elite Features"}),(0,s.jsxs)("div",{className:"justify-content-between align-items-center flex",children:[(0,s.jsxs)("div",{className:"flex-column flex gap-8",children:[(0,s.jsx)(ec.Z.Item,{children:(0,s.jsx)(eo.Z,{className:"checkbox-text-center",checked:T.options.explain,"data-testId":"cb-explain",disabled:!k||v,onChange:()=>{I({...T,options:{...T.options,explain:!T.options.explain}})},children:(0,s.jsx)(eb,{children:"Explain"})})}),(0,s.jsx)(ec.Z.Item,{className:"mt1",children:(0,s.jsx)(eo.Z,{className:"checkbox-text-center",checked:T.options.steps,"data-testId":"cb-show-steps",disabled:!k||v||"Math"!==T.subject,onChange:()=>{I({...T,options:{...T.options,steps:!T.options.steps}})},children:(0,s.jsx)(eb,{children:"Show Steps"})})}),(0,s.jsx)(ec.Z.Item,{className:"mt1",children:(0,s.jsx)(eo.Z,{className:"checkbox-text-center","data-testId":"cb-share-links",checked:T.options.links,disabled:!k||v,onChange:()=>{I({...T,options:{...T.options,links:!T.options.links}})},children:(0,s.jsx)(eb,{children:"Share Links"})})})]}),(!k||v)&&(0,s.jsxs)("div",{className:"flex-column context-upgrade-column flex",children:[(0,s.jsx)(eb,{className:"subtitle-text",children:"These features are only available to Elite users!"}),(0,s.jsx)(h.ZP,{className:"mt1 align-items-center justify-content-center flex",type:"primary","data-testId":"btn-upgrade",onClick:()=>{b?u((0,f.Z)()):u((0,ee.M)("upgrade")),x("ask")},children:(0,s.jsxs)("div",{className:"header-meter-bar-shine align-items-center justify-content-center flex h-full",children:[(0,s.jsx)(d.G,{icon:c.nmd,className:"mr2"})," ","Upgrade"]})})]})]}),(0,s.jsx)(em.Z,{maxLength:k&&!v?2e3:400,className:"question-input mt3",value:T.input,"data-testId":"ask-user-prompt",errors:t.getFieldError("question"),disabled:!1,name:"question",initialplaceholdertext:"Type in a question...",placeholderAnimationIndex:0,onChange:e=>{E(),I({...T,input:e.target.value})}}),(0,s.jsx)(ec.Z.Item,{children:k||(null==w?void 0:w.remainingLimit)!==0?(0,s.jsxs)(h.ZP,{type:"primary",className:"mt3 w-full",htmlType:"submit",disabled:T.input&&T.input.length>(k&&!v?2e3:400)||N||w&&0===w.remainingLimit,loading:N,children:[(0,s.jsx)(d.G,{icon:c.JyM,className:"mr2"})," Ask Tutorly.ai"]}):(0,s.jsx)(h.ZP,{className:"mt3 align-items-center justify-content-center flex w-full",type:"primary",onClick:()=>{b?u((0,f.Z)()):u((0,ee.M)("upgrade")),x("ask")},children:(0,s.jsxs)("div",{className:"header-meter-bar-shine align-items-center justify-content-center flex h-full",children:[(0,s.jsx)(d.G,{icon:c.nmd,className:"mr2"})," Upgrade"]})})}),(null==w?void 0:w.remainingLimit)===0&&(0,s.jsx)(V.default.Text,{className:"mt1",type:"secondary",children:k?"All work and no play makes ".concat((null==C?void 0:C.name)?null==C?void 0:null===(a=C.name)||void 0===a?void 0:a.split(" ")[0]:"Jack"," dull and weary."):(0,s.jsxs)(s.Fragment,{children:["You've used all of your ",(0,s.jsx)(ef.Z,{})," for the day.\xa0",(0,s.jsxs)(V.default.Link,{style:{fontSize:"inherit"},onClick:()=>{u((0,eh.f)())},children:["Get More Free ",(0,s.jsx)(ef.Z,{}),"!"]})]})})]})})}})},ew=a(27873);a(1166);var eE=e=>{let{children:t}=e;return(0,s.jsx)("div",{className:"popup-overlay",children:(0,s.jsx)("div",{className:"popup",children:t})})},eS=a(33693),eN=a.n(eS);a(30219);let eA=(e,t)=>{let{x:a,y:i}=e,{x:n,y:s,nw:r,nh:l,cx:o,cy:c}=t,d=window.screen.orientation.angle,u=n+r*a,m=s+l*i;return 90===d||270===d?m-=c:u-=o,{x:u,y:m}},eT=e=>{let t=Math.min(e[0].x,e[1].x,e[2].x,e[3].x),a=Math.min(e[0].y,e[1].y,e[2].y,e[3].y),i=Math.abs(Math.max(e[0].x,e[1].x,e[2].x,e[3].x)-t),n=Math.abs(Math.max(e[0].y,e[1].y,e[2].y,e[3].y)-a);return{x:t,y:a,width:i,height:n}},eI=e=>{let{nVertices:t,imageInfo:a}=e,i=[];for(let e=0;e<t.length;e++){let n=eA(t[e],a);i.push(n)}return eT(i)},eC=e=>{let{isSelected:t,isHovering:a}=e;return a?t?"black":"orange":t?"red":"white"},eD=(e,t)=>{let{x:a,y:i}=e,{x:n,y:s,width:r,height:l}=t;return a>=n&&a<=n+r&&i>=s&&i<=s+l},eG=e=>new Promise((t,a)=>{let i=new Image;i.addEventListener("load",()=>t(i)),i.addEventListener("error",e=>a(e)),i.setAttribute("crossOrigin","anonymous"),i.src=e}),eF=e=>e*Math.PI/180,eP=(e,t,a)=>{let i=eF(a);return{width:Math.abs(Math.cos(i)*e)+Math.abs(Math.sin(i)*t),height:Math.abs(Math.sin(i)*e)+Math.abs(Math.cos(i)*t)}},eB=async function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{horizontal:!1,vertical:!1},n=await eG(e),s=document.createElement("canvas"),r=s.getContext("2d");if(!r)return null;let l=eF(a),{width:o,height:c}=eP(n.width,n.height,a);s.width=o,s.height=c,r.translate(o/2,c/2),r.rotate(l),r.scale(i.horizontal?-1:1,i.vertical?-1:1),r.translate(-n.width/2,-n.height/2),r.drawImage(n,
10,0);let d=r.getImageData(t.x,t.y,t.width,t.height);return s.width=t.width,s.height=t.height,r.putImageData(d,0,0),s.toDataURL("image/png")};var eL=a(40340),eR=a(76645);a(29251);var eZ=e=>{let{onClick:t,icon:a,className:i,btnType:n}=e;return(0,s.jsx)(h.ZP,{type:n,className:"btn-rounded btn-primary ".concat(i),onClick:t,children:(0,s.jsx)(d.G,{icon:a})})},eV=e=>{let{onClick:t,icon:a}=e;return(0,s.jsx)(d.G,{className:"btn-secondary",icon:a,onClick:t})};let eO=(e,t)=>{if(!e.textSegments||0===e.textSegments.length)return"";let a=e.textSegments[0].startIndex||0,i=e.textSegments[0].endIndex;return t.substring(a,i)},{Text:eM}=V.default;var eq=e=>{let t=window.innerWidth,a=window.innerHeight,{onClose:i}=e,n=(0,r.useRef)(),[l,o]=(0,r.useState)(),[d,u]=(0,r.useState)(),[m,h]=(0,r.useState)(),[x,p]=(0,r.useState)(!1),[f,y]=(0,r.useState)(!1),[g,k]=(0,r.useState)(),[v,b]=(0,r.useState)([]),[j,w]=(0,r.useState)(),[E,S]=(0,r.useState)({unit:"%",x:25,y:25,width:50,height:50}),[N,A]=(0,r.useState)(),T=async e=>{var t,a,i;p(!0);let n=await (0,J.k)({path:"v1/query/extract",method:"post",data:JSON.stringify({base64Image:N})});p(!1);let s=null==n?void 0:null===(a=n.data)||void 0===a?void 0:null===(t=a.data)||void 0===t?void 0:t.document,r=null==n?void 0:null===(i=n.data)||void 0===i?void 0:i.error;e&&e(r,s)},I=()=>{if(n&&n.current&&N){n.current.width=t,n.current.height=a;let e=n.current.getContext("2d");C(e)}};(0,r.useEffect)(()=>(window.addEventListener("resize",I),o(!0),()=>{window.removeEventListener("resize",I)}),[l]),(0,r.useEffect)(()=>{if(n&&n.current&&N){n.current.width=t,n.current.height=a;let i=n.current.getContext("2d");if(!m){var e=new Image;e.onload=async()=>{var n,s,r,l,o,c,d;h(e);let u=(n=i.canvas.width,s=i.canvas.height,o=Math.min(n/(r=e.width),s/(l=e.height)),c=r*o,d=l*o,{cx:0,cy:0,cw:r,ch:l,nw:c,nh:d,x:(n-c)/2,y:(s-d)/2,w:c,h:d});w(u={...u,imageW:e.width,imageH:e.height,windowW:t,windowH:a})},e.src=N}C(i)}},[N,n,v,j]),(0,r.useEffect)(()=>{j&&m&&!f&&(console.log("Detecting..."),T((e,t)=>{if(e)i&&i({error:e});else if(t&&t.pages&&0!==t.pages.length){k(t.text);let e=[];t.pages.forEach(t=>{let a=t.paragraphs;a.forEach(t=>{let{normalizedVertices:a}=t.layout.boundingPoly,i=eI({nVertices:a,imageInfo:j});e.push({...t.layout,rect:i,isSelected:!1,isHovering:!1})})}),b(e)}else i&&i({error:"Unable to find the question from the photo"});y(!0)}))},[m,j]);let C=e=>{if(!m)return;e.clearRect(0,0,t,a),e.fillStyle="black",e.fillRect(0,0,e.canvas.width,e.canvas.height);let{cx:i,cy:n,cw:s,ch:r,x:l,y:o,w:c,h:d}=j;e.drawImage(m,i,n,s,r,l,o,c,d),v.forEach(t=>{let{rect:a,isSelected:i,isHovering:n}=t,{x:s,y:r,width:l,height:o}=a;e.beginPath(),e.rect(s,r,l,o),e.strokeStyle=eC({isSelected:i,isHovering:n}),e.lineWidth=1,e.stroke()})},D=e=>{if(v&&v.length>0&&"phone"!=window.device){let t=e.nativeEvent;b(v.map(e=>{let{rect:a}=e;return eD(t,a)?{...e,isHovering:!0}:{...e,isHovering:!1}}))}},G=e=>{if(v&&v.length>0){let t=e.nativeEvent;b(v.map(e=>{let{rect:a}=e;return eD(t,a)?{...e,isSelected:!e.isSelected}:{...e}}))}},F=async()=>{try{let e=await eB(d,E);A(e)}catch(e){ek.Tb(e),console.error(e)}};return(0,s.jsxs)(s.Fragment,{children:[!d&&(0,s.jsx)(eN(),{audio:!1,className:"webcam",screenshotFormat:"image/png",videoConstraints:{facingMode:"environment",frameRate:30,video:{width:{ideal:1920},height:{ideal:1080}}},onUserMediaError:e=>{alert(e)},children:e=>{let{getScreenshot:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eV,{icon:c.NBC,onClick:i}),(0,s.jsx)(eZ,{icon:c.diR,onClick:()=>{let e=t();u(e)}})]})}}),d&&!N&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eR.ZP,{crop:E,onChange:e=>S(e),children:(0,s.jsx)("img",{src:d})}),(0,s.jsx)(eV,{icon:c.NBC,onClick:i}),(0,s.jsx)(eZ,{className:"btn-primary-done",btnType:"primary",icon:c.eFW,onClick:F})]}),N&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("canvas",{className:"",ref:n,onMouseMove:(0,eL.Z)(e=>D(e),100),onClick:(0,eL.Z)(e=>G(e),100)}),x&&(0,s.jsxs)("div",{className:"loader-wrapper",children:[(0,s.jsx)(O.Z,{size:"small"}),(0,s.jsx)(eM,{className:"mt2",children:"Processing..."})]}),!x&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(eV,{icon:c.NBC,onClick:i}),(0,s.jsx)(eZ,{className:"btn-primary-done",btnType:"primary",icon:c.LEp,onClick:()=>{let e="";v&&v.length>0&&v.map(t=>{let{isSelected:a,textAnchor:i}=t;a&&(e+="\n".concat(eO(i,g)))}),i&&i({text:e})}})]})]})]})},e_=a(34129),eJ=a(4342);a(79262);var eH=a(25566);let{Title:eW,Text:ez,Link:eU}=V.default;var eY=e=>{let{onAnswer:t,onAnswerComplete:a,onNewQuery:i,onAnswerError:n,onAnswerRetryError:l,onDetectingScore:o}=e,u=(0,y.I0)(),m=r.useRef(),{trackUserRanOutOfCredits:x,trackUpgradeButtonClicked:g}=(0,H.Z)(),{isSubscribed:k,isLoggedIn:v,creditLimit:b,isLoggedInWithoutConfirmation:j,isExtensionInstalled:w}=(0,y.v9)(e=>({isSubscribed:e.userSubscriptionReducer.isSubscribed,isLoggedInWithoutConfirmation:e.userSubscriptionReducer.isLoggedInWithoutConfirmation,isLoggedIn:e.userSubscriptionReducer.isLoggedIn,isAmbassad
1or:e.userSubscriptionReducer.isAmbassador,ocrModalResult:e.ocrModalReducer.result,creditLimit:e.creditLimitReducer.creditLimit,isExtensionInstalled:null!=e.extensionReducer.version})),{stopDemo:E,isStopped:S}=r.useContext(Q.$),[N]=ec.Z.useForm(),[A]=ec.Z.useForm(),[T,I]=r.useState(!1),[C,D]=r.useState({paragraphCount:null,prompt:null}),[G,F]=r.useState({outline:null}),P=(0,ep.PR)();return r.useEffect(()=>{var e;b&&!k&&(null==C?void 0:null===(e=C.prompt)||void 0===e?void 0:e.length)>0&&(0==b.remainingLimit?(x(b.totalLimit),v?u((0,f.Z)()):setTimeout(()=>{u((0,p.y)("upgrade"))},3e3)):1==b.remainingLimit&&u((0,ey.O)()))},[b]),r.useEffect(()=>{S||E()},[]),r.useEffect(()=>()=>{(null==m?void 0:m.current)&&(null==m||m.current.abort(),m.current=null,i&&i(!1))},[]),(0,s.jsx)("div",{className:"flex-column flex flex-1",children:(0,s.jsxs)("div",{className:"query-card-container bg-active",children:[(0,s.jsx)(ec.Z,{className:"flex",form:N,onFinish:async()=>{let e;if(!C.prompt||0===C.prompt.length){N.setFields([{name:"outlinePrompt",errors:["Prompt is required"]}]);return}if(!C.paragraphCount){N.setFields([{name:"paragraphCount",errors:["Number of Paragraphs is required"]}]);return}I(!0),i&&i(!0);let t=!1,s=!1,r=[],o={mock:eH.env.REACT_APP_MOCK};Object.keys(C).forEach(e=>{C[e]&&(o[e]=C[e])});let c="";(0,J.k)({path:"v1/completion/outline/completion-stream",method:"post",data:JSON.stringify(o),responseType:"stream",onData:a=>{try{let i=new TextDecoder;a=i.decode(a);let n=a.split("data: ");for(let a=0;a<n.length;a++){let i;let o=n[a];if(!(""===o||o.includes("[DONE]"))){try{i=JSON.parse(c+o),c=""}catch(e){c+=o;continue}if(i&&i.error&&(console.error(JSON.stringify(i.error)),e=i.error.message),i&&i.retryError&&(console.warn(JSON.stringify(i.retryError)),l&&l({...C,...G,forType:"Outline"},i.retryError)),i&&i.error&&i.rateLimitHeaders){u((0,ex.r)(i.rateLimitHeaders));continue}if(i&&null!=i.remainingLimit){u((0,ex.r)(i));continue}if(null==i?void 0:i.choices){let e=i.choices[0].text||i.choices[0].delta.content;null!==i.choices[0].finish_reason&&(s="length"===i.choices[0].finish_reason),e&&"Null"!=e&&"string"==typeof e&&(t=t||"\n"!==e)&&(r.push(e),F({...G,outline:r.join("")}),A.setFieldValue("essayOutline",r.join("")))}}}}catch(e){ek.Tb(e),console.error(e)}},onEnd:()=>{e&&e.length>0?n&&n({...C,...G,forType:"Outline"},{...b,wasResponseTruncated:s},e):a&&a({...C,...G,forType:"Outline"},{...b,wasResponseTruncated:s},r),I(!1),i&&i(!1)},onResponse:()=>{}})},children:(e,t)=>{var a;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex-column essay-query-container flex w-full",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(eW,{type:"secondary",level:5,className:"heading-secondary",children:"Step 1: Generate the Outline"}),(0,s.jsx)("div",{className:"mt2",children:(0,s.jsx)(ec.Z.Item,{name:["paragraphCount"],rules:[{required:!0,message:"Number of Paragraphs is required"}],children:(0,s.jsx)(el.Z,{name:"paragraphCount",placeholder:"Number of Paragraphs",optionFilterProp:"children",value:C.paragraphCount,allowClear:!1,"data-testId":"paragraph",options:Array(k?8:3).fill().map((e,t)=>({label:t+3,value:t+3,"data-testId":"paragraph-item-"+t})),onChange:e=>{D({...C,paragraphCount:e})}})})})]}),(0,s.jsx)(em.Z,{maxLength:k?800:400,className:"outline-prompt-input mt1",value:C.prompt,errors:t.getFieldError("outlinePrompt"),disabled:!1,hideToolbar:!0,name:"outlinePrompt","data-testId":"topic",initialplaceholdertext:"Enter your essay prompt.",placeholderAnimationIndex:0,onChange:e=>{E(),D({...C,prompt:e.target.value})},formItemProps:{name:["outlinePrompt"],rules:[{required:!0,message:"Prompt is required"}]}}),(0,s.jsx)(ec.Z.Item,{children:k||(null==b?void 0:b.remainingLimit)!==0?(0,s.jsxs)(h.ZP,{type:G.outline&&G.outline.length>0?"default":"primary",className:"w-full",htmlType:"submit",disabled:C.prompt&&C.prompt.length>(k?800:400)||T||b&&0===b.remainingLimit,loading:T,"data-testId":"btn-generate-outline",children:[(0,s.jsx)(d.G,{icon:c._oY}),(0,s.jsx)("span",{className:"ml2 mr2",children:"Generate Outline"}),(0,s.jsx)(d.G,{icon:c._oY})]}):(0,s.jsx)(h.ZP,{className:"align-items-center justify-content-center flex w-full",type:"primary",onClick:()=>{g("outline"),v?u((0,f.Z)()):u((0,p.y)("upgrade"))},children:(0,s.jsxs)("div",{className:"header-meter-bar-shine align-items-center justify-content-center flex h-full",children:[(0,s.jsx)(d.G,{icon:c.nmd,className:"mr2"})," ","Upgrade"]})})}),(null==b?void 0:b.remainingLimit)===0&&(0,s.jsx)(V.default.Text,{className:"mt1",type:"secondary",children:k?"All work and no play makes ".concat((null==P?void 0:P.name)?null==P?void 0:null===(a=P.name)||void 0===a?void 0:a.split(" ")[0]:"Jack"," dull and weary."):(0,s.jsxs)(s.Fragment,{children:["You've used all of your ",(0,s.jsx)(ef.Z,{})," for the day.\xa0",(0,s.jsxs)(V.default.Link,{style:{fontSize:"inherit"},onClick:()=>{u((0,eh.f)())},children:["Get More Free ",(0,s.jsx)(ef.Z,{}),"!"]})]})})]})})}}),(0,s.jsx)(ec.Z,{className:"mt4 flex flex-1",form:A,onFinish:async()=>{let e,s=!0;if(await N.validateFields(),C.prompt&&0!==C.prompt.length||(N.setFields([{name:"outlinePrompt",errors:[Error("Prompt is required")]}]),s=!1),C.paragraphCount||(N.setFields([{name:"paragraphCount",errors:["Number of Paragraphs is required"]}]),s=!1),G.outline&&0!==G.outline.length||(A.setFields([{name:"essayOutline",errors:["Essay Outline is required"]}]),s=!1),!s)return;I(!0),i&&i(!0);let r=!1,c=!1,d=[],h={mock:eH.env.REACT_APP_MOCK,...C};
1Object.keys(G).forEach(e=>{G[e]&&(h[e]=G[e])}),m.current=new AbortController;let x="";(0,J.k)({path:"v1/completion/essay/completion-stream/",method:"post",data:JSON.stringify(h),responseType:"stream",signal:m.current.signal,onData:a=>{i&&i(!1);try{let i=new TextDecoder;a=i.decode(a);let n=a.split("data: ");for(let a=0;a<n.length;a++){let i;let s=n[a];if(!(""===s||s.includes("[DONE]"))){try{i=JSON.parse(x+s),x=""}catch(e){x+=s;continue}if(i&&i.error&&(console.error(JSON.stringify(i.error)),e=i.error.message),i&&i.retryError&&(console.warn(JSON.stringify(i.retryError)),l&&l({...C,...G,forType:"Essay"},i.retryError)),i&&i.error&&i.rateLimitHeaders){u((0,ex.r)(i.rateLimitHeaders));continue}if(i&&null!=i.remainingLimit){u((0,ex.r)(i));continue}if(null==i?void 0:i.choices){let e=i.choices[0].text||i.choices[0].delta.content;null!==i.choices[0].finish_reason&&(c="length"===i.choices[0].finish_reason),e&&"Null"!=e&&"string"==typeof e&&(r=r||"\n"!==e)&&(d.push(e),t&&t(e))}}}}catch(e){ek.Tb(e),console.error(e)}},onEnd:async()=>{if(I(!1),e&&e.length>0)n&&n({...C,...G,forType:"Essay"},{...b,wasResponseTruncated:c},e);else{let e;o&&o(!0);let n={mock:eH.env.REACT_APP_MOCK,text:d.join("")};try{var t,i;let a=await (0,J.k)({path:"v1/query/aiDetect",method:"post",data:JSON.stringify(n)});(null==a?void 0:null===(i=a.data)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.error)?e={error:!0}:(e={writtenBy:a.data.data.writtenBy,score:a.data.data.score,takeToParaphrase:!0},null==e.score&&(e={error:!0}))}catch(t){ek.Tb(t),console.error(t),e={error:!0}}finally{o&&o(!1)}a&&a({...C,...G,forType:"Essay"},{...b,wasResponseTruncated:c,aiDetection:e},d)}},onResponse:()=>{}})},children:(e,t)=>{var a;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex-column essay-query-container flex w-full",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(eW,{type:"secondary",level:5,className:"heading-secondary mb2",children:"Step 2: Generate an Essay"}),(0,s.jsx)(em.Z,{maxLength:3e3,className:"essay-prompt-input",value:G.outline,errors:t.getFieldError("essayOutline"),disabled:!1,hideToolbar:!0,name:"essayOutline","data-testId":"outline",initialplaceholdertext:"Essay Outline",placeholderAnimationIndex:1,onChange:e=>{E(),F({...G,outline:e.target.value})},formItemProps:{name:["essayOutline"],rules:[{required:!0,message:"Essay Outline is required"}]}})]}),(0,s.jsx)(ec.Z.Item,{children:k||(null==b?void 0:b.remainingLimit)!==0?(0,s.jsxs)(h.ZP,{type:"primary",className:"w-full",htmlType:"submit",disabled:!G.outline||0===G.outline.length||G.outline&&G.outline.length>3e3||T||b&&0===b.remainingLimit,"data-testId":"btn-generate-essay",loading:T,children:[(0,s.jsx)(d.G,{icon:c.nmd,className:"mr2"})," ","Generate Essay"]}):(0,s.jsx)(h.ZP,{className:"mt3 align-items-center justify-content-center flex w-full",type:"primary",onClick:()=>{g("essay"),v?u((0,f.Z)()):u((0,p.y)("upgrade"))},children:(0,s.jsxs)("div",{className:"header-meter-bar-shine align-items-center justify-content-center flex h-full",children:[(0,s.jsx)(d.G,{icon:c.nmd,className:"mr2"})," ","Upgrade"]})})}),(null==b?void 0:b.remainingLimit)===0&&(0,s.jsx)(V.default.Text,{className:"mt1",type:"secondary",children:k?"All work and no play makes ".concat((null==P?void 0:P.name)?null==P?void 0:null===(a=P.name)||void 0===a?void 0:a.split(" ")[0]:"Jack"," dull and weary."):(0,s.jsxs)(s.Fragment,{children:["You've used all of your ",(0,s.jsx)(ef.Z,{})," for the day.\xa0",(0,s.jsxs)(V.default.Link,{style:{fontSize:"inherit"},onClick:()=>{u((0,eh.f)())},children:["Get More Free ",(0,s.jsx)(ef.Z,{}),"!"]})]})})]})})}})]})})}
1,eK=a(15424);a(25082);var eQ=e=>{let{text:t,isSelected:a,onSelectionChanged:i,className:n,disabled:r}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(h.ZP,{className:"".concat(n||""),style:{borderRadius:"30px"},type:a?"primary":"default",disabled:r,onClick:()=>{i&&i()},children:t})})},e$=a(80774),eX=a(25566);let{Text:e0,Link:e1}=V.default;var e2=e=>{let{onAnswer:t,onAnswerComplete:a,onNewQuery:i,onAnswerError:n,onAnswerRetryError:l,onDetectingScore:o,previousState:u}=e,m=(0,y.I0)(),{trackUpgradeButtonClicked:x,trackUserRanOutOfCredits:g}=(0,H.Z)(),k=r.useRef(),v=(0,e$.k6)(),{isSubscribed:b,isLoggedIn:j,creditLimit:w}=(0,y.v9)(e=>({isSubscribed:e.userSubscriptionReducer.isSubscribed,isLoggedIn:e.userSubscriptionReducer.isLoggedIn,isAmbassador:e.userSubscriptionReducer.isAmbassador,ocrModalResult:e.ocrModalReducer.result,creditLimit:e.creditLimitReducer.creditLimit})),{stopDemo:E}=r.useContext(Q.$),[S]=ec.Z.useForm(),[N,A]=r.useState(!1),T={10:"10%",100:"100%"},[I,C]=r.useState({variation:"60%",mode:"Standard",level:null,prompt:null==u?void 0:u.essay,stealth:!1}),D=(0,ep.PR)();return r.useEffect(()=>{var e,t,a,i;(null===(t=location)||void 0===t?void 0:null===(e=t.state)||void 0===e?void 0:e.essay)&&(C({...I,prompt:null===(i=location)||void 0===i?void 0:null===(a=i.state)||void 0===a?void 0:a.essay}),v.replace())},[]),r.useEffect(()=>()=>{(null==k?void 0:k.current)&&(null==k||k.current.abort(),k.current=null,null==i||i(!1))},[]),r.useEffect(()=>{var e;w&&!b&&(null==I?void 0:null===(e=I.prompt)||void 0===e?void 0:e.length)>0&&(0==w.remainingLimit?(g(w.totalLimit),j?m((0,f.Z)()):setTimeout(()=>{m((0,p.y)("upgrade"))},3e3)):1==w.remainingLimit&&m((0,ey.O)()))},[w]),(0,s.jsx)(ec.Z,{className:"flex flex-1",form:S,initialValues:{...I},onFinish:async()=>{let e,s,r;A(!0),null==i||i(!I.stealth||{message:"Stealth Mode Enabled: Generation will take longer than usual"});let c=!1,d=!1,u=[],h={mock:eX.env.REACT_APP_MOCK};Object.keys(I).forEach(e=>{I[e]&&(h[e]=I[e])});let x=!1;I.stealth&&(r=setTimeout(()=>{x=!0,null==i||i(!1),s="Request timed out after 60 seconds",null==n||n({...I,forType:"Paraphrase"},{...w,wasResponseTruncated:d},s),A(!1)},6e4)),k.current=new AbortController;let p="";(0,J.k)({path:"v1/completion/paraphrase/completion-stream",method:"post",data:JSON.stringify(h),responseType:"stream",signal:k.current.signal,onData:a=>{if(r&&clearTimeout(r),!x){null==i||i(!1);try{let i=new TextDecoder;a=i.decode(a);let n=a.split("data: ");for(let a=0;a<n.length;a++){let i;let r=n[a];if(!(""===r||r.includes("[DONE]"))){try{i=JSON.parse(p+r),p=""}catch(e){p+=r;continue}if((null==i?void 0:i.error)&&(console.error(JSON.stringify(i.error)),s=i.error.message),(null==i?void 0:i.retryError)&&(console.warn(JSON.stringify(i.retryError)),null==l||l({...I,forType:"Ask"},i.retryError)),(null==i?void 0:i.error)&&(null==i?void 0:i.rateLimitHeaders)){m((0,ex.r)(i.rateLimitHeaders));continue}if((null==i?void 0:i.remainingLimit)!=null){m((0,ex.r)(i));continue}if((null==i?void 0:i.writtenBy)!=null&&(null==i?void 0:i.score)!=null&&(e={writtenBy:i.writtenBy,score:i.score}),null==i?void 0:i.choices){let e=i.choices[0].text||i.choices[0].delta.content;null!==i.choices[0].finish_reason&&(d="length"===i.choices[0].finish_reason),e&&"Null"!=e&&"string"==typeof e&&(c=c||"\n"!==e)&&(u.push(e),null==t||t(e))}}}}catch(e){ek.Tb(e),console.error(e)}}},onEnd:async()=>{if(!x){if(A(!1),s&&s.length>0)null==n||n({...I,forType:"Paraphrase"},{...w,wasResponseTruncated:d},s);else{if(!e){null==o||o(!0);let a={mock:eX.env.REACT_APP_MOCK,text:u.join("")};try{var t,i;let n=await (0,J.k)({path:"v1/query/aiDetect",method:"post",data:JSON.stringify(a)});(null==n?void 0:null===(i=n.data)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.error)?e={error:!0}:(e={writtenBy:n.data.data.writtenBy,score:n.data.data.score},null==e.score&&(e={error:!0}))}catch(t){ek.Tb(t),console.error(t),e={error:!0}}finally{null==o||o(!1)}}null==a||a({...I,forType:"Paraphrase"},{...w,wasResponseTruncated:d,aiDetection:e},u)}}},onResponse:()=>{}})},children:(e,t)=>{var a;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"paraphrase-query-card-container bg-
1active",children:[(0,s.jsx)(e0,{className:"mr3",children:"Modes:"}),(0,s.jsx)(ec.Z.Item,{className:"modes-pill-form-item",style:{overflowX:"auto"},name:["mode"],rules:[{required:!0,message:"Mode is required"}],children:(0,s.jsx)("div",{className:"modes-pill-container",children:["Standard","Fluency","Formal","Simple","Expand","Shorten"].map((e,t)=>(0,s.jsx)(eQ,{className:"modes-pill",isSelected:I.mode===e,text:e,onSelectionChanged:()=>C({...I,mode:e})},"pill".concat(t)))})}),(0,s.jsx)("div",{className:"mt3",children:(0,s.jsxs)(ec.Z.Item,{className:"form-item-flex-1",name:["variation"],rules:[{required:!0,message:"Variation is required"}],children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)(e0,{children:["Variation: ",I.variation]}),(0,s.jsx)(L.Z,{className:"ml3",title:"Add variation by percentage to your essay",children:(0,s.jsx)(d.G,{icon:c.sqG,className:"cursor-pointer"})})]}),(0,s.jsx)(eK.Z,{marks:T,tooltip:{formatter:null},min:10,max:100,step:10,handleColorDisabled:"#EE6C4D",styles:{track:{background:"#EE6C4D"}},value:parseInt(I.variation.split("%")[0]),onChange:e=>{C({...I,variation:"".concat(e,"%")})}})]})}),(0,s.jsxs)("div",{className:"paraphrase-dropdown-container",children:[(0,s.jsx)(ec.Z.Item,{children:(0,s.jsx)(el.Z,{name:"level",placeholder:"Level",optionFilterProp:"children",value:I.level,allowClear:!1,options:[{label:"1st-6th Grade",value:"1st-6th Grade"},{label:"6th-9th Grade",value:"6th-9th Grade"},{label:"9th-12th Grade",value:"9th-12th Grade"},{label:"Bachelors",value:"Bachelors"},{label:"Masters",value:"Masters"},{label:"PhD",value:"PhD"}],onChange:e=>{C({...I,level:e})}})}),(0,s.jsxs)("div",{className:"align-items-center justify-content-end flex",children:[(0,s.jsx)(ec.Z.Item,{children:(0,s.jsx)(eo.Z,{className:"checkbox-text-center",disabled:!b,checked:I.stealth,onChange:()=>{C({...I,stealth:!I.stealth})},children:(0,s.jsx)(e0,{children:"Stealth"})})}),(0,s.jsx)(L.Z,{title:(0,s.jsxs)(e0,{children:["Invisible to AI & Plagiarism Detectors.",!b&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)(e1,{href:"#",onClick:()=>{m(j?(0,f.Z)():(0,p.y)("upgrade"))},children:"Become Elite"})," ","to unlock!"]})]}),children:(0,s.jsx)(d.G,{icon:c.sqG,className:"cursor-pointer"})})]})]}),(0,s.jsx)(em.Z,{maxLength:8e3,hideToolbar:!0,className:"essay-input mt2",value:I.prompt,errors:t.getFieldError("prompt"),disabled:!1,name:"prompt",initialplaceholdertext:"Essay",placeholderAnimationIndex:0,onChange:e=>{E(),C({...I,prompt:e.target.value})},formItemProps:{name:["prompt"],rules:[{required:!0,message:"Essay is required"}]}}),(0,s.jsx)(ec.Z.Item,{children:b||(null==w?void 0:w.remainingLimit)!==0?(0,s.jsxs)(h.ZP,{type:"primary",className:"mt3 w-full",htmlType:"submit",disabled:I.input&&I.input.length>8e3||N||w&&0===w.remainingLimit,loading:N,children:[(0,s.jsx)(d.G,{icon:c.JyM,className:"mr2"})," ","Paraphrase"]}):(0,s.jsx)(h.ZP,{className:"mt3 align-items-center justify-content-center flex w-full",type:"primary",onClick:()=>{x("paraphrase"),j?m((0,f.Z)()):m((0,p.y)("upgrade"))},children:(0,s.jsxs)("div",{className:"header-meter-bar-shine align-items-center justify-content-center flex h-full",children:[(0,s.jsx)(d.G,{icon:c.nmd,className:"mr2"})," Upgrade"]})})}),(null==w?void 0:w.remainingLimit)===0&&(0,s.jsx)(V.default.Text,{className:"mt1",type:"secondary",children:b?"All work and no play makes ".concat((null==D?void 0:D.name)?null==D?void 0:null===(a=D.name)||void 0===a?void 0:a.split(" ")[0]:"Jack"," dull and weary."):(0,s.jsxs)(s.Fragment,{children:["You've used all of your ",(0,s.jsx)(ef.Z,{})," for the day.\xa0",(0,s.jsxs)(V.default.Link,{style:{fontSize:"inherit"},onClick:()=>{m((0,eh.f)())},children:["Get More Free ",(0,s.jsx)(ef.Z,{}),"!"]})]})})]})})}})},e3=a(76548),e4=a.n(e3),e5=a(25566);let e6="https://cms.tutorly.ai/api",e7="".concat(e6,"/edvisor-tools"),e8=e=>({...e,categories:e.categories.map(e=>e.category),environments:e.environments.map(e=>e.environment),tag:e.tag[0]}),e9=async()=>{var e,t;let a=await fetch("".concat(e6,"/graphql"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:"\n        query {\n          EdvisorTools(limit: 100) {\n            totalDocs\n            docs {\n              _id: id\n              slug\n              categories {\n                category\n              }\n              image {\n                url\n                alt\n                width\n                height\n              }\n              title\n              subtitle\n              tag {\n                ... on EdvisorToolTag {\n                  title\n                  colorHex\n                  backgroundColorHex\n                }\n              }\n              environments {\n                environment\n              }\n              roles {\n                role\n              }\n            }\n          }\n        }\n      "})});if(!a.ok)throw Error("Failed to fetch tools");let i=await a.json();return(null==i?void 0:null===(t=i.data)||void 0===t?void 0:null===(e=t.E
1dvisorTools)||void 0===e?void 0:e.docs)?i.data.EdvisorTools.docs.filter(e=>{let t=["tutorly-staging","tutorly-production"].includes(e5.env.NEXT_ENV||"")?e5.env.NEXT_ENV:"tutorly-staging";return!!e.environments.find(e=>e.environment===t)}).map(e8):[]},te=async e=>{var t;let a=e4().stringify({where:{slug:{equals:e}}},{addQueryPrefix:!0}),i=await fetch("".concat(e7).concat(a,"&_=").concat(0));if(!i.ok)throw Error("Failed to fetch tools");let n=await i.json();if(n&&(null===(t=n.docs)||void 0===t?void 0:t.length)!==0)return e8(n.docs[0])},tt=async()=>{let e=[];try{let t=await (0,J.k)({path:"v1/tool/favourites",method:"get",headers:{"Content-Type":"application/json"}});if(t.statusText&&"OK"!=t.statusText)throw Error("Error fetching favourite tools");e=t.data.toolSlugs}catch(e){console.error("Error fetching favourite tools",e)}return e},ta=async e=>{try{let t=await (0,J.k)({path:"v1/tool/favourites",method:"post",data:JSON.stringify({toolSlug:e}),headers:{"Content-Type":"application/json"}});if(t.statusText&&"OK"!=t.statusText)throw Error("Error adding favourite tool")}catch(e){console.error("Error adding favourite tool",e)}},ti=async e=>{try{let t=await (0,J.k)({path:"v1/tool/favourites",method:"delete",data:JSON.stringify({toolSlug:e}),headers:{"Content-Type":"application/json"}});if(t.statusText&&"OK"!=t.statusText)throw Error("Error removing favourite tool")}catch(e){console.error("Error removing favourite tool",e)}};var tn=a(90209),ts=a(14343),tr=a(26205),tl=a(8728);a(56554);let{Text:to}=V.default;var tc=e=>{let{onSearch:t,toolsCount:a}=e,[i]=ec.Z.useForm(),[n,u]=(0,r.useState)(!1),[m,x]=(0,r.useState)({name:"",description:""}),p=F.default.useBreakpoint(),f=!p.md&&!p.lg&&!p.xl&&!p.xxl,[y,g]=(0,r.useState)(!1),k=e=>{x({...{...m},[e.target.name]:e.target.value})};return(0,s.jsxs)(s.Fragment,{children:[y&&(0,s.jsx)(ew.Z,{isOpen:y,fullscreen:f,close:()=>{g(!1)},title:(0,s.jsx)(tr.Z,{modalTitle:"Request a tool",close:()=>{g(!1)}}),width:f?"":"500px",noBackground:!1,hideMask:!1,reducedPadding:!1,footer:null,children:(0,s.jsx)("div",{className:"flex-column flex",children:(0,s.jsxs)(ec.Z,{form:i,onFinish:async()=>{u(!0);try{var e;let t=await (0,J.k)({path:"v1/user/toolRequest",method:"post",data:JSON.stringify({...m})});(null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.error)?ts.ZP.error({message:"An error occured. please try again later."}):(g(!1),ts.ZP.info({message:"Your request has been submitted successfully."}))}catch(e){ek.Tb(e),ts.ZP.error({message:"An error occured. please try again later."})}finally{u(!1)}},className:"m-0 w-full",autoComplete:"off",name:"basic",children:[(0,s.jsx)("div",{className:"mb-20",children:(0,s.jsx)(ec.Z.Item,{name:"name",rules:[{required:!0,message:"Please enter name."}],hasFeedback:!0,className:"form-item-float mt-10",children:(0,s.jsx)(tl.Z,{size:"large",label:"Name",type:"text",required:!0,placeholder:"Enter Name",name:"name",values:m.name,onChange:e=>k(e)})})}),(0,s.jsx)("div",{className:"mb-30",children:(0,s.jsx)(ec.Z.Item,{name:"description",rules:[{required:!0,message:"Please enter description."}],hasFeedback:!0,className:"form-item-float",children:(0,s.jsx)(tl.Z,{size:"large",label:"Description",vType:"textarea",required:!0,placeholder:"Enter Description",name:"description",values:m.description,onChange:e=>k(e)})})}),(0,s.jsx)(ec.Z.Item,{children:(0,s.jsx)(h.ZP,{className:"login-button",type:"primary",htmlType:"submit",loading:n,disabled:n,children:"Send"})})]})})}),(0,s.jsxs)(l.default,{style:{marginBottom:"1rem",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,s.jsxs)(o.default,{children:[(0,s.jsx)(to,{strong:!0,className:"title-count",children:"AI Tools"}),(0,s.jsxs)(to,{className:"text-count",children:["(",a,")"]})]}),(0,s.jsx)(o.default,{children:(0,s.jsx)(h.ZP,{type:"primary",style:{border:"1px solid #647A84",color:"#FFFFFF"},className:"btn-tool-request",ghost:!0,icon:(0,s.jsx)(d.G,{icon:c.nRO}),onClick:()=>{g(!0)},size:"small",children:"Request a tool"})})]}),(0,s.jsx)(l.default,{children:(0,s.jsx)(o.default,{span:24,children:(0,s.jsx)(ec.Z.Item,{children:(0,s.jsx)(tn.default,{suffix:(0,s.jsx)(d.G,{icon:c.wn1,style:{color:"#647A84"}}),onChange:e=>null==t?void 0:t(e.target.value),placeholder:"Search AI Tools"})})})})]})};let td=["All","Planning","Content","Questions","Feedback","Assistant"];a(34510);var tu=e=>{let{category:t,active:a,onClick:i}=e;return(0,s.jsx)("span",{className:"pill ".concat(a&&"active"),onClick:i,children:(0,s.jsx)(V.default.Text,{children:t})})};a(2591);var tm=e=>{let{onFilter:t,currentFilter:a}=e;return(0,s.jsx)("ul",{className:"filter-header-list",children:td.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(tu,{category:e,active:a===e,onClick:()=>{null==t||t(e)}})},e))})};a(31523);var th=e=>{let{title:t,icon:a,showLottieIcon:i=!0}=e;return(0,s.jsxs)("div",{className:"no-data",children:[i?(0,s.jsx)(Y(),{style:{height:"157px"},animationData:K,loop:!0}):(0,s.jsx)(d.G,{icon:a,className:"icon-50"}),(0,s.jsx)(V.default.Text,{children:t})]})},tx=a(28073);a(16681);var tp=e=>{let{tool:t,href:a,isFavorite:i=!1,onFavouriteToggle:n,loadAITool:r}=e,{image:l,title:o,subtitle:u,tag:m}=t;return(0,s.jsxs)("div",{className:"tool-card-item",onClick:e=>{e.preventDefault(),r(a)},children:[(0,s.jsxs)("div",{className:"tool-card-content-image-area",children:[(0,s.jsx)(A(),{src:l.url,alt:l.alt,width:l.width,height:l.height}),(0,s.jsxs)("div",{className:"tool-card-content-area",children:[(0,s.jsxs)("div",{className:"tool-card-title-area",children:[(0,s.jsx)(V.default.Text,{className:"tool-card-title",children:o}),m&&(0,s.jsxs)(tx.Z,{className:"tool-card-tag",children:[(0,s.jsx)(d.G,{icon:c.JyM}),(0,s.jsx)(V.default.Text,{children:m.title})]})]}),(0,s.jsx)(V.default.Text,{className:"tool-card-subtitle",children:u})]})]}),(0,s.jsx)("div",{className:"tool-card-action-area",children:(0,s.jsx)(d.G,{icon:i?c.Tab:j.Tab,className:"".concat(i&&"active"),onClick:e=>{e.preventDefault(),e.stopPropagation(),n(t.slug)}})})]})},tf=()=>(0,s.jsx)("div",{className:"align-items-center justify-content-center flex flex-1",children:(0,s.jsx)(O.Z,{})});a(24046);var ty=e=>{let{title:t,tools:a,noData:i,favouriteToolSlugs:n,onFavouriteToggle:r,fetching:l=!1,loadAITool:o}=e;return(0,s.jsxs)("div",{className:"tools-card-container",children:[(0,s.jsx)("div",{className:"tools-card-title-area",children:(0,s.jsx)(V.default.Text,{children:t})}),a&&0!==a.length||!i||l?l?(0,s.jsx)(tf,{}):(0,s.jsx)("div",{className:"tools-card-list",children:null==a?void 0:a.map(e=>(0,s.jsx)(tp,{tool:e,href:"".concat(e.slug),isFavorite:n.includes(e.slug),onFavouriteToggle:r,loadAITool:o},e._id))}):(0,s.jsx)(th,{icon:i.icon,title:i.title,showLottieIcon:!1})]})};a(53652);var tg=a(17775);let tk=e=>e?e.replace(/^```[a-z]+|```$/g,""):e,tv=e=>{let t=e.replace(/<html>/g,"<div>").replace(/<\/html>/g,"</div>").replace(/<body>/g,"<div>").replace(/<\/body>/g,"</div>").replace(/<html/g,"<div").replace(/<body/g,"<div").replace(/<hr>/g,"");return t};var tb=e=>{let{textParts:t,preventFadeInOnLoad:a}=e;if(!t||0===t.length)return null;let i=(0,tg.ZP)(tv(tk(t.join(""))),{transform:(e,t)=>
1{if("text"===t.type){let e=t.data.split(" ").map((e,t)=>e.trim().length>0?(0,s.jsx)(X,{text:e+" ",removeHighlightDelay:100},t):null);return(0,s.jsx)(s.Fragment,{children:e.filter(Boolean)})}return e}}),n=i;if(Array.isArray(i)){let e=0;n=i.filter(t=>(0!=e||"p"!=t.type||!!t.props.children)&&(e=1,!0))}return(0,s.jsx)(s.Fragment,{children:n})},tj=()=>{let[e,t]=(0,r.useState)(!1);return{isHovering:e,onMouseEnter:()=>t(!0),onMouseLeave:()=>t(!1)}},tw=e=>{let{icon:t,onClick:a,tooltip:i,disabled:n}=e,{isHovering:r,onMouseEnter:l,onMouseLeave:o}=tj();return(0,s.jsx)(L.Z,{title:i,placement:"bottom",children:(0,s.jsx)(d.G,{className:"cursor-pointer",icon:t,style:{transition:"color 0.3s ease-in-out",color:r?"var(--orange)":"#647A84"},onClick:n?void 0:a,onMouseEnter:l,onMouseLeave:o})})},tE=e=>{let{icon:t,copiedIcon:a,onClick:i,tooltip:n,disabled:l}=e,{isHovering:o,onMouseEnter:c,onMouseLeave:u}=tj(),[m,h]=(0,r.useState)(!1);return(0,s.jsx)(L.Z,{title:m?"Copied":n,placement:"bottom",children:(0,s.jsx)(d.G,{className:"cursor-pointer",icon:m?a:t,style:{transition:"color 0.3s ease-in-out",color:o?"var(--orange)":"#647A84"},onClick:l?void 0:e=>{null==i||i(e),h(!0),setTimeout(()=>h(!1),2e3)},onMouseEnter:c,onMouseLeave:u})})},tS=e=>{let{isLoading:t,isDisabled:a,onCopy:i,onRegenerate:n,onBadResponse:r}=e;return t?null:(0,s.jsxs)("div",{className:"align-items-center flex",style:{gap:"10px",marginTop:"10px",marginBottom:"20px"},children:[i&&(0,s.jsx)(tE,{icon:j.kZ_,copiedIcon:j.LEp,onClick:()=>i(),tooltip:"Copy",disabled:a}),n&&(0,s.jsx)(tw,{icon:j.T80,onClick:()=>n(),tooltip:"Regenerate",disabled:a}),r&&(0,s.jsx)(tw,{icon:j.bam,onClick:r,tooltip:"Bad Response",disabled:a})]})};a(60885);var tN=e=>{let{index:t,isLastIndex:a,contents:i,isLoading:n,onCopy:r,onRegenerate:l,preventFadeInOnLoad:o,onBadResponse:c}=e;return(0,s.jsxs)("span",{className:"ml1 assistant-answer flex-1",style:{position:"relative"},"data-test-id":"assistant-response-".concat(t),children:[(0,s.jsx)(tb,{textParts:[...i||[]],preventFadeInOnLoad:o}),(0,s.jsx)("div",{className:"mt2",children:(0,s.jsx)(tS,{isLoading:a&&n,isDisabled:!a&&n,onCopy:r,onRegenerate:l,onBadResponse:c})})]})};a(73828);var tA=e=>{let{content:t,loading:a,onEdit:i,index:n}=e,l=(0,y.I0)(),[o,u]=(0,r.useState)(t),[m,x]=(0,r.useState)(!1),{isSubscribed:p,isLoggedIn:g,creditLimit:k}=(0,y.v9)(e=>{var t;return{isSubscribed:e.userSubscriptionReducer.isSubscribed,isLoggedIn:e.userSubscriptionReducer.isLoggedIn,creditLimit:null==e?void 0:null===(t=e.creditLimitReducer)||void 0===t?void 0:t.creditLimit}});return(0,r.useEffect)(()=>{u(t)},[t]),(0,s.jsxs)("div",{className:"flex-column flex flex-1",children:[(0,s.jsxs)("div",{className:"align-items-center justify-content-between flex flex-1",children:[m?(0,s.jsx)(tn.default.TextArea,{"data-test-id":"edit-prompt",autoSize:{minRows:1,maxRows:4},value:o,onChange:e=>u(e.target.value)}):(0,s.jsx)(V.default.Text,{"data-test-id":"user-prompt-".concat(n),style:{color:"#FFF",fontFamily:"'Segoe UI', sans-serif",fontSize:"14px",fontStyle:"normal",fontWeight:"400",lineHeight:"22px"},children:o}),!a&&!m&&(0,s.jsx)(d.G,{icon:c.Xcf,"data-test-id":"btn-edit-prompt",className:"cursor-pointer",style:{color:"#647A84"},onClick:()=>{x(!0)}})]}),m&&(0,s.jsxs)("div",{className:"align-items-center align-self-center mt2 input-edit flex",style:{columnGap:"12px"},children:[p||(null==k?void 0:k.remainingLimit)!==0?(0,s.jsx)(h.ZP,{size:"small",type:"primary","data-test-id":"btn-save-submit",onClick:()=>{x(!1),i&&i(o)},children:(0,s.jsx)(V.default.Text,{style:{color:"inherit"},children:"Save & Submit"})}):(0,s.jsx)(h.ZP,{size:"small",type:"primary",className:"header-meter-bar-shine","data-test-id":"btn-save-submit",onClick:()=>{g?l((0,f.Z)()):l((0,ee.M)("upgrade"))},icon:(0,s.jsx)(d.G,{icon:c.nmd}),children:(0,s.jsx)(V.default.Text,{style:{color:"inherit"},children:"Upgrade"})}),(0,s.jsx)(h.ZP,{type:"default",size:"small","data-test-id":"btn-cancel",style:{color:"var(--orange)",borderColor:"var(--orange)"},onClick:()=>{u(t),x(!1)},children:"Cancel"})]})]})};a(99945);var tT=e=>{let{messages:t,loading:a,onCopy:i,onRegenerate:n,onBadResponse:r}=e;return(0,s.jsxs)("div",{className:"results-card-body ".concat(0===t.length&&"no-data-container"),children:[0===t.length&&(0,s.jsx)(th,{icon:c.JyM,title:"Your AI generated content will appear here"}),t.map((e,l)=>(0,s.jsxs)("div",{className:"results-card-message ".concat(e.role),children:["user"===e.role&&(0,s.jsx)("div",{children:(0,s.jsx)(tA,{content:[e.content],loading:a,index:l,onEdit:a=>{let i=t.findIndex(t=>t.id===e.id)+1,s=t[i];"object"==typeof a&&(a=a[0]),null==n||n(s.id,a)}})}),"assistant"===e.role&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(tN,{contents:[e.content],index:l,isLastIndex:l===t.length-1,isLoading:a,onRegenerate:n?()=>n(e.id):void 0,onCopy:i?()=>
1i(e.id):void 0,onBadResponse:r?()=>r(e.id):void 0})})]},l))]})};a(13532);var tI=e=>{let{placeholder:t,loading:a,value:i,onChange:n,onEnter:r,onActionClick:l}=e,o=(0,y.I0)(),{isSubscribed:u,isLoggedIn:m,creditLimit:h}=(0,y.v9)(e=>{var t;return{isSubscribed:e.userSubscriptionReducer.isSubscribed,isLoggedIn:e.userSubscriptionReducer.isLoggedIn,creditLimit:null==e?void 0:null===(t=e.creditLimitReducer)||void 0===t?void 0:t.creditLimit}});return(0,s.jsxs)("div",{className:"chat-input-container",children:[(0,s.jsx)(tn.default.TextArea,{className:"chat-input",disabled:a,placeholder:null!=t?t:"Type a message...",autoSize:{minRows:1,maxRows:3},value:i,onChange:n,onPressEnter:e=>{if(!e.shiftKey){if(a){e.preventDefault();return}e.preventDefault(),null==r||r(e)}}}),u||(null==h?void 0:h.remainingLimit)!==0?(0,s.jsx)("div",{className:"action-container",onClick:l,children:(0,s.jsx)(d.G,{icon:j.OH3})}):(0,s.jsx)("div",{className:"action-container",onClick:()=>{m?o((0,f.Z)()):o((0,ee.M)("upgrade"))},children:(0,s.jsx)(d.G,{icon:c.nmd})})]})},tC=e=>{let{loading:t,onStop:a,onSend:i,allowConversation:n}=e,[l,o]=(0,r.useState)("");return n?(0,s.jsx)(tI,{placeholder:"Enter a message...",value:l,loading:t,onChange:e=>o(e.target.value),onActionClick:e=>{if(t){null==a||a();return}l&&""!==l&&(null==i||i(l),o(""))},onEnter:e=>{l&&""!==l&&(null==i||i(l),o(""))}}):null};a(87004);var tD=e=>{let{threadId:t}=e;return(0,s.jsx)("div",{className:"results-card-header",children:(0,s.jsxs)("div",{className:"content-area",children:[(0,s.jsx)(V.default.Text,{className:"title",children:"Result"}),(0,s.jsxs)(V.default.Text,{className:"subtitle ",children:["Conversation ID: ",t]})]})})};a(7082);var tG=e=>{let{threadId:t,messages:a,loading:i,onRegenerate:n,onCopy:r,onStop:l,onSend:o,onBadResponse:c,allowConversation:d}=e;return(0,s.jsx)("div",{className:"results-card-container-wrapper",children:(0,s.jsxs)("div",{className:"results-card-container",children:[a.length>0&&(0,s.jsx)(tD,{threadId:t}),(0,s.jsx)(tT,{messages:a,loading:i,onCopy:r,onRegenerate:n,onBadResponse:c}),a.length>0&&(0,s.jsx)(tC,{loading:i,onSend:o,onStop:l,allowConversation:d})]})})};let tF=e=>{let t=(e,a,i)=>"text"===a.type?a.data:"tag"===a.type?a.children.map(e=>t(void 0,e,i)).join(""):e,a=(0,tg.ZP)(e,{transform:t});return"string"==typeof a?a:a.join("")};var tP=a(74466);a(43157);var tB=e=>{let{onClick:t,disabled:a}=e;return(0,s.jsxs)("span",{className:"clear-input-button ".concat(a&&"disabled"),onClick:a?void 0:t,children:[(0,s.jsx)(d.G,{icon:c.etY}),(0,s.jsx)(V.default.Text,{children:"Clear Inputs"})]})};a(79207);var tL=e=>{let{onClick:t}=e;return(0,s.jsxs)("span",{className:"back-input-button",onClick:t,children:[(0,s.jsx)(d.G,{icon:c._oq}),(0,s.jsx)(V.default.Text,{children:"Back to tools"})]})};a(30448);var tR=e=>{let{title:t,description:a}=e;return(0,s.jsxs)("div",{className:"title-and-description-container",children:[(0,s.jsx)(V.default.Text,{className:"title",children:t}),a&&(0,s.jsx)(V.default.Text,{className:"description",children:a})]})};a(34977),a(58111);var tZ=()=>{let e=F.default.useBreakpoint(),t=!e.md&&!e.lg&&!e.xl&&!e.xxl;return t},tV=a(4370),tO=a(28481);a(5100);var tM=e=>{let{isExpanded:t,onClick:a}=e;return(0,s.jsxs)(V.default.Link,{className:"toggle-prompt-container",href:void 0,onClick:a,children:[(0,s.jsx)(d.G,{icon:j.TzT})," ",(0,s.jsxs)(V.default.Text,{children:[t?"Hide":"Edit"," Prompt"]})," ",(0,s.jsx)(d.G,{icon:t?j.mTx:j.ptq})]})},tq=a(34098),t_=a.n(tq),tJ=e=>{let{tool:t,loading:a,messages:i,persistentFormData:n,onChange:l,onSubmit:o,onClear:u,handleBackToTools:m}=e,[h,x]=(0,r.useState)(t),p=tZ(),[f,g]=(0,r.useState)((0,tO.x0)(5)),[k,v]=(0,r.useState)(!p||0===i.length),{isSubscribed:b,creditLimit:j}=(0,y.v9)(e=>{var t;return{isSubscribed:e.userSubscriptionReducer.isSubscribed,isLoggedIn:e.userSubscriptionReducer.isLoggedIn,creditLimit:null==e?void 0:null===(t=e.creditLimitReducer)||void 0===t?void 0:t.creditLimit}});(0,r.useEffect)(()=>{p&&i.length>0&&k&&v(!1)},[i,p]);let w=()=>{if(b||(null==j?void 0:j.remainingLimit)!==0)x({...t});else{let e=t_()(t);e.uiSchema["ui:submitButtonOptions"]={props:{type:"primary",block:!0,className:"ant-btn css-dev-only-do-not-override-12a5s7c ant-btn-primary ant-btn-block header-meter-bar-shine",icon:(0,s.jsx)(d.G,{icon:c.nmd,className:"mr2"})},submitText:"Upgrade"},x({...e})}};(0,r.useEffect)(()=>{w()},[j,b]);let E=()=>{let e=document.querySelectorAll('input[type="text"]');
1e.forEach(e=>{e.setAttribute("maxLength","400")});let t=document.querySelectorAll('input[type="search"]');t.forEach(e=>{e.setAttribute("maxLength","400")});let a=document.querySelectorAll('input[type="number"]');a.forEach(e=>{e.setAttribute("maxLength","400")});let i=document.querySelectorAll("textarea");i.forEach(e=>{e.setAttribute("maxLength","3000")})};return(0,r.useEffect)(()=>{E()},[]),(0,s.jsxs)(s.Fragment,{children:[p&&!k&&(0,s.jsxs)("div",{className:"container--question-card-hidden",children:[(0,s.jsx)("div",{className:"btn-ai-tools-wrapper",children:(0,s.jsx)(tL,{onClick:()=>{m()}})}),(0,s.jsxs)("div",{className:"question-card-container-expander",children:[(0,s.jsx)(tR,{title:t.title}),(0,s.jsx)(tM,{isExpanded:k,onClick:()=>v(!k)})]})]}),(!p||k)&&(0,s.jsxs)("div",{className:"question-card-container",children:[(0,s.jsx)("div",{className:"mb-30p",children:(0,s.jsx)(tL,{onClick:()=>{m()}})}),(0,s.jsxs)("div",{className:"question-card-header-actions",children:[(0,s.jsx)(tB,{disabled:a,onClick:()=>{g((0,tO.x0)(5)),null==u||u()}}),p&&(0,s.jsx)(tM,{isExpanded:k,onClick:()=>v(!k)})]}),(0,s.jsx)(tV.ZP,{transformErrors:(e,t)=>e.map(e=>("required"===e.name&&(e.message="This field is required"),e)),formData:n,disabled:a,className:"question-card-form",showErrorList:!1,validator:tP.ZP,schema:{title:t.title,description:t.description,...h.schema},uiSchema:h.uiSchema,onSubmit:o,onChange:l},f)]})]})};a(59212);var tH=a(28606),tW=a(23223),tz=e=>{let{selectedTool:t,handleBackToTools:a}=e,i=(0,y.I0)(),[n,l]=(0,r.useState)(!0),[o,c]=(0,r.useState)(),{trackUpgradeButtonClicked:d,trackUserRanOutOfCredits:u}=(0,H.Z)(),{isSubscribed:m,isLoggedIn:h,creditLimit:x}=(0,y.v9)(e=>{var t;return{isSubscribed:e.userSubscriptionReducer.isSubscribed,isLoggedIn:e.userSubscriptionReducer.isLoggedIn,creditLimit:null==e?void 0:null===(t=e.creditLimitReducer)||void 0===t?void 0:t.creditLimit}}),g=async()=>{l(!0);let e=await te(t);c(e),l(!1)};(0,r.useEffect)(()=>{g()},[]);let k=(0,ep.Nh)(),{messages:v,error:b,input:j,setInput:w,status:E,submitMessage:S,threadId:N,setMessages:A,append:T}=(0,tW.PD)({api:"/api/v1/tool/assistant",headers:{...k?{Authorization:"Bearer ".concat(k)}:{}},onError:e=>{console.error("error",e)}}),[I,C]=(0,r.useState)(),[D,G]=(0,r.useState)(),[F,P]=(0,r.useState)(!1),B=(0,r.useRef)(),L="in_progress"===E;(0,r.useEffect)(()=>{L||w(null!=I?I:"")},[L]),(0,r.useEffect)(()=>{if(b)try{let e=JSON.parse(b.message);429==e.status&&e.rateLimitHeaders&&(i((0,ex.r)(e.rateLimitHeaders)),P(!0),A(v.slice(0,-1)))}catch(e){ek.Tb(e)}},[b]);let R=e=>{let t=e.filter(e=>"data"==e.role);if(t.length>0){let a=t[t.length-1];a.data&&i((0,ex.r)(a.data)),A(e.filter(e=>"data"!=e.role))}};return((0,r.useEffect)(()=>{R(v)},[v]),(0,r.useEffect)(()=>{if(B.current){var e;T({role:"user",content:B.current},{data:{assistantId:null!==(e=null==o?void 0:o.assistantId)&&void 0!==e?e:"",replaceMessagesInThread:JSON.stringify(v)}}),B.current=void 0}},[v]),(0,r.useEffect)(()=>{F&&x&&!m&&(0==x.remainingLimit?(u(x.totalLimit),h?i((0,f.Z)()):setTimeout(()=>{i((0,p.y)("upgrade"))},3e3)):1==x.remainingLimit&&i((0,ey.O)()),P(!1))},[x,F]),n)?(0,s.jsx)(tf,{}):(o||(0,eg.redirect)("/not-found"),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:" tool-cards-wrapper w-full",children:(0,s.jsxs)("div",{className:"page-container-start tool-page-container cards-container",children:[(0,s.jsx)(tJ,{tool:o,loading:L,messages:v,persistentFormData:D,onChange:e=>{w(JSON.stringify(e.formData)),G(e.formData)},onSubmit:async(e,t)=>{m||(null==x?void 0:x.remainingLimit)!==0?(C(j),A([]),S(t,{data:{assistantId:o.assistantId,replaceMessagesInThread:JSON.stringify([])}})):h?i((0,f.Z)()):i((0,p.y)("upgrade"))},onClear:()=>{w(""),A([]),C(""),G(void 0)},handleBackToTools:a}),(0,s.jsx)(tG,{threadId:N,messages:v.slice(1),loading:L,allowConversation:o.allowConversation,onRegenerate:(e,t)=>{let a=v.findIndex(t=>t.id===e),i=a-1,n=v[i];B.current=null!=t?t:n.content,A(v.slice(0,i))},onCopy:e=>{var t;navigator.clipboard.writeText(tk(tF(null===(t=v.find(t=>t.id===e))||void 0===t?void 0:t.content)))},onSend:e=>{T({role:"user",content:e},{data:{assistantId:o.assistantId}})},onStop:()=>{},onBadResponse:e=>{i((0,tH.X)(N,e))}})]})})}))},tU=a(21761),tY=a(99737),tK=a(62067),tQ=a.n(tK),t$=a(42865),tX=()=>{let e=(0,y.I0)(),[t,a]=(0,r.useState)("All"),[i,n]=(0,r.useState)(""),[d,u]=(0,r.useState)(!0),[m,h]=(0,r.useState)([]),[x,p]=(0,r.useState)([]),[f,g]=(0,r.useState)(!1),{isLoggedIn:k}=(0,y.v9)(e=>({isLoggedIn:e.userSubscriptionReducer.isLoggedIn})),v=m.filter(e=>{var t;return e.title.toLowerCase().includes((null==i?void 0:null===(t=i.toLowerCase)||void 0===t?void 0:t.call(i))||"")}),b=v.filter(e=>{var a;return("All"===t||e.categories.includes(t))&&e.title.toLowerCase().includes((null==i?void 0:null===(a=i.toLowerCase)||void 0===a?void 0:a.call(i))||"")}),j=async()=>{u(!0);let[e,t]=await Promise.all([e9(),tt()]);h(e),p(t),u(!1)};(0,r.useEffect)(()=>{j()},[k]);let w=async e=>{x.includes(e)?(p(x.filter(t=>t!==e)),await ti(e)):(p([...x,e]),await ta(e))},E=e=>{g(e)};(0,r.useEffect)(()=>{S()},[]);let S=()=>
1{if(null===localStorage.getItem(t$.z)){let t=tQ()(tY.D.config.PROMO_AI_TOOL_EXPIRY_DATE).diff(tQ()(),"days");t>0&&setTimeout(()=>{e((0,tU.j)()),localStorage.setItem(t$.z,"true")},2e3)}};return(0,s.jsx)(s.Fragment,{children:f?(0,s.jsx)(tz,{selectedTool:f,handleBackToTools:()=>{g(!1),n(""),a("All")}}):(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"w-full",children:[(0,s.jsx)(l.default,{className:"mb-1",children:(0,s.jsx)(o.default,{span:24,children:(0,s.jsx)(tc,{toolsCount:m?m.length:0,onSearch:e=>{n(e),a("All")}})})}),(0,s.jsx)(l.default,{className:"mb-1",children:(0,s.jsx)(o.default,{span:24,children:(0,s.jsx)(ty,{title:"Favorites",tools:v.filter(e=>x.includes(e.slug)),noData:{icon:c.Tab,title:"Star a tool to add it to your favorites"},favouriteToolSlugs:x,onFavouriteToggle:w,fetching:d,loadAITool:E})})}),(0,s.jsx)(l.default,{className:"mt-1-4 mb-1",children:(0,s.jsx)(o.default,{children:(0,s.jsx)(tm,{currentFilter:t,onFilter:e=>{a(e)}})})}),(0,s.jsx)(l.default,{children:(0,s.jsx)(o.default,{span:24,children:(0,s.jsx)(ty,{title:"All Tools",tools:b,noData:{icon:c.Z30,title:"No tool matches your search"},favouriteToolSlugs:x,onFavouriteToggle:w,fetching:d,loadAITool:E})})})]})})})},t0=a(20530),t1=a(59401),t2=a(9101),t3=a(33050);a(73701);let{Title:t4,Text:t5}=V.default;var t6=()=>{let e=(0,y.I0)(),{isSuccess:t,purpose:a,preventRefresh:i,altTitle:l,altDescription:o}=(0,y.v9)(e=>({isSuccess:e.paymentResultModalReducer.isSuccess,purpose:e.paymentResultModalReducer.purpose,preventRefresh:e.paymentResultModalReducer.preventRefresh,altTitle:e.paymentResultModalReducer.altTitle,altDescription:e.paymentResultModalReducer.altDescription})),[c,d]=(0,r.useState)(3),[u,m]=(0,r.useState)(!1),x=()=>{m(!0),n&&clearTimeout(n),"renew"===a?(0,t1.Tr)():(0,t1.eg)()},p=()=>{n=setTimeout(()=>{d(e=>Math.max(e-1,0)),p()},1e3)};(0,r.useEffect)(()=>{t||p()},[t]);let f=()=>{n&&clearTimeout(n),i||window.location.replace(window.location.origin)};return(0,r.useEffect)(()=>f,[]),(0,r.useEffect)(()=>{c<=0&&x()},[c]),(0,s.jsx)("div",{className:"flex-column flex h-full",children:(0,s.jsxs)(P.default,{className:"card h-full",children:[(0,s.jsx)(tr.Z,{close:()=>{e((0,t0.o)())}}),(0,s.jsxs)("div",{className:"flex-column align-items-center flex",children:[(0,s.jsx)(Y(),{style:{height:"150px"},animationData:t?t2:t3,loop:!0}),(0,s.jsx)(t4,{level:3,className:"text-center",children:t?"You're Elite!":l||"Payment Failed"}),(0,s.jsx)(t5,{className:"subtitle-text mt1 text-center",children:t?"You're getting all of the advantages that Tutorly.ai has to offer!":o||"We were unable to process your payment, please try again."}),(0,s.jsxs)("div",{className:"mt4 justify-content-evenly flex w-full flex-row",children:[(0,s.jsx)(h.ZP,{type:t?"primary":"default",style:{width:t?"100%":"40%"},onClick:()=>{e((0,t0.o)())},children:t?"Close":"Cancel"}),!t&&(0,s.jsx)(h.ZP,{className:"justify-content-center flex",type:"primary",style:{width:"40%"},disabled:u,loading:u,onClick:()=>{x()},children:(0,s.jsxs)(t5,{type:u?"secondary":"",style:{display:"flex"},children:["Try Again \xa0",(0,s.jsx)(t5,{style:{borderRight:"1px solid ".concat(u?"gray":"white")}}),"\xa0",(0,s.jsx)("span",{style:{width:"20px"},children:c})]})})]})]})]})})};a(56816);var t7=JSON.parse('{"nm":"Talk-active","ddd":0,"h":32,"w":56,"meta":{"g":"@lottiefiles/toolkit-js 0.25.4"},"layers":[{"ty":4,"nm":"Shape Layer 4","sr":1,"st":48,"op":120,"ip":-4,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[-12.878,-5.63,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0,"y":1},"s":[43.506,16,0],"t":22,"ti":[-0.014,0,0],"to":[-0.014,-1.167,0]},{"o":{"x":0.333,"y":0},"i":{"x":0,"y":1},"s":[43.423,9,0],"t":28,"ti":[-0.028,-1.167,0],"to":[0.014,0,0]},{"s":[43.59,16,0],"t":34}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[50],"t":22},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":28},{"s":[50],"t":34}],"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Ellipse 1","ix":1,"cix":2,"np":3,"it":[{"ty":"el","bm":0,"hd":false,"mn":"ADBE Vector Shape - Ellipse","nm":"Ellipse Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"s":{"a":0,"k":[11.064,11.064],"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"c":{"a":0,"k":[0.1608,0.1961,0.2549],"ix":3}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9333,0.4235,0.302],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[-12.878,-5.63],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":1},{"ty":4,"nm":"Shape Layer 3","sr":1,"st":24,"op":96,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[-12.878,-5.63,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0,"y":1},"s":[28.923,16,0],"t":11,"ti":[0,0,0],"to":[-0.028,-1.167,0]},{"o":{"x":0.333,"y":0},"i":{"x":0,"y":1},"s":[28.756,9,0],"t":17,"ti":[-0.028,-1.167,0],"to":[0,0,0]},{"s":[28.923,16,0],"t":23}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833}
1,"s":[50],"t":11},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":17},{"s":[50],"t":23}],"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Ellipse 1","ix":1,"cix":2,"np":3,"it":[{"ty":"el","bm":0,"hd":false,"mn":"ADBE Vector Shape - Ellipse","nm":"Ellipse Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"s":{"a":0,"k":[11.064,11.064],"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"c":{"a":0,"k":[0.1608,0.1961,0.2549],"ix":3}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9333,0.4235,0.302],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[-12.878,-5.63],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":2},{"ty":4,"nm":"Shape Layer 2","sr":1,"st":0,"op":89,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[-12.878,-5.63,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0,"y":1},"s":[14.006,16,0],"t":0,"ti":[0,0,0],"to":[0,-1.167,0]},{"o":{"x":0.333,"y":0},"i":{"x":0,"y":1},"s":[14.006,9,0],"t":6,"ti":[0,-1.167,0],"to":[0,0,0]},{"s":[14.006,16,0],"t":12}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[50],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":6},{"s":[50],"t":12}],"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Ellipse 1","ix":1,"cix":2,"np":3,"it":[{"ty":"el","bm":0,"hd":false,"mn":"ADBE Vector Shape - Ellipse","nm":"Ellipse Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"s":{"a":0,"k":[11.064,11.064],"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"c":{"a":0,"k":[0.1608,0.1961,0.2549],"ix":3}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9333,0.4235,0.302],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[-12.878,-5.63],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":3},{"ty":4,"nm":"Shape Layer 1","sr":1,"st":0,"op":89,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[99.294,101.098,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[28.05,16.428,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Rectangle 1","ix":1,"cix":2,"np":3,"it":[{"ty":"rc","bm":0,"hd":false,"mn":"ADBE Vector Shape - Rect","nm":"Rectangle Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":6,"ix":4},"s":{"a":0,"k":[56.398,31.652],"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"c":{"a":0,"k":[0.1608,0.1961,0.2549],"ix":3}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.1608,0.1961,0.2549],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[-0.051,-0.424],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":4}],"v":"5.7.6","fr":24,"op":34,"ip":0,"assets":[]}'),t8=a(7893);a(12978);var t9=e=>{let{size:t=5,color:a="#ee6c4d",hoverEffect:i="#F38468",ringWidth:n=1,pulseSpeed:r=1.5,pulseScale:l=3}=e;return(0,s.jsxs)("div",{className:"ring-container",children:[(0,s.jsx)("div",{className:"circle"}),(0,s.jsx)("div",{className:"ringring"}),(0,s.jsx)("div",{className:"ringring"}),(0,s.jsx)("style",{children:"\n        .ring-container {\n          position: relative;\n          width: ".concat(t,"px;\n          height: ").concat(t,"px;\n          display: inline-block;\n          margin-bottom: 3px;\n          margin-right: 3px;\n        }\n        .circle {\n          width: 100%;\n          height: 100%;\n          background-color: ").concat(a,";\n          border-radius: 50%;\n          position: absolute;\n          top: 0;\n          left: 0;\n        }\n        .ring-container:hover .circle {\n            background-color: ").concat(i,";\n        }\n        .ringring {\n          border: ").concat(n,"px solid ").concat(a,";\n          border-radius: 50%;\n          height: 100%;\n          width: 100%;\n          position: absolute;\n          top: 0;\n          left: 0;\n          animation: pulsate ").concat(r,"s ease-out;\n          animation-iteration-count: infinite;\n          opacity: 0;\n        }\n        .ring-container:hover .ringring {\n            border: ").concat(n,"px solid ").concat(i,";\n        }\n        .ringring:nth-child(2) {\n          animation-delay: ").concat(r/2,"s;\n        }\n        @keyframes pulsate {\n          0% {\n            transform: scale(1);\n            opacity: 0.7;\n          }\n          100% {\n            transform: scale(").concat(l,");\n            opacity: 0;\n          }\n        }\n      ")})]})},ae=e=>{let{chatInputElem:t,onRequestOpen:a}
1=e,i=F.default.useBreakpoint(),n=!i.md&&!i.lg&&!i.xl&&!i.xxl,r=(0,y.I0)(),l=e=>{let{icon:t,title:a,testId:i,description:r,input:l,style:o,descriptionStyle:c,onClick:u}=e;return(0,s.jsxs)("div",{className:"intro-grid-item ".concat(u?"intro-grid-item-hoverable":""),style:{...o},"data-testId":i,children:[(0,s.jsx)(d.G,{icon:t,style:{height:"36px",color:"#ee6c4d"},className:"chat-into-icon fa-solid"}),(0,s.jsxs)("div",{className:"content-container",children:[(0,s.jsxs)("div",{className:"description",children:[(0,s.jsx)(V.default.Title,{level:5,style:{marginBottom:"5px"},children:a}),(0,s.jsx)(V.default.Text,{type:"secondary",className:"",style:{fontWeight:400,...c,marginBottom:"15px"},children:r})]}),(0,s.jsx)("div",{className:"btn-try-now",children:!l&&(0,s.jsx)(h.ZP,{size:"small",block:!0,style:{color:"#ee6c4d"},onClick:u,children:"Try now"})})]}),l&&(0,s.jsxs)("div",{className:"mt4 input-item w-full",children:[l,(0,s.jsx)("div",{children:(0,s.jsxs)(V.default.Title,{level:n?4:3,children:[(0,s.jsx)("span",{children:"Unleash your "}),(0,s.jsx)("span",{style:{color:t8.Z.accentColor},children:"productivity"})]})})]})]})};return(0,s.jsxs)("div",{className:"flex-column align-items-center justify-content-center flex h-full",children:[(0,s.jsxs)("div",{className:"flex-column align-items-center gap-20px chat-intro-section flex text-center",children:[(0,s.jsxs)("div",{style:{marginTop:"40px"},children:[tQ()(tY.D.config.PROMO_AI_TOOL_EXPIRY_DATE).diff(tQ()(),"days")>0&&(0,s.jsxs)(h.ZP,{className:"action-show-ai-promo",onClick:()=>{r((0,tU.j)())},type:"default",children:[(0,s.jsx)(t9,{}),"\xa0 AI Tools are now live! \uD83C\uDF89"]}),(0,s.jsxs)(V.default.Title,{level:n?2:1,"data-testId":"welcome",className:"intro-main-heading",children:[(0,s.jsx)("span",{children:"Welcome to "}),(0,s.jsx)("span",{style:{color:t8.Z.accentColor},children:"Tutorly.ai"})]})]}),(0,s.jsxs)(V.default.Text,{type:"secondary",className:"mt1",style:{fontSize:n?"12px":"16px",fontWeight:400},children:["Your personal"," ",(0,s.jsx)("span",{style:{color:"var(--blue)",fontWeight:"bold",opacity:.8},children:"A.I. Homework Assistant"})," ","trained on millions of courses."]})]}),(0,s.jsx)("div",{className:"intro-chat-input",children:l({input:t,style:{gridArea:"chat"}})}),(0,s.jsxs)("div",{className:"intro-grid",children:[l({icon:c.Psp,title:"Ask",testId:"title-ask",description:"Get fact-checked answers to any question!",style:{gridArea:"ask"},onClick:()=>{a&&a("ask")}}),l({icon:c.CK2,title:"Essay",description:"Generate your outline - use it to create an essay!",style:{gridArea:"essay"},testId:"title-essay",onClick:()=>{a&&a("essay")}}),l({icon:c.IwR,title:"Paraphrase",description:"Reword any content into a new voice!",style:{gridArea:"paraphrase"},testId:"title-paraphrase",onClick:()=>{a&&a("paraphrase")}}),l({icon:c.qHV,title:"AI Tools",description:"An extensive array of 100+ AI tools tailored for you!",style:{gridArea:"aitools"},testId:"ai-tools",onClick:()=>{a&&a("ai tools")}})]})]})},at=a(25566);let{Title:aa,Text:ai,Link:an}=V.default;var as=e=>{var t;let{trackUserRanOutOfCredits:a}=(0,H.Z)(),i=F.default.useBreakpoint(),n=!i.md&&!i.lg&&!i.xl&&!i.xxl,{onAnswer:l,onAnswerComplete:o,onNewQuery:u,onAnswerError:m,onAnswerRetryError:x,onRequestOpen:g}=e,{answer:k}=e,v=(0,y.I0)(),b=r.useRef(),{isSubscribed:j,isLoggedIn:w,creditLimit:E}=(0,y.v9)(e=>({isSubscribed:e.userSubscriptionReducer.isSubscribed,isLoggedIn:e.userSubscriptionReducer.isLoggedIn,isAmbassador:e.userSubscriptionReducer.isAmbassador,ocrModalResult:e.ocrModalReducer.result,creditLimit:e.creditLimitReducer.creditLimit})),{stopDemo:S}=r.useContext(Q.$),[N]=ec.Z.useForm(),[A,T]=r.useState(!1),I="Please answer questions simply and briefly as Tutorly.ai, an AI homework assistant. \n\n	Format your answers using HTML tags for readability. \n	- Use <h3> for headings.\n	- Use <p> for text paragraphs.\n	- Emphasize code or variables with <code>, and key points with <strong>.\n	- List items should be in <ul> for unordered lists and <ol> for ordered lists.\n	- When doing math, use <ol>\n	- When showing steps, use <ol>\n	- Use <hr> for dividers and <br> for line breaks.\n	- ALWAYS provide lists in a formatted way\n	```",[C,D]=r.useState(I),[G,P]=r.useState(!1),[B,L]=r.useState({prompt:null}),R=(0,ep.PR)(),Z=()=>{L({prompt:null}),null==u||u(!0)};r.useEffect(()=>{E&&!j&&(null==k?void 0:k.length)>0&&(0==E.remainingLimit?(a(E.totalLimit),w?v((0,f.Z)()):setTimeout(()=>{v((0,p.y)("upgrade"))},3e3)):1==E.remainingLimit&&v((0,ey.O)()))},[E]),r.useEffect(()=>()=>{(null==b?void 0:b.current)&&(null==b||b.current.abort(),b.current=null,null==u||u(!1))},[]);let O=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(em.Z,{maxLength:400,autoFocus:!0,disabled:A||E&&0===E.remainingLimit,preventResize:!0,hideToolbar:!0,onEnter:()=>{B.prompt&&0!==B.prompt.trim().length&&!(B.prompt.length>400)&&N.submit()},className:"chat-input",value:B.prompt,errors:N.getFieldError("prompt"),name:"prompt",textAreaStyle:{transition:"border 0.3s",...(null==B?void 0:B.prompt)&&B.prompt.length>0?{minHeight:"100px"}:{}},initialplaceholdertext:"Ask Tutorly anything...",onChange:e=>{S(),L({...B,prompt:e.target.value})},formItemProps:{name:["prompt"],rules:[]},hideValidationMessage:!0,submitButton:{render:()=>(0,s.jsx)("div",{style:{height:"50px",width:"50px"},className:"justify-content-center align-items-center flex",children:(0,s.jsx)(h.ZP,{type:"primary",className:"justify-content-center align-items-center flex",style:{height:"30px",width:"30px"},disabled:A||E&&0===E.remainingLimit&&j||!B.prompt||0===B.prompt.trim().length||B.prompt.length>400,loading:A,onClick:()=>{(null==E?void 0:E.remainingLimit)===0?w?v((0,f.Z)()):v((0,p.y)()):N.submit()},children:!A&&(0,s.jsx)(d.G,{icon:j||(null==E?void 0:E.remainingLimit)!==0?c.OH3:c.nmd})})})}}),(null==E?void 0:E.remainingLimit)===0&&(0,s.jsx)(V.default.Text,{className:"mt1",type:"secondary",children:j?"All work and no play makes ".concat((null==R?void 0:R.name)?null==R?void 0:null===(t=R.name)||void 0===t?void 0:t.split(" ")[0]:"Jack"," dull and weary."):(0,s.jsxs)(s.Fragment,{children:["You've used all of your ",(0,s.jsx)(ef.Z,{})," for the day.\xa0",(0,s.jsxs)(V.default.Link,{style:{fontSize:"inherit"},onClick:()=>{v((0,eh.f)())},children:["Get More ",(0,s.jsx)(ef.Z,{}),"!"]})]})})]});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ec.Z,{className:"flex flex-1",form:N,initialValues:{...B},onFinish:async()=>{let e,t;if(A||E&&0===E.remainingLimit)return;T(!0);let a=[...k,{role:"user",content:B.prompt,message:B.prompt},{role:"assistant",content:null,message:null}];null==l||l(a,!0),L({prompt:null});let i=!1,n=!1,s=[],r="",c={mock:at.env.REACT_APP_MOCK,conversation:k.map(e=>({role:e.role,content:e.message}))};
1Object.keys(B).forEach(e=>{B[e]&&(c[e]=B[e])}),b.current=new AbortController;let d="";(0,J.k)({path:"v1/completion/chat/completion-stream",method:"post",data:JSON.stringify(c),responseType:"stream",signal:b.current.signal,onData:o=>{null==u||u(!1);try{let c=new TextDecoder;o=c.decode(o);let u=o.split("data: ");for(let o of u){let c;if(!(""===o||o.includes("[DONE]"))){try{c=JSON.parse(d+o),d=""}catch(e){d+=o;continue}if((null==c?void 0:c.error)&&(console.error(JSON.stringify(c.error)),t=c.error.message),(null==c?void 0:c.retryError)&&(console.warn(JSON.stringify(c.retryError)),null==x||x({...B,forType:"Ask"},c.retryError)),(null==c?void 0:c.error)&&(null==c?void 0:c.rateLimitHeaders)){v((0,ex.r)(c.rateLimitHeaders));continue}if((null==c?void 0:c.remainingLimit)!=null){v((0,ex.r)(c));continue}if((null==c?void 0:c.inputPrompt)&&(e=c.inputPrompt),null==c?void 0:c.choices){let e=c.choices[0].text||c.choices[0].delta.content||"";if(r+=e,null!==c.choices[0].finish_reason&&(n="length"===c.choices[0].finish_reason),r&&"Null"!=r&&"string"==typeof r&&(i=i||"\n"!==r)){s.push(e);try{let e=tk(s.join(""));a.pop(),a=[...a,{role:"assistant",content:e||"",message:e}],null==l||l(a,!0)}catch(e){ek.Tb(e),console.error("parsingIssue:",(null==e?void 0:e.message)||e)}let t=document.getElementsByClassName("result-text")[0];null==t||t.scrollTo(0,t.scrollHeight)}}}}}catch(e){ek.Tb(e),console.error(e)}},onEnd:async()=>{e&&e.length>0&&(a[a.length-1]={...a[a.length-1],inputPrompt:e},null==l||l(a,!0)),T(!1),t&&t.length>0?null==m||m({...B,forType:"Chat"},{...E,wasResponseTruncated:n},t):null==o||o({...B,forType:"Chat"},{...E,wasResponseTruncated:n},a.map(e=>{let t={...e,message:"user"===e.role?null:e.message},a={};return Object.keys(t).forEach(e=>{t[e]&&(a[e]=t[e])}),a}))}})},children:(e,t)=>(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"query-card-container",children:[(0,s.jsxs)("div",{className:"flex-column flex flex-1",style:{backgroundColor:"#2D3746",borderRadius:"10px"},children:[(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"clear-chat-container",children:k&&Array.isArray(k)&&k.length>0&&(0,s.jsxs)(h.ZP,{type:"ghost",size:"small",className:"clear-chat-btn",disabled:A,onClick:()=>{Z()},children:[(0,s.jsx)("span",{children:"Clear Chat"}),(0,s.jsx)(d.G,{className:"ml2",icon:c.Vui})]})})}),(0,s.jsxs)("div",{className:"result-text chat-intro-content-box",children:[(!k||!Array.isArray(k)||0===k.length)&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{className:"align-items-center justify-content-center intro-container flex w-full flex-1",children:(0,s.jsx)(ae,{chatInputElem:O,onRequestOpen:g})})}),k&&Array.isArray(k)&&k.map((e,t)=>{let{role:a,content:i,inputPrompt:n}=e;return(0,s.jsxs)(ai,{className:"message-box",children:[(0,s.jsxs)("div",{className:"justify-content-between flex",style:{color:"user"===a?"#98c1d9":t8.Z.accentColor,fontWeight:"bold"},children:["user"===a?"User":"Assistant",":",!1]}),"assistant"===a?(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:tk(i)}}):(0,s.jsx)(s.Fragment,{children:i}),"assistant"===a&&t===k.length-1&&A&&(0,s.jsx)("div",{className:"align-items-start justify-content-start mt2 flex",children:(0,s.jsx)(Y(),{id:"typing-animation",style:{height:"20px",width:"35px"},animationData:t7,loop:!0})})]},"message".concat(t))})]})]}),k&&Array.isArray(k)&&k.length>0&&(0,s.jsx)("div",{className:"align-items-center mt2 chat-element-sticky flex w-full",children:(0,s.jsx)("div",{className:"flex-column flex flex-1",children:O})})]})})}),G&&(0,s.jsx)(ew.Z,{isOpen:G,fullscreen:n,close:()=>{P(!1)},title:(0,s.jsx)(tr.Z,{titleIcon:c.UJf,modalTitle:"Edit System Prompt (Staging Only)",close:()=>{P(!1)}}),footer:null,children:(0,s.jsxs)("div",{className:"flex-column flex",children:[(0,s.jsx)(V.default.Text,{children:"All changes will be saved automatically. Close the modal when you're done. Please don't forget to include two new lines then \"---\" then two new lines at the very end of the prompt."}),(0,s.jsx)(em.Z,{maxLength:1500,className:"system-prompt-input mt2",preventResize:!0,hideToolbar:!0,value:C,name:"systemPrompt",initialplaceholdertext:"Enter your system prompt...",onChange:e=>{D(e.target.value)},formItemProps:{name:["systemPrompt"],rules:[{required:!0,message:"System Prompt is required"}]}}),(0,s.jsx)("div",{className:"mt2",children:(0,s.jsx)(h.ZP,{className:"w-full",type:"default",onClick:()=>{D(I)},children:"Reset"})})]})})]})},ar=a(38971),al=a(23758);
1let{useBreakpoint:ao}=F.default;var ac=e=>{var t,a,i,n,l,o;let{onTabChange:u,setAnswer:m,answer:h,setTabActiveKey:x,tabActiveKey:p}=e,g=(0,eg.useSearchParams)(),k=(0,y.I0)();(0,eg.usePathname)();let{remoteConfiguration:v}=(0,r.useContext)(ar.FirebaseContext),{trackQuestionAsked:b,trackQuestionFailed:j,trackUpgradeFailed:w,trackUpgradeSuccessful:E,trackUpgradeButtonClicked:S}=(0,H.Z)(),{ocrModal:N,isSubscribed:A,isLoggedIn:T,paymentResultModal:I}=(0,y.v9)(e=>({ocrModal:e.ocrModalReducer,isAmbassador:e.userSubscriptionReducer.isAmbassador,isSubscribed:e.userSubscriptionReducer.isSubscribed,isLoggedIn:e.userSubscriptionReducer.isLoggedIn,paymentResultModal:e.paymentResultModalReducer})),[C,D]=r.useState(),[G,F]=r.useState(),[V,O]=r.useState(null),[M,q]=r.useState(),[_,W]=r.useState(!1),[z,U]=r.useState(!1),[Y,K]=r.useState(!1),{unsubscribe:Q,registerHandler:$,resetState:X}=(0,al.a)({cookie:{daysToExpire:15,key:"use-exit-intent"},desktop:{triggerOnIdle:!1,useBeforeUnload:!1,triggerOnMouseLeave:!0,delayInSecondsToTrigger:1},mobile:{triggerOnIdle:!0,delayInSecondsToTrigger:5}});$({id:"openOnlyOnePromotionModal",handler:()=>{let e=document.getElementsByClassName("ant-modal-body");e.length>0?X():A||k((0,ey.O)())}});let et=ao(),ea=!et.md&&!et.lg&&!et.xl&&!et.xxl,ei=(0,ep.PR)(),en=e=>{e&&em(),W(e);let t=document.getElementsByClassName("results-card");t&&t.length>0&&t[0].scrollIntoView()},es=(e,t)=>{G&&F(),t?m(e):m(t=>[...t,e])},el=async(e,t,a)=>{var i,n,s,r;K(t.wasResponseTruncated),q(t.aiDetection);let l={};Object.keys(e).forEach(t=>{e[t]&&(l[t]=e[t])}),l={...l,userWasSubscribed:!1,lastQueryId:"Chat"===e.forType?V:null,result:"Chat"===e.forType?a:a.join(""),wasTruncated:t.wasResponseTruncated,durationOfAnswer:0};let o=await (0,J.k)({path:"v1/query/log",method:"post",data:JSON.stringify(l)});(null==o?void 0:null===(i=o.data)||void 0===i?void 0:i.error)?console.error("Not logged:",null==o?void 0:null===(r=o.data)||void 0===r?void 0:r.message):(O(null==o?void 0:null===(s=o.data)||void 0===s?void 0:null===(n=s.data)||void 0===n?void 0:n.id),b({type:l.forType,input:l.input,prompt:l.prompt,outline:l.outline,paragraphCount:l.paragraphCount},l.result,-1))},eo=async(e,t,a)=>{F("Oops! We encountered an unexpected error. Please try again."),j({type:e.forType,input:e.input,prompt:e.prompt,outline:e.outline,paragraphCount:e.paragraphCount},a,-1)},ec=async(e,t)=>{j({type:e.forType,input:e.input,prompt:e.prompt,outline:e.outline,paragraphCount:e.paragraphCount},t,-1)},ed=async e=>{U(e)},eu=[{title:"Chat with your tutor.",label:"Chat",icon:c.vto,route:"/chat",testId:"tab-chat",render:()=>(0,s.jsx)(as,{onNewQuery:en,onAnswer:es,onAnswerComplete:el,onAnswerError:eo,onAnswerRetryError:ec,onDetectingScore:ed,previousState:C,answer:h,error:G,onRequestOpen:e=>{let t=eu.filter(t=>t.label.toLowerCase()===e.toLowerCase())[0];t&&x(t.index)}})},{title:"Paste your question, assignment, or prompt below.",label:"Ask",icon:c.Psp,route:"/",testId:"tab-ask",render:()=>(0,s.jsx)(ej,{onNewQuery:en,onAnswer:es,onAnswerComplete:el,onAnswerError:eo,onAnswerRetryError:ec})},{title:"Generate an outline, then edit the outline, lastly generate your essay.",label:"Essay",icon:c.CK2,route:"/essay",testId:"tab-essay",render:()=>(0,s.jsx)(eY,{onNewQuery:en,onAnswer:es,onAnswerComplete:el,onAnswerError:eo,onAnswerRetryError:ec,onDetectingScore:ed})},{title:"Paraphrase anything",label:"Paraphrase",icon:c.IwR,route:"/paraphrase",testId:"tab-paraphrase",render:()=>(0,s.jsx)(e2,{onNewQuery:en,onAnswer:es,onAnswerComplete:el,onAnswerError:eo,onAnswerRetryError:ec,onDetectingScore:ed,previousState:C})},{title:"AI Tools",label:"AI Tools",icon:c.Z30,route:"/ai-tools",testId:"tab-aitools",render:()=>(0,s.jsx)(tX,{})}];eu=eu.map((e,t)=>({...e,index:"".concat(t+1)})),(0,r.useEffect)(()=>{let e=window.location.href;if(!e)return;if(v){if(e.includes("?success")){let e=new URLSearchParams(window.location.search),t=e.get("sessionId");(0,J.k)({path:"v1/payment/get-session-description?sessionId=".concat(t),method:"get"}).then(e=>{var t;let a=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.data,i=!1;a.amount_total<a.amount_subtotal&&(i=!0),a.customer_details&&a.customer_details.email&&rewardful("convert",{email:a.customer_details.email}),E({withPromo:i}),(0,ep.fL)()}).catch(e=>{ek.Tb(e),console.error("error response:",e)}),k((0,t0.R)(!0))}e.includes("?failure")&&(k((0,t0.R)(!1)),w());let t=new URLSearchParams(g.toString());for(let[e,a]of Object.entries({chat:"1",ask:"2",essay:"3",paraphrase:"4","ai-tools":"5"}))if(t.has(e)){x(a),t.delete(e);let i="".concat(window.location.pathname).concat(t.toString()?"?".concat(t.toString()):"");window.history.pushState({},"",i);break}if(t.has("section-id")){let e=t.get("section-id"),a=document.getElementById(e);if(a){a.scrollIntoView({behavior:"smooth"}),t.delete("section-id");let e="".concat(window.location.pathname,"?").concat(t.toString());window.history.pushState({},"",e)}}}if(e.includes("?resetPassword")){let e=new URLSearchParams(window.location.search),t=e.get("prt");t&&t.length>0&&k((0,eJ.m)(t))}let t=null==ei||!ei.token||Date.now()>=1e3*(0,ep.t5)(ei.token).exp;return e.includes("?signinExt")&&(T&&!t?window.location.href="".concat(window.location.origin,"?callbackSigninExt=success&userInfo=").concat(JSON.stringify({...(0,ep.PR)(),isSubscribed:A}
1)):k((0,ee.M)("signinExt"))),e.includes("?upgradeExt")&&(A?window.location.href="".concat(window.location.origin,"?callbackSigninExt=success&userInfo=").concat(JSON.stringify({...(0,ep.PR)(),isSubscribed:A})):T&&!t?k((0,f.Z)()):k((0,ee.M)("upgradeExt"))),()=>{Q()}},[v,g]);let em=()=>{m([]),C&&D(null),M&&q(null),G&&F(),z&&U(!1),Y&&K(!1),V&&O(null)},eh=e=>{em();let t=eu[parseInt(e)-1];x(t.index),u&&u(t.label)};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"container-content flex-column container",children:[(0,s.jsx)("div",{className:"menu-container w-full",children:(0,s.jsx)(Z.default,{mode:"horizontal",selectedKeys:[p],style:{borderBottom:"unset"},children:eu.map((e,t)=>{let{icon:a,label:i,testId:n,tooltipText:r,isNew:l}=e;return(0,s.jsx)(Z.default.Item,{onClick:()=>eh(String(t+1)),className:"tab-menu-item",style:{padding:"0px",marginLeft:"20px"},"data-testId":n,children:(0,s.jsx)(L.Z,{title:r,color:"#28303F",children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.G,{icon:a}),(0,s.jsxs)("span",{children:[" ",i]}),l&&(0,s.jsx)(R.Z,{count:"New",offset:[0,-2],className:"badge-new"})]})})},t+1)})})}),(0,s.jsxs)("div",{className:"form-container w-full ".concat(ea?"form-container-small":""," ").concat(["Chat","Chat Book","AI Tools"].includes(null===(t=eu[parseInt(p)-1])||void 0===t?void 0:t.label)?"form-container-single-row":""," tab-").concat(p),children:[(0,s.jsx)(P.default,{className:"left-rail-area flex",children:(0,s.jsx)(B.Z,{destroyInactiveTabPane:!0,size:"large",type:"line",className:"nav-tab",moreIcon:null,tabBarStyle:{display:"none"},onChange:e=>{em();let t=eu[parseInt(e)-1];x(t.index),u&&u(t.label)},activeKey:p,items:eu.map((e,t)=>{let{icon:a,label:i,testId:n,render:r,disabled:l,tooltipText:o,isNew:c}=e,u=String(t+1),m=()=>(0,s.jsxs)("span",{children:[(0,s.jsx)(d.G,{icon:a}),(0,s.jsx)("span",{className:"ml2",children:i})]}),h=c?()=>(0,s.jsx)("span",{children:(0,s.jsx)(R.Z,{count:"New",offset:[0,-2],className:"badge-new",children:m()})}):m;return{label:(0,s.jsx)(s.Fragment,{children:o?(0,s.jsx)(L.Z,{title:o,color:"#28303f",children:h()}):h()}),key:u,children:r(),disabled:l}})})}),!["Chat","Chat Book","AI Tools"].includes(null===(a=eu[parseInt(p)-1])||void 0===a?void 0:a.label)&&(0,s.jsx)("div",{className:"right-rail-area flex","data-testId":(null===(i=eu[parseInt(p)-1])||void 0===i?void 0:i.label)==="Ask"?"ask-response":(null===(n=eu[parseInt(p)-1])||void 0===n?void 0:n.label)==="Essay"?"essay-response":"",children:(0,s.jsx)(er,{answer:h,aiDetection:M,isDetectingScore:z,navigateTo:(e,t)=>{em();let a=eu.filter(t=>t.route===e)[0];a&&(x(a.index),t&&D(t))},error:G,preventParentFill:ea,isLoading:_,wasResponseTruncated:Y,lastQueryId:V,useAnswerProp:(null===(l=eu[parseInt(p)-1])||void 0===l?void 0:l.label)==="History",useAnimationIndex:(null===(o=eu[parseInt(p)-1])||void 0===o?void 0:o.label)==="Essay"?2:1,hideDisclaimer:!0})})]})]}),N.isOpen&&(0,s.jsx)(eE,{children:(0,s.jsx)(eq,{onClose:e=>k((0,e_.m)(e))})}),I.isOpen&&(0,s.jsx)(ew.Z,{isOpen:I.isOpen,fullscreen:ea,close:()=>{k((0,t0.o)())},reducedPadding:!0,width:450,title:(0,s.jsx)(s.Fragment,{}),footer:null,children:(0,s.jsx)(t6,{})})]})},ad=[["What eventually happens to a gas if its pressure is increased?\n    \nA. It condenses\nB. It evaporates\nC. It melts","Answer: A. \n\nIt condenses. When the pressure of a gas is increased, the molecules of the gas become closer together, causing the temperature to decrease. As the temperature decreases, the kinetic energy of the molecules also decreases, which causes the gas to condense into a liquid. This process is known as condensation."],["What is the derivative of (x + 1) sin x?\n\na. (x + 1) tan x\nb. sin x\nc. sin x + (x + 1) cos x\nd. (x + 2) cos x","c. sin x + (x + 1) cos x\n\nThe derivative of (x + 1) is 1.\nThe derivative of sin x is cos x.\nThe derivative of (x + 1) sin x is the sum of the derivatives of each term, which is 1 cos x + (x + 1) (-sin x).\nSimplifying, we get cos x - (x + 1) sin x, which is equal to option c."],["Write an outline for a 5 paragraph essay on the following prompt.\n\nDescribe the causes and effects of climate change.","I. Introduction \nA. Definition of climate change \nB. Overview of causes and effects \n\nII. Causes of Climate Change \nA. Burning of Fossil Fuels \nB. Deforestation \nC. Animal Agriculture \n\nIII. Effe
1cts of Climate Change \nA. Rising Sea Levels \nB. Increased Extreme Weather Events \nC. Loss of Biodiversity \n\nIV. Dealing with Climate Change \nA. Mitigation Efforts \nB. Adaptation Strategies \n\nV. Conclusion \nA. Summary of Causes and Effects \nB. Call to Action "]],au=[["Why should students use Tutorly.AI - the best homework solving AI in the world for their homework?","I. Introduction\n  a. Overview of Tutorly.AI\n  b. Benefits of using Tutorly.AI\nII. Time Saving Benefits\n  a. Instant Answers\n  b. Automatically Formatted Answers\nIII. Accuracy Benefits\n  a. Sources and Explanations\n  b. Quality Assurance\nIV. Grade Benefits\n  a. Essay Writing\n  b. Referencing\nV. Accessibility Benefits\n  a. Availability 24/7\n  b. Versatility\nVI. Cost Benefits\n  a. Free Trial\n  b. Affordable Pricing\nVII. Additional Benefits\n  a. Learning Opportunities\n  b. Variety of Subjects\nVIII. Conclusion\n  a. Recap of Benefits\n  b. Summary of Tutorly.AI","The Benefits of Using Tutorly.AI\nTutorly.AI is a revolutionary artificial intelligence (AI) platform that provides students with accurate and reliable solutions to their homework problems. It is designed to offer a variety of benefits, making it the best AI-based homework solving platform in the world. This platform can answer any question, explain the answers, show its work, provide sources, and even write essays. The following are some of the key benefits of using Tutorly.AI.\n    \nTime Saving Benefits\nTutorly.AI saves students time by providing instant answers to their homework questions. This eliminates the need to research the answers manually, or wait for a tutor to answer the questions. Additionally, the platform automatically formats the answers, making it easier and faster for students to complete their homework.\n    \nAccuracy Benefits\nTutorly.AI provides accurate answers with sources and explanations, ensuring that students can trust the answers they receive. The platform offers quality assurance, ensuring that the answers are checked for accuracy before they are sent to students. This ensures that students receive the best possible answers for their homework.\n    \nGrade Benefits\nTutorly.AI can also write essays for students, allowing them to get higher grades on their essays. The platform provides referencing for the essays, which is essential for getting a good grade. This saves students time and effort, as they do not have to search for the sources themselves.\n    \nAccessibility Benefits\nTutorly.AI is available 24/7, making it accessible to students at any time. This is especially useful for students who have a busy schedule or are unable to find a tutor at a certain time. Additionally, the platform is versatile and can answer questions from a variety of subjects, making it easy for students to find answers to their homework questions, no matter what the subject.\n    \nCost Benefits\nTutorly.AI offers a free trial, allowing students to try it out before committing to a subscription. The platform also offers an affordable pricing plan, making it accessible to all students. This allows students to get help with their homework without breaking the bank.\n    \nAdditional Benefits\nTutorly.AI offers learning opportunities for students, as it can explain the answers in detail and provide sources. This allows students to learn from their mistakes and improve their understanding of the subject. Additionally, the platform can answer questions from a variety of subjects, making it perfect for students who are struggling with their homework.\n\nIn conclusion, Tutorly.AI offers many benefits for students, including time saving, accuracy, grade, accessibility, cost, and additional benefits. These benefits make it the best homework solving AI in the world. Overall, Tutorly.AI is an AI that can answer any question, provide explanations and sources, write essays, and format them correctly. It is the perfect tool for students who want to save time and get the best grades on their homework."],["Write a persuasive essay in favor of banning homework in schools.","I. Introduction\n    a. Definition of homework\n    b. Overview of the issue\n    c. Thesis statement\nII. Advantages of Banning Homework\n    a. Increased time for family bonding\n    b. More time for students to pursue their interests\n    c. Reduced stress levels\nIII. Disadvantages of Banning Homework\n    a. Lack of practice in time management\n    b. Less review of topics\n    c. Less emphasis on independent learning\nIV. Advantages of Homework\n    a. Reinforcement of concepts\n    b. Preparation for college and workplace\n    c. Ability to work independently\nV. Conclusion\n    a. Summary of arguments\n    b. Restate thesis statement\n    c. Final thoughts","    Homework is a set of tasks assigned to students by their teachers to be completed outside the traditional classroom setting. It has long been a source of debate among parents, teachers, and students alike, as to whether it should be a part of education or not. This essay will argue in favor of banning homework in schools as it can lead to increased family bonding, more time for students to pursue their interests, and reduced stress levels.\n    \n    O
1ne of the biggest advantages of banning homework is that it would leave more time for families to bond. With more time in the evenings, families can spend quality time together, developing strong relationships and creating memories that will last a lifetime. Additionally, students would have more time to pursue their individual interests. Whether it’s playing a musical instrument, learning a new language, or volunteering in the community, students could use this time to explore their passions and increase their knowledge. Finally, banning homework can help to reduce stress levels. With less of a workload, students would be able to better manage their time and focus on the learning that takes place in the classroom.\n    \n    One of the biggest disadvantages of banning homework is that students would lack the practice in time management. With less homework, students may not learn how to properly manage their time, thus leading to more stress in their lives. Additionally, without homework, students would have less review of the topics taught in school. Without the extra practice, students may struggle to understand the material and could fall behind in their studies. Finally, by banning homework, there is a less emphasis on independent learning. Without homework, students would not be able to practice their skills of independent research and analysis, which are essential for college and the workplace.\n    \n    Advantages of Homework Despite the disadvantages of homework, there are still some advantages that it can bring. Homework can help to reinforce concepts and ideas that have been taught in the classroom. With practice and repetition, students can better understand and remember the material. Additionally, homework can help to prepare students for college and the workplace. With the additional practice, students will be better equipped to understand difficult concepts and apply them to real-world situations.  Finally, homework can help students develop their ability to work independently. Through homework, students learn how to work without direct supervision, which can be an invaluable skill in the future.\n    \n    In conclusion, this essay has argued in favor of banning homework in schools, as it can lead to increased family bonding, more time for students to pursue their interests, and reduced stress levels.  Despite this, there are still some advantages to homework, such as reinforcement of concepts, preparation for college and the workplace, and the ability to work independently. However, with careful consideration, these advantages can still be achieved with alternative methods. For this reason, homework should be banned in schools as it can lead to more positive outcomes for both students and families."]],am=e=>{let{setDemoContentArray:t,demoContentArray:a,setTabActiveKey:i,tabActiveKey:n,setAnswer:r,answer:l}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(k.default,{children:(0,s.jsx)(Q.t,{contentArray:a,children:(0,s.jsx)(ac,{onTabChange:e=>{"Essay"===e?t(au||[]):"Ask"===e&&t(ad||[])},setTabActiveKey:i,tabActiveKey:n,setAnswer:r,answer:l})})})})},ah=e=>{let{testimonials:t,faqs:a,blogs:i}=e,[n,l]=(0,r.useState)("1"),[o,c]=(0,r.useState)([]),[d,u]=(0,r.useState)(ad||[]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(am,{setDemoContentArray:u,demoContentArray:d,setTabActiveKey:l,tabActiveKey:n,setAnswer:c,answer:o}),"1"==n&&0==o.length&&(0,s.jsx)("div",{className:"flex items-center justify-center",children:(0,s.jsxs)("div",{className:"seo-section",children:[(0,s.jsx)(m,{}),(0,s.jsx)(I,{testimonials:t}),(0,s.jsx)(v,{}),(0,s.jsx)(G,{blogs:i}),(0,s.jsx)(w,{faqs:a})]})})]})},ax=e=>{let{testimonials:t,faqs:a,blogs:i}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(ah,{testimonials:t,faqs:a,blogs:i})})}},77784:function(e,t,a){"use strict";var i=a(57437);a(2265),a(32486);var n=a(16691),s=a.n(n),r=a(43918),l=a(22826),o=a(50894),c=a(62067),d=a.n(c);t.Z=e=>{let{image:t,publishedAt:a,title:n,category:c,slug:u,layout:m="vertical"}=e;return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("a",{className:"blog-item",href:"/resources/blogs/"+u,children:"vertical"==m?(0,i.jsx)("div",{className:"blog-item-vertical h-full",children:(0,i.jsx)(o.default,{hoverable:!0,cover:t&&(0,i.jsx)(s(),{src:t.url,alt:t.alt,width:t.width,height:t.height,style:{width:"100%",height:"250px",objectFit:"cover"}}),children:(0,i.jsxs)("div",{className:"info",children:[a&&(0,i.jsx)("p",{className:"published-at",children:d()(a).format("DD MMM YYYY")}),(0,i.jsx)("p",{className:"title",children:n}),(0,i.jsx)("p",{className:"category",children:c})]})})}):(0,i.jsx)("div",{className:"blog-item-horizontal",children:(0,i.jsxs)(r.default,{children:[(0,i.jsx)(l.default,{xs:24,sm:24,md:24,lg:7,children:(0,i.jsx)("div",{className:"banner-image",children:(0,i.jsx)(s(),{src:t.url,alt:t.alt,width:t.width,height:t.height,style:{width:"100%",height:"auto"}})})}),(0,i.jsx)(l.default,{xs:24,sm:24,md:24,lg:17,children:(0,i.jsxs)("div",{className:"info",children:[(0,i.jsx)("p",{className:"published-at",children:d()(a).format("DD MMM YYYY")}),(0,i.jsx)("p",{className:"title",children:n}),(0,i.jsx)("p",{className:"category",children:c})]})})]})})})})}},60885:function(){},73828:function(){},34510:function(){},2591:function(){},31523:function(){},79207:function(){},43157:function(){},58111:function(){},30448:function(){},5100:function(){},34977:function(){},99945:function(){},13532:function(){},87004:function(){},7082:function(){},56554:function(){},16681:function(){},59212:function(){},24046:function(){},53652:function(){},99965:function(){},32486:function(){},9327:function(){},56816:function(){},22426:function(){},28859:function(){},12978:function(){},6521:function(){},20662:function(){},51809:function(){},50330:function(){},22823:function(){},6413:function(){},56843:function(){},3257:function(){},69675:function(){},79262:function(){},58717:function(){},30219:function(){},1166:function(){},25082:function(){},73701:function(){},24521:function(){},91961:function(){}},function(e){e.O(0,[9085,4705,7982,6990,8489,800,3895,504,413,7424,1445,894,5202,8766,3851,6884,4829,4322,5941,1718,4343,6657,4982,1339,2812,3521,5878,2971,6890,1744],function(){return e(e.s=37494)}),_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.