@serifpersia/dango 3.0.3

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 (141) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +247 -0
  3. package/client/dist/assets/AnimeInfo-CMxs0nRH.css +1 -0
  4. package/client/dist/assets/AnimeInfo-DVdaocCl.js +1 -0
  5. package/client/dist/assets/AnimeInfoPage-Bx5EvGt-.js +2 -0
  6. package/client/dist/assets/Asmr-C2i9GKD4.css +1 -0
  7. package/client/dist/assets/Asmr-CIjmFtRH.js +2 -0
  8. package/client/dist/assets/Asmr.module-DPG2JhDJ.js +1 -0
  9. package/client/dist/assets/AvSyncCalibrator-CIYcyon5.css +1 -0
  10. package/client/dist/assets/AvSyncCalibrator-vqErH7Cm.js +10 -0
  11. package/client/dist/assets/ErrorMessage-BwSjzblw.js +1 -0
  12. package/client/dist/assets/ErrorMessage-CXoRbrLN.css +1 -0
  13. package/client/dist/assets/Home-D7YfGBUk.js +1 -0
  14. package/client/dist/assets/Home-DKCfEiwl.css +1 -0
  15. package/client/dist/assets/Insights-BljI64Ua.css +1 -0
  16. package/client/dist/assets/Insights-CLQGrlpX.js +1 -0
  17. package/client/dist/assets/Manga-DQ9HYnpk.js +1 -0
  18. package/client/dist/assets/Manga-H8Wb04w3.css +1 -0
  19. package/client/dist/assets/Map-CXFqXmsZ.css +1 -0
  20. package/client/dist/assets/Map-L_ryVBTq.js +1 -0
  21. package/client/dist/assets/Mature-BeWzAJ7B.js +1 -0
  22. package/client/dist/assets/Mature-DJmUUtlF.css +1 -0
  23. package/client/dist/assets/Player-CYpd__FP.js +30 -0
  24. package/client/dist/assets/Player-DreAhybc.css +1 -0
  25. package/client/dist/assets/PlayerRedirect-fxUAp9JV.js +1 -0
  26. package/client/dist/assets/PlayerSettings-BcsotxP9.js +1 -0
  27. package/client/dist/assets/PlayerSettings-Cqua1CDD.css +1 -0
  28. package/client/dist/assets/QueueRail-B9Pgbqc3.js +1 -0
  29. package/client/dist/assets/QueueRail-BnaltOP8.css +1 -0
  30. package/client/dist/assets/Radio-BvdY5twD.js +1 -0
  31. package/client/dist/assets/Radio-CUuYy3DY.css +1 -0
  32. package/client/dist/assets/Search-BzO-aRP7.css +1 -0
  33. package/client/dist/assets/Search-R9YLAXS1.js +1 -0
  34. package/client/dist/assets/Search.module-D8ZbQAiK.js +1 -0
  35. package/client/dist/assets/Settings-9kYcXdTR.js +21 -0
  36. package/client/dist/assets/Settings-DF8JThUL.css +1 -0
  37. package/client/dist/assets/SkeletonGrid-D5vRvX5q.js +1 -0
  38. package/client/dist/assets/SkeletonGrid-DEbYtO4H.css +1 -0
  39. package/client/dist/assets/SynopsisText-BlFw0R-0.js +1 -0
  40. package/client/dist/assets/SynopsisText-CUgOjOxt.css +1 -0
  41. package/client/dist/assets/Trackers-DfZlnnVq.js +2 -0
  42. package/client/dist/assets/Trackers-Dt9lR_uP.css +1 -0
  43. package/client/dist/assets/Tv-CVKC2YBs.css +1 -0
  44. package/client/dist/assets/Tv-Db1Wx_b7.js +15 -0
  45. package/client/dist/assets/Watchlist-B2nkNZqM.css +1 -0
  46. package/client/dist/assets/Watchlist-a77CYtzu.js +1 -0
  47. package/client/dist/assets/hls-6Owgw2Aj.js +1 -0
  48. package/client/dist/assets/hls-BOLXTnjL.js +42 -0
  49. package/client/dist/assets/index-B6qdXFtl.css +1 -0
  50. package/client/dist/assets/index-B8TPVaIS.js +30354 -0
  51. package/client/dist/assets/index-CpjgU8ou.js +178 -0
  52. package/client/dist/assets/useAnimeInfoData-BOfyi9UJ.js +1 -0
  53. package/client/dist/assets/useIsMobile-CM15uQn8.css +1 -0
  54. package/client/dist/assets/useIsMobile-Cb8HcKRj.js +1 -0
  55. package/client/dist/assets/useMatureConsent-CZMYBVXd.js +1 -0
  56. package/client/dist/assets/vendor-rLNfZm7Y.js +1 -0
  57. package/client/dist/av-sync-test.mp4 +0 -0
  58. package/client/dist/favicon.ico +0 -0
  59. package/client/dist/index.html +31 -0
  60. package/client/dist/logo-mochi.png +0 -0
  61. package/client/dist/logo-sakura.png +0 -0
  62. package/client/dist/logo.png +0 -0
  63. package/client/dist/placeholder.svg +4 -0
  64. package/client/dist/robots.txt +3 -0
  65. package/orchestrator.js +416 -0
  66. package/package.json +89 -0
  67. package/server/dist/app-auth.js +231 -0
  68. package/server/dist/config.js +133 -0
  69. package/server/dist/controllers/auth.controller.js +247 -0
  70. package/server/dist/controllers/data.controller.js +785 -0
  71. package/server/dist/controllers/insights.controller.js +197 -0
  72. package/server/dist/controllers/proxy.controller.js +665 -0
  73. package/server/dist/controllers/settings.controller.js +267 -0
  74. package/server/dist/controllers/watchlist.controller.js +967 -0
  75. package/server/dist/db.js +152 -0
  76. package/server/dist/discord-gateway.js +381 -0
  77. package/server/dist/discord-rpc.js +424 -0
  78. package/server/dist/github-sync.js +403 -0
  79. package/server/dist/google.js +549 -0
  80. package/server/dist/lib/anilist.js +1519 -0
  81. package/server/dist/lib/anischedule.js +202 -0
  82. package/server/dist/lib/ipc.js +32 -0
  83. package/server/dist/lib/kitsu.js +552 -0
  84. package/server/dist/lib/mal.js +886 -0
  85. package/server/dist/lib/migration.js +335 -0
  86. package/server/dist/lib/temp-ids.js +11 -0
  87. package/server/dist/lib/tmdb.js +71 -0
  88. package/server/dist/lib/tracker/anilist-tracker.js +250 -0
  89. package/server/dist/lib/tracker/sync.service.js +312 -0
  90. package/server/dist/logger.js +19 -0
  91. package/server/dist/providers/123anime.provider.js +240 -0
  92. package/server/dist/providers/anilight.provider.js +366 -0
  93. package/server/dist/providers/animepahe.provider.js +531 -0
  94. package/server/dist/providers/animeya.provider.js +746 -0
  95. package/server/dist/providers/base-provider.js +45 -0
  96. package/server/dist/providers/hn.provider.js +473 -0
  97. package/server/dist/providers/ht.provider.js +439 -0
  98. package/server/dist/providers/jasmr.provider.js +504 -0
  99. package/server/dist/providers/kaa.provider.js +388 -0
  100. package/server/dist/providers/manga/manga.types.js +10 -0
  101. package/server/dist/providers/manga/mangadex.provider.js +227 -0
  102. package/server/dist/providers/manga/mangapill.provider.js +232 -0
  103. package/server/dist/providers/megaplay.provider.js +583 -0
  104. package/server/dist/providers/op.provider.js +440 -0
  105. package/server/dist/providers/provider.interface.js +2 -0
  106. package/server/dist/providers/title-matching.js +234 -0
  107. package/server/dist/providers/wh.provider.js +600 -0
  108. package/server/dist/rclone.js +126 -0
  109. package/server/dist/repositories/insights.repository.js +43 -0
  110. package/server/dist/repositories/mal-cache.repository.js +66 -0
  111. package/server/dist/repositories/notifications.repository.js +40 -0
  112. package/server/dist/repositories/queue.repository.js +64 -0
  113. package/server/dist/repositories/settings.repository.js +15 -0
  114. package/server/dist/repositories/shows-meta.repository.js +43 -0
  115. package/server/dist/repositories/temp-show-ids.repository.js +54 -0
  116. package/server/dist/repositories/watched-episodes.repository.js +54 -0
  117. package/server/dist/repositories/watchlist.repository.js +74 -0
  118. package/server/dist/routes/asmr.routes.js +72 -0
  119. package/server/dist/routes/auth.routes.js +28 -0
  120. package/server/dist/routes/data.routes.js +50 -0
  121. package/server/dist/routes/discord-gateway.routes.js +57 -0
  122. package/server/dist/routes/insights.routes.js +12 -0
  123. package/server/dist/routes/lan-auth.routes.js +49 -0
  124. package/server/dist/routes/manga.routes.js +115 -0
  125. package/server/dist/routes/proxy.routes.js +15 -0
  126. package/server/dist/routes/radio.routes.js +143 -0
  127. package/server/dist/routes/settings.routes.js +27 -0
  128. package/server/dist/routes/tracker.routes.js +143 -0
  129. package/server/dist/routes/translate.routes.js +90 -0
  130. package/server/dist/routes/tv.routes.js +843 -0
  131. package/server/dist/routes/watchlist.routes.js +312 -0
  132. package/server/dist/server.js +310 -0
  133. package/server/dist/shipped-defaults.js +8 -0
  134. package/server/dist/sync-config.js +32 -0
  135. package/server/dist/sync.js +506 -0
  136. package/server/dist/utils/cookie.utils.js +17 -0
  137. package/server/dist/utils/db-utils.js +15 -0
  138. package/server/dist/utils/env.utils.js +83 -0
  139. package/server/dist/utils/machine-id.js +46 -0
  140. package/server/dist/utils/request-context.js +5 -0
  141. package/server/dist/utils/security.utils.js +99 -0
