Files
pgsql-jellyfin/publish_test2/wwwroot/8575.7c0c1963384d9ff63eda.chunk.js

1 line
21 KiB
JavaScript

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8575],{713:function(e,n,r){r.d(n,{j:function(){return o},p:function(){return a}});var t=r(82885),i=r(14229),o=function(e){return i.u.some((function(n){return n.path===e}))},a=function(e,n){var r,o,a,l,s,u;if(!n)return 0;var c=null!==(o=null===(r=i.u.find((function(n){return n.path===e})))||void 0===r?void 0:r.views)&&void 0!==o?o:[],d=t.get("landing-"+n,!1);return null!==(u=null!==(l=null===(a=c.find((function(e){return e.view===d})))||void 0===a?void 0:a.index)&&void 0!==l?l:null===(s=c.find((function(e){return e.isDefault})))||void 0===s?void 0:s.index)&&void 0!==u?u:0}},8575:function(e,n,r){r.r(n),r.d(n,{Component:function(){return Se}});var t=r(62540),i=r(63696),o=r(93663),a=r(92779),l=r(25295),s=r(87404),u=r(13258),c=r(78057),d=r(75785),f=r(15815),v=r(69410),h=r(70140),p=r(70267),y=r(87119),x=r(87214),b=r(76617),m=r(5824),A=r(9055),g=r(43361),j=r(75487),w=r(72073),S=r(5898),k=function(){var e=(0,s.zy)(),n=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}((0,A.ok)(),1)[0],r="/search"===e.pathname,i=(0,A.PI)(function(e){var n=e.get("parentId")||e.get("topParentId"),r=e.get("collectionType"),t={};return n&&(t.parentId=n),r&&(t.collectionType=r),t}(n)),o={pathname:"/search",search:i?"?".concat(i):void 0};return(0,t.jsx)(w.A,{title:S.Ay.translate("Search"),children:(0,t.jsx)(j.A,{size:"large","aria-label":S.Ay.translate("Search"),color:"inherit",component:A.N_,disabled:r,to:o,children:(0,t.jsx)(g.A,{})})})},D=r(65369),I=r(26749),P=r(36237),O=r(63703),C=r(44185),T=r(3889),M=r(46550),N=r(68849),B=r(84917),L=r(42663),E=r(57323),G=r(66563),R=r(94200),U=r(91002),F=r(72648),_=r(53455),X=r(82225),z={Id:"favorites",Name:"Favorites"},H=function(e){var n=e.item;if(n.Id===z.Id)return(0,t.jsx)(P.A,{});switch(n.CollectionType){case D.X.Movies:return(0,t.jsx)(T.A,{});case D.X.Music:return(0,t.jsx)(M.A,{});case D.X.Homevideos:case D.X.Photos:return(0,t.jsx)(N.A,{});case D.X.Livetv:return(0,t.jsx)(B.A,{});case D.X.Tvshows:return(0,t.jsx)(L.A,{});case D.X.Trailers:return(0,t.jsx)(E.A,{});case D.X.Musicvideos:return(0,t.jsx)(G.A,{});case D.X.Books:return(0,t.jsx)(R.A,{});case D.X.Boxsets:return(0,t.jsx)(_.A,{});case D.X.Playlists:return(0,t.jsx)(U.A,{});case void 0:return(0,t.jsx)(F.A,{});default:return(0,t.jsx)(X.A,{})}},V=r(713),q=r(37632),K=r(59721),J=r(60182),W=r(44790),Y=r(60434),Q=r(48402),Z=r(85637),$=function(){return $=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},$.apply(this,arguments)},ee=function(e){var n=e.userViews,r=e.selectedId,i=e.onMenuClose,o=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(r[t[i]]=e[t[i]])}return r}(e,["userViews","selectedId","onMenuClose"]);return(0,t.jsx)(Q.A,$({},o,{keepMounted:!0,onClose:i,children:n.map((function(e){return(0,t.jsxs)(Z.A,{component:A.N_,to:p.appRouter.getRouteUrl(e,{context:e.CollectionType}).substring(1),onClick:i,selected:e.Id===r,children:[(0,t.jsx)(W.A,{children:(0,t.jsx)(H,{item:e})}),(0,t.jsx)(Y.A,{children:e.Name})]},e.Id)}))}))},ne=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},re="user-view-overflow-menu",te="/home",ie="/list",oe=function(){var e,n=(0,s.zy)(),r=ne((0,A.ok)(),1)[0],o=r.get("topParentId")||r.get("parentId"),a=r.get("collectionType"),u=(0,q.A)().activeTab,c=(0,J.IB)(),d=(0,l.A)((function(e){return e.breakpoints.up("xl")})),f=(0,l.A)((function(e){return e.breakpoints.up("lg")})),h=(0,i.useMemo)((function(){var e=3;return d?e=8:f&&(e=5),e-(c.menuLinks||[]).length}),[d,f,c.menuLinks]),y=(0,v.gf)().user,x=(0,K.D)(null==y?void 0:y.Id),b=x.data,m=x.isPending,g=(0,i.useMemo)((function(){var e;return null===(e=null==b?void 0:b.Items)||void 0===e?void 0:e.slice(0,h)}),[h,b]),j=(0,i.useMemo)((function(){var e;return null===(e=null==b?void 0:b.Items)||void 0===e?void 0:e.slice(h)}),[h,b]),w=ne((0,i.useState)(null),2),k=w[0],T=w[1],M=Boolean(k),N=(0,i.useCallback)((function(e){T(e.currentTarget)}),[]),B=(0,i.useCallback)((function(){T(null)}),[]),L=(0,i.useMemo)((function(){return function(e,n,r,t,i){if((0,V.j)(n)||[te,ie].includes(n))return t===D.X.Livetv?null==e?void 0:e.find((function(e){return e.CollectionType===D.X.Livetv})):n===te&&1===i?z:null==e?void 0:e.find((function(e){return e.Id===r}))}(null==b?void 0:b.Items,n.pathname,o,a,u)}),[u,a,o,n.pathname,b]);return m?null:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(O.A,{variant:"text",color:(null==L?void 0:L.Id)===z.Id?"primary":"inherit",startIcon:(0,t.jsx)(P.A,{}),component:A.N_,to:"/home?tab=1",children:S.Ay.translate(z.Name)}),null===(e=c.menuLinks)||void 0===e?void 0:e.map((function(e){return(0,t.jsx)(O.A,{variant:"text",color:"inherit",startIcon:(0,t.jsx)(C.A,{children:e.icon||"link"}),component:"a",href:e.url,target:"_blank",rel:"noopener noreferrer",children:e.name},e.name)})),null==g?void 0:g.map((function(e){return(0,t.jsx)(O.A,{variant:"text",color:e.Id===(null==L?void 0:L.Id)?"primary":"inherit",startIcon:(0,t.jsx)(H,{item:e}),component:A.N_,to:p.appRouter.getRouteUrl(e,{context:e.CollectionType}).substring(1),children:e.Name},e.Id)})),j&&j.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(O.A,{variant:"text",color:"inherit",endIcon:(0,t.jsx)(I.A,{}),"aria-controls":re,"aria-haspopup":"true",onClick:N,children:S.Ay.translate("ButtonMore")}),(0,t.jsx)(ee,{anchorEl:k,id:re,open:M,onMenuClose:B,userViews:j,selectedId:null==L?void 0:L.Id})]})]})},ae=function(e){var n=e.isDrawerAvailable,r=e.isDrawerOpen,i=e.onDrawerButtonClick,o=(0,s.zy)();if("/video"===o.pathname)return null;var a=window.NativeShell&&p.appRouter.canGoBack(o.pathname),l=p.PUBLIC_PATHS.includes(o.pathname);return(0,t.jsx)(y.A,{buttons:!l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(m.A,{}),(0,t.jsx)(b.A,{}),(0,t.jsx)(k,{})]}),isDrawerAvailable:n,isDrawerOpen:r,onDrawerButtonClick:i,isBackButtonAvailable:a,isUserMenuAvailable:!l,children:!n&&(0,t.jsxs)(h.A,{direction:"row",spacing:.5,children:[(0,t.jsx)(x.A,{}),!l&&(0,t.jsx)(oe,{})]})})},le=r(64174),se=r(24786),ue=r(77285),ce=r(89970),de=r(74156),fe=r(28335),ve=r(35117),he=r(79772),pe=r(80099),ye=r(95858),xe=r(42458),be=function(){var e=(0,v.gf)().user,n=(0,s.zy)(),r=(0,K.D)(null==e?void 0:e.Id).data,i=(null==r?void 0:r.Items)||[],o=(0,J.IB)(),a="/home"===n.pathname&&(!n.search||"?tab=0"===n.search);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(fe.A,{sx:{paddingTop:0},children:[(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsx)(xe.A,{})}),(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(ye.A,{to:"/home",selected:a,children:[(0,t.jsx)(W.A,{children:(0,t.jsx)(ce.A,{})}),(0,t.jsx)(Y.A,{primary:S.Ay.translate("Home")})]})}),(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(ye.A,{to:"/home?tab=1",children:[(0,t.jsx)(W.A,{children:(0,t.jsx)(P.A,{})}),(0,t.jsx)(Y.A,{primary:S.Ay.translate("Favorites")})]})})]}),!!o.menuLinks&&o.menuLinks.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(de.A,{}),(0,t.jsx)(fe.A,{children:o.menuLinks.map((function(e){var n;return(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(he.A,{component:"a",href:e.url,target:"_blank",rel:"noopener noreferrer",children:[(0,t.jsx)(W.A,{children:(0,t.jsx)(C.A,{children:null!==(n=e.icon)&&void 0!==n?n:"link"})}),(0,t.jsx)(Y.A,{primary:e.name})]})},"".concat(e.name,"_").concat(e.url))}))})]}),i.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(de.A,{}),(0,t.jsx)(fe.A,{"aria-labelledby":"libraries-subheader",subheader:(0,t.jsx)(pe.A,{component:"div",id:"libraries-subheader",children:S.Ay.translate("HeaderLibraries")}),children:i.map((function(e){return(0,t.jsx)(ve.Ay,{disablePadding:!0,children:(0,t.jsxs)(ye.A,{to:p.appRouter.getRouteUrl(e,{context:e.CollectionType}).substring(1),children:[(0,t.jsx)(W.A,{children:(0,t.jsx)(H,{item:e})}),(0,t.jsx)(Y.A,{primary:e.Name})]})},e.Id)}))})]})]})},me=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},Ae=function(e,n,r){if(r||2===arguments.length)for(var t,i=0,o=n.length;i<o;i++)!t&&i in n||(t||(t=Array.prototype.slice.call(n,0,i)),t[i]=n[i]);return e.concat(t||Array.prototype.slice.call(n))},ge=["video"],je=Ae(Ae([],me(se.ASYNC_USER_ROUTES),!1),me(ue.LEGACY_USER_ROUTES),!1).filter((function(e){return!ge.includes(e.path)})),we=function(e){var n=e.open,r=void 0!==n&&n,i=e.onClose,o=e.onOpen;return(0,t.jsx)(le.A,{open:r,onClose:i,onOpen:o,children:(0,t.jsx)(be,{})})},Se=function(){var e=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}((0,i.useState)(!1),2),n=e[0],r=e[1],h=(0,v.gf)().user,p=(0,s.zy)(),y=(0,l.A)((function(e){return e.breakpoints.up("md")})),x=function(e){return je.some((function(n){return n.path===e||"/".concat(n.path)===e}))}(p.pathname)&&Boolean(h)&&!y,b=n&&x,m=(0,i.useCallback)((function(){r(!n)}),[n,r]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(a.A,{sx:{position:"relative",display:"flex",height:"100%"},children:[(0,t.jsxs)(i.StrictMode,{children:[(0,t.jsx)(d.A,{elevate:!1,children:(0,t.jsx)(o.A,{position:"fixed",sx:{width:"100%",ml:0},children:(0,t.jsx)(ae,{isDrawerAvailable:!y&&x,isDrawerOpen:b,onDrawerButtonClick:m})})}),x&&(0,t.jsx)(we,{open:b,onClose:m,onOpen:m})]}),(0,t.jsx)(a.A,{component:"main",sx:{width:"100%",flexGrow:1},children:(0,t.jsx)(u.A,{children:(0,t.jsx)(s.sv,{})})})]}),(0,t.jsx)(f.A,{}),(0,t.jsx)(c.A,{})]})}},14229:function(e,n,r){r.d(n,{u:function(){return i}});var t=r(46850),i=[{path:"/livetv",views:[{index:0,label:"Programs",view:t.D.Programs,isDefault:!0},{index:1,label:"Guide",view:t.D.Guide},{index:2,label:"Channels",view:t.D.Channels},{index:3,label:"Recordings",view:t.D.Recordings},{index:4,label:"Schedule",view:t.D.Schedule},{index:5,label:"Series",view:t.D.SeriesTimers}]},{path:"/movies",views:[{index:0,label:"Movies",view:t.D.Movies,isDefault:!0},{index:1,label:"Suggestions",view:t.D.Suggestions},{index:2,label:"Favorites",view:t.D.Favorites},{index:3,label:"Collections",view:t.D.Collections},{index:4,label:"Genres",view:t.D.Genres}]},{path:"/music",views:[{index:0,label:"Albums",view:t.D.Albums,isDefault:!0},{index:1,label:"Suggestions",view:t.D.Suggestions},{index:2,label:"HeaderAlbumArtists",view:t.D.AlbumArtists},{index:3,label:"Artists",view:t.D.Artists},{index:4,label:"Playlists",view:t.D.Playlists},{index:5,label:"Songs",view:t.D.Songs},{index:6,label:"Genres",view:t.D.Genres}]},{path:"/tv",views:[{index:0,label:"Shows",view:t.D.Series,isDefault:!0},{index:1,label:"Suggestions",view:t.D.Suggestions},{index:2,label:"TabUpcoming",view:t.D.Upcoming},{index:3,label:"Genres",view:t.D.Genres},{index:4,label:"TabNetworks",view:t.D.Networks},{index:5,label:"Episodes",view:t.D.Episodes}]},{path:"/homevideos",views:[{index:0,label:"Photos",view:t.D.Photos,isDefault:!0},{index:1,label:"HeaderPhotoAlbums",view:t.D.PhotoAlbums,isDefault:!0},{index:2,label:"HeaderVideos",view:t.D.Videos}]}]},37632:function(e,n,r){var t=r(87404),i=r(9055),o=r(713);n.A=function(){var e=(0,t.zy)(),n=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}((0,i.ok)(),2),r=n[0],a=n[1],l=r.get("tab"),s="/livetv"===e.pathname?"livetv":r.get("topParentId");return{searchParams:r,setSearchParams:a,libraryId:s,activeTab:null!==l?parseInt(l,10):(0,o.p)(e.pathname,s)}}},42305:function(e,n,r){r.d(n,{L:function(){return s}});var t=r(8280),i=r(80401),o=r(48272),a=r(69410),l=function(e){return(0,t.j)({queryKey:["SystemInfo"],queryFn:function(n){var r=n.signal;return function(e,n){return r=void 0,t=void 0,a=function(){return function(e,n){var r,t,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(r=1,t&&(i=2&l[0]?t.return:l[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,l[1])).done)return i;switch(t=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,t=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],t=0}finally{r=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,(function(r){switch(r.label){case 0:return[4,(0,o.c)(e).getSystemInfo(n)];case 1:return[2,r.sent().data]}}))},new((i=void 0)||(i=Promise))((function(e,n){function o(e){try{s(a.next(e))}catch(e){n(e)}}function l(e){try{s(a.throw(e))}catch(e){n(e)}}function s(n){var r;n.done?e(n.value):(r=n.value,r instanceof i?r:new i((function(e){e(r)}))).then(o,l)}s((a=a.apply(r,t||[])).next())}));var r,t,i,a}(e,{signal:r,headers:{"Cache-Control":"no-cache"}})},staleTime:1e3,enabled:!!e})},s=function(){var e=(0,a.gf)().api;return(0,i.I)(l(e))}},42458:function(e,n,r){var t=r(62540),i=r(92779),o=r(44790),a=r(60434),l=(r(63696),r(42305)),s=r(95858),u=r(90830);n.A=function(){var e=(0,l.L)().data;return(0,t.jsxs)(s.A,{to:"/",children:[(0,t.jsx)(o.A,{sx:{minWidth:56},children:(0,t.jsx)(i.A,{component:"img",src:u,sx:{height:"2.5rem"}})}),(0,t.jsx)(a.A,{primary:(null==e?void 0:e.ServerName)||"Jellyfin",secondary:null==e?void 0:e.Version,slotProps:{primary:{variant:"h6"}}})]})}},46850:function(e,n,r){var t;r.d(n,{D:function(){return t}}),function(e){e.Albums="albums",e.AlbumArtists="albumartists",e.Artists="artists",e.Channels="channels",e.Collections="collections",e.Episodes="episodes",e.Favorites="favorites",e.Genres="genres",e.Guide="guide",e.Movies="movies",e.Networks="networks",e.Playlists="playlists",e.Programs="programs",e.Recordings="recordings",e.Schedule="schedule",e.Series="series",e.SeriesTimers="seriestimers",e.Songs="songs",e.Suggestions="suggestions",e.Upcoming="upcoming",e.PhotoAlbums="photoalbums",e.Photos="photos",e.Videos="videos",e.Books="books"}(t||(t={}))},59721:function(e,n,r){r.d(n,{D:function(){return u},q:function(){return s}});var t=r(41364),i=r(8280),o=r(80401),a=r(69410),l=function(){return l=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},l.apply(this,arguments)},s=function(e,n,r){return(0,i.j)({queryKey:["User",n,"Views",r],queryFn:function(i){var o=i.signal;return function(e,n,r,i){return o=void 0,a=void 0,u=function(){return function(e,n){var r,t,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=l(0),a.throw=l(1),a.return=l(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(s){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(o=0)),o;)try{if(r=1,t&&(i=2&l[0]?t.return:l[0]?t.throw||((i=t.return)&&i.call(t),0):t.next)&&!(i=i.call(t,l[1])).done)return i;switch(t=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,t=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],t=0}finally{r=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,(function(o){switch(o.label){case 0:return[4,(0,t.a)(e).getUserViews(l(l({},r),{userId:n}),i)];case 1:return[2,o.sent().data]}}))},new((s=void 0)||(s=Promise))((function(e,n){function r(e){try{i(u.next(e))}catch(e){n(e)}}function t(e){try{i(u.throw(e))}catch(e){n(e)}}function i(n){var i;n.done?e(n.value):(i=n.value,i instanceof s?i:new s((function(e){e(i)}))).then(r,t)}i((u=u.apply(o,a||[])).next())}));var o,a,s,u}(e,n,r,{signal:o})},staleTime:1e3,enabled:!!e&&!!n})},u=function(e,n){var r=(0,a.gf)().api;return(0,o.I)(s(r,e,n))}},64174:function(e,n,r){r.d(n,{d:function(){return u}});var t=r(62540),i=r(92779),o=r(19983),a=r(54710),l=r(25295),s=(r(63696),r(34789)),u=240;n.A=function(e){var n=e.children,r=e.open,c=void 0!==r&&r,d=e.onClose,f=e.onOpen;return(0,l.A)((function(e){return e.breakpoints.up("md")}))?(0,t.jsx)(o.Ay,{sx:{width:u,flexShrink:0,"& .MuiDrawer-paper":{width:u,paddingBottom:"4.2rem",boxSizing:"border-box"}},variant:"permanent",anchor:"left",children:n}):(0,t.jsx)(a.A,{anchor:"left",open:c,onClose:d,onOpen:f,disableDiscovery:s.A.iOS,ModalProps:{keepMounted:!0},children:(0,t.jsx)(i.A,{role:"presentation",onClick:d,onKeyDown:d,children:n})})}},75785:function(e,n,r){var t=r(21122),i=r(63696);n.A=function(e){var n=e.children,r=e.elevate,o=void 0!==r&&r,a=(0,t.A)({disableHysteresis:!0,threshold:0}),l=o||a;return i.cloneElement(n,{color:l?"default":"transparent",elevation:l?4:0})}},87214:function(e,n,r){var t=r(62540),i=r(90830),o=r(63703),a=(r(63696),r(9055)),l=r(42305);n.A=function(){var e=(0,l.L)(),n=e.data,r=e.isPending;return(0,t.jsx)(o.A,{variant:"text",size:"large",color:"inherit",startIcon:(0,t.jsx)("img",{src:i,alt:"","aria-hidden":!0,style:{maxHeight:"1.25em",maxWidth:"1.25em"}}),component:a.N_,to:"/",children:r?"":(null==n?void 0:n.ServerName)||"Jellyfin"})}},90830:function(e,n,r){e.exports=r.p+"icon-transparent.baba78f2a106d9baee83.png"},95858:function(e,n,r){var t=r(62540),i=r(79772),o=(r(63696),r(87404)),a=r(9055),l=function(){return l=Object.assign||function(e){for(var n,r=1,t=arguments.length;r<t;r++)for(var i in n=arguments[r])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},l.apply(this,arguments)},s=function(e,n){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var t,i,o=r.call(e),a=[];try{for(;(void 0===n||n-- >0)&&!(t=o.next()).done;)a.push(t.value)}catch(e){i={error:e}}finally{try{t&&!t.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};n.A=function(e){var n=e.children,r=e.to,u=e.includePaths,c=void 0===u?[]:u,d=e.excludePaths,f=void 0===d?[]:d,v=function(e,n){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(r[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(r[t[i]]=e[t[i]])}return r}(e,["children","to","includePaths","excludePaths"]),h=(0,o.zy)(),p=s((0,a.ok)(),1)[0],y=s(r.split("?"),2),x=y[0],b=y[1],m=new URLSearchParams("?".concat(b)),A=function(e,n,r){if(r||2===arguments.length)for(var t,i=0,o=n.length;i<o;i++)!t&&i in n||(t||(t=Array.prototype.slice.call(n,0,i)),t[i]=n[i]);return e.concat(t||Array.prototype.slice.call(n))}([x],s(c),!1).includes(h.pathname)&&!f.includes(h.pathname+h.search)&&(!b||function(e,n){var r,t;try{for(var i=function(e){var n="function"==typeof Symbol&&Symbol.iterator,r=n&&e[n],t=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),o=i.next();!o.done;o=i.next()){var a=o.value;if(n.get(a[0])!==a[1])return!1}}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}return!0}(m,p));return(0,t.jsx)(i.A,l({component:a.N_,to:r,selected:A},v,{children:n}))}}}]);