wrong-notebook 2026.10.30-4 → 2026.10.30

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.
Files changed (64) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/prerender-manifest.json +3 -3
  4. package/.next/server/app/_global-error.html +1 -1
  5. package/.next/server/app/_global-error.rsc +1 -1
  6. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  7. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  8. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  9. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  10. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  11. package/.next/server/app/admin/page.js.nft.json +1 -1
  12. package/.next/server/app/admin/page_client-reference-manifest.js +1 -1
  13. package/.next/server/app/admin/user/[id]/page.js.nft.json +1 -1
  14. package/.next/server/app/admin/user/[id]/page_client-reference-manifest.js +1 -1
  15. package/.next/server/app/api/tts/[id]/route.js.nft.json +1 -1
  16. package/.next/server/app/error-items/[id]/page.js.nft.json +1 -1
  17. package/.next/server/app/error-items/[id]/page_client-reference-manifest.js +1 -1
  18. package/.next/server/app/exams/[id]/page.js.nft.json +1 -1
  19. package/.next/server/app/exams/[id]/page_client-reference-manifest.js +1 -1
  20. package/.next/server/app/exams/[id]/print/page.js.nft.json +1 -1
  21. package/.next/server/app/exams/[id]/print/page_client-reference-manifest.js +1 -1
  22. package/.next/server/app/exams/page.js.nft.json +1 -1
  23. package/.next/server/app/exams/page_client-reference-manifest.js +1 -1
  24. package/.next/server/app/login/page.js.nft.json +1 -1
  25. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  26. package/.next/server/app/notebooks/[id]/add/page.js.nft.json +1 -1
  27. package/.next/server/app/notebooks/[id]/add/page_client-reference-manifest.js +1 -1
  28. package/.next/server/app/notebooks/[id]/page.js.nft.json +1 -1
  29. package/.next/server/app/notebooks/[id]/page_client-reference-manifest.js +1 -1
  30. package/.next/server/app/notebooks/page.js.nft.json +1 -1
  31. package/.next/server/app/notebooks/page_client-reference-manifest.js +1 -1
  32. package/.next/server/app/page.js.nft.json +1 -1
  33. package/.next/server/app/page_client-reference-manifest.js +1 -1
  34. package/.next/server/app/practice/page.js.nft.json +1 -1
  35. package/.next/server/app/practice/page_client-reference-manifest.js +1 -1
  36. package/.next/server/app/print-preview/page.js.nft.json +1 -1
  37. package/.next/server/app/print-preview/page_client-reference-manifest.js +1 -1
  38. package/.next/server/app/register/page.js.nft.json +1 -1
  39. package/.next/server/app/register/page_client-reference-manifest.js +1 -1
  40. package/.next/server/app/review/page.js.nft.json +1 -1
  41. package/.next/server/app/review/page_client-reference-manifest.js +1 -1
  42. package/.next/server/app/setup/page.js.nft.json +1 -1
  43. package/.next/server/app/setup/page_client-reference-manifest.js +1 -1
  44. package/.next/server/app/stats/page.js.nft.json +1 -1
  45. package/.next/server/app/stats/page_client-reference-manifest.js +1 -1
  46. package/.next/server/app/tags/page.js.nft.json +1 -1
  47. package/.next/server/app/tags/page_client-reference-manifest.js +1 -1
  48. package/.next/server/chunks/_1j8kqz21_i728._.js +1 -1
  49. package/.next/server/chunks/ssr/_00np6xqvkg6u-._.js +1 -1
  50. package/.next/server/chunks/ssr/src_components_providers_tsx_09kw-mv3nb6xs._.js +1 -1
  51. package/.next/server/middleware-build-manifest.js +3 -3
  52. package/.next/server/middleware-manifest.json +5 -5
  53. package/.next/server/pages/500.html +1 -1
  54. package/.next/server/preview-props.json +3 -3
  55. package/.next/server/server-reference-manifest.js +1 -1
  56. package/.next/server/server-reference-manifest.json +1 -1
  57. package/.next/static/chunks/{2ctc1xbp8lz8e.js → 00o1s_nir_tbc.js} +2 -2
  58. package/.next/static/chunks/2r4ddp7izc9sh.js +1 -0
  59. package/package.json +1 -1
  60. package/prisma/seed.db +0 -0
  61. package/.next/static/chunks/1l46v858ieavc.js +0 -1
  62. /package/.next/static/{X3NzguYsDSEVWQKJ6r_e7 → 4KSCavDaw8kyhSyGiE86P}/_buildManifest.js +0 -0
  63. /package/.next/static/{X3NzguYsDSEVWQKJ6r_e7 → 4KSCavDaw8kyhSyGiE86P}/_clientMiddlewareManifest.js +0 -0
  64. /package/.next/static/{X3NzguYsDSEVWQKJ6r_e7 → 4KSCavDaw8kyhSyGiE86P}/_ssgManifest.js +0 -0
@@ -188,6 +188,6 @@ ${aG}
188
188
  ${aG}
189
189
 
190
190
  {{grade_instruction}}