@@ -0,0 +1,178 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-D7YfGBUk.js","assets/vendor-rLNfZm7Y.js","assets/SkeletonGrid-D5vRvX5q.js","assets/useIsMobile-Cb8HcKRj.js","assets/useIsMobile-CM15uQn8.css","assets/useAnimeInfoData-BOfyi9UJ.js","assets/SkeletonGrid-DEbYtO4H.css","assets/ErrorMessage-BwSjzblw.js","assets/ErrorMessage-CXoRbrLN.css","assets/QueueRail-B9Pgbqc3.js","assets/QueueRail-BnaltOP8.css","assets/Home-DKCfEiwl.css","assets/Watchlist-a77CYtzu.js","assets/Watchlist-B2nkNZqM.css","assets/Settings-9kYcXdTR.js","assets/Settings-DF8JThUL.css","assets/Player-CYpd__FP.js","assets/hls-6Owgw2Aj.js","assets/AvSyncCalibrator-vqErH7Cm.js","assets/AvSyncCalibrator-CIYcyon5.css","assets/useMatureConsent-CZMYBVXd.js","assets/SynopsisText-BlFw0R-0.js","assets/SynopsisText-CUgOjOxt.css","assets/Player-DreAhybc.css","assets/Search-R9YLAXS1.js","assets/Search.module-D8ZbQAiK.js","assets/Search-BzO-aRP7.css","assets/Mature-BeWzAJ7B.js","assets/Mature-DJmUUtlF.css","assets/Asmr-CIjmFtRH.js","assets/Asmr.module-DPG2JhDJ.js","assets/Asmr-C2i9GKD4.css","assets/Manga-DQ9HYnpk.js","assets/Manga-H8Wb04w3.css","assets/Radio-BvdY5twD.js","assets/Radio-CUuYy3DY.css","assets/Tv-Db1Wx_b7.js","assets/Tv-CVKC2YBs.css","assets/Trackers-DfZlnnVq.js","assets/Trackers-Dt9lR_uP.css","assets/Insights-CLQGrlpX.js","assets/Insights-BljI64Ua.css","assets/Map-L_ryVBTq.js","assets/Map-CXFqXmsZ.css","assets/AnimeInfoPage-Bx5EvGt-.js","assets/PlayerRedirect-fxUAp9JV.js"])))=>i.map(i=>d[i]);
2
+ import{N as qt,k as R,A as D,q as A,h as k,S as J,d as x,g as Z,X as ie,x as se,u as q,a as W,b as H,c as Pe,e as n,L as U,$ as Be,f as Ht,i as Fe,j as Vt,C as Rt,D as Dt,P as Kt,R as jt,l as B,m as Re,z as K,T as be,Q as Ut,n as Wt,o as Qt,B as Jt}from"./vendor-rLNfZm7Y.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function a(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=a(o);fetch(o.href,i)}})();const Gt="modulepreload",Yt=function(e){return"/"+e},De={},j=function(t,a,r){let o=Promise.resolve();if(a&&a.length>0){let l=function(m){return Promise.all(m.map(u=>Promise.resolve(u).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const s=document.querySelector("meta[property=csp-nonce]"),c=s?.nonce||s?.getAttribute("nonce");o=l(a.map(m=>{if(m=Yt(m),m in De)return;De[m]=!0;const u=m.endsWith(".css"),f=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${m}"]${f}`))return;const g=document.createElement("link");if(g.rel=u?"stylesheet":Gt,u||(g.as="script"),g.crossOrigin="",g.href=m,c&&g.setAttribute("nonce",c),document.head.appendChild(g),u)return new Promise((b,d)=>{g.addEventListener("load",b),g.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${m}`)))})}))}function i(s){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=s,window.dispatchEvent(c),!c.defaultPrevented)throw s}return o.then(s=>{for(const c of s||[])c.status==="rejected"&&i(c.reason);return t().catch(i)})};let Zt={data:""},Xt=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Zt},en=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,tn=/\/\*[^]*?\*\/| +/g,Ke=/\n+/g,ne=(e,t)=>{let a="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?a=i+" "+s+";":r+=i[1]=="f"?ne(s,i):i+"{"+ne(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=ne(s,t?t.replace(/([^,])+/g,c=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,c):c?c+" "+l:l)):i):s!=null&&(i=i[1]=="-"?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=ne.p?ne.p(i,s):i+":"+s+";")}return a+(t&&o?t+"{"+o+"}":o)+r},te={},st=e=>{if(typeof e=="object"){let t="";for(let a in e)t+=a+st(e[a]);return t}return e},nn=(e,t,a,r,o)=>{let i=st(e),s=te[i]||(te[i]=(l=>{let m=0,u=11;for(;m<l.length;)u=101*u+l.charCodeAt(m++)>>>0;return"go"+u})(i));if(!te[s]){let l=i!==e?e:(m=>{let u,f,g=[{}];for(;u=en.exec(m.replace(tn,""));)u[4]?g.shift():u[3]?(f=u[3].replace(Ke," ").trim(),g.unshift(g[0][f]=g[0][f]||{})):g[0][u[1]]=u[2].replace(Ke," ").trim();return g[0]})(e);te[s]=ne(o?{["@keyframes "+s]:l}:l,a?"":"."+s)}let c=a&&te.g;return a&&(te.g=te[s]),((l,m,u,f)=>{f?m.data=m.data.replace(f,l):m.data.indexOf(l)===-1&&(m.data=u?l+m.data:m.data+l)})(te[s],t,r,c),s},an=(e,t,a)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let c=s(a),l=c&&c.props&&c.props.className||/^go/.test(c)&&c;s=l?"."+l:c&&typeof c=="object"?c.props?"":ne(c,""):c===!1?"":c}return r+o+(s??"")},"");function _e(e){let t=this||{},a=e.call?e(t.p):e;return nn(a.unshift?a.raw?an(a,[].slice.call(arguments,1),t.p):a.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):a,Xt(t.target),t.g,t.o,t.k)}let ct,ze,Le;_e.bind({g:1});let ee=_e.bind({k:1});function rn(e,t,a,r){ne.p=t,ct=e,ze=a,Le=r}function ae(e,t){let a=this||{};return function(){let r=arguments;function o(i,s){let c=Object.assign({},i),l=c.className||o.className;a.p=Object.assign({theme:ze&&ze()},c),a.o=/go\d/.test(l),c.className=_e.apply(a,r)+(l?" "+l:"");let m=e;return e[0]&&(m=c.as||e,delete c.as),Le&&m[0]&&Le(c),ct(m,c)}return o}}var on=e=>typeof e=="function",ve=(e,t)=>on(e)?e(t):e,sn=(()=>{let e=0;return()=>(++e).toString()})(),lt=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),cn=20,Oe="default",dt=(e,t)=>{let{toastLimit:a}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,a)};case 1:return{...e,toasts:e.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case 2:let{toast:r}=t;return dt(e,{type:e.toasts.find(s=>s.id===r.id)?1:0,toast:r});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(s=>s.id===o||o===void 0?{...s,dismissed:!0,visible:!1}:s)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(s=>s.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(s=>({...s,pauseDuration:s.pauseDuration+i}))}}},me=[],ut={toasts:[],pausedAt:void 0,settings:{toastLimit:cn}},Y={},ht=(e,t=Oe)=>{Y[t]=dt(Y[t]||ut,e),me.forEach(([a,r])=>{a===t&&r(Y[t])})},mt=e=>Object.keys(Y).forEach(t=>ht(e,t)),ln=e=>Object.keys(Y).find(t=>Y[t].toasts.some(a=>a.id===e)),Se=(e=Oe)=>t=>{ht(t,e)},dn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},un=(e={},t=Oe)=>{let[a,r]=x(Y[t]||ut),o=D(Y[t]);k(()=>(o.current!==Y[t]&&r(Y[t]),me.push([t,r]),()=>{let s=me.findIndex(([c])=>c===t);s>-1&&me.splice(s,1)}),[t]);let i=a.toasts.map(s=>{var c,l,m;return{...e,...e[s.type],...s,removeDelay:s.removeDelay||((c=e[s.type])==null?void 0:c.removeDelay)||e?.removeDelay,duration:s.duration||((l=e[s.type])==null?void 0:l.duration)||e?.duration||dn[s.type],style:{...e.style,...(m=e[s.type])==null?void 0:m.style,...s.style}}});return{...a,toasts:i}},hn=(e,t="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:a?.id||sn()}),de=e=>(t,a)=>{let r=hn(t,e,a);return Se(r.toasterId||ln(r.id))({type:2,toast:r}),r.id},F=(e,t)=>de("blank")(e,t);F.error=de("error");F.success=de("success");F.loading=de("loading");F.custom=de("custom");F.dismiss=(e,t)=>{let a={type:3,toastId:e};t?Se(t)(a):mt(a)};F.dismissAll=e=>F.dismiss(void 0,e);F.remove=(e,t)=>{let a={type:4,toastId:e};t?Se(t)(a):mt(a)};F.removeAll=e=>F.remove(void 0,e);F.promise=(e,t,a)=>{let r=F.loading(t.loading,{...a,...a?.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let i=t.success?ve(t.success,o):void 0;return i?F.success(i,{id:r,...a,...a?.success}):F.dismiss(r),o}).catch(o=>{let i=t.error?ve(t.error,o):void 0;i?F.error(i,{id:r,...a,...a?.error}):F.dismiss(r)}),e};var mn=1e3,pn=(e,t="default")=>{let{toasts:a,pausedAt:r}=un(e,t),o=D(new Map).current,i=A((f,g=mn)=>{if(o.has(f))return;let b=setTimeout(()=>{o.delete(f),s({type:4,toastId:f})},g);o.set(f,b)},[]);k(()=>{if(r)return;let f=Date.now(),g=a.map(b=>{if(b.duration===1/0)return;let d=(b.duration||0)+b.pauseDuration-(f-b.createdAt);if(d<0){b.visible&&F.dismiss(b.id);return}return setTimeout(()=>F.dismiss(b.id,t),d)});return()=>{g.forEach(b=>b&&clearTimeout(b))}},[a,r,t]);let s=A(Se(t),[t]),c=A(()=>{s({type:5,time:Date.now()})},[s]),l=A((f,g)=>{s({type:1,toast:{id:f,height:g}})},[s]),m=A(()=>{r&&s({type:6,time:Date.now()})},[r,s]),u=A((f,g)=>{let{reverseOrder:b=!1,gutter:d=8,defaultPosition:p}=g||{},y=a.filter(E=>(E.position||p)===(f.position||p)&&E.height),w=y.findIndex(E=>E.id===f.id),I=y.filter((E,C)=>C<w&&E.visible).length;return y.filter(E=>E.visible).slice(...b?[I+1]:[0,I]).reduce((E,C)=>E+(C.height||0)+d,0)},[a]);return k(()=>{a.forEach(f=>{if(f.dismissed)i(f.id,f.removeDelay);else{let g=o.get(f.id);g&&(clearTimeout(g),o.delete(f.id))}})},[a,i]),{toasts:a,handlers:{updateHeight:l,startPause:c,endPause:m,calculateOffset:u}}},fn=ee`
3
+ from {
4
+ transform: scale(0) rotate(45deg);
5
+ opacity: 0;
6
+ }
7
+ to {
8
+ transform: scale(1) rotate(45deg);
9
+ opacity: 1;
10
+ }`,vn=ee`
11
+ from {
12
+ transform: scale(0);
13
+ opacity: 0;
14
+ }
15
+ to {
16
+ transform: scale(1);
17
+ opacity: 1;
18
+ }`,gn=ee`
19
+ from {
20
+ transform: scale(0) rotate(90deg);
21
+ opacity: 0;
22
+ }
23
+ to {
24
+ transform: scale(1) rotate(90deg);
25
+ opacity: 1;
26
+ }`,yn=ae("div")`
27
+ width: 20px;
28
+ opacity: 0;
29
+ height: 20px;
30
+ border-radius: 10px;
31
+ background: ${e=>e.primary||"#ff4b4b"};
32
+ position: relative;
33
+ transform: rotate(45deg);
34
+
35
+ animation: ${fn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
36
+ forwards;
37
+ animation-delay: 100ms;
38
+
39
+ &:after,
40
+ &:before {
41
+ content: '';
42
+ animation: ${vn} 0.15s ease-out forwards;
43
+ animation-delay: 150ms;
44
+ position: absolute;
45
+ border-radius: 3px;
46
+ opacity: 0;
47
+ background: ${e=>e.secondary||"#fff"};
48
+ bottom: 9px;
49
+ left: 4px;
50
+ height: 2px;
51
+ width: 12px;
52
+ }
53
+
54
+ &:before {
55
+ animation: ${gn} 0.15s ease-out forwards;
56
+ animation-delay: 180ms;
57
+ transform: rotate(90deg);
58
+ }
59
+ `,wn=ee`
60
+ from {
61
+ transform: rotate(0deg);
62
+ }
63
+ to {
64
+ transform: rotate(360deg);
65
+ }
66
+ `,bn=ae("div")`
67
+ width: 12px;
68
+ height: 12px;
69
+ box-sizing: border-box;
70
+ border: 2px solid;
71
+ border-radius: 100%;
72
+ border-color: ${e=>e.secondary||"#e0e0e0"};
73
+ border-right-color: ${e=>e.primary||"#616161"};
74
+ animation: ${wn} 1s linear infinite;
75
+ `,_n=ee`
76
+ from {
77
+ transform: scale(0) rotate(45deg);
78
+ opacity: 0;
79
+ }
80
+ to {
81
+ transform: scale(1) rotate(45deg);
82
+ opacity: 1;
83
+ }`,Sn=ee`
84
+ 0% {
85
+ height: 0;
86
+ width: 0;
87
+ opacity: 0;
88
+ }
89
+ 40% {
90
+ height: 0;
91
+ width: 6px;
92
+ opacity: 1;
93
+ }
94
+ 100% {
95
+ opacity: 1;
96
+ height: 10px;
97
+ }`,xn=ae("div")`
98
+ width: 20px;
99
+ opacity: 0;
100
+ height: 20px;
101
+ border-radius: 10px;
102
+ background: ${e=>e.primary||"#61d345"};
103
+ position: relative;
104
+ transform: rotate(45deg);
105
+
106
+ animation: ${_n} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
107
+ forwards;
108
+ animation-delay: 100ms;
109
+ &:after {
110
+ content: '';
111
+ box-sizing: border-box;
112
+ animation: ${Sn} 0.2s ease-out forwards;
113
+ opacity: 0;
114
+ animation-delay: 200ms;
115
+ position: absolute;
116
+ border-right: 2px solid;
117
+ border-bottom: 2px solid;
118
+ border-color: ${e=>e.secondary||"#fff"};
119
+ bottom: 6px;
120
+ left: 6px;
121
+ height: 10px;
122
+ width: 6px;
123
+ }
124
+ `,kn=ae("div")`
125
+ position: absolute;
126
+ `,Cn=ae("div")`
127
+ position: relative;
128
+ display: flex;
129
+ justify-content: center;
130
+ align-items: center;
131
+ min-width: 20px;
132
+ min-height: 20px;
133
+ `,Nn=ee`
134
+ from {
135
+ transform: scale(0.6);
136
+ opacity: 0.4;
137
+ }
138
+ to {
139
+ transform: scale(1);
140
+ opacity: 1;
141
+ }`,zn=ae("div")`
142
+ position: relative;
143
+ transform: scale(0.6);
144
+ opacity: 0.4;
145
+ min-width: 20px;
146
+ animation: ${Nn} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
147
+ forwards;
148
+ `,Ln=({toast:e})=>{let{icon:t,type:a,iconTheme:r}=e;return t!==void 0?typeof t=="string"?R(zn,null,t):t:a==="blank"?null:R(Cn,null,R(bn,{...r}),a!=="loading"&&R(kn,null,a==="error"?R(yn,{...r}):R(xn,{...r})))},En=e=>`
149
+ 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
150
+ 100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
151
+ `,Mn=e=>`
152
+ 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
153
+ 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
154
+ `,In="0%{opacity:0;} 100%{opacity:1;}",Tn="0%{opacity:1;} 100%{opacity:0;}",Pn=ae("div")`
155
+ display: flex;
156
+ align-items: center;
157
+ background: #fff;
158
+ color: #363636;
159
+ line-height: 1.3;
160
+ will-change: transform;
161
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
162
+ max-width: 350px;
163
+ pointer-events: auto;
164
+ padding: 8px 10px;
165
+ border-radius: 8px;
166
+ `,Bn=ae("div")`
167
+ display: flex;
168
+ justify-content: center;
169
+ margin: 4px 10px;
170
+ color: inherit;
171
+ flex: 1 1 auto;
172
+ white-space: pre-line;
173
+ `,Fn=(e,t)=>{let a=e.includes("top")?1:-1,[r,o]=lt()?[In,Tn]:[En(a),Mn(a)];return{animation:t?`${ee(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${ee(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},On=qt(({toast:e,position:t,style:a,children:r})=>{let o=e.height?Fn(e.position||t||"top-center",e.visible):{opacity:0},i=R(Ln,{toast:e}),s=R(Bn,{...e.ariaProps},ve(e.message,e));return R(Pn,{className:e.className,style:{...o,...a,...e.style}},typeof r=="function"?r({icon:i,message:s}):R(J,null,i,s))});rn(R);var An=({id:e,className:t,style:a,onHeightUpdate:r,children:o})=>{let i=A(s=>{if(s){let c=()=>{let l=s.getBoundingClientRect().height;r(e,l)};c(),new MutationObserver(c).observe(s,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return R("div",{ref:i,className:t,style:a},o)},$n=(e,t)=>{let a=e.includes("top"),r=a?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:lt()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(a?1:-1)}px)`,...r,...o}},qn=_e`
174
+ z-index: 9999;
175
+ > * {
176
+ pointer-events: auto;
177
+ }
178
+ `,ue=16,Hn=({reverseOrder:e,position:t="top-center",toastOptions:a,gutter:r,children:o,toasterId:i,containerStyle:s,containerClassName:c})=>{let{toasts:l,handlers:m}=pn(a,i);return R("div",{"data-rht-toaster":i||"",style:{position:"fixed",zIndex:9999,top:ue,left:ue,right:ue,bottom:ue,pointerEvents:"none",...s},className:c,onMouseEnter:m.startPause,onMouseLeave:m.endPause},l.map(u=>{let f=u.position||t,g=m.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),b=$n(f,g);return R(An,{id:u.id,key:u.id,onHeightUpdate:m.updateHeight,className:u.visible?qn:"",style:b},u.type==="custom"?ve(u.message,u):o?o(u):R(On,{toast:u,position:f}))}))},L=F,pt={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},je=Z.createContext&&Z.createContext(pt),Vn=["attr","size","title"];function Rn(e,t){if(e==null)return{};var a,r,o=Dn(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)a=i[r],t.indexOf(a)===-1&&{}.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}function Dn(e,t){if(e==null)return{};var a={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;a[r]=e[r]}return a}function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)({}).hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},ge.apply(null,arguments)}function Ue(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,r)}return a}function ye(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Ue(Object(a),!0).forEach(function(r){Kn(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ue(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function Kn(e,t,a){return(t=jn(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function jn(e){var t=Un(e,"string");return typeof t=="symbol"?t:t+""}function Un(e,t){if(typeof e!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var r=a.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ft(e){return e&&e.map((t,a)=>Z.createElement(t.tag,ye({key:a},t.attr),ft(t.child)))}function h(e){return t=>Z.createElement(Wn,ge({attr:ye({},e.attr)},t),ft(e.child))}function Wn(e){var t=a=>{var r=e.attr,o=e.size,i=e.title,s=Rn(e,Vn),c=o||a.size||"1em",l;return a.className&&(l=a.className),e.className&&(l=(l?l+" ":"")+e.className),Z.createElement("svg",ge({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,r,s,{className:l,style:ye(ye({color:e.color||a.color},a.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),i&&Z.createElement("title",null,i),e.children)};return je!==void 0?Z.createElement(je.Consumer,null,a=>t(a)):t(pt)}function vt(e){return h({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"},child:[]}]})(e)}function Qn(e){return h({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"},child:[]}]})(e)}function ti(e){return h({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"},child:[]}]})(e)}function ni(e){return h({attr:{viewBox:"0 0 256 512"},child:[{tag:"path",attr:{d:"M215 71l-89 89H24a24 24 0 0 0-24 24v144a24 24 0 0 0 24 24h102.06L215 441c15 15 41 4.47 41-17V88c0-21.47-26-32-41-17z"},child:[]}]})(e)}function ai(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM461.64 256l45.64-45.64c6.3-6.3 6.3-16.52 0-22.82l-22.82-22.82c-6.3-6.3-16.52-6.3-22.82 0L416 210.36l-45.64-45.64c-6.3-6.3-16.52-6.3-22.82 0l-22.82 22.82c-6.3 6.3-6.3 16.52 0 22.82L370.36 256l-45.63 45.63c-6.3 6.3-6.3 16.52 0 22.82l22.82 22.82c6.3 6.3 16.52 6.3 22.82 0L416 301.64l45.64 45.64c6.3 6.3 16.52 6.3 22.82 0l22.82-22.82c6.3-6.3 6.3-16.52 0-22.82L461.64 256z"},child:[]}]})(e)}function ri(e){return h({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"},child:[]}]})(e)}function oi(e){return h({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"},child:[]}]})(e)}function ii(e){return h({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"},child:[]}]})(e)}function si(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M64 224h13.5c24.7 56.5 80.9 96 146.5 96s121.8-39.5 146.5-96H384c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16h-13.5C345.8 39.5 289.6 0 224 0S102.2 39.5 77.5 96H64c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16zm40-88c0-22.1 21.5-40 48-40h144c26.5 0 48 17.9 48 40v24c0 53-43 96-96 96h-48c-53 0-96-43-96-96v-24zm72 72l12-36 36-12-36-12-12-36-12 36-36 12 36 12 12 36zm151.6 113.4C297.7 340.7 262.2 352 224 352s-73.7-11.3-103.6-30.6C52.9 328.5 0 385 0 454.4v9.6c0 26.5 21.5 48 48 48h80v-64c0-17.7 14.3-32 32-32h128c17.7 0 32 14.3 32 32v64h80c26.5 0 48-21.5 48-48v-9.6c0-69.4-52.9-125.9-120.4-133zM272 448c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm-96 0c-8.8 0-16 7.2-16 16v48h32v-48c0-8.8-7.2-16-16-16z"},child:[]}]})(e)}function ci(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(e)}function li(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"},child:[]}]})(e)}function Jn(e){return h({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M592 0H48A48 48 0 0 0 0 48v320a48 48 0 0 0 48 48h240v32H112a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H352v-32h240a48 48 0 0 0 48-48V48a48 48 0 0 0-48-48zm-16 352H64V64h512z"},child:[]}]})(e)}function di(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"},child:[]}]})(e)}function gt(e){return h({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function yt(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"},child:[]}]})(e)}function ui(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"},child:[]}]})(e)}function hi(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"},child:[]}]})(e)}function mi(e){return h({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"},child:[]}]})(e)}function Gn(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"},child:[]}]})(e)}function pi(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"},child:[]}]})(e)}function fi(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"},child:[]}]})(e)}function Ee(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function vi(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z"},child:[]}]})(e)}function wt(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"},child:[]}]})(e)}function gi(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"},child:[]}]})(e)}function Yn(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M330.67 263.12V173.4l-52.75-24.22C219.44 218.76 197.58 400 56 400a56 56 0 0 0 0 112c212.64 0 370.65-122.87 419.18-210.34l-37.05-38.54zm131.09-128.37C493.92 74.91 477.18 26.48 458.62 3a8 8 0 0 0-11.93-.59l-22.9 23a8.06 8.06 0 0 0-.89 10.23c6.86 10.36 17.05 35.1-1.4 72.32A142.85 142.85 0 0 0 364.34 96c-28 0-54 8.54-76.34 22.59l74.67 34.29v78.24h89.09L506.44 288c3.26-12.62 5.56-25.63 5.56-39.31a154 154 0 0 0-50.24-113.94z"},child:[]}]})(e)}function yi(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"},child:[]}]})(e)}function wi(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"},child:[]}]})(e)}function bi(e){return h({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"},child:[]}]})(e)}function _i(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(e)}function Si(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M48 48a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm448 16H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"},child:[]}]})(e)}function xi(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M61.77 401l17.5-20.15a19.92 19.92 0 0 0 5.07-14.19v-3.31C84.34 356 80.5 352 73 352H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h22.83a157.41 157.41 0 0 0-11 12.31l-5.61 7c-4 5.07-5.25 10.13-2.8 14.88l1.05 1.93c3 5.76 6.29 7.88 12.25 7.88h4.73c10.33 0 15.94 2.44 15.94 9.09 0 4.72-4.2 8.22-14.36 8.22a41.54 41.54 0 0 1-15.47-3.12c-6.49-3.88-11.74-3.5-15.6 3.12l-5.59 9.31c-3.72 6.13-3.19 11.72 2.63 15.94 7.71 4.69 20.38 9.44 37 9.44 34.16 0 48.5-22.75 48.5-44.12-.03-14.38-9.12-29.76-28.73-34.88zM496 224H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h64a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H64V40a8 8 0 0 0-8-8H32a8 8 0 0 0-7.14 4.42l-8 16A8 8 0 0 0 24 64h8v64H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8zm-3.91 160H80a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H41.32c3.29-10.29 48.34-18.68 48.34-56.44 0-29.06-25-39.56-44.47-39.56-21.36 0-33.8 10-40.46 18.75-4.37 5.59-3 10.84 2.8 15.37l8.58 6.88c5.61 4.56 11 2.47 16.12-2.44a13.44 13.44 0 0 1 9.46-3.84c3.33 0 9.28 1.56 9.28 8.75C51 248.19 0 257.31 0 304.59v4C0 316 5.08 320 12.09 320z"},child:[]}]})(e)}function ki(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"},child:[]}]})(e)}function Ci(e){return h({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"},child:[]}]})(e)}function Ni(e){return h({attr:{viewBox:"0 0 192 512"},child:[{tag:"path",attr:{d:"M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"},child:[]}]})(e)}function ke(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},child:[]}]})(e)}function zi(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"},child:[]}]})(e)}function bt(e){return h({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function Li(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"},child:[]}]})(e)}function Zn(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"},child:[]}]})(e)}function Xn(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 32C114.52 32 0 146.496 0 288v48a32 32 0 0 0 17.689 28.622l14.383 7.191C34.083 431.903 83.421 480 144 480h24c13.255 0 24-10.745 24-24V280c0-13.255-10.745-24-24-24h-24c-31.342 0-59.671 12.879-80 33.627V288c0-105.869 86.131-192 192-192s192 86.131 192 192v1.627C427.671 268.879 399.342 256 368 256h-24c-13.255 0-24 10.745-24 24v176c0 13.255 10.745 24 24 24h24c60.579 0 109.917-48.098 111.928-108.187l14.382-7.191A32 32 0 0 0 512 336v-48c0-141.479-114.496-256-256-256z"},child:[]}]})(e)}function Ei(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M500.5 231.4l-192-160C287.9 54.3 256 68.6 256 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2zm-256 0l-192-160C31.9 54.3 0 68.6 0 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2z"},child:[]}]})(e)}function Mi(e){return h({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M216 23.86c0-23.8-30.65-32.77-44.15-13.04C48 191.85 224 200 224 288c0 35.63-29.11 64.46-64.85 63.99-35.17-.45-63.15-29.77-63.15-64.94v-85.51c0-21.7-26.47-32.23-41.43-16.5C27.8 213.16 0 261.33 0 320c0 105.87 86.13 192 192 192s192-86.13 192-192c0-170.29-168-193-168-296.14z"},child:[]}]})(e)}function Ii(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"},child:[]}]})(e)}function Ti(e){return h({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},child:[]}]})(e)}function Pi(e){return h({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(e)}function Bi(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"},child:[]}]})(e)}function Fi(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"},child:[]}]})(e)}function ea(e){return h({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},child:[]}]})(e)}function ta(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},child:[]}]})(e)}function Oi(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"},child:[]}]})(e)}function Ai(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"},child:[]}]})(e)}function $i(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"},child:[]}]})(e)}function na(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"},child:[]}]})(e)}function aa(e){return h({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"},child:[]}]})(e)}function qi(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM218.1 287.7c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2.1 48 51.1 70.5 92.3 32.6zm190.4 0c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.5 56.9-172.7 32.1-172.7-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 222.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6z"},child:[]}]})(e)}function ra(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(e)}function oa(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(e)}function Hi(e){return h({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(e)}function Vi(e){return h({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"},child:[]}]})(e)}function ia(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(e)}function sa(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"},child:[]}]})(e)}function ca(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},child:[]}]})(e)}function la(e){return h({attr:{viewBox:"0 0 544 512"},child:[{tag:"path",attr:{d:"M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"},child:[]}]})(e)}function da(e){return h({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M150.94 192h33.73c11.01 0 18.61-10.83 14.86-21.18-4.93-13.58-7.55-27.98-7.55-42.82s2.62-29.24 7.55-42.82C203.29 74.83 195.68 64 184.67 64h-33.73c-7.01 0-13.46 4.49-15.41 11.23C130.64 92.21 128 109.88 128 128c0 18.12 2.64 35.79 7.54 52.76 1.94 6.74 8.39 11.24 15.4 11.24zM89.92 23.34C95.56 12.72 87.97 0 75.96 0H40.63c-6.27 0-12.14 3.59-14.74 9.31C9.4 45.54 0 85.65 0 128c0 24.75 3.12 68.33 26.69 118.86 2.62 5.63 8.42 9.14 14.61 9.14h34.84c12.02 0 19.61-12.74 13.95-23.37-49.78-93.32-16.71-178.15-.17-209.29zM614.06 9.29C611.46 3.58 605.6 0 599.33 0h-35.42c-11.98 0-19.66 12.66-14.02 23.25 18.27 34.29 48.42 119.42.28 209.23-5.72 10.68 1.8 23.52 13.91 23.52h35.23c6.27 0 12.13-3.58 14.73-9.29C630.57 210.48 640 170.36 640 128s-9.42-82.48-25.94-118.71zM489.06 64h-33.73c-11.01 0-18.61 10.83-14.86 21.18 4.93 13.58 7.55 27.98 7.55 42.82s-2.62 29.24-7.55 42.82c-3.76 10.35 3.85 21.18 14.86 21.18h33.73c7.02 0 13.46-4.49 15.41-11.24 4.9-16.97 7.53-34.64 7.53-52.76 0-18.12-2.64-35.79-7.54-52.76-1.94-6.75-8.39-11.24-15.4-11.24zm-116.3 100.12c7.05-10.29 11.2-22.71 11.2-36.12 0-35.35-28.63-64-63.96-64-35.32 0-63.96 28.65-63.96 64 0 13.41 4.15 25.83 11.2 36.12l-130.5 313.41c-3.4 8.15.46 17.52 8.61 20.92l29.51 12.31c8.15 3.4 17.52-.46 20.91-8.61L244.96 384h150.07l49.2 118.15c3.4 8.16 12.76 12.01 20.91 8.61l29.51-12.31c8.15-3.4 12-12.77 8.61-20.92l-130.5-313.41zM271.62 320L320 203.81 368.38 320h-96.76z"},child:[]}]})(e)}function Ri(e){return h({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"},child:[]}]})(e)}function ua(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"},child:[]}]})(e)}function ha(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"},child:[]}]})(e)}function ma(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"},child:[]}]})(e)}function Di(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z"},child:[]}]})(e)}function Ki(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"},child:[]}]})(e)}function ji(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"},child:[]}]})(e)}function Ui(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(e)}function Wi(e){return h({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"},child:[]}]})(e)}function Qi(e){return h({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200z"},child:[]}]})(e)}const le=new Map,pa=500,fa=(e,t,a)=>{if(!e||e.trim()==="")return"/placeholder.svg";if(e.includes("/api/image-proxy")){let s=e;if(t&&!s.includes("w=")){const c=s.includes("?")?"&":"?";s+=`${c}w=${t}`}if(a&&!s.includes("h=")){const c=s.includes("?")?"&":"?";s+=`${c}h=${a}`}return s}let r=e;r.includes("aln.youtube-anime.com")&&(r=r.replace(/https?:\/\/allanime\.day\/aln\.youtube-anime\.com/,"https://aln.youtube-anime.com"),r.includes("/images/mcovers")&&(r=r.replace("/images/mcovers","/mcovers")),r.includes("/images/images2")&&(r=r.replace("/images/images2","/images2"))),r.includes("allanime.day/s4.anilist.co")&&(r=r.replace(/https?:\/\/allanime\.day\/s4\.anilist\.co/,"https://s4.anilist.co")),r.includes("wp.youtube-anime.com/s4.anilist.co")&&(r=r.replace(/https?:\/\/wp\.youtube-anime\.com\/s4\.anilist\.co/,"https://s4.anilist.co"));const o=`${r}-${t}-${a}`;if(le.has(o))return le.get(o);let i;if(r.startsWith("https://s4.anilist.co"))i=r,t&&(i+=`${i.includes("?")?"&":"?"}w=${t}`),a&&(i+=`${i.includes("?")?"&":"?"}h=${a}`);else if(r.includes("animepahe")){i=`/api/image-proxy?url=${encodeURIComponent(r)}`;const s=localStorage.getItem("animepahe_cookie"),c=localStorage.getItem("animepahe_ua");s&&(i+=`&cookie=${encodeURIComponent(s)}`),c&&(i+=`&ua=${encodeURIComponent(c)}`)}else if(r.startsWith("http"))i=`/api/image-proxy?url=${encodeURIComponent(r)}`,t&&(i+=`&w=${t}`),a?i+=`&h=${a}`:t||(i+="&w=300");else{const c=`${r.startsWith("mcovers")||r.startsWith("images2")?"https://aln.youtube-anime.com":"https://aln.youtube-anime.com/images"}/${r}`;i=`/api/image-proxy?url=${encodeURIComponent(c)}`,t&&(i+=`&w=${t}`),a?i+=`&h=${a}`:t||(i+="&w=300")}return le.size>pa&&le.clear(),le.set(o,i),i},Ji=e=>{if(isNaN(e)||e<=0)return"00:00";const t=new Date(e*1e3).toISOString().slice(11,19);return parseInt(t.slice(0,2),10)>0?t:t.slice(3)};function Gi(e){return e?e.replace(/<[^>]*>?/gm,"").replace(/&nbsp;/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").trim():""}const _t=ie(void 0),va=()=>{const e=se(_t);if(e===void 0)throw new Error("useTitlePreference must be used within a TitlePreferenceProvider");return e},Me={lan:new Set,animepahe:new Set,jasmr:new Set};function Ce(e){for(const t of[...Me[e]])try{t()}catch(a){console.error(`auth-bus listener failed (${e}):`,a)}}function St(e,t){return Me[e].add(t),()=>{Me[e].delete(t)}}const $=async e=>{const t={"Content-Type":"application/json"};if(e.startsWith("/")||typeof window<"u"&&e.startsWith(window.location.origin)){const o=localStorage.getItem("animepahe_ua"),i=localStorage.getItem("animepahe_cookie"),s=localStorage.getItem("jasmr_ua"),c=localStorage.getItem("jasmr_cookie");o&&(t["x-animepahe-ua"]=o),i&&(t["x-animepahe-cookie"]=i),s&&(t["x-jasmr-ua"]=s),c&&(t["x-jasmr-cookie"]=c)}const r=await fetch(e,{headers:t});if(!r.ok){const o=await r.text().catch(()=>"");let i={};try{i=JSON.parse(o)}catch{}const s=typeof i.error=="string"?i.error:"";throw r.status===403&&s==="AUTH_REQUIRED"&&i.provider==="animepahe"&&Ce("animepahe"),r.status===403&&s==="AUTH_REQUIRED"&&i.provider==="jasmr"&&Ce("jasmr"),r.status===401&&s==="LAN_AUTH_REQUIRED"&&Ce("lan"),new Error(s||`Failed to fetch from ${e}`)}return r.json()},Yi=()=>H({queryKey:["spotlight"],queryFn:()=>$("/api/spotlight"),staleTime:1e3*60*5}),Zi=(e="TV")=>H({queryKey:["batchedHome",e],queryFn:()=>$(`/api/home?format=${e}`),staleTime:1e3*60*5}),Xi=(e="TRENDING_DESC",t=10)=>Pe({queryKey:["trendingList",e,t],queryFn:({pageParam:a=1})=>$(`/api/popular-list?sort=${e}&page=${a}&size=${t}`),initialPageParam:1,getNextPageParam:(a,r)=>a.length>=t?r.length+1:void 0}),es=(e="TV",t=12)=>Pe({queryKey:["latestReleases",e,t],queryFn:({pageParam:a=1})=>$(`/api/latest-releases?format=${e}&page=${a}&size=${t}`),initialPageParam:1,getNextPageParam:(a,r)=>a.length>=t?r.length+1:void 0}),ts=(e,t="TV")=>H({queryKey:["currentSeason",e,t],queryFn:()=>$(`/api/seasonal?page=${e}&format=${t}&size=14`)}),ns=(e,t,a=14)=>H({queryKey:["searchAnime",e,t,a],queryFn:async()=>{const r=new URLSearchParams(e);return r.set("page",t.toString()),r.set("limit",a.toString()),$(`/api/search?${r.toString()}`)},enabled:e!=null}),as=()=>H({queryKey:["queue"],queryFn:()=>$("/api/queue")}),ga=()=>{const e=q();return W({mutationFn:async t=>{const a=await fetch("/api/queue/add",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok)throw new Error("Failed to update queue");return a.json()},onSuccess:t=>{t.queued?L.success("Added to queue"):L.success("Removed from queue"),e.invalidateQueries({queryKey:["queue"]}),e.invalidateQueries({queryKey:["queue-remaining"]})},onError:t=>{L.error(`Failed to update queue: ${t.message}`)}})},rs=()=>{const e=q();return W({mutationFn:async t=>{if(!(await fetch("/api/queue/remove",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).ok)throw new Error("Failed to remove queue item")},onSuccess:()=>{L.success("Removed from queue"),e.invalidateQueries({queryKey:["queue"]}),e.invalidateQueries({queryKey:["queue-remaining"]}),e.invalidateQueries({queryKey:["allContinueWatching"]})},onError:t=>{L.error(`Failed to remove: ${t.message}`)}})},os=(e,t=!0)=>H({queryKey:["queue-remaining",e],queryFn:()=>$(`/api/queue/remaining/${e}`),enabled:!!e&&t,staleTime:1e3*60}),is=()=>{const e=q();return W({mutationFn:async({episodeNumbers:t,...a})=>{const r=await fetch("/api/queue/batch",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...a,episodeNumbers:t})});if(!r.ok)throw new Error("Failed to update queue");return r.json()},onSuccess:(t,a)=>{const r=t.added??a.episodeNumbers.length;L.success(`${r} ${r===1?"episode":"episodes"} added to queue`),e.invalidateQueries({queryKey:["queue"]}),e.invalidateQueries({queryKey:["queue-remaining"]})},onError:t=>{L.error(`Failed to update queue: ${t.message}`)}})},ss=()=>{const e=q();return W({mutationFn:async({showId:t,episodeNumbers:a})=>{if(!(await fetch("/api/queue/remove-many",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({showId:t,episodeNumbers:a})})).ok)throw new Error("Failed to remove queue items")},onSuccess:()=>{L.success("Removed from queue"),e.invalidateQueries({queryKey:["queue"]}),e.invalidateQueries({queryKey:["queue-remaining"]}),e.invalidateQueries({queryKey:["allContinueWatching"]})},onError:t=>{L.error(`Failed to remove: ${t.message}`)}})},cs=()=>{const e=q();return W({mutationFn:async()=>{if(!(await fetch("/api/queue/clear",{method:"POST"})).ok)throw new Error("Failed to clear queue")},onSuccess:()=>{L.success("Queue cleared"),e.invalidateQueries({queryKey:["queue"]}),e.invalidateQueries({queryKey:["queue-remaining"]}),e.invalidateQueries({queryKey:["allContinueWatching"]})},onError:t=>{L.error(`Failed to clear queue: ${t.message}`)}})},ls=()=>{const e=q();return W({mutationFn:async t=>{if(!(await fetch("/api/queue/reorder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:t})})).ok)throw new Error("Failed to reorder queue")},onMutate:async t=>{await e.cancelQueries({queryKey:["queue"]});const a=e.getQueryData(["queue"]);return e.setQueryData(["queue"],r=>{if(!r)return r;const o=new Map(r.map(i=>[i.id,i]));return t.map((i,s)=>{const c=o.get(i.id);return c?{...c,queue_order:s}:void 0}).filter(i=>!!i)}),{previousQueue:a}},onError:(t,a,r)=>{r?.previousQueue&&e.setQueryData(["queue"],r.previousQueue)},onSettled:()=>{e.invalidateQueries({queryKey:["queue"]})}})},ds=(e,t="",a,r=14)=>H({queryKey:["watchlist",e,t,a,r],queryFn:async()=>{const o=new URLSearchParams(t);return o.set("status",e),o.set("page",String(a)),o.set("limit",String(r)),$(`/api/watchlist?${o.toString()}`)}}),us=(e="")=>Pe({queryKey:["allContinueWatching",e],queryFn:async({pageParam:t=1})=>{const a=new URLSearchParams(e);return a.set("page",String(t)),a.set("limit","14"),await $(`/api/continue-watching/all?${a.toString()}`)},initialPageParam:1,getNextPageParam:t=>{if(!(t.data.length===0||t.page*t.limit>=t.total))return t.page+1},select:t=>({...t,pages:t.pages.flatMap(a=>a.data)})}),hs=(e="",t,a=14)=>H({queryKey:["allContinueWatching",e,t,a],queryFn:async()=>{const r=new URLSearchParams(e);return r.set("page",String(t)),r.set("limit",String(a)),$(`/api/continue-watching/all?${r.toString()}`)}}),ms=()=>{const e=q();return W({mutationFn:async t=>{if(!(await fetch("/api/watchlist/remove",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:t})})).ok)throw new Error("Failed to remove from watchlist")},onSuccess:()=>{L.success("Removed from watchlist"),e.invalidateQueries({queryKey:["watchlist"]})},onError:t=>{L.error(`Failed to remove: ${t.message}`)}})},ps=()=>{const e=q();return W({mutationFn:async({ids:t,status:a})=>{const r=await fetch("/api/watchlist/batch-status",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:t,status:a})});if(!r.ok)throw new Error("Failed to update watchlist statuses");return r.json()},onSuccess:t=>{L.success(`Status updated for ${t.updated??0} items`),e.invalidateQueries({queryKey:["watchlist"]}),e.invalidateQueries({queryKey:["allContinueWatching"]})},onError:t=>{L.error(`Failed to update statuses: ${t.message}`)}})},fs=()=>{const e=q();return W({mutationFn:async t=>{const a=await fetch("/api/watchlist/remove-many",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:t})});if(!a.ok)throw new Error("Failed to remove from watchlist");return a.json()},onSuccess:t=>{const a=t.removed??0;L.success(`Removed ${a} ${a===1?"item":"items"} from watchlist`),e.invalidateQueries({queryKey:["watchlist"]}),e.invalidateQueries({queryKey:["allContinueWatching"]})},onError:t=>{L.error(`Failed to remove: ${t.message}`)}})},vs=()=>{const e=q();return W({mutationFn:async t=>{const a=await fetch("/api/continue-watching/remove-many",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({ids:t})});if(!a.ok)throw new Error("Failed to remove from continue watching");return a.json()},onSuccess:t=>{const a=t.removed??0;L.success(`Removed ${a} ${a===1?"item":"items"} from continue watching`),e.invalidateQueries({queryKey:["allContinueWatching"]})},onError:t=>{L.error(`Failed to remove: ${t.message}`)}})},xt=(e=!0)=>H({queryKey:["notifications"],queryFn:()=>$("/api/notifications"),enabled:e,refetchInterval:3e4}),kt=(e=!0)=>H({queryKey:["system-notifications"],queryFn:()=>$("/api/system-notifications"),enabled:e,refetchInterval:3e4}),Ct=(e=!0)=>H({queryKey:["discovery-status"],queryFn:()=>$("/api/discovery/status"),enabled:e,refetchInterval:t=>t.state.data?.running?2e3:!1}),ya=()=>{const e=q();return W({mutationFn:async()=>{const t=await fetch("/api/discovery/refresh",{method:"POST"});if(!t.ok)throw new Error("Failed to trigger discovery");return t.json()},onSuccess:t=>{e.setQueryData(["discovery-status"],{running:t.running,state:t.state,total:t.total,done:t.done,lastRunAt:t.lastRunAt}),e.invalidateQueries({queryKey:["notifications"]})},onError:()=>{e.invalidateQueries({queryKey:["discovery-status"]})}})},wa=()=>{const e=q();return W({mutationFn:async({showId:t,episodeNumber:a})=>{if(!(await fetch("/api/notifications/dismiss",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({showId:t,episodeNumber:a})})).ok)throw new Error("Failed to dismiss notification")},onSuccess:()=>{e.invalidateQueries({queryKey:["notifications"]})}})},ba=()=>{const e=q();return W({mutationFn:async t=>{if(!(await fetch("/api/notifications/clear-all",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({showId:t})})).ok)throw new Error("Failed to clear notifications")},onSuccess:()=>{e.invalidateQueries({queryKey:["notifications"]})}})},gs=()=>H({queryKey:["thisWeekSchedule"],queryFn:()=>$("/api/continue-watching/this-week")}),ys=()=>H({queryKey:["genresAndStudios"],queryFn:()=>$("/api/genres-and-tags"),staleTime:1e3*60*60}),ws=()=>H({queryKey:["genreCards"],queryFn:()=>$("/api/insights/genre-cards")}),_a="_container_11ieo_1",Sa="_bellBtn_11ieo_7",xa="_badge_11ieo_56",ka="_dropdown_11ieo_96",Ca="_dropdownHeader_11ieo_127",Na="_clearAllBtn_11ieo_141",za="_discoveryStatusRow_11ieo_156",La="_spinIcon_11ieo_167",Ea="_list_11ieo_182",Ma="_item_11ieo_196",Ia="_thumbnail_11ieo_211",Ta="_itemInfo_11ieo_220",Pa="_itemTitle_11ieo_225",Ba="_itemMeta_11ieo_236",Fa="_systemItemMeta_11ieo_246",Oa="_removeItem_11ieo_263",Aa="_queueItem_11ieo_293",$a="_emptyState_11ieo_297",z={container:_a,bellBtn:Sa,badge:xa,dropdown:ka,dropdownHeader:Ca,clearAllBtn:Na,discoveryStatusRow:za,spinIcon:La,list:Ea,item:Ma,thumbnail:Ia,itemInfo:Ta,itemTitle:Pa,itemMeta:Ba,systemItemMeta:Fa,removeItem:Oa,queueItem:Aa,emptyState:$a},qa=({notification:e})=>{const t=wa(),a=ga(),[r,o]=Z.useState(!1),i=u=>{u.preventDefault(),u.stopPropagation(),t.mutate({showId:e.showId,episodeNumber:e.episodeNumber})},s=()=>{t.mutate({showId:e.showId,episodeNumber:e.episodeNumber})},c=u=>{u.preventDefault(),u.stopPropagation(),o(!0),a.mutate({showId:e.showId,episodeNumber:e.episodeNumber,showName:e.name,showThumbnail:e.thumbnail,nativeName:e.nativeName,englishName:e.englishName}),t.mutate({showId:e.showId,episodeNumber:e.episodeNumber}),window.setTimeout(()=>o(!1),1e3)},{titlePreference:l}=va(),m=l==="nativeName"?e.nativeName||e.name:l==="englishName"&&e.englishName||e.name;return n(U,{to:`/watch/${e.showId}/${e.episodeNumber}`,className:z.item,onClick:s,children:[n("img",{src:fa(e.thumbnail,48,64),alt:e.name,className:z.thumbnail}),n("div",{className:z.itemInfo,children:[n("span",{className:z.itemTitle,children:m}),n("span",{className:z.itemMeta,children:["New Episode ",e.episodeNumber]})]}),n("button",{className:`${z.removeItem} ${z.queueItem}`,onClick:c,"aria-label":"Add notification to queue",children:r?n(sa,{}):n(wt,{})}),n("button",{className:z.removeItem,onClick:i,"aria-label":"Remove notification",children:n(gt,{})})]})};function Ne({width:e="100%",height:t="1em",variant:a="rectangular",className:r=""}){return n("div",{className:`skeleton skeleton-${a} ${r}`,style:{width:e,height:t}})}const Ha=({count:e=3})=>n(J,{children:Array.from({length:e}).map((t,a)=>n("div",{className:z.item,style:{borderBottom:"1px solid var(--border-primary)",pointerEvents:"none"},children:[n("div",{className:z.thumbnail,style:{overflow:"hidden"},children:n(Ne,{width:"100%",height:"100%",variant:"rectangular"})}),n("div",{className:z.itemInfo,children:[n(Ne,{width:"80%",height:"1rem",variant:"text",className:"mb-2",style:{marginBottom:"4px"}}),n(Ne,{width:"40%",height:"0.7rem",variant:"rectangular",style:{borderRadius:"var(--radius-sm)"}})]})]},a))}),Va=()=>{const{data:e=[],isLoading:t}=xt(),{data:a=[]}=kt(),{data:r}=Ct(),o=ba(),i=q(),[s,c]=x(null);k(()=>{i.invalidateQueries({queryKey:["notifications"]})},[i]);const l=()=>{o.mutate(void 0)},m=a.find(u=>u.id===s)??null;return n("div",{className:z.dropdown,children:[n("div",{className:z.dropdownHeader,children:[n("h4",{children:"Notifications"}),e.length>0&&n("button",{className:z.clearAllBtn,onClick:l,children:"Clear All"})]}),n("div",{className:z.discoveryStatusRow,children:r?.running?n(J,{children:[n(Gn,{className:z.spinIcon}),n("span",{children:r.total>0?`Checking ${Math.min(r.done,r.total)}/${r.total} shows...`:"Checking for new episodes..."})]}):r?.state==="complete"?n(J,{children:[n(ca,{size:12}),n("span",{children:["Discovery complete — checked ",r.total," ",r.total===1?"show":"shows"]})]}):r?.state==="empty"?n(J,{children:[n(ke,{size:12}),n("span",{children:"No shows set to Watching — nothing to check"})]}):r?.state==="error"?n(J,{children:[n(ta,{size:12}),n("span",{children:"Last check failed — will retry automatically"})]}):n(J,{children:[n(yt,{size:11}),n("span",{children:r?.lastRunAt?`Last checked ${Math.max(1,Math.round((Date.now()-r.lastRunAt)/1e3))}s ago`:"Auto-checks every few minutes"})]})}),n("div",{className:z.list,children:t&&a.length===0?n(Ha,{count:4}):n(J,{children:[a.map(u=>n("div",{className:z.item,children:[n("div",{className:z.thumbnail,style:{background:"transparent",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:0,boxShadow:"none"},children:n(ke,{size:32,color:"#6c9fff"})}),n("div",{className:z.itemInfo,children:[n("span",{className:z.itemTitle,children:u.title}),n("button",{type:"button",className:z.systemItemMeta,onClick:()=>c(u.id),title:"View full status",children:u.message.length>40?u.message.slice(0,40)+"…":u.message})]}),n("button",{className:z.removeItem,disabled:!0,style:{opacity:.3,cursor:"not-allowed"},"aria-hidden":"true",children:n(wt,{})}),n("button",{className:z.removeItem,disabled:!0,style:{opacity:.3,cursor:"not-allowed"},"aria-hidden":"true",children:n(gt,{})})]},u.id)),a.length>0&&e.length>0&&n("div",{className:z.notificationDivider}),e.length>0?e.map(u=>n(qa,{notification:u},u.id)):!t&&a.length===0&&n("div",{className:z.emptyState,children:"No new notifications"})]})}),m&&Be(n("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0, 0, 0, 0.6)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999,padding:"1rem",backdropFilter:"blur(3px)"},onClick:()=>c(null),children:n("div",{style:{backgroundColor:"var(--bg-secondary)",padding:"1.5rem",borderRadius:"var(--radius-lg)",maxWidth:"420px",width:"100%",boxShadow:"var(--shadow-xl)",border:"1px solid var(--border-primary)"},onClick:u=>u.stopPropagation(),children:[n("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem",marginBottom:"1rem"},children:[n(ke,{color:"#6c9fff"}),n("span",{style:{color:"#fff",fontWeight:600,fontSize:"1rem"},children:m.title})]}),n("p",{style:{color:"var(--text-secondary)",marginBottom:"1.5rem",lineHeight:1.5},children:m.message}),n("div",{style:{display:"flex",justifyContent:"flex-end"},children:n("button",{type:"button",onClick:()=>c(null),style:{background:"var(--primary-color)",color:"#fff",border:"none",padding:"0.5rem 1rem",borderRadius:"var(--radius-md)",cursor:"pointer",fontWeight:600},children:"OK"})})]})}),document.body)]})},Ra=()=>{const[e,t]=x(!1),a=D(null),r=q(),o=ya(),{data:i=[]}=xt(),{data:s=[]}=kt(),{data:c}=Ct(),l=i.length+s.length,m=l>5?"5+":l,u=D(!1);k(()=>{const g=b=>{a.current&&!a.current.contains(b.target)&&t(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]),k(()=>{const g=!!c?.running;u.current&&!g&&(r.invalidateQueries({queryKey:["notifications"]}),r.invalidateQueries({queryKey:["discovery-status"]})),u.current=g},[c?.running,r]);const f=()=>{const g=!e;t(g),g&&o.mutate()};return n("div",{className:z.container,ref:a,children:[n("button",{className:z.bellBtn,onClick:f,"aria-label":"Notifications",children:[n(ha,{}),l>0&&n("span",{className:z.badge,children:m})]}),e&&n(Va,{})]})},Nt=ie(void 0),zt=()=>{const e=se(Nt);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},bs=[{id:"iris",label:"Taro (default)",blurb:"Deep purple",swatch:"#7d6df0"},{id:"mochi",label:"Mochi",blurb:"Monochrome pearl",swatch:"#f0f0f0"},{id:"sakura",label:"Sakura",blurb:"Soft pink",swatch:"#e0b0e0"}],We={iris:"/logo.png",mochi:"/logo-mochi.png",sakura:"/logo-sakura.png"},Lt=({className:e})=>{const{theme:t}=zt(),a=We[t]||We.iris;return n("img",{src:a,alt:"dango",className:e,style:{height:"var(--logo-height, 75px)",width:"auto",display:"block",objectFit:"contain"}})},Et=ie(void 0),Ae=()=>{const e=se(Et);if(e===void 0)throw new Error("useSidebar must be used within a SidebarProvider");return e},Ie="virtual-keyboard:hide",Qe="virtual-keyboard:enabled-change",Mt="virtual_keyboard_enabled",Da=!1;function Je(){const e=localStorage.getItem(Mt);return e===null?Da:e==="true"}const Ge=e=>e instanceof HTMLInputElement&&e.type==="text"&&!e.disabled&&!e.readOnly;function Ka(){window.dispatchEvent(new CustomEvent(Ie))}function ja(){const[e,t]=x(!1),[a,r]=x(Je),o=D(null);return k(()=>{const i=u=>{a&&Ge(u.target)&&(o.current=u.target,t(!0))},s=u=>{u.target===o.current&&window.setTimeout(()=>{if(Ge(document.activeElement)){o.current=document.activeElement,t(!0);return}o.current=null,t(!1)},0)},c=()=>{o.current=null,t(!1)},l=u=>{if(u.key!==Mt)return;const f=u.newValue==="true";r(f),f||c()},m=()=>{const u=Je();r(u),u||c()};return document.addEventListener("focusin",i),document.addEventListener("focusout",s),window.addEventListener(Ie,c),window.addEventListener("storage",l),window.addEventListener(Qe,m),()=>{document.removeEventListener("focusin",i),document.removeEventListener("focusout",s),window.removeEventListener(Ie,c),window.removeEventListener("storage",l),window.removeEventListener(Qe,m)}},[a]),{activeInputRef:o,isVisible:a&&e,hide:()=>t(!1)}}const Ua="_header_1wtia_1",Wa="_hidden_1wtia_21",Qa="_scrolled_1wtia_25",Ja="_logo_1wtia_31",Ga="_headerInner_1wtia_44",Ya="_leftSection_1wtia_54",Za="_desktopNav_1wtia_60",Xa="_navLink_1wtia_67",er="_navLinkActive_1wtia_83",tr="_rightSection_1wtia_102",nr="_searchWrapper_1wtia_108",ar="_searchInput_1wtia_114",rr="_searchButton_1wtia_146",or="_searchIcon_1wtia_170",ir="_profileBtn_1wtia_180",sr="_profileImg_1wtia_213",cr="_hamburgerBtn_1wtia_219",lr="_mobileSearchBar_1wtia_247",dr="_mobileSearchInner_1wtia_283",ur="_mobileSearchIcon_1wtia_293",hr="_mobileSearchInput_1wtia_300",M={header:Ua,hidden:Wa,scrolled:Qa,logo:Ja,headerInner:Ga,leftSection:Ya,desktopNav:Za,navLink:Xa,navLinkActive:er,rightSection:tr,searchWrapper:nr,searchInput:ar,searchButton:rr,searchIcon:or,profileBtn:ir,profileImg:sr,hamburgerBtn:cr,mobileSearchBar:lr,mobileSearchInner:dr,mobileSearchIcon:ur,mobileSearchInput:hr},mr=async()=>{const e=await fetch("/api/auth/settings/sync");if(!e.ok)return null;const a=(await e.json()).actualActiveProvider;if(a==="github"){const r=await fetch("/api/auth/github/status");if(r.ok){const o=await r.json();if(o.authenticated&&o.user)return{name:o.user.name||o.user.login,picture:o.user.avatarUrl,provider:"github"}}}if(a==="google"){const r=await fetch("/api/auth/user");if(r.ok){const o=await r.json();if(o)return{name:o.name,picture:o.picture,email:o.email,provider:"google"}}}return null},pr=()=>{const{toggleSidebar:e}=Ae(),[t,a]=x(""),[r,o]=x(!0),[i,s]=x(!1),[c,l]=x(!0),[m,u]=x(!1),f=Ht(),g=Fe(),b=D(null),d=D(!1),p=D(null),y=D(null),w=D(null),{data:I}=H({queryKey:["sync-profile"],queryFn:mr,staleTime:3e4});k(()=>{const S=()=>{b.current&&(window.clearTimeout(b.current),b.current=null)},re=()=>{d.current||(d.current=!0,p.current=requestAnimationFrame(()=>{d.current=!1,p.current=null;const X=window.scrollY<=10;l(ce=>ce===X?ce:X),o(ce=>ce||!0),S(),X||(b.current=window.setTimeout(()=>{o(!1)},2500))}))},Ve=X=>{(X.metaKey||X.ctrlKey)&&X.key==="k"?(X.preventDefault(),E.current?.focus()):X.key==="Escape"&&document.activeElement===E.current&&E.current?.blur()};return window.addEventListener("scroll",re,{passive:!0}),window.addEventListener("keydown",Ve),()=>{window.removeEventListener("scroll",re),window.removeEventListener("keydown",Ve),S(),p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),d.current=!1}},[i]);const E=Z.useRef(null),C=()=>window.innerWidth<=1024,V=()=>{C()?(u(!0),setTimeout(()=>w.current?.focus(),50)):document.activeElement===E.current&&t.trim()?_():E.current?.focus()},v=S=>{y.current?.contains(S.relatedTarget)||u(!1)},_=S=>{Ka(),t.trim()&&f(`/search?query=${encodeURIComponent(t.trim())}`)};return n(J,{children:[n("header",{className:`${M.header} ${r?"":M.hidden} ${c?"":M.scrolled}`,children:n("div",{className:M.headerInner,children:[n("div",{className:M.leftSection,children:[n("button",{className:M.hamburgerBtn,onClick:e,"aria-label":"Menu",children:n(ma,{})}),n(U,{to:"/",className:M.logo,"aria-label":"Ani-Web Home",children:n(Lt,{})}),n("nav",{className:M.desktopNav,children:[n(U,{to:"/",className:`${M.navLink} ${g.pathname==="/"?M.navLinkActive:""}`,children:"Home"}),n(U,{to:"/watchlist",className:`${M.navLink} ${g.pathname==="/watchlist"?M.navLinkActive:""}`,children:"Watchlist"}),n(U,{to:"/insights",className:`${M.navLink} ${g.pathname==="/insights"?M.navLinkActive:""}`,children:"Insights"}),n(U,{to:"/settings",className:`${M.navLink} ${g.pathname.startsWith("/settings")?M.navLinkActive:""}`,children:"Settings"})]})]}),n("div",{className:M.rightSection,children:[n("div",{className:M.searchWrapper,children:[n("input",{ref:E,type:"text","data-virtual-keyboard":"true",className:M.searchInput,placeholder:"Search anime...",value:t,onChange:S=>a(S.target.value),onFocus:()=>s(!0),onBlur:()=>s(!1),onKeyDown:S=>{S.key==="Enter"&&_()}}),n("button",{type:"button",className:M.searchButton,"aria-label":"Search",onMouseDown:S=>S.preventDefault(),onClick:V,children:n(Ee,{className:M.searchIcon})})]}),n(Ra,{}),n(U,{to:"/settings?tab=sync",className:M.profileBtn,"aria-label":"Sync settings",children:I?.picture?n("img",{src:I.picture,alt:I.name,className:M.profileImg,referrerPolicy:"no-referrer"}):I?.provider==="github"?n(vt,{}):n(aa,{})})]})]})}),m&&n("div",{className:M.mobileSearchBar,ref:y,onBlur:v,children:n("div",{className:M.mobileSearchInner,children:[n(Ee,{className:M.mobileSearchIcon}),n("input",{ref:w,type:"text","data-virtual-keyboard":"true",className:M.mobileSearchInput,placeholder:"Search anime...",value:t,onChange:S=>a(S.target.value),onKeyDown:S=>{S.key==="Enter"?(_(),u(!1)):S.key==="Escape"&&u(!1)}})]})})]})},fr="_sidebar_4yyki_1",vr="_open_4yyki_20",gr="_sidebarHeader_4yyki_25",yr="_closeBtn_4yyki_33",wr="_logo_4yyki_57",br="_navSection_4yyki_69",_r="_navLink_4yyki_75",Sr="_active_4yyki_108",xr="_overlay_4yyki_118",kr="_versionInfo_4yyki_138",G={sidebar:fr,open:vr,sidebarHeader:gr,closeBtn:yr,logo:wr,navSection:br,navLink:_r,active:Sr,overlay:xr,versionInfo:kr},Cr="dango-client",Nr="3.0.3",zr="module",Lr={node:">=22.5.0"},Er={start:"vite",dev:"vite",build:"tsc && vite build",lint:"eslint .",test:"vitest run",preview:"vite preview","start:prod":"vite preview",format:"prettier --write ."},Mr={"@floating-ui/react":"^0.27.20","@tanstack/react-query":"^5.99.2","anime4k-webgpu-async":"^2.0.0","embla-carousel-react":"^8.6.0","hls.js":"^1.5.13",nprogress:"^0.2.0",preact:"^10.29.1","react-hot-toast":"^2.6.0","react-icons":"^5.6.0","react-router":"^8.3.0","react-simple-maps":"^5.0.3",uuid:"^14.0.0"},Ir={"@preact/preset-vite":"^2.10.5","@types/nprogress":"^0.2.3","@types/uuid":"^10.0.0","@webgpu/types":"^0.1.72","eslint-plugin-react-hooks":"^7.1.1","eslint-plugin-react-refresh":"^0.5.2",vite:"^7.3.1",vitest:"^5.0.0"},$e={name:Cr,private:!0,version:Nr,type:zr,engines:Lr,scripts:Er,dependencies:Mr,devDependencies:Ir},Tr=()=>{const{isOpen:e,setIsOpen:t}=Ae(),[a,r]=x(()=>localStorage.getItem("agreedToViewMature")==="true");k(()=>{const s=()=>r(localStorage.getItem("agreedToViewMature")==="true");return window.addEventListener("storage",s),window.addEventListener("focus",s),()=>{window.removeEventListener("storage",s),window.removeEventListener("focus",s)}},[]);const o=()=>{t(!1)},i=[{to:"/",icon:n(bt,{}),label:"Home"},{to:"/search",icon:n(Ee,{}),label:"Search"},{to:"/watchlist",icon:n(ra,{}),label:"Watchlist"},{to:"/insights",icon:n(la,{}),label:"Insights"},{to:"/trackers",icon:n(yt,{}),label:"Trackers"},{to:"/asmr",icon:n(Xn,{}),label:"ASMR"},{to:"/manga",icon:n(ua,{}),label:"Manga"},{to:"/radio",icon:n(da,{}),label:"Radio"},{to:"/tv",icon:n(Jn,{}),label:"TV & Movies"},...a?[{to:"/mature",icon:n(Yn,{}),label:"Mature"}]:[],{to:"/settings",icon:n(na,{}),label:"Settings"}];return n(J,{children:[n("aside",{className:`${G.sidebar} ${e?G.open:""} sidebar`,children:[n("div",{className:G.sidebarHeader,children:[n("button",{className:G.closeBtn,onClick:()=>t(!1),"aria-label":"Close menu",children:"×"}),n(U,{to:"/",className:G.logo,onClick:o,children:n(Lt,{})})]}),n("nav",{className:G.navSection,children:i.map(s=>n(Vt,{to:s.to,className:({isActive:c})=>`${G.navLink} ${c?G.active:""}`,onClick:o,end:s.to==="/",children:[s.icon,n("span",{children:s.label})]},s.to))}),n("div",{className:G.versionInfo,children:["v",$e.version]})]}),e&&n("div",{className:G.overlay,onClick:()=>t(!1),"aria-label":"Close sidebar"})]})},Pr="_footer_7xapk_1",Br="_footerInner_7xapk_19",Fr="_brandSection_7xapk_31",Or="_logoRow_7xapk_43",Ar="_logoText_7xapk_63",$r="_brandMeta_7xapk_69",qr="_brandTagline_7xapk_78",Hr="_statusPill_7xapk_85",Vr="_statusDot_7xapk_98",Rr="_linksGrid_7xapk_106",Dr="_linkColumn_7xapk_114",Kr="_columnTitle_7xapk_120",jr="_bottomBar_7xapk_144",Ur="_copyright_7xapk_154",Wr="_brand_7xapk_31",Qr="_heartIcon_7xapk_170",Jr="_backToTop_7xapk_175",P={footer:Pr,footerInner:Br,brandSection:Fr,logoRow:Or,logoText:Ar,brandMeta:$r,brandTagline:qr,statusPill:Hr,statusDot:Vr,linksGrid:Rr,linkColumn:Dr,columnTitle:Kr,bottomBar:jr,copyright:Ur,brand:Wr,heartIcon:Qr,backToTop:Jr},Ye={iris:"/logo.png",mochi:"/logo-mochi.png",sakura:"/logo-sakura.png"},Gr=()=>{const{theme:e}=zt(),t=Ye[e]||Ye.iris,a=new Date().getFullYear(),r=()=>{window.scrollTo({top:0,behavior:"smooth"})};return n("footer",{className:P.footer,children:[n("div",{className:P.footerInner,children:[n("div",{className:P.brandSection,children:[n("div",{className:P.logoRow,children:n("img",{src:t,className:P.logoText,alt:"dango"})}),n("div",{className:P.brandMeta,children:[n("div",{className:P.statusPill,children:[n("span",{className:P.statusDot}),n("span",{children:["v",$e.version]})]}),n("p",{className:P.brandTagline,children:"Fast, local anime streaming."})]})]}),n("div",{className:P.linksGrid,children:[n("div",{className:P.linkColumn,children:[n("h4",{className:P.columnTitle,children:"Navigation"}),n(U,{to:"/",children:"Home"}),n(U,{to:"/watchlist",children:"Watchlist"}),n(U,{to:"/settings",children:"Settings"})]}),n("div",{className:P.linkColumn,children:[n("h4",{className:P.columnTitle,children:"Features"}),n(U,{to:"/search",children:"Search Anime"}),n(U,{to:"/trackers",children:"Trackers"}),n(U,{to:"/insights",children:"Insights"})]}),n("div",{className:P.linkColumn,children:[n("h4",{className:P.columnTitle,children:"Community"}),n("a",{href:"https://discord.gg/2FTSPXCsvn",target:"_blank",rel:"noopener noreferrer",children:[n(Qn,{style:{marginRight:"6px"}})," Discord"]}),n("a",{href:"https://github.com/serifpersia/dango",target:"_blank",rel:"noopener noreferrer",children:[n(vt,{style:{marginRight:"6px"}})," GitHub"]})]}),n("div",{className:P.linkColumn,children:[n("h4",{className:P.columnTitle,children:"Project"}),n("a",{href:"https://github.com/serifpersia/dango/releases",target:"_blank",rel:"noopener noreferrer",children:"Releases"}),n("a",{href:"https://github.com/serifpersia/dango/issues",target:"_blank",rel:"noopener noreferrer",children:"Feedback"})]})]})]}),n("div",{className:P.bottomBar,children:[n("p",{className:P.copyright,children:["© ",a," ",n("span",{className:P.brand,children:"dango"})," • Crafted with"," ",n(Zn,{className:P.heartIcon})," by"," ",n("a",{href:"https://github.com/serifpersia",target:"_blank",rel:"noopener noreferrer",children:"serifpersia"})]}),n("button",{className:P.backToTop,onClick:r,"aria-label":"Back to top",children:[n(oa,{size:14}),n("span",{children:"Top"})]})]})]})},O=[];for(let e=0;e<256;++e)O.push((e+256).toString(16).slice(1));function Yr(e,t=0){return(O[e[t+0]]+O[e[t+1]]+O[e[t+2]]+O[e[t+3]]+"-"+O[e[t+4]]+O[e[t+5]]+"-"+O[e[t+6]]+O[e[t+7]]+"-"+O[e[t+8]]+O[e[t+9]]+"-"+O[e[t+10]]+O[e[t+11]]+O[e[t+12]]+O[e[t+13]]+O[e[t+14]]+O[e[t+15]]).toLowerCase()}const Zr=new Uint8Array(16);function Xr(){return crypto.getRandomValues(Zr)}function e1(e,t,a){return crypto.randomUUID?crypto.randomUUID():t1(e)}function t1(e,t,a){e=e||{};const r=e.random??e.rng?.()??Xr();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Yr(r)}const we="https://script.google.com/macros/s/AKfycbxpllCbhqNjqFN02er9WV-0Tv-Y9br13UqXZqGHzSMetAgqKaFX5oFKGHgxji1fxJ6udw/exec",n1=()=>{const e=navigator.userAgent;let t="Unknown Browser",a="Unknown OS";return e.includes("Firefox")?t="Firefox":e.includes("SamsungBrowser")?t="Samsung Browser":e.includes("Opera")||e.includes("OPR")?t="Opera":e.includes("Trident")?t="Internet Explorer":e.includes("Edge")?t="Edge":e.includes("Chrome")?t="Chrome":e.includes("Safari")&&(t="Safari"),e.includes("Windows")?a="Windows":e.includes("Mac")?a="MacOS":e.includes("Linux")?a="Linux":e.includes("Android")?a="Android":(e.includes("iPhone")||e.includes("iPad")||e.includes("iPod"))&&(a="iOS"),`${t} on ${a}`},a1=async()=>{localStorage.removeItem("last_telemetry_ping");const e=localStorage.getItem("installation_id");if(e&&we)try{await fetch(we,{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,action:"delete"})})}catch(t){console.error("Telemetry delete request failed:",t)}},r1=async()=>{try{let e=localStorage.getItem("installation_id");if(!e||e.length===36)try{const a=await(await fetch("/api/installation-id")).json();a.id&&(e=a.id,localStorage.setItem("installation_id",e))}catch(t){console.error("Failed to fetch hardware ID:",t)}e||(e=e1(),localStorage.setItem("installation_id",e)),await fetch(we,{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e,version:$e.version,userAgent:n1(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone})}),localStorage.setItem("last_telemetry_ping",Date.now().toString())}catch(e){console.error("Telemetry ping failed:",e)}},o1=()=>{const[e,t]=x(!1);return k(()=>{if(!localStorage.getItem("telemetry_notice_v2")){const r=setTimeout(()=>t(!0),3e3);return()=>clearTimeout(r)}},[]),k(()=>{if(!(localStorage.getItem("telemetry_enabled")!=="false")||!we)return;const r=localStorage.getItem("last_telemetry_ping"),o=Date.now(),i=1440*60*1e3;r&&o-parseInt(r)<i||r1()},[]),{showTelemetryModal:e,setShowTelemetryModal:t}},i1="_overlay_1p9dt_1",s1="_fadeIn_1p9dt_1",c1="_content_1p9dt_11",l1="_modalIn_1p9dt_1",d1="_sm_1p9dt_29",u1="_md_1p9dt_33",h1="_lg_1p9dt_37",m1="_title_1p9dt_41",p1="_body_1p9dt_48",f1="_footer_1p9dt_52",oe={overlay:i1,fadeIn:s1,content:c1,modalIn:l1,sm:d1,md:u1,lg:h1,title:m1,body:p1,footer:f1};function It({children:e}){return n("h2",{className:oe.title,children:e})}function Tt({children:e}){return n("div",{className:oe.body,children:e})}function Pt({children:e}){return n("div",{className:oe.footer,children:e})}function xe({isOpen:e,onClose:t,title:a,children:r,footer:o,width:i="md"}){const s=D(null);return k(()=>{if(!e)return;const c=m=>{m.key==="Escape"&&t?.()};document.addEventListener("keydown",c);const l=document.body.style.overflow;return document.body.style.overflow="hidden",s.current?.focus(),()=>{document.removeEventListener("keydown",c),document.body.style.overflow=l}},[e,t]),e?Be(n("div",{role:"presentation",onMouseDown:c=>c.stopPropagation(),children:[n("div",{className:oe.overlay,onClick:()=>t?.(),"aria-hidden":"true"}),n("div",{ref:s,className:`${oe.content} ${oe[i]}`,role:"dialog","aria-modal":"true","aria-label":a,tabIndex:-1,children:[a&&n(It,{children:a}),n(Tt,{children:r}),o&&n(Pt,{children:o})]})]}),document.body):null}xe.Header=It;xe.Body=Tt;xe.Actions=Pt;const qe=({isOpen:e,onClose:t,children:a,title:r})=>n(xe,{isOpen:e,onClose:t,title:r,children:a}),v1="_slider_167fp_15",Ze={switch:"_switch_167fp_1",slider:v1},g1=({isChecked:e,onChange:t,id:a,disabled:r=!1})=>n("label",{className:Ze.switch,htmlFor:a,children:[n("input",{type:"checkbox",id:a,checked:e,onChange:t,disabled:r}),n("span",{className:Ze.slider})]}),y1="_container_r7bz3_1",w1="_description_r7bz3_8",b1="_dataList_r7bz3_14",_1="_dataTitle_r7bz3_20",S1="_toggleRow_r7bz3_39",x1="_toggleLabel_r7bz3_46",k1="_actions_r7bz3_50",C1="_okButton_r7bz3_55",N1="_previewToggle_r7bz3_71",z1="_chevron_r7bz3_89",L1="_chevronOpen_r7bz3_94",E1="_previewBox_r7bz3_98",M1="_previewItem_r7bz3_107",I1="_previewKey_r7bz3_114",T1="_previewVal_r7bz3_118",T={container:y1,description:w1,dataList:b1,dataTitle:_1,toggleRow:S1,toggleLabel:x1,actions:k1,okButton:C1,previewToggle:N1,chevron:z1,chevronOpen:L1,previewBox:E1,previewItem:M1,previewKey:I1,previewVal:T1},P1="3.0.3",B1={version:P1},F1=()=>{const e=navigator.userAgent;return e.includes("Firefox")?"Firefox":e.includes("SamsungBrowser")?"Samsung Browser":e.includes("Opera")||e.includes("OPR")?"Opera":e.includes("Edge")?"Edge":e.includes("Chrome")?"Chrome":e.includes("Safari")?"Safari":"Unknown"},O1=()=>{const e=navigator.userAgent;return e.includes("Windows")?"Windows":e.includes("Mac")?"macOS":e.includes("Linux")?"Linux":e.includes("Android")?"Android":e.includes("iPhone")||e.includes("iPad")?"iOS":"Unknown"},A1=({isOpen:e,onClose:t})=>{const[a,r]=x(!0),[o,i]=x(!1),s=()=>{localStorage.setItem("telemetry_enabled",String(a)),localStorage.setItem("telemetry_notice_v2","true"),a||a1(),t()};return n(qe,{isOpen:e,onClose:()=>{},title:"Telemetry",children:n("div",{className:T.container,children:[n("p",{className:T.description,children:"Dango collects anonymous usage data to help track how many people use the app. This information is used to measure the project's install base and popularity. Participation is completely optional."}),n("div",{className:T.dataList,children:[n("p",{className:T.dataTitle,children:"What is collected:"}),n("ul",{children:[n("li",{children:"Browser type and operating system"}),n("li",{children:"Your timezone (e.g. Europe/Berlin)"}),n("li",{children:"Anonymous timestamps (first seen / last seen)"})]})]}),n("button",{className:T.previewToggle,onClick:()=>i(!o),children:[n("span",{children:"See exactly what data is sent"}),n(ia,{className:`${T.chevron} ${o?T.chevronOpen:""}`})]}),o&&n("div",{className:T.previewBox,children:[n("div",{className:T.previewItem,children:[n("span",{className:T.previewKey,children:"Browser:"}),n("span",{className:T.previewVal,children:F1()})]}),n("div",{className:T.previewItem,children:[n("span",{className:T.previewKey,children:"OS:"}),n("span",{className:T.previewVal,children:O1()})]}),n("div",{className:T.previewItem,children:[n("span",{className:T.previewKey,children:"Timezone:"}),n("span",{className:T.previewVal,children:Intl.DateTimeFormat().resolvedOptions().timeZone})]}),n("div",{className:T.previewItem,children:[n("span",{className:T.previewKey,children:"App Version:"}),n("span",{className:T.previewVal,children:B1.version})]})]}),n("div",{className:T.toggleRow,children:[n("span",{className:T.toggleLabel,children:"Send anonymous telemetry"}),n(g1,{isChecked:a,onChange:c=>r(c.target.checked),id:"telemetry-notice-toggle"})]}),n("div",{className:T.actions,children:n("button",{className:T.okButton,onClick:s,children:"Ok"})})]})})},$1=async e=>{const t=await fetch(`/api/settings?key=${e}`);if(!t.ok)throw new Error("Failed to fetch settings");return(await t.json()).value},q1=async({key:e,value:t})=>{const a=await fetch("/api/settings",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:e,value:t})});if(!a.ok)throw new Error("Failed to update settings");return a.json()},He=e=>H({queryKey:["settings",e],queryFn:()=>$1(e)}),Bt=()=>{const e=q();return W({mutationFn:q1,onSuccess:()=>{L.success("Setting updated!"),e.invalidateQueries({queryKey:["settings"]})},onError:t=>{L.error(`Failed to update setting: ${t.message}`)}})};function H1(){const e=Fe(),{data:t}=He("discordRPCEnabled"),a=D("");a.current||(a.current=typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():`tab-${Date.now()}-${Math.random().toString(36).slice(2)}`),k(()=>{if(t===!1||t==="false")return;const r=a.current,o=()=>fetch("/api/discord/heartbeat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:r})}).catch(()=>{});o();const i=setInterval(o,15e3),s=()=>{navigator.sendBeacon("/api/discord/heartbeat",new Blob([JSON.stringify({sessionId:r,bye:!0})],{type:"application/json"}))};return window.addEventListener("pagehide",s),()=>{clearInterval(i),window.removeEventListener("pagehide",s)}},[t]),k(()=>{if(t===!1||t==="false")return;const r=e.pathname;if(r.startsWith("/watch/")||r.startsWith("/player/"))return;let o="home";r.startsWith("/search")||r.startsWith("/mature")?o="search":r.startsWith("/watchlist")?o="watchlist":r.startsWith("/anime/")?o="anime":r.startsWith("/insights")?o="insights":r.startsWith("/settings")?o="settings":r.startsWith("/map")?o="map":r.startsWith("/trackers")?o="trackers":r.startsWith("/asmr")?o="asmr":r.startsWith("/manga")?o="manga":r.startsWith("/radio")?o="radio":r.startsWith("/tv")&&(o="tv"),fetch("/api/discord/status",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:o})}).catch(()=>{})},[e.pathname,t])}function V1(e,t){const[a,r]=x(()=>{try{const i=localStorage.getItem(e);if(i===null)return t;if(typeof t=="string")return i;try{return JSON.parse(i)}catch{return i}}catch{return t}});k(()=>{const i=s=>{if(s.key===e)try{if(s.newValue===null){r(t);return}if(typeof t=="string"){r(s.newValue);return}try{r(JSON.parse(s.newValue))}catch{r(s.newValue)}}catch{}};return window.addEventListener("storage",i),()=>window.removeEventListener("storage",i)},[e,t]);const o=A(i=>{r(s=>{const c=typeof i=="function"?i(s):i;try{typeof c=="string"?localStorage.setItem(e,c):localStorage.setItem(e,JSON.stringify(c))}catch{}return c})},[e]);return[a,o]}const R1="_keyboard_1ia7t_1",D1="_small_1ia7t_18",K1="_medium_1ia7t_25",j1="_large_1ia7t_32",U1="_topBar_1ia7t_39",W1="_dragHandle_1ia7t_48",Q1="_grip_1ia7t_59",J1="_topButton_1ia7t_67",G1="_key_1ia7t_1",Y1="_closeButton_1ia7t_98",Z1="_keys_1ia7t_104",X1="_row_1ia7t_111",eo="_wideKey_1ia7t_127",to="_extraWideKey_1ia7t_131",no="_spaceKey_1ia7t_135",ao="_spaceIcon_1ia7t_143",ro="_activeKey_1ia7t_151",N={keyboard:R1,small:D1,medium:K1,large:j1,topBar:U1,dragHandle:W1,grip:Q1,topButton:J1,key:G1,closeButton:Y1,keys:Z1,row:X1,wideKey:eo,extraWideKey:to,spaceKey:no,spaceIcon:ao,activeKey:ro},Ft="virtual-keyboard-state",pe=["small","medium","large"],oo=["1","2","3","4","5","6","7","8","9","0"],io=["!","@","#","$","%","^","&","*","(",")"],so=[["q","w","e","r","t","y","u","i","o","p"],["a","s","d","f","g","h","j","k","l"],["z","x","c","v","b","n","m"]],co=()=>{const e={position:{x:Math.max(12,window.innerWidth-690),y:Math.max(90,window.innerHeight-330)},size:"medium"};try{const t=localStorage.getItem(Ft);if(!t)return e;const a=JSON.parse(t);return{position:a.position&&Number.isFinite(a.position.x)&&Number.isFinite(a.position.y)?a.position:e.position,size:a.size&&pe.includes(a.size)?a.size:e.size}}catch{return e}},Xe=(e,t)=>{const a=t?.offsetWidth??650,r=t?.offsetHeight??270;return{x:Math.min(Math.max(8,e.x),Math.max(8,window.innerWidth-a-8)),y:Math.min(Math.max(8,e.y),Math.max(8,window.innerHeight-r-8))}};function lo({activeInputRef:e,isVisible:t,onClose:a}){const[{position:r,size:o},i]=x(co),[s,c]=x(!1),[l,m]=x(!1),u=D(null),f=D(null);k(()=>{localStorage.setItem(Ft,JSON.stringify({position:r,size:o}))},[r,o]),k(()=>{const v=()=>{i(_=>({..._,position:Xe(_.position,u.current)}))};return window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)},[]);const g=()=>e.current&&document.contains(e.current)?e.current:document.activeElement instanceof HTMLInputElement?document.activeElement:null,b=v=>{const _=g();if(!_)return;const S=_.selectionStart??_.value.length,re=_.selectionEnd??_.value.length;_.setRangeText(v,S,re,"end"),_.dispatchEvent(new Event("input",{bubbles:!0})),_.focus()},d=()=>{const v=g();if(!v)return;const _=v.selectionStart??v.value.length,S=v.selectionEnd??v.value.length;_===S&&_===0||(v.setRangeText("",_===S?_-1:_,S,"end"),v.dispatchEvent(new Event("input",{bubbles:!0})),v.focus())},p=()=>{const v=g();if(!v){a();return}const _=v.form;_?_.requestSubmit():v.dispatchEvent(new KeyboardEvent("keydown",{key:"Enter",bubbles:!0})),a()},y=v=>{v.preventDefault()},w=A(v=>{if(!f.current)return;const _={x:v.clientX-f.current.x,y:v.clientY-f.current.y};i(S=>({...S,position:Xe(_,u.current)}))},[]),I=A(()=>{f.current=null,window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",I)},[w]),E=v=>{v.preventDefault(),f.current={x:v.clientX-r.x,y:v.clientY-r.y},window.addEventListener("mousemove",w),window.addEventListener("mouseup",I)};if(k(()=>()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",I)},[w,I]),!t)return null;const C=l?io:oo,V=()=>{i(v=>{const _=pe[(pe.indexOf(v.size)+1)%pe.length];return{...v,size:_}})};return Be(n("div",{ref:u,className:`${N.keyboard} ${N[o]}`,style:{left:r.x,top:r.y},onMouseDown:y,"data-virtual-keyboard-root":!0,children:[n("div",{className:N.topBar,children:[n("div",{className:N.dragHandle,onMouseDown:E,"aria-label":"Move virtual keyboard",children:[n("span",{className:N.grip,"aria-hidden":"true"}),n("span",{children:"Virtual Keyboard"})]}),n("button",{type:"button",className:N.topButton,onClick:V,children:["Size: ",o[0].toUpperCase()+o.slice(1)]}),n("button",{type:"button",className:`${N.topButton} ${N.closeButton}`,onClick:a,children:"X"})]}),n("div",{className:N.keys,children:[n("div",{className:N.row,children:[C.map(v=>n("button",{type:"button",className:N.key,onClick:()=>b(v),children:v},v)),n("button",{type:"button",className:`${N.key} ${N.wideKey}`,onClick:d,"aria-label":"Backspace",children:"⟵"})]}),so.map((v,_)=>n("div",{className:N.row,children:[v.map(S=>{const re=s?S.toUpperCase():S;return n("button",{type:"button",className:N.key,onClick:()=>b(re),children:re},S)}),_===1&&n("button",{type:"button",className:`${N.key} ${N.wideKey}`,onClick:p,children:"Enter"})]},v.join(""))),n("div",{className:N.row,children:[n("button",{type:"button",className:`${N.key} ${N.wideKey} ${l?N.activeKey:""}`,onClick:()=>m(v=>!v),children:"Ctrl"}),n("button",{type:"button",className:`${N.key} ${N.wideKey} ${s?N.activeKey:""}`,onClick:()=>c(v=>!v),children:"Shift"}),n("button",{type:"button",className:`${N.key} ${N.spaceKey}`,onClick:()=>b(" "),"aria-label":"Space",children:n("span",{className:N.spaceIcon})}),n("button",{type:"button",className:N.key,onClick:()=>b("."),children:"."}),n("button",{type:"button",className:N.key,onClick:()=>b("-"),children:"-"})]})]})]}),document.body)}const Ot=ie(void 0),uo=()=>{const e=se(Ot);if(!e)throw new Error("useAnimePaheCookie must be used within an AnimePaheCookieProvider");return e},ho="_container_zzcxv_1",mo="_field_zzcxv_9",po="_textarea_zzcxv_20",fo="_input_zzcxv_40",vo="_button_zzcxv_58",go="_secondaryButton_zzcxv_78",yo="_actions_zzcxv_95",Q={container:ho,field:mo,textarea:po,input:fo,button:vo,secondaryButton:go,actions:yo},wo=({isOpen:e,onClose:t,onSuccess:a})=>{const[r,o]=x(1),[i,s]=x(navigator.userAgent),[c,l]=x("");k(()=>{e&&(o(1),s(navigator.userAgent),l(""))},[e]);const m=()=>{localStorage.setItem("animepahe_ua",i),window.open("https://animepahe.pw","_blank","noopener,noreferrer"),o(2)},u=()=>{const f=c.trim();if(!f){L.error("Please enter the cf_clearance cookie");return}try{localStorage.setItem("animepahe_cookie",f),L.success("Cookie updated successfully!"),a?.(),t()}catch{L.error("Failed to save cookie")}};return n(qe,{isOpen:e,onClose:t,title:"AnimePahe Verification Required",children:n("div",{className:Q.container,children:r===1?n(J,{children:[n("p",{children:"AnimePahe requires a manual verification to bypass Cloudflare/DDoS-Guard protection."}),n("div",{className:Q.field,children:[n("label",{children:"Your User-Agent (will be used for requests):"}),n("textarea",{value:i,readOnly:!0,rows:3,className:Q.textarea})]}),n("div",{className:Q.actions,children:[n("button",{className:Q.secondaryButton,onClick:t,children:"Cancel"}),n("button",{className:Q.button,onClick:m,children:"Start Verification (Opens AnimePahe)"})]})]}):n(J,{children:[n("p",{children:["1. Solve the challenge on the ",n("strong",{children:"AnimePahe tab"})," (keep that tab open).",n("br",{}),"2. Copy the ",n("strong",{children:"cf_clearance"})," cookie value using one of these:",n("br",{}),n("br",{}),n("strong",{children:"Chrome / Edge — DevTools:"})," press ",n("code",{children:"F12"})," →"," ",n("strong",{children:"Application"})," → ",n("strong",{children:"Cookies"})," →"," ",n("code",{children:"https://animepahe.pw"}),". Find ",n("strong",{children:"cf_clearance"}),", double-click its ",n("strong",{children:"Value"})," to select it, then copy.",n("br",{}),n("br",{}),n("strong",{children:"Firefox — Storage Inspector:"})," press ",n("code",{children:"F12"})," →"," ",n("strong",{children:"Storage"})," → ",n("strong",{children:"Cookies"})," →"," ",n("code",{children:"https://animepahe.pw"}),". Find ",n("strong",{children:"cf_clearance"}),", right-click the value → ",n("strong",{children:"Copy Value"}),".",n("br",{}),n("br",{}),n("strong",{children:"Either browser — extension:"})," install a cookie manager like"," ",n("em",{children:"Cookie-Editor"})," or ",n("em",{children:"Cookie Manager"}),", open it while on the AnimePahe tab, find ",n("strong",{children:"cf_clearance"}),", and copy its value (or use the extension's export).",n("br",{}),n("br",{}),"3. Paste it below. Copy ",n("strong",{children:"only the value"})," — remove any"," ",n("code",{children:"cf_clearance="})," prefix or quotes if they were included."]}),n("div",{className:Q.field,children:[n("label",{children:"cf_clearance cookie value:"}),n("input",{type:"text",value:c,onChange:f=>l(f.target.value),placeholder:"e.g. xxxxxxxx.xxxxxxxx.xxxxxxx-xxxxxxx",className:Q.input})]}),n("div",{className:Q.actions,children:[n("button",{className:Q.secondaryButton,onClick:t,children:"Cancel"}),n("button",{className:Q.secondaryButton,onClick:()=>o(1),children:"Back"}),n("button",{className:Q.button,onClick:u,children:"Submit"})]})]})})})};function bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fe={exports:{}};var _o=fe.exports,et;function So(){return et||(et=1,(function(e,t){(function(a,r){e.exports=r()})(_o,function(){var a={};a.version="0.2.0";var r=a.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};a.configure=function(d){var p,y;for(p in d)y=d[p],y!==void 0&&d.hasOwnProperty(p)&&(r[p]=y);return this},a.status=null,a.set=function(d){var p=a.isStarted();d=o(d,r.minimum,1),a.status=d===1?null:d;var y=a.render(!p),w=y.querySelector(r.barSelector),I=r.speed,E=r.easing;return y.offsetWidth,c(function(C){r.positionUsing===""&&(r.positionUsing=a.getPositioningCSS()),l(w,s(d,I,E)),d===1?(l(y,{transition:"none",opacity:1}),y.offsetWidth,setTimeout(function(){l(y,{transition:"all "+I+"ms linear",opacity:0}),setTimeout(function(){a.remove(),C()},I)},I)):setTimeout(C,I)}),this},a.isStarted=function(){return typeof a.status=="number"},a.start=function(){a.status||a.set(0);var d=function(){setTimeout(function(){a.status&&(a.trickle(),d())},r.trickleSpeed)};return r.trickle&&d(),this},a.done=function(d){return!d&&!a.status?this:a.inc(.3+.5*Math.random()).set(1)},a.inc=function(d){var p=a.status;return p?(typeof d!="number"&&(d=(1-p)*o(Math.random()*p,.1,.95)),p=o(p+d,0,.994),a.set(p)):a.start()},a.trickle=function(){return a.inc(Math.random()*r.trickleRate)},(function(){var d=0,p=0;a.promise=function(y){return!y||y.state()==="resolved"?this:(p===0&&a.start(),d++,p++,y.always(function(){p--,p===0?(d=0,a.done()):a.set((d-p)/d)}),this)}})(),a.render=function(d){if(a.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var p=document.createElement("div");p.id="nprogress",p.innerHTML=r.template;var y=p.querySelector(r.barSelector),w=d?"-100":i(a.status||0),I=document.querySelector(r.parent),E;return l(y,{transition:"all 0 linear",transform:"translate3d("+w+"%,0,0)"}),r.showSpinner||(E=p.querySelector(r.spinnerSelector),E&&b(E)),I!=document.body&&u(I,"nprogress-custom-parent"),I.appendChild(p),p},a.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(r.parent),"nprogress-custom-parent");var d=document.getElementById("nprogress");d&&b(d)},a.isRendered=function(){return!!document.getElementById("nprogress")},a.getPositioningCSS=function(){var d=document.body.style,p="WebkitTransform"in d?"Webkit":"MozTransform"in d?"Moz":"msTransform"in d?"ms":"OTransform"in d?"O":"";return p+"Perspective"in d?"translate3d":p+"Transform"in d?"translate":"margin"};function o(d,p,y){return d<p?p:d>y?y:d}function i(d){return(-1+d)*100}function s(d,p,y){var w;return r.positionUsing==="translate3d"?w={transform:"translate3d("+i(d)+"%,0,0)"}:r.positionUsing==="translate"?w={transform:"translate("+i(d)+"%,0)"}:w={"margin-left":i(d)+"%"},w.transition="all "+p+"ms "+y,w}var c=(function(){var d=[];function p(){var y=d.shift();y&&y(p)}return function(y){d.push(y),d.length==1&&p()}})(),l=(function(){var d=["Webkit","O","Moz","ms"],p={};function y(C){return C.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(V,v){return v.toUpperCase()})}function w(C){var V=document.body.style;if(C in V)return C;for(var v=d.length,_=C.charAt(0).toUpperCase()+C.slice(1),S;v--;)if(S=d[v]+_,S in V)return S;return C}function I(C){return C=y(C),p[C]||(p[C]=w(C))}function E(C,V,v){V=I(V),C.style[V]=v}return function(C,V){var v=arguments,_,S;if(v.length==2)for(_ in V)S=V[_],S!==void 0&&V.hasOwnProperty(_)&&E(C,_,S);else E(C,v[1],v[2])}})();function m(d,p){var y=typeof d=="string"?d:g(d);return y.indexOf(" "+p+" ")>=0}function u(d,p){var y=g(d),w=y+p;m(y,p)||(d.className=w.substring(1))}function f(d,p){var y=g(d),w;m(d,p)&&(w=y.replace(" "+p+" "," "),d.className=w.substring(1,w.length-1))}function g(d){return(" "+(d.className||"")+" ").replace(/\s+/gi," ")}function b(d){d&&d.parentNode&&d.parentNode.removeChild(d)}return a})})(fe)),fe.exports}var xo=So();const Te=bo(xo);Te.configure({showSpinner:!1});const ko=()=>(k(()=>(Te.start(),()=>{Te.done()}),[]),null);class Co extends Rt{state={hasError:!1};static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,a){console.error("Uncaught error:",t,a)}render(){return this.state.hasError?n("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100vh",width:"100%",backgroundColor:"#1a1b1c",color:"#fff",textAlign:"center",padding:"2rem"},children:[n(ea,{style:{fontSize:"4rem",color:"#ff4d4d",marginBottom:"1rem"}}),n("h1",{style:{marginBottom:"1rem"},children:"Something went wrong"}),n("p",{style:{color:"#aaa",marginBottom:"2rem"},children:"The application encountered an unexpected error."}),n("button",{onClick:()=>{this.setState({hasError:!1}),window.location.href="/"},style:{padding:"0.8rem 1.5rem",backgroundColor:"var(--accent, #3d5afe)",color:"#fff",border:"none",borderRadius:"0.5rem",cursor:"pointer",display:"flex",alignItems:"center",gap:"0.5rem",fontSize:"1rem",transition:"background-color 0.2s"},onMouseOver:t=>t.currentTarget.style.backgroundColor="#536dfe",onMouseOut:t=>t.currentTarget.style.backgroundColor="var(--accent, #3d5afe)",children:[n(bt,{}),"Go back Home"]})]}):this.props.children}}const At=ie(void 0),No=({children:e})=>{const[t,a]=x(!1),r=A(()=>a(!0),[]),o=A(()=>a(!1),[]);return k(()=>St("lan",r),[r]),n(At.Provider,{value:{isOpen:t,openModal:r,closeModal:o},children:e})},zo=()=>{const e=se(At);if(!e)throw new Error("useLanAuth must be used within a LanAuthProvider");return e},Lo="_container_88bss_1",Eo="_field_88bss_8",Mo="_input_88bss_19",Io="_actions_88bss_37",he={container:Lo,field:Eo,input:Mo,actions:Io},tt=Dt(({variant:e="primary",size:t="md",loading:a,children:r,className:o="",disabled:i,...s},c)=>{const l=["btn",`btn-${e}`,t!=="md"&&`btn-${t}`,a&&"btn-loading",o].filter(Boolean).join(" ");return n("button",{className:l,disabled:i||a,ref:c,...s,children:a?n("span",{className:"btn-spinner"}):r})}),To=({isOpen:e,onClose:t,onSuccess:a})=>{const[r,o]=x(""),[i,s]=x(!1);Z.useEffect(()=>{e&&o("")},[e]);const c=async()=>{if(!r){L.error("Please enter your password");return}s(!0);try{const l=await fetch("/api/auth/app-login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({password:r})}),m=await l.json().catch(()=>({}));if(!l.ok){L.error(m.error||"Login failed");return}L.success("Authenticated successfully"),a(),t(),window.location.reload()}catch{L.error("Network error")}finally{s(!1)}};return n(qe,{isOpen:e,onClose:t,title:"LAN Authentication Required",children:n("div",{className:he.container,children:[n("p",{children:"This instance is protected. Enter the password to access from this device."}),n("div",{className:he.field,children:[n("label",{htmlFor:"lan-password",children:"Password"}),n("input",{id:"lan-password",type:"password",value:r,onChange:l=>o(l.target.value),placeholder:"Enter password...",className:he.input,onKeyDown:l=>l.key==="Enter"&&c()})]}),n("div",{className:he.actions,children:[n(tt,{variant:"secondary",onClick:t,disabled:i,children:"Cancel"}),n(tt,{variant:"primary",onClick:c,loading:i,children:"Unlock"})]})]})})},Po=K(()=>j(()=>import("./Home-D7YfGBUk.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11]))),Bo=K(()=>j(()=>import("./Watchlist-a77CYtzu.js"),__vite__mapDeps([12,1,2,3,4,5,6,7,8,13]))),Fo=K(()=>j(()=>import("./Settings-9kYcXdTR.js"),__vite__mapDeps([14,1,15]))),nt=K(()=>j(()=>import("./Player-CYpd__FP.js"),__vite__mapDeps([16,1,17,18,19,20,3,4,9,10,21,22,23]))),Oo=K(()=>j(()=>import("./Search-R9YLAXS1.js"),__vite__mapDeps([24,1,2,3,4,5,6,7,8,25,26]))),Ao=K(()=>j(()=>import("./Mature-BeWzAJ7B.js"),__vite__mapDeps([27,1,2,3,4,5,6,7,8,20,25,26,28]))),at=K(()=>j(()=>import("./Asmr-CIjmFtRH.js"),__vite__mapDeps([29,1,30,31,17]))),$o=K(()=>j(()=>import("./Manga-DQ9HYnpk.js"),__vite__mapDeps([32,1,7,8,33]))),qo=K(()=>j(()=>import("./Radio-BvdY5twD.js"),__vite__mapDeps([34,1,30,31,35]))),rt=K(()=>j(()=>import("./Tv-Db1Wx_b7.js"),__vite__mapDeps([36,1,20,18,19,17,37]))),Ho=K(()=>j(()=>import("./Trackers-DfZlnnVq.js"),__vite__mapDeps([38,1,39]))),Vo=K(()=>j(()=>import("./Insights-CLQGrlpX.js"),__vite__mapDeps([40,1,41]))),Ro=K(()=>j(()=>import("./Map-L_ryVBTq.js"),__vite__mapDeps([42,1,43]))),Do=K(()=>j(()=>import("./AnimeInfoPage-Bx5EvGt-.js"),__vite__mapDeps([44,1]))),Ko=K(()=>j(()=>import("./PlayerRedirect-fxUAp9JV.js"),__vite__mapDeps([45,1])));function jo(){const{isOpen:e,closeModal:t,onSuccess:a}=uo(),{isOpen:r,setIsOpen:o}=Ae(),{isOpen:i,openModal:s,closeModal:c}=zo(),l=Fe(),m=ja(),{showTelemetryModal:u,setShowTelemetryModal:f}=o1();H1();const[g,b]=x(!1);k(()=>{fetch("/api/auth/app-status").then(w=>w.json()).then(w=>{w.hasPassword&&!w.isAuthenticated&&(b(!0),s())}).catch(()=>{})},[s]);const[d,p]=V1("lan_auth_notice_shown","false"),y=D(!1);return k(()=>{if(d==="true"||y.current)return;y.current=!0,p("true");const w=setTimeout(()=>{L("Optional LAN lock is available. Set a password in Settings to protect access from other devices on your network.",{duration:1e4,icon:"🔒"})},3e3);return()=>clearTimeout(w)},[d,p]),k(()=>{window.scrollTo(0,0)},[l.pathname]),k(()=>{const w=I=>{r&&I.key==="Escape"&&o(!1)};return r?document.body.classList.add("sidebar-open"):document.body.classList.remove("sidebar-open"),window.addEventListener("keydown",w),()=>{window.removeEventListener("keydown",w),document.body.classList.remove("sidebar-open")}},[r,o]),n("div",{className:"app-container",children:[n(wo,{isOpen:e,onClose:t,onSuccess:a}),n(A1,{isOpen:u,onClose:()=>f(!1)}),n(To,{isOpen:i,onClose:g?()=>{}:c,onSuccess:()=>{b(!1),c()}}),n(Hn,{position:"top-center",toastOptions:{style:{background:"var(--bg-elevated)",color:"var(--text-primary)",border:"1px solid var(--border-primary)"},success:{style:{background:"var(--accent)",color:"var(--accent-text)"},iconTheme:{primary:"var(--accent-text)",secondary:"var(--accent)"}},error:{style:{background:"rgba(153, 42, 42, 0.95)",color:"#fff"}}}}),n(pr,{}),n(Tr,{}),n("main",{className:"main-content",children:n(Co,{children:n(Kt,{fallback:n(ko,{}),children:n(jt,{children:[n(B,{path:"/",element:n(Po,{})}),n(B,{path:"/watchlist/:filter?",element:n(Bo,{})}),n(B,{path:"/search",element:n(Oo,{})}),n(B,{path:"/mature",element:n(Ao,{})}),n(B,{path:"/asmr",element:n(at,{})}),n(B,{path:"/asmr/:rj",element:n(at,{})}),n(B,{path:"/manga",element:n($o,{})}),n(B,{path:"/radio",element:n(qo,{})}),n(B,{path:"/tv",element:n(rt,{})}),n(B,{path:"/tv/:id",element:n(rt,{})}),n(B,{path:"/settings",element:n(Fo,{})}),n(B,{path:"/trackers",element:n(Ho,{})}),n(B,{path:"/mal",element:n(Re,{to:"/trackers",replace:!0})}),n(B,{path:"/insights",element:n(Vo,{})}),n(B,{path:"/map",element:n(Ro,{})}),n(B,{path:"/anime/:id",element:n(Do,{})}),n(B,{path:"/watch/:id",element:n(nt,{})}),n(B,{path:"/watch/:id/:episodeNumber",element:n(nt,{})}),n(B,{path:"/player/:id/:episodeNumber?",element:n(Ko,{})}),n(B,{path:"*",element:n(Re,{to:"/",replace:!0})})]})})})}),n(Gr,{}),n(lo,{activeInputRef:m.activeInputRef,isVisible:m.isVisible,onClose:m.hide})]})}function Uo(){return n(No,{children:n(jo,{})})}const Wo=({children:e})=>{const[t,a]=x(!1),r=A(()=>{a(i=>!i)},[]),o=be(()=>({isOpen:t,setIsOpen:a,toggleSidebar:r}),[t,r]);return n(Et.Provider,{value:o,children:e})},Qo=({children:e})=>{const[t,a]=x("englishName"),[r,o]=x(!0);k(()=>{(async()=>{try{const c=await fetch("/api/settings?key=titlePreference");if(c.ok){const l=await c.json();l.value&&a(l.value)}}catch(c){console.error("Error fetching title preference in context:",c)}finally{o(!1)}})()},[]);const i=be(()=>({titlePreference:t,setTitlePreference:a,loading:r}),[t,r]);return n(_t.Provider,{value:i,children:e})},$t=ie(void 0),_s=()=>{const e=se($t);if(e===void 0)throw new Error("useLowEndMode must be used within a LowEndModeProvider");return e},Jo=({children:e})=>{const{data:t,isLoading:a}=He("lowEndMode"),r=Bt(),[o,i]=x(!1);k(()=>{t!==void 0&&i(t==="true"||t===!0)},[t]),k(()=>{o?document.body.classList.add("low-end"):document.body.classList.remove("low-end")},[o]);const s=A(l=>{i(l),r.mutate({key:"lowEndMode",value:String(l)})},[r]),c=be(()=>({lowEndMode:o,setLowEndMode:s,loading:a}),[o,s,a]);return n($t.Provider,{value:c,children:e})},Go=["iris","mochi","sakura"];function ot(e){e==="iris"?document.documentElement.removeAttribute("data-theme"):document.documentElement.setAttribute("data-theme",e)}const Yo=({children:e})=>{const{data:t,isLoading:a}=He("theme"),r=Bt(),[o,i]=x("iris");k(()=>{typeof t=="string"&&Go.includes(t)&&i(t)},[t]),k(()=>{ot(o)},[o]);const s=A(l=>{l!==o&&(i(l),ot(l),r.mutate({key:"theme",value:l}))},[r,o]),c=be(()=>({theme:o,setTheme:s,loading:a}),[o,s,a]);return n(Nt.Provider,{value:c,children:e})},Zo=({children:e})=>{const[t,a]=x(!1),[r,o]=x(void 0),i=A(c=>{o(()=>c),a(!0)},[]),s=A(()=>{a(!1),o(void 0)},[]);return k(()=>St("animepahe",()=>i()),[i]),n(Ot.Provider,{value:{isOpen:t,openModal:i,closeModal:s,onSuccess:r},children:e})},Xo=new Ut({defaultOptions:{queries:{staleTime:1e3*60*5,refetchOnWindowFocus:!1,refetchIntervalInBackground:!1,retry:1}}}),it=document.getElementById("root");it&&Wt(n(Jt,{children:n(Qt,{client:Xo,children:n(Zo,{children:n(Wo,{children:n(Qo,{children:n(Jo,{children:n(Yo,{children:n(Uo,{})})})})})})})}),it);export{B1 as $,ds as A,tt as B,L as C,He as D,Bt as E,Vi as F,fs as G,vs as H,ps as I,Ee as J,Ii as K,yi as L,xe as M,ca as N,Qi as O,di as P,sa as Q,F as R,Ri as S,g1 as T,zt as U,bs as V,Je as W,na as X,aa as Y,_i as Z,Ai as _,Hi as a,oi as a$,n1 as a0,Mt as a1,Qe as a2,r1 as a3,a1 as a4,wi as a5,qi as a6,Jn as a7,$i as a8,Fi as a9,li as aA,vi as aB,ui as aC,Pi as aD,zi as aE,xi as aF,Q as aG,St as aH,Xn as aI,yt as aJ,ua as aK,ea as aL,da as aM,fi as aN,Gn as aO,h as aP,Ae as aQ,pi as aR,Bi as aS,Oi as aT,Ti as aU,ci as aV,ws as aW,si as aX,ra as aY,Mi as aZ,ki as a_,ai as aa,ni as ab,ri as ac,ti as ad,j as ae,Ci as af,Ki as ag,Wi as ah,Ui as ai,ji as aj,Ne as ak,gt as al,$ as am,qe as an,wo as ao,Di as ap,Ei as aq,wt as ar,Si as as,ma as at,ns as au,Ka as av,Ji as aw,bi as ax,Ni as ay,hi as az,oa as b,ii as b0,ko as b1,bo as b2,is as b3,ss as b4,os as b5,ia as c,V1 as d,Xi as e,es as f,va as g,fa as h,mi as i,gi as j,ke as k,ts as l,ms as m,as as n,rs as o,cs as p,ls as q,gs as r,Gi as s,us as t,_s as u,Yi as v,Zi as w,Li as x,ys as y,hs as z};
@@ -0,0 +1 @@
1
+ import{u as f,b as g,a as w,q}from"./vendor-rLNfZm7Y.js";import{am as W,C as l}from"./index-CpjgU8ou.js";import{u as b}from"./useIsMobile-Cb8HcKRj.js";function M(t){const i=f(),{data:n,isLoading:u,error:r}=b(t),{data:h}=g({queryKey:["watchlist-check",t],queryFn:async()=>t?W(`/api/watchlist/check/${t}`):{inWatchlist:!1},enabled:!!t}),s=h?.inWatchlist??!1,{mutateAsync:c}=w({mutationFn:async({wasIn:a,meta:e})=>{const m=a?"/api/watchlist/remove":"/api/watchlist/add",p={id:t,name:e?.name||e?.names?.romaji,thumbnail:e?.thumbnail,nativeName:e?.names?.native,englishName:e?.names?.english,type:e?.type,isAdult:e?.isAdult},o=await fetch(m,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p)});if(!o.ok){const d=await o.json().catch(()=>null);throw new Error(d?.error||"Watchlist update failed")}return!a},onMutate:async({wasIn:a})=>{await i.cancelQueries({queryKey:["watchlist-check",t]}),i.setQueryData(["watchlist-check",t],e=>({...e,inWatchlist:!a}))},onError:a=>{i.invalidateQueries({queryKey:["watchlist-check",t]}),l.error(a instanceof Error?a.message:"Failed to update watchlist")},onSuccess:a=>{l.success(a?"Added to watchlist":"Removed from watchlist"),i.invalidateQueries({queryKey:["watchlist"]})}}),y=q(async()=>{!t||!n||await c({wasIn:s,meta:n})},[t,n,s,c]);return{showMeta:n,inWatchlist:s,loadingMeta:u,error:r?r.message:null,toggleWatchlist:y}}export{M as u};
@@ -0,0 +1 @@
1
+ ._wrapper_1vova_1{position:relative;display:inline-flex}._trigger_1vova_6{display:inline-flex;cursor:pointer}._triggerBtn_1vova_11{display:inline-flex;align-items:center;gap:6px;cursor:pointer;-webkit-user-select:none;user-select:none}._triggerBtn_1vova_11:focus-visible{outline:none;box-shadow:var(--shadow-focus);border-radius:var(--radius-sm)}._chevron_1vova_25{margin-left:2px;transition:transform .2s ease}._triggerBtn_1vova_11[aria-expanded=true] ._chevron_1vova_25{transform:rotate(180deg)}._menu_1vova_34{position:fixed;width:240px;max-width:calc(100vw - 16px);background:var(--glass-bg, rgba(20, 20, 24, .98));backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border:1px solid var(--glass-border, #333);border-radius:10px;padding:6px;box-shadow:0 12px 32px #00000073;z-index:var(--z-overlay);display:flex;flex-direction:column;animation:_queueMenuIn_1vova_1 .12s ease-out}._menuTitle_1vova_51{padding:6px 10px 8px;font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted, #9a9aa5)}._menuItem_1vova_60{display:flex;align-items:center;gap:8px;width:100%;background:none;border:none;color:var(--text-primary, #f2f2f5);font-size:.85rem;font-weight:500;text-align:left;padding:8px 10px;border-radius:6px;cursor:pointer;transition:background .15s ease}._menuItem_1vova_60:hover:not(:disabled){background:var(--bg-hover, rgba(255, 255, 255, .08))}._menuItem_1vova_60:disabled{opacity:.45;cursor:default}._menuItem_1vova_60 svg{color:var(--accent, #6c9fff);flex-shrink:0}._removeItem_1vova_91 svg{color:var(--color-danger, #ff6b6b)}._removeItem_1vova_91:hover:not(:disabled){background:#ff6b6b1f}._menuEmpty_1vova_99{padding:8px 10px;font-size:.75rem;color:var(--text-muted, #9a9aa5);text-align:center}@keyframes _queueMenuIn_1vova_1{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@@ -0,0 +1 @@
1
+ import{_ as nt,A as j,q as W,t as ot,d as z,v as At,T as B,h as ve,x as rt,X as it,b as st,e as k,$ as Ot,S as _t}from"./vendor-rLNfZm7Y.js";import{am as Tt,n as St,b3 as Lt,b4 as Dt,b5 as $t,Q as Ft,ar as me,c as Mt,al as kt}from"./index-CpjgU8ou.js";function Ee(){return typeof window<"u"}function ae(e){return ct(e)?(e.nodeName||"").toLowerCase():"#document"}function K(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function G(e){var t;return(t=(ct(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function ct(e){return Ee()?e instanceof Node||e instanceof K(e).Node:!1}function I(e){return Ee()?e instanceof Element||e instanceof K(e).Element:!1}function J(e){return Ee()?e instanceof HTMLElement||e instanceof K(e).HTMLElement:!1}function ke(e){return!Ee()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof K(e).ShadowRoot}function Ce(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Q(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function It(e){return/^(table|td|th)$/.test(ae(e))}function Pe(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Nt=/transform|translate|scale|rotate|perspective|filter/,Bt=/paint|layout|strict|content/,oe=e=>!!e&&e!=="none";let Le;function We(e){const t=I(e)?Q(e):e;return oe(t.transform)||oe(t.translate)||oe(t.scale)||oe(t.rotate)||oe(t.perspective)||!Ae()&&(oe(t.backdropFilter)||oe(t.filter))||Nt.test(t.willChange||"")||Bt.test(t.contain||"")}function Wt(e){let t=ne(e);for(;J(t)&&!ee(t);){if(We(t))return t;if(Pe(t))return null;t=ne(t)}return null}function Ae(){return Le==null&&(Le=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Le}function ee(e){return/^(html|body|#document)$/.test(ae(e))}function Q(e){return K(e).getComputedStyle(e)}function Oe(e){return I(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ne(e){if(ae(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ke(e)&&e.host||G(e);return ke(t)?t.host:t}function lt(e){const t=ne(e);return ee(t)?(e.ownerDocument||e).body:J(t)&&Ce(t)?t:lt(t)}function te(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=lt(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=K(r);if(i){const c=Ie(s);return t.concat(s,s.visualViewport||[],Ce(r)?r:[],c&&n?te(c):[])}else return t.concat(r,te(r,[],n))}function Ie(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const we=Math.min,re=Math.max,ye=Math.round,ge=Math.floor,U=e=>({x:e,y:e}),Vt={left:"right",right:"left",bottom:"top",top:"bottom"};function Kt(e,t,n){return re(e,we(t,n))}function _e(e,t){return typeof e=="function"?e(t):e}function le(e){return e.split("-")[0]}function Te(e){return e.split("-")[1]}function at(e){return e==="x"?"y":"x"}function ft(e){return e==="y"?"height":"width"}function Z(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ut(e){return at(Z(e))}function Ht(e,t,n){n===void 0&&(n=!1);const o=Te(e),r=ut(e),i=ft(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=xe(s)),[s,xe(s)]}function qt(e){const t=xe(e);return[Ne(e),t,Ne(t)]}function Ne(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const He=["left","right"],qe=["right","left"],zt=["top","bottom"],Qt=["bottom","top"];function Xt(e,t,n){switch(e){case"top":case"bottom":return n?t?qe:He:t?He:qe;case"left":case"right":return t?zt:Qt;default:return[]}}function jt(e,t,n,o){const r=Te(e);let i=Xt(le(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(Ne)))),i}function xe(e){const t=le(e);return Vt[t]+e.slice(t.length)}function Yt(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Ut(e){return typeof e!="number"?Yt(e):{top:e,right:e,bottom:e,left:e}}function Re(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function ze(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ke(n)){let o=t;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function ue(e){return"composedPath"in e?e.composedPath()[0]:e.target}function De(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function Gt(e){return e.matches("html,body")}function Qe(e){return e?.ownerDocument||document}function pe(e,t,n){return n===void 0&&(n=!0),e.filter(r=>{var i;return r.parentId===t&&(!n||((i=r.context)==null?void 0:i.open))}).flatMap(r=>[r,...pe(e,r.id,n)])}function Jt(e){return"nativeEvent"in e}var Zt=typeof document<"u",en=function(){},Be=Zt?nt:en;const tn={...ot},nn=tn.useInsertionEffect,on=nn||(e=>e());function se(e){const t=j(()=>{});return on(()=>{t.current=e}),W(function(){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return t.current==null?void 0:t.current(...o)},[])}function Xe(e,t,n){let{reference:o,floating:r}=e;const i=Z(t),s=ut(t),c=ft(s),a=le(t),l=i==="y",f=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,m=o[c]/2-r[c]/2;let d;switch(a){case"top":d={x:f,y:o.y-r.height};break;case"bottom":d={x:f,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:u};break;case"left":d={x:o.x-r.width,y:u};break;default:d={x:o.x,y:o.y}}const p=Te(t);return p&&(d[s]+=m*(p==="end"?1:-1)*(n&&l?-1:1)),d}async function rn(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:c,strategy:a}=e,{boundary:l="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:d=0}=_e(t,e),p=Ut(d),y=c[m?u==="floating"?"reference":"floating":u],h=Re(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:l,rootBoundary:f,strategy:a})),x=u==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),E=await(i.isElement==null?void 0:i.isElement(C))&&await(i.getScale==null?void 0:i.getScale(C))||{x:1,y:1},R=Re(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:C,strategy:a}):x);return{top:(h.top-R.top+p.top)/E.y,bottom:(R.bottom-h.bottom+p.bottom)/E.y,left:(h.left-R.left+p.left)/E.x,right:(R.right-h.right+p.right)/E.x}}const sn=50,cn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,c=s.detectOverflow?s:{...s,detectOverflow:rn},a=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:u}=Xe(l,o,a),m=o,d=0;const p={};for(let v=0;v<i.length;v++){const y=i[v];if(!y)continue;const{name:h,fn:x}=y,{x:C,y:E,data:R,reset:P}=await x({x:f,y:u,initialPlacement:o,placement:m,strategy:r,middlewareData:p,rects:l,platform:c,elements:{reference:e,floating:t}});f=C??f,u=E??u,p[h]={...p[h],...R},P&&d<sn&&(d++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(l=P.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):P.rects),{x:f,y:u}=Xe(l,m,a)),v=-1)}return{x:f,y:u,placement:m,strategy:r,middlewareData:p}},ln=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:c,platform:a,elements:l}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...y}=_e(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const h=le(r),x=Z(c),C=le(c)===c,E=await(a.isRTL==null?void 0:a.isRTL(l.floating)),R=m||(C||!v?[xe(c)]:qt(c)),P=p!=="none";!m&&P&&R.push(...jt(c,v,p,E));const b=[c,...R],T=await a.detectOverflow(t,y),L=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&L.push(T[h]),u){const w=Ht(r,s,E);L.push(T[w[0]],T[w[1]])}if(M=[...M,{placement:r,overflows:L}],!L.every(w=>w<=0)){var N,V;const w=(((N=i.flip)==null?void 0:N.index)||0)+1,A=b[w];if(A&&(!(u==="alignment"?x!==Z(A):!1)||M.every(g=>Z(g.placement)===x?g.overflows[0]>0:!0)))return{data:{index:w,overflows:M},reset:{placement:A}};let S=(V=M.filter(D=>D.overflows[0]<=0).sort((D,g)=>D.overflows[1]-g.overflows[1])[0])==null?void 0:V.placement;if(!S)switch(d){case"bestFit":{var F;const D=(F=M.filter(g=>{if(P){const _=Z(g.placement);return _===x||_==="y"}return!0}).map(g=>[g.placement,g.overflows.filter(_=>_>0).reduce((_,$)=>_+$,0)]).sort((g,_)=>g[1]-_[1])[0])==null?void 0:F[0];D&&(S=D);break}case"initialPlacement":S=c;break}if(r!==S)return{reset:{placement:S}}}return{}}}},an=new Set(["left","top"]);async function fn(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=le(n),c=Te(n),a=Z(n)==="y",l=an.has(s)?-1:1,f=i&&a?-1:1,u=_e(t,e);let{mainAxis:m,crossAxis:d,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return c&&typeof p=="number"&&(d=c==="end"?p*-1:p),a?{x:d*f,y:m*l}:{x:m*l,y:d*f}}const un=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:c}=t,a=await fn(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:s}}}}},dn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:a={fn:x=>{let{x:C,y:E}=x;return{x:C,y:E}}},...l}=_e(e,t),f={x:n,y:o},u=await i.detectOverflow(t,l),m=Z(r),d=at(m);let p=f[d],v=f[m];const y=(x,C)=>Kt(C+u[x==="y"?"top":"left"],C,C-u[x==="y"?"bottom":"right"]);s&&(p=y(d,p)),c&&(v=y(m,v));const h=a.fn({...t,[d]:p,[m]:v});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[d]:s,[m]:c}}}}}};function dt(e){const t=Q(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=J(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,c=ye(n)!==i||ye(o)!==s;return c&&(n=i,o=s),{width:n,height:o,$:c}}function Ve(e){return I(e)?e:e.contextElement}function ce(e){const t=Ve(e);if(!J(t))return U(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=dt(t);let s=(i?ye(n.width):n.width)/o,c=(i?ye(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const mn=U(0);function mt(e){const t=K(e);return!Ae()||!t.visualViewport?mn:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gn(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===K(e)}function ie(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Ve(e);let s=U(1);t&&(o?I(o)&&(s=ce(o)):s=ce(e));const c=gn(i,n,o)?mt(i):U(0);let a=(r.left+c.x)/s.x,l=(r.top+c.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i&&o){const m=K(i),d=I(o)?K(o):o;let p=m,v=Ie(p);for(;v&&d!==p;){const y=ce(v),h=v.getBoundingClientRect(),x=Q(v),C=h.left+(v.clientLeft+parseFloat(x.paddingLeft))*y.x,E=h.top+(v.clientTop+parseFloat(x.paddingTop))*y.y;a*=y.x,l*=y.y,f*=y.x,u*=y.y,a+=C,l+=E,p=K(v),v=Ie(p)}}return Re({width:f,height:u,x:a,y:l})}function Se(e,t){const n=Oe(e).scrollLeft;return t?t.left+n:ie(G(e)).left+n}function gt(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Se(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function pn(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=G(o),c=t?Pe(t.floating):!1;if(o===s||c&&i)return n;let a={scrollLeft:0,scrollTop:0},l=U(1);const f=U(0),u=J(o);if((u||!i)&&((ae(o)!=="body"||Ce(s))&&(a=Oe(o)),u)){const d=ie(o);l=ce(o),f.x=d.x+o.clientLeft,f.y=d.y+o.clientTop}const m=s&&!u&&!i?gt(s,a):U(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-a.scrollLeft*l.x+f.x+m.x,y:n.y*l.y-a.scrollTop*l.y+f.y+m.y}}function hn(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function vn(e){const t=Oe(e),n=e.ownerDocument.body,o=re(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=re(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Se(e);const s=-t.scrollTop;return Q(n).direction==="rtl"&&(i+=re(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const wn=25;function yn(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=K(e),i=G(e),s=r.visualViewport;let c=i.clientWidth,a=i.clientHeight,l=0,f=0;if(s){const m=!Ae()||t==="fixed";o?m||(l=-s.offsetLeft,f=-s.offsetTop):(c=s.width,a=s.height,m&&(l=s.offsetLeft,f=s.offsetTop))}if(Se(i)<=0){const m=i.ownerDocument,d=m.body,p=getComputedStyle(d),v=m.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,y=Math.abs(i.clientWidth-d.clientWidth-v),h=getComputedStyle(i).scrollbarGutter==="stable both-edges"?y/2:y;h<=wn&&(c-=h)}return{width:c,height:a,x:l,y:f}}function xn(e,t){const n=ie(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=ce(e),s=e.clientWidth*i.x,c=e.clientHeight*i.y,a=r*i.x,l=o*i.y;return{width:s,height:c,x:a,y:l}}function je(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=yn(e,n,t);else if(t==="document")o=vn(G(e));else if(I(t))o=xn(t,n);else{const r=mt(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Re(o)}function Rn(e,t){const n=t.get(e);if(n)return n;let o=te(e,[],!1).filter(c=>I(c)&&ae(c)!=="body"),r=null;const i=Q(e).position==="fixed";let s=i?ne(e):e;for(;I(s)&&!ee(s);){const c=Q(s),a=We(s),l=r?r.position:i?"fixed":"";!a&&(l==="fixed"||l==="absolute"&&c.position==="static")?o=o.filter(u=>u!==s):r=c,s=ne(s)}return t.set(e,o),o}function bn(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Pe(t)?[]:Rn(t,this._c):[].concat(n),o],c=je(t,s[0],r);let a=c.top,l=c.right,f=c.bottom,u=c.left;for(let m=1;m<s.length;m++){const d=je(t,s[m],r);a=re(d.top,a),l=we(d.right,l),f=we(d.bottom,f),u=re(d.left,u)}return{width:l-u,height:f-a,x:u,y:a}}function En(e){const{width:t,height:n}=dt(e);return{width:t,height:n}}function Cn(e,t,n){const o=J(t),r=G(t),i=n==="fixed",s=ie(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const a=U(0);if((o||!i)&&((ae(t)!=="body"||Ce(r))&&(c=Oe(t)),o)){const m=ie(t,!0,i,t);a.x=m.x+t.clientLeft,a.y=m.y+t.clientTop}!o&&r&&(a.x=Se(r));const l=r&&!o&&!i?gt(r,c):U(0),f=s.left+c.scrollLeft-a.x-l.x,u=s.top+c.scrollTop-a.y-l.y;return{x:f,y:u,width:s.width,height:s.height}}function $e(e){return Q(e).position==="static"}function Ye(e,t){if(!J(e)||Q(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function pt(e,t){const n=K(e);if(Pe(e))return n;if(!J(e)){let r=ne(e);for(;r&&!ee(r);){if(I(r)&&!$e(r))return r;r=ne(r)}return n}let o=Ye(e,t);for(;o&&It(o)&&$e(o);)o=Ye(o,t);return o&&ee(o)&&$e(o)&&!We(o)?n:o||Wt(e)||n}const Pn=async function(e){const t=this.getOffsetParent||pt,n=this.getDimensions,o=await n(e.floating);return{reference:Cn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function An(e){return Q(e).direction==="rtl"}const On={convertOffsetParentRelativeRectToViewportRelativeRect:pn,getDocumentElement:G,getClippingRect:bn,getOffsetParent:pt,getElementRects:Pn,getClientRects:hn,getDimensions:En,getScale:ce,isElement:I,isRTL:An};function ht(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _n(e,t,n){let o=null,r;const i=G(e);function s(){var f;clearTimeout(r),(f=o)==null||f.disconnect(),o=null}function c(f,u){f===void 0&&(f=!1),u===void 0&&(u=1),s();const m=e.getBoundingClientRect(),{left:d,top:p,width:v,height:y}=m;if(f||t(),!v||!y)return;const h=ge(p),x=ge(i.clientWidth-(d+v)),C=ge(i.clientHeight-(p+y)),E=ge(d),P={rootMargin:-h+"px "+-x+"px "+-C+"px "+-E+"px",threshold:re(0,we(1,u))||1};let b=!0;function T(L){const M=L[0].intersectionRatio;if(!ht(m,e.getBoundingClientRect()))return c();if(M!==u){if(!b)return c();M?c(!1,M):r=setTimeout(()=>{c(!1,1e-7)},1e3)}b=!1}try{o=new IntersectionObserver(T,{...P,root:i.ownerDocument})}catch{o=new IntersectionObserver(T,P)}o.observe(e)}const a=K(e),l=()=>c(n);return a.addEventListener("resize",l),c(!0),()=>{a.removeEventListener("resize",l),s()}}function Tn(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=o,l=Ve(e),f=r||i?[...l?te(l):[],...t?te(t):[]]:[];f.forEach(h=>{r&&h.addEventListener("scroll",n),i&&h.addEventListener("resize",n)});const u=l&&c?_n(l,n,i):null;let m=-1,d=null;s&&(d=new ResizeObserver(h=>{let[x]=h;x&&x.target===l&&d&&t&&(d.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var C;(C=d)==null||C.observe(t)})),n()}),l&&!a&&d.observe(l),t&&d.observe(t));let p,v=a?ie(e):null;a&&y();function y(){const h=ie(e);v&&!ht(v,h)&&n(),v=h,p=requestAnimationFrame(y)}return n(),()=>{var h;f.forEach(x=>{r&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),u?.(),(h=d)==null||h.disconnect(),d=null,a&&cancelAnimationFrame(p)}}const Sn=un,Ln=dn,Dn=ln,$n=(e,t,n)=>{const o=new Map,r=n??{},i={...On,...r.platform,_c:o};return cn(e,t,{...r,platform:i})};var Fn=typeof document<"u",Mn=function(){},he=Fn?nt:Mn;function be(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!be(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;o--!==0;){const i=r[o];if(!(i==="_owner"&&e.$$typeof)&&!be(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function vt(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ue(e,t){const n=vt(e);return Math.round(t*n)/n}function Fe(e){const t=j(e);return he(()=>{t.current=e}),t}function kn(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:r,elements:{reference:i,floating:s}={},transform:c=!0,whileElementsMounted:a,open:l}=e,[f,u]=z({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,d]=z(o);be(m,o)||d(o);const[p,v]=z(null),[y,h]=z(null),x=W(g=>{g!==P.current&&(P.current=g,v(g))},[]),C=W(g=>{g!==b.current&&(b.current=g,h(g))},[]),E=i||p,R=s||y,P=j(null),b=j(null),T=j(f),L=a!=null,M=Fe(a),N=Fe(r),V=Fe(l),F=W(()=>{if(!P.current||!b.current)return;const g={placement:t,strategy:n,middleware:m};N.current&&(g.platform=N.current),$n(P.current,b.current,g).then(_=>{const $={..._,isPositioned:V.current!==!1};w.current&&!be(T.current,$)&&(T.current=$,At(()=>{u($)}))})},[m,t,n,N,V]);he(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,u(g=>({...g,isPositioned:!1})))},[l]);const w=j(!1);he(()=>(w.current=!0,()=>{w.current=!1}),[]),he(()=>{if(E&&(P.current=E),R&&(b.current=R),E&&R){if(M.current)return M.current(E,R,F);F()}},[E,R,F,M,L]);const A=B(()=>({reference:P,floating:b,setReference:x,setFloating:C}),[x,C]),S=B(()=>({reference:E,floating:R}),[E,R]),D=B(()=>{const g={position:n,left:0,top:0};if(!S.floating)return g;const _=Ue(S.floating,f.x),$=Ue(S.floating,f.y);return c?{...g,transform:"translate("+_+"px, "+$+"px)",...vt(S.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:_,top:$}},[n,c,S.floating,f.x,f.y]);return B(()=>({...f,update:F,refs:A,elements:S,floatingStyles:D}),[f,F,A,S,D])}const In=(e,t)=>{const n=Sn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nn=(e,t)=>{const n=Ln(e);return{name:n.name,fn:n.fn,options:[e,t]}},Bn=(e,t)=>{const n=Dn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Wn="data-floating-ui-focusable",Ge="active",Je="selected",Vn={...ot};let Ze=!1,Kn=0;const et=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Kn++;function Hn(){const[e,t]=z(()=>Ze?et():void 0);return Be(()=>{e==null&&t(et())},[]),ve(()=>{Ze=!0},[]),e}const qn=Vn.useId,zn=qn||Hn;function Qn(){const e=new Map;return{emit(t,n){var o;(o=e.get(t))==null||o.forEach(r=>r(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var o;(o=e.get(t))==null||o.delete(n)}}}const Xn=it(null),jn=it(null),Yn=()=>{var e;return((e=rt(Xn))==null?void 0:e.id)||null},wt=()=>rt(jn);function Un(e){return"data-floating-ui-"+e}const Gn={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Jn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},tt=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e?.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function Zn(e,t){t===void 0&&(t={});const{open:n,onOpenChange:o,elements:r,dataRef:i}=e,{enabled:s=!0,escapeKey:c=!0,outsidePress:a=!0,outsidePressEvent:l="pointerdown",referencePress:f=!1,referencePressEvent:u="pointerdown",ancestorScroll:m=!1,bubbles:d,capture:p}=t,v=wt(),y=se(typeof a=="function"?a:()=>!1),h=typeof a=="function"?y:a,x=j(!1),{escapeKey:C,outsidePress:E}=tt(d),{escapeKey:R,outsidePress:P}=tt(p),b=j(!1),T=se(w=>{var A;if(!n||!s||!c||w.key!=="Escape"||b.current)return;const S=(A=i.current.floatingContext)==null?void 0:A.nodeId,D=v?pe(v.nodesRef.current,S):[];if(!C&&(w.stopPropagation(),D.length>0)){let g=!0;if(D.forEach(_=>{var $;if(($=_.context)!=null&&$.open&&!_.context.dataRef.current.__escapeKeyBubbles){g=!1;return}}),!g)return}o(!1,Jt(w)?w.nativeEvent:w,"escape-key")}),L=se(w=>{var A;const S=()=>{var D;T(w),(D=ue(w))==null||D.removeEventListener("keydown",S)};(A=ue(w))==null||A.addEventListener("keydown",S)}),M=se(w=>{var A;const S=i.current.insideReactTree;i.current.insideReactTree=!1;const D=x.current;if(x.current=!1,l==="click"&&D||S||typeof h=="function"&&!h(w))return;const g=ue(w),_="["+Un("inert")+"]",$=Qe(r.floating).querySelectorAll(_);let X=I(g)?g:null;for(;X&&!ee(X);){const H=ne(X);if(ee(H)||!I(H))break;X=H}if($.length&&I(g)&&!Gt(g)&&!ze(g,r.floating)&&Array.from($).every(H=>!ze(X,H)))return;if(J(g)&&F){const H=ee(g),Y=Q(g),fe=/auto|scroll/,yt=H||fe.test(Y.overflowX),xt=H||fe.test(Y.overflowY),Rt=yt&&g.clientWidth>0&&g.scrollWidth>g.clientWidth,bt=xt&&g.clientHeight>0&&g.scrollHeight>g.clientHeight,Et=Y.direction==="rtl",Ct=bt&&(Et?w.offsetX<=g.offsetWidth-g.clientWidth:w.offsetX>g.clientWidth),Pt=Rt&&w.offsetY>g.clientHeight;if(Ct||Pt)return}const de=(A=i.current.floatingContext)==null?void 0:A.nodeId,O=v&&pe(v.nodesRef.current,de).some(H=>{var Y;return De(w,(Y=H.context)==null?void 0:Y.elements.floating)});if(De(w,r.floating)||De(w,r.domReference)||O)return;const Ke=v?pe(v.nodesRef.current,de):[];if(Ke.length>0){let H=!0;if(Ke.forEach(Y=>{var fe;if((fe=Y.context)!=null&&fe.open&&!Y.context.dataRef.current.__outsidePressBubbles){H=!1;return}}),!H)return}o(!1,w,"outside-press")}),N=se(w=>{var A;const S=()=>{var D;M(w),(D=ue(w))==null||D.removeEventListener(l,S)};(A=ue(w))==null||A.addEventListener(l,S)});ve(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=C,i.current.__outsidePressBubbles=E;let w=-1;function A($){o(!1,$,"ancestor-scroll")}function S(){window.clearTimeout(w),b.current=!0}function D(){w=window.setTimeout(()=>{b.current=!1},Ae()?5:0)}const g=Qe(r.floating);c&&(g.addEventListener("keydown",R?L:T,R),g.addEventListener("compositionstart",S),g.addEventListener("compositionend",D)),h&&g.addEventListener(l,P?N:M,P);let _=[];return m&&(I(r.domReference)&&(_=te(r.domReference)),I(r.floating)&&(_=_.concat(te(r.floating))),!I(r.reference)&&r.reference&&r.reference.contextElement&&(_=_.concat(te(r.reference.contextElement)))),_=_.filter($=>{var X;return $!==((X=g.defaultView)==null?void 0:X.visualViewport)}),_.forEach($=>{$.addEventListener("scroll",A)}),()=>{c&&(g.removeEventListener("keydown",R?L:T,R),g.removeEventListener("compositionstart",S),g.removeEventListener("compositionend",D)),h&&g.removeEventListener(l,P?N:M,P),_.forEach($=>{$.removeEventListener("scroll",A)}),window.clearTimeout(w)}},[i,r,c,h,l,n,o,m,s,C,E,T,R,L,M,P,N]),ve(()=>{i.current.insideReactTree=!1},[i,h,l]);const V=B(()=>({onKeyDown:T,...f&&{[Gn[u]]:w=>{o(!1,w.nativeEvent,"reference-press")},...u!=="click"&&{onClick(w){o(!1,w.nativeEvent,"reference-press")}}}}),[T,o,f,u]),F=B(()=>{function w(A){A.button===0&&(x.current=!0)}return{onKeyDown:T,onMouseDown:w,onMouseUp:w,[Jn[l]]:()=>{i.current.insideReactTree=!0}}},[T,l,i]);return B(()=>s?{reference:V,floating:F}:{},[s,V,F])}function eo(e){const{open:t=!1,onOpenChange:n,elements:o}=e,r=zn(),i=j({}),[s]=z(()=>Qn()),c=Yn()!=null,[a,l]=z(o.reference),f=se((d,p,v)=>{i.current.openEvent=d?p:void 0,s.emit("openchange",{open:d,event:p,reason:v,nested:c}),n?.(d,p,v)}),u=B(()=>({setPositionReference:l}),[]),m=B(()=>({reference:a||o.reference||null,floating:o.floating||null,domReference:o.reference}),[a,o.reference,o.floating]);return B(()=>({dataRef:i,open:t,onOpenChange:f,elements:m,events:s,floatingId:r,refs:u}),[t,f,m,s,r,u])}function to(e){var t,n;let{elements:o,...r}=e===void 0?{}:e;const{nodeId:i}=r,s=eo({...r,elements:{reference:(t=o?.reference)!=null?t:null,floating:(n=o?.floating)!=null?n:null}}),c=r.rootContext||s,a=c.elements,[l,f]=z(null),[u,m]=z(null),p=a?.domReference||l,v=j(null),y=wt();Be(()=>{p&&(v.current=p)},[p]);const h=kn({...r,elements:{...a,...u&&{reference:u}}}),x=W(b=>{const T=I(b)?{getBoundingClientRect:()=>b.getBoundingClientRect(),getClientRects:()=>b.getClientRects(),contextElement:b}:b;m(T),h.refs.setReference(T)},[h.refs]),C=W(b=>{(I(b)||b===null)&&(v.current=b,f(b)),(I(h.refs.reference.current)||h.refs.reference.current===null||b!==null&&!I(b))&&h.refs.setReference(b)},[h.refs]),E=B(()=>({...h.refs,setReference:C,setPositionReference:x,domReference:v}),[h.refs,C,x]),R=B(()=>({...h.elements,domReference:p}),[h.elements,p]),P=B(()=>({...h,...c,refs:E,elements:R,nodeId:i}),[h,E,R,i,c]);return Be(()=>{c.dataRef.current.floatingContext=P;const b=y?.nodesRef.current.find(T=>T.id===i);b&&(b.context=P)}),B(()=>({...h,context:P,refs:E,elements:R}),[h,E,R,P])}function Me(e,t,n){const o=new Map,r=n==="item";let i=e;if(r&&e){const{[Ge]:s,[Je]:c,...a}=e;i=a}return{...n==="floating"&&{tabIndex:-1,[Wn]:""},...i,...t.map(s=>{const c=s?s[n]:null;return typeof c=="function"?e?c(e):null:c}).concat(e).reduce((s,c)=>(c&&Object.entries(c).forEach(a=>{let[l,f]=a;if(!(r&&[Ge,Je].includes(l)))if(l.indexOf("on")===0){if(o.has(l)||o.set(l,[]),typeof f=="function"){var u;(u=o.get(l))==null||u.push(f),s[l]=function(){for(var m,d=arguments.length,p=new Array(d),v=0;v<d;v++)p[v]=arguments[v];return(m=o.get(l))==null?void 0:m.map(y=>y(...p)).find(y=>y!==void 0)}}}else s[l]=f}),s),{})}}function no(e){e===void 0&&(e=[]);const t=e.map(c=>c?.reference),n=e.map(c=>c?.floating),o=e.map(c=>c?.item),r=W(c=>Me(c,e,"reference"),t),i=W(c=>Me(c,e,"floating"),n),s=W(c=>Me(c,e,"item"),o);return B(()=>({getReferenceProps:r,getFloatingProps:i,getItemProps:s}),[r,i,s])}function ho(e){return st({queryKey:["show-meta",e],queryFn:async()=>e?Tt(`/api/show-meta/${e}`):{},enabled:!!e,staleTime:3e4})}async function oo(e){const t=await fetch(`/api/queue/suggested/${e}`);if(!t.ok)throw new Error("Failed to resolve suggested episode");return t.json()}const ro="_trigger_1vova_6",io="_triggerBtn_1vova_11",so="_chevron_1vova_25",co="_menu_1vova_34",lo="_menuTitle_1vova_51",ao="_menuItem_1vova_60",fo="_removeItem_1vova_91",uo="_menuEmpty_1vova_99",q={trigger:ro,triggerBtn:io,chevron:so,menu:co,menuTitle:lo,menuItem:ao,removeItem:fo,menuEmpty:uo},mo=8,vo=({showId:e,showName:t,showThumbnail:n,nativeName:o,englishName:r,showType:i,className:s="",activeClassName:c="",align:a="right",onMenuOpenChange:l})=>{const{data:f=[]}=St(),u=Lt(),m=Dt(),[d,p]=z(!1),{refs:v,floatingStyles:y,context:h}=to({open:d,onOpenChange:O=>{O||(p(!1),l?.(!1))},placement:a==="left"?"bottom-start":"bottom-end",middleware:[In(mo),Bn({padding:8}),Nn({padding:8})],whileElementsMounted:Tn}),x=Zn(h,{outsidePress:!0,escapeKey:!0,referencePress:!1}),{getReferenceProps:C,getFloatingProps:E}=no([x]),R=B(()=>f.filter(O=>O.showId===e),[f,e]),{data:P}=st({queryKey:["suggestedEpisode",e],queryFn:()=>oo(e),enabled:!!e}),{data:b,isFetching:T}=$t(e,d),L=B(()=>b?.episodes||[],[b]),M=W(()=>{p(!0),l?.(!0)},[l]),N=W(()=>{p(!1),l?.(!1)},[l]),V=R.length>0,F=L.length>0,w=P?.episodeNumber,A=W(O=>{!e||O.length===0||(u.mutate({showId:e,episodeNumbers:O,showName:t,showThumbnail:n,nativeName:o,englishName:r,type:i}),N())},[e,t,n,o,r,i,u,N]),S=W(()=>{!e||R.length===0||(m.mutate({showId:e,episodeNumbers:R.map(O=>O.episodeNumber)}),N())},[e,R,m,N]),D=W(()=>{F?A([L[0]]):w&&A([String(w)])},[F,L,w,A]),g=W(()=>{F&&A(L.slice(0,3))},[F,L,A]),_=W(()=>{F&&A([...L])},[F,L,A]),$=L[0],X=L[Math.min(2,L.length-1)],de=k("div",{className:q.trigger,ref:v.setReference,children:k("span",{className:`${q.triggerBtn} ${s} ${V?c:""}`,role:"button",tabIndex:0,"aria-haspopup":"menu","aria-expanded":d,"aria-label":V?"Queued":"Queue",...C(),onClick:O=>{O.preventDefault(),O.stopPropagation(),d?N():M()},onKeyDown:O=>{(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),O.stopPropagation(),d?N():M())},children:[V?k(Ft,{size:14}):k(me,{size:14}),V?"Queued":"Queue",k(Mt,{size:10,className:q.chevron})]})});return k(_t,{children:[de,d&&Ot(k("div",{ref:v.setFloating,className:q.menu,style:y,role:"menu",...E(),onMouseDown:O=>O.stopPropagation(),onClick:O=>{O.preventDefault(),O.stopPropagation()},children:[k("div",{className:q.menuTitle,children:"Queue episodes"}),k("button",{className:q.menuItem,role:"menuitem",type:"button",disabled:!F&&!w,onClick:O=>{O.stopPropagation(),D()},children:[k(me,{size:11}),k("span",{children:F?`+1 — EP ${$}`:`+1 — EP ${w||"?"}`})]}),k("button",{className:q.menuItem,role:"menuitem",type:"button",disabled:!F,onClick:O=>{O.stopPropagation(),g()},children:[k(me,{size:11}),k("span",{children:F?`+3 — EP ${$}${L.length>1?`-${X}`:""}`:"+3"})]}),k("button",{className:q.menuItem,role:"menuitem",type:"button",disabled:!F,onClick:O=>{O.stopPropagation(),_()},children:[k(me,{size:11}),k("span",{children:["All Remaining",T?"":` (${Math.max(L.length,0)})`]})]}),!T&&L.length===0&&k("div",{className:q.menuEmpty,children:V?"All episodes are already queued":"No remaining unwatched episodes"}),V&&k("button",{className:`${q.menuItem} ${q.removeItem}`,role:"menuitem",type:"button",onClick:O=>{O.stopPropagation(),S()},children:[k(kt,{size:11}),k("span",{children:["Remove from Queue",R.length>0?` (${R.length})`:""]})]})]}),document.body)]})},wo=(e=768)=>{const[t,n]=z(window.innerWidth<e);return ve(()=>{const o=window.matchMedia(`(max-width: ${e-1}px)`);n(o.matches);const r=i=>n(i.matches);return o.addEventListener?(o.addEventListener("change",r),()=>o.removeEventListener("change",r)):(o.addListener(r),()=>o.removeListener(r))},[e]),t};export{vo as Q,wo as a,to as b,Tn as c,Bn as f,Nn as s,ho as u};
@@ -0,0 +1 @@
1
+ import{d as n,q as s}from"./vendor-rLNfZm7Y.js";const t="agreedToViewMature";function u(){const[e,o]=n(()=>localStorage.getItem(t)==="true"),r=s(()=>{localStorage.setItem(t,"true"),o(!0)},[]);return{hasConsent:e,grant:r}}export{u};