khoj 1.36.5.dev4__py3-none-any.whl → 1.36.6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- khoj/app/settings.py +3 -2
- khoj/database/adapters/__init__.py +8 -6
- khoj/interface/compiled/404/index.html +2 -2
- khoj/interface/compiled/_next/static/chunks/{2327-ca35822a5ceaccd4.js → 2327-02e86a50c65e575a.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/4447-30959771ff58d99d.js +1 -0
- khoj/interface/compiled/_next/static/chunks/{4986-5a14450e22f9f7e5.js → 4986-d19b9ab0079521d7.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/5427-61c33a2c35ffbde6.js +1 -0
- khoj/interface/compiled/_next/static/chunks/{5477-122f049d11fed700.js → 5477-7417eeee06ac7e61.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/6663-61c3f91791968671.js +1 -0
- khoj/interface/compiled/_next/static/chunks/{8155-87b4d2ea2cf725cc.js → 8155-ad130153ddcc930f.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/9334-3047e20b503f086b.js +1 -0
- khoj/interface/compiled/_next/static/chunks/app/agents/{layout-848214b13f74a77b.js → layout-4a0e32561d6b1e27.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/app/agents/page-fbe2c1c661cd14ac.js +1 -0
- khoj/interface/compiled/_next/static/chunks/app/automations/{page-87b4c109002f465f.js → page-ad620b194fd508fe.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/app/chat/{layout-4d0b1ba93124fccb.js → layout-9e151fb837f53026.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/app/chat/page-24bf7a5c917dbaff.js +1 -0
- khoj/interface/compiled/_next/static/chunks/app/{page-56918729b95fed28.js → page-528e96d17e520304.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/app/search/{layout-ab5dbb69fb914900.js → layout-66f736b858b38c2c.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/app/share/chat/{layout-223082f2960a5f7b.js → layout-2ce0cb95b1219d97.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/app/share/chat/{page-ffcb3ce5c6af9988.js → page-975934b12916f3d4.js} +1 -1
- khoj/interface/compiled/_next/static/chunks/{webpack-8477c6163ef026fe.js → webpack-ca7ea9edfb20af61.js} +1 -1
- khoj/interface/compiled/_next/static/css/017016e6eff88fdc.css +1 -0
- khoj/interface/compiled/_next/static/css/440ae0f0f650dc35.css +1 -0
- khoj/interface/compiled/_next/static/css/a3411982c232c7be.css +25 -0
- khoj/interface/compiled/agents/index.html +2 -2
- khoj/interface/compiled/agents/index.txt +3 -3
- khoj/interface/compiled/automations/index.html +2 -2
- khoj/interface/compiled/automations/index.txt +3 -3
- khoj/interface/compiled/chat/index.html +2 -2
- khoj/interface/compiled/chat/index.txt +3 -3
- khoj/interface/compiled/index.html +2 -2
- khoj/interface/compiled/index.txt +2 -2
- khoj/interface/compiled/search/index.html +2 -2
- khoj/interface/compiled/search/index.txt +3 -3
- khoj/interface/compiled/settings/index.html +2 -2
- khoj/interface/compiled/settings/index.txt +5 -5
- khoj/interface/compiled/share/chat/index.html +2 -2
- khoj/interface/compiled/share/chat/index.txt +3 -3
- khoj/routers/api_agents.py +2 -1
- khoj/routers/api_chat.py +3 -1
- khoj/routers/helpers.py +6 -1
- khoj/routers/research.py +5 -0
- {khoj-1.36.5.dev4.dist-info → khoj-1.36.6.dist-info}/METADATA +1 -1
- {khoj-1.36.5.dev4.dist-info → khoj-1.36.6.dist-info}/RECORD +55 -54
- khoj/interface/compiled/_next/static/chunks/3224-34b5078830a51f42.js +0 -1
- khoj/interface/compiled/_next/static/chunks/5427-d65c69daf03cc100.js +0 -1
- khoj/interface/compiled/_next/static/chunks/8580-f95d376ed2c5a2cb.js +0 -1
- khoj/interface/compiled/_next/static/chunks/app/agents/page-c6b920200304431f.js +0 -1
- khoj/interface/compiled/_next/static/chunks/app/chat/page-87044da58971191b.js +0 -1
- khoj/interface/compiled/_next/static/css/8051073dc55b92b3.css +0 -1
- khoj/interface/compiled/_next/static/css/b15666ef52060cd0.css +0 -1
- khoj/interface/compiled/_next/static/css/d29d5f2c1cf8d97b.css +0 -25
- /khoj/interface/compiled/_next/static/{HWOpuxeAIJmVI4p_7uzFP → _jNeX5BDByFzpSTVIy4mR}/_buildManifest.js +0 -0
- /khoj/interface/compiled/_next/static/{HWOpuxeAIJmVI4p_7uzFP → _jNeX5BDByFzpSTVIy4mR}/_ssgManifest.js +0 -0
- /khoj/interface/compiled/_next/static/chunks/{1915-233ac8a122732d6b.js → 1915-4b7980a58fb630d6.js} +0 -0
- /khoj/interface/compiled/_next/static/chunks/{2117-ce1f0a4598f5e4fe.js → 2117-f99825f0a867a42d.js} +0 -0
- /khoj/interface/compiled/_next/static/chunks/{4363-9870bda67c2cf031.js → 4363-ac51bce40b6fc313.js} +0 -0
- /khoj/interface/compiled/_next/static/chunks/{8667-8136f74e9a086fca.js → 8667-adbe6017a66cef10.js} +0 -0
- /khoj/interface/compiled/_next/static/chunks/{9259-fa40e7cf2ca28e04.js → 9259-5be50737cfe989bc.js} +0 -0
- /khoj/interface/compiled/_next/static/chunks/app/search/{page-e3d3a86b3d1e6e6d.js → page-30e231665f1f3796.js} +0 -0
- {khoj-1.36.5.dev4.dist-info → khoj-1.36.6.dist-info}/WHEEL +0 -0
- {khoj-1.36.5.dev4.dist-info → khoj-1.36.6.dist-info}/entry_points.txt +0 -0
- {khoj-1.36.5.dev4.dist-info → khoj-1.36.6.dist-info}/licenses/LICENSE +0 -0
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{1507:function(e,t,a){Promise.resolve().then(a.bind(a,88507))},88507:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return eE}});var n,o,i=a(57437);a(47960);var r=a(76777),l=a.n(r);a(2446);var s=a(2265),c=a(63861),p=a(49656);let d=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M168.49,191.51a12,12,0,0,1,0,17l-32,32a12,12,0,0,1-17,0l-32-32a12,12,0,0,1,17-17L116,203V53L104.49,64.49a12,12,0,1,1-17-17l32-32a12,12,0,0,1,17,0l32,32a12,12,0,0,1-17,17L140,53V203l11.51-11.52A12,12,0,0,1,168.49,191.51Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M160,56V200l-32,32L96,200V56l32-32Z",opacity:"0.2"}),s.createElement("path",{d:"M165.66,194.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L120,212.69V43.31L101.66,61.66A8,8,0,0,1,90.34,50.34l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32L136,43.31V212.69l18.34-18.35A8,8,0,0,1,165.66,194.34Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M167.39,196.94a8,8,0,0,1-1.73,8.72l-32,32a8,8,0,0,1-11.32,0l-32-32A8,8,0,0,1,96,192h24V64H96a8,8,0,0,1-5.66-13.66l32-32a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,160,64H136V192h24A8,8,0,0,1,167.39,196.94Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M164.24,195.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48,0l-32-32a6,6,0,0,1,8.48-8.48L122,217.51v-179L100.24,60.24a6,6,0,0,1-8.48-8.48l32-32a6,6,0,0,1,8.48,0l32,32a6,6,0,1,1-8.48,8.48L134,38.49v179l21.76-21.75A6,6,0,0,1,164.24,195.76Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M165.66,194.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L120,212.69V43.31L101.66,61.66A8,8,0,0,1,90.34,50.34l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32L136,43.31V212.69l18.34-18.35A8,8,0,0,1,165.66,194.34Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M162.83,197.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66,0l-32-32a4,4,0,0,1,5.66-5.66L124,222.34V33.66L98.83,58.83a4,4,0,0,1-5.66-5.66l32-32a4,4,0,0,1,5.66,0l32,32a4,4,0,0,1-5.66,5.66L132,33.66V222.34l25.17-25.17A4,4,0,0,1,162.83,197.17Z"}))]]);var m=Object.defineProperty,h=Object.defineProperties,u=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,w=(e,t,a)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,v=(e,t)=>{for(var a in t||(t={}))f.call(t,a)&&w(e,a,t[a]);if(g)for(var a of g(t))x.call(t,a)&&w(e,a,t[a]);return e},b=(e,t)=>h(e,u(t));let y=(0,s.forwardRef)((e,t)=>s.createElement(p.Z,b(v({ref:t},e),{weights:d})));y.displayName="ArrowsVertical";var j=a(66070),L=a(64670),E=a.n(L),M=a(42225),S=a(5477);(n=o||(o={})).Paint="Paint",n.Travel="Travel",n.Health="Health",n.Learning="Learning",n.Math="Mathematics",n.Language="Language",n.PopCulture="Pop Culture",n.Food="Food",n.Interviewing="Interviewing",n.Home="Home",n.Fun="Fun",n.Code="Code",n.Finance="Finance",n.Document="Document",n.Image="Image";let I={};I.Paint="indigo",I.Travel="yellow",I.Health="teal",I.Learning="purple",I.Language="blue",I["Pop Culture"]="red",I.Food="yellow",I.Interviewing="orange",I.Home="green",I.Fun="fuchsia",I.Code="teal",I.Finance="green",I.Mathematics="blue",I.Image="red",I.Document="orange";let Z="orange";function A(e,t){return"Paint"===e?(0,M.TI)("Palette",t,"w-6","h-6"):"Pop Culture"===e?(0,M.TI)("Confetti",t,"w-6","h-6"):"Travel"===e?(0,M.TI)("Jeep",t,"w-6","h-6"):"Learning"===e?(0,M.TI)("Book",t,"w-6","h-6"):"Health"===e?(0,M.TI)("Asclepius",t,"w-6","h-6"):"Fun"===e?(0,M.TI)("Island",t,"w-6","h-6"):"Home"===e?(0,M.TI)("House",t,"w-6","h-6"):"Language"===e?(0,M.TI)("Translate",t,"w-6","h-6"):"Code"===e?(0,M.TI)("Code",t,"w-6","h-6"):"Food"===e?(0,M.TI)("BowlFood",t,"w-6","h-6"):"Interviewing"===e?(0,M.TI)("Lectern",t,"w-6","h-6"):"Finance"===e?(0,M.TI)("Wallet",t,"w-6","h-6"):"Mathematics"===e?(0,M.TI)("MathOperations",t,"w-6","h-6"):"Image"===e?(0,M.TI)("Image",t,"w-6","h-6"):"Document"===e?(0,M.TI)("File",t,"w-6","h-6"):(0,M.TI)("Lightbulb",t,"w-6","h-6")}let C=[{type:"Document",actionTagline:"Analyze document",color:I.Document||Z,focus:S.$.FILE,intent:"Read this document and explain"},{type:"Code",actionTagline:"Write code",color:I.Code||Z,focus:S.$.MESSAGE,intent:"Write a program that"},{type:"Learning",actionTagline:"Explain concept",color:I.Learning||Z,focus:S.$.MESSAGE,intent:"I want to understand a concept"},{type:"Paint",actionTagline:"Create image",color:I.Paint||Z,focus:S.$.MESSAGE,intent:"Paint a picture of"},{type:"Language",actionTagline:"Translate text",color:I.Language||Z,focus:S.$.MESSAGE,intent:"Translate this text"},{type:"Finance",actionTagline:"Explain finance",color:I.Finance||Z,focus:S.$.MESSAGE,intent:"Help me build mental models for finance"},{type:"Mathematics",actionTagline:"Explain math",color:I.Mathematics||Z,focus:S.$.MESSAGE,intent:"Help me understand the math behind"},{type:"Image",actionTagline:"Analyze image",color:I.Image||Z,focus:S.$.FILE,intent:"Explain the significance of this image"},{type:"Health",actionTagline:"Improve health",color:I.Health||Z,focus:S.$.MESSAGE,intent:"Help me improve my health"}],k={Paint:[{prompt:"Paint a picture of a sunset but it's made of stained glass tiles."},{prompt:"Paint a futuristic cityscape with flying cars."},{prompt:"Paint a neon-lit street scene with reflections in the rain."},{prompt:"Paint a portrait of a person with a unique hairstyle."},{prompt:"Paint a landscape of a forest with a hidden waterfall."}],Travel:[{prompt:"Search for the best attractions in Austria Hungary."},{prompt:"Find the top-rated coffee shops in Seattle."},{prompt:"Research the best hiking trails in the Swiss Alps."},{prompt:"What is the best time of year to visit Bali?"},{prompt:"Find the best hidden gems in Nairobi."}],Health:[{prompt:"Explain to me how to improve my posture."},{prompt:"Tell me how what I eat affects my insulin levels."},{prompt:"Suggest healthy meal prep ideas for a busy work week."},{prompt:"Recommend good exercises to improve my flexibility."},{prompt:"Explain the benefits of a plant-based diet"}],Learning:[{prompt:"/research look up how Alpha Fold works and explain it to me."},{prompt:"Explain the key equations of general relativity."},{prompt:"Explain the concept of 'machine learning' in simple terms."},{prompt:"What are the key principles of Stoicism?"},{prompt:"/research what are the causes behind the breakthroughs in AI in the last 5 years."}],Language:[{prompt:"Translate the following text into Spanish: 'Hello, how are you?'"},{prompt:"Tell me how to greet someone in Arabic."},{prompt:"Explain the difference between the words 'ser' and 'estar' in Spanish."},{prompt:"Translate the following text into French: 'Where is the nearest metro station?'"},{prompt:"Translate the following text into Japanese: 'I am learning Japanese.'"}],"Pop Culture":[{prompt:"Find the best-rated science fiction books of the last decade."},{prompt:"Research the latest trends in K-pop and its global influence."},{prompt:"Explain the plot of the movie 'Doctor Zhivago' in detail."},{prompt:"What fashion is trending in jackets this season?"},{prompt:"Find the best indie movies of the last year"}],Food:[{prompt:"Find the best empanada recipe from Colombia."},{prompt:"Suggest a healthy alternative to a popular fast food dish."},{prompt:"Find the best recipe for a vegan chocolate cake."},{prompt:"Suggest a recipe for a quick and easy weeknight dinner."},{prompt:"Create a diagram that explains how to make a traditional Italian lasagna."}],Interviewing:[{prompt:"Create interview prep questions for a consulting job."},{prompt:"What information should I include in a CV for a PhD application?"},{prompt:"Suggest questions to ask during a job interview."},{prompt:"What are the best ways to prepare for a technical interview?"},{prompt:"How can I improve my public speaking skills for an interview?"}],Home:[{prompt:"Recommend plants that can grow well indoors."},{prompt:"Suggest ways to reduce plastic waste in daily life."},{prompt:"Create a list of eco-friendly home cleaning products."},{prompt:"Suggest ways to make a small apartment feel more spacious."},{prompt:"Recommend ways to reduce energy consumption in a home."}],Fun:[{prompt:"List creative date ideas for couples on a budget."},{prompt:"Create a list of fun activities for a family game night."},{prompt:"Give me three questions that can help me get to know someone better."},{prompt:"Suggest fun activities for a group of friends on a rainy day."},{prompt:"How can I improve my drawing skills?"}],Code:[{prompt:"Teach me how to write a simple 'Hello World' program in Python."},{prompt:"Write a single page application using vanilla HTML, CSS, and JavaScript that displays a list of items."},{prompt:"Explain the concept of recursion with a simple coding example."},{prompt:"Create a simple calculator app using React."},{prompt:"Write a function that takes an array of numbers and returns the sum of all the numbers."}],Finance:[{prompt:"Create a chart to explain the concept of compound interest and its importance in long-term savings."},{prompt:"Provide an overview of different types of retirement accounts (e.g., 401(k), IRA, Roth IRA)."},{prompt:"Explain the concept of diversification and its importance in investing."},{prompt:"Create a budgeting plan for someone who wants to save money for a vacation."},{prompt:"Explain the difference between a stock and a bond."}],Mathematics:[{prompt:"Create a series of questions to help a student discover the principles of basic economics."},{prompt:"Develop a hands-on experiment to demonstrate the concept of density to middle schoolers."},{prompt:"Explain the concept of a derivative and its applications in real life."},{prompt:"Create a lesson plan to teach students about the Pythagorean theorem."},{prompt:"Explain the concept of a limit in calculus and its importance in mathematics."}],Image:[{prompt:"Explain what is happening in this photograph"},{prompt:"Show me how I can improve this UI design"},{prompt:"Explain the significance of this historical painting"},{prompt:"Can you explain this physics diagram to me?"},{prompt:"Explain this meme to me"}],Document:[{prompt:"Summarize the key concepts in this document."},{prompt:"Provide a detailed explanation about the topic of this document."},{prompt:"Create a visual representation of the information in this document."},{prompt:"Find the main arguments in this document."},{prompt:"Explain the relevance of this document to various other disciplines."}]},H=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M252,152a12,12,0,0,1-12,12H228v12a12,12,0,0,1-24,0V164H192a12,12,0,0,1,0-24h12V128a12,12,0,0,1,24,0v12h12A12,12,0,0,1,252,152ZM56,76H68V88a12,12,0,0,0,24,0V76h12a12,12,0,1,0,0-24H92V40a12,12,0,0,0-24,0V52H56a12,12,0,0,0,0,24ZM184,188h-4v-4a12,12,0,0,0-24,0v4h-4a12,12,0,0,0,0,24h4v4a12,12,0,0,0,24,0v-4h4a12,12,0,0,0,0-24ZM222.14,82.83,82.82,222.14a20,20,0,0,1-28.28,0L33.85,201.46a20,20,0,0,1,0-28.29L173.17,33.86a20,20,0,0,1,28.28,0l20.69,20.68A20,20,0,0,1,222.14,82.83ZM159,112,144,97,53.65,187.31l15,15Zm43.31-43.31-15-15L161,80l15,15Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M176,112,74.34,213.66a8,8,0,0,1-11.31,0L42.34,193a8,8,0,0,1,0-11.31L144,80Z",opacity:"0.2"}),s.createElement("path",{d:"M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80ZM208,68.69,187.31,48l-32,32L176,100.69Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M246,152a6,6,0,0,1-6,6H222v18a6,6,0,0,1-12,0V158H192a6,6,0,0,1,0-12h18V128a6,6,0,0,1,12,0v18h18A6,6,0,0,1,246,152ZM56,70H74V88a6,6,0,0,0,12,0V70h18a6,6,0,0,0,0-12H86V40a6,6,0,0,0-12,0V58H56a6,6,0,0,0,0,12ZM184,194H174V184a6,6,0,0,0-12,0v10H152a6,6,0,0,0,0,12h10v10a6,6,0,0,0,12,0V206h10a6,6,0,0,0,0-12ZM217.9,78.59,78.58,217.9a14,14,0,0,1-19.8,0L38.09,197.21a14,14,0,0,1,0-19.8L177.41,38.1a14,14,0,0,1,19.8,0L217.9,58.79A14,14,0,0,1,217.9,78.59ZM167.51,112,144,88.49,46.58,185.9a2,2,0,0,0,0,2.83l20.69,20.68a2,2,0,0,0,2.82,0h0Zm41.9-44.73L188.73,46.59a2,2,0,0,0-2.83,0L152.48,80,176,103.52,209.41,70.1A2,2,0,0,0,209.41,67.27Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M48,64a8,8,0,0,1,8-8H72V40a8,8,0,0,1,16,0V56h16a8,8,0,0,1,0,16H88V88a8,8,0,0,1-16,0V72H56A8,8,0,0,1,48,64ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16Zm56-48H224V128a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V160h16a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M244,152a4,4,0,0,1-4,4H220v20a4,4,0,0,1-8,0V156H192a4,4,0,0,1,0-8h20V128a4,4,0,0,1,8,0v20h20A4,4,0,0,1,244,152ZM56,68H76V88a4,4,0,0,0,8,0V68h20a4,4,0,0,0,0-8H84V40a4,4,0,0,0-8,0V60H56a4,4,0,0,0,0,8ZM184,196H172V184a4,4,0,0,0-8,0v12H152a4,4,0,0,0,0,8h12v12a4,4,0,0,0,8,0V204h12a4,4,0,0,0,0-8ZM216.48,77.17,77.17,216.49a12,12,0,0,1-17,0L39.51,195.8a12,12,0,0,1,0-17L178.83,39.51a12,12,0,0,1,17,0L216.48,60.2A12,12,0,0,1,216.48,77.17ZM170.34,112,144,85.66,45.17,184.49a4,4,0,0,0,0,5.65l20.68,20.69a4,4,0,0,0,5.66,0Zm40.49-46.14L190.14,45.17a4,4,0,0,0-5.66,0L149.65,80,176,106.34l34.83-34.83A4,4,0,0,0,210.83,65.86Z"}))]]);var N=Object.defineProperty,F=Object.defineProperties,V=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,O=(e,t,a)=>t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,W=(e,t)=>{for(var a in t||(t={}))P.call(t,a)&&O(e,a,t[a]);if(T)for(var a of T(t))_.call(t,a)&&O(e,a,t[a]);return e},B=(e,t)=>F(e,V(t));let D=(0,s.forwardRef)((e,t)=>s.createElement(p.Z,B(W({ref:t},e),{weights:H})));D.displayName="MagicWand";let R=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),s.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]);var G=Object.defineProperty,U=Object.defineProperties,$=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,Y=(e,t,a)=>t in e?G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,K=(e,t)=>{for(var a in t||(t={}))z.call(t,a)&&Y(e,a,t[a]);if(q)for(var a of q(t))J.call(t,a)&&Y(e,a,t[a]);return e},Q=(e,t)=>U(e,$(t));let X=(0,s.forwardRef)((e,t)=>s.createElement(p.Z,Q(K({ref:t},e),{weights:R})));function ee(e){let t="".concat(E().card," md:w-full md:h-fit sm:w-full h-fit md:w-[200px] cursor-pointer md:p-2"),a="".concat(E().text," dark:text-white");return(0,i.jsx)(j.Zb,{className:t,children:(0,i.jsx)("div",{className:"flex w-full",children:(0,i.jsxs)(j.aY,{className:"m-0 p-2 w-full flex flex-row",children:[A(e.title,e.color.toLowerCase()),(0,i.jsx)(j.SZ,{className:"".concat(a," sm:line-clamp-2 md:line-clamp-4 pt-1 break-words whitespace-pre-wrap max-w-full"),children:e.body})]})})})}function et(e){let t="".concat(E().card," md:h-fit sm:w-full h-fit cursor-pointer md:p-2");return(0,i.jsx)(j.Zb,{className:t,children:(0,i.jsx)("div",{className:"flex w-full items-center",children:(0,i.jsxs)(j.aY,{className:"m-0 p-1 w-full flex flex-row items-center",children:[(0,i.jsx)(D,{weight:"thin",className:"w-4 h-4 text-muted-foreground inline-flex mr-1 text-opacity-40"}),(0,i.jsx)(j.SZ,{className:"sm:line-clamp-2 md:line-clamp-4 break-words whitespace-pre-wrap max-w-full text-sm text-wrap text-black dark:text-white",children:e.prompt})]})})})}function ea(e){let t="".concat(E().card," md:w-full md:h-fit sm:w-full h-fit md:w-fit cursor-pointer m-2 md:p-1 animate-fade-in-up border-opacity-50 shadow-none"),a="".concat(E().text," dark:text-white");return(0,i.jsx)(j.Zb,{className:t,onClick:e.onClick,children:(0,i.jsx)("div",{className:"flex w-full h-full items-center justify-center",children:(0,i.jsxs)(j.aY,{className:"m-0 p-2 w-full flex flex-row items-center justify-center",children:[A(e.title,e.color.toLowerCase()),(0,i.jsx)(j.SZ,{className:"".concat(a," sm:line-clamp-2 md:line-clamp-4 pt-1 break-words whitespace-pre-wrap max-w-full text-center"),children:e.body}),(0,i.jsx)(X,{className:"w-6 h-6 text-muted-foreground inline-flex ml-1"})]})})})}X.displayName="XCircle";var en=a(14308),eo=a(33494),ei=a(56937),er=a(84671),el=a(59199),es=a(7436),ec=a(99376),ep=a(19378),ed=a(25427),em=a(57054),eh=a(62869),eu=a(37104),eg=a(17814);function ef(e){return e.isMobileWidth?(0,i.jsx)(eg.dy,{open:!0,onClose:()=>e.setShowLoginPrompt(!1),children:(0,i.jsx)(eg.sc,{children:(0,i.jsx)(ex,{...e})})}):(0,i.jsx)("div",{className:"fixed inset-x-0 bottom-8 z-30 flex items-center justify-center",children:(0,i.jsx)(ex,{...e})})}function ex(e){return(0,i.jsxs)(j.Zb,{className:"rounded-lg p-6 flex flex-col items-center justify-between gap-8 md:w-fit border-none md:flex-row md:z-30 md:shadow-lg",children:[!e.isMobileWidth&&(0,i.jsx)(eu.S6,{className:"w-12 h-auto"}),(0,i.jsxs)("div",{className:"flex flex-col items-start justify-center gap-8 md:gap-2",children:[(0,i.jsx)(j.Ol,{className:"p-0 text-xl font-bold",children:"Welcome to Khoj!"}),(0,i.jsx)(j.SZ,{children:"Sign in to get started with Khoj, your AI research assistant."})]}),(0,i.jsx)(eh.z,{variant:"default",className:"p-6 text-lg",onClick:()=>e.setShowLoginPrompt(!0),children:"Get started for free"})]})}var ew=a(60729),ev=a(34124),eb=a(6512),ey=a(84190);function ej(e){let{agents:t,agentIcons:a,selectedAgent:n,isPopoverOpen:o,debouncedHoveredAgent:r,setHoveredAgent:l,setIsPopoverOpen:s,setSelectedAgent:c,chatInputRef:p,openAgentEditCard:d,userConfig:m,isMobileWidth:h}=e;return(0,i.jsxs)(ep.x,{className:"w-full max-w-[600px] mx-auto",children:[(0,i.jsx)("div",{className:"flex pb-2 gap-2 items-center justify-center",children:t.map((e,t)=>(0,i.jsxs)(em.J2,{open:o&&r===e.slug,onOpenChange:e=>{e||(l(null),s(!1))},children:[(0,i.jsx)(em.xo,{asChild:!0,children:(0,i.jsx)(j.Zb,{className:"".concat(n===e.slug?(0,er.Iu)(e.color):"border-stone-100 dark:border-neutral-700 text-muted-foreground","\n hover:cursor-pointer rounded-lg px-2 py-2"),onDoubleClick:()=>d(e.slug),onClick:()=>{var t;c(e.slug),null===(t=p.current)||void 0===t||t.focus(),l(null),s(!1)},onMouseEnter:()=>l(e.slug),onMouseLeave:()=>{l(null),s(!1)},children:(0,i.jsxs)(j.ll,{className:"text-center text-md font-medium flex justify-center items-center whitespace-nowrap",children:[a[t]," ",e.name]})})}),(0,i.jsx)(em.yk,{className:"w-80 p-0 border-none bg-transparent shadow-none",onMouseLeave:()=>{l(null),s(!1)},children:(0,i.jsx)(ed.EY,{data:e,userProfile:null,isMobileWidth:h||!1,showChatButton:!1,editCard:!1,filesOptions:[],selectedChatModelOption:"",agentSlug:"",isSubscribed:(0,ei.T8)(m),setAgentChangeTriggered:()=>{},modelOptions:[],inputToolOptions:{},outputModeOptions:{}})})]},"".concat(t,"-").concat(e.slug)))}),(0,i.jsx)(ep.B,{orientation:"horizontal"})]})}function eL(e){var t,a,n,o,r,p,d;let[m,h]=(0,s.useState)(""),[u,g]=(0,s.useState)(""),[f,x]=(0,s.useState)(S.$.MESSAGE),[w,v]=(0,s.useState)([]),[b,j]=(0,s.useState)(!1),[L,E]=(0,s.useState)(""),[I,Z]=(0,s.useState)(C.slice(0,3)),[A,H]=(0,s.useState)([]),[N,F]=(0,s.useState)(null),[V,T]=(0,s.useState)(null),P=(0,es.Nr)(V,500),[_,O]=(0,s.useState)(!1),[W,B]=(0,s.useState)("khoj"),[D,R]=(0,s.useState)([]),[G,U]=(0,s.useState)([]),$=(0,s.useRef)(null),[q,z]=(0,s.useState)(!1),J=(0,ec.useRouter)(),Y=(0,ec.useSearchParams)().get("q");(0,s.useEffect)(()=>{Y&&h(decodeURIComponent(Y))},[Y]),(0,s.useEffect)(()=>{P&&O(!0)},[P]);let K=e.onConversationIdChange,{data:Q,error:X}=(0,c.ZP)("agents",()=>window.fetch("/api/agents").then(e=>e.json()).catch(e=>console.log(e)),{revalidateOnFocus:!1});return(0,s.useEffect)(()=>{var t,a;if(e.isLoadingUserConfig)return;let n=new Date,o=n.getDay(),i=n.getHours()>=17||4>n.getHours()?"evening":n.getHours()>=12?"afternoon":"morning",r=(null===(t=e.userConfig)||void 0===t?void 0:t.given_name)?", ".concat(null===(a=e.userConfig)||void 0===a?void 0:a.given_name):"",l=["What would you like to get done".concat(r,"?"),"Hey".concat(r,"! How can I help?"),"Good ".concat(i).concat(r,"! What's on your mind?"),"Ready to breeze through ".concat(["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][o],"?"),"Let's navigate your ".concat(["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][o]," workload")];E(l[Math.floor(Math.random()*l.length)])},[e.isLoadingUserConfig,e.userConfig]),(0,s.useEffect)(()=>{let e=(Q||[]).filter(e=>null!=e);U(e),B(e.length>1?e[0].slug:"khoj"),R(e.map(e=>(0,M.TI)(e.icon,e.color)))},[Q]),(0,s.useEffect)(()=>{(async()=>{if(m&&!b){j(!0);try{let e=await (0,el.A0)(W||"khoj");null==K||K(e),localStorage.setItem("message",m),w.length>0&&localStorage.setItem("images",JSON.stringify(w)),window.location.href="/chat?conversationId=".concat(e)}catch(e){console.error("Error creating new conversation:",e),j(!1)}h(""),v([])}})(),(m||w.length>0)&&j(!0)},[W,m,b,K]),(0,s.useEffect)(()=>{let e=document.querySelector("[data-radix-scroll-area-viewport]"),t=()=>{T(null),O(!1)};return null==e||e.addEventListener("scroll",t),()=>null==e?void 0:e.removeEventListener("scroll",t)},[]),(0,i.jsxs)("div",{className:"".concat(l().homeGreetings," w-full md:w-auto"),children:[q&&(0,i.jsx)(eo.Z,{onOpenChange:z,isMobileWidth:e.isMobileWidth}),!e.isLoggedIn&&(0,i.jsx)(ef,{isMobileWidth:e.isMobileWidth,setShowLoginPrompt:z}),(0,i.jsxs)("div",{className:"w-full text-center justify-end content-end",children:[(0,i.jsx)("div",{className:"items-center",children:(0,i.jsx)("h1",{className:"text-2xl md:text-3xl text-center w-fit pb-6 pt-4 px-4 mx-auto",children:L})}),!e.isMobileWidth&&(0,i.jsx)(ej,{agents:G,agentIcons:D,selectedAgent:W,isPopoverOpen:_,debouncedHoveredAgent:P,setHoveredAgent:T,setIsPopoverOpen:O,setSelectedAgent:B,chatInputRef:$,openAgentEditCard:e=>{J.push("/agents?agent=".concat(e))},userConfig:e.userConfig})]}),(0,i.jsxs)("div",{className:"mx-auto ".concat(e.isMobileWidth?"w-full":"w-full max-w-screen-md"),children:[!e.isMobileWidth&&(0,i.jsx)("div",{className:"w-full ".concat(l().inputBox," shadow-lg bg-background align-middle items-center justify-center px-3 py-1 dark:bg-neutral-700 border-stone-100 dark:border-none dark:shadow-none rounded-2xl"),children:(0,i.jsx)(S.a,{isLoggedIn:e.isLoggedIn,prefillMessage:u,focus:f,sendMessage:e=>h(e),sendImage:e=>v(t=>[...t,e]),sendDisabled:b,chatOptionsData:e.chatOptionsData,conversationId:null,isMobileWidth:e.isMobileWidth,setUploadedFiles:e.setUploadedFiles,agentColor:null===(t=G.find(e=>e.slug===W))||void 0===t?void 0:t.color,ref:$,setTriggeredAbort:()=>{}})}),0==A.length&&(0,i.jsx)("div",{className:"".concat(l().suggestions," w-full ").concat(e.isMobileWidth&&C.length>3?"grid grid-cols-2":"grid grid-cols-3",' "justify-center items-center"'),children:I.map((t,a)=>(0,i.jsx)("div",{onClick:a=>{e.isLoggedIn?function(e){g(e.intent);let t=k[e.type]||[];F(e),H(t),x(e.focus)}(t):(a.preventDefault(),a.stopPropagation(),z(!0))},children:(0,i.jsx)(ee,{title:t.type,body:t.actionTagline,color:t.color},t.type+Math.random())},"".concat(t.type," ").concat(t.actionTagline)))}),0==A.length&&I.length<C.length&&(0,i.jsx)("div",{className:"flex items-center justify-center margin-auto",children:(0,i.jsxs)("button",{onClick:function(){Z(C)},className:"m-2 p-1.5 rounded-lg dark:hover:bg-[var(--background-color)] hover:bg-stone-100 border border-stone-100 text-sm text-stone-500 dark:text-stone-300 dark:border-neutral-700",children:["Show All ",(0,i.jsx)(y,{className:"h-4 w-4 inline"})]})}),N&&(0,i.jsx)(ea,{title:N.type,body:N.actionTagline,color:N.color,onClick:()=>{g(""),F(null),H([]),x(S.$.MESSAGE)}}),A.length>0&&(0,i.jsx)("div",{className:"w-full ".concat(e.isMobileWidth?"grid":"grid grid-cols-1"," justify-center items-center gap-2 p-2"),children:A.map((e,t)=>(0,i.jsx)("div",{className:"w-full cursor-pointer animate-fade-in-up",onClick:t=>{h(e.prompt)},children:(0,i.jsx)(et,{prompt:e.prompt},e.prompt)},"".concat(e.prompt," ").concat(t)))})]}),e.isMobileWidth&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"".concat(l().inputBox," align-middle items-center justify-center pb-3 mx-1 mb-2 border-none"),children:[(0,i.jsxs)(ey.h_,{children:[(0,i.jsx)(ey.$F,{children:(0,i.jsxs)(eh.z,{className:"w-full m-2 p-0",variant:"outline",children:[W?(0,M.TI)(null!==(p=null===(a=G.find(e=>e.slug===W))||void 0===a?void 0:a.icon)&&void 0!==p?p:"",null!==(d=null===(n=G.find(e=>e.slug===W))||void 0===n?void 0:n.color)&&void 0!==d?d:""):(0,i.jsx)(y,{className:"h-5 w-5"}),W?"".concat(null===(o=G.find(e=>e.slug===W))||void 0===o?void 0:o.name):"Select Agent"]})}),(0,i.jsx)(ey.AW,{align:"end",className:"overflow-y-scroll h-96",children:D.map((e,t)=>(0,i.jsxs)(ey.Xi,{onClick:()=>{var e;B(G[t].slug),null===(e=$.current)||void 0===e||e.focus()},children:[e," ",G[t].name]},"".concat(t,"-").concat(G[t].slug)))})]}),(0,i.jsx)("div",{className:"".concat(l().inputBox," pt-4 shadow-[0_-20px_25px_-5px_rgba(0,0,0,0.1)] dark:bg-neutral-700 bg-background rounded-2xl mb-2 border-none"),children:(0,i.jsx)(S.a,{isLoggedIn:e.isLoggedIn,sendMessage:e=>h(e),sendImage:e=>v(t=>[...t,e]),sendDisabled:b,chatOptionsData:e.chatOptionsData,conversationId:null,isMobileWidth:e.isMobileWidth,setUploadedFiles:e.setUploadedFiles,agentColor:null===(r=G.find(e=>e.slug===W))||void 0===r?void 0:r.color,ref:$,setTriggeredAbort:()=>{}})})]})})]})}function eE(){let[e,t]=(0,s.useState)(null),[a,n]=(0,s.useState)(!0),[o,r]=(0,s.useState)(null),[c,p]=(0,s.useState)(null),d=(0,es.IC)(),{data:m,isLoading:h}=(0,ei.h2)(!0),[u,g]=(0,s.useState)(null),{data:f,error:x,isLoading:w}=(0,ei.GW)();return((0,s.useEffect)(()=>{g(m)},[m]),(0,s.useEffect)(()=>{c&&localStorage.setItem("uploadedFiles",JSON.stringify(c))},[c]),(0,s.useEffect)(()=>{fetch("/api/chat/options").then(e=>e.json()).then(e=>{n(!1),e&&t(e)}).catch(e=>{console.error(e)})},[]),a)?(0,i.jsx)(en.Z,{}):(0,i.jsxs)(ew.Hn,{children:[(0,i.jsx)(ev.S,{conversationId:o}),(0,i.jsxs)(ew.kV,{children:[(0,i.jsxs)("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b px-4",children:[(0,i.jsx)(ew.vP,{className:"-ml-1"}),(0,i.jsx)(eb.Z,{orientation:"vertical",className:"mr-2 h-4"}),d?(0,i.jsx)("a",{className:"p-0 no-underline",href:"/",children:(0,i.jsx)(eu.VO,{className:"h-auto w-16"})}):(0,i.jsx)("h2",{className:"text-lg",children:"Ask Anything"})]}),(0,i.jsxs)("div",{className:"".concat(l().main," ").concat(l().chatLayout),children:[(0,i.jsx)("title",{children:"Khoj AI - Your Second Brain"}),(0,i.jsx)("div",{className:"".concat(l().chatBox),children:(0,i.jsx)("div",{className:"".concat(l().chatBoxBody),children:!w&&(0,i.jsx)(eL,{isLoggedIn:!!f,chatOptionsData:e,setUploadedFiles:p,isMobileWidth:d,onConversationIdChange:e=>{r(e)},userConfig:u,isLoadingUserConfig:h})})})]})]})]})}},99376:function(e,t,a){"use strict";var n=a(35475);a.o(n,"useRouter")&&a.d(t,{useRouter:function(){return n.useRouter}}),a.o(n,"useSearchParams")&&a.d(t,{useSearchParams:function(){return n.useSearchParams}})},47960:function(){},64670:function(e){e.exports={card:"suggestions_card__fbiZo",title:"suggestions_title__vNozc",text:"suggestions_text__J_IfY"}},76777:function(e){e.exports={main:"page_main__nw1Wk",suggestions:"page_suggestions__Y8EqU",inputBox:"page_inputBox__LrcZ4",chatBodyFull:"page_chatBodyFull__Qu2T2",chatBody:"page_chatBody__IirQQ",chatLayout:"page_chatLayout__bJUjP",chatBox:"page_chatBox__gsR6V",titleBar:"page_titleBar__3btUI",chatBoxBody:"page_chatBoxBody__xORKr",homeGreetings:"page_homeGreetings__VjQhh"}}},function(e){e.O(0,[3587,6250,4842,2663,3861,9259,8667,4363,3224,4357,7647,2327,5477,5427,2971,2117,1744],function(){return e(e.s=1507)}),_N_E=e.O()}]);
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{1507:function(e,t,a){Promise.resolve().then(a.bind(a,88507))},88507:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return eE}});var n,o,i=a(57437);a(47960);var r=a(76777),l=a.n(r);a(2446);var s=a(2265),c=a(63861),p=a(49656);let d=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M168.49,191.51a12,12,0,0,1,0,17l-32,32a12,12,0,0,1-17,0l-32-32a12,12,0,0,1,17-17L116,203V53L104.49,64.49a12,12,0,1,1-17-17l32-32a12,12,0,0,1,17,0l32,32a12,12,0,0,1-17,17L140,53V203l11.51-11.52A12,12,0,0,1,168.49,191.51Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M160,56V200l-32,32L96,200V56l32-32Z",opacity:"0.2"}),s.createElement("path",{d:"M165.66,194.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L120,212.69V43.31L101.66,61.66A8,8,0,0,1,90.34,50.34l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32L136,43.31V212.69l18.34-18.35A8,8,0,0,1,165.66,194.34Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M167.39,196.94a8,8,0,0,1-1.73,8.72l-32,32a8,8,0,0,1-11.32,0l-32-32A8,8,0,0,1,96,192h24V64H96a8,8,0,0,1-5.66-13.66l32-32a8,8,0,0,1,11.32,0l32,32A8,8,0,0,1,160,64H136V192h24A8,8,0,0,1,167.39,196.94Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M164.24,195.76a6,6,0,0,1,0,8.48l-32,32a6,6,0,0,1-8.48,0l-32-32a6,6,0,0,1,8.48-8.48L122,217.51v-179L100.24,60.24a6,6,0,0,1-8.48-8.48l32-32a6,6,0,0,1,8.48,0l32,32a6,6,0,1,1-8.48,8.48L134,38.49v179l21.76-21.75A6,6,0,0,1,164.24,195.76Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M165.66,194.34a8,8,0,0,1,0,11.32l-32,32a8,8,0,0,1-11.32,0l-32-32a8,8,0,0,1,11.32-11.32L120,212.69V43.31L101.66,61.66A8,8,0,0,1,90.34,50.34l32-32a8,8,0,0,1,11.32,0l32,32a8,8,0,0,1-11.32,11.32L136,43.31V212.69l18.34-18.35A8,8,0,0,1,165.66,194.34Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M162.83,197.17a4,4,0,0,1,0,5.66l-32,32a4,4,0,0,1-5.66,0l-32-32a4,4,0,0,1,5.66-5.66L124,222.34V33.66L98.83,58.83a4,4,0,0,1-5.66-5.66l32-32a4,4,0,0,1,5.66,0l32,32a4,4,0,0,1-5.66,5.66L132,33.66V222.34l25.17-25.17A4,4,0,0,1,162.83,197.17Z"}))]]);var m=Object.defineProperty,h=Object.defineProperties,u=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,f=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,w=(e,t,a)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,v=(e,t)=>{for(var a in t||(t={}))f.call(t,a)&&w(e,a,t[a]);if(g)for(var a of g(t))x.call(t,a)&&w(e,a,t[a]);return e},b=(e,t)=>h(e,u(t));let y=(0,s.forwardRef)((e,t)=>s.createElement(p.Z,b(v({ref:t},e),{weights:d})));y.displayName="ArrowsVertical";var j=a(66070),L=a(64670),E=a.n(L),M=a(42225),S=a(5477);(n=o||(o={})).Paint="Paint",n.Travel="Travel",n.Health="Health",n.Learning="Learning",n.Math="Mathematics",n.Language="Language",n.PopCulture="Pop Culture",n.Food="Food",n.Interviewing="Interviewing",n.Home="Home",n.Fun="Fun",n.Code="Code",n.Finance="Finance",n.Document="Document",n.Image="Image";let I={};I.Paint="indigo",I.Travel="yellow",I.Health="teal",I.Learning="purple",I.Language="blue",I["Pop Culture"]="red",I.Food="yellow",I.Interviewing="orange",I.Home="green",I.Fun="fuchsia",I.Code="teal",I.Finance="green",I.Mathematics="blue",I.Image="red",I.Document="orange";let Z="orange";function A(e,t){return"Paint"===e?(0,M.TI)("Palette",t,"w-6","h-6"):"Pop Culture"===e?(0,M.TI)("Confetti",t,"w-6","h-6"):"Travel"===e?(0,M.TI)("Jeep",t,"w-6","h-6"):"Learning"===e?(0,M.TI)("Book",t,"w-6","h-6"):"Health"===e?(0,M.TI)("Asclepius",t,"w-6","h-6"):"Fun"===e?(0,M.TI)("Island",t,"w-6","h-6"):"Home"===e?(0,M.TI)("House",t,"w-6","h-6"):"Language"===e?(0,M.TI)("Translate",t,"w-6","h-6"):"Code"===e?(0,M.TI)("Code",t,"w-6","h-6"):"Food"===e?(0,M.TI)("BowlFood",t,"w-6","h-6"):"Interviewing"===e?(0,M.TI)("Lectern",t,"w-6","h-6"):"Finance"===e?(0,M.TI)("Wallet",t,"w-6","h-6"):"Mathematics"===e?(0,M.TI)("MathOperations",t,"w-6","h-6"):"Image"===e?(0,M.TI)("Image",t,"w-6","h-6"):"Document"===e?(0,M.TI)("File",t,"w-6","h-6"):(0,M.TI)("Lightbulb",t,"w-6","h-6")}let C=[{type:"Document",actionTagline:"Analyze document",color:I.Document||Z,focus:S.$.FILE,intent:"Read this document and explain"},{type:"Code",actionTagline:"Write code",color:I.Code||Z,focus:S.$.MESSAGE,intent:"Write a program that"},{type:"Learning",actionTagline:"Explain concept",color:I.Learning||Z,focus:S.$.MESSAGE,intent:"I want to understand a concept"},{type:"Paint",actionTagline:"Create image",color:I.Paint||Z,focus:S.$.MESSAGE,intent:"Paint a picture of"},{type:"Language",actionTagline:"Translate text",color:I.Language||Z,focus:S.$.MESSAGE,intent:"Translate this text"},{type:"Finance",actionTagline:"Explain finance",color:I.Finance||Z,focus:S.$.MESSAGE,intent:"Help me build mental models for finance"},{type:"Mathematics",actionTagline:"Explain math",color:I.Mathematics||Z,focus:S.$.MESSAGE,intent:"Help me understand the math behind"},{type:"Image",actionTagline:"Analyze image",color:I.Image||Z,focus:S.$.FILE,intent:"Explain the significance of this image"},{type:"Health",actionTagline:"Improve health",color:I.Health||Z,focus:S.$.MESSAGE,intent:"Help me improve my health"}],k={Paint:[{prompt:"Paint a picture of a sunset but it's made of stained glass tiles."},{prompt:"Paint a futuristic cityscape with flying cars."},{prompt:"Paint a neon-lit street scene with reflections in the rain."},{prompt:"Paint a portrait of a person with a unique hairstyle."},{prompt:"Paint a landscape of a forest with a hidden waterfall."}],Travel:[{prompt:"Search for the best attractions in Austria Hungary."},{prompt:"Find the top-rated coffee shops in Seattle."},{prompt:"Research the best hiking trails in the Swiss Alps."},{prompt:"What is the best time of year to visit Bali?"},{prompt:"Find the best hidden gems in Nairobi."}],Health:[{prompt:"Explain to me how to improve my posture."},{prompt:"Tell me how what I eat affects my insulin levels."},{prompt:"Suggest healthy meal prep ideas for a busy work week."},{prompt:"Recommend good exercises to improve my flexibility."},{prompt:"Explain the benefits of a plant-based diet"}],Learning:[{prompt:"/research look up how Alpha Fold works and explain it to me."},{prompt:"Explain the key equations of general relativity."},{prompt:"Explain the concept of 'machine learning' in simple terms."},{prompt:"What are the key principles of Stoicism?"},{prompt:"/research what are the causes behind the breakthroughs in AI in the last 5 years."}],Language:[{prompt:"Translate the following text into Spanish: 'Hello, how are you?'"},{prompt:"Tell me how to greet someone in Arabic."},{prompt:"Explain the difference between the words 'ser' and 'estar' in Spanish."},{prompt:"Translate the following text into French: 'Where is the nearest metro station?'"},{prompt:"Translate the following text into Japanese: 'I am learning Japanese.'"}],"Pop Culture":[{prompt:"Find the best-rated science fiction books of the last decade."},{prompt:"Research the latest trends in K-pop and its global influence."},{prompt:"Explain the plot of the movie 'Doctor Zhivago' in detail."},{prompt:"What fashion is trending in jackets this season?"},{prompt:"Find the best indie movies of the last year"}],Food:[{prompt:"Find the best empanada recipe from Colombia."},{prompt:"Suggest a healthy alternative to a popular fast food dish."},{prompt:"Find the best recipe for a vegan chocolate cake."},{prompt:"Suggest a recipe for a quick and easy weeknight dinner."},{prompt:"Create a diagram that explains how to make a traditional Italian lasagna."}],Interviewing:[{prompt:"Create interview prep questions for a consulting job."},{prompt:"What information should I include in a CV for a PhD application?"},{prompt:"Suggest questions to ask during a job interview."},{prompt:"What are the best ways to prepare for a technical interview?"},{prompt:"How can I improve my public speaking skills for an interview?"}],Home:[{prompt:"Recommend plants that can grow well indoors."},{prompt:"Suggest ways to reduce plastic waste in daily life."},{prompt:"Create a list of eco-friendly home cleaning products."},{prompt:"Suggest ways to make a small apartment feel more spacious."},{prompt:"Recommend ways to reduce energy consumption in a home."}],Fun:[{prompt:"List creative date ideas for couples on a budget."},{prompt:"Create a list of fun activities for a family game night."},{prompt:"Give me three questions that can help me get to know someone better."},{prompt:"Suggest fun activities for a group of friends on a rainy day."},{prompt:"How can I improve my drawing skills?"}],Code:[{prompt:"Teach me how to write a simple 'Hello World' program in Python."},{prompt:"Write a single page application using vanilla HTML, CSS, and JavaScript that displays a list of items."},{prompt:"Explain the concept of recursion with a simple coding example."},{prompt:"Create a simple calculator app using React."},{prompt:"Write a function that takes an array of numbers and returns the sum of all the numbers."}],Finance:[{prompt:"Create a chart to explain the concept of compound interest and its importance in long-term savings."},{prompt:"Provide an overview of different types of retirement accounts (e.g., 401(k), IRA, Roth IRA)."},{prompt:"Explain the concept of diversification and its importance in investing."},{prompt:"Create a budgeting plan for someone who wants to save money for a vacation."},{prompt:"Explain the difference between a stock and a bond."}],Mathematics:[{prompt:"Create a series of questions to help a student discover the principles of basic economics."},{prompt:"Develop a hands-on experiment to demonstrate the concept of density to middle schoolers."},{prompt:"Explain the concept of a derivative and its applications in real life."},{prompt:"Create a lesson plan to teach students about the Pythagorean theorem."},{prompt:"Explain the concept of a limit in calculus and its importance in mathematics."}],Image:[{prompt:"Explain what is happening in this photograph"},{prompt:"Show me how I can improve this UI design"},{prompt:"Explain the significance of this historical painting"},{prompt:"Can you explain this physics diagram to me?"},{prompt:"Explain this meme to me"}],Document:[{prompt:"Summarize the key concepts in this document."},{prompt:"Provide a detailed explanation about the topic of this document."},{prompt:"Create a visual representation of the information in this document."},{prompt:"Find the main arguments in this document."},{prompt:"Explain the relevance of this document to various other disciplines."}]},H=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M252,152a12,12,0,0,1-12,12H228v12a12,12,0,0,1-24,0V164H192a12,12,0,0,1,0-24h12V128a12,12,0,0,1,24,0v12h12A12,12,0,0,1,252,152ZM56,76H68V88a12,12,0,0,0,24,0V76h12a12,12,0,1,0,0-24H92V40a12,12,0,0,0-24,0V52H56a12,12,0,0,0,0,24ZM184,188h-4v-4a12,12,0,0,0-24,0v4h-4a12,12,0,0,0,0,24h4v4a12,12,0,0,0,24,0v-4h4a12,12,0,0,0,0-24ZM222.14,82.83,82.82,222.14a20,20,0,0,1-28.28,0L33.85,201.46a20,20,0,0,1,0-28.29L173.17,33.86a20,20,0,0,1,28.28,0l20.69,20.68A20,20,0,0,1,222.14,82.83ZM159,112,144,97,53.65,187.31l15,15Zm43.31-43.31-15-15L161,80l15,15Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M176,112,74.34,213.66a8,8,0,0,1-11.31,0L42.34,193a8,8,0,0,1,0-11.31L144,80Z",opacity:"0.2"}),s.createElement("path",{d:"M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M248,152a8,8,0,0,1-8,8H224v16a8,8,0,0,1-16,0V160H192a8,8,0,0,1,0-16h16V128a8,8,0,0,1,16,0v16h16A8,8,0,0,1,248,152ZM56,72H72V88a8,8,0,0,0,16,0V72h16a8,8,0,0,0,0-16H88V40a8,8,0,0,0-16,0V56H56a8,8,0,0,0,0,16ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80ZM208,68.69,187.31,48l-32,32L176,100.69Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M246,152a6,6,0,0,1-6,6H222v18a6,6,0,0,1-12,0V158H192a6,6,0,0,1,0-12h18V128a6,6,0,0,1,12,0v18h18A6,6,0,0,1,246,152ZM56,70H74V88a6,6,0,0,0,12,0V70h18a6,6,0,0,0,0-12H86V40a6,6,0,0,0-12,0V58H56a6,6,0,0,0,0,12ZM184,194H174V184a6,6,0,0,0-12,0v10H152a6,6,0,0,0,0,12h10v10a6,6,0,0,0,12,0V206h10a6,6,0,0,0,0-12ZM217.9,78.59,78.58,217.9a14,14,0,0,1-19.8,0L38.09,197.21a14,14,0,0,1,0-19.8L177.41,38.1a14,14,0,0,1,19.8,0L217.9,58.79A14,14,0,0,1,217.9,78.59ZM167.51,112,144,88.49,46.58,185.9a2,2,0,0,0,0,2.83l20.69,20.68a2,2,0,0,0,2.82,0h0Zm41.9-44.73L188.73,46.59a2,2,0,0,0-2.83,0L152.48,80,176,103.52,209.41,70.1A2,2,0,0,0,209.41,67.27Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M48,64a8,8,0,0,1,8-8H72V40a8,8,0,0,1,16,0V56h16a8,8,0,0,1,0,16H88V88a8,8,0,0,1-16,0V72H56A8,8,0,0,1,48,64ZM184,192h-8v-8a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0v-8h8a8,8,0,0,0,0-16Zm56-48H224V128a8,8,0,0,0-16,0v16H192a8,8,0,0,0,0,16h16v16a8,8,0,0,0,16,0V160h16a8,8,0,0,0,0-16ZM219.31,80,80,219.31a16,16,0,0,1-22.62,0L36.68,198.63a16,16,0,0,1,0-22.63L176,36.69a16,16,0,0,1,22.63,0l20.68,20.68A16,16,0,0,1,219.31,80Zm-54.63,32L144,91.31l-96,96L68.68,208ZM208,68.69,187.31,48l-32,32L176,100.69Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M244,152a4,4,0,0,1-4,4H220v20a4,4,0,0,1-8,0V156H192a4,4,0,0,1,0-8h20V128a4,4,0,0,1,8,0v20h20A4,4,0,0,1,244,152ZM56,68H76V88a4,4,0,0,0,8,0V68h20a4,4,0,0,0,0-8H84V40a4,4,0,0,0-8,0V60H56a4,4,0,0,0,0,8ZM184,196H172V184a4,4,0,0,0-8,0v12H152a4,4,0,0,0,0,8h12v12a4,4,0,0,0,8,0V204h12a4,4,0,0,0,0-8ZM216.48,77.17,77.17,216.49a12,12,0,0,1-17,0L39.51,195.8a12,12,0,0,1,0-17L178.83,39.51a12,12,0,0,1,17,0L216.48,60.2A12,12,0,0,1,216.48,77.17ZM170.34,112,144,85.66,45.17,184.49a4,4,0,0,0,0,5.65l20.68,20.69a4,4,0,0,0,5.66,0Zm40.49-46.14L190.14,45.17a4,4,0,0,0-5.66,0L149.65,80,176,106.34l34.83-34.83A4,4,0,0,0,210.83,65.86Z"}))]]);var N=Object.defineProperty,F=Object.defineProperties,V=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,O=(e,t,a)=>t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,W=(e,t)=>{for(var a in t||(t={}))P.call(t,a)&&O(e,a,t[a]);if(T)for(var a of T(t))_.call(t,a)&&O(e,a,t[a]);return e},B=(e,t)=>F(e,V(t));let D=(0,s.forwardRef)((e,t)=>s.createElement(p.Z,B(W({ref:t},e),{weights:H})));D.displayName="MagicWand";let R=new Map([["bold",s.createElement(s.Fragment,null,s.createElement("path",{d:"M168.49,104.49,145,128l23.52,23.51a12,12,0,0,1-17,17L128,145l-23.51,23.52a12,12,0,0,1-17-17L111,128,87.51,104.49a12,12,0,0,1,17-17L128,111l23.51-23.52a12,12,0,0,1,17,17ZM236,128A108,108,0,1,1,128,20,108.12,108.12,0,0,1,236,128Zm-24,0a84,84,0,1,0-84,84A84.09,84.09,0,0,0,212,128Z"}))],["duotone",s.createElement(s.Fragment,null,s.createElement("path",{d:"M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z",opacity:"0.2"}),s.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["fill",s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm37.66,130.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32L139.31,128Z"}))],["light",s.createElement(s.Fragment,null,s.createElement("path",{d:"M164.24,100.24,136.48,128l27.76,27.76a6,6,0,1,1-8.48,8.48L128,136.48l-27.76,27.76a6,6,0,0,1-8.48-8.48L119.52,128,91.76,100.24a6,6,0,0,1,8.48-8.48L128,119.52l27.76-27.76a6,6,0,0,1,8.48,8.48ZM230,128A102,102,0,1,1,128,26,102.12,102.12,0,0,1,230,128Zm-12,0a90,90,0,1,0-90,90A90.1,90.1,0,0,0,218,128Z"}))],["regular",s.createElement(s.Fragment,null,s.createElement("path",{d:"M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"}))],["thin",s.createElement(s.Fragment,null,s.createElement("path",{d:"M162.83,98.83,133.66,128l29.17,29.17a4,4,0,0,1-5.66,5.66L128,133.66,98.83,162.83a4,4,0,0,1-5.66-5.66L122.34,128,93.17,98.83a4,4,0,0,1,5.66-5.66L128,122.34l29.17-29.17a4,4,0,1,1,5.66,5.66ZM228,128A100,100,0,1,1,128,28,100.11,100.11,0,0,1,228,128Zm-8,0a92,92,0,1,0-92,92A92.1,92.1,0,0,0,220,128Z"}))]]);var G=Object.defineProperty,U=Object.defineProperties,$=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,Y=(e,t,a)=>t in e?G(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,K=(e,t)=>{for(var a in t||(t={}))z.call(t,a)&&Y(e,a,t[a]);if(q)for(var a of q(t))J.call(t,a)&&Y(e,a,t[a]);return e},Q=(e,t)=>U(e,$(t));let X=(0,s.forwardRef)((e,t)=>s.createElement(p.Z,Q(K({ref:t},e),{weights:R})));function ee(e){let t="".concat(E().card," md:w-full md:h-fit sm:w-full h-fit md:w-[200px] cursor-pointer md:p-2"),a="".concat(E().text," dark:text-white");return(0,i.jsx)(j.Zb,{className:t,children:(0,i.jsx)("div",{className:"flex w-full",children:(0,i.jsxs)(j.aY,{className:"m-0 p-2 w-full flex flex-row",children:[A(e.title,e.color.toLowerCase()),(0,i.jsx)(j.SZ,{className:"".concat(a," sm:line-clamp-2 md:line-clamp-4 pt-1 break-words whitespace-pre-wrap max-w-full"),children:e.body})]})})})}function et(e){let t="".concat(E().card," md:h-fit sm:w-full h-fit cursor-pointer md:p-2");return(0,i.jsx)(j.Zb,{className:t,children:(0,i.jsx)("div",{className:"flex w-full items-center",children:(0,i.jsxs)(j.aY,{className:"m-0 p-1 w-full flex flex-row items-center",children:[(0,i.jsx)(D,{weight:"thin",className:"w-4 h-4 text-muted-foreground inline-flex mr-1 text-opacity-40"}),(0,i.jsx)(j.SZ,{className:"sm:line-clamp-2 md:line-clamp-4 break-words whitespace-pre-wrap max-w-full text-sm text-wrap text-black dark:text-white",children:e.prompt})]})})})}function ea(e){let t="".concat(E().card," md:w-full md:h-fit sm:w-full h-fit md:w-fit cursor-pointer m-2 md:p-1 animate-fade-in-up border-opacity-50 shadow-none"),a="".concat(E().text," dark:text-white");return(0,i.jsx)(j.Zb,{className:t,onClick:e.onClick,children:(0,i.jsx)("div",{className:"flex w-full h-full items-center justify-center",children:(0,i.jsxs)(j.aY,{className:"m-0 p-2 w-full flex flex-row items-center justify-center",children:[A(e.title,e.color.toLowerCase()),(0,i.jsx)(j.SZ,{className:"".concat(a," sm:line-clamp-2 md:line-clamp-4 pt-1 break-words whitespace-pre-wrap max-w-full text-center"),children:e.body}),(0,i.jsx)(X,{className:"w-6 h-6 text-muted-foreground inline-flex ml-1"})]})})})}X.displayName="XCircle";var en=a(14308),eo=a(33494),ei=a(56937),er=a(84671),el=a(59199),es=a(7436),ec=a(99376),ep=a(19378),ed=a(25427),em=a(57054),eh=a(62869),eu=a(37104),eg=a(17814);function ef(e){return e.isMobileWidth?(0,i.jsx)(eg.dy,{open:!0,onClose:()=>e.setShowLoginPrompt(!1),children:(0,i.jsx)(eg.sc,{children:(0,i.jsx)(ex,{...e})})}):(0,i.jsx)("div",{className:"fixed inset-x-0 bottom-8 z-30 flex items-center justify-center",children:(0,i.jsx)(ex,{...e})})}function ex(e){return(0,i.jsxs)(j.Zb,{className:"rounded-lg p-6 flex flex-col items-center justify-between gap-8 md:w-fit border-none md:flex-row md:z-30 md:shadow-lg",children:[!e.isMobileWidth&&(0,i.jsx)(eu.S6,{className:"w-12 h-auto"}),(0,i.jsxs)("div",{className:"flex flex-col items-start justify-center gap-8 md:gap-2",children:[(0,i.jsx)(j.Ol,{className:"p-0 text-xl font-bold",children:"Welcome to Khoj!"}),(0,i.jsx)(j.SZ,{children:"Sign in to get started with Khoj, your AI research assistant."})]}),(0,i.jsx)(eh.z,{variant:"default",className:"p-6 text-lg",onClick:()=>e.setShowLoginPrompt(!0),children:"Get started for free"})]})}var ew=a(60729),ev=a(34124),eb=a(6512),ey=a(84190);function ej(e){let{agents:t,agentIcons:a,selectedAgent:n,isPopoverOpen:o,debouncedHoveredAgent:r,setHoveredAgent:l,setIsPopoverOpen:s,setSelectedAgent:c,chatInputRef:p,openAgentEditCard:d,userConfig:m,isMobileWidth:h}=e;return(0,i.jsxs)(ep.x,{className:"w-full max-w-[600px] mx-auto",children:[(0,i.jsx)("div",{className:"flex pb-2 gap-2 items-center justify-center",children:t.map((e,t)=>(0,i.jsxs)(em.J2,{open:o&&r===e.slug,onOpenChange:e=>{e||(l(null),s(!1))},children:[(0,i.jsx)(em.xo,{asChild:!0,children:(0,i.jsx)(j.Zb,{className:"".concat(n===e.slug?(0,er.Iu)(e.color):"border-stone-100 dark:border-neutral-700 text-muted-foreground","\n hover:cursor-pointer rounded-lg px-2 py-2"),onDoubleClick:()=>d(e.slug),onClick:()=>{var t;c(e.slug),null===(t=p.current)||void 0===t||t.focus(),l(null),s(!1)},onMouseEnter:()=>l(e.slug),onMouseLeave:()=>{l(null),s(!1)},children:(0,i.jsxs)(j.ll,{className:"text-center text-md font-medium flex justify-center items-center whitespace-nowrap",children:[a[t]," ",e.name]})})}),(0,i.jsx)(em.yk,{className:"w-80 p-0 border-none bg-transparent shadow-none",onMouseLeave:()=>{l(null),s(!1)},children:(0,i.jsx)(ed.EY,{data:e,userProfile:null,isMobileWidth:h||!1,showChatButton:!1,editCard:!1,filesOptions:[],selectedChatModelOption:"",agentSlug:"",isSubscribed:(0,ei.T8)(m),setAgentChangeTriggered:()=>{},modelOptions:[],inputToolOptions:{},outputModeOptions:{}})})]},"".concat(t,"-").concat(e.slug)))}),(0,i.jsx)(ep.B,{orientation:"horizontal"})]})}function eL(e){var t,a,n,o,r,p,d;let[m,h]=(0,s.useState)(""),[u,g]=(0,s.useState)(""),[f,x]=(0,s.useState)(S.$.MESSAGE),[w,v]=(0,s.useState)([]),[b,j]=(0,s.useState)(!1),[L,E]=(0,s.useState)(""),[I,Z]=(0,s.useState)(C.slice(0,3)),[A,H]=(0,s.useState)([]),[N,F]=(0,s.useState)(null),[V,T]=(0,s.useState)(null),P=(0,es.Nr)(V,500),[_,O]=(0,s.useState)(!1),[W,B]=(0,s.useState)("khoj"),[D,R]=(0,s.useState)([]),[G,U]=(0,s.useState)([]),$=(0,s.useRef)(null),[q,z]=(0,s.useState)(!1),J=(0,ec.useRouter)(),Y=(0,ec.useSearchParams)().get("q");(0,s.useEffect)(()=>{Y&&h(decodeURIComponent(Y))},[Y]),(0,s.useEffect)(()=>{P&&O(!0)},[P]);let K=e.onConversationIdChange,{data:Q,error:X}=(0,c.ZP)("agents",()=>window.fetch("/api/agents").then(e=>e.json()).catch(e=>console.log(e)),{revalidateOnFocus:!1});return(0,s.useEffect)(()=>{var t,a;if(e.isLoadingUserConfig)return;let n=new Date,o=n.getDay(),i=n.getHours()>=17||4>n.getHours()?"evening":n.getHours()>=12?"afternoon":"morning",r=(null===(t=e.userConfig)||void 0===t?void 0:t.given_name)?", ".concat(null===(a=e.userConfig)||void 0===a?void 0:a.given_name):"",l=["What would you like to get done".concat(r,"?"),"Hey".concat(r,"! How can I help?"),"Good ".concat(i).concat(r,"! What's on your mind?"),"Ready to breeze through ".concat(["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][o],"?"),"Let's navigate your ".concat(["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][o]," workload")];E(l[Math.floor(Math.random()*l.length)])},[e.isLoadingUserConfig,e.userConfig]),(0,s.useEffect)(()=>{let e=(Q||[]).filter(e=>null!=e);U(e),B(e.length>1?e[0].slug:"khoj"),R(e.map(e=>(0,M.TI)(e.icon,e.color)))},[Q]),(0,s.useEffect)(()=>{(async()=>{if(m&&!b){j(!0);try{let e=await (0,el.A0)(W||"khoj");null==K||K(e),localStorage.setItem("message",m),w.length>0&&localStorage.setItem("images",JSON.stringify(w)),window.location.href="/chat?conversationId=".concat(e)}catch(e){console.error("Error creating new conversation:",e),j(!1)}h(""),v([])}})(),(m||w.length>0)&&j(!0)},[W,m,b,K]),(0,s.useEffect)(()=>{let e=document.querySelector("[data-radix-scroll-area-viewport]"),t=()=>{T(null),O(!1)};return null==e||e.addEventListener("scroll",t),()=>null==e?void 0:e.removeEventListener("scroll",t)},[]),(0,i.jsxs)("div",{className:"".concat(l().homeGreetings," w-full md:w-auto"),children:[q&&(0,i.jsx)(eo.Z,{onOpenChange:z,isMobileWidth:e.isMobileWidth}),!e.isLoggedIn&&(0,i.jsx)(ef,{isMobileWidth:e.isMobileWidth,setShowLoginPrompt:z}),(0,i.jsxs)("div",{className:"w-full text-center justify-end content-end",children:[(0,i.jsx)("div",{className:"items-center",children:(0,i.jsx)("h1",{className:"text-2xl md:text-3xl text-center w-fit pb-6 pt-4 px-4 mx-auto",children:L})}),!e.isMobileWidth&&(0,i.jsx)(ej,{agents:G,agentIcons:D,selectedAgent:W,isPopoverOpen:_,debouncedHoveredAgent:P,setHoveredAgent:T,setIsPopoverOpen:O,setSelectedAgent:B,chatInputRef:$,openAgentEditCard:e=>{J.push("/agents?agent=".concat(e))},userConfig:e.userConfig})]}),(0,i.jsxs)("div",{className:"mx-auto ".concat(e.isMobileWidth?"w-full":"w-full max-w-screen-md"),children:[!e.isMobileWidth&&(0,i.jsx)("div",{className:"w-full ".concat(l().inputBox," shadow-lg bg-background align-middle items-center justify-center px-3 py-1 dark:bg-neutral-700 border-stone-100 dark:border-none dark:shadow-none rounded-2xl"),children:(0,i.jsx)(S.a,{isLoggedIn:e.isLoggedIn,prefillMessage:u,focus:f,sendMessage:e=>h(e),sendImage:e=>v(t=>[...t,e]),sendDisabled:b,chatOptionsData:e.chatOptionsData,conversationId:null,isMobileWidth:e.isMobileWidth,setUploadedFiles:e.setUploadedFiles,agentColor:null===(t=G.find(e=>e.slug===W))||void 0===t?void 0:t.color,ref:$,setTriggeredAbort:()=>{}})}),0==A.length&&(0,i.jsx)("div",{className:"".concat(l().suggestions," w-full ").concat(e.isMobileWidth&&C.length>3?"grid grid-cols-2":"grid grid-cols-3",' "justify-center items-center"'),children:I.map((t,a)=>(0,i.jsx)("div",{onClick:a=>{e.isLoggedIn?function(e){g(e.intent);let t=k[e.type]||[];F(e),H(t),x(e.focus)}(t):(a.preventDefault(),a.stopPropagation(),z(!0))},children:(0,i.jsx)(ee,{title:t.type,body:t.actionTagline,color:t.color},t.type+Math.random())},"".concat(t.type," ").concat(t.actionTagline)))}),0==A.length&&I.length<C.length&&(0,i.jsx)("div",{className:"flex items-center justify-center margin-auto",children:(0,i.jsxs)("button",{onClick:function(){Z(C)},className:"m-2 p-1.5 rounded-lg dark:hover:bg-[var(--background-color)] hover:bg-stone-100 border border-stone-100 text-sm text-stone-500 dark:text-stone-300 dark:border-neutral-700",children:["Show All ",(0,i.jsx)(y,{className:"h-4 w-4 inline"})]})}),N&&(0,i.jsx)(ea,{title:N.type,body:N.actionTagline,color:N.color,onClick:()=>{g(""),F(null),H([]),x(S.$.MESSAGE)}}),A.length>0&&(0,i.jsx)("div",{className:"w-full ".concat(e.isMobileWidth?"grid":"grid grid-cols-1"," justify-center items-center gap-2 p-2"),children:A.map((e,t)=>(0,i.jsx)("div",{className:"w-full cursor-pointer animate-fade-in-up",onClick:t=>{h(e.prompt)},children:(0,i.jsx)(et,{prompt:e.prompt},e.prompt)},"".concat(e.prompt," ").concat(t)))})]}),e.isMobileWidth&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"".concat(l().inputBox," align-middle items-center justify-center pb-3 mx-1 mb-2 border-none"),children:[(0,i.jsxs)(ey.h_,{children:[(0,i.jsx)(ey.$F,{children:(0,i.jsxs)(eh.z,{className:"w-full m-2 p-0",variant:"outline",children:[W?(0,M.TI)(null!==(p=null===(a=G.find(e=>e.slug===W))||void 0===a?void 0:a.icon)&&void 0!==p?p:"",null!==(d=null===(n=G.find(e=>e.slug===W))||void 0===n?void 0:n.color)&&void 0!==d?d:""):(0,i.jsx)(y,{className:"h-5 w-5"}),W?"".concat(null===(o=G.find(e=>e.slug===W))||void 0===o?void 0:o.name):"Select Agent"]})}),(0,i.jsx)(ey.AW,{align:"end",className:"overflow-y-scroll h-96",children:D.map((e,t)=>(0,i.jsxs)(ey.Xi,{onClick:()=>{var e;B(G[t].slug),null===(e=$.current)||void 0===e||e.focus()},children:[e," ",G[t].name]},"".concat(t,"-").concat(G[t].slug)))})]}),(0,i.jsx)("div",{className:"".concat(l().inputBox," pt-4 shadow-[0_-20px_25px_-5px_rgba(0,0,0,0.1)] dark:bg-neutral-700 bg-background rounded-2xl mb-2 border-none"),children:(0,i.jsx)(S.a,{isLoggedIn:e.isLoggedIn,sendMessage:e=>h(e),sendImage:e=>v(t=>[...t,e]),sendDisabled:b,chatOptionsData:e.chatOptionsData,conversationId:null,isMobileWidth:e.isMobileWidth,setUploadedFiles:e.setUploadedFiles,agentColor:null===(r=G.find(e=>e.slug===W))||void 0===r?void 0:r.color,ref:$,setTriggeredAbort:()=>{}})})]})})]})}function eE(){let[e,t]=(0,s.useState)(null),[a,n]=(0,s.useState)(!0),[o,r]=(0,s.useState)(null),[c,p]=(0,s.useState)(null),d=(0,es.IC)(),{data:m,isLoading:h}=(0,ei.h2)(!0),[u,g]=(0,s.useState)(null),{data:f,error:x,isLoading:w}=(0,ei.GW)();return((0,s.useEffect)(()=>{g(m)},[m]),(0,s.useEffect)(()=>{c&&localStorage.setItem("uploadedFiles",JSON.stringify(c))},[c]),(0,s.useEffect)(()=>{fetch("/api/chat/options").then(e=>e.json()).then(e=>{n(!1),e&&t(e)}).catch(e=>{console.error(e)})},[]),a)?(0,i.jsx)(en.Z,{}):(0,i.jsxs)(ew.Hn,{children:[(0,i.jsx)(ev.S,{conversationId:o}),(0,i.jsxs)(ew.kV,{children:[(0,i.jsxs)("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b px-4",children:[(0,i.jsx)(ew.vP,{className:"-ml-1"}),(0,i.jsx)(eb.Z,{orientation:"vertical",className:"mr-2 h-4"}),d?(0,i.jsx)("a",{className:"p-0 no-underline",href:"/",children:(0,i.jsx)(eu.VO,{className:"h-auto w-16"})}):(0,i.jsx)("h2",{className:"text-lg",children:"Ask Anything"})]}),(0,i.jsxs)("div",{className:"".concat(l().main," ").concat(l().chatLayout),children:[(0,i.jsx)("title",{children:"Khoj AI - Your Second Brain"}),(0,i.jsx)("div",{className:"".concat(l().chatBox),children:(0,i.jsx)("div",{className:"".concat(l().chatBoxBody),children:!w&&(0,i.jsx)(eL,{isLoggedIn:!!f,chatOptionsData:e,setUploadedFiles:p,isMobileWidth:d,onConversationIdChange:e=>{r(e)},userConfig:u,isLoadingUserConfig:h})})})]})]})]})}},99376:function(e,t,a){"use strict";var n=a(35475);a.o(n,"useRouter")&&a.d(t,{useRouter:function(){return n.useRouter}}),a.o(n,"useSearchParams")&&a.d(t,{useSearchParams:function(){return n.useSearchParams}})},47960:function(){},64670:function(e){e.exports={card:"suggestions_card__fbiZo",title:"suggestions_title__vNozc",text:"suggestions_text__J_IfY"}},76777:function(e){e.exports={main:"page_main__nw1Wk",suggestions:"page_suggestions__Y8EqU",inputBox:"page_inputBox__LrcZ4",chatBodyFull:"page_chatBodyFull__Qu2T2",chatBody:"page_chatBody__IirQQ",chatLayout:"page_chatLayout__bJUjP",chatBox:"page_chatBox__gsR6V",titleBar:"page_titleBar__3btUI",chatBoxBody:"page_chatBoxBody__xORKr",homeGreetings:"page_homeGreetings__VjQhh"}}},function(e){e.O(0,[3587,6250,216,2663,3861,9259,8667,4363,4447,6663,4357,7647,2327,5477,5427,2971,2117,1744],function(){return e(e.s=1507)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244,8459,3317
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[244,8459,7138,3317],{34780:function(e,t,n){Promise.resolve().then(n.bind(n,85147))},7436:function(e,t,n){"use strict";n.d(t,{EK:function(){return i},Gv:function(){return l},IC:function(){return _},Iy:function(){return s},LF:function(){return u},Nr:function(){return m},k6:function(){return a},o0:function(){return f},xq:function(){return d}});var r=n(2265),o=n(63861);let c=()=>window.fetch("https://ipapi.co/json").then(e=>e.json()).catch(e=>console.log(e)),u=e=>e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase());function i(){console.log("%c %s","font-family:monospace",'\n __ __ __ __ ______ __ _____ __\n/\\ \\/ / /\\ \\_\\ \\ /\\ __ \\ /\\ \\ /\\ __ \\ /\\ \\\n\\ \\ _"-. \\ \\ __ \\ \\ \\ \\/\\ \\ _\\_\\ \\ \\ \\ __ \\ \\ \\ \\\n \\ \\_\\ \\_\\ \\ \\_\\ \\_\\ \\ \\_____\\ /\\_____\\ \\ \\_\\ \\_\\ \\ \\_\\\n \\/_/\\/_/ \\/_/\\/_/ \\/_____/ \\/_____/ \\/_/\\/_/ \\/_/\n\n\nGreetings traveller,\n\nI am ✨Khoj✨, your open-source, personal AI copilot.\n\nSee my source code at https://github.com/khoj-ai/khoj\nRead my operating manual at https://docs.khoj.dev\n')}function a(){let{data:e,error:t,isLoading:n}=(0,o.ZP)("/api/ip",c,{revalidateOnFocus:!1});return{locationData:e,locationDataError:t,locationDataLoading:n}}function _(){let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=()=>{window.innerWidth<=768?t(!0):t(!1)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}let s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{attributes:!0,characterData:!0,childList:!0,subtree:!0};r.useEffect(()=>{if(e.current){let r=new MutationObserver(t);return r.observe(e.current,n),()=>r.disconnect()}},[e,t,n])};function l(){let[e,t]=(0,r.useState)(!1),[n,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{"dark"===localStorage.getItem("theme")?(document.documentElement.classList.add("dark"),t(!0)):"light"===localStorage.getItem("theme")?(document.documentElement.classList.remove("dark"),t(!1)):window.matchMedia("(prefers-color-scheme: dark)").matches&&(document.documentElement.classList.add("dark"),t(!0)),o(!0)},[]),(0,r.useEffect)(()=>{n&&(e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",e?"dark":"light"))},[e,n]),[e,t]}let d=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(2)," KB"):"".concat((e/1048576).toFixed(2)," MB");function m(e,t){let[n,o]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let n=setTimeout(()=>{o(e)},t);return()=>{clearTimeout(n)}},[e,t]),n}let f=e=>{try{let t=new Date(e),n=new Date,r=Math.floor((n.getTime()-t.getTime())/6e4);if(r<1)return"just now";if(r<60)return"".concat(r," minutes ago");if(r<120)return"1 hour ago";if(r<1440)return"".concat(Math.floor(r/60)," hours ago");return new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short"}).format(t)}catch(t){return console.error("Error formatting date:",t),e}}},85147:function(e,t,n){"use strict";n.d(t,{ThemeProvider:function(){return c}});var r=n(57437),o=n(7436);function c(e){let{children:t}=e,[n,c]=(0,o.Gv)();return(0,r.jsx)(r.Fragment,{children:t})}}},function(e){e.O(0,[3861,2971,2117,1744],function(){return e(e.s=34780)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7138,8459,244
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7138,8459,3317,244],{34780:function(e,t,n){Promise.resolve().then(n.bind(n,85147))},7436:function(e,t,n){"use strict";n.d(t,{EK:function(){return i},Gv:function(){return l},IC:function(){return _},Iy:function(){return s},LF:function(){return u},Nr:function(){return m},k6:function(){return a},o0:function(){return f},xq:function(){return d}});var r=n(2265),o=n(63861);let c=()=>window.fetch("https://ipapi.co/json").then(e=>e.json()).catch(e=>console.log(e)),u=e=>e.replace(/\w\S*/g,e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase());function i(){console.log("%c %s","font-family:monospace",'\n __ __ __ __ ______ __ _____ __\n/\\ \\/ / /\\ \\_\\ \\ /\\ __ \\ /\\ \\ /\\ __ \\ /\\ \\\n\\ \\ _"-. \\ \\ __ \\ \\ \\ \\/\\ \\ _\\_\\ \\ \\ \\ __ \\ \\ \\ \\\n \\ \\_\\ \\_\\ \\ \\_\\ \\_\\ \\ \\_____\\ /\\_____\\ \\ \\_\\ \\_\\ \\ \\_\\\n \\/_/\\/_/ \\/_/\\/_/ \\/_____/ \\/_____/ \\/_/\\/_/ \\/_/\n\n\nGreetings traveller,\n\nI am ✨Khoj✨, your open-source, personal AI copilot.\n\nSee my source code at https://github.com/khoj-ai/khoj\nRead my operating manual at https://docs.khoj.dev\n')}function a(){let{data:e,error:t,isLoading:n}=(0,o.ZP)("/api/ip",c,{revalidateOnFocus:!1});return{locationData:e,locationDataError:t,locationDataLoading:n}}function _(){let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=()=>{window.innerWidth<=768?t(!0):t(!1)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}let s=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{attributes:!0,characterData:!0,childList:!0,subtree:!0};r.useEffect(()=>{if(e.current){let r=new MutationObserver(t);return r.observe(e.current,n),()=>r.disconnect()}},[e,t,n])};function l(){let[e,t]=(0,r.useState)(!1),[n,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{"dark"===localStorage.getItem("theme")?(document.documentElement.classList.add("dark"),t(!0)):"light"===localStorage.getItem("theme")?(document.documentElement.classList.remove("dark"),t(!1)):window.matchMedia("(prefers-color-scheme: dark)").matches&&(document.documentElement.classList.add("dark"),t(!0)),o(!0)},[]),(0,r.useEffect)(()=>{n&&(e?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",e?"dark":"light"))},[e,n]),[e,t]}let d=e=>e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(2)," KB"):"".concat((e/1048576).toFixed(2)," MB");function m(e,t){let[n,o]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let n=setTimeout(()=>{o(e)},t);return()=>{clearTimeout(n)}},[e,t]),n}let f=e=>{try{let t=new Date(e),n=new Date,r=Math.floor((n.getTime()-t.getTime())/6e4);if(r<1)return"just now";if(r<60)return"".concat(r," minutes ago");if(r<120)return"1 hour ago";if(r<1440)return"".concat(Math.floor(r/60)," hours ago");return new Intl.DateTimeFormat("en-US",{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0,timeZoneName:"short"}).format(t)}catch(t){return console.error("Error formatting date:",t),e}}},85147:function(e,t,n){"use strict";n.d(t,{ThemeProvider:function(){return c}});var r=n(57437),o=n(7436);function c(e){let{children:t}=e,[n,c]=(0,o.Gv)();return(0,r.jsx)(r.Fragment,{children:t})}}},function(e){e.O(0,[3861,2971,2117,1744],function(){return e(e.s=34780)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3111],{91955:function(e,t,s){Promise.resolve().then(s.bind(s,41694))},41694:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return p}});var a=s(57437),o=s(22515),n=s.n(o),i=s(2265),l=s(74986),c=s(14308);s(2446);var r=s(7436),d=s(56937),h=s(5477),u=s(60729),g=s(34124),m=s(6512),x=s(37104);function f(e){let[t,s]=(0,i.useState)(""),[o,c]=(0,i.useState)([]),[r,d]=(0,i.useState)(!1),[u,g]=(0,i.useState)(null),m=(0,i.useRef)(null),x=e.setQueryToProcess,f=e.streamedMessages,p=e.isMobileWidth?"w-full":"w-4/6";return((0,i.useEffect)(()=>{if(o.length>0){let t=o.map(e=>encodeURIComponent(e));e.setImages(t)}},[o,e.setImages]),(0,i.useEffect)(()=>{t&&(d(!0),x(t))},[t,x]),(0,i.useEffect)(()=>{f&&f.length>0&&f[f.length-1].completed?d(!1):s("")},[f]),e.publicConversationSlug||e.conversationId)?(0,a.jsx)("div",{className:"flex flex-row h-full w-full",children:(0,a.jsxs)("div",{className:"flex flex-col h-full w-full",children:[(0,a.jsx)("div",{className:n().chatBodyFull,children:(0,a.jsx)(l.Z,{publicConversationSlug:e.publicConversationSlug,conversationId:e.conversationId||"",setAgent:g,setTitle:e.setTitle,pendingMessage:r?t:"",incomingMessages:e.streamedMessages,customClassName:p})}),(0,a.jsx)("div",{className:"".concat(n().inputBox," p-1 md:px-2 shadow-md bg-background align-middle items-center justify-center dark:bg-neutral-700 dark:border-0 dark:shadow-sm rounded-2xl md:rounded-xl h-fit ").concat(p," mr-auto ml-auto mt-auto"),children:(0,a.jsx)(h.a,{isLoggedIn:e.isLoggedIn,sendMessage:e=>s(e),sendImage:e=>c(t=>[...t,e]),sendDisabled:r,chatOptionsData:e.chatOptionsData,conversationId:e.conversationId,agentColor:null==u?void 0:u.color,isMobileWidth:e.isMobileWidth,setUploadedFiles:e.setUploadedFiles,setTriggeredAbort:()=>{},ref:m})})]})}):(0,a.jsx)("div",{className:n().suggestions,children:"Whoops, nothing to see here!"})}function p(){let[e,t]=(0,i.useState)(null),[s,o]=(0,i.useState)(!0),[l,h]=(0,i.useState)("Khoj AI - Chat"),[p,_]=(0,i.useState)(void 0),[v,j]=(0,i.useState)([]),[S,N]=(0,i.useState)(""),[C,I]=(0,i.useState)(null),[b,w]=(0,i.useState)(void 0),[y,B]=(0,i.useState)([]),{data:O,error:k,isLoading:M}=(0,d.GW)(),E=(0,r.IC)();return((0,i.useEffect)(()=>{fetch("/api/chat/options").then(e=>e.json()).then(e=>{o(!1),e&&t(e)}).catch(e=>{console.error(e)}),(0,r.EK)(),w(window.location.pathname.split("/").pop()||"")},[]),(0,i.useEffect)(()=>{C&&localStorage.setItem("uploadedFiles",JSON.stringify(C))},[C]),(0,i.useEffect)(()=>{if(S&&!p){fetch("/api/chat/share/fork?public_conversation_slug=".concat(b),{method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{_(e.conversation_id),localStorage.setItem("message",S),y.length>0&&localStorage.setItem("images",JSON.stringify(y)),window.location.href="/chat?conversationId=".concat(e.conversation_id)}).catch(e=>{console.error(e)});return}},[S,p,b]),s)?(0,a.jsx)(c.Z,{}):b?(0,a.jsxs)(u.Hn,{children:[(0,a.jsx)(g.S,{conversationId:p||""}),(0,a.jsxs)(u.kV,{children:[(0,a.jsxs)("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b px-4",children:[(0,a.jsx)(u.vP,{className:"-ml-1"}),(0,a.jsx)(m.Z,{orientation:"vertical",className:"mr-2 h-4"}),b&&(0,a.jsx)("div",{className:"".concat(n().chatTitleWrapper," text-nowrap text-ellipsis overflow-hidden max-w-screen-md grid items-top font-bold mx-2 md:mr-8 col-auto h-fit"),children:E?(0,a.jsx)("a",{className:"p-0 no-underline",href:"/",children:(0,a.jsx)(x.VO,{className:"h-auto w-16"})}):l&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("h2",{className:"text-lg text-ellipsis whitespace-nowrap overflow-x-hidden mr-4",children:l})})})]}),(0,a.jsxs)("div",{className:"".concat(n().main," ").concat(n().chatLayout),children:[(0,a.jsx)("title",{children:l}),(0,a.jsx)("div",{className:n().chatBox,children:(0,a.jsx)("div",{className:n().chatBoxBody,children:(0,a.jsx)(i.Suspense,{fallback:(0,a.jsx)(c.Z,{}),children:(0,a.jsx)(f,{conversationId:p,streamedMessages:v,setQueryToProcess:N,isLoggedIn:!!O,publicConversationSlug:b,chatOptionsData:e,setTitle:h,setUploadedFiles:I,isMobileWidth:E,setImages:B})})})})]})]})]}):(0,a.jsx)("div",{className:n().suggestions,children:"Whoops, nothing to see here!"})}},22515:function(e){e.exports={main:"sharedChat_main__7Nayy",suggestions:"sharedChat_suggestions__V8kr_",inputBox:"sharedChat_inputBox__wRW5A",chatBodyFull:"sharedChat_chatBodyFull__O1MOv",chatBody:"sharedChat_chatBody__OnHDL",chatLayout:"sharedChat_chatLayout__gutlc",chatBox:"sharedChat_chatBox__PmAPg",titleBar:"sharedChat_titleBar__vOHp_",chatBoxBody:"sharedChat_chatBoxBody__ef2Nl",agentIndicator:"sharedChat_agentIndicator__ORCl4"}}},function(e){e.O(0,[
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3111],{91955:function(e,t,s){Promise.resolve().then(s.bind(s,41694))},41694:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return p}});var a=s(57437),o=s(22515),n=s.n(o),i=s(2265),l=s(74986),c=s(14308);s(2446);var r=s(7436),d=s(56937),h=s(5477),u=s(60729),g=s(34124),m=s(6512),x=s(37104);function f(e){let[t,s]=(0,i.useState)(""),[o,c]=(0,i.useState)([]),[r,d]=(0,i.useState)(!1),[u,g]=(0,i.useState)(null),m=(0,i.useRef)(null),x=e.setQueryToProcess,f=e.streamedMessages,p=e.isMobileWidth?"w-full":"w-4/6";return((0,i.useEffect)(()=>{if(o.length>0){let t=o.map(e=>encodeURIComponent(e));e.setImages(t)}},[o,e.setImages]),(0,i.useEffect)(()=>{t&&(d(!0),x(t))},[t,x]),(0,i.useEffect)(()=>{f&&f.length>0&&f[f.length-1].completed?d(!1):s("")},[f]),e.publicConversationSlug||e.conversationId)?(0,a.jsx)("div",{className:"flex flex-row h-full w-full",children:(0,a.jsxs)("div",{className:"flex flex-col h-full w-full",children:[(0,a.jsx)("div",{className:n().chatBodyFull,children:(0,a.jsx)(l.Z,{publicConversationSlug:e.publicConversationSlug,conversationId:e.conversationId||"",setAgent:g,setTitle:e.setTitle,pendingMessage:r?t:"",incomingMessages:e.streamedMessages,customClassName:p})}),(0,a.jsx)("div",{className:"".concat(n().inputBox," p-1 md:px-2 shadow-md bg-background align-middle items-center justify-center dark:bg-neutral-700 dark:border-0 dark:shadow-sm rounded-2xl md:rounded-xl h-fit ").concat(p," mr-auto ml-auto mt-auto"),children:(0,a.jsx)(h.a,{isLoggedIn:e.isLoggedIn,sendMessage:e=>s(e),sendImage:e=>c(t=>[...t,e]),sendDisabled:r,chatOptionsData:e.chatOptionsData,conversationId:e.conversationId,agentColor:null==u?void 0:u.color,isMobileWidth:e.isMobileWidth,setUploadedFiles:e.setUploadedFiles,setTriggeredAbort:()=>{},ref:m})})]})}):(0,a.jsx)("div",{className:n().suggestions,children:"Whoops, nothing to see here!"})}function p(){let[e,t]=(0,i.useState)(null),[s,o]=(0,i.useState)(!0),[l,h]=(0,i.useState)("Khoj AI - Chat"),[p,_]=(0,i.useState)(void 0),[v,j]=(0,i.useState)([]),[S,N]=(0,i.useState)(""),[C,I]=(0,i.useState)(null),[b,w]=(0,i.useState)(void 0),[y,B]=(0,i.useState)([]),{data:O,error:k,isLoading:M}=(0,d.GW)(),E=(0,r.IC)();return((0,i.useEffect)(()=>{fetch("/api/chat/options").then(e=>e.json()).then(e=>{o(!1),e&&t(e)}).catch(e=>{console.error(e)}),(0,r.EK)(),w(window.location.pathname.split("/").pop()||"")},[]),(0,i.useEffect)(()=>{C&&localStorage.setItem("uploadedFiles",JSON.stringify(C))},[C]),(0,i.useEffect)(()=>{if(S&&!p){fetch("/api/chat/share/fork?public_conversation_slug=".concat(b),{method:"POST",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{_(e.conversation_id),localStorage.setItem("message",S),y.length>0&&localStorage.setItem("images",JSON.stringify(y)),window.location.href="/chat?conversationId=".concat(e.conversation_id)}).catch(e=>{console.error(e)});return}},[S,p,b]),s)?(0,a.jsx)(c.Z,{}):b?(0,a.jsxs)(u.Hn,{children:[(0,a.jsx)(g.S,{conversationId:p||""}),(0,a.jsxs)(u.kV,{children:[(0,a.jsxs)("header",{className:"flex h-16 shrink-0 items-center gap-2 border-b px-4",children:[(0,a.jsx)(u.vP,{className:"-ml-1"}),(0,a.jsx)(m.Z,{orientation:"vertical",className:"mr-2 h-4"}),b&&(0,a.jsx)("div",{className:"".concat(n().chatTitleWrapper," text-nowrap text-ellipsis overflow-hidden max-w-screen-md grid items-top font-bold mx-2 md:mr-8 col-auto h-fit"),children:E?(0,a.jsx)("a",{className:"p-0 no-underline",href:"/",children:(0,a.jsx)(x.VO,{className:"h-auto w-16"})}):l&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("h2",{className:"text-lg text-ellipsis whitespace-nowrap overflow-x-hidden mr-4",children:l})})})]}),(0,a.jsxs)("div",{className:"".concat(n().main," ").concat(n().chatLayout),children:[(0,a.jsx)("title",{children:l}),(0,a.jsx)("div",{className:n().chatBox,children:(0,a.jsx)("div",{className:n().chatBoxBody,children:(0,a.jsx)(i.Suspense,{fallback:(0,a.jsx)(c.Z,{}),children:(0,a.jsx)(f,{conversationId:p,streamedMessages:v,setQueryToProcess:N,isLoggedIn:!!O,publicConversationSlug:b,chatOptionsData:e,setTitle:h,setUploadedFiles:I,isMobileWidth:E,setImages:B})})})})]})]})]}):(0,a.jsx)("div",{className:n().suggestions,children:"Whoops, nothing to see here!"})}},22515:function(e){e.exports={main:"sharedChat_main__7Nayy",suggestions:"sharedChat_suggestions__V8kr_",inputBox:"sharedChat_inputBox__wRW5A",chatBodyFull:"sharedChat_chatBodyFull__O1MOv",chatBody:"sharedChat_chatBody__OnHDL",chatLayout:"sharedChat_chatLayout__gutlc",chatBox:"sharedChat_chatBox__PmAPg",titleBar:"sharedChat_titleBar__vOHp_",chatBoxBody:"sharedChat_chatBoxBody__ef2Nl",agentIndicator:"sharedChat_agentIndicator__ORCl4"}}},function(e){e.O(0,[216,2663,3954,1919,3861,9259,8667,4363,4357,8155,2327,5477,4986,2971,2117,1744],function(){return e(e.s=91955)}),_N_E=e.O()}]);
|
@@ -1 +1 @@
|
|
1
|
-
!function(){"use strict";var e,t,n,r,o,c,a,f,u,i={},d={};function b(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}},r=!0;try{i[e].call(n.exports,n,n.exports,b),r=!1}finally{r&&delete d[e]}return n.exports}b.m=i,e=[],b.O=function(t,n,r,o){if(n){o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[n,r,o];return}for(var a=1/0,c=0;c<e.length;c++){for(var n=e[c][0],r=e[c][1],o=e[c][2],f=!0,u=0;u<n.length;u++)a>=o&&Object.keys(b.O).every(function(e){return b.O[e](n[u])})?n.splice(u--,1):(f=!1,o<a&&(a=o));if(f){e.splice(c--,1);var i=r();void 0!==i&&(t=i)}}return t},b.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},b.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);b.r(o);var c={};t=t||[null,n({}),n([]),n(n)];for(var a=2&r&&e;"object"==typeof a&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach(function(t){c[t]=function(){return e[t]}});return c.default=function(){return e},b.d(o,c),o},b.d=function(e,t){for(var n in t)b.o(t,n)&&!b.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},b.f={},b.e=function(e){return Promise.all(Object.keys(b.f).reduce(function(t,n){return b.f[n](e,t),t},[]))},b.u=function(e){return"static/chunks/"+(({1264:"90542734",4692:"0d8bff65",6555:"964ecbae",7293:"94ca1967"})[e]||e)+"."+({58:"f4bd8a3c9d88f5fe",133:"392ae90c3b2a67f2",1243:"ea2826fb35adb15a",1264:"fecd4dc1a89ed166",1592:"b069bdb7aaddd2eb",2069:"f060659791c0c484",2170:"45431769330fa5b7",3237:"c4754f02f1a388cb",3305:"1fc7297ba154ee95",3332:"6313db5217bb1b67",3451:"421db0b49fdbd881",3460:"39c2b9b6a3898384",3727:"dcea8f2193111552",4299:"2aaa569416cfc208",4327:"238d15c09a039b8b",4415:"e0c0da5eedae4dd7",4610:"a1e7f40a759ed2aa",4650:"41f041da0ad365ad",4692:"4b1018183a8be7c2",4872:"5422e8324272ab40",5061:"79a660faed0e16a9",5279:"85d537880b8041ae",5402:"b9460f1b16b57e92",5555:"f7cf9795d675de51",5978:"ddc72cd73130aadc",6434:"7afea9648e238ad5",6555:"51d6faf8801d15e6",7140:"4be689873f6a2d1f",7293:"1d9b42d929a1ee8c",7836:"86884157d53d23a1",7890:"f681eb1d1f83bea2",7953:"f6fc335a23efb959",8254:"3145a4fbdcfdca46",8400:"c95e4e79bcd79a56",8673:"be44c4d9e4f1d084",8698:"a088118fef40d302",9022:"33974a513a281fd2",9433:"b1b5f5d050c43e3c",9597:"83583248dfbf6e73",9822:"34f293973c4e9b04"})[e]+".js"},b.miniCssF=function(e){},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="_N_E:",b.l=function(e,t,n,c){if(r[e]){r[e].push(t);return}if(void 0!==n)for(var a,f,u=document.getElementsByTagName("script"),i=0;i<u.length;i++){var d=u[i];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==o+n){a=d;break}}a||(f=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,b.nc&&a.setAttribute("nonce",b.nc),a.setAttribute("data-webpack",o+n),a.src=b.tu(e)),r[e]=[t];var l=function(t,n){a.onerror=a.onload=null,clearTimeout(s);var o=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=l.bind(null,a.onerror),a.onload=l.bind(null,a.onload),f&&document.head.appendChild(a)},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.tt=function(){return void 0===c&&(c={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(c=trustedTypes.createPolicy("nextjs#bundler",c))),c},b.tu=function(e){return b.tt().createScriptURL(e)},b.p="/_next/",a={2272:0,3254:0,3587:0,6250:0,
|
1
|
+
!function(){"use strict";var e,t,n,r,o,c,a,f,u,i={},d={};function b(e){var t=d[e];if(void 0!==t)return t.exports;var n=d[e]={exports:{}},r=!0;try{i[e].call(n.exports,n,n.exports,b),r=!1}finally{r&&delete d[e]}return n.exports}b.m=i,e=[],b.O=function(t,n,r,o){if(n){o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[n,r,o];return}for(var a=1/0,c=0;c<e.length;c++){for(var n=e[c][0],r=e[c][1],o=e[c][2],f=!0,u=0;u<n.length;u++)a>=o&&Object.keys(b.O).every(function(e){return b.O[e](n[u])})?n.splice(u--,1):(f=!1,o<a&&(a=o));if(f){e.splice(c--,1);var i=r();void 0!==i&&(t=i)}}return t},b.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(t,{a:t}),t},n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},b.t=function(e,r){if(1&r&&(e=this(e)),8&r||"object"==typeof e&&e&&(4&r&&e.__esModule||16&r&&"function"==typeof e.then))return e;var o=Object.create(null);b.r(o);var c={};t=t||[null,n({}),n([]),n(n)];for(var a=2&r&&e;"object"==typeof a&&!~t.indexOf(a);a=n(a))Object.getOwnPropertyNames(a).forEach(function(t){c[t]=function(){return e[t]}});return c.default=function(){return e},b.d(o,c),o},b.d=function(e,t){for(var n in t)b.o(t,n)&&!b.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},b.f={},b.e=function(e){return Promise.all(Object.keys(b.f).reduce(function(t,n){return b.f[n](e,t),t},[]))},b.u=function(e){return"static/chunks/"+(({1264:"90542734",4692:"0d8bff65",6555:"964ecbae",7293:"94ca1967"})[e]||e)+"."+({58:"f4bd8a3c9d88f5fe",133:"392ae90c3b2a67f2",1243:"ea2826fb35adb15a",1264:"fecd4dc1a89ed166",1592:"b069bdb7aaddd2eb",2069:"f060659791c0c484",2170:"45431769330fa5b7",3237:"c4754f02f1a388cb",3305:"1fc7297ba154ee95",3332:"6313db5217bb1b67",3451:"421db0b49fdbd881",3460:"39c2b9b6a3898384",3727:"dcea8f2193111552",4299:"2aaa569416cfc208",4327:"238d15c09a039b8b",4415:"e0c0da5eedae4dd7",4610:"a1e7f40a759ed2aa",4650:"41f041da0ad365ad",4692:"4b1018183a8be7c2",4872:"5422e8324272ab40",5061:"79a660faed0e16a9",5279:"85d537880b8041ae",5402:"b9460f1b16b57e92",5555:"f7cf9795d675de51",5978:"ddc72cd73130aadc",6434:"7afea9648e238ad5",6555:"51d6faf8801d15e6",7140:"4be689873f6a2d1f",7293:"1d9b42d929a1ee8c",7836:"86884157d53d23a1",7890:"f681eb1d1f83bea2",7953:"f6fc335a23efb959",8254:"3145a4fbdcfdca46",8400:"c95e4e79bcd79a56",8673:"be44c4d9e4f1d084",8698:"a088118fef40d302",9022:"33974a513a281fd2",9433:"b1b5f5d050c43e3c",9597:"83583248dfbf6e73",9822:"34f293973c4e9b04"})[e]+".js"},b.miniCssF=function(e){},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r={},o="_N_E:",b.l=function(e,t,n,c){if(r[e]){r[e].push(t);return}if(void 0!==n)for(var a,f,u=document.getElementsByTagName("script"),i=0;i<u.length;i++){var d=u[i];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==o+n){a=d;break}}a||(f=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,b.nc&&a.setAttribute("nonce",b.nc),a.setAttribute("data-webpack",o+n),a.src=b.tu(e)),r[e]=[t];var l=function(t,n){a.onerror=a.onload=null,clearTimeout(s);var o=r[e];if(delete r[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach(function(e){return e(n)}),t)return t(n)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=l.bind(null,a.onerror),a.onload=l.bind(null,a.onload),f&&document.head.appendChild(a)},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},b.tt=function(){return void 0===c&&(c={createScriptURL:function(e){return e}},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(c=trustedTypes.createPolicy("nextjs#bundler",c))),c},b.tu=function(e){return b.tt().createScriptURL(e)},b.p="/_next/",a={2272:0,3254:0,3587:0,6250:0,216:0,2663:0,6008:0,9202:0,2026:0},b.f.j=function(e,t){var n=b.o(a,e)?a[e]:void 0;if(0!==n){if(n)t.push(n[2]);else if(/^(2(026|16|272|663)|3254|3587|6008|6250|9202)$/.test(e))a[e]=0;else{var r=new Promise(function(t,r){n=a[e]=[t,r]});t.push(n[2]=r);var o=b.p+b.u(e),c=Error();b.l(o,function(t){if(b.o(a,e)&&(0!==(n=a[e])&&(a[e]=void 0),n)){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",c.name="ChunkLoadError",c.type=r,c.request=o,n[1](c)}},"chunk-"+e,e)}}},b.O.j=function(e){return 0===a[e]},f=function(e,t){var n,r,o=t[0],c=t[1],f=t[2],u=0;if(o.some(function(e){return 0!==a[e]})){for(n in c)b.o(c,n)&&(b.m[n]=c[n]);if(f)var i=f(b)}for(e&&e(t);u<o.length;u++)r=o[u],b.o(a,r)&&a[r]&&a[r][0](),a[r]=0;return b.O(i)},(u=self.webpackChunk_N_E=self.webpackChunk_N_E||[]).forEach(f.bind(null,0)),u.push=f.bind(null,u.push.bind(u)),b.nc=void 0}();
|
@@ -0,0 +1 @@
|
|
1
|
+
div.sharedChat_main__7Nayy{height:100%;color:hsla(var(--foreground));margin-left:auto;margin-right:auto}.sharedChat_suggestions__V8kr_{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem;justify-content:center}div.sharedChat_inputBox__wRW5A{border:1px solid var(--border-color);margin-bottom:20px;gap:12px;align-content:center}input.sharedChat_inputBox__wRW5A{border:none}input.sharedChat_inputBox__wRW5A:focus{outline:none;background-color:transparent}div.sharedChat_inputBox__wRW5A:focus{box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}div.sharedChat_chatBodyFull__O1MOv{display:grid;grid-template-columns:1fr;height:auto}button.sharedChat_inputBox__wRW5A{border:none;outline:none;background-color:transparent;cursor:pointer;border-radius:.5rem;padding:.5rem;background:linear-gradient(var(--calm-green),var(--calm-blue))}div.sharedChat_chatBody__OnHDL{display:grid;grid-template-columns:1fr 1fr;height:100%}.sharedChat_inputBox__wRW5A{color:hsla(var(--foreground))}div.sharedChat_chatLayout__gutlc{display:grid;grid-template-columns:auto 1fr;gap:1rem;width:100%}div.sharedChat_chatBox__PmAPg{display:grid;height:100%}div.sharedChat_titleBar__vOHp_{display:grid;grid-template-columns:1fr auto}div.sharedChat_chatBoxBody__ef2Nl{display:grid;height:100%;width:100%;margin:auto}div.sharedChat_agentIndicator__ORCl4 a{display:flex;text-align:center;align-content:center;align-items:center}div.sharedChat_agentIndicator__ORCl4{padding:10px}@media (max-width:768px){div.sharedChat_chatBody__OnHDL{grid-template-columns:0fr 1fr}}@media screen and (max-width:768px){div.sharedChat_inputBox__wRW5A{margin-bottom:0}div.sharedChat_chatBoxBody__ef2Nl{width:100%}div.sharedChat_chatLayout__gutlc{gap:0;grid-template-columns:1fr}}div.chatHistory_chatHistory__CoaVT{display:flex;flex-direction:column;height:100%;margin:auto}div.chatHistory_agentIndicator__wOU1f a{display:flex;text-align:center;align-content:center;align-items:center}div.chatHistory_trainOfThought__mMWSR{padding:8px 16px;margin:12px}div.chatMessage_chatMessageContainer__sAivf{display:flex;flex-direction:column;margin:12px;border-radius:16px;padding:8px 16px 0;word-break:break-word}div.chatMessage_chatMessageWrapper__u5m8A{padding-left:1rem;padding-bottom:1rem;max-width:80vw}div.chatMessage_chatMessageWrapper__u5m8A ol,div.chatMessage_chatMessageWrapper__u5m8A p:not(:last-child),div.chatMessage_chatMessageWrapper__u5m8A ul{margin-bottom:16px}div.chatMessage_chatMessageWrapper__u5m8A a span{display:revert!important}div.chatMessage_khojfullHistory__NPu2l{padding-left:4px}div.chatMessage_youfullHistory__ioyfH{max-width:100%}div.chatMessage_chatMessageContainer__sAivf.chatMessage_youfullHistory__ioyfH{padding-left:0}div.chatMessage_you__6GUC4{background-color:hsla(var(--secondary));align-self:flex-end;border-radius:16px}div.chatMessage_khoj__cjWON{background-color:transparent;color:hsl(var(--accent-foreground));align-self:flex-start}div.chatMessage_khojChatMessage__BabQz{padding-top:8px;padding-left:16px}div.chatMessage_emptyChatMessage__J9JRn{display:none}div.chatMessage_imagesContainer__HTRjT{display:flex;overflow-x:auto;padding-bottom:8px;margin-bottom:8px}div.chatMessage_imageWrapper__DF92M{flex:0 0 auto;margin-right:8px}div.chatMessage_imageWrapper__DF92M img{width:auto;height:128px;-o-object-fit:cover;object-fit:cover;border-radius:8px}div.chatMessage_khoj__cjWON div.chatMessage_imageWrapper__DF92M img{height:512px}div.chatMessage_khoj__cjWON div.chatMessage_imageWrapper__DF92M{flex:1 1 auto}div.chatMessage_khoj__cjWON div.chatMessage_imagesContainer__HTRjT{display:flex;flex-wrap:wrap;flex-direction:row;overflow-x:hidden}div.chatMessage_chatMessageContainer__sAivf>img{width:auto;height:auto;max-width:100%;max-height:80vh;-o-object-fit:contain;object-fit:contain;display:block;margin-top:.25rem;margin-right:auto}div.chatMessage_chatMessageContainer__sAivf h3 img{width:24px}div.chatMessage_you__6GUC4{color:hsla(var(--secondary-foreground))}div.chatMessage_author__muRtC{font-size:.75rem;color:grey;text-align:right}div.chatMessage_chatFooter__0vR8s{display:flex;justify-content:space-between;min-height:28px}div.chatMessage_chatButtons__Lbk8T{display:flex;justify-content:flex-end;width:-moz-min-content;width:min-content;border:1px solid var(--border-color);border-radius:16px;position:relative;bottom:-12px;background-color:hsla(var(--secondary))}div.chatMessage_chatFooter__0vR8s button{cursor:pointer;color:hsl(var(--muted-foreground));border:none;border-radius:16px;padding:4px;margin-left:4px;margin-right:4px}div.chatMessage_chatFooter__0vR8s button:hover{background-color:hsla(var(--frosted-background-color))}button.chatMessage_codeCopyButton__Y_Ujv{cursor:pointer;float:right;border-radius:8px}button.chatMessage_codeCopyButton__Y_Ujv:hover{color:hsla(var(--frosted-background-color))}button.chatMessage_codeCopyButton__Y_Ujv img,button.chatMessage_copyButton__jd7q7 img,div.chatMessage_feedbackButtons___Brdy img{width:24px}div.chatMessage_trainOfThought__mR2Gg strong{font-weight:500}div.chatMessage_trainOfThought__mR2Gg.chatMessage_primary__WYPEb strong{font-weight:500;color:hsla(var(--secondary-foreground))}div.chatMessage_trainOfThought__mR2Gg.chatMessage_primary__WYPEb p{color:inherit}div.chatMessage_trainOfThoughtElement__le_bC{display:grid;grid-template-columns:auto 1fr;align-items:start}div.chatMessage_trainOfThoughtElement__le_bC ol,div.chatMessage_trainOfThoughtElement__le_bC ul{margin:auto;word-break:break-word}@media screen and (max-width:768px){div.chatMessage_youfullHistory__ioyfH{max-width:90%}div.chatMessage_khoj__cjWON div.chatMessage_imageWrapper__DF92M img{width:100%;height:auto}}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_AMS-Regular.a79f1c31.woff2) format("woff2"),url(/_next/static/media/KaTeX_AMS-Regular.1608a09b.woff) format("woff"),url(/_next/static/media/KaTeX_AMS-Regular.4aafdb68.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/_next/static/media/KaTeX_Caligraphic-Bold.ec17d132.woff2) format("woff2"),url(/_next/static/media/KaTeX_Caligraphic-Bold.b6770918.woff) format("woff"),url(/_next/static/media/KaTeX_Caligraphic-Bold.cce5b8ec.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Caligraphic-Regular.55fac258.woff2) format("woff2"),url(/_next/static/media/KaTeX_Caligraphic-Regular.dad44a7f.woff) format("woff"),url(/_next/static/media/KaTeX_Caligraphic-Regular.07ef19e7.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/_next/static/media/KaTeX_Fraktur-Bold.d42a5579.woff2) format("woff2"),url(/_next/static/media/KaTeX_Fraktur-Bold.9f256b85.woff) format("woff"),url(/_next/static/media/KaTeX_Fraktur-Bold.b18f59e1.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Fraktur-Regular.d3c882a6.woff2) format("woff2"),url(/_next/static/media/KaTeX_Fraktur-Regular.7c187121.woff) format("woff"),url(/_next/static/media/KaTeX_Fraktur-Regular.ed38e79f.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/_next/static/media/KaTeX_Main-Bold.c3fb5ac2.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-Bold.d181c465.woff) format("woff"),url(/_next/static/media/KaTeX_Main-Bold.b74a1a8b.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/_next/static/media/KaTeX_Main-BoldItalic.6f2bb1df.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-BoldItalic.e3f82f9d.woff) format("woff"),url(/_next/static/media/KaTeX_Main-BoldItalic.70d8b0a5.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/_next/static/media/KaTeX_Main-Italic.8916142b.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-Italic.9024d815.woff) format("woff"),url(/_next/static/media/KaTeX_Main-Italic.47373d1e.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Main-Regular.0462f03b.woff2) format("woff2"),url(/_next/static/media/KaTeX_Main-Regular.7f51fe03.woff) format("woff"),url(/_next/static/media/KaTeX_Main-Regular.b7f8fe9b.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/_next/static/media/KaTeX_Math-BoldItalic.572d331f.woff2) format("woff2"),url(/_next/static/media/KaTeX_Math-BoldItalic.f1035d8d.woff) format("woff"),url(/_next/static/media/KaTeX_Math-BoldItalic.a879cf83.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/_next/static/media/KaTeX_Math-Italic.f28c23ac.woff2) format("woff2"),url(/_next/static/media/KaTeX_Math-Italic.5295ba48.woff) format("woff"),url(/_next/static/media/KaTeX_Math-Italic.939bc644.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:normal;font-weight:700;src:url(/_next/static/media/KaTeX_SansSerif-Bold.8c5b5494.woff2) format("woff2"),url(/_next/static/media/KaTeX_SansSerif-Bold.bf59d231.woff) format("woff"),url(/_next/static/media/KaTeX_SansSerif-Bold.94e1e8dc.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:italic;font-weight:400;src:url(/_next/static/media/KaTeX_SansSerif-Italic.3b1e59b3.woff2) format("woff2"),url(/_next/static/media/KaTeX_SansSerif-Italic.7c9bc82b.woff) format("woff"),url(/_next/static/media/KaTeX_SansSerif-Italic.b4c20c84.ttf) format("truetype")}@font-face{font-family:"KaTeX_SansSerif";font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_SansSerif-Regular.ba21ed5f.woff2) format("woff2"),url(/_next/static/media/KaTeX_SansSerif-Regular.74048478.woff) format("woff"),url(/_next/static/media/KaTeX_SansSerif-Regular.d4d7ba48.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Script-Regular.03e9641d.woff2) format("woff2"),url(/_next/static/media/KaTeX_Script-Regular.07505710.woff) format("woff"),url(/_next/static/media/KaTeX_Script-Regular.fe9cbbe1.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Size1-Regular.eae34984.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size1-Regular.e1e279cb.woff) format("woff"),url(/_next/static/media/KaTeX_Size1-Regular.fabc004a.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Size2-Regular.5916a24f.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size2-Regular.57727022.woff) format("woff"),url(/_next/static/media/KaTeX_Size2-Regular.d6b476ec.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Size3-Regular.b4230e7e.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size3-Regular.9acaf01c.woff) format("woff"),url(/_next/static/media/KaTeX_Size3-Regular.a144ef58.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Size4-Regular.10d95fd3.woff2) format("woff2"),url(/_next/static/media/KaTeX_Size4-Regular.7a996c9d.woff) format("woff"),url(/_next/static/media/KaTeX_Size4-Regular.fbccdabe.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/_next/static/media/KaTeX_Typewriter-Regular.a8709e36.woff2) format("woff2"),url(/_next/static/media/KaTeX_Typewriter-Regular.6258592b.woff) format("woff"),url(/_next/static/media/KaTeX_Typewriter-Regular.d97aaf4a.ttf) format("truetype")}.katex{font:normal 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.21"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .mathsfit,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}.suggestions_card__fbiZo{border-radius:.5rem}.suggestions_title__vNozc{font-size:1rem}.suggestions_text__J_IfY{padding-top:.2rem;font-size:.9rem;white-space:wrap;padding-right:4px;color:#000}
|
@@ -0,0 +1 @@
|
|
1
|
+
div.chat_main__8xQu5{height:100%;color:hsla(var(--foreground));margin-left:auto;margin-right:auto}.chat_suggestions__m8n2t{display:flex;overflow-x:none;height:50%;padding:10px;white-space:nowrap;gap:1rem}div.chat_inputBox__LOFws{border:1px solid var(--border-color);margin-bottom:20px;gap:12px;align-content:center}input.chat_inputBox__LOFws{border:none}input.chat_inputBox__LOFws:focus{outline:none;background-color:transparent}div.chat_inputBox__LOFws:focus{box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}div.chat_chatBodyFull__FfKEK{display:grid;grid-template-columns:1fr;height:auto}button.chat_inputBox__LOFws{border:none;outline:none;background-color:transparent;cursor:pointer;border-radius:.5rem;padding:.5rem;background:linear-gradient(var(--calm-green),var(--calm-blue))}div.chat_chatBody__sS1LX{display:grid;grid-template-columns:1fr 1fr;height:100%}.chat_inputBox__LOFws{color:hsla(var(--foreground))}div.chat_chatLayout__pR203{display:grid;grid-template-columns:1fr;gap:1rem;width:100%}div.chat_chatBox__FBct_{display:grid;height:100%}div.chat_titleBar__R5QlK{display:grid;grid-template-columns:1fr auto}div.chat_chatBoxBody__qT_SC{display:grid;height:100%;width:100%;margin:auto}div.chat_agentIndicator__8V55w a{display:flex;text-align:center;align-content:center;align-items:center}div.chat_agentIndicator__8V55w{padding:10px}div.chat_chatTitleWrapper__6ChWq{grid-template-columns:1fr auto}@media screen and (max-width:768px){div.chat_inputBox__LOFws{margin-bottom:0}div.chat_chatBoxBody__qT_SC{width:100%}div.chat_chatBody__sS1LX{grid-template-columns:0fr 1fr}div.chat_chatBox__FBct_{padding:0;height:100%}div.chat_chatLayout__pR203{gap:0;grid-template-columns:1fr}}
|