191
- {{provider_hints}}`;var aJ=a.i(787654);function aK({name:a,description:c}){return(0,b.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-1 sm:gap-2 text-xs py-1",children:[(0,b.jsx)("code",{className:"bg-muted px-1.5 py-0.5 rounded font-mono text-primary shrink-0 w-fit",children:`{{${a}}}`}),(0,b.jsx)("span",{className:"text-muted-foreground",children:c})]})}function aL(){let{t:a}=(0,c.b)();return(0,b.jsxs)("div",{className:"bg-amber-50 border border-amber-200 rounded-md p-3 flex items-start gap-3 text-amber-900 text-sm mb-4",children:[(0,b.jsx)(r,{className:"h-5 w-5 shrink-0 text-amber-600"}),(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("p",{className:"font-medium",children:a.settings?.prompts?.caution||"Modify with Caution"}),(0,b.jsx)("p",{className:"text-amber-800/90 text-xs",children:a.settings?.prompts?.warning||"Variables in {{brackets}} are used to inject dynamic content. Please preserve these variables, otherwise the AI providing may fail to get question context or return invalid formats."})]})]})}function aM({config:a,onUpdate:d}){let{t:e}=(0,c.b)(),f=a.prompts?.analyze||aH,g=a.prompts?.similar||aI,h=async a=>{await (0,T.u)(e.settings?.prompts?.resetConfirm||"Are you sure you want to reset to default?",{destructive:!0})&&d(a,"analyze"===a?aH:aI)},i=(a,b)=>{d(a,b)};return(0,b.jsx)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:(0,b.jsxs)(C.i,{defaultValue:"analyze",className:"w-full",children:[(0,b.jsxs)(C.U,{className:"grid w-full grid-cols-2",children:[(0,b.jsx)(C.k,{value:"analyze",children:e.settings?.prompts?.analysisTab||"Analysis Prompt"}),(0,b.jsx)(C.k,{value:"similar",children:e.settings?.prompts?.similarTab||"Similar Question Prompt"})]}),(0,b.jsx)(C.S,{value:"analyze",className:"space-y-4 py-4",children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)(H.f,{className:"text-base font-semibold",children:e.settings?.prompts?.customAnalysis||"Custom Analysis Template"}),(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>h("analyze"),children:[(0,b.jsx)(aJ.f,{className:"w-4 h-4 mr-2"}),e.settings?.prompts?.reset||"Reset Default"]})]}),(0,b.jsx)(aL,{}),(0,b.jsxs)("div",{className:"space-y-2 border rounded-md p-3 bg-background",children:[(0,b.jsxs)("h4",{className:"text-xs font-medium flex items-center gap-1.5 mb-2",children:[(0,b.jsx)(t,{className:"h-3.5 w-3.5"}),e.settings?.prompts?.variables||"Available Variables"]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(aK,{name:"language_instruction",description:e.settings?.prompts?.vars?.languageInstruction||"Injects instructions based on target language (e.g., keep English questions in English but analysis in Chinese)."}),(0,b.jsx)(aK,{name:"knowledge_points_list",description:e.settings?.prompts?.vars?.knowledgePointsList||"Injects the standard list of knowledge point tags for the specific subject."}),(0,b.jsx)(aK,{name:"provider_hints",description:e.settings?.prompts?.vars?.providerHints||"System-injected hints (e.g., enforcing JSON format)."})]})]}),(0,b.jsx)(aB.f,{value:f,onChange:a=>i("analyze",a.target.value),className:"font-mono text-xs min-h-[400px]",placeholder:aH})]})}),(0,b.jsx)(C.S,{value:"similar",className:"space-y-4 py-4",children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)(H.f,{className:"text-base font-semibold",children:e.settings?.prompts?.customSimilar||"Custom Similar Question Template"}),(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>h("similar"),children:[(0,b.jsx)(aJ.f,{className:"w-4 h-4 mr-2"}),e.settings?.prompts?.reset||"Reset Default"]})]}),(0,b.jsx)(aL,{}),(0,b.jsxs)("div",{className:"space-y-2 border rounded-md p-3 bg-background",children:[(0,b.jsxs)("h4",{className:"text-xs font-medium flex items-center gap-1.5 mb-2",children:[(0,b.jsx)(t,{className:"h-3.5 w-3.5"}),e.settings?.prompts?.variables||"Available Variables"]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(aK,{name:"difficulty_level",description:e.settings?.prompts?.vars?.difficultyLevel||"Target difficulty level."}),(0,b.jsx)(aK,{name:"difficulty_instruction",description:e.settings?.prompts?.vars?.difficultyInstruction||"Specific writing instructions for the target difficulty."}),(0,b.jsx)(aK,{name:"original_question",description:e.settings?.prompts?.vars?.originalQuestion||"The full text of the original question."}),(0,b.jsx)(aK,{name:"knowledge_points",description:e.settings?.prompts?.vars?.knowledgePoints||"List of knowledge points to test."}),(0,b.jsx)(aK,{name:"language_instruction",description:e.settings?.prompts?.vars?.languageInstructionShort||"Language formatting instructions."})]})]}),(0,b.jsx)(aB.f,{value:g,onChange:a=>i("similar",a.target.value),className:"font-mono text-xs min-h-[400px]",placeholder:aI})]})})]})})}var aN=a.i(325015),aO=a.i(676330),aP=a.i(206194),aQ=a.i(190622),aR=a.i(975484);let aS=["browser","minimax","qwen","glm","stepfun","volcengine","volcengine-agent","openai"];aS.filter(a=>"browser"!==a);let aT={minimax:{model:"speech-2.8-hd",voice:"male-qn-jingying"},qwen:{model:"qwen-audio-3.0-tts-plus",voice:"longanlufeng"},glm:{model:"glm-tts",voice:"xiaochen"},stepfun:{model:"stepaudio-2.5-tts",voice:"qingniandaxuesheng"},volcengine:{model:"seed-tts-2.0",voice:"zh_male_yangguangqingnian_uranus_bigtts"},"volcengine-agent":{model:"seed-tts-2.0",voice:"zh_male_yangguangqingnian_uranus_bigtts"},openai:{model:"gpt-4o-mini-tts",voice:"cedar"}},aU={minimax:{apiKey:"https://platform.minimax.cn/docs/guides/quickstart-preparation",model:"https://platform.minimax.cn/docs/api-reference/speech-t2a-http",voice:"https://platform.minimax.cn/docs/faq/system-voice-id",endpoint:"https://platform.minimax.cn/docs/api-reference/speech-t2a-http"},qwen:{apiKey:"https://help.aliyun.com/zh/model-studio/token-plan-personal-quick-start",model:"https://help.aliyun.com/zh/model-studio/non-realtime-tts-user-guide",voice:"https://help.aliyun.com/zh/model-studio/qwen-audio-tts-voice-list",endpoint:"https://help.aliyun.com/zh/model-studio/non-realtime-tts-user-guide"},glm:{apiKey:"https://docs.bigmodel.cn/cn/guide/start/quick-start",model:"https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%9C%AC%E8%BD%AC%E8%AF%AD%E9%9F%B3",voice:"https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%9C%AC%E8%BD%AC%E8%AF%AD%E9%9F%B3",endpoint:"https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%9C%AC%E8%BD%AC%E8%AF%AD%E9%9F%B3"},stepfun:{apiKey:"https://platform.stepfun.com/docs/zh/step-plan/integrations/audio-api",model:"https://platform.stepfun.com/docs/zh/api-reference/audio/create-audio",voice:"https://platform.stepfun.com/docs/zh/guides/developer/tts",endpoint:"https://platform.stepfun.com/docs/zh/api-reference/audio/create-audio"},volcengine:{apiKey:"https://www.volcengine.com/docs/6561/196768",model:"https://www.volcengine.com/docs/6561/1598757",voice:"https://www.volcengine.com/docs/6561/1257544",endpoint:"https://www.volcengine.com/docs/6561/1598757"},openai:{apiKey:"https://platform.openai.com/docs/quickstart",model:"https://developers.openai.com/api/docs/guides/text-to-speech",voice:"https://developers.openai.com/api/docs/guides/text-to-speech",endpoint:"https://developers.openai.com/api/docs/guides/text-to-speech"},"volcengine-agent":{apiKey:"https://ark.volcengine.com/region:cn-beijing/docs/82379/2160841?lang=zh",model:"https://docs.volcengine.com/docs/ark/agent-plan-personal-voice-model?lang=zh",voice:"https://www.volcengine.com/docs/6561/1257544",endpoint:"https://docs.volcengine.com/docs/ark/agent-plan-personal-voice-model?lang=zh"}};function aV({config:a,setConfig:d,saving:e,onSave:f}){var g;let{t:h,language:i}=(0,c.b)(),j=h.settings.tts,[k,l]=(0,q.useState)(!1),[m,n]=(0,q.useState)(null),o=a.tts?.mode??"browser",p="browser"!==o&&"string"==typeof(g=o)&&aS.includes(g)?o:null,r=p?a.tts?.[p]:void 0,s=(a,b)=>{p&&d(c=>({...c,tts:{...c.tts,[p]:{...c.tts?.[p],[a]:b}}}))},t=!!p&&("volcengine"===p||"openai"===p),u=p?function(a,b){if("openai"===b){let b=a.openai?.instances?.find(b=>b.id===a.openai?.activeInstanceId);return b?{apiKey:b.apiKey,baseUrl:b.baseUrl}:void 0}return a[b]}(a,p):void 0,w=t?r?.apiKey:u?.apiKey,x=async()=>{(0,aR.p)(),l(!0),n(null);try{await f();let{id:a,version:b}=await S.f.post("/api/tts",{text:j.previewText,language:i},{timeout:12e4,recoverable:!0}),c=(0,aR.l)();if(!c)return;c.src=`/api/tts/${a}?v=${b}`,c.playbackRate=1,await c.play()}catch(b){U.f.error("[TtsSettings]","Preview failed",{error:b});let a=(0,V.d)(b);T.c.error("TTS_NOT_CONFIGURED"===a?j.notConfigured:"TTS_PROVIDER_ERROR"===a?j.providerError:j.previewFailed),n((0,V.L)(b)??null)}finally{l(!1)}};return(0,b.jsxs)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:j.title}),(0,b.jsxs)(af.d,{value:o,onValueChange:a=>d(b=>({...b,tts:{...b.tts,mode:a}})),children:[(0,b.jsx)(af.P,{children:(0,b.jsx)(af.U,{})}),(0,b.jsx)(af.r,{children:aS.map(a=>(0,b.jsx)(af.T,{value:a,children:j.modes[a]},a))})]}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:p?j.cloudHint:j.browserHint})]}),p&&(0,b.jsxs)("div",{className:"space-y-3 animate-in fade-in slide-in-from-top-2",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(aO.f,{label:"openai"===p?"OpenAI API Key":t?j.speechApiKey:`${(0,aQ.z)(p,i)} API Key`,href:aU[p].apiKey,linkText:h.settings.ai.docLinks.apiKey}),(0,b.jsx)(ae.f,{value:w||"",onChange:a=>{var b;return b=a.target.value,void(p&&(t?s("apiKey",b):d(a=>({...a,[p]:{...a[p],apiKey:b}}))))},placeholder:"qwen"===p?"sk-sp-...":t?"":"sk-..."}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:j.apiKeyHint[p]})]}),(0,b.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(aO.f,{label:j.model,href:aU[p].model,linkText:j.docs}),(0,b.jsx)(G.f,{value:r?.model||"",onChange:a=>s("model",a.target.value),placeholder:aT[p].model})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(aO.f,{label:j.voice,href:aU[p].voice,linkText:j.voiceList}),(0,b.jsx)(G.f,{value:r?.voice||"",onChange:a=>s("voice",a.target.value),placeholder:aT[p].voice})]})]}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:j.voiceHint[p]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(aO.f,{label:j.endpoint,href:aU[p].endpoint,linkText:j.docs}),(0,b.jsx)(G.f,{value:r?.endpoint||"",onChange:a=>s("endpoint",a.target.value),placeholder:function(a,b){if("volcengine"===a)return"https://openspeech.bytedance.com/api/v3/tts/unidirectional";if("volcengine-agent"===a)return"https://openspeech.bytedance.com/api/v3/plan/tts/unidirectional";if("openai"===a)return`${(b?.baseUrl||"https://api.openai.com/v1").replace(/\/+$/,"")}/audio/speech`;let{baseUrl:c}=(0,aQ.k)(a,b);if("minimax"===a)return`${c.replace(/\/+$/,"")}/t2a_v2`;if("glm"===a||"stepfun"===a)return`${c.replace(/\/+$/,"")}/audio/speech`;try{return`${new URL(c).origin}/api/v1/services/audio/tts/SpeechSynthesizer`}catch{return""}}(p,u)}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:j.endpointHint})]})]},p),(0,b.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[p&&(0,b.jsxs)(A.f,{variant:"outline",onClick:x,disabled:e||k,className:"sm:w-auto",children:[k?(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,b.jsx)(aN.f,{className:"mr-2 h-4 w-4"}),j.preview]}),(0,b.jsxs)(A.f,{onClick:()=>void f(),disabled:e||k,className:"flex-1",children:[e&&(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}),j.save]})]}),p&&m&&(0,b.jsx)("div",{className:"rounded-md border border-red-200 bg-red-50 p-2 dark:border-red-900 dark:bg-red-950/40",children:(0,b.jsx)(aP.f,{detail:m})})]})}var aW=a.i(439830);function aX({value:a,icon:c,label:d}){return(0,b.jsxs)(C.k,{value:a,className:"px-2 sm:px-3",children:[c,(0,b.jsx)("span",{className:"hidden sm:inline",children:d})]})}function aY(){let{setTimeZone:a}=(0,e.M)(),{data:f}=(0,d.useSession)(),g=f?.user?.role==="admin",{t:j}=(0,c.b)(),k=(0,h.useRouter)(),[l,m]=(0,q.useState)(!1),n=(0,q.useRef)(null),[o,E]=(0,q.useState)(!1),[F,G]=(0,q.useState)(!1),[H,I]=(0,q.useState)({aiProvider:"minimax"}),J=(0,q.useCallback)(async()=>{G(!0);try{I(await S.f.get("/api/settings"))}catch(a){U.f.error("[SettingsDialog]","Failed to fetch settings",{error:a})}finally{G(!1)}},[]);(0,q.useEffect)(()=>{l&&J()},[l,J]);let K=async()=>{let b=(0,aW.f)(H,j);if(b)return void T.c.error(b);E(!0);try{let b=await S.f.post("/api/settings",H);I(b),a(b.timeZone||D.J),T.c.success(j.settings?.messages?.saved||"Settings saved"),n.current?.scrollTo({top:0,behavior:"smooth"})}catch(a){U.f.error("[SettingsDialog]","Failed to save settings",{error:a}),T.c.error(j.settings?.messages?.saveFailed||"Failed to save")}finally{E(!1)}},L=a=>(0,b.jsxs)(A.f,{onClick:K,disabled:o,className:"w-full",children:[o&&(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}),a]});return(0,b.jsxs)(B.N,{open:l,onOpenChange:m,children:[(0,b.jsx)(B.a,{asChild:!0,children:(0,b.jsxs)(A.f,{variant:"ghost",size:"icon",className:"rounded-full",children:[(0,b.jsx)(x,{className:"h-5 w-5"}),(0,b.jsx)("span",{className:"sr-only",children:j.settings?.title||"Settings"})]})}),(0,b.jsxs)(B.d,{ref:n,className:"w-[calc(100vw-2rem)] sm:max-w-[900px] max-h-[85vh] overflow-y-auto",children:[(0,b.jsxs)(B.s,{children:[(0,b.jsx)(B.F,{children:j.settings?.title||"Settings"}),(0,b.jsx)(B.C,{children:j.settings?.desc||"Manage your preferences and data."})]}),(0,b.jsxs)(C.i,{defaultValue:"general",className:"w-full",children:[(0,b.jsxs)(C.U,{className:`grid w-full grid-cols-4 ${g?"sm:grid-cols-7":"sm:grid-cols-4"} gap-1 h-auto`,children:[(0,b.jsx)(aX,{value:"general",icon:(0,b.jsx)(u.f,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.general||"General"}),(0,b.jsx)(aX,{value:"account",icon:(0,b.jsx)(y.f,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.account||"Account"}),g&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(aX,{value:"ai",icon:(0,b.jsx)(s,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.ai||"AI Provider"}),(0,b.jsx)(aX,{value:"prompts",icon:(0,b.jsx)(w,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.prompts||"Prompts"}),(0,b.jsx)(aX,{value:"admin",icon:(0,b.jsx)(p,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.admin||"User Management"})]}),(0,b.jsx)(aX,{value:"danger",icon:(0,b.jsx)(r,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.danger||"Danger"}),(0,b.jsx)(aX,{value:"about",icon:(0,b.jsx)(t,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.about||"About"})]}),(0,b.jsxs)(C.S,{value:"general",className:"space-y-4 py-4",children:[(0,b.jsx)(aA,{config:H,setConfig:I,isAdmin:g,disabled:F||o}),g&&L(j.settings?.save||"Save Settings")]}),(0,b.jsx)(C.S,{value:"account",className:"space-y-4 py-4",children:(0,b.jsx)(ah,{})}),(0,b.jsxs)(C.S,{value:"ai",className:"space-y-4 py-4",children:[(0,b.jsx)(ai.f,{config:H,setConfig:I,loading:F,saving:o,onSave:K}),!F&&(0,b.jsx)(aV,{config:H,setConfig:I,saving:o,onSave:K})]}),(0,b.jsxs)(C.S,{value:"prompts",className:"space-y-4 py-4",children:[(0,b.jsx)(aM,{config:H,onUpdate:(a,b)=>I(c=>({...c,prompts:{...c.prompts,[a]:b}}))}),L(j.settings?.prompts?.save||"Save Prompt Settings")]}),g&&(0,b.jsxs)(C.S,{value:"admin",className:"space-y-4 py-4",children:[(0,b.jsxs)(A.f,{variant:"outline",className:"w-full justify-start gap-2",onClick:()=>{m(!1),k.push("/admin")},children:[(0,b.jsx)(i.f,{className:"h-4 w-4"}),j.admin?.dashboard?.title||"Admin Dashboard"]}),(0,b.jsxs)(A.f,{variant:"outline",className:"w-full justify-start gap-2",onClick:()=>{m(!1),k.push("/setup")},children:[(0,b.jsx)(z.f,{className:"h-4 w-4"}),j.setup.rerun]}),(0,b.jsx)("div",{className:"border-t pt-4",children:(0,b.jsx)(W,{})})]}),(0,b.jsx)(C.S,{value:"danger",className:"space-y-4 py-4",children:(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsx)(ar,{isAdmin:g}),(0,b.jsx)(am,{isAdmin:g})]})}),(0,b.jsx)(C.S,{value:"about",className:"space-y-4 py-4",children:(0,b.jsx)(ad,{})})]})]})]})}let aZ=[/^\/login/,/^\/register/,/^\/setup/,/^\/print-preview/,/^\/exams\/[^/]+\/print/],a$=[{key:"home",href:"/",icon:o,match:a=>"/"===a},{key:"notebooks",href:"/notebooks",icon:j.f,match:a=>a.startsWith("/notebooks")||a.startsWith("/error-items")||a.startsWith("/practice")},{key:"review",href:"/review",icon:k.f,match:a=>a.startsWith("/review")},{key:"stats",href:"/stats",icon:i.f,match:a=>a.startsWith("/stats")||a.startsWith("/tags")},{key:"exams",href:"/exams",icon:l.f,match:a=>a.startsWith("/exams")}];function a_({children:a}){var e;let i,j,k=(0,h.usePathname)()||"/",{t:l}=(0,c.b)(),{data:n,status:o}=(0,d.useSession)(),r=n?.user?.role==="admin",s=aZ.some(a=>a.test(k));if(e=r&&!s,i=(0,h.useRouter)(),j=(0,q.useRef)(!1),(0,q.useEffect)(()=>{e&&!j.current&&(j.current=!0,S.f.get("/api/setup").then(a=>{a.needsSetup&&i.replace("/setup")}).catch(a=>U.f.warn("[Setup]","Failed to check setup status",{error:a})))},[e,i]),s||"unauthenticated"===o)return(0,b.jsx)(b.Fragment,{children:a});let t=n?.user?.name||n?.user?.email||"";return(0,b.jsxs)("div",{className:"min-h-screen",children:[(0,b.jsx)("header",{className:"sticky top-0 z-40 border-b bg-card/80 backdrop-blur-md supports-[backdrop-filter]:bg-card/70 print:hidden",children:(0,b.jsxs)("div",{className:"mx-auto flex h-14 max-w-6xl items-center gap-3 px-4 md:h-16 md:px-8",children:[(0,b.jsxs)(g.default,{href:"/",className:"flex shrink-0 items-center gap-2",children:[(0,b.jsx)(f.default,{src:"/icons/icon.png",alt:"",width:32,height:32,className:"rounded-lg",priority:!0,unoptimized:!0}),(0,b.jsx)("span",{className:"text-base font-semibold tracking-tight",children:l.pageTitle.base})]}),(0,b.jsx)("nav",{className:"ml-4 hidden items-center gap-1 md:flex",children:a$.map(a=>{let c=a.match(k),d=a.icon;return(0,b.jsxs)(g.default,{href:a.href,className:(0,I.f)("flex items-center gap-1.5 rounded-lg px-3 py-2 text-sm font-medium transition-colors",c?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"),"aria-current":c?"page":void 0,children:[(0,b.jsx)(d,{className:"h-4 w-4"}),l.nav[a.key]]},a.key)})}),(0,b.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[t&&(0,b.jsxs)("span",{className:"mr-2 hidden max-w-40 items-center gap-2 truncate text-sm text-muted-foreground lg:flex",children:[(0,b.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary",children:t.slice(0,1).toUpperCase()}),(0,b.jsx)("span",{className:"truncate",children:t})]}),r&&(0,b.jsx)(g.default,{href:"/admin",title:l.nav.admin,children:(0,b.jsxs)(A.f,{variant:"ghost",size:"icon",className:"rounded-full",children:[(0,b.jsx)(p,{className:"h-5 w-5"}),(0,b.jsx)("span",{className:"sr-only",children:l.nav.admin})]})}),(0,b.jsx)(aY,{}),(0,b.jsx)(A.f,{variant:"ghost",size:"icon",className:"rounded-full text-muted-foreground hover:text-destructive",onClick:()=>(0,d.signOut)({callbackUrl:"/login"}),title:l.app.logout,children:(0,b.jsx)(m.f,{className:"h-5 w-5"})})]})]})}),(0,b.jsx)("div",{className:"pb-20 md:pb-0",children:a}),(0,b.jsx)("nav",{className:"pb-safe fixed inset-x-0 bottom-0 z-40 border-t bg-card/90 backdrop-blur-md md:hidden print:hidden",children:(0,b.jsx)("div",{className:"grid h-16 grid-cols-5",children:a$.map(a=>{let c=a.match(k),d=a.icon;return(0,b.jsxs)(g.default,{href:a.href,className:(0,I.f)("flex flex-col items-center justify-center gap-1 text-[11px] font-medium transition-colors",c?"text-primary":"text-muted-foreground"),"aria-current":c?"page":void 0,children:[(0,b.jsx)("span",{className:(0,I.f)("flex h-7 w-12 items-center justify-center rounded-full transition-colors",c&&"bg-accent"),children:(0,b.jsx)(d,{className:"h-5 w-5"})}),l.nav[a.key]]},a.key)})})})]})}let a0=(0,n.f)("list-todo",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]);var a1=a.i(862722);let a2=[/^\/login/,/^\/register/,/^\/print-preview/,/^\/exams\/[^/]+\/print/];function a3(){let{t:a}=(0,c.b)(),{timeZone:f}=(0,e.M)(),{status:i}=(0,d.useSession)(),j=(0,h.usePathname)(),[k,l]=(0,q.useState)(!1),[m,n]=(0,q.useState)([]),[o,p]=(0,q.useState)(()=>Date.now()),r="authenticated"!==i||a2.some(a=>a.test(j||"")),s=(0,q.useCallback)(async()=>{if("u"<typeof document||"hidden"!==document.visibilityState)try{let a=await S.f.get("/api/tasks");n(a.tasks),p(Date.now())}catch{}},[]);if((0,q.useEffect)(()=>{if(r)return;let a=setTimeout(s,0),b=setInterval(s,k?2e3:15e3);return()=>{clearTimeout(a),clearInterval(b)}},[r,k,s]),r)return null;let t=m.filter(a=>"running"===a.status).length,u=m.some(a=>"running"!==a.status),w=async()=>{try{let a=await S.f.delete("/api/tasks");n(a.tasks)}catch{}};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(A.f,{variant:"outline",size:"icon",className:"fixed bottom-20 right-4 z-40 h-11 w-11 rounded-full shadow-lg md:bottom-6 md:right-6 print:hidden",onClick:()=>l(!0),"aria-label":a.backgroundTasks.title,title:a.backgroundTasks.title,children:[t>0?(0,b.jsx)(v.f,{className:"h-5 w-5 animate-spin"}):(0,b.jsx)(a0,{className:"h-5 w-5"}),t>0&&(0,b.jsx)("span",{className:"absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1 text-xs text-primary-foreground",children:t})]}),(0,b.jsx)(B.N,{open:k,onOpenChange:l,children:(0,b.jsxs)(B.d,{className:"max-h-[85vh] overflow-y-auto sm:max-w-lg",children:[(0,b.jsxs)(B.s,{children:[(0,b.jsx)(B.F,{children:a.backgroundTasks.title}),(0,b.jsx)(B.C,{children:a.backgroundTasks.description})]}),0===m.length?(0,b.jsx)("p",{className:"py-6 text-center text-sm text-muted-foreground",children:a.backgroundTasks.empty}):(0,b.jsx)("ul",{className:"space-y-2",children:m.map(c=>{var d,e;let h;return(0,b.jsx)("li",{className:"rounded-md border p-3 text-sm",children:(0,b.jsxs)("div",{className:"flex items-start gap-2",children:["running"===c.status&&(0,b.jsx)(v.f,{className:"mt-0.5 h-4 w-4 shrink-0 animate-spin text-primary"}),"succeeded"===c.status&&(0,b.jsx)(an.f,{className:"mt-0.5 h-4 w-4 shrink-0 text-green-600"}),"failed"===c.status&&(0,b.jsx)(a1.f,{className:"mt-0.5 h-4 w-4 shrink-0 text-destructive"}),(0,b.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,b.jsxs)("div",{className:"font-medium",children:[a.backgroundTasks.kinds[c.kind],(0,b.jsxs)("span",{className:"font-normal text-muted-foreground",children:[" · ",a.backgroundTasks.status[c.status]]})]}),c.subject&&(0,b.jsx)("div",{className:"break-words text-muted-foreground",children:c.subject}),c.progress&&c.progress.total>0&&(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("div",{className:"h-1.5 overflow-hidden rounded bg-muted",children:(0,b.jsx)("div",{className:"h-full bg-primary transition-all",style:{width:`${Math.round(c.progress.done/c.progress.total*100)}%`}})}),(0,b.jsxs)("div",{className:"text-xs text-muted-foreground",children:[a.backgroundTasks.progress.replace("{done}",String(c.progress.done)).replace("{total}",String(c.progress.total)),c.progress.failed>0&&` \xb7 ${a.backgroundTasks.failedCount.replace("{count}",String(c.progress.failed))}`]})]}),c.error&&(0,b.jsx)("div",{className:"text-xs text-destructive",children:(b=>{if(!b)return null;let c=a.backgroundTasks.errors[b]??a.errors[b];return"string"==typeof c?c:b})(c.error)}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 text-xs text-muted-foreground",children:[(0,b.jsx)("span",{children:a.backgroundTasks.startedAt.replace("{time}",(0,D.r)(c.startedAt,"HH:mm:ss",f))}),(0,b.jsx)("span",{children:a.backgroundTasks.elapsed.replace("{time}",(d=c.startedAt,e=c.finishedAt,h=Math.max(0,Math.round(((e?Date.parse(e):o)-Date.parse(d))/1e3)),`${Math.floor(h/60)}:${String(h%60).padStart(2,"0")}`))}),c.link&&(0,b.jsx)(g.default,{href:c.link,className:"text-primary hover:underline",onClick:()=>l(!1),children:a.backgroundTasks.view})]})]})]})},c.id)})}),(0,b.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-1",children:[(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:a.backgroundTasks.retentionHint}),u&&(0,b.jsx)(A.f,{variant:"ghost",size:"sm",onClick:w,children:a.backgroundTasks.clearFinished})]})]})})]})}var a4=a.i(633508);let a5={success:{icon:an.f,className:"text-success"},error:{icon:a1.f,className:"text-destructive"},warning:{icon:r,className:"text-warning"},info:{icon:t,className:"text-primary"}};function a6(){let{t:a}=(0,c.b)(),[d,e]=(0,q.useState)([]),[f,g]=(0,q.useState)(null);return(0,q.useEffect)(()=>(0,T.M)(a=>{e(a.toasts),g(a.confirm)}),[]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"pointer-events-none fixed inset-x-0 top-3 z-[100] flex flex-col items-center gap-2 px-4 print:hidden",role:"status","aria-live":"polite",children:d.map(c=>{let{icon:d,className:e}=a5[c.type];return(0,b.jsxs)("div",{className:"pointer-events-auto flex w-full max-w-sm items-start gap-3 rounded-xl border bg-card/95 px-4 py-3 text-sm shadow-lg backdrop-blur animate-in fade-in slide-in-from-top-2 duration-200",children:[(0,b.jsx)(d,{className:(0,I.f)("mt-0.5 h-4 w-4 shrink-0",e)}),(0,b.jsx)("p",{className:"min-w-0 flex-1 whitespace-pre-line break-words leading-relaxed",children:c.message}),(0,b.jsx)("button",{type:"button",className:"shrink-0 rounded p-0.5 text-muted-foreground transition-colors hover:text-foreground",onClick:()=>(0,T.p)(c.id),"aria-label":a.common.close,children:(0,b.jsx)(a4.X,{className:"h-3.5 w-3.5"})})]},c.id)})}),(0,b.jsx)(B.N,{open:!!f,onOpenChange:a=>{a||f?.resolve(!1)},children:(0,b.jsxs)(B.d,{className:"sm:max-w-md",children:[(0,b.jsxs)(B.s,{children:[(0,b.jsxs)(B.F,{className:"flex items-center gap-2",children:[f?.destructive&&(0,b.jsx)(r,{className:"h-5 w-5 text-destructive"}),f?.title||a.common.confirmTitle]}),(0,b.jsx)(B.C,{className:"whitespace-pre-line pt-1 text-left leading-relaxed",children:f?.message})]}),(0,b.jsxs)(B.c,{className:"gap-2",children:[(0,b.jsx)(A.f,{variant:"outline",onClick:()=>f?.resolve(!1),children:f?.cancelText||a.common.cancel}),(0,b.jsx)(A.f,{variant:f?.destructive?"destructive":"default",onClick:()=>f?.resolve(!0),autoFocus:!0,children:f?.confirmText||a.common.confirm})]})]})})]})}function a7(){return(0,q.useEffect)(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js",{scope:"/"}).catch(a=>{U.f.warn("[PWA]","Service worker registration failed",{error:String(a)})})},[]),null}a.s(["Providers",0,function({children:a,timeZone:f}){return(0,b.jsx)(d.SessionProvider,{children:(0,b.jsx)(c.w,{children:(0,b.jsxs)(e.n,{initialTimeZone:f,children:[(0,b.jsx)(a_,{children:a}),(0,b.jsx)(a3,{}),(0,b.jsx)(a6,{}),(0,b.jsx)(a7,{})]})})})}],418175)}];
191
+ {{provider_hints}}`;var aJ=a.i(787654);function aK({name:a,description:c}){return(0,b.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-1 sm:gap-2 text-xs py-1",children:[(0,b.jsx)("code",{className:"bg-muted px-1.5 py-0.5 rounded font-mono text-primary shrink-0 w-fit",children:`{{${a}}}`}),(0,b.jsx)("span",{className:"text-muted-foreground",children:c})]})}function aL(){let{t:a}=(0,c.b)();return(0,b.jsxs)("div",{className:"bg-amber-50 border border-amber-200 rounded-md p-3 flex items-start gap-3 text-amber-900 text-sm mb-4",children:[(0,b.jsx)(r,{className:"h-5 w-5 shrink-0 text-amber-600"}),(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("p",{className:"font-medium",children:a.settings?.prompts?.caution||"Modify with Caution"}),(0,b.jsx)("p",{className:"text-amber-800/90 text-xs",children:a.settings?.prompts?.warning||"Variables in {{brackets}} are used to inject dynamic content. Please preserve these variables, otherwise the AI providing may fail to get question context or return invalid formats."})]})]})}function aM({config:a,onUpdate:d}){let{t:e}=(0,c.b)(),f=a.prompts?.analyze||aH,g=a.prompts?.similar||aI,h=async a=>{await (0,T.u)(e.settings?.prompts?.resetConfirm||"Are you sure you want to reset to default?",{destructive:!0})&&d(a,"analyze"===a?aH:aI)},i=(a,b)=>{d(a,b)};return(0,b.jsx)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:(0,b.jsxs)(C.i,{defaultValue:"analyze",className:"w-full",children:[(0,b.jsxs)(C.U,{className:"grid w-full grid-cols-2",children:[(0,b.jsx)(C.k,{value:"analyze",children:e.settings?.prompts?.analysisTab||"Analysis Prompt"}),(0,b.jsx)(C.k,{value:"similar",children:e.settings?.prompts?.similarTab||"Similar Question Prompt"})]}),(0,b.jsx)(C.S,{value:"analyze",className:"space-y-4 py-4",children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)(H.f,{className:"text-base font-semibold",children:e.settings?.prompts?.customAnalysis||"Custom Analysis Template"}),(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>h("analyze"),children:[(0,b.jsx)(aJ.f,{className:"w-4 h-4 mr-2"}),e.settings?.prompts?.reset||"Reset Default"]})]}),(0,b.jsx)(aL,{}),(0,b.jsxs)("div",{className:"space-y-2 border rounded-md p-3 bg-background",children:[(0,b.jsxs)("h4",{className:"text-xs font-medium flex items-center gap-1.5 mb-2",children:[(0,b.jsx)(t,{className:"h-3.5 w-3.5"}),e.settings?.prompts?.variables||"Available Variables"]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(aK,{name:"language_instruction",description:e.settings?.prompts?.vars?.languageInstruction||"Injects instructions based on target language (e.g., keep English questions in English but analysis in Chinese)."}),(0,b.jsx)(aK,{name:"knowledge_points_list",description:e.settings?.prompts?.vars?.knowledgePointsList||"Injects the standard list of knowledge point tags for the specific subject."}),(0,b.jsx)(aK,{name:"provider_hints",description:e.settings?.prompts?.vars?.providerHints||"System-injected hints (e.g., enforcing JSON format)."})]})]}),(0,b.jsx)(aB.f,{value:f,onChange:a=>i("analyze",a.target.value),className:"font-mono text-xs min-h-[400px]",placeholder:aH})]})}),(0,b.jsx)(C.S,{value:"similar",className:"space-y-4 py-4",children:(0,b.jsxs)("div",{className:"space-y-4",children:[(0,b.jsxs)("div",{className:"flex justify-between items-center",children:[(0,b.jsx)(H.f,{className:"text-base font-semibold",children:e.settings?.prompts?.customSimilar||"Custom Similar Question Template"}),(0,b.jsxs)(A.f,{variant:"outline",size:"sm",onClick:()=>h("similar"),children:[(0,b.jsx)(aJ.f,{className:"w-4 h-4 mr-2"}),e.settings?.prompts?.reset||"Reset Default"]})]}),(0,b.jsx)(aL,{}),(0,b.jsxs)("div",{className:"space-y-2 border rounded-md p-3 bg-background",children:[(0,b.jsxs)("h4",{className:"text-xs font-medium flex items-center gap-1.5 mb-2",children:[(0,b.jsx)(t,{className:"h-3.5 w-3.5"}),e.settings?.prompts?.variables||"Available Variables"]}),(0,b.jsxs)("div",{className:"space-y-1.5",children:[(0,b.jsx)(aK,{name:"difficulty_level",description:e.settings?.prompts?.vars?.difficultyLevel||"Target difficulty level."}),(0,b.jsx)(aK,{name:"difficulty_instruction",description:e.settings?.prompts?.vars?.difficultyInstruction||"Specific writing instructions for the target difficulty."}),(0,b.jsx)(aK,{name:"original_question",description:e.settings?.prompts?.vars?.originalQuestion||"The full text of the original question."}),(0,b.jsx)(aK,{name:"knowledge_points",description:e.settings?.prompts?.vars?.knowledgePoints||"List of knowledge points to test."}),(0,b.jsx)(aK,{name:"language_instruction",description:e.settings?.prompts?.vars?.languageInstructionShort||"Language formatting instructions."})]})]}),(0,b.jsx)(aB.f,{value:g,onChange:a=>i("similar",a.target.value),className:"font-mono text-xs min-h-[400px]",placeholder:aI})]})})]})})}var aN=a.i(325015),aO=a.i(676330),aP=a.i(206194),aQ=a.i(190622),aR=a.i(975484);let aS=["browser","minimax","qwen","glm","stepfun","volcengine","volcengine-agent","openai"];aS.filter(a=>"browser"!==a);let aT={minimax:{model:"speech-2.8-hd",voice:"male-qn-jingying"},qwen:{model:"qwen-audio-3.0-tts-plus",voice:"longanlufeng"},glm:{model:"glm-tts",voice:"xiaochen"},stepfun:{model:"stepaudio-2.5-tts",voice:"qingniandaxuesheng"},volcengine:{model:"seed-tts-2.0",voice:"zh_male_yangguangqingnian_uranus_bigtts"},"volcengine-agent":{model:"seed-tts-2.0",voice:"zh_male_yangguangqingnian_uranus_bigtts"},openai:{model:"gpt-4o-mini-tts",voice:"cedar"}},aU={minimax:{apiKey:"https://platform.minimax.cn/docs/guides/quickstart-preparation",model:"https://platform.minimax.cn/docs/api-reference/speech-t2a-http",voice:"https://platform.minimax.cn/docs/faq/system-voice-id",endpoint:"https://platform.minimax.cn/docs/api-reference/speech-t2a-http"},qwen:{apiKey:"https://help.aliyun.com/zh/model-studio/token-plan-personal-quick-start",model:"https://help.aliyun.com/zh/model-studio/non-realtime-tts-user-guide",voice:"https://help.aliyun.com/zh/model-studio/qwen-audio-tts-voice-list",endpoint:"https://help.aliyun.com/zh/model-studio/non-realtime-tts-user-guide"},glm:{apiKey:"https://docs.bigmodel.cn/cn/guide/start/quick-start",model:"https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%9C%AC%E8%BD%AC%E8%AF%AD%E9%9F%B3",voice:"https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%9C%AC%E8%BD%AC%E8%AF%AD%E9%9F%B3",endpoint:"https://docs.bigmodel.cn/api-reference/%E6%A8%A1%E5%9E%8B-api/%E6%96%87%E6%9C%AC%E8%BD%AC%E8%AF%AD%E9%9F%B3"},stepfun:{apiKey:"https://platform.stepfun.com/docs/zh/step-plan/integrations/audio-api",model:"https://platform.stepfun.com/docs/zh/api-reference/audio/create-audio",voice:"https://platform.stepfun.com/docs/zh/guides/developer/tts",endpoint:"https://platform.stepfun.com/docs/zh/api-reference/audio/create-audio"},volcengine:{apiKey:"https://www.volcengine.com/docs/6561/196768",model:"https://www.volcengine.com/docs/6561/1598757",voice:"https://www.volcengine.com/docs/6561/1257544",endpoint:"https://www.volcengine.com/docs/6561/1598757"},openai:{apiKey:"https://platform.openai.com/docs/quickstart",model:"https://developers.openai.com/api/docs/guides/text-to-speech",voice:"https://developers.openai.com/api/docs/guides/text-to-speech",endpoint:"https://developers.openai.com/api/docs/guides/text-to-speech"},"volcengine-agent":{apiKey:"https://ark.volcengine.com/region:cn-beijing/docs/82379/2160841?lang=zh",model:"https://docs.volcengine.com/docs/ark/agent-plan-personal-voice-model?lang=zh",voice:"https://www.volcengine.com/docs/6561/1257544",endpoint:"https://docs.volcengine.com/docs/ark/agent-plan-personal-voice-model?lang=zh"}},aV={volcengine:"https://docs.volcengine.com/docs/ark/free-inference-quota?lang=zh"};function aW({config:a,setConfig:d,saving:e,onSave:f}){var g;let{t:h,language:i}=(0,c.b)(),j=h.settings.tts,[k,l]=(0,q.useState)(!1),[m,n]=(0,q.useState)(null),o=a.tts?.mode??"browser",p="browser"!==o&&"string"==typeof(g=o)&&aS.includes(g)?o:null,r=p?a.tts?.[p]:void 0,s=(a,b)=>{p&&d(c=>({...c,tts:{...c.tts,[p]:{...c.tts?.[p],[a]:b}}}))},t=!!p&&("volcengine"===p||"openai"===p),u=p?function(a,b){if("openai"===b){let b=a.openai?.instances?.find(b=>b.id===a.openai?.activeInstanceId);return b?{apiKey:b.apiKey,baseUrl:b.baseUrl}:void 0}return a[b]}(a,p):void 0,w=t?r?.apiKey:u?.apiKey,x=async()=>{(0,aR.p)(),l(!0),n(null);try{await f();let{id:a,version:b}=await S.f.post("/api/tts",{text:j.previewText,language:i},{timeout:12e4,recoverable:!0}),c=(0,aR.l)();if(!c)return;c.src=`/api/tts/${a}?v=${b}`,c.playbackRate=1,await c.play()}catch(b){U.f.error("[TtsSettings]","Preview failed",{error:b});let a=(0,V.d)(b);T.c.error("TTS_NOT_CONFIGURED"===a?j.notConfigured:"TTS_PROVIDER_ERROR"===a?j.providerError:j.previewFailed),n((0,V.L)(b)??null)}finally{l(!1)}};return(0,b.jsxs)("div",{className:"space-y-4 border rounded-lg p-4 bg-muted/30",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(H.f,{children:j.title}),(0,b.jsxs)(af.d,{value:o,onValueChange:a=>d(b=>({...b,tts:{...b.tts,mode:a}})),children:[(0,b.jsx)(af.P,{children:(0,b.jsx)(af.U,{})}),(0,b.jsx)(af.r,{children:aS.map(a=>(0,b.jsx)(af.T,{value:a,children:j.modes[a]},a))})]}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:p?j.cloudHint:j.browserHint})]}),p&&(0,b.jsxs)("div",{className:"space-y-3 animate-in fade-in slide-in-from-top-2",children:[aV[p]&&(0,b.jsxs)("div",{className:"rounded-md border border-green-200 bg-green-50 p-3 text-xs text-green-800 dark:border-green-900 dark:bg-green-950/40 dark:text-green-300",children:[j.freeTrial," ",(0,b.jsx)("a",{href:aV[p],target:"_blank",rel:"noopener noreferrer",className:"underline",children:j.freeTrialLink})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(aO.f,{label:"openai"===p?"OpenAI API Key":t?j.speechApiKey:`${(0,aQ.z)(p,i)} API Key`,href:aU[p].apiKey,linkText:h.settings.ai.docLinks.apiKey}),(0,b.jsx)(ae.f,{value:w||"",onChange:a=>{var b;return b=a.target.value,void(p&&(t?s("apiKey",b):d(a=>({...a,[p]:{...a[p],apiKey:b}}))))},placeholder:"qwen"===p?"sk-sp-...":t?"":"sk-..."}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:j.apiKeyHint[p]})]}),(0,b.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(aO.f,{label:j.model,href:aU[p].model,linkText:j.docs}),(0,b.jsx)(G.f,{value:r?.model||"",onChange:a=>s("model",a.target.value),placeholder:aT[p].model})]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(aO.f,{label:j.voice,href:aU[p].voice,linkText:j.voiceList}),(0,b.jsx)(G.f,{value:r?.voice||"",onChange:a=>s("voice",a.target.value),placeholder:aT[p].voice})]})]}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:j.voiceHint[p]}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsx)(aO.f,{label:j.endpoint,href:aU[p].endpoint,linkText:j.docs}),(0,b.jsx)(G.f,{value:r?.endpoint||"",onChange:a=>s("endpoint",a.target.value),placeholder:function(a,b){if("volcengine"===a)return"https://openspeech.bytedance.com/api/v3/tts/unidirectional";if("volcengine-agent"===a)return"https://openspeech.bytedance.com/api/v3/plan/tts/unidirectional";if("openai"===a)return`${(b?.baseUrl||"https://api.openai.com/v1").replace(/\/+$/,"")}/audio/speech`;let{baseUrl:c}=(0,aQ.k)(a,b);if("minimax"===a)return`${c.replace(/\/+$/,"")}/t2a_v2`;if("glm"===a||"stepfun"===a)return`${c.replace(/\/+$/,"")}/audio/speech`;try{return`${new URL(c).origin}/api/v1/services/audio/tts/SpeechSynthesizer`}catch{return""}}(p,u)}),(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:j.endpointHint})]})]},p),(0,b.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[p&&(0,b.jsxs)(A.f,{variant:"outline",onClick:x,disabled:e||k,className:"sm:w-auto",children:[k?(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}):(0,b.jsx)(aN.f,{className:"mr-2 h-4 w-4"}),j.preview]}),(0,b.jsxs)(A.f,{onClick:()=>void f(),disabled:e||k,className:"flex-1",children:[e&&(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}),j.save]})]}),p&&m&&(0,b.jsx)("div",{className:"rounded-md border border-red-200 bg-red-50 p-2 dark:border-red-900 dark:bg-red-950/40",children:(0,b.jsx)(aP.f,{detail:m})})]})}var aX=a.i(439830);function aY({value:a,icon:c,label:d}){return(0,b.jsxs)(C.k,{value:a,className:"px-2 sm:px-3",children:[c,(0,b.jsx)("span",{className:"hidden sm:inline",children:d})]})}function aZ(){let{setTimeZone:a}=(0,e.M)(),{data:f}=(0,d.useSession)(),g=f?.user?.role==="admin",{t:j}=(0,c.b)(),k=(0,h.useRouter)(),[l,m]=(0,q.useState)(!1),n=(0,q.useRef)(null),[o,E]=(0,q.useState)(!1),[F,G]=(0,q.useState)(!1),[H,I]=(0,q.useState)({aiProvider:"minimax"}),J=(0,q.useCallback)(async()=>{G(!0);try{I(await S.f.get("/api/settings"))}catch(a){U.f.error("[SettingsDialog]","Failed to fetch settings",{error:a})}finally{G(!1)}},[]);(0,q.useEffect)(()=>{l&&J()},[l,J]);let K=async()=>{let b=(0,aX.f)(H,j);if(b)return void T.c.error(b);E(!0);try{let b=await S.f.post("/api/settings",H);I(b),a(b.timeZone||D.J),T.c.success(j.settings?.messages?.saved||"Settings saved"),n.current?.scrollTo({top:0,behavior:"smooth"})}catch(a){U.f.error("[SettingsDialog]","Failed to save settings",{error:a}),T.c.error(j.settings?.messages?.saveFailed||"Failed to save")}finally{E(!1)}},L=a=>(0,b.jsxs)(A.f,{onClick:K,disabled:o,className:"w-full",children:[o&&(0,b.jsx)(v.f,{className:"mr-2 h-4 w-4 animate-spin"}),a]});return(0,b.jsxs)(B.N,{open:l,onOpenChange:m,children:[(0,b.jsx)(B.a,{asChild:!0,children:(0,b.jsxs)(A.f,{variant:"ghost",size:"icon",className:"rounded-full",children:[(0,b.jsx)(x,{className:"h-5 w-5"}),(0,b.jsx)("span",{className:"sr-only",children:j.settings?.title||"Settings"})]})}),(0,b.jsxs)(B.d,{ref:n,className:"w-[calc(100vw-2rem)] sm:max-w-[900px] max-h-[85vh] overflow-y-auto",children:[(0,b.jsxs)(B.s,{children:[(0,b.jsx)(B.F,{children:j.settings?.title||"Settings"}),(0,b.jsx)(B.C,{children:j.settings?.desc||"Manage your preferences and data."})]}),(0,b.jsxs)(C.i,{defaultValue:"general",className:"w-full",children:[(0,b.jsxs)(C.U,{className:`grid w-full grid-cols-4 ${g?"sm:grid-cols-7":"sm:grid-cols-4"} gap-1 h-auto`,children:[(0,b.jsx)(aY,{value:"general",icon:(0,b.jsx)(u.f,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.general||"General"}),(0,b.jsx)(aY,{value:"account",icon:(0,b.jsx)(y.f,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.account||"Account"}),g&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(aY,{value:"ai",icon:(0,b.jsx)(s,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.ai||"AI Provider"}),(0,b.jsx)(aY,{value:"prompts",icon:(0,b.jsx)(w,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.prompts||"Prompts"}),(0,b.jsx)(aY,{value:"admin",icon:(0,b.jsx)(p,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.admin||"User Management"})]}),(0,b.jsx)(aY,{value:"danger",icon:(0,b.jsx)(r,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.danger||"Danger"}),(0,b.jsx)(aY,{value:"about",icon:(0,b.jsx)(t,{className:"h-4 w-4 sm:mr-2"}),label:j.settings?.tabs?.about||"About"})]}),(0,b.jsxs)(C.S,{value:"general",className:"space-y-4 py-4",children:[(0,b.jsx)(aA,{config:H,setConfig:I,isAdmin:g,disabled:F||o}),g&&L(j.settings?.save||"Save Settings")]}),(0,b.jsx)(C.S,{value:"account",className:"space-y-4 py-4",children:(0,b.jsx)(ah,{})}),(0,b.jsxs)(C.S,{value:"ai",className:"space-y-4 py-4",children:[(0,b.jsx)(ai.f,{config:H,setConfig:I,loading:F,saving:o,onSave:K}),!F&&(0,b.jsx)(aW,{config:H,setConfig:I,saving:o,onSave:K})]}),(0,b.jsxs)(C.S,{value:"prompts",className:"space-y-4 py-4",children:[(0,b.jsx)(aM,{config:H,onUpdate:(a,b)=>I(c=>({...c,prompts:{...c.prompts,[a]:b}}))}),L(j.settings?.prompts?.save||"Save Prompt Settings")]}),g&&(0,b.jsxs)(C.S,{value:"admin",className:"space-y-4 py-4",children:[(0,b.jsxs)(A.f,{variant:"outline",className:"w-full justify-start gap-2",onClick:()=>{m(!1),k.push("/admin")},children:[(0,b.jsx)(i.f,{className:"h-4 w-4"}),j.admin?.dashboard?.title||"Admin Dashboard"]}),(0,b.jsxs)(A.f,{variant:"outline",className:"w-full justify-start gap-2",onClick:()=>{m(!1),k.push("/setup")},children:[(0,b.jsx)(z.f,{className:"h-4 w-4"}),j.setup.rerun]}),(0,b.jsx)("div",{className:"border-t pt-4",children:(0,b.jsx)(W,{})})]}),(0,b.jsx)(C.S,{value:"danger",className:"space-y-4 py-4",children:(0,b.jsxs)("div",{className:"space-y-3",children:[(0,b.jsx)(ar,{isAdmin:g}),(0,b.jsx)(am,{isAdmin:g})]})}),(0,b.jsx)(C.S,{value:"about",className:"space-y-4 py-4",children:(0,b.jsx)(ad,{})})]})]})]})}let a$=[/^\/login/,/^\/register/,/^\/setup/,/^\/print-preview/,/^\/exams\/[^/]+\/print/],a_=[{key:"home",href:"/",icon:o,match:a=>"/"===a},{key:"notebooks",href:"/notebooks",icon:j.f,match:a=>a.startsWith("/notebooks")||a.startsWith("/error-items")||a.startsWith("/practice")},{key:"review",href:"/review",icon:k.f,match:a=>a.startsWith("/review")},{key:"stats",href:"/stats",icon:i.f,match:a=>a.startsWith("/stats")||a.startsWith("/tags")},{key:"exams",href:"/exams",icon:l.f,match:a=>a.startsWith("/exams")}];function a0({children:a}){var e;let i,j,k=(0,h.usePathname)()||"/",{t:l}=(0,c.b)(),{data:n,status:o}=(0,d.useSession)(),r=n?.user?.role==="admin",s=a$.some(a=>a.test(k));if(e=r&&!s,i=(0,h.useRouter)(),j=(0,q.useRef)(!1),(0,q.useEffect)(()=>{e&&!j.current&&(j.current=!0,S.f.get("/api/setup").then(a=>{a.needsSetup&&i.replace("/setup")}).catch(a=>U.f.warn("[Setup]","Failed to check setup status",{error:a})))},[e,i]),s||"unauthenticated"===o)return(0,b.jsx)(b.Fragment,{children:a});let t=n?.user?.name||n?.user?.email||"";return(0,b.jsxs)("div",{className:"min-h-screen",children:[(0,b.jsx)("header",{className:"sticky top-0 z-40 border-b bg-card/80 backdrop-blur-md supports-[backdrop-filter]:bg-card/70 print:hidden",children:(0,b.jsxs)("div",{className:"mx-auto flex h-14 max-w-6xl items-center gap-3 px-4 md:h-16 md:px-8",children:[(0,b.jsxs)(g.default,{href:"/",className:"flex shrink-0 items-center gap-2",children:[(0,b.jsx)(f.default,{src:"/icons/icon.png",alt:"",width:32,height:32,className:"rounded-lg",priority:!0,unoptimized:!0}),(0,b.jsx)("span",{className:"text-base font-semibold tracking-tight",children:l.pageTitle.base})]}),(0,b.jsx)("nav",{className:"ml-4 hidden items-center gap-1 md:flex",children:a_.map(a=>{let c=a.match(k),d=a.icon;return(0,b.jsxs)(g.default,{href:a.href,className:(0,I.f)("flex items-center gap-1.5 rounded-lg px-3 py-2 text-sm font-medium transition-colors",c?"bg-accent text-accent-foreground":"text-muted-foreground hover:bg-muted hover:text-foreground"),"aria-current":c?"page":void 0,children:[(0,b.jsx)(d,{className:"h-4 w-4"}),l.nav[a.key]]},a.key)})}),(0,b.jsxs)("div",{className:"ml-auto flex items-center gap-1",children:[t&&(0,b.jsxs)("span",{className:"mr-2 hidden max-w-40 items-center gap-2 truncate text-sm text-muted-foreground lg:flex",children:[(0,b.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-primary/10 text-xs font-semibold text-primary",children:t.slice(0,1).toUpperCase()}),(0,b.jsx)("span",{className:"truncate",children:t})]}),r&&(0,b.jsx)(g.default,{href:"/admin",title:l.nav.admin,children:(0,b.jsxs)(A.f,{variant:"ghost",size:"icon",className:"rounded-full",children:[(0,b.jsx)(p,{className:"h-5 w-5"}),(0,b.jsx)("span",{className:"sr-only",children:l.nav.admin})]})}),(0,b.jsx)(aZ,{}),(0,b.jsx)(A.f,{variant:"ghost",size:"icon",className:"rounded-full text-muted-foreground hover:text-destructive",onClick:()=>(0,d.signOut)({callbackUrl:"/login"}),title:l.app.logout,children:(0,b.jsx)(m.f,{className:"h-5 w-5"})})]})]})}),(0,b.jsx)("div",{className:"pb-20 md:pb-0",children:a}),(0,b.jsx)("nav",{className:"pb-safe fixed inset-x-0 bottom-0 z-40 border-t bg-card/90 backdrop-blur-md md:hidden print:hidden",children:(0,b.jsx)("div",{className:"grid h-16 grid-cols-5",children:a_.map(a=>{let c=a.match(k),d=a.icon;return(0,b.jsxs)(g.default,{href:a.href,className:(0,I.f)("flex flex-col items-center justify-center gap-1 text-[11px] font-medium transition-colors",c?"text-primary":"text-muted-foreground"),"aria-current":c?"page":void 0,children:[(0,b.jsx)("span",{className:(0,I.f)("flex h-7 w-12 items-center justify-center rounded-full transition-colors",c&&"bg-accent"),children:(0,b.jsx)(d,{className:"h-5 w-5"})}),l.nav[a.key]]},a.key)})})})]})}let a1=(0,n.f)("list-todo",[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]);var a2=a.i(862722);let a3=[/^\/login/,/^\/register/,/^\/print-preview/,/^\/exams\/[^/]+\/print/];function a4(){let{t:a}=(0,c.b)(),{timeZone:f}=(0,e.M)(),{status:i}=(0,d.useSession)(),j=(0,h.usePathname)(),[k,l]=(0,q.useState)(!1),[m,n]=(0,q.useState)([]),[o,p]=(0,q.useState)(()=>Date.now()),r="authenticated"!==i||a3.some(a=>a.test(j||"")),s=(0,q.useCallback)(async()=>{if("u"<typeof document||"hidden"!==document.visibilityState)try{let a=await S.f.get("/api/tasks");n(a.tasks),p(Date.now())}catch{}},[]);if((0,q.useEffect)(()=>{if(r)return;let a=setTimeout(s,0),b=setInterval(s,k?2e3:15e3);return()=>{clearTimeout(a),clearInterval(b)}},[r,k,s]),r)return null;let t=m.filter(a=>"running"===a.status).length,u=m.some(a=>"running"!==a.status),w=async()=>{try{let a=await S.f.delete("/api/tasks");n(a.tasks)}catch{}};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(A.f,{variant:"outline",size:"icon",className:"fixed bottom-20 right-4 z-40 h-11 w-11 rounded-full shadow-lg md:bottom-6 md:right-6 print:hidden",onClick:()=>l(!0),"aria-label":a.backgroundTasks.title,title:a.backgroundTasks.title,children:[t>0?(0,b.jsx)(v.f,{className:"h-5 w-5 animate-spin"}):(0,b.jsx)(a1,{className:"h-5 w-5"}),t>0&&(0,b.jsx)("span",{className:"absolute -right-1 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-primary px-1 text-xs text-primary-foreground",children:t})]}),(0,b.jsx)(B.N,{open:k,onOpenChange:l,children:(0,b.jsxs)(B.d,{className:"max-h-[85vh] overflow-y-auto sm:max-w-lg",children:[(0,b.jsxs)(B.s,{children:[(0,b.jsx)(B.F,{children:a.backgroundTasks.title}),(0,b.jsx)(B.C,{children:a.backgroundTasks.description})]}),0===m.length?(0,b.jsx)("p",{className:"py-6 text-center text-sm text-muted-foreground",children:a.backgroundTasks.empty}):(0,b.jsx)("ul",{className:"space-y-2",children:m.map(c=>{var d,e;let h;return(0,b.jsx)("li",{className:"rounded-md border p-3 text-sm",children:(0,b.jsxs)("div",{className:"flex items-start gap-2",children:["running"===c.status&&(0,b.jsx)(v.f,{className:"mt-0.5 h-4 w-4 shrink-0 animate-spin text-primary"}),"succeeded"===c.status&&(0,b.jsx)(an.f,{className:"mt-0.5 h-4 w-4 shrink-0 text-green-600"}),"failed"===c.status&&(0,b.jsx)(a2.f,{className:"mt-0.5 h-4 w-4 shrink-0 text-destructive"}),(0,b.jsxs)("div",{className:"min-w-0 flex-1 space-y-1",children:[(0,b.jsxs)("div",{className:"font-medium",children:[a.backgroundTasks.kinds[c.kind],(0,b.jsxs)("span",{className:"font-normal text-muted-foreground",children:[" · ",a.backgroundTasks.status[c.status]]})]}),c.subject&&(0,b.jsx)("div",{className:"break-words text-muted-foreground",children:c.subject}),c.progress&&c.progress.total>0&&(0,b.jsxs)("div",{className:"space-y-1",children:[(0,b.jsx)("div",{className:"h-1.5 overflow-hidden rounded bg-muted",children:(0,b.jsx)("div",{className:"h-full bg-primary transition-all",style:{width:`${Math.round(c.progress.done/c.progress.total*100)}%`}})}),(0,b.jsxs)("div",{className:"text-xs text-muted-foreground",children:[a.backgroundTasks.progress.replace("{done}",String(c.progress.done)).replace("{total}",String(c.progress.total)),c.progress.failed>0&&` \xb7 ${a.backgroundTasks.failedCount.replace("{count}",String(c.progress.failed))}`]})]}),c.error&&(0,b.jsx)("div",{className:"text-xs text-destructive",children:(b=>{if(!b)return null;let c=a.backgroundTasks.errors[b]??a.errors[b];return"string"==typeof c?c:b})(c.error)}),(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-x-3 text-xs text-muted-foreground",children:[(0,b.jsx)("span",{children:a.backgroundTasks.startedAt.replace("{time}",(0,D.r)(c.startedAt,"HH:mm:ss",f))}),(0,b.jsx)("span",{children:a.backgroundTasks.elapsed.replace("{time}",(d=c.startedAt,e=c.finishedAt,h=Math.max(0,Math.round(((e?Date.parse(e):o)-Date.parse(d))/1e3)),`${Math.floor(h/60)}:${String(h%60).padStart(2,"0")}`))}),c.link&&(0,b.jsx)(g.default,{href:c.link,className:"text-primary hover:underline",onClick:()=>l(!1),children:a.backgroundTasks.view})]})]})]})},c.id)})}),(0,b.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-1",children:[(0,b.jsx)("p",{className:"text-xs text-muted-foreground",children:a.backgroundTasks.retentionHint}),u&&(0,b.jsx)(A.f,{variant:"ghost",size:"sm",onClick:w,children:a.backgroundTasks.clearFinished})]})]})})]})}var a5=a.i(633508);let a6={success:{icon:an.f,className:"text-success"},error:{icon:a2.f,className:"text-destructive"},warning:{icon:r,className:"text-warning"},info:{icon:t,className:"text-primary"}};function a7(){let{t:a}=(0,c.b)(),[d,e]=(0,q.useState)([]),[f,g]=(0,q.useState)(null);return(0,q.useEffect)(()=>(0,T.M)(a=>{e(a.toasts),g(a.confirm)}),[]),(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"pointer-events-none fixed inset-x-0 top-3 z-[100] flex flex-col items-center gap-2 px-4 print:hidden",role:"status","aria-live":"polite",children:d.map(c=>{let{icon:d,className:e}=a6[c.type];return(0,b.jsxs)("div",{className:"pointer-events-auto flex w-full max-w-sm items-start gap-3 rounded-xl border bg-card/95 px-4 py-3 text-sm shadow-lg backdrop-blur animate-in fade-in slide-in-from-top-2 duration-200",children:[(0,b.jsx)(d,{className:(0,I.f)("mt-0.5 h-4 w-4 shrink-0",e)}),(0,b.jsx)("p",{className:"min-w-0 flex-1 whitespace-pre-line break-words leading-relaxed",children:c.message}),(0,b.jsx)("button",{type:"button",className:"shrink-0 rounded p-0.5 text-muted-foreground transition-colors hover:text-foreground",onClick:()=>(0,T.p)(c.id),"aria-label":a.common.close,children:(0,b.jsx)(a5.X,{className:"h-3.5 w-3.5"})})]},c.id)})}),(0,b.jsx)(B.N,{open:!!f,onOpenChange:a=>{a||f?.resolve(!1)},children:(0,b.jsxs)(B.d,{className:"sm:max-w-md",children:[(0,b.jsxs)(B.s,{children:[(0,b.jsxs)(B.F,{className:"flex items-center gap-2",children:[f?.destructive&&(0,b.jsx)(r,{className:"h-5 w-5 text-destructive"}),f?.title||a.common.confirmTitle]}),(0,b.jsx)(B.C,{className:"whitespace-pre-line pt-1 text-left leading-relaxed",children:f?.message})]}),(0,b.jsxs)(B.c,{className:"gap-2",children:[(0,b.jsx)(A.f,{variant:"outline",onClick:()=>f?.resolve(!1),children:f?.cancelText||a.common.cancel}),(0,b.jsx)(A.f,{variant:f?.destructive?"destructive":"default",onClick:()=>f?.resolve(!0),autoFocus:!0,children:f?.confirmText||a.common.confirm})]})]})})]})}function a8(){return(0,q.useEffect)(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/sw.js",{scope:"/"}).catch(a=>{U.f.warn("[PWA]","Service worker registration failed",{error:String(a)})})},[]),null}a.s(["Providers",0,function({children:a,timeZone:f}){return(0,b.jsx)(d.SessionProvider,{children:(0,b.jsx)(c.w,{children:(0,b.jsxs)(e.n,{initialTimeZone:f,children:[(0,b.jsx)(a0,{children:a}),(0,b.jsx)(a4,{}),(0,b.jsx)(a7,{}),(0,b.jsx)(a8,{})]})})})}],418175)}];
192
192
 
193
193
  //# sourceMappingURL=src_components_providers_tsx_09kw-mv3nb6xs._.js.map
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
7
7
  "static/chunks/0cz1d0mv5g_q7.js"
8
8
  ],
9
9
  "lowPriorityFiles": [
10
- "static/X3NzguYsDSEVWQKJ6r_e7/_buildManifest.js",
11
- "static/X3NzguYsDSEVWQKJ6r_e7/_ssgManifest.js",
12
- "static/X3NzguYsDSEVWQKJ6r_e7/_clientMiddlewareManifest.js"
10
+ "static/4KSCavDaw8kyhSyGiE86P/_buildManifest.js",
11
+ "static/4KSCavDaw8kyhSyGiE86P/_ssgManifest.js",
12
+ "static/4KSCavDaw8kyhSyGiE86P/_clientMiddlewareManifest.js"
13
13
  ],
14
14
  "rootMainFiles": [
15
15
  "static/chunks/263d57goy87o4.js",
@@ -21,11 +21,11 @@
21
21
  "wasm": [],
22
22
  "assets": [],
23
23
  "env": {
24
- "__NEXT_BUILD_ID": "X3NzguYsDSEVWQKJ6r_e7",
25
- "NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "GIVb0DZH0z6CTK9uPuUflaojB+hU0Bb2NFPXNMXGPG0=",
26
- "__NEXT_PREVIEW_MODE_ID": "613a8f48cb0162659e342a8315712c28",
27
- "__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "dc8dc934a99342c568fa6182fe5f9fc0eb63c6272e6a63aae6ba1e319a238070",
28
- "__NEXT_PREVIEW_MODE_SIGNING_KEY": "9a355d577776377848dd2c95b7cfac33c1e079735db5efdad83d7368677789ea"
24
+ "__NEXT_BUILD_ID": "4KSCavDaw8kyhSyGiE86P",
25
+ "NEXT_SERVER_ACTIONS_ENCRYPTION_KEY": "BASRYuUDyAjU+sUMqLWjk1PAJY3hcMyFHRxEJ+IZ1jQ=",
26
+ "__NEXT_PREVIEW_MODE_ID": "3ef2539a41d5550980a6c5b3a3946302",
27
+ "__NEXT_PREVIEW_MODE_ENCRYPTION_KEY": "fb9715c3ea8d0a384b5a9cc6c73122ddc76e80c5d2659e47f7c4edb768bb0b0c",
28
+ "__NEXT_PREVIEW_MODE_SIGNING_KEY": "69de9c75bb228890c2fd26a6f5b5d00fe3ea2dd8932c81d6752beb6f4ebde0a3"
29
29
  }
30
30
  }
31
31
  },
