PageSourceSearch

https://www.tradeuniv.com/_next/static/chunks/5f6a4492bd735e6f.js

js tradeuniv.com collected 2026-10-02 01:46:47 UTC 31,976 bytes, 5 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,278673,e=>{"use strict";let t={FREE:0,LOGGED_IN:10,BASIC:20,PREMIUM:30,PRO:50,ADMIN:900};t.LOGGED_IN,t.LOGGED_IN,t.LOGGED_IN,t.BASIC,t.LOGGED_IN,t.LOGGED_IN,t.ADMIN;let s={[t.FREE]:{name:"Free",description:"Basic access to public features",color:"gray"},[t.LOGGED_IN]:{name:"Member",description:"Access to calendar and extensions",color:"blue"},[t.BASIC]:{name:"Basic",description:"Access to traders library",color:"green"},[t.PREMIUM]:{name:"Premium",description:"Access to chat with creator and trading coach",color:"purple"},[t.PRO]:{name:"Pro",description:"Full access including orderflow",color:"amber"},[t.ADMIN]:{name:"Admin",description:"Full platform administration access",color:"red"}};function a(e){return s[e]?.name??"Unknown"}function i(e){return s[e]?.color??"gray"}function n(e){return!!e&&(!0===e.isAdmin||(Number(e.accessTier)||0)>=t.ADMIN)}function o(e){return!!e&&("OWNER"===e.role||"ADMIN"===e.role)}function r(e){return!!e&&"OWNER"===e.role}function l(e){return!!e&&("OWNER"===e.role||"ADMIN"===e.role||"MODERATOR"===e.role)}t.FREE,t.FREE,t.LOGGED_IN,t.LOGGED_IN,t.LOGGED_IN,t.BASIC,t.BASIC,t.BASIC,t.BASIC,t.PREMIUM,t.PREMIUM,t.PREMIUM,t.PREMIUM,t.PREMIUM,t.PRO,t.PRO,t.PRO,t.PRO,t.PRO,e.s(["ACCESS_TIERS",0,t,"getTierColor",()=>i,"getTierName",()=>a,"isCommunityAdmin",()=>o,"isCommunityModerator",()=>l,"isCommunityOwner",()=>r,"isPlatformAdmin",()=>n])},768834,579473,e=>{"use strict";var t=e.i(271645);let s=e=>{let t,s=new Set,a=(e,a)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=a?a:"object"!=typeof i||null===i)?i:Object.assign({},t,i),s.forEach(s=>s(t,e))}},i=()=>t,n={setState:a,getState:i,getInitialState:()=>o,subscribe:e=>(s.add(e),()=>s.delete(e))},o=t=e(a,i,n);return n},a=e=>{let a=e?s(e):s,i=e=>(function(e,s=e=>e){let a=t.default.useSyncExternalStore(e.subscribe,t.default.useCallback(()=>s(e.getState()),[e,s]),t.default.useCallback(()=>s(e.getInitialState()),[e,s]));return t.default.useDebugValue(a),a})(a,e);return Object.assign(i,a),i},i=e=>e?a(e):a;e.s(["create",()=>i],768834);let n={get url(){return`file://${e.P("node_modules/zustand/esm/middleware.mjs")}`}},o=new Map,r=e=>{let t=o.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([e,t])=>[e,t.getState()])):{}},l=(e,t={})=>(s,a,i)=>{let l,{enabled:c,anonymousActionType:u,store:m,...g}=t;try{l=(null!=c?c:(n.env?n.env.MODE:void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!l)return e(s,a,i);let{connection:f,...p}=((e,t,s)=>{if(void 0===e)return{type:"untracked",connection:t.connect(s)};let a=o.get(s.name);if(a)return{type:"tracked",store:e,...a};let i={connection:t.connect(s),stores:{}};return o.set(s.name,i),{type:"tracked",store:e,...i}})(m,l,g),S=!0;i.setState=(e,t,n)=>{let o=s(e,t);if(!S)return o;let l=void 0===n?{type:u||(e=>{var t,s;if(!e)return;let a=e.split("\n"),i=a.findIndex(e=>e.includes("api.setState"));if(i<0)return;let n=(null==(t=a[i+1])?void 0:t.trim())||"";return null==(s=/.+ (.+) .+/.exec(n))?void 0:s[1]})(Error().stack)||"anonymous"}:"string"==typeof n?{type:n}:n;return void 0===m?null==f||f.send(l,a()):null==f||f.send({...l,type:`${m}/${l.type}`},{...r(g.name),[m]:i.getState()}),o},i.devtools={cleanup:()=>{f&&"function"==typeof f.unsubscribe&&f.unsubscribe(),((e,t)=>{if(void 0===t)return;let s=o.get(e);s&&(delete s.stores[t],0===Object.keys(s.stores).length&&o.delete(e))})(g.name,m)}};let y=(...e)=>{let t=S;S=!1,s(...e),S=t},C=e(i.setState,a,i);if("untracked"===p.type?null==f||f.init(C):(p.stores[p.store]=i,null==f||f.init(Object.fromEntries(Object.entries(p.stores).map(([e,t])=>[e,e===p.store?C:t.getState()])))),i.dispatchFromDevtools&&"function"==typeof i.dispatch){let e=!1,t=i.dispatch;i.dispatch=(...s)=>{(n.env?n.env.MODE:void 0)==="production"||"__setState"!==s[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...s)}}return f.subscribe(e=>{var t;switch(e.type){case"ACTION":if("string"!=typeof e.payload)return void console.error("[zustand devtools middleware] Unsupported action format");return d(e.payload,e=>{if("__setState"===e.type){if(void 0===m)return void y(e.state);1!==Object.keys(e.state).length&&console.error(`
2                    [zustand devtools middleware] Unsupported __setState action format.
3                    When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
4                    and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
5                    `);let t=e.state[m];return void(null==t||JSON.stringify(i.getState())!==JSON.stringify(t)&&y(t))}i.dispatchFromDevtools&&"function"==typeof i.dispatch&&i.dispatch(e)});case"DISPATCH":switch(e.payload.type){case"RESET":if(y(C),void 0===m)return null==f?void 0:f.init(i.getState());return null==f?void 0:f.init(r(g.name));
5case"COMMIT":if(void 0===m){null==f||f.init(i.getState());break}return null==f?void 0:f.init(r(g.name));case"ROLLBACK":return d(e.state,e=>{if(void 0===m){y(e),null==f||f.init(i.getState());return}y(e[m]),null==f||f.init(r(g.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return d(e.state,e=>{void 0===m?y(e):JSON.stringify(i.getState())!==JSON.stringify(e[m])&&y(e[m])});case"IMPORT_STATE":{let{nextLiftedState:s}=e.payload,a=null==(t=s.computedStates.slice(-1)[0])?void 0:t.state;if(!a)return;void 0===m?y(a):y(a[m]),null==f||f.send(null,s);break}case"PAUSE_RECORDING":return S=!S}return}}),C},d=(e,t)=>{let s;try{s=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==s&&t(s)};function c(e,t){let s;try{s=e()}catch(e){return}return{getItem:e=>{var a;let i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),n=null!=(a=s.getItem(e))?a:null;return n instanceof Promise?n.then(i):i(n)},setItem:(e,a)=>s.setItem(e,JSON.stringify(a,null==t?void 0:t.replacer)),removeItem:e=>s.removeItem(e)}}let u=e=>t=>{try{let s=e(t);if(s instanceof Promise)return s;return{then:e=>u(e)(s),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>u(t)(e)}}},m=(e,t)=>(s,a,i)=>{let n,o={storage:c(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},r=!1,l=new Set,d=new Set,m=o.storage;if(!m)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),s(...e)},a,i);let g=()=>{let e=o.partialize({...a()});return m.setItem(o.name,{state:e,version:o.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),g());let p=e((...e)=>(s(...e),g()),a,i);i.getInitialState=()=>p;let S=()=>{var e,t;if(!m)return;r=!1,l.forEach(e=>{var t;return e(null!=(t=a())?t:p)});let i=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=a())?e:p))||void 0;return u(m.getItem.bind(m))(o.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];else{if(o.migrate){let t=o.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(e=>{var t;let[i,r]=e;if(s(n=o.merge(r,null!=(t=a())?t:p),!0),i)return g()}).then(()=>{null==i||i(n,void 0),n=a(),r=!0,d.forEach(e=>e(n))}).catch(e=>{null==i||i(void 0,e)})};return i.persist={setOptions:e=>{o={...o,...e},e.storage&&(m=e.storage)},clearStorage:()=>{null==m||m.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>S(),hasHydrated:()=>r,onHydrate:e=>(l.add(e),()=>{l.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},o.skipHydration||S(),n||p};e.s(["createJSONStorage",()=>c,"devtools",()=>l,"persist",()=>m],579473)},917363,631197,e=>{"use strict";var t=e.i(768834),s=e.i(579473),a=e.i(271645);let i=(e,t)=>{let s=e instanceof Map?e:new Map(e.entries()),a=t instanceof Map?t:new Map(t.entries());if(s.size!==a.size)return!1;for(let[e,t]of s)if(!a.has(e)||!Object.is(t,a.get(e)))return!1;return!0};function n(e){let t=a.default.useRef(void 0);return s=>{let a=e(s);return!function(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;if(Symbol.iterator in e&&Symbol.iterator in t){if("entries"in e&&"entries"in t)return i(e,t);let s=e[Symbol.iterator](),a=t[Symbol.iterator](),n=s.next(),o=a.next();for(;!n.done&&!o.done;){if(!Object.is(n.value,o.value))return!1;n=s.next(),o=a.next()}return!!n.done&&!!o.done}return i({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}(t.current,a)?t.current=a:t.current}}var o=e.i(278673);let r={community:null,isOwner:!1,isAdmin:!1,isModerator:!1,isMember:!1,isBanned:!1,membership:null,enabledFeatures:null,lockedFeatures:null,teaserSettings:null,isPrivateCommunity:!1,allowPromotionCodes:!1,hasClaimableIndicators:!1,hasAIModels:!1,userCommunities:[],communityTiers:[],ttsConfig:null,notificationCount:0,feedMutedTags:{}},l={selectedModelId:null,activeSessionId:null,models:[],sessions:[],messages:[],input:"",isLoading:!1,isLoadingHistory:!1,error:null,isInsufficientCredits:!1,credits:0,showHistory:!1,showChatHistory:!1,showTopupModal:!1,showPurchaseSuccess:!1,showPurchaseFailed:!1,purchasedCredits:null,showClearConfirm:!1,isHiding:!1,selectedLanguage:"en",responseLength:"medium",sessionCostData:null,streamingStatus:null,messageFeedback:{}},d=e=>({...l,setSelectedModelId:t=>e({selectedModelId:t}),setActiveSessionId:t=>e({activeSessionId:t}),setModels:t=>e({models:t}),setSessions:t=>e({sessions:t}),setMessages:t=>e({messages:t}),appendMessage:t=>e(e=>({messages:[...e.messages,t]})),updateLastMessage:(t,s)=>e(e=>{let a=[...e.messages];return a.length>0&&(a[a.length-1]={...a[a.length-1],content:t,...s&&{costData:s}}),{messages:a}}),removeLastMessage:()=>e(e=>({messages:e.messages.slice(0,-1)})),setInput:t=>e({input:t}),setIsLoading:t=>e({isLoading:t}),setIsLoadingHistory:t=>e({isLoadingHistory:t}),setError:t=>e({error:t}),setIsInsufficientCredits:t=>e({isInsufficientCredits:t}),setCredits:t=>e({credits:t}),setShowHistory:t=>e({showHistory:t}),setShowChatHistory:t=>e({showChatHistory:t}),setShowTopupModal:t=>e({showTopupModal:t}),setShowPurchaseSuccess:t=>e({showPurchaseSuccess:t}),setShowPurchaseFailed:t=>e({showPurchaseFailed:t}),setPurchasedCredits:t=>e({purchasedCredits:t}),setShowClearConfirm:t=>e({showClearConfirm:t}),setIsHiding:t=>e({isHiding:t}),setSelectedLanguage:t=>e({selectedLanguage:t}),setResponseLength:t=>e({responseLength:t}),setSessionCostData:t=>e({sessionCostData:t}),setStreamingStatus:t=>e({streamingStatus:t}),setMessageFeedback:(t,s)=>e(e=>({messageFeedback:{...e.messageFeedback,[t]:s}})),setMessageChatId:(t,s)=>e(e=>{let a=[...e.messages];return a[t]&&(a[t]={...a[t],chatId:s}),{messages:a}}),selectModel:(t,s)=>{let a=s.find(e=>e.id===t);(!a||a.hasAccess)&&e({selectedModelId:t,activeSessionId:null,messages:[],error:null,isInsufficientCredits:!1,showChatHistory:!1,sessionCostData:null,streamingStatus:null,messageFeedback:{}})},startNewConversation:()=>e({activeSessionId:null,messages:[],error:null,isInsufficientCredits:!1,showChatHistory:!1,sessionCostData:null,streamingStatus:null,messageFeedback:{}}),selectSession:t=>e({selectedModelId:t.modelId,activeSessionId:t.sessionId,showHistory:!1,showChatHistory:!1}),clearChat:()=>e({messages:[],activeSessionId:null,error:null,isInsufficientCredits:!1,sessionCostData:null,showClearConfirm:!1,streamingStatus:null,messageFeedback:{}}),resetAIChat:()=>e(l)});e.s(["RESPONSE_LENGTH_OPTIONS",0,[{value:"very_short",label:"Very Short",description:"1-2 sentences, straight to the point"},{value:"short",label:"Short",description:"2-3 sentences with minimal elaboration"},{value:"medium",label:"Medium",description:"2-4 paragraphs, balanced detail"},{value:"long",label:"Long",description:"4-6 paragraphs with examples"},{value:"very_long",label:"Very Long",description:"6+ paragraphs, comprehensive detail"}],"createAIChatSlice",0,d],631197);let c={title:"",content:"",categoryId:"",attachments:[]},u={currentCategory:"all",currentSort:"latest",currentTimeframe:"all",currentPage:1,perPage:10,categories:[],isCreateDialogOpen:!1,postDraft:c,isCreatingPost:!1,isCreatingCategory:!1,showNewCategoryInput:!1,newCategoryName:"",newCategoryEmoji:""},m={hasFullAccess:!1,showTeaser:!1,isBlocked:!0},g={hasFullAccess:!0,showTeaser:!1,isBlocked:!1},f={access:{discussions:m,library:m,events:m,calendar:m,leaderboard:m,ai:m,feed:m}};function p(e,t,s,a,i){return e&&s||(a?e&&t:e)?g:{hasFullAccess:!1,showTeaser:i,isBlocked:!i}}let S=[],y={reactions:{},pendingOperations:new Map},C=()=>({searchQuery:"",activeFilter:"all",sortBy:"title",expandedFolders:new Set,selectedItemId:null,locallyCompletedItems:new Set,lastAccessedAt:Date.now()}),h="tradeuniv_video_positions";function I(){try{let e=localStorage.getItem(h);return e?JSON.parse(e):{}}catch{return{}}}function w(e){try{localStorage.setItem(h,JSON.stringify(e))}catch{}}let b={time:"all",location:"all",categoryIds:[]},M=()=>({currentDate:new Date,viewMode:"grid",expandedDates:new Set,filters:{...b}}),N={notifications:[],unreadCount:0,isNotificationsInitialized:!1,isNotificationsLoading:!1,notificationsError:null,notificationPagination:{limit:20,hasMore:!0,isLoadingMore:!1},lastNotificationFetch:null},v=(0,t.create)()((0,s.devtools)((...e)=>({...(e=>({...r,setCommunity:({community:t,membership:s,enabledFeatures:a,lockedFeatures:i,teaserSettings:n,isPrivateCommunity:r,allowPromotionCodes:l,hasClaimableIndicators:d,hasAIModels:c,userCommunities:u,communityTiers:m,ttsConfig:g,notificationCount:f,isBanned:p})=>{e({community:t,membership:s,enabledFeatures:a,lockedFeatures:i,teaserSettings:n,isPrivateCommunity:r,allowPromotionCodes:l,hasClaimableIndicators:d,hasAIModels:c,userCommunities:u,communityTiers:m,ttsConfig:g,notificationCount:f,isBanned:p,isOwner:(0,o.isCommunityOwner)(s),isAdmin:(0,o.isCommunityAdmin)(s),isModerator:(0,o.isCommunityModerator)(s),isMember:!!s})},setNotificationCount:t=>e({notificationCount:t}),decrementNotificationCount:()=>e(e=>({notificationCount:Math.max(0,e.notificationCount-1)})),setFeedMutedTags:(t,s)=>e(e=>({feedMutedTags:{...e.feedMutedTags,[t]:s}})),setTtsConfig:t=>e({ttsConfig:t}),resetCommunity:()=>e(r)}))(...e),...(e=>({theme:"system",sidebarOpen:!0,setTheme:t=>e({theme:t}),toggleSidebar:()=>e(e=>({sidebarOpen:!e.sidebarOpen}
5)),setSidebarOpen:t=>e({sidebarOpen:t})}))(...e),...d(...e),...((e,t)=>({...u,setCurrentCategory:t=>e({currentCategory:t,currentPage:1}),setCurrentSort:t=>{let s={currentSort:t,currentPage:1};"top"!==t&&(s.currentTimeframe="all"),e(s)},setCurrentTimeframe:t=>e({currentTimeframe:t,currentPage:1}),setCurrentPage:t=>e({currentPage:t}),setPerPage:t=>e({perPage:t}),setCategories:s=>{if(e({categories:s}),!t().postDraft.categoryId&&s.length>0){let t=s.find(e=>"general-discussion"===e.slug)||s[0];t&&e(e=>({postDraft:{...e.postDraft,categoryId:t.id}}))}},addCategory:t=>e(e=>({categories:[...e.categories,t]})),openCreateDialog:()=>e({isCreateDialogOpen:!0}),closeCreateDialog:()=>e({isCreateDialogOpen:!1}),setPostDraft:t=>e(e=>({postDraft:{...e.postDraft,...t}})),resetPostDraft:()=>{let s=t(),a=s.categories.find(e=>"general-discussion"===e.slug)||s.categories[0];e({postDraft:{...c,categoryId:a?.id||""}})},addAttachment:t=>e(e=>({postDraft:{...e.postDraft,attachments:[...e.postDraft.attachments,{...t,id:`${Date.now()}-${Math.random()}`}]}})),removeAttachment:t=>e(e=>({postDraft:{...e.postDraft,attachments:e.postDraft.attachments.filter(e=>e.id!==t)}})),setIsCreatingPost:t=>e({isCreatingPost:t}),setIsCreatingCategory:t=>e({isCreatingCategory:t}),setShowNewCategoryInput:t=>e({showNewCategoryInput:t}),setNewCategoryName:t=>e({newCategoryName:t}),setNewCategoryEmoji:t=>e({newCategoryEmoji:t}),resetNewCategory:()=>e({showNewCategoryInput:!1,newCategoryName:"",newCategoryEmoji:"",isCreatingCategory:!1}),buildDiscussionsUrl:(e,s)=>{let a=t(),i=new URLSearchParams,n=s?.category??a.currentCategory,o=s?.sort??a.currentSort,r=s?.timeframe??a.currentTimeframe,l=s?.page??a.currentPage;"all"!==n&&i.set("category",n),"latest"!==o&&i.set("sort",o),"top"===o&&"all"!==r&&i.set("t",r),l>1&&i.set("page",l.toString());let d=i.toString();return`/c/${e}/discussions${d?`?${d}`:""}`},resetForum:()=>e(u)}))(...e),...((e,t)=>({...f,computeAccess:t=>{let{isMember:s,hasPaidTier:a,isAdmin:i,isPaidCommunity:n,teaserSettings:o}=t;e({access:{discussions:p(s,a,i,n,o.discussions),library:p(s,a,i,n,o.library),events:p(s,a,i,n,o.events),calendar:p(s,a,i,n,o.calendar),leaderboard:p(s,a,i,n,o.leaderboard),ai:p(s,a,i,n,o.ai),feed:p(s,a,i,n,o.feed)}})},resetAccess:()=>e(f),canAccessFeature:e=>t().access[e].hasFullAccess,shouldShowTeaser:e=>t().access[e].showTeaser,isFeatureBlocked:e=>t().access[e].isBlocked}))(...e),...((e,t)=>({...y,setPostReactions:(t,s)=>{e(e=>({reactions:{...e.reactions,[t]:s}}))},toggleReaction:(s,a)=>{let i,n=t().reactions[s]||[],o=`${s}-${a}`,r=[...n],l=n.find(e=>e.emoji===a),d=l?.userReacted?"remove":"add";i="add"===d?l?n.map(e=>e.emoji===a?{...e,count:e.count+1,userReacted:!0}:e):[...n,{emoji:a,count:1,userReacted:!0}]:l&&l.count<=1?n.filter(e=>e.emoji!==a):l?n.map(e=>e.emoji===a?{...e,count:e.count-1,userReacted:!1}:e):n,e(e=>({reactions:{...e.reactions,[s]:i},pendingOperations:new Map(e.pendingOperations).set(o,{postId:s,emoji:a,action:d,previousState:r})}))},commitReaction:(t,s)=>{let a=`${t}-${s}`;e(e=>{let t=new Map(e.pendingOperations);return t.delete(a),{pendingOperations:t}})},rollbackReaction:(s,a)=>{let i=t(),n=`${s}-${a}`,o=i.pendingOperations.get(n);o&&e(e=>{let t=new Map(e.pendingOperations);return t.delete(n),{reactions:{...e.reactions,[s]:o.previousState},pendingOperations:t}})},getPostReactions:e=>t().reactions[e]||S,batchSetReactions:t=>{e(e=>({reactions:{...e.reactions,...t}}))},clearPostReactions:t=>{e(e=>{let s={...e.reactions};return delete s[t],{reactions:s}})},resetPostReactions:()=>e(y)}))(...e),...((e,t)=>({libraryStates:{},getLibraryState:e=>{let s=t().libraryStates;return s[e]?s[e]:(t().initializeLibraryState(e),t().libraryStates[e]||C())},getSearchQuery:e=>t().getLibraryState(e).searchQuery,getActiveFilter:e=>t().getLibraryState(e).activeFilter,getSortBy:e=>t().getLibraryState(e).sortBy,getExpandedFolders:e=>t().getLibraryState(e).expandedFolders,getSelectedItemId:e=>t().getLibraryState(e).selectedItemId,isItemLocallyCompleted:(e,s)=>t().getLibraryState(e).locallyCompletedItems.has(s),setSearchQuery:(t,s)=>{e(e=>({libraryStates:{...e.libraryStates,[t]:{...e.libraryStates[t]||C(),searchQuery:s,lastAccessedAt:Date.now()}}}))},setActiveFilter:(t,s)=>{e(e=>({libraryStates:{...e.libraryStates,[t]:{...e.libraryStates[t]||C(),activeFilter:s,lastAccessedAt:Date.now()}}}))},setSortBy:(t,s)=>{e(e=>({libraryStates:{...e.libraryStates,[t]:{...e.libraryStates[t]||C(),sortBy:s,lastAccessedAt:Date.now()}}}))},setExpandedFolders:(t,s)=>{e(e=>({libraryStates:{...e.libraryStates,[t]:{...e.libraryStates[t]||C(),expandedFolders:s,lastAccessedAt:Date.now()}}}))},toggleFolder:(t,s)=>{e(e=>{let a=e.libraryStates[t]||C(),i=new Set(a.expandedFolders);return i.has(s)?i.delete(s):i.add(s),{libraryStates:{...e.libraryStates,[t]:{...a,expandedFolders:i,lastAccessedAt:Date.now()}}}})},expandAllFolders:(t,s)=>{e(e=>({libraryStates:{...e.libraryStates,[t]:{...e.libraryStates[t]||C(),expandedFolders:new Set(s),lastAccessedAt:Date.now()}}}))},collapseAllFolders:t=>{e(e=>({libraryStates:{...e.libraryStates,[t]:{...e.libraryStates[t]||C(),expandedFolders:new Set,lastAccessedAt:Date.now()}}}))},setSelectedItemId:(t,s)=>{e(e=>({libraryStates:{...e.libraryStates,[t]:{...e.libraryStates[t]||C(),selectedItemId:s,lastAccessedAt:Date.now()}}}))},markItemCompleted:(t,s)=>{e(e=>{let a=e.libraryStates[t]||C(),i=new Set(a.locallyCompletedItems);return i.add(s),{libraryStates:{...e.libraryStates,[t]:{...a,locallyCompletedItems:i,lastAccessedAt:Date.now()}}}})},unmarkItemCompleted:(t,s)=>{e(e=>{let a=e.libraryStates[t]||C(),i=new Set(a.locallyCompletedItems);return i.delete(s),{libraryStates:{...e.libraryStates,[t]:{...a,locallyCompletedItems:i,lastAccessedAt:Date.now()}}}})},clearLocalCompletions:t=>{e(e=>({libraryStates:{...e.libraryStates,[t]:{...e.libraryStates[t]||C(),locallyCompletedItems:new Set,lastAccessedAt:Date.now()}}}))},initializeLibraryState:(t,s=[])=>{e(e=>e.libraryStates[t]?e:{libraryStates:{...e.libraryStates,[t]:{...C(),expandedFolders:new Set(s)}}})},resetLibraryState:t=>{e(e=>({libraryStates:{...e.libraryStates,[t]:C()}}))},clearAllLibraryStates:()=>{e({libraryStates:{}})},getVideoPosition:e=>{let t=I()[e];return t?Date.now()-t.updatedAt>2592e6?null:t:null},setVideoPosition:(e,t,s)=>{if(t<5||s>0&&t/s>.95){let t=I();delete t[e],w(t);return}let a=I();a[e]={position:t,duration:s,updatedAt:Date.now()},w(a)},clearVideoPosition:e=>{let t=I();delete t[e],w(t)},clearAllVideoPositions:()=>{localStorage.removeItem(h)}}))(...e),...((e,t)=>
5({communityCalendars:new Map,getCalendarState:s=>{let a=t().communityCalendars.get(s);if(!a){let t=M();return e(e=>({communityCalendars:new Map(e.communityCalendars).set(s,t)})),t}return a},getCurrentDate:e=>t().getCalendarState(e).currentDate,getViewMode:e=>t().getCalendarState(e).viewMode,getExpandedDates:e=>t().getCalendarState(e).expandedDates,getCalendarFilters:e=>t().getCalendarState(e).filters,setCurrentDate:(t,s)=>{e(e=>{let a=new Map(e.communityCalendars),i=e.getCalendarState(t);return a.set(t,{...i,currentDate:s}),{communityCalendars:a}})},setViewMode:(t,s)=>{e(e=>{let a=new Map(e.communityCalendars),i=e.getCalendarState(t);return a.set(t,{...i,viewMode:s}),{communityCalendars:a}})},toggleDateExpansion:(t,s)=>{e(e=>{let a=new Map(e.communityCalendars),i=e.getCalendarState(t),n=new Set(i.expandedDates);return n.has(s)?n.delete(s):n.add(s),a.set(t,{...i,expandedDates:n}),{communityCalendars:a}})},clearExpandedDates:t=>{e(e=>{let s=new Map(e.communityCalendars),a=e.getCalendarState(t);return s.set(t,{...a,expandedDates:new Set}),{communityCalendars:s}})},setTimeFilter:(t,s)=>{e(e=>{let a=new Map(e.communityCalendars),i=e.getCalendarState(t),n={...i.filters,time:s};return a.set(t,{...i,filters:n}),{communityCalendars:a}})},setLocationFilter:(t,s)=>{e(e=>{let a=new Map(e.communityCalendars),i=e.getCalendarState(t),n={...i.filters,location:s};return a.set(t,{...i,filters:n}),{communityCalendars:a}})},setCategoryFilter:(t,s)=>{e(e=>{let a=new Map(e.communityCalendars),i=e.getCalendarState(t),n={...i.filters,categoryIds:s};return a.set(t,{...i,filters:n}),{communityCalendars:a}})},resetCalendarFilters:t=>{e(e=>{let s=new Map(e.communityCalendars),a=e.getCalendarState(t);return s.set(t,{...a,filters:{...b}}),{communityCalendars:s}})},resetCalendar:t=>{e(e=>{let s=new Map(e.communityCalendars);return s.set(t,M()),{communityCalendars:s}})},resetAllCalendars:()=>{e({communityCalendars:new Map})},goToPreviousMonth:t=>{e(e=>{let s=new Map(e.communityCalendars),a=e.getCalendarState(t),i=new Date(a.currentDate);return i.setMonth(i.getMonth()-1),s.set(t,{...a,currentDate:i,expandedDates:new Set}),{communityCalendars:s}})},goToNextMonth:t=>{e(e=>{let s=new Map(e.communityCalendars),a=e.getCalendarState(t),i=new Date(a.currentDate);return i.setMonth(i.getMonth()+1),s.set(t,{...a,currentDate:i,expandedDates:new Set}),{communityCalendars:s}})},goToToday:t=>{e(e=>{let s=new Map(e.communityCalendars),a=e.getCalendarState(t);return s.set(t,{...a,currentDate:new Date,expandedDates:new Set}),{communityCalendars:s}})}}))(...e),...((e,t)=>({...N,setNotifications:t=>e({notifications:t,lastNotificationFetch:Date.now()}),addNotification:t=>e(e=>e.notifications.some(e=>e.id===t.id)?e:{notifications:[t,...e.notifications],unreadCount:t.isRead?e.unreadCount:e.unreadCount+1,lastNotificationFetch:Date.now()}),addNotifications:t=>e(e=>{let s=new Set(e.notifications.map(e=>e.id)),a=t.filter(e=>!s.has(e.id));if(0===a.length)return e;let i=a.filter(e=>!e.isRead).length;return{notifications:[...a,...e.notifications],unreadCount:e.unreadCount+i,lastNotificationFetch:Date.now()}}),updateNotification:(t,s)=>e(e=>({notifications:e.notifications.map(e=>e.id===t?{...e,...s}:e),lastNotificationFetch:Date.now()})),removeNotification:t=>e(e=>{let s=e.notifications.find(e=>e.id===t);return s?{notifications:e.notifications.filter(e=>e.id!==t),unreadCount:s.isRead?e.unreadCount:Math.max(0,e.unreadCount-1),lastNotificationFetch:Date.now()}:e}),setUnreadNotificationCount:t=>e({unreadCount:Math.max(0,t)}),decrementUnreadNotificationCount:(t=1)=>e(e=>({unreadCount:Math.max(0,e.unreadCount-t)})),setIsNotificationsLoading:t=>e({isNotificationsLoading:t}),setNotificationsError:t=>e({notificationsError:t}),setIsNotificationsInitialized:t=>e({isNotificationsInitialized:t}),markNotificationsAsRead:t=>e(e=>{let s=new Set(t),a=e.notifications.map(e=>s.has(e.id)&&!e.isRead?{...e,isRead:!0}:e),i=t.filter(t=>{let s=e.notifications.find(e=>e.id===t);return s&&!s.isRead}).length;return{notifications:a,unreadCount:Math.max(0,e.unreadCount-i),lastNotificationFetch:Date.now()}}),markNotificationsAsUnread:t=>e(e=>{let s=new Set(t),a=e.notifications.map(e=>s.has(e.id)&&e.isRead?{...e,isRead:!1}:e),i=t.filter(t=>{let s=e.notifications.find(e=>e.id===t);return s&&s.isRead}).length;return{notifications:a,unreadCount:e.unreadCount+i,lastNotificationFetch:Date.now()}}),markAllNotificationsAsRead:()=>e(e=>({notifications:e.notifications.map(e=>e.isRead?e:{...e,isRead:!0}),unreadCount:0,lastNotificationFetch:Date.now()})),setNotificationHasMore:t=>e(e=>({notificationPagination:{...e.notificationPagination,hasMore:t}})),setIsLoadingMoreNotifications:t=>e(e=>({notificationPagination:{...e.notificationPagination,isLoadingMore:t}})),appendNotifications:t=>e(e=>{let s=new Set(e.notifications.map(e=>e.id)),a=t.filter(e=>!s.has(e.id));return 0===a.length?{notificationPagination:{...e.notificationPagination,hasMore:!1}}:{notifications:[...e.notifications,...a],notificationPagination:{...e.notificationPagination,hasMore:a.length===e.notificationPagination.limit},lastNotificationFetch:Date.now()}}),getUnreadNotifications:()=>t().notifications.filter(e=>!e.isRead),getReadNotifications:()=>t().notifications.filter(e=>e.isRead),getNotificationById:e=>t().notifications.find(t=>
5t.id===e),hasUnreadNotifications:()=>t().unreadCount>0,clearAllNotifications:()=>e({notifications:[],unreadCount:0,lastNotificationFetch:Date.now()}),resetNotificationsState:()=>e(N)}))(...e)}),{name:"app-store"}));e.s(["useAIChatActions",0,()=>v(n(e=>({setSelectedModelId:e.setSelectedModelId,setActiveSessionId:e.setActiveSessionId,setModels:e.setModels,setSessions:e.setSessions,setMessages:e.setMessages,appendMessage:e.appendMessage,updateLastMessage:e.updateLastMessage,removeLastMessage:e.removeLastMessage,setInput:e.setInput,setIsLoading:e.setIsLoading,setIsLoadingHistory:e.setIsLoadingHistory,setError:e.setError,setIsInsufficientCredits:e.setIsInsufficientCredits,setCredits:e.setCredits,setShowHistory:e.setShowHistory,setShowChatHistory:e.setShowChatHistory,setShowTopupModal:e.setShowTopupModal,setShowPurchaseSuccess:e.setShowPurchaseSuccess,setShowPurchaseFailed:e.setShowPurchaseFailed,setPurchasedCredits:e.setPurchasedCredits,setShowClearConfirm:e.setShowClearConfirm,setIsHiding:e.setIsHiding,setSelectedLanguage:e.setSelectedLanguage,setResponseLength:e.setResponseLength,setSessionCostData:e.setSessionCostData,setStreamingStatus:e.setStreamingStatus,setMessageFeedback:e.setMessageFeedback,setMessageChatId:e.setMessageChatId,selectModel:e.selectModel,startNewConversation:e.startNewConversation,selectSession:e.selectSession,clearChat:e.clearChat,resetAIChat:e.resetAIChat}))),"useAIChatStore",0,()=>v(n(e=>({selectedModelId:e.selectedModelId,activeSessionId:e.activeSessionId,models:e.models,sessions:e.sessions,messages:e.messages,input:e.input,isLoading:e.isLoading,isLoadingHistory:e.isLoadingHistory,error:e.error,isInsufficientCredits:e.isInsufficientCredits,credits:e.credits,showHistory:e.showHistory,showChatHistory:e.showChatHistory,showTopupModal:e.showTopupModal,showPurchaseSuccess:e.showPurchaseSuccess,showPurchaseFailed:e.showPurchaseFailed,purchasedCredits:e.purchasedCredits,showClearConfirm:e.showClearConfirm,isHiding:e.isHiding,selectedLanguage:e.selectedLanguage,responseLength:e.responseLength,sessionCostData:e.sessionCostData,streamingStatus:e.streamingStatus,messageFeedback:e.messageFeedback}))),"useAccessibleModels",0,()=>v(n(e=>e.models.filter(e=>e.hasAccess))),"useAppStore",0,v,"useCommunityInfo",0,()=>v(e=>e.community),"useCommunitySlug",0,()=>v(e=>e.community?.slug??null),"useCommunityStore",0,()=>v(n(e=>({community:e.community,isOwner:e.isOwner,isAdmin:e.isAdmin,isModerator:e.isModerator,isMember:e.isMember,membership:e.membership,enabledFeatures:e.enabledFeatures,notificationCount:e.notificationCount}))),"useCommunityTiers",0,()=>v(e=>e.communityTiers),"useEnabledFeatures",0,()=>v(e=>e.enabledFeatures),"useHasAIModels",0,()=>v(e=>e.hasAIModels),"useHasClaimableIndicators",0,()=>v(e=>e.hasClaimableIndicators),"useIsAdmin",0,()=>v(e=>e.isAdmin),"useIsMember",0,()=>v(e=>e.isMember),"useIsNotificationsInitialized",0,()=>v(e=>e.isNotificationsInitialized),"useLibraryActions",0,()=>v(n(e=>({setSearchQuery:e.setSearchQuery,setActiveFilter:e.setActiveFilter,setSortBy:e.setSortBy,setExpandedFolders:e.setExpandedFolders,toggleFolder:e.toggleFolder,expandAllFolders:e.expandAllFolders,collapseAllFolders:e.collapseAllFolders,setSelectedItemId:e.setSelectedItemId,markItemCompleted:e.markItemCompleted,unmarkItemCompleted:e.unmarkItemCompleted,clearLocalCompletions:e.clearLocalCompletions,initializeLibraryState:e.initializeLibraryState,resetLibraryState:e.resetLibraryState,clearAllLibraryStates:e.clearAllLibraryStates,getVideoPosition:e.getVideoPosition,setVideoPosition:e.setVideoPosition,clearVideoPosition:e.clearVideoPosition,clearAllVideoPositions:e.clearAllVideoPositions}))),"useLockedModels",0,()=>v(n(e=>e.models.filter(e=>!e.hasAccess))),"useMembership",0,()=>v(e=>e.membership),"useModelSessions",0,()=>v(n(e=>e.sessions.filter(t=>t.modelId===e.selectedModelId))),"useNotificationCount",0,()=>v(e=>e.notificationCount),"useNotifications",0,()=>v(e=>e.notifications),"useNotificationsActions",0,()=>v(n(e=>({setNotifications:e.setNotifications,addNotification:e.addNotification,addNotifications:e.addNotifications,updateNotification:e.updateNotification,removeNotification:e.removeNotification,setUnreadNotificationCount:e.setUnreadNotificationCount,decrementUnreadNotificationCount:e.decrementUnreadNotificationCount,setIsNotificationsLoading:e.setIsNotificationsLoading,setNotificationsError:e.setN
5otificationsError,setIsNotificationsInitialized:e.setIsNotificationsInitialized,markNotificationsAsRead:e.markNotificationsAsRead,markNotificationsAsUnread:e.markNotificationsAsUnread,markAllNotificationsAsRead:e.markAllNotificationsAsRead,setNotificationHasMore:e.setNotificationHasMore,setIsLoadingMoreNotifications:e.setIsLoadingMoreNotifications,appendNotifications:e.appendNotifications,getUnreadNotifications:e.getUnreadNotifications,getReadNotifications:e.getReadNotifications,getNotificationById:e.getNotificationById,hasUnreadNotifications:e.hasUnreadNotifications,clearAllNotifications:e.clearAllNotifications,resetNotificationsState:e.resetNotificationsState}))),"usePostReactions",0,e=>v(t=>t.reactions[e]??S),"usePostReactionsActions",0,()=>v(n(e=>({setPostReactions:e.setPostReactions,toggleReaction:e.toggleReaction,commitReaction:e.commitReaction,rollbackReaction:e.rollbackReaction,batchSetReactions:e.batchSetReactions,clearPostReactions:e.clearPostReactions,resetPostReactions:e.resetPostReactions}))),"useSelectedModel",0,()=>v(n(e=>e.models.find(t=>t.id===e.selectedModelId)??null)),"useTtsConfig",0,()=>v(e=>e.ttsConfig),"useUnreadNotificationCount",0,()=>v(e=>e.unreadCount)],917363)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.