@@ -1 +1 @@
1
- <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/263d57goy87o4.js"/><script src="/_next/static/chunks/242x7dx0zu3hf.js" async=""></script><script src="/_next/static/chunks/0ykhi6pk49so-.js" async=""></script><script src="/_next/static/chunks/1fkaya2t7r343.js" async=""></script><script src="/_next/static/chunks/turbopack-2c3mg3r-05n1w.js" async=""></script><script src="/_next/static/chunks/0a-rekt06v0sv.js" async=""></script><link rel="manifest" href="/manifest.webmanifest"/><link rel="icon" href="/favicon.ico?favicon.2vob68tjqpejf.ico" sizes="256x256" type="image/x-icon"/><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/263d57goy87o4.js","static/chunks/242x7dx0zu3hf.js","static/chunks/0ykhi6pk49so-.js","static/chunks/1fkaya2t7r343.js"],"runtimeModuleIds":[494553]});</script><script src="/_next/static/chunks/263d57goy87o4.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/0a-rekt06v0sv.js\"\n3:I[339756,[\"$2\"],\"default\"]\n4:I[837457,[\"$2\"],\"default\"]\n7:I[897367,[\"$2\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:\"ViewportBoundary\"\nb:I[897367,[\"$2\"],\"$a\"]\nd:\"MetadataBoundary\"\ne:I[897367,[\"$2\"],\"$d\"]\n10:I[168027,[\"$2\"],\"default\",1]\n5:X\n6:[[\"children\",{\"s\":\"__PAGE__\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],\"p\":false,\"v\":null}}]]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$5\"},\"c\":\"$Q6\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"$Le\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"X3NzguYsDSEVWQKJ6r_e7\"}\n5:C\nc:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n11:I[27201,[\"$2\"],\"IconMark\"]\n9:null\nf:[[\"$\",\"link\",\"0\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2vob68tjqpejf.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$L11\",\"2\",{}]]\n"])</script></body></html>
1
+ <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/263d57goy87o4.js"/><script src="/_next/static/chunks/242x7dx0zu3hf.js" async=""></script><script src="/_next/static/chunks/0ykhi6pk49so-.js" async=""></script><script src="/_next/static/chunks/1fkaya2t7r343.js" async=""></script><script src="/_next/static/chunks/turbopack-2c3mg3r-05n1w.js" async=""></script><script src="/_next/static/chunks/0a-rekt06v0sv.js" async=""></script><link rel="manifest" href="/manifest.webmanifest"/><link rel="icon" href="/favicon.ico?favicon.2vob68tjqpejf.ico" sizes="256x256" type="image/x-icon"/><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/263d57goy87o4.js","static/chunks/242x7dx0zu3hf.js","static/chunks/0ykhi6pk49so-.js","static/chunks/1fkaya2t7r343.js"],"runtimeModuleIds":[494553]});</script><script src="/_next/static/chunks/263d57goy87o4.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/0a-rekt06v0sv.js\"\n3:I[339756,[\"$2\"],\"default\"]\n4:I[837457,[\"$2\"],\"default\"]\n7:I[897367,[\"$2\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:\"ViewportBoundary\"\nb:I[897367,[\"$2\"],\"$a\"]\nd:\"MetadataBoundary\"\ne:I[897367,[\"$2\"],\"$d\"]\n10:I[168027,[\"$2\"],\"default\",1]\n5:X\n6:[[\"children\",{\"s\":\"__PAGE__\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],\"p\":false,\"v\":null}}]]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$5\"},\"c\":\"$Q6\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"$Le\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"4KSCavDaw8kyhSyGiE86P\"}\n5:C\nc:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n11:I[27201,[\"$2\"],\"IconMark\"]\n9:null\nf:[[\"$\",\"link\",\"0\",{\"rel\":\"manifest\",\"href\":\"/manifest.webmanifest\",\"crossOrigin\":\"$undefined\"}],[\"$\",\"link\",\"1\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2vob68tjqpejf.ico\",\"sizes\":\"256x256\",\"type\":\"image/x-icon\"}],[\"$\",\"$L11\",\"2\",{}]]\n"])</script></body></html>
@@ -1,5 +1,5 @@
1
1
  {
2
- "previewModeId": "613a8f48cb0162659e342a8315712c28",
3
- "previewModeSigningKey": "9a355d577776377848dd2c95b7cfac33c1e079735db5efdad83d7368677789ea",
4
- "previewModeEncryptionKey": "dc8dc934a99342c568fa6182fe5f9fc0eb63c6272e6a63aae6ba1e319a238070"
2
+ "previewModeId": "3ef2539a41d5550980a6c5b3a3946302",
3
+ "previewModeSigningKey": "69de9c75bb228890c2fd26a6f5b5d00fe3ea2dd8932c81d6752beb6f4ebde0a3",
4
+ "previewModeEncryptionKey": "fb9715c3ea8d0a384b5a9cc6c73122ddc76e80c5d2659e47f7c4edb768bb0b0c"
5
5
  }
@@ -1 +1 @@
1
- self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"GIVb0DZH0z6CTK9uPuUflaojB+hU0Bb2NFPXNMXGPG0=\"\n}"
1
+ self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"BASRYuUDyAjU+sUMqLWjk1PAJY3hcMyFHRxEJ+IZ1jQ=\"\n}"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "node": {},
3
3
  "edge": {},
4
- "encryptionKey": "GIVb0DZH0z6CTK9uPuUflaojB+hU0Bb2NFPXNMXGPG0="
4
+ "encryptionKey": "BASRYuUDyAjU+sUMqLWjk1PAJY3hcMyFHRxEJ+IZ1jQ="
5
5
  }