module . exports = [ 47616 , a =>{ "use strict" ; var b = a . i ( 87924 ), c = a . i ( 72131 ), d = a . i ( 35112 ); let e = null ; function f ( a ){ e = a , a ? localStorage . setItem ( "forumlify-token" , a ) : localStorage . removeItem ( "forumlify-token" )} async function g ( a , b = {}){ let c = {... b . headers || {}}; b . body && "string" == typeof b . body && ( c [ "Content-Type" ] = "application/json" ), e && ( c . Authorization = "Bearer " + e ); let d = await fetch ( "/api" + a ,{... b , headers : c }), f = await d . json (). catch (()=>({})); if ( ! d . ok || f . error ){ let a = Error ( f . error || "请求失败" ); throw a . status = d . status , a } return f } let h = { async login ( a , b ){ let c = await g ( "/auth/login" ,{ method : "POST" , body : JSON . stringify ({ email : a , password : b })}); return c . token && f ( c . token ), c }, getCaptcha : ()=> g ( "/captcha" ), register : ( a , b , c , d )=> g ( "/auth/register" ,{ method : "POST" , body : JSON . stringify ({ email : a , password : b , username : c , captcha_id : d ? . id , captcha_answer : d ? . answer , captcha_sig : d ? . sig })}), logout (){ f ( null )}, getMe : ()=> g ( "/auth/me" ), getPosts ( a , b , c = 1 , d = 20 ){ let e = "/posts?sort=" + ( a || "latest" ) + "&page=" + c + "&limit=" + d ; return b && ( e += "&user_id=" + b ), g ( e )}, getPost : a => g ( "/posts/" + a ), createPost : ( a , b , c , d )=> g ( "/posts" ,{ method : "POST" , body : JSON . stringify ({ title : a , content : b , images : c || [], captcha_id : d ? . id , captcha_answer : d ? . answer , captcha_sig : d ? . sig })}), updatePost : ( a , b , c , d )=> g ( "/posts/" + a ,{ method : "PUT" , body : JSON . stringify ({ title : b , content : c , images : d })}), togglePinPost : a => g ( "/posts/" + a + "/pin" ,{ method : "PUT" }), deletePost : a => g ( "/posts/" + a ,{ method : "DELETE" }), getReplies : a => g ( "/posts/" + a + "/replies" ), createReply : ( a , b , c , d )=> g ( "/posts/" + a + "/replies" ,{ method : "POST" , body : JSON . stringify ({ content : b , captcha_id : c ? . id , captcha_answer : c ? . answer , captcha_sig : c ? . sig , reply_to_id : d || null })}), deleteReply : a => g ( "/replies/" + a ,{ method : "DELETE" }), getUsers : ()=> g ( "/users" ), getUsersByUsername : a => g ( "/users?username=" + encodeURIComponent ( a )), getUserProfile : a => g ( "/users/profile/" + encodeURIComponent ( a )), updateUserRole : ( a , b )=> g ( "/users/" + a + "/role" ,{ method : "PUT" , body : JSON . stringify ({ role : b })}), updateProfile : ( a , b , c , d )=> g ( "/users/" + a ,{ method : "PUT" , body : JSON . stringify ({ username : b , bio : c , signature : d })}), updateAvatar : ( a , b )=> g ( "/users/" + a + "/avatar" ,{ method : "PUT" , body : JSON . stringify ({ avatar_url : b })}), updatePassword : ( a , b , c )=> g ( "/users/" + a + "/password" ,{ method : "PUT" , body : JSON . stringify ({ oldPassword : b , newPassword : c })}), updateEmail : ( a , b , c )=> g ( "/users/" + a + "/email" ,{ method : "PUT" , body : JSON . stringify ({ password : b , newEmail : c })}), getReports : ()=> g ( "/reports" ), createReport : ( a , b )=> g ( "/reports" ,{ method : "POST" , body : JSON . stringify ({ post_id : a , reason : b })}), updateReport : ( a , b , c )=> g ( "/reports/" + a ,{ method : "PUT" , body : JSON . stringify ({ status : b , note : c })}), getStats : ()=> g ( "/stats" ), getSettings : ()=> g ( "/settings" ), updateSettings : a => g ( "/settings" ,{ method : "PUT" , body : JSON . stringify ({ forum_name : a })}), getLinks : ()=> g ( "/links" ), addLink : ( a , b )=> g ( "/links" ,{ method : "POST" , body : JSON . stringify ({ title : a , url : b })}), deleteLink : a => g ( "/links/" + a ,{ method : "DELETE" }), getEventLogs : ()=> g ( "/event-logs" ), logEvent : a => g ( "/event-logs" ,{ method : "POST" , body : JSON . stringify ({ action : a })}). catch (()=>{}), getConversations : ()=> g ( "/conversations" ), getOrCreateConversation : a => g ( "/conversations" ,{ method : "POST" , body : JSON . stringify ({ other_user_id : a })}), getMessages : a => g ( "/conversations/" + a + "/messages" ), sendMessage : ( a , b )=> g ( "/conversations/" + a + "/messages" ,{ method : "POST" , body : JSON . stringify ({ content : b })}), markMessageRead : a => g ( "/messages/" + a + "/read" ,{ method : "PUT" }), getCustomPages : ()=> g ( "/custom-pages" ), getCustomPage : a => g ( "/custom-pages/" + a ), adminGetCustomPages : ()=> g ( "/admin/custom-pages" ), adminCreateCustomPage : ( a , b , c )=> g ( "/admin/custom-pages" ,{ method : "POST" , body : JSON . stringify ({ name : a , title : b , content : c })}), adminUpdateCustomPage : ( a , b , c , d )=> g ( "/admin/custom-pages/" + a ,{ method : "PUT" , body : JSON . stringify ({ title : b , content : c , enabled : d })}), adminDeleteCustomPage : a => g ( "/admin/custom-pages/" + a ,{ method : "DELETE" }), uploadCustomCss ( a ){ let b = new FormData ; b . append ( "file" , a ); let c = {}; return e && ( c . Authorization = "Bearer " + e ), fetch ( "/api/admin/custom-css" ,{ method : "POST" , body : b , headers : c }). then ( async a =>{ let b = await a . json (). catch (()=>({})); if ( ! a . ok || b . error ) throw Error ( b . error || "上传失败" ); return b })}, deleteCustomCss : ()=> g ( "/admin/custom-css" ,{ method : "DELETE" }), getNotifications : ()=> g ( "/notifications" ), markNotificationRead : a => g ( "/notifications/" + a + "/read" ,{ method : "PUT" }), markAllNotificationsRead : ()=> g ( "/notifications/read-all" ,{ method : "PUT" }), generateRecoveryCodes : ()=> g ( "/auth/recovery-codes/generate" ,{ method : "POST" }), getRecoveryCodeCount : ()=> g ( "/auth/recovery-codes/count" ), resetPassword : ( a , b , c )=> g ( "/auth/reset-password" ,{ method : "POST" , body : JSON . stringify ({ email : a , recoveryCode : b , newPassword : c })})}; async function i ( a ){ let b = new FormData ; b . append ( "file" , a ); let c = {}; e && ( c . Authorization = "Bearer " + e ); let d = await fetch ( "/api/upload" ,{ method : "POST" , body : b , headers : c }), f = await d . json (). catch (()=>({})); if ( ! d . ok || f . error ) throw Error ( f . error || "上传失败" ); return f . url } let j = ( 0 , c . createContext )( null ), k = [[ ".post-avatar" , "post-avatar" ],[ ".post-username" , "post-author" ],[ ".post-title" , "post-heading" ],[ ".post-time" , "post-time" ],[ ".post-content" , "post-body" ],[ ".post-images" , "post-feed-media" ],[ ".post-pin-state" , "post-pin-state" ],[ ".post-edited-state" , "post-edited-state" ],[ ".post-actions" , "post-feed-actions" ]]; function l ( a ){ return a ? k . flatMap (([ b , c ])=>{ let d = a . querySelector ( b ); return d ? ( d . style . viewTransitionName = c ,[ d ]) : []}) : []} function m ( a ){ a . forEach ( a =>{ a . style . viewTransitionName = "" })} function n ( a ,{ name : b , duration : c , moveOffset : d , moveEasing : e = "cubic-bezier(0.16, 1, 0.3, 1)" , resizeEasing : f = "cubic-bezier(0.4, 0, 0.2, 1)" , reverse : g =! 1 }){ a . ready . then (()=>{ let a = document . getAnimations (). find ( a => a . effect ? . pseudoElement === `::view-transition-group( ${ b } )` ), h = a ? . effect ? . getKeyframes (); if ( ! a ||! h || h . length < 2 ) return ; let i = h [ 0 ], j = h [ h . length - 1 ]; a . effect . setKeyframes ( g ? [{ offset : 0 , width : i . width , height : i . height , transform : i . transform , easing : f },{ offset : 1 - d , width : i . width , height : j . height , transform : i . transform , easing : e },{ offset : 1 , width : j . width , height : j . height , transform : j . transform }] : [{ offset : 0 , width : i . width , height : i . height , transform : i . transform , easing : e },{ offset : d , width : j . width , height : i . height , transform : j . transform , easing : f },{ offset : 1 , width : j . width , height : j . height , transform : j . transform }]), a . effect . updateTiming ({ duration : c , easing : "linear" , fill : "both" })}). catch (()=>{})} function o (){ return ( 0 , c . useContext )( j )} function p ({ children : a , cachedName : g = "" }){ let [ i , k ] = ( 0 , c . useState )( null ),[ o , q ] = ( 0 , c . useState )( g || "Forumlify" ),[ r , s ] = ( 0 , c . useState )( "light" ),[ t , u ] = ( 0 , c . useState )( "feed" ),[ v , w ] = ( 0 , c . useState )( null ),[ x , y ] = ( 0 , c . useState )( null ),[ z , A ] = ( 0 , c . useState )( null ),[ B , C ] = ( 0 , c . useState )( null ),[ D , E ] = ( 0 , c . useState )( "latest" ),[ F , G ] = ( 0 , c . useState )( 0 ),[ H , I ] = ( 0 , c . useState )( ! 1 ),[ J , K ] = ( 0 , c . useState )( !! g ), L = ( 0 , c . useRef )( ! 1 ), M = ( 0 , c . useCallback )(()=> G ( a => a + 1 ),[]), N = ( 0 , c . useCallback )( a =>{ try { document . cookie = "forumlify-name=" + encodeURIComponent ( a ) + "; path=/; max-age=31536000" } catch ( a ){}},[]);( 0 , c . useEffect )(()=>{ let a = "light" ; s ( a ), document . documentElement . setAttribute ( "data-theme" , a ); let b = window . matchMedia && window . matchMedia ( "(prefers-color-scheme: dark)" ); if ( b && b . addEventListener ){ let a = ()=>{ if ( ! localStorage . getItem ( "forumlify-theme" )){ let a = b . matches ? "dark" : "light" ; s ( a ), document . documentElement . setAttribute ( "data-theme" , a )}}; return b . addEventListener ( "change" , a ),()=> b . removeEventListener ( "change" , a )}},[]),( 0 , c . useEffect )(()=>{ document . title = o ; let a = document . querySelector ( "title" ); a && ( a . textContent = o )},[ o ]); let O = ( 0 , c . useCallback )(()=>{ s ( a =>{ let b = "light" === a ? "dark" : "light" ; return document . documentElement . setAttribute ( "data-theme" , b ), localStorage . setItem ( "forumlify-theme" , b ), b })},[]);( 0 , c . useEffect )(()=>{ try { let a = localStorage . getItem ( "forumlify-forum-name" ); a && ( q ( a ), K ( ! 0 ), N ( a ))} catch ( a ){} async function a (){ if ( e ) try { let a = await h . getMe (); k ( a )} catch { f ( null )} try { let a = await h . getSettings (); a . forum_name && ( q ( a . forum_name ), localStorage . setItem ( "forumlify-forum-name" , a . forum_name ), N ( a . forum_name )), K ( ! 0 ), setTimeout (()=> I ( ! 0 ), 650 )} catch { K ( ! 0 ), I ( ! 0 )}} L . current || ( L . current =! 0 , a ())},[]),( 0 , c . useEffect )(()=>{ if ( ! H &&! J ){ let a = [ "Loading." , "Loading.." , "Loading..." ], b = 0 ; document . title = a [ 0 ]; let c = setInterval (()=>{ b = ( b + 1 ) % a . length , document . title = a [ b ]}, 1e3 ); return ()=>{ clearInterval ( c )}} document . title = o ; let a = document . querySelector ( "title" ); a && ( a . textContent = o )},[ H , J , o ]),( 0 , c . useEffect )(()=>{ let a = new URLSearchParams ( window . location . search ), b = a . get ( "post" ), c = a . get ( "page" ), d = a . get ( "user" ); b ? ( u ( "post" ), w ( b )) : d ? ( u ( "user" ), A ( d )) : c && [ "messages" , "settings" , "admin" , "new" ]. includes ( c ) ? u ( c ) : c && ( u ( "custom" ), C ( c ))},[]); let P = ( 0 , c . useCallback )( a =>{ let b = new URL ( window . location ); "feed" === a ? b . searchParams . delete ( "page" ) : b . searchParams . set ( "page" , a ), b . searchParams . delete ( "post" ); let c = ( c =! 0 )=>{ window . history . pushState ({ page : a }, "" , b ), u ( a ), w ( null ), y ( null ), c && M ()}, e = window . matchMedia ? .( "(prefers-reduced-motion: reduce)" ). matches ; if ( "feed" !== a || "feed" === t ||! document . startViewTransition || e ) return void c (); let f = v ? Array . from ( document . querySelectorAll ( "[data-post-id]" )). find ( a => a . dataset . postId === String ( v )) : null , g = []; document . documentElement . classList . add ( "home-view-transition" ), f && document . documentElement . classList . add ( "returning-home" ); let h = document . startViewTransition (()=>{( 0 , d . flushSync )(()=> c ( ! 1 )),( f = v ? Array . from ( document . querySelectorAll ( "[data-post-id]" )). find ( a => a . dataset . postId === String ( v )) : null ) && ( f . style . viewTransitionName = "post-expand" ), g = l ( f )}); n ( h ,{ name : "post-expand" , duration : 960 , moveOffset : . 62 , moveEasing : "cubic-bezier(0.42, 0, 0.58, 1)" , resizeEasing : "cubic-bezier(0.42, 0, 0.58, 1)" , reverse :! 0 }), n ( h ,{ name : "post-body" , duration : 960 , moveOffset : . 62 , moveEasing : "cubic-bezier(0.7, 0, 0.84, 0)" , resizeEasing : "cubic-bezier(0.8, 0, 0.6, 1)" , reverse :! 0 }); let i = ()=>{ f && ( f . style . viewTransitionName = "" ), m ( g )}; h . ready . then ( i , i ), h . finished . finally (()=>{ document . documentElement . classList . remove ( "home-view-transition" , "returning-home" ), M ()})},[ v , M , t ]), Q = ( 0 , c . useCallback )(( a , b = null , c = null )=>{ let e = new URL ( window . location ); e . searchParams . set ( "post" , a ), e . searchParams . delete ( "page" ), e . searchParams . delete ( "user" ); let f = ()=>{ window . history . pushState ({ page : "post" , postId : a }, "" , e ), u ( "post" ), w ( a ), y ( c )}, g = window . matchMedia ? .( "(prefers-reduced-motion: reduce)" ). matches ; if ( ! b ||! document . startViewTransition || g ) return void f (); document . documentElement . classList . remove ( "post-transition-settled" ), b . style . viewTransitionName = "post-expand" ; let h = l ( b ); document . documentElement . classList . add ( "post-view-transition" ); let i = document . startViewTransition ( async ()=>{ var a ; let b ;( 0 , d . flushSync )( f ), await ( a = document . querySelector ( "#pagePost .post-detail-card" ), 0 === ( b = Array . from ( a ? . querySelectorAll ( "img" ) || [])). length ? Promise . resolve () : new Promise ( a =>{ let c =! 1 , d = ()=>{ c || ( c =! 0 , clearTimeout ( e ), a ())}, e = setTimeout ( d , 1200 ); Promise . all ( b . map ( a => a . decode ? .(). catch (()=>{}) || Promise . resolve ())). then ( d )}))}); n ( i ,{ name : "post-expand" , duration : 960 , moveOffset : . 62 , moveEasing : "cubic-bezier(0.42, 0, 0.58, 1)" , resizeEasing : "cubic-bezier(0.42, 0, 0.58, 1)" }), n ( i ,{ name : "post-body" , duration : 960 , moveOffset : . 62 }); let j = ()=>{ b . style . viewTransitionName = "" , m ( h )}; i . ready . then ( j , j ), i . finished . finally (()=>{ let a = document . documentElement ; a . classList . remove ( "post-view-transition" ), a . classList . add ( "post-transition-settled" ), window . setTimeout (()=> a . classList . remove ( "post-transition-settled" ), 220 )})},[]), R = ( 0 , c . useCallback )( a =>{ let b = new URL ( window . location ); b . searchParams . set ( "user" , a ), b . searchParams . delete ( "page" ), b . searchParams . delete ( "post" ), window . history . pushState ({ page : "user" , username : a }, "" , b ), u ( "user" ), A ( a )},[]), S = ( 0 , c . useCallback )( a =>{ let b = new URL ( window . location ); b . searchParams . set ( "page" , a ), b . searchParams . delete ( "post" ), b . searchParams . delete ( "user" ), window . history . pushState ({ page : "custom" , pageName : a }, "" , b ), u ( "custom" ), C ( a )},[]);( 0 , c . useEffect )(()=>{ let a = a =>{ let b = a . state || {}; b . postId ? ( u ( "post" ), w ( b . postId ), y ( null )) : b . username ? ( u ( "user" ), A ( b . username )) : b . pageName ? ( u ( "custom" ), C ( b . pageName )) : ( u ( b . page || "feed" ), w ( null ), y ( null ), A ( null ), C ( null ))}; return window . addEventListener ( "popstate" , a ),()=> window . removeEventListener ( "popstate" , a )},[]); let T = ( 0 , c . useCallback )( async ( a , b )=>{ let c = await h . login ( a , b ); return c . user && k ( c . user ), c },[]), U = ( 0 , c . useCallback )( async ( a , b , c , d )=>{ let e = await h . register ( a , b , c , d ), f = await h . login ( a , b ); return f . user && k ( f . user ), e },[]), V = ( 0 , c . useCallback )(()=>{ h . logout (), k ( null ), P ( "feed" )},[ P ]), W = ( 0 , c . useCallback )( a =>{ q ( a ), localStorage . setItem ( "forumlify-forum-name" , a ), N ( a )},[ N ]); return ( 0 , b . jsx )( j . Provider ,{ value : { currentUser : i , setCurrentUser : k , forumName : o , forumNameLoaded : J , updateForumName : W , theme : r , toggleTheme : O , view : t , navigate : P , currentPostId : v , currentPostPreview : x , openPost : Q , currentUsername : z , openUser : R , currentPageName : B , openCustomPage : S , sort : D , setSort : E , refreshKey : F , refresh : M , ready : H , login : T , register : U , logout : V }, children : a })} a . i ( 2407 ); var q = a . i ( 78134 ), r = a . i ( 55976 ); function s ({ onOpenChat : a , onClose : d }){ let [ e , f ] = ( 0 , c . useState )( null ); return ( 0 , c . useEffect )(()=>{ h . getConversations (). then ( a => f ( a || [])). catch (()=> f ([]))},[]),( 0 , b . jsx )( "div" ,{ className : "modal active" , onClick : a =>{ a . target === a . currentTarget && d ()}, children : ( 0 , b . jsxs )( "div" ,{ className : "modal-content" , style : { display : "flex" , flexDirection : "column" , height : "70vh" , maxHeight : "70vh" , padding : 0 , overflow : "hidden" }, children : [( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , justifyContent : "space-between" , alignItems : "center" , padding : "16px 20px" , borderBottom : "1px solid var(--border)" }, children : [( 0 , b . jsxs )( "h2" ,{ style : { fontSize : 18 , margin : 0 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "message" , size : 18 , style : { verticalAlign :- 3 , marginRight : 6 }}), " 私信" ]}),( 0 , b . jsx )( "span" ,{ className : "close" , onClick : d , style : { cursor : "pointer" , color : "var(--text-light)" , lineHeight : 1 }, children : ( 0 , b . jsx )( r . Icon ,{ name : "close" , size : 20 })})]}),( 0 , b . jsx )( "div" ,{ id : "messageListContent" , style : { flex : 1 , overflowY : "auto" , padding : 0 }, children : null === e ? ( 0 , b . jsxs )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : "40px 0" }, children : [( 0 , b . jsx )( "span" ,{ className : "spinner-sm" }), "加载中..." ]}) : 0 === e . length ? ( 0 , b . jsx )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : "40px 0" }, children : "暂无私信" }) : e . map ( c =>{ let d = c . unread_count || 0 , e = c . last_message || "暂无消息" , f = c . last_message_time ? new Date ( c . last_message_time ). toLocaleString ( "zh-CN" ) : "" ; return ( 0 , b . jsxs )( "div" ,{ className : "message-list-item" , style : { display : "flex" , alignItems : "center" , gap : 12 , padding : "12px 16px" , borderBottom : "1px solid var(--border)" , cursor : "pointer" , transition : "background 0.15s" }, onClick : ()=> a ( c . id , c . other_user_id , c . other_username ), children : [( 0 , b . jsx )( "img" ,{ src : c . other_avatar_url || "https://ui-avatars.com/api/?name=" + encodeURIComponent ( c . other_username || "U" ) + "&background=6366f1&color=fff&size=64" , style : { width : 40 , height : 40 , borderRadius : "50%" , objectFit : "cover" }, alt : "" }),( 0 , b . jsxs )( "div" ,{ style : { flex : 1 , minWidth : 0 }, children : [( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , justifyContent : "space-between" , alignItems : "center" }, children : [( 0 , b . jsx )( "span" ,{ style : { fontWeight : 600 }, children : c . other_username }),( 0 , b . jsx )( "span" ,{ style : { fontSize : 12 , color : "var(--text-light)" }, children : f })]}),( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , justifyContent : "space-between" , alignItems : "center" }, children : [( 0 , b . jsx )( "span" ,{ style : { fontSize : 13 , color : "var(--text-secondary)" , overflow : "hidden" , textOverflow : "ellipsis" , whiteSpace : "nowrap" , maxWidth : 200 }, children : e }), d > 0 && ( 0 , b . jsx )( "span" ,{ style : { background : "#ef4444" , color : "#fff" , borderRadius : "50%" , padding : "2px 8px" , fontSize : 11 , fontWeight : 600 }, children : d })]})]})]}, c . id )})})]})})} var t = a . i ( 99239 ); function u ({ conversationId : a , otherUserId : d , otherUsername : e , onClose : f , onRefreshList : g }){ let { currentUser : i } = o (),{ toast : j } = ( 0 , t . useToast )(),[ k , l ] = ( 0 , c . useState )( null ),[ m , n ] = ( 0 , c . useState )( "" ), p = ( 0 , c . useRef )( null ), q = ( 0 , c . useCallback )( async ( b =! 1 )=>{ b || l ( null ); try { let b = await h . getMessages ( a ); l ( b || [])} catch { b || l ([])}},[ a ]);( 0 , c . useEffect )(()=>{ q ()},[ q ]),( 0 , c . useEffect )(()=>{ let a = setInterval (()=> q ( ! 0 ), 3e3 ); return ()=> clearInterval ( a )},[ q ]),( 0 , c . useEffect )(()=>{ p . current && ( p . current . scrollTop = p . current . scrollHeight )},[ k ]); let s = async ()=>{ if ( m . trim ()) try { await h . sendMessage ( a , m . trim ()), n ( "" ), q (), g ()} catch ( a ){ j ( "发送失败:" + a . message , "error" )}}; return ( 0 , b . jsx )( "div" ,{ className : "modal active" , onClick : a =>{ a . target === a . currentTarget && f ()}, children : ( 0 , b . jsxs )( "div" ,{ className : "modal-content" , style : { display : "flex" , flexDirection : "column" , height : "70vh" , maxHeight : "70vh" , padding : 0 , overflow : "hidden" }, children : [( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , justifyContent : "space-between" , alignItems : "center" , padding : "16px 20px" , borderBottom : "1px solid var(--border)" }, children : [( 0 , b . jsx )( "span" ,{ id : "chatTitle" , style : { fontWeight : 600 , fontSize : 16 }, children : e }),( 0 , b . jsx )( "span" ,{ className : "close" , onClick : f , style : { cursor : "pointer" , color : "var(--text-light)" , lineHeight : 1 }, children : ( 0 , b . jsx )( r . Icon ,{ name : "close" , size : 20 })})]}),( 0 , b . jsx )( "div" ,{ id : "chatMessages" , ref : p , style : { flex : 1 , overflowY : "auto" , padding : 16 , minHeight : 0 }, children : null === k ? ( 0 , b . jsxs )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : "40px 0" }, children : [( 0 , b . jsx )( "span" ,{ className : "spinner-sm" }), "加载中..." ]}) : 0 === k . length ? ( 0 , b . jsx )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : "40px 0" }, children : "还没有消息,打个招呼吧 👋" }) : k . map ( a =>{ let c = a . sender_id === i ? . id , d = a . created_at ? new Date ( a . created_at ). toLocaleString ( "zh-CN" ) : "" ; return ( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , justifyContent : c ? "flex-end" : "flex-start" , marginBottom : 12 }, children : [ ! c && ( 0 , b . jsx )( "img" ,{ src : a . sender_avatar_url || "https://ui-avatars.com/api/?name=" + encodeURIComponent ( a . sender_username || "U" ) + "&background=6366f1&color=fff&size=64" , style : { width : 32 , height : 32 , borderRadius : "50%" , objectFit : "cover" , marginRight : 8 , flexShrink : 0 }, alt : "" }),( 0 , b . jsxs )( "div" ,{ style : { maxWidth : "70%" }, children : [( 0 , b . jsx )( "div" ,{ style : { background : c ? "var(--primary)" : "var(--surface)" , color : c ? "#fff" : "var(--text)" , padding : "10px 14px" , borderRadius : 12 , border : c ? "none" : "1px solid var(--border)" , wordBreak : "break-word" }, children : a . content }),( 0 , b . jsxs )( "div" ,{ style : { fontSize : 11 , color : "var(--text-light)" , marginTop : 4 , textAlign : c ? "right" : "left" }, children : [ d , " " , c && ( 0 , b . jsx )( r . Icon ,{ name : "success" , size : 10 , "aria-label" : a . is_read ? "已读" : "已发送" })]})]})]}, a . id )})}),( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , gap : 8 , padding : "12px 16px" , borderTop : "1px solid var(--border)" , flexShrink : 0 }, children : [( 0 , b . jsx )( "input" ,{ type : "text" , id : "chatInput" , placeholder : "输入消息..." , style : { flex : 1 , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 6 , fontSize : 14 , background : "var(--bg)" , color : "var(--text)" , outline : "none" }, value : m , onChange : a => n ( a . target . value ), onKeyDown : a =>{ "Enter" === a . key && s ()}}),( 0 , b . jsx )( "button" ,{ className : "btn-primary" , style : { padding : "8px 16px" }, onClick : s , children : "发送" })]})]})})} function v (){ let { currentUser : a } = o (),[ d , e ] = ( 0 , c . useState )( 0 ); return (( 0 , c . useEffect )(()=>{ if ( ! a ) return void e ( 0 ); let b = ()=>{ h . getConversations (). then ( a => e (( a || []). reduce (( a , b )=> a + ( b . unread_count || 0 ), 0 ))). catch (()=>{})}; b (); let c = setInterval ( b , 3e4 ); return ()=> clearInterval ( c )},[ a ]), a ) ? ( 0 , b . jsxs )( "button" ,{ className : "nav-icon-btn" , title : "私信" , style : { position : "relative" , padding : "6px 8px" , background : "none" , border : "none" , cursor : "pointer" , color : "var(--text-secondary)" , borderRadius : 4 , display : "inline-flex" , alignItems : "center" , justifyContent : "center" }, onClick : ()=> window . dispatchEvent ( new CustomEvent ( "forumlify-open-messages" )), children : [( 0 , b . jsx )( r . Icon ,{ name : "message" , size : 20 }), d > 0 && ( 0 , b . jsx )( "span" ,{ style : { position : "absolute" , top :- 2 , right :- 2 , background : "#ef4444" , color : "#fff" , borderRadius : "50%" , padding : "2px 6px" , fontSize : 10 , fontWeight : 600 , minWidth : 18 , textAlign : "center" , lineHeight : 1.4 }, children : d > 99 ? "99+" : d })]}) : null } function w (){ let [ a , d ] = ( 0 , c . useState )( ! 1 ),[ e , f ] = ( 0 , c . useState )( null ),[ g , h ] = ( 0 , c . useState )( 0 ), i = ( 0 , c . useCallback )(()=> h ( a => a + 1 ),[]); return ( 0 , c . useEffect )(()=>{ let a = a =>{ f ( a . detail ), d ( ! 1 )}, b = ()=> d ( ! 0 ); return window . addEventListener ( "forumlify-open-chat" , a ), window . addEventListener ( "forumlify-open-messages" , b ),()=>{ window . removeEventListener ( "forumlify-open-chat" , a ), window . removeEventListener ( "forumlify-open-messages" , b )}},[]),( 0 , b . jsxs )( b . Fragment ,{ children : [ a && ( 0 , b . jsx )( s ,{ onOpenChat : ( a , b , c )=>{ f ({ conversationId : a , otherUserId : b , otherUsername : c }), d ( ! 1 )}, onClose : ()=> d ( ! 1 )}), e && ( 0 , b . jsx )( u ,{ conversationId : e . conversationId , otherUserId : e . otherUserId , otherUsername : e . otherUsername , onClose : ()=>{ f ( null ), i ()}, onRefreshList : i })]})} function x ({ onOpenModal : a }){ let { currentUser : d , forumName : e , theme : f , toggleTheme : g , navigate : i , openCustomPage : j , logout : k } = o (),{ t : l } = ( 0 , q . useTranslation )(),{ toast : m , confirmAction : n } = ( 0 , t . useToast )(),[ p , s ] = ( 0 , c . useState )( ! 1 ),[ u , w ] = ( 0 , c . useState )([]);( 0 , c . useEffect )(()=>{ h . getCustomPages (). then ( w ). catch (()=>{})},[]),( 0 , c . useEffect )(()=>{ let a = a =>{ let b = document . getElementById ( "userDropdown" ), c = document . getElementById ( "userDropdown" ) ? . querySelector ( ".avatar" ); b && b . contains ( a . target ) || c && c . contains ( a . target ) || s ( ! 1 )}; return document . addEventListener ( "click" , a ),()=> document . removeEventListener ( "click" , a )},[]); let y = d ? . avatar_url || "https://ui-avatars.com/api/?name=" + encodeURIComponent ( d ? . username || "U" ) + "&background=6366f1&color=fff" , z = a =>{ "admin" === a && d ? . role !== "admin" ? m ( "无权限访问" , "warning" ) : ( s ( ! 1 ), i ( a ))}; return ( 0 , b . jsxs )( "nav" ,{ id : "navbar" , children : [( 0 , b . jsxs )( "div" ,{ className : "nav-left" , children : [( 0 , b . jsx )( "span" ,{ className : "forum-name" , onClick : ()=> i ( "feed" ), style : { cursor : "pointer" }, children : e }),( 0 , b . jsx )( "span" ,{ id : "customNavLinks" , style : { display : "inline-flex" , alignItems : "center" , gap : 6 , marginLeft : 16 }, children : u . map ( a =>( 0 , b . jsx )( "a" ,{ href : "#" , className : "custom-page-nav-link" , "data-custom" : a . name , onClick : b =>{ b . preventDefault (), j ( a . name )}, style : { color : "var(--text-secondary)" , textDecoration : "none" , fontSize : 14 , padding : "4px 10px" , borderRadius : 4 , transition : "color 0.15s" }, onMouseEnter : a =>{ a . currentTarget . style . color = "var(--text)" }, onMouseLeave : a =>{ a . currentTarget . style . color = "var(--text-secondary)" }, children : a . title }, a . id ))})]}),( 0 , b . jsxs )( "div" ,{ className : "nav-right" , children : [( 0 , b . jsx )( v ,{}),( 0 , b . jsx )( "div" ,{ id : "userMenu" , children : d ? ( 0 , b . jsxs )( "div" ,{ id : "userDropdown" , style : { display : "block" }, children : [( 0 , b . jsx )( "img" ,{ className : "avatar" , src : y , alt : "avatar" , onClick : a =>{ a . stopPropagation (), s ( ! p )}}), p && ( 0 , b . jsxs )( "div" ,{ className : "dropdown-menu show" , onClick : a => a . stopPropagation (), children : [( 0 , b . jsxs )( "a" ,{ href : "#" , onClick : a =>{ a . preventDefault (), s ( ! 1 ), i ( "messages" )}, children : [( 0 , b . jsx )( r . Icon ,{ name : "message" }), " " , l ( "nav.messages" )]}),( 0 , b . jsxs )( "a" ,{ href : "#" , onClick : a =>{ a . preventDefault (), z ( "settings" )}, children : [( 0 , b . jsx )( r . Icon ,{ name : "settings" }), " " , l ( "nav.settings" )]}), "admin" === d . role && ( 0 , b . jsxs )( "a" ,{ href : "#" , onClick : a =>{ a . preventDefault (), z ( "admin" )}, children : [( 0 , b . jsx )( r . Icon ,{ name : "shieldAlert" }), " " , l ( "nav.admin" )]}),( 0 , b . jsx )( "hr" ,{}),( 0 , b . jsxs )( "a" ,{ href : "#" , onClick : a =>{ a . preventDefault (), g (), s ( ! 1 )}, children : [( 0 , b . jsx )( r . Icon ,{ name : "dark" === f ? "sun" : "moon" }), " " , "dark" === f ? l ( "nav.lightMode" ) : l ( "nav.darkMode" )]}),( 0 , b . jsx )( "hr" ,{}),( 0 , b . jsxs )( "a" ,{ href : "#" , onClick : async a =>{ a . preventDefault (), await n ( l ( "nav.logoutConfirm" )) && ( s ( ! 1 ), k ())}, children : [( 0 , b . jsx )( r . Icon ,{ name : "logout" }), " " , l ( "nav.logout" )]})]})]}) : ( 0 , b . jsxs )( "div" ,{ id : "authButtons" , children : [( 0 , b . jsx )( "button" ,{ className : "btn-ghost" , onClick : ()=> a ( "login" ), children : l ( "nav.login" )}),( 0 , b . jsx )( "button" ,{ className : "btn-primary" , onClick : ()=> a ( "register" ), children : l ( "nav.register" )})]})})]})]})} let y = { posts : 0 , users : 0 , topics : 0 , online : 0 }, z = null , A = null ; function B ({ id : a = "sidebar" }){ let [ d , e ] = ( 0 , c . useState )(()=> z || y ),[ f , g ] = ( 0 , c . useState )(()=> A || []); return ( 0 , c . useEffect )(()=>{ z || h . getStats (). then ( a =>{ z = a , e ( a )}). catch (()=>{}), A || h . getLinks (). then ( a =>{ A = a , g ( a )}). catch (()=>{})},[]),( 0 , b . jsxs )( "aside" ,{ id : a , className : "sidebar" , children : [( 0 , b . jsxs )( "div" ,{ className : "stats-box" , children : [( 0 , b . jsxs )( "h4" ,{ children : [( 0 , b . jsx )( r . Icon ,{ name : "book" , size : 14 }), " 社区统计" ]}),( 0 , b . jsxs )( "div" ,{ className : "stat-item" , children : [( 0 , b . jsx )( "span" ,{ children : "主题" }),( 0 , b . jsx )( "span" ,{ children : d . topics || 0 })]}),( 0 , b . jsxs )( "div" ,{ className : "stat-item" , children : [( 0 , b . jsx )( "span" ,{ children : "帖子" }),( 0 , b . jsx )( "span" ,{ children : d . posts || 0 })]}),( 0 , b . jsxs )( "div" ,{ className : "stat-item" , children : [( 0 , b . jsx )( "span" ,{ children : "用户" }),( 0 , b . jsx )( "span" ,{ children : d . users || 0 })]}),( 0 , b . jsxs )( "div" ,{ className : "stat-item" , children : [( 0 , b . jsx )( "span" ,{ children : "在线" }),( 0 , b . jsx )( "span" ,{ children : d . online || 0 })]})]}),( 0 , b . jsxs )( "div" ,{ className : "links-box" , children : [( 0 , b . jsxs )( "h4" ,{ children : [( 0 , b . jsx )( r . Icon ,{ name : "link" , size : 14 }), " 友情链接" ]}),( 0 , b . jsx )( "ul" ,{ id : "sidebar" === a ? "friendlyLinks" : void 0 , className : "friendly-links" , children : 0 === f . length ? ( 0 , b . jsx )( "li" ,{ style : { color : "#94a3b8" , fontSize : 13 }, children : "暂无链接" }) : f . map ( a =>( 0 , b . jsx )( "li" ,{ children : ( 0 , b . jsx )( "a" ,{ href : a . url , target : "_blank" , rel : "noreferrer" , children : a . title })}, a . id ))})]})]})} function C ({ src : a , onClose : d }){ return ( 0 , c . useEffect )(()=>{ let a = a =>{ "Escape" === a . key && d ()}; return document . addEventListener ( "keydown" , a ),()=> document . removeEventListener ( "keydown" , a )},[ d ]),( 0 , b . jsx )( "div" ,{ className : "modal active" , style : { position : "fixed" , inset : 0 , background : "rgba(0,0,0,0.85)" , zIndex : 9999 , display : "flex" , alignItems : "center" , justifyContent : "center" , cursor : "pointer" , animation : "fadeIn 0.2s ease-out" }, onClick : d , children : ( 0 , b . jsx )( "img" ,{ src : a , alt : "" , style : { maxWidth : "90vw" , maxHeight : "90vh" , objectFit : "contain" , borderRadius : 8 , boxShadow : "0 8px 32px rgba(0,0,0,0.5)" , cursor : "default" , userSelect : "none" }, onClick : a => a . stopPropagation ()})})} function D (){ return { async :! 1 , breaks :! 1 , extensions : null , gfm :! 0 , hooks : null , pedantic :! 1 , renderer : null , silent :! 1 , tokenizer : null , walkTokens : null }} var E = D (), F = { exec : ()=> null }; function G ( a ){ let b = []; return c =>{ let d = Math . max ( 0 , Math . min ( 3 , c - 1 )), e = b [ d ]; return e || ( e = a ( d ), b [ d ] = e ), e }} function H ( a , b = "" ){ let c = "string" == typeof a ? a : a . source , d = { replace : ( a , b )=>{ let e = "string" == typeof b ? b : b . source ; return e = e . replace ( J . caret , "$1" ), c = c . replace ( a , e ), d }, getRegex : ()=> new RegExp ( c , b )}; return d } var I = (( a = "" )=>{ try { return !! RegExp ( "(?<=1)(?<!1)" + a )} catch { return ! 1 }})(), J = { codeRemoveIndent : /^(?: {1,4}| {0,3}\t)/gm , outputLinkReplace : /\\([\[\]])/g , indentCodeCompensation : /^(\s+)(?:```)/ , beginningSpace : /^\s+/ , endingHash : /#$/ , startingSpaceChar : /^ / , endingSpaceChar : / $/ , nonSpaceChar : /[^ ]/ , newLineCharGlobal : /\n/g , tabCharGlobal : /\t/g , multipleSpaceGlobal : /\s+/g , blankLine : /^[ \t]*$/ , doubleBlankLine : /\n[ \t]*\n[ \t]*$/ , blockquoteStart : /^ {0,3}>/ , blockquoteSetextReplace : /\n {0,3}((?:=+|-+) *)(?=\n|$)/g , blockquoteSetextReplace2 : /^ {0,3}>[ \t]?/gm , listReplaceNesting : /^ {1,4}(?=( {4})*[^ ])/g , listIsTask : /^\[[ xX]\] +\S/ , listReplaceTask : /^\[[ xX]\] +/ , listTaskCheckbox : /\[[ xX]\]/ , anyLine : /\n.*\n/ , hrefBrackets : /^<(.*)>$/ , tableDelimiter : /[:|]/ , tableAlignChars : /^\||\| *$/g , tableRowBlankLine : /\n[ \t]*$/ , tableAlignRight : /^ *-+: *$/ , tableAlignCenter : /^ *:-+: *$/ , tableAlignLeft : /^ *:-+ *$/ , startATag : /^<a /i , endATag : /^<\/a>/i , startPreScriptTag : /^<(pre|code|kbd|script)(\s|>)/i , endPreScriptTag : /^<\/(pre|code|kbd|script)(\s|>)/i , startAngleBracket : /^</ , endAngleBracket : />$/ , pedanticHrefTitle : /^([^'"]*[^\s])\s+(['"])(.*)\2/ , unicodeAlphaNumeric : /[\p{L}\p{N}]/u , escapeTest : /[&<>"']/ , escapeReplace : /[&<>"']/g , escapeTestNoEncode : /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/ , escapeReplaceNoEncode : /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g , caret : /(^|[^\[])\^/g , percentDecode : /%25/g , findPipe : /\|/g , splitPipe : / \|/ , slashPipe : /\\\|/g , carriageReturn : /\r\n|\r/g , spaceLine : /^ +$/gm , notSpaceStart : /^\S*/ , endingNewline : /\n$/ , listItemRegex : a => RegExp ( `^( {0,3} ${ a } )((?:[ ][^\\n]*)?(?:\\n|$))` ), nextBulletRegex : G ( a => RegExp ( `^ {0, ${ a } }(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))` )), hrRegex : G ( a => RegExp ( `^ {0, ${ a } }((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)` )), fencesBeginRegex : G ( a => RegExp ( `^ {0, ${ a } }(?:\`\`\`|~~~)` )), headingBeginRegex : G ( a => RegExp ( `^ {0, ${ a } }#` )), htmlBeginRegex : G ( a => RegExp ( `^ {0, ${ a } }<(?:[a-z].*>|!--)` , "i" )), blockquoteBeginRegex : G ( a => RegExp ( `^ {0, ${ a } }>` ))}, K = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/ , L = / {0,3}(?:[*+-]|\d{1,9}[.)])/ , M = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/ , N = H ( M ). replace ( /bull/g , L ). replace ( /blockCode/g , /(?: {4}| {0,3}\t)/ ). replace ( /fences/g , / {0,3}(?:`{3,}|~{3,})/ ). replace ( /blockquote/g , / {0,3}>/ ). replace ( /heading/g , / {0,3}#{1,6}(?:\s|$)/ ). replace ( /html/g , / {0,3}<[^\n>]+>\n/ ). replace ( /\|table/g , "" ). getRegex (), O = H ( M ). replace ( /bull/g , L ). replace ( /blockCode/g , /(?: {4}| {0,3}\t)/ ). replace ( /fences/g , / {0,3}(?:`{3,}|~{3,})/ ). replace ( /blockquote/g , / {0,3}>/ ). replace ( /heading/g , / {0,3}#{1,6}(?:\s|$)/ ). replace ( /html/g , / {0,3}<[^\n>]+>\n/ ). replace ( /table/g , / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/ ). getRegex (), P = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/ , Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/ , R = H ( /^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/ ). replace ( "label" , Q ). replace ( "title" , /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/ ). getRegex (), S = H ( /^(bull)([ \t][^\n]*?)?(?:\n|$)/ ). replace ( /bull/g , L ). getRegex (), T = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul" , U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/ , V = H ( "^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))" , "i" ). replace ( "comment" , U ). replace ( "tag" , T ). replace ( "attribute" , / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/ ). getRegex (), W = a => H ( P ). replace ( "hr" , K ). replace ( "heading" , " {0,3}#{1,6}(?:\\s|$)" ). replace ( "|lheading" , "" ). replace ( "|table" , "" ). replace ( "blockquote" , " {0,3}>" ). replace ( "fences" , " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n" ). replace ( "list" , a ). replace ( "html" , "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)" ). replace ( "tag" , T ). getRegex (), X = W ( / {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/ ), Y = W ( / {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/ ), Z = { blockquote : H ( /^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/ ). replace ( "paragraph" , Y ). getRegex (), code : /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/ , def : R , fences : /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/ , heading : /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/ , hr : K , html : V , lheading : N , list : S , newline : /^(?:[ \t]*(?:\n|$))+/ , paragraph : X , table : F , text : /^[^\n]+/ }, $ = H ( "^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)" ). replace ( "hr" , K ). replace ( "heading" , " {0,3}#{1,6}(?:\\s|$)" ). replace ( "blockquote" , " {0,3}>" ). replace ( "code" , "(?: {4}| {0,3} )[^\\n]" ). replace ( "fences" , " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n" ). replace ( "list" , " {0,3}(?:[*+-]|1[.)])[ \\t]" ). replace ( "html" , "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)" ). replace ( "tag" , T ). getRegex (), _ = {... Z , lheading : O , table : $ , paragraph : H ( P ). replace ( "hr" , K ). replace ( "heading" , " {0,3}#{1,6}(?:\\s|$)" ). replace ( "|lheading" , "" ). replace ( "table" , $ ). replace ( "blockquote" , " {0,3}>" ). replace ( "fences" , " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n" ). replace ( "list" , " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]" ). replace ( "html" , "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)" ). replace ( "tag" , T ). getRegex ()}, aa = {... Z , html : H ( "^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))" ). replace ( "comment" , U ). replace ( /tag/g , "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b" ). getRegex (), def : /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/ , heading : /^(#{1,6})(.*)(?:\n+|$)/ , fences : F , lheading : /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/ , paragraph : H ( P ). replace ( "hr" , K ). replace ( "heading" , ` *#{1,6} *[^
]` ). replace ( "lheading" , N ). replace ( "|table" , "" ). replace ( "blockquote" , " {0,3}>" ). replace ( "|fences" , "" ). replace ( "|list" , "" ). replace ( "|html" , "" ). replace ( "|tag" , "" ). getRegex ()}, ab = /^( {2,}|\\)\n(?!\s*$)/ , ac = /[\p{P}\p{S}]/u , ad = /[\s\p{P}\p{S}]/u , ae = /[^\s\p{P}\p{S}]/u , af = H ( /^((?![*_])punctSpace)/ , "u" ). replace ( /punctSpace/g , ad ). getRegex (), ag = /(?!~)[\p{P}\p{S}]/u , ah = H ( /link|precode-code|html/ , "g" ). replace ( "link" , /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/ ). replace ( "precode-" , I ? "(?<!`)()" : "(^^|[^`])" ). replace ( "code" , /(?<b>`+)[^`]+\k<b>(?!`)/ ). replace ( "html" , /<(?! )[^<>]*?>/ ). getRegex (), ai = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/ , aj = H ( ai , "u" ). replace ( /punct/g , ac ). getRegex (), ak = H ( ai , "u" ). replace ( /punct/g , ag ). getRegex (), al = H ( /^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/ , "u" ). replace ( /openQuote/g , /[\p{Pi}\p{Ps}"']/u ). replace ( /punct/g , ac ). getRegex (), am = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)" , an = H ( am , "gu" ). replace ( /notPunctSpace/g , ae ). replace ( /punctSpace/g , ad ). replace ( /punct/g , ac ). getRegex (), ao = H ( am , "gu" ). replace ( /notPunctSpace/g , /(?:[^\s\p{P}\p{S}]|~)/u ). replace ( /punctSpace/g , /(?!~)[\s\p{P}\p{S}]/u ). replace ( /punct/g , ag ). getRegex (), ap = H ( "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)" , "gu" ). replace ( /notPunctSpace/g , ae ). replace ( /punctSpace/g , ad ). replace ( /punct/g , ac ). getRegex (), aq = H ( "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)" , "gu" ). replace ( /notPunctSpace/g , ae ). replace ( /punctSpace/g , ad ). replace ( /punct/g , ac ). getRegex (), ar = H ( "^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)" , "gu" ). replace ( /notPunctSpace/g , ae ). replace ( /punctSpace/g , ad ). replace ( /punct/g , ac ). getRegex (), as = H ( /^~~?(?:((?!~)punct)|[^\s~])/ , "u" ). replace ( /punct/g , ac ). getRegex (), at = H ( "^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)" , "gu" ). replace ( /notPunctSpace/g , ae ). replace ( /punctSpace/g , ad ). replace ( /punct/g , ac ). getRegex (), au = H ( /\\(punct)/ , "gu" ). replace ( /punct/g , ac ). getRegex (), av = H ( /^<(scheme:[^\s\x00-\x1f<>]*|email)>/ ). replace ( "scheme" , /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/ ). replace ( "email" , /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/ ). getRegex (), aw = H ( U ). replace ( "(?:-->|$)" , "-->" ). getRegex (), ax = H ( "^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>" ). replace ( "comment" , aw ). replace ( "attribute" , /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ). getRegex (), ay = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/ , az = H ( /^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/ ). replace ( "label" , ay ). replace ( "href" , /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/ ). replace ( "title" , /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ). getRegex (), aA = H ( /^!?\[(label)\]\[(ref)\]/ ). replace ( "label" , ay ). replace ( "ref" , Q ). getRegex (), aB = H ( /^!?\[(ref)\](?:\[\])?/ ). replace ( "ref" , Q ). getRegex (), aC = H ( "reflink|nolink(?!\\()" , "g" ). replace ( "reflink" , aA ). replace ( "nolink" , aB ). getRegex (), aD = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/ , aE = { _backpedal : F , anyPunctuation : au , autolink : av , blockSkip : ah , br : ab , code : /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/ , del : F , delLDelim : F , delRDelim : F , emStrongLDelim : aj , emStrongRDelimAst : an , emStrongRDelimUnd : aq , escape : /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/ , link : az , nolink : aB , punctuation : af , reflink : aA , reflinkSearch : aC , tag : ax , text : /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , url : F }, aF = {... aE , emStrongLDelim : al , emStrongRDelimAst : ap , emStrongRDelimUnd : ar , link : H ( /^!?\[(label)\]\((.*?)\)/ ). replace ( "label" , ay ). getRegex (), reflink : H ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ). replace ( "label" , ay ). getRegex ()}, aG = {... aE , emStrongRDelimAst : ao , emStrongLDelim : ak , delLDelim : as , delRDelim : at , url : H ( /^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/ ). replace ( "protocol" , aD ). replace ( "email" , /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/ ). getRegex (), _backpedal : /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/ , del : /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/ , text : H ( /^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/ ). replace ( "protocol" , aD ). getRegex ()}, aH = {... aG , br : H ( ab ). replace ( "{2,}" , "*" ). getRegex (), text : H ( aG . text ). replace ( "\\b_" , "\\b_| {2,}\\n" ). replace ( /\{2,\}/g , "*" ). getRegex ()}, aI = { normal : Z , gfm : _ , pedantic : aa }, aJ = { normal : aE , gfm : aG , breaks : aH , pedantic : aF }, aK = { "&" : "&" , "<" : "<" , ">" : ">" , '"' : """ , "'" : "'" }, aL = a => aK [ a ]; function aM ( a , b ){ if ( b ){ if ( J . escapeTest . test ( a )) return a . replace ( J . escapeReplace , aL )} else if ( J . escapeTestNoEncode . test ( a )) return a . replace ( J . escapeReplaceNoEncode , aL ); return a } function aN ( a ){ try { a = encodeURI ( a ). replace ( J . percentDecode , "%" )} catch { return null } return a } function aO ( a , b ){ let c = a . replace ( J . findPipe ,( a , b , c )=>{ let d =! 1 , e = b ; for (; -- e >= 0 && "\\" === c [ e ];) d =! d ; return d ? "|" : " |" }). split ( J . splitPipe ), d = 0 ; if ( c [ 0 ]. trim () || c . shift (), c . length > 0 &&! c . at ( - 1 ) ? . trim () && c . pop (), b ) if ( c . length > b ) c . splice ( b ); else for (; c . length < b ;) c . push ( "" ); for (; d < c . length ; d ++ ) c [ d ] = c [ d ]. trim (). replace ( J . slashPipe , "|" ); return c } function aP ( a , b , c ){ let d = a . length ; if ( 0 === d ) return "" ; let e = 0 ; for (; e < d ;){ let f = a . charAt ( d - e - 1 ); if ( f !== b || c ) if ( f !== b && c ) e ++ ; else break ; else e ++ } return a . slice ( 0 , d - e )} function aQ ( a ){ let b = a . split ( `
` ), c = b . length - 1 ; for (; c >= 0 && J . blankLine . test ( b [ c ]);) c -- ; return b . length - c <= 2 ? a : b . slice ( 0 , c + 1 ). join ( `
` )} function aR ( a , b , c , d , e ){ let f = b . href , g = b . title || null , h = a [ 1 ]. replace ( e . other . outputLinkReplace , "$1" ); d . state . inLink =! 0 ; let i = { type : "!" === a [ 0 ]. charAt ( 0 ) ? "image" : "link" , raw : c , href : f , title : g , text : h , tokens : d . inlineTokens ( h )}; return d . state . inLink =! 1 , i } var aS = class { options ; rules ; lexer ; constructor ( a ){ this . options = a || E } space ( a ){ let b = this . rules . block . newline . exec ( a ); if ( b && b [ 0 ]. length > 0 ) return { type : "space" , raw : b [ 0 ]}} code ( a ){ let b = this . rules . block . code . exec ( a ); if ( b ){ let a = this . options . pedantic ? b [ 0 ] : aQ ( b [ 0 ]), c = a . replace ( this . rules . other . codeRemoveIndent , "" ); return { type : "code" , raw : a , codeBlockStyle : "indented" , text : c }}} fences ( a ){ let b = this . rules . block . fences . exec ( a ); if ( b ){ let a = b [ 0 ], c = function ( a , b , c ){ let d = a . match ( c . other . indentCodeCompensation ); if ( null === d ) return b ; let e = d [ 1 ]; return b . split ( `
` ). map ( a =>{ let b = a . match ( c . other . beginningSpace ); if ( null === b ) return a ; let [ d ] = b ; return d . length >= e . length ? a . slice ( e . length ) : a }). join ( `
` )}( a , b [ 3 ] || "" , this . rules ); return { type : "code" , raw : a , lang : b [ 2 ] ? b [ 2 ]. trim (). replace ( this . rules . inline . anyPunctuation , "$1" ) : b [ 2 ], text : c }}} heading ( a ){ let b = this . rules . block . heading . exec ( a ); if ( b ){ let a = b [ 2 ]. trim (); if ( this . rules . other . endingHash . test ( a )){ let b = aP ( a , "#" );( this . options . pedantic ||! b || this . rules . other . endingSpaceChar . test ( b )) && ( a = b . trim ())} return { type : "heading" , raw : aP ( b [ 0 ], `
` ), depth : b [ 1 ]. length , text : a , tokens : this . lexer . inline ( a )}}} hr ( a ){ let b = this . rules . block . hr . exec ( a ); if ( b ) return { type : "hr" , raw : aP ( b [ 0 ], `
` )}} blockquote ( a ){ let b = this . rules . block . blockquote . exec ( a ); if ( b ){ let a = aP ( b [ 0 ], `
` ). split ( `
` ), c = "" , d = "" , e = []; for (; a . length > 0 ;){ let b =! 1 , f = [], g ; for ( g = 0 ; g < a . length ; g ++ ) if ( this . rules . other . blockquoteStart . test ( a [ g ])) f . push ( a [ g ]), b =! 0 ; else if ( b ) break ; else f . push ( a [ g ]); a = a . slice ( g ); let h = f . join ( `
` ), i = h . replace ( this . rules . other . blockquoteSetextReplace , `
$1` ). replace ( this . rules . other . blockquoteSetextReplace2 , "" ); c = c ? ` ${ c }
${ h } ` : h , d = d ? ` ${ d }
${ i } ` : i ; let j = this . lexer . state . top ; if ( this . lexer . state . top =! 0 , this . lexer . blockTokens ( i , e , ! 0 ), this . lexer . state . top = j , 0 === a . length ) break ; let k = e . at ( - 1 ); if ( k ? . type === "code" ) break ; if ( k ? . type === "blockquote" ){ let b = a . join ( `
` ), f = k . raw + `
` + b . replace ( this . rules . other . blockquoteSetextReplace2 , "" ), g = this . blockquote ( f ); e [ e . length - 1 ] = g , c = ` ${ c }
${ b } ` , d = d . substring ( 0 , d . length - k . text . length ) + g . text ; break } if ( k ? . type === "list" ){ let b = k . raw + `
` + a . join ( `
` ), f = this . list ( b ); e [ e . length - 1 ] = f , c = c . substring ( 0 , c . length - k . raw . length ) + f . raw , d = d . substring ( 0 , d . length - k . raw . length ) + f . raw , a = b . substring ( e . at ( - 1 ). raw . length ). split ( `
` ); continue }} return { type : "blockquote" , raw : c , tokens : e , text : d }}} list ( a ){ let b = this . rules . block . list . exec ( a ); if ( b ){ let c = b [ 1 ]. trim (), d = c . length > 1 , e = { type : "list" , raw : "" , ordered : d , start : d ?+ c . slice ( 0 , - 1 ) : "" , loose :! 1 , items : []}; c = d ? `\\d{1,9}\\ ${ c . slice ( - 1 ) } ` : `\\ ${ c } ` , this . options . pedantic && ( c = d ? c : "[*+-]" ); let f = this . rules . other . listItemRegex ( c ), g =! 1 ; for (; a ;){ let c =! 1 , d = "" , h = "" ; if ( ! ( b = f . exec ( a )) || this . rules . block . hr . test ( a )) break ; d = b [ 0 ], a = a . substring ( d . length ); let i = function ( a , b = 0 ){ let c = b , d = "" ; for ( let b of a ) if ( " " === b ){ let a = 4 - c % 4 ; d += " " . repeat ( a ), c += a } else d += b , c ++ ; return d }( b [ 2 ]. split ( `
` , 1 )[ 0 ], b [ 1 ]. length ), j = a . split ( `
` , 1 )[ 0 ], k =! i . trim (), l = 0 ; if ( this . options . pedantic ? ( l = 2 , h = i . trimStart ()) : k ? l = b [ 1 ]. length + 1 : ( l = ( l = i . search ( this . rules . other . nonSpaceChar )) > 4 ? 1 : l , h = i . slice ( l ), l += b [ 1 ]. length ), k && this . rules . other . blankLine . test ( j ) && ( d += j + `
` , a = a . substring ( j . length + 1 ), c =! 0 ), ! c ){ let b = this . rules . other . nextBulletRegex ( l ), c = this . rules . other . hrRegex ( l ), e = this . rules . other . fencesBeginRegex ( l ), f = this . rules . other . headingBeginRegex ( l ), g = this . rules . other . htmlBeginRegex ( l ), m = this . rules . other . blockquoteBeginRegex ( l ); for (; a ;){ let n = a . split ( `
` , 1 )[ 0 ], o ; if ( j = n , o = this . options . pedantic ? j = j . replace ( this . rules . other . listReplaceNesting , " " ) : j . replace ( this . rules . other . tabCharGlobal , " " ), e . test ( j ) || f . test ( j ) || g . test ( j ) || m . test ( j ) || b . test ( j ) || c . test ( j )) break ; if ( o . search ( this . rules . other . nonSpaceChar ) >= l ||! j . trim ()) h += `
` + o . slice ( l ); else { if ( k || i . replace ( this . rules . other . tabCharGlobal , " " ). search ( this . rules . other . nonSpaceChar ) >= 4 || e . test ( i ) || f . test ( i ) || c . test ( i )) break ; h += `
` + j } k =! j . trim (), d += n + `
` , a = a . substring ( n . length + 1 ), i = o . slice ( l )}} e . loose || ( g ? e . loose =! 0 : this . rules . other . doubleBlankLine . test ( d ) && ( g =! 0 )), e . items . push ({ type : "list_item" , raw : d , task :!! this . options . gfm && this . rules . other . listIsTask . test ( h ), loose :! 1 , text : h , tokens : []}), e . raw += d } let h = e . items . at ( - 1 ); if ( ! h ) return ; for ( let a of ( h . raw = h . raw . trimEnd (), h . text = h . text . trimEnd (), e . raw = e . raw . trimEnd (), e . items )){ this . lexer . state . top =! 1 , a . tokens = this . lexer . blockTokens ( a . text ,[]); let b = a . tokens [ 0 ]; if ( a . task && ( b ? . type === "text" || b ? . type === "paragraph" )){ a . text = a . text . replace ( this . rules . other . listReplaceTask , "" ), b . raw = b . raw . replace ( this . rules . other . listReplaceTask , "" ), b . text = b . text . replace ( this . rules . other . listReplaceTask , "" ); for ( let a = this . lexer . inlineQueue . length - 1 ; a >= 0 ; a -- ) if ( this . rules . other . listIsTask . test ( this . lexer . inlineQueue [ a ]. src )){ this . lexer . inlineQueue [ a ]. src = this . lexer . inlineQueue [ a ]. src . replace ( this . rules . other . listReplaceTask , "" ); break } let c = this . rules . other . listTaskCheckbox . exec ( a . raw ); if ( c ){ let b = { type : "checkbox" , raw : c [ 0 ] + " " , checked : "[ ]" !== c [ 0 ]}; a . checked = b . checked , e . loose ? a . tokens [ 0 ] && [ "paragraph" , "text" ]. includes ( a . tokens [ 0 ]. type ) && "tokens" in a . tokens [ 0 ] && a . tokens [ 0 ]. tokens ? ( a . tokens [ 0 ]. raw = b . raw + a . tokens [ 0 ]. raw , a . tokens [ 0 ]. text = b . raw + a . tokens [ 0 ]. text , a . tokens [ 0 ]. tokens . unshift ( b )) : a . tokens . unshift ({ type : "paragraph" , raw : b . raw , text : b . raw , tokens : [ b ]}) : a . tokens . unshift ( b )}} else a . task && ( a . task =! 1 ); if ( ! e . loose ){ let b = a . tokens . filter ( a => "space" === a . type ); e . loose = b . length > 0 && b . some ( a => this . rules . other . anyLine . test ( a . raw ))}} if ( e . loose ) for ( let a of e . items ) for ( let b of ( a . loose =! 0 , a . tokens )) "text" === b . type && ( b . type = "paragraph" ); return e }} html ( a ){ let b = this . rules . block . html . exec ( a ); if ( b ){ let a = aQ ( b [ 0 ]); return { type : "html" , block :! 0 , raw : a , pre : "pre" === b [ 1 ] || "script" === b [ 1 ] || "style" === b [ 1 ], text : a }}} def ( a ){ let b = this . rules . block . def . exec ( a ); if ( b ){ let a = b [ 1 ]. toLowerCase (). replace ( this . rules . other . multipleSpaceGlobal , " " ), c = b [ 2 ] ? b [ 2 ]. replace ( this . rules . other . hrefBrackets , "$1" ). replace ( this . rules . inline . anyPunctuation , "$1" ) : "" , d = b [ 3 ] ? b [ 3 ]. substring ( 1 , b [ 3 ]. length - 1 ). replace ( this . rules . inline . anyPunctuation , "$1" ) : b [ 3 ]; return { type : "def" , tag : a , raw : aP ( b [ 0 ], `
` ), href : c , title : d }}} table ( a ){ let b = this . rules . block . table . exec ( a ); if ( ! b ||! this . rules . other . tableDelimiter . test ( b [ 2 ])) return ; let c = aO ( b [ 1 ]), d = b [ 2 ]. replace ( this . rules . other . tableAlignChars , "" ). split ( "|" ), e = b [ 3 ] ? . trim () ? b [ 3 ]. replace ( this . rules . other . tableRowBlankLine , "" ). split ( `
` ) : [], f = { type : "table" , raw : aP ( b [ 0 ], `
` ), header : [], align : [], rows : []}; if ( c . length === d . length ){ for ( let a of d ) this . rules . other . tableAlignRight . test ( a ) ? f . align . push ( "right" ) : this . rules . other . tableAlignCenter . test ( a ) ? f . align . push ( "center" ) : this . rules . other . tableAlignLeft . test ( a ) ? f . align . push ( "left" ) : f . align . push ( null ); for ( let a = 0 ; a < c . length ; a ++ ) f . header . push ({ text : c [ a ], tokens : this . lexer . inline ( c [ a ]), header :! 0 , align : f . align [ a ]}); for ( let a of e ) f . rows . push ( aO ( a , f . header . length ). map (( a , b )=>({ text : a , tokens : this . lexer . inline ( a ), header :! 1 , align : f . align [ b ]}))); return f }} lheading ( a ){ let b = this . rules . block . lheading . exec ( a ); if ( b ){ let a = b [ 1 ]. trim (); return { type : "heading" , raw : aP ( b [ 0 ], `
` ), depth : "=" === b [ 2 ]. charAt ( 0 ) ? 1 : 2 , text : a , tokens : this . lexer . inline ( a )}}} paragraph ( a ){ let b = this . rules . block . paragraph . exec ( a ); if ( b ){ let a = b [ 1 ]. charAt ( b [ 1 ]. length - 1 ) === `
` ? b [ 1 ]. slice ( 0 , - 1 ) : b [ 1 ]; return { type : "paragraph" , raw : b [ 0 ], text : a , tokens : this . lexer . inline ( a )}}} text ( a ){ let b = this . rules . block . text . exec ( a ); if ( b ) return { type : "text" , raw : b [ 0 ], text : b [ 0 ], tokens : this . lexer . inline ( b [ 0 ])}} escape ( a ){ let b = this . rules . inline . escape . exec ( a ); if ( b ) return { type : "escape" , raw : b [ 0 ], text : b [ 1 ]}} tag ( a ){ let b = this . rules . inline . tag . exec ( a ); if ( b ) return ! this . lexer . state . inLink && this . rules . other . startATag . test ( b [ 0 ]) ? this . lexer . state . inLink =! 0 : this . lexer . state . inLink && this . rules . other . endATag . test ( b [ 0 ]) && ( this . lexer . state . inLink =! 1 ), ! this . lexer . state . inRawBlock && this . rules . other . startPreScriptTag . test ( b [ 0 ]) ? this . lexer . state . inRawBlock =! 0 : this . lexer . state . inRawBlock && this . rules . other . endPreScriptTag . test ( b [ 0 ]) && ( this . lexer . state . inRawBlock =! 1 ),{ type : "html" , raw : b [ 0 ], inLink : this . lexer . state . inLink , inRawBlock : this . lexer . state . inRawBlock , block :! 1 , text : b [ 0 ]}} link ( a ){ let b = this . rules . inline . link . exec ( a ); if ( b ){ let a = b [ 2 ]. trim (); if ( ! this . options . pedantic && this . rules . other . startAngleBracket . test ( a )){ if ( ! this . rules . other . endAngleBracket . test ( a )) return ; let b = aP ( a . slice ( 0 , - 1 ), "\\" ); if (( a . length - b . length ) % 2 == 0 ) return } else { let a = function ( a ){ if ( - 1 === a . indexOf ( ")" )) return - 1 ; let b = 0 ; for ( let c = 0 ; c < a . length ; c ++ ) if ( "\\" === a [ c ]) c ++ ; else if ( "(" === a [ c ]) b ++ ; else if ( ")" === a [ c ] &&-- b < 0 ) return c ; return b > 0 ?- 2 :- 1 }( b [ 2 ]); if ( - 2 === a ) return ; if ( a >- 1 ){ let c = ( 0 === b [ 0 ]. indexOf ( "!" ) ? 5 : 4 ) + b [ 1 ]. length + a ; b [ 2 ] = b [ 2 ]. substring ( 0 , a ), b [ 0 ] = b [ 0 ]. substring ( 0 , c ). trim (), b [ 3 ] = "" }} let c = b [ 2 ], d = "" ; if ( this . options . pedantic ){ let a = this . rules . other . pedanticHrefTitle . exec ( c ); a && ( c = a [ 1 ], d = a [ 3 ])} else d = b [ 3 ] ? b [ 3 ]. slice ( 1 , - 1 ) : "" ; return c = c . trim (), this . rules . other . startAngleBracket . test ( c ) && ( c = this . options . pedantic &&! this . rules . other . endAngleBracket . test ( a ) ? c . slice ( 1 ) : c . slice ( 1 , - 1 )), aR ( b ,{ href : c && c . replace ( this . rules . inline . anyPunctuation , "$1" ), title : d && d . replace ( this . rules . inline . anyPunctuation , "$1" )}, b [ 0 ], this . lexer , this . rules )}} reflink ( a , b ){ let c ; if (( c = this . rules . inline . reflink . exec ( a )) || ( c = this . rules . inline . nolink . exec ( a ))){ let a = b [( c [ 2 ] || c [ 1 ]). replace ( this . rules . other . multipleSpaceGlobal , " " ). toLowerCase ()]; if ( ! a ){ let a = c [ 0 ]. charAt ( 0 ); return { type : "text" , raw : a , text : a }} return aR ( c , a , c [ 0 ], this . lexer , this . rules )}} emStrong ( a , b , c = "" ){ let d = this . rules . inline . emStrongLDelim . exec ( a ); if ( ! ( ! d ||! d [ 1 ] &&! d [ 2 ] &&! d [ 3 ] &&! d [ 4 ] || d [ 4 ] && c . match ( this . rules . other . unicodeAlphaNumeric )) && ( ! ( d [ 1 ] || d [ 3 ]) ||! c || this . rules . inline . punctuation . exec ( c ))){ let e = [... d [ 0 ]]. length - 1 , f , g , h = e , i = 0 , j = d [ 0 ][ 0 ], k = c === j , l = "*" === j ? this . rules . inline . emStrongRDelimAst : this . rules . inline . emStrongRDelimUnd ; for ( l . lastIndex = 0 , b = b . slice ( - 1 * a . length + e ); null !== ( d = l . exec ( b ));){ if ( ! ( f = d [ 1 ] || d [ 2 ] || d [ 3 ] || d [ 4 ] || d [ 5 ] || d [ 6 ])) continue ; if ( g = [... f ]. length , d [ 3 ] || d [ 4 ]){ h += g ; continue } if ( d [ 5 ] || d [ 6 ]){ if ( e % 3 &&! (( e + g ) % 3 )){ i += g ; continue } if ( k ) break } if (( h -= g ) > 0 ) continue ; g = Math . min ( g , g + h + i ); let b = [... d [ 0 ]][ 0 ]. length , c = a . slice ( 0 , e + d . index + b + g ); if ( Math . min ( e , g ) % 2 ){ let a = c . slice ( 1 , - 1 ); return { type : "em" , raw : c , text : a , tokens : this . lexer . inlineTokens ( a )}} let j = c . slice ( 2 , - 2 ); return { type : "strong" , raw : c , text : j , tokens : this . lexer . inlineTokens ( j )}}}} codespan ( a ){ let b = this . rules . inline . code . exec ( a ); if ( b ){ let a = b [ 2 ]. replace ( this . rules . other . newLineCharGlobal , " " ), c = this . rules . other . nonSpaceChar . test ( a ), d = this . rules . other . startingSpaceChar . test ( a ) && this . rules . other . endingSpaceChar . test ( a ); return c && d && ( a = a . substring ( 1 , a . length - 1 )),{ type : "codespan" , raw : b [ 0 ], text : a }}} br ( a ){ let b = this . rules . inline . br . exec ( a ); if ( b ) return { type : "br" , raw : b [ 0 ]}} del ( a , b , c = "" ){ let d = this . rules . inline . delLDelim . exec ( a ); if ( d && ( ! d [ 1 ] ||! c || this . rules . inline . punctuation . exec ( c ))){ let c = [... d [ 0 ]]. length - 1 , e , f , g = c , h = this . rules . inline . delRDelim ; for ( h . lastIndex = 0 , b = b . slice ( - 1 * a . length + c ); null !== ( d = h . exec ( b ));){ if ( ! ( e = d [ 1 ] || d [ 2 ] || d [ 3 ] || d [ 4 ] || d [ 5 ] || d [ 6 ]) || ( f = [... e ]. length ) !== c ) continue ; if ( d [ 3 ] || d [ 4 ]){ g += f ; continue } if (( g -= f ) > 0 ) continue ; f = Math . min ( f , f + g ); let b = [... d [ 0 ]][ 0 ]. length , h = a . slice ( 0 , c + d . index + b + f ), i = h . slice ( c , - c ); return { type : "del" , raw : h , text : i , tokens : this . lexer . inlineTokens ( i )}}}} autolink ( a ){ let b = this . rules . inline . autolink . exec ( a ); if ( b ){ let a , c ; return c = "@" === b [ 2 ] ? "mailto:" + ( a = b [ 1 ]) : a = b [ 1 ],{ type : "link" , raw : b [ 0 ], text : a , href : c , tokens : [{ type : "text" , raw : a , text : a }]}}} url ( a ){ let b ; if ( b = this . rules . inline . url . exec ( a )){ let a , c ; if ( "@" === b [ 2 ]) c = "mailto:" + ( a = b [ 0 ]); else { let d ; do d = b [ 0 ], b [ 0 ] = this . rules . inline . _backpedal . exec ( b [ 0 ]) ? .[ 0 ] ?? "" ; while ( d !== b [ 0 ]) a = b [ 0 ], c = "www." === b [ 1 ] ? "http://" + b [ 0 ] : b [ 0 ]} return { type : "link" , raw : b [ 0 ], text : a , href : c , tokens : [{ type : "text" , raw : a , text : a }]}}} inlineText ( a ){ let b = this . rules . inline . text . exec ( a ); if ( b ){ let a = this . lexer . state . inRawBlock ; return { type : "text" , raw : b [ 0 ], text : b [ 0 ], escaped : a }}}}, aT = class a { tokens ; options ; state ; inlineQueue ; tokenizer ; constructor ( a ){ this . tokens = [], this . tokens . links = Object . create ( null ), this . options = a || E , this . options . tokenizer = this . options . tokenizer || new aS , this . tokenizer = this . options . tokenizer , this . tokenizer . options = this . options , this . tokenizer . lexer = this , this . inlineQueue = [], this . state = { inLink :! 1 , inRawBlock :! 1 , top :! 0 }; let b = { other : J , block : aI . normal , inline : aJ . normal }; this . options . pedantic ? ( b . block = aI . pedantic , b . inline = aJ . pedantic ) : this . options . gfm && ( b . block = aI . gfm , this . options . breaks ? b . inline = aJ . breaks : b . inline = aJ . gfm ), this . tokenizer . rules = b } static get rules (){ return { block : aI , inline : aJ }} static lex ( b , c ){ return new a ( c ). lex ( b )} static lexInline ( b , c ){ return new a ( c ). inlineTokens ( b )} lex ( a ){ a = a . replace ( J . carriageReturn , `
` ), this . blockTokens ( a , this . tokens ); for ( let a = 0 ; a < this . inlineQueue . length ; a ++ ){ let b = this . inlineQueue [ a ]; this . inlineTokens ( b . src , b . tokens )} return this . inlineQueue = [], this . tokens } blockTokens ( a , b = [], c =! 1 ){ this . tokenizer . lexer = this , this . options . pedantic && ( a = a . replace ( J . tabCharGlobal , " " ). replace ( J . spaceLine , "" )); let d = 1 / 0 ; for (; a ;){ let e ; if ( a . length < d ) d = a . length ; else { this . infiniteLoopError ( a . charCodeAt ( 0 )); break } if ( this . options . extensions ? . block ? . some ( c => !! ( e = c . call ({ lexer : this }, a , b )) && ( a = a . substring ( e . raw . length ), b . push ( e ), ! 0 ))) continue ; if ( e = this . tokenizer . space ( a )){ a = a . substring ( e . raw . length ); let c = b . at ( - 1 ); 1 === e . raw . length && void 0 !== c ? c . raw += `
` : b . push ( e ); continue } if ( e = this . tokenizer . code ( a )){ a = a . substring ( e . raw . length ); let c = b . at ( - 1 ); c ? . type === "paragraph" || c ? . type === "text" ? ( c . raw += ( c . raw . endsWith ( `
` ) ? "" : `
` ) + e . raw , c . text += `
` + e . text , this . inlineQueue . at ( - 1 ). src = c . text ) : b . push ( e ); continue } if (( e = this . tokenizer . fences ( a )) || ( e = this . tokenizer . heading ( a )) || ( e = this . tokenizer . hr ( a )) || ( e = this . tokenizer . blockquote ( a )) || ( e = this . tokenizer . list ( a )) || ( e = this . tokenizer . html ( a ))){ a = a . substring ( e . raw . length ), b . push ( e ); continue } if ( e = this . tokenizer . def ( a )){ a = a . substring ( e . raw . length ); let c = b . at ( - 1 ); c ? . type === "paragraph" || c ? . type === "text" ? ( c . raw += ( c . raw . endsWith ( `
` ) ? "" : `
` ) + e . raw , c . text += `
` + e . raw , this . inlineQueue . at ( - 1 ). src = c . text ) : this . tokens . links [ e . tag ] || ( this . tokens . links [ e . tag ] = { href : e . href , title : e . title }, b . push ( e )); continue } if (( e = this . tokenizer . table ( a )) || ( e = this . tokenizer . lheading ( a ))){ a = a . substring ( e . raw . length ), b . push ( e ); continue } let f = a ; if ( this . options . extensions ? . startBlock ){ let b = 1 / 0 , c = a . slice ( 1 ), d ; this . options . extensions . startBlock . forEach ( a =>{ "number" == typeof ( d = a . call ({ lexer : this }, c )) && d >= 0 && ( b = Math . min ( b , d ))}), b < 1 / 0 && b >= 0 && ( f = a . substring ( 0 , b + 1 ))} if ( this . state . top && ( e = this . tokenizer . paragraph ( f ))){ let d = b . at ( - 1 ); c && d ? . type === "paragraph" ? ( d . raw += ( d . raw . endsWith ( `
` ) ? "" : `
` ) + e . raw , d . text += `
` + e . text , this . inlineQueue . pop (), this . inlineQueue . at ( - 1 ). src = d . text ) : b . push ( e ), c = f . length !== a . length , a = a . substring ( e . raw . length ); continue } if ( e = this . tokenizer . text ( a )){ a = a . substring ( e . raw . length ); let c = b . at ( - 1 ); c ? . type === "text" ? ( c . raw += ( c . raw . endsWith ( `
` ) ? "" : `
` ) + e . raw , c . text += `
` + e . text , this . inlineQueue . pop (), this . inlineQueue . at ( - 1 ). src = c . text ) : b . push ( e ); continue } if ( a ){ this . infiniteLoopError ( a . charCodeAt ( 0 )); break }} return this . state . top =! 0 , b } inline ( a , b = []){ return this . inlineQueue . push ({ src : a , tokens : b }), b } inlineTokens ( a , b = []){ this . tokenizer . lexer = this ; let c = a ; if ( this . tokens . links ){ let a = Object . keys ( this . tokens . links ); a . length > 0 && ( c = c . replace ( this . tokenizer . rules . inline . reflinkSearch , b => a . includes ( b . slice ( b . lastIndexOf ( "[" ) + 1 , - 1 )) ? "[" + "a" . repeat ( b . length - 2 ) + "]" : b ))} c = ( c = c . replace ( this . tokenizer . rules . inline . anyPunctuation , "++" )). replace ( this . tokenizer . rules . inline . blockSkip ,( a , b , c )=>{ let d = c ? c . length : 0 ; return a . slice ( 0 , d ) + "[" + "a" . repeat ( a . length - d - 2 ) + "]" }), c = this . options . hooks ? . emStrongMask ? . call ({ lexer : this }, c ) ?? c ; let d =! 1 , e = "" , f = 1 / 0 ; for (; a ;){ let g ; if ( a . length < f ) f = a . length ; else { this . infiniteLoopError ( a . charCodeAt ( 0 )); break } if ( d || ( e = "" ), d =! 1 , this . options . extensions ? . inline ? . some ( c => !! ( g = c . call ({ lexer : this }, a , b )) && ( a = a . substring ( g . raw . length ), b . push ( g ), ! 0 ))) continue ; if (( g = this . tokenizer . escape ( a )) || ( g = this . tokenizer . tag ( a )) || ( g = this . tokenizer . link ( a ))){ a = a . substring ( g . raw . length ), b . push ( g ); continue } if ( g = this . tokenizer . reflink ( a , this . tokens . links )){ a = a . substring ( g . raw . length ); let c = b . at ( - 1 ); "text" === g . type && c ? . type === "text" ? ( c . raw += g . raw , c . text += g . text ) : b . push ( g ); continue } if (( g = this . tokenizer . emStrong ( a , c , e )) || ( g = this . tokenizer . codespan ( a )) || ( g = this . tokenizer . br ( a )) || ( g = this . tokenizer . del ( a , c , e )) || ( g = this . tokenizer . autolink ( a )) ||! this . state . inLink && ( g = this . tokenizer . url ( a ))){ a = a . substring ( g . raw . length ), b . push ( g ); continue } let h = a ; if ( this . options . extensions ? . startInline ){ let b = 1 / 0 , c = a . slice ( 1 ), d ; this . options . extensions . startInline . forEach ( a =>{ "number" == typeof ( d = a . call ({ lexer : this }, c )) && d >= 0 && ( b = Math . min ( b , d ))}), b < 1 / 0 && b >= 0 && ( h = a . substring ( 0 , b + 1 ))} if ( g = this . tokenizer . inlineText ( h )){ a = a . substring ( g . raw . length ), "_" !== g . raw . slice ( - 1 ) && ( e = g . raw . slice ( - 1 )), d =! 0 ; let c = b . at ( - 1 ); c ? . type === "text" ? ( c . raw += g . raw , c . text += g . text ) : b . push ( g ); continue } if ( a ){ this . infiniteLoopError ( a . charCodeAt ( 0 )); break }} return b } infiniteLoopError ( a ){ let b = "Infinite loop on byte: " + a ; if ( this . options . silent ) console . error ( b ); else throw Error ( b )}}, aU = class { options ; parser ; constructor ( a ){ this . options = a || E } space ( a ){ return "" } code ({ text : a , lang : b , escaped : c }){ let d = ( b || "" ). match ( J . notSpaceStart ) ? .[ 0 ], e = a . replace ( J . endingNewline , "" ) + `
` ; return d ? '<pre><code class="language-' + aM ( d ) + '">' + ( c ? e : aM ( e , ! 0 )) + `</code></pre>
` : "<pre><code>" + ( c ? e : aM ( e , ! 0 )) + `</code></pre>
` } blockquote ({ tokens : a }){ return `<blockquote>
${ this . parser . parse ( a ) } </blockquote>
` } html ({ text : a }){ return a } def ( a ){ return "" } heading ({ tokens : a , depth : b }){ return `<h ${ b } > ${ this . parser . parseInline ( a ) } </h ${ b } >
` } hr ( a ){ return `<hr>
` } list ( a ){ let b = a . ordered , c = a . start , d = "" ; for ( let b = 0 ; b < a . items . length ; b ++ ){ let c = a . items [ b ]; d += this . listitem ( c )} let e = b ? "ol" : "ul" ; return "<" + e + ( b && 1 !== c ? ' start="' + c + '"' : "" ) + `>
` + d + "</" + e + `>
` } listitem ( a ){ return `<li> ${ this . parser . parse ( a . tokens ) } </li>
` } checkbox ({ checked : a }){ return "<input " + ( a ? 'checked="" ' : "" ) + 'disabled="" type="checkbox"> ' } paragraph ({ tokens : a }){ return `<p> ${ this . parser . parseInline ( a ) } </p>
` } table ( a ){ let b = "" , c = "" ; for ( let b = 0 ; b < a . header . length ; b ++ ) c += this . tablecell ( a . header [ b ]); b += this . tablerow ({ text : c }); let d = "" ; for ( let b = 0 ; b < a . rows . length ; b ++ ){ let e = a . rows [ b ]; c = "" ; for ( let a = 0 ; a < e . length ; a ++ ) c += this . tablecell ( e [ a ]); d += this . tablerow ({ text : c })} return d && ( d = `<tbody> ${ d } </tbody>` ), `<table>
<thead>
` + b + `</thead>
` + d + `</table>
` } tablerow ({ text : a }){ return `<tr>
${ a } </tr>
` } tablecell ( a ){ let b = this . parser . parseInline ( a . tokens ), c = a . header ? "th" : "td" ; return ( a . align ? `< ${ c } align=" ${ a . align } ">` : `< ${ c } >` ) + b + `</ ${ c } >
` } strong ({ tokens : a }){ return `<strong> ${ this . parser . parseInline ( a ) } </strong>` } em ({ tokens : a }){ return `<em> ${ this . parser . parseInline ( a ) } </em>` } codespan ({ text : a }){ return `<code> ${ aM ( a , ! 0 ) } </code>` } br ( a ){ return "<br>" } del ({ tokens : a }){ return `<del> ${ this . parser . parseInline ( a ) } </del>` } link ({ href : a , title : b , tokens : c }){ let d = this . parser . parseInline ( c ), e = aN ( a ); if ( null === e ) return d ; let f = '<a href="' + ( a = e ) + '"' ; return b && ( f += ' title="' + aM ( b ) + '"' ), f += ">" + d + "</a>" } image ({ href : a , title : b , text : c , tokens : d }){ d && ( c = this . parser . parseInline ( d , this . parser . textRenderer )); let e = aN ( a ); if ( null === e ) return aM ( c ); a = e ; let f = `<img src=" ${ a } " alt=" ${ aM ( c ) } "` ; return b && ( f += ` title=" ${ aM ( b ) } "` ), f += ">" } text ( a ){ return "tokens" in a && a . tokens ? this . parser . parseInline ( a . tokens ) : "escaped" in a && a . escaped ? a . text : aM ( a . text )}}, aV = class { strong ({ text : a }){ return a } em ({ text : a }){ return a } codespan ({ text : a }){ return a } del ({ text : a }){ return a } html ({ text : a }){ return a } text ({ text : a }){ return a } link ({ text : a }){ return "" + a } image ({ text : a }){ return "" + a } br (){ return "" } checkbox ({ raw : a }){ return a }}, aW = class a { options ; renderer ; textRenderer ; constructor ( a ){ this . options = a || E , this . options . renderer = this . options . renderer || new aU , this . renderer = this . options . renderer , this . renderer . options = this . options , this . renderer . parser = this , this . textRenderer = new aV } static parse ( b , c ){ return new a ( c ). parse ( b )} static parseInline ( b , c ){ return new a ( c ). parseInline ( b )} parse ( a ){ this . renderer . parser = this ; let b = "" ; for ( let c = 0 ; c < a . length ; c ++ ){ let d = a [ c ]; if ( this . options . extensions ? . renderers ? .[ d . type ]){ let a = this . options . extensions . renderers [ d . type ]. call ({ parser : this }, d ); if ( ! 1 !== a ||! [ "space" , "hr" , "heading" , "code" , "table" , "blockquote" , "list" , "checkbox" , "html" , "def" , "paragraph" , "text" ]. includes ( d . type )){ b += a || "" ; continue }} switch ( d . type ){ case "space" : b += this . renderer . space ( d ); break ; case "hr" : b += this . renderer . hr ( d ); break ; case "heading" : b += this . renderer . heading ( d ); break ; case "code" : b += this . renderer . code ( d ); break ; case "table" : b += this . renderer . table ( d ); break ; case "blockquote" : b += this . renderer . blockquote ( d ); break ; case "list" : b += this . renderer . list ( d ); break ; case "checkbox" : b += this . renderer . checkbox ( d ); break ; case "html" : b += this . renderer . html ( d ); break ; case "def" : b += this . renderer . def ( d ); break ; case "paragraph" : b += this . renderer . paragraph ( d ); break ; case "text" : b += this . renderer . text ( d ); break ; default : { let a = 'Token with "' + d . type + '" type was not found.' ; if ( this . options . silent ) return console . error ( a ), "" ; throw Error ( a )}}} return b } parseInline ( a , b = this . renderer ){ this . renderer . parser = this ; let c = "" ; for ( let d = 0 ; d < a . length ; d ++ ){ let e = a [ d ]; if ( this . options . extensions ? . renderers ? .[ e . type ]){ let a = this . options . extensions . renderers [ e . type ]. call ({ parser : this }, e ); if ( ! 1 !== a ||! [ "escape" , "html" , "link" , "image" , "checkbox" , "strong" , "em" , "codespan" , "br" , "del" , "text" ]. includes ( e . type )){ c += a || "" ; continue }} switch ( e . type ){ case "escape" : case "text" : c += b . text ( e ); break ; case "html" : c += b . html ( e ); break ; case "link" : c += b . link ( e ); break ; case "image" : c += b . image ( e ); break ; case "checkbox" : c += b . checkbox ( e ); break ; case "strong" : c += b . strong ( e ); break ; case "em" : c += b . em ( e ); break ; case "codespan" : c += b . codespan ( e ); break ; case "br" : c += b . br ( e ); break ; case "del" : c += b . del ( e ); break ; default : { let a = 'Token with "' + e . type + '" type was not found.' ; if ( this . options . silent ) return console . error ( a ), "" ; throw Error ( a )}}} return c }}, aX = class { options ; block ; constructor ( a ){ this . options = a || E } static passThroughHooks = new Set ([ "preprocess" , "postprocess" , "processAllTokens" , "emStrongMask" ]); static passThroughHooksRespectAsync = new Set ([ "preprocess" , "postprocess" , "processAllTokens" ]); preprocess ( a ){ return a } postprocess ( a ){ return a } processAllTokens ( a ){ return a } emStrongMask ( a ){ return a } provideLexer ( a = this . block ){ return a ? aT . lex : aT . lexInline } provideParser ( a = this . block ){ return a ? aW . parse : aW . parseInline }}, aY = new class { defaults = D (); options = this . setOptions ; parse = this . parseMarkdown ( ! 0 ); parseInline = this . parseMarkdown ( ! 1 ); Parser = aW ; Renderer = aU ; TextRenderer = aV ; Lexer = aT ; Tokenizer = aS ; Hooks = aX ; constructor (... a ){ this . use (... a )} walkTokens ( a , b ){ let c = []; for ( let d of a ) switch ( c = c . concat ( b . call ( this , d )), d . type ){ case "table" : for ( let a of d . header ) c = c . concat ( this . walkTokens ( a . tokens , b )); for ( let a of d . rows ) for ( let d of a ) c = c . concat ( this . walkTokens ( d . tokens , b )); break ; case "list" : c = c . concat ( this . walkTokens ( d . items , b )); break ; default : { let a = d ; this . defaults . extensions ? . childTokens ? .[ a . type ] ? this . defaults . extensions . childTokens [ a . type ]. forEach ( d =>{ let e = a [ d ]. flat ( 1 / 0 ); c = c . concat ( this . walkTokens ( e , b ))}) : a . tokens && ( c = c . concat ( this . walkTokens ( a . tokens , b )))}} return c } use (... a ){ let b = this . defaults . extensions || { renderers : {}, childTokens : {}}; return a . forEach ( a =>{ let c = {... a }; if ( c . async = this . defaults . async || c . async ||! 1 , a . extensions && ( a . extensions . forEach ( a =>{ if ( ! a . name ) throw Error ( "extension name required" ); if ( "renderer" in a ){ let c = b . renderers [ a . name ]; c ? b . renderers [ a . name ] = function (... b ){ let d = a . renderer . apply ( this , b ); return ! 1 === d && ( d = c . apply ( this , b )), d } : b . renderers [ a . name ] = a . renderer } if ( "tokenizer" in a ){ if ( ! a . level || "block" !== a . level && "inline" !== a . level ) throw Error ( "extension level must be 'block' or 'inline'" ); let c = b [ a . level ]; c ? c . unshift ( a . tokenizer ) : b [ a . level ] = [ a . tokenizer ], a . start && ( "block" === a . level ? b . startBlock ? b . startBlock . push ( a . start ) : b . startBlock = [ a . start ] : "inline" === a . level && ( b . startInline ? b . startInline . push ( a . start ) : b . startInline = [ a . start ]))} "childTokens" in a && a . childTokens && ( b . childTokens [ a . name ] = a . childTokens )}), c . extensions = b ), a . renderer ){ let b = this . defaults . renderer || new aU ( this . defaults ); for ( let c in a . renderer ){ if ( ! ( c in b )) throw Error ( `renderer ' ${ c } ' does not exist` ); if ([ "options" , "parser" ]. includes ( c )) continue ; let d = a . renderer [ c ], e = b [ c ]; b [ c ] = (... a )=>{ let c = d . apply ( b , a ); return ! 1 === c && ( c = e . apply ( b , a )), c || "" }} c . renderer = b } if ( a . tokenizer ){ let b = this . defaults . tokenizer || new aS ( this . defaults ); for ( let c in a . tokenizer ){ if ( ! ( c in b )) throw Error ( `tokenizer ' ${ c } ' does not exist` ); if ([ "options" , "rules" , "lexer" ]. includes ( c )) continue ; let d = a . tokenizer [ c ], e = b [ c ]; b [ c ] = (... a )=>{ let c = d . apply ( b , a ); return ! 1 === c && ( c = e . apply ( b , a )), c }} c . tokenizer = b } if ( a . hooks ){ let b = this . defaults . hooks || new aX ; for ( let c in a . hooks ){ if ( ! ( c in b )) throw Error ( `hook ' ${ c } ' does not exist` ); if ([ "options" , "block" ]. includes ( c )) continue ; let d = a . hooks [ c ], e = b [ c ]; aX . passThroughHooks . has ( c ) ? b [ c ] = a =>{ if ( this . defaults . async && aX . passThroughHooksRespectAsync . has ( c )) return ( async ()=>{ let c = await d . call ( b , a ); return e . call ( b , c )})(); let f = d . call ( b , a ); return e . call ( b , f )} : b [ c ] = (... a )=>{ if ( this . defaults . async ) return ( async ()=>{ let c = await d . apply ( b , a ); return ! 1 === c && ( c = await e . apply ( b , a )), c })(); let c = d . apply ( b , a ); return ! 1 === c && ( c = e . apply ( b , a )), c }} c . hooks = b } if ( a . walkTokens ){ let b = this . defaults . walkTokens , d = a . walkTokens ; c . walkTokens = function ( a ){ let c = []; return c . push ( d . call ( this , a )), b && ( c = c . concat ( b . call ( this , a ))), c }} this . defaults = {... this . defaults ,... c }}), this } setOptions ( a ){ return this . defaults = {... this . defaults ,... a }, this } lexer ( a , b ){ return aT . lex ( a , b ?? this . defaults )} parser ( a , b ){ return aW . parse ( a , b ?? this . defaults )} parseMarkdown ( a ){ return ( b , c )=>{ let d = {... c }, e = {... this . defaults ,... d }, f = this . onError ( !! e . silent , !! e . async ); if ( ! 0 === this . defaults . async &&! 1 === d . async ) return f ( Error ( "marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise." )); if ( typeof b > "u" || null === b ) return f ( Error ( "marked(): input parameter is undefined or null" )); if ( "string" != typeof b ) return f ( Error ( "marked(): input parameter is of type " + Object . prototype . toString . call ( b ) + ", string expected" )); if ( e . hooks && ( e . hooks . options = e , e . hooks . block = a ), e . async ) return ( async ()=>{ let c = e . hooks ? await e . hooks . preprocess ( b ) : b , d = await ( e . hooks ? await e . hooks . provideLexer ( a ) : a ? aT . lex : aT . lexInline )( c , e ), f = e . hooks ? await e . hooks . processAllTokens ( d ) : d ; e . walkTokens && await Promise . all ( this . walkTokens ( f , e . walkTokens )); let g = await ( e . hooks ? await e . hooks . provideParser ( a ) : a ? aW . parse : aW . parseInline )( f , e ); return e . hooks ? await e . hooks . postprocess ( g ) : g })(). catch ( f ); try { e . hooks && ( b = e . hooks . preprocess ( b )); let c = ( e . hooks ? e . hooks . provideLexer ( a ) : a ? aT . lex : aT . lexInline )( b , e ); e . hooks && ( c = e . hooks . processAllTokens ( c )), e . walkTokens && this . walkTokens ( c , e . walkTokens ); let d = ( e . hooks ? e . hooks . provideParser ( a ) : a ? aW . parse : aW . parseInline )( c , e ); return e . hooks && ( d = e . hooks . postprocess ( d )), d } catch ( a ){ return f ( a )}}} onError ( a , b ){ return c =>{ if ( c . message += `
Please report this to https://github.com/markedjs/marked.` , a ){ let a = "<p>An error occurred:</p><pre>" + aM ( c . message + "" , ! 0 ) + "</pre>" ; return b ? Promise . resolve ( a ) : a } if ( b ) return Promise . reject ( c ); throw c }}}; function aZ ( a , b ){ return aY . parse ( a , b )} aZ . options = aZ . setOptions = function ( a ){ return aY . setOptions ( a ), aZ . defaults = aY . defaults , E = aZ . defaults , aZ }, aZ . getDefaults = D , aZ . defaults = E , aZ . use = function (... a ){ return aY . use (... a ), aZ . defaults = aY . defaults , E = aZ . defaults , aZ }, aZ . walkTokens = function ( a , b ){ return aY . walkTokens ( a , b )}, aZ . parseInline = aY . parseInline , aZ . Parser = aW , aZ . parser = aW . parse , aZ . Renderer = aU , aZ . TextRenderer = aV , aZ . Lexer = aT , aZ . lexer = aT . lex , aZ . Tokenizer = aS , aZ . Hooks = aX , aZ . parse = aZ , aZ . options , aZ . setOptions , aZ . walkTokens , aZ . parseInline , aW . parse , aT . lex ; var a$ = a . i ( 38842 ); let a_ = { allowedTags : [ "p" , "br" , "hr" , "strong" , "em" , "b" , "i" , "u" , "s" , "del" , "ins" , "a" , "img" , "code" , "pre" , "blockquote" , "ul" , "ol" , "li" , "h1" , "h2" , "h3" , "h4" , "h5" , "h6" , "table" , "thead" , "tbody" , "tr" , "th" , "td" , "span" , "div" ], allowedAttributes : { a : [ "href" , "target" , "rel" , "title" ], img : [ "src" , "alt" , "title" , "width" , "height" ], code : [ "class" ], pre : [ "class" ], span : [ "class" ], div : [ "class" ], th : [ "align" , "colspan" , "rowspan" ], td : [ "align" , "colspan" , "rowspan" ], table : [ "align" , "border" , "cellpadding" , "cellspacing" ]}, allowedSchemes : [ "http" , "https" , "mailto" ], allowedSchemesByTag : { img : [ "http" , "https" ]}, allowedSchemesAppliedToAttributes : [ "href" , "src" , "cite" ], allowProtocolRelative :! 1 , disallowedTagsMode : "discard" }; function a0 ( a ){ if ( ! a ) return "" ; try { let b = aZ . parse ( a ); return ( 0 , a$ . default )( b , a_ )} catch { return ( 0 , a$ . default )( a . replace ( /\n/g , "<br>" ), a_ )}} function a1 ({ onOpenModal : a , onReport : d }){ let { currentUser : e , sort : f , setSort : g , openPost : i , openUser : j , navigate : k , refreshKey : l } = o (),{ t : m } = ( 0 , q . useTranslation )(),{ toast : n , confirmAction : p } = ( 0 , t . useToast )(),[ s , u ] = ( 0 , c . useState )( null ),[ v , w ] = ( 0 , c . useState )( null ),[ x , y ] = ( 0 , c . useState )( ! 0 ),[ z , A ] = ( 0 , c . useState )( 1 ),[ B , D ] = ( 0 , c . useState )( 1 ),[ E , F ] = ( 0 , c . useState )( null ),[ G , H ] = ( 0 , c . useState )( f ),[ I , J ] = ( 0 , c . useState )( "idle" ), K = ( 0 , c . useRef )( null ), L = ( 0 , c . useRef )( null ), M = ( 0 , c . useRef )( null ), N = ( 0 , c . useCallback )( async a =>{ w ( null ); try { let b = await h . getPosts ( f , null , a , 20 ); u ( b . data || []), D ( b . pagination ? . totalPages || 1 ), A ( b . pagination ? . page || 1 )} catch ( a ){ w ( a . message ), u ([])} finally { M . current === f && requestAnimationFrame (()=>{ J ( "opening" ), L . current = setTimeout (()=>{ M . current = null , J ( "idle" )}, 360 )})}},[ f , l ]);( 0 , c . useEffect )(()=>{ N ( z )},[ N ]),( 0 , c . useEffect )(()=>{ s && 0 !== s . length && K . current && K . current . querySelectorAll ( ".post-content" ). forEach ( a =>{ a . scrollHeight > a . clientHeight + 4 ? a . classList . add ( "has-fade" ) : a . classList . remove ( "has-fade" )})},[ s ]),( 0 , c . useEffect )(()=>{ A ( 1 )},[ f ]),( 0 , c . useEffect )(()=>()=> clearTimeout ( L . current ),[]); let O = a =>{ if ( a !== G ){ if ( H ( a ), clearTimeout ( L . current ), a === f ){ M . current = null , J ( "opening" ), L . current = setTimeout (()=> J ( "idle" ), 360 ); return } J ( "closing" ), L . current = setTimeout (()=>{ M . current = a , J ( "closed" ), g ( a )}, 220 )}}, P = async a =>{ if ( await p ( m ( "feed.confirmDelete" ))) try { await h . deletePost ( a ), N ( z )} catch ( a ){ n ( m ( "feed.deleteFailed" ,{ msg : a . message }), "error" )}}; return ( 0 , b . jsxs )( "main" ,{ id : "feed" , children : [( 0 , b . jsxs )( "div" ,{ className : "feed-header" , children : [( 0 , b . jsxs )( "div" ,{ className : "feed-header-left" , children : [( 0 , b . jsx )( "button" ,{ className : "tab" + ( "latest" === G ? " active" : "" ), onClick : ()=> O ( "latest" ), children : m ( "feed.latest" )}),( 0 , b . jsx )( "button" ,{ className : "tab" + ( "hot" === G ? " active" : "" ), onClick : ()=> O ( "hot" ), children : m ( "feed.hot" )})]}),( 0 , b . jsxs )( "button" ,{ className : "btn-primary fab-btn" , onClick : ()=>{ e ? k ( "new" ) : n ( m ( "newPost.pleaseLogin" ), "warning" )}, children : [( 0 , b . jsx )( r . Icon ,{ name : "plus" }), " " , m ( "feed.newPost" )]})]}),( 0 , b . jsx )( "div" ,{ className : "feed-posts-drawer " + I , children : ( 0 , b . jsx )( "div" ,{ className : "feed-posts-drawer-inner" , children : ( 0 , b . jsx )( "div" ,{ id : "postList" , ref : K , children : null === s ? ( 0 , b . jsxs )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : "40px 0" }, children : [( 0 , b . jsx )( "span" ,{ className : "spinner-sm" }), m ( "feed.loading" )]}) : v ? ( 0 , b . jsx )( "div" ,{ style : { textAlign : "center" , color : "#ef4444" , padding : "40px 0" }, children : m ( "feed.loadFailed" ,{ msg : v })}) : 0 === s . length ? ( 0 , b . jsx )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : "60px 0" }, children : m ( "feed.empty" )}) : s . map ( a =>{ let c = a . created_at ? new Date ( a . created_at ). toLocaleString ( "zh-CN" ) : "" ; return ( 0 , b . jsxs )( "div" ,{ className : "post-card" , "data-post-id" : a . id , style : { cursor : "pointer" }, onClick : b => i ( a . id , b . currentTarget , a ), children : [ a . is_pinned && ( 0 , b . jsxs )( "div" ,{ className : "post-pin-state" , style : { width : "fit-content" , display : "flex" , alignItems : "center" , gap : 3 , fontSize : 12 , color : "var(--primary)" , fontWeight : 600 , marginBottom : 4 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "pin" , size : 12 }), " " , m ( "feed.pinned" )]}),( 0 , b . jsxs )( "div" ,{ className : "post-header" , children : [( 0 , b . jsx )( "img" ,{ src : a . avatar_url || "https://ui-avatars.com/api/?name=" + encodeURIComponent ( a . username || "匿名用户" ) + "&background=6366f1&color=fff&size=64" , className : "post-avatar" , alt : "" }),( 0 , b . jsx )( "span" ,{ className : "post-username" , style : { cursor : "pointer" , color : "var(--primary)" }, onClick : b =>{ b . stopPropagation (), j ( a . username )}, children : a . username || m ( "feed.anonymous" )}),( 0 , b . jsx )( "span" ,{ className : "post-time" , children : c }), a . edited_at && ( 0 , b . jsx )( "span" ,{ className : "post-edited-state" , style : { fontSize : 11 , color : "var(--text-light)" , marginLeft : 6 }, children : m ( "feed.deleted" )})]}),( 0 , b . jsx )( "div" ,{ className : "post-title" , children : a . title || m ( "feed.noTitle" )}),( 0 , b . jsx )( "div" ,{ className : "post-content" , dangerouslySetInnerHTML : { __html : a0 ( a . content )}}), a . images && a . images . length > 0 && ( 0 , b . jsx )( "div" ,{ className : "post-images" , children : a . images . map (( a , c )=>( 0 , b . jsx )( "img" ,{ src : a , className : "post-image" , alt : "" , style : { cursor : "pointer" }, onClick : b =>{ b . stopPropagation (), F ( a )}}, c ))}),( 0 , b . jsxs )( "div" ,{ className : "post-actions" , children : [( 0 , b . jsxs )( "span" ,{ children : [( 0 , b . jsx )( r . Icon ,{ name : "message" , size : 14 }), " " , a . reply_count || 0 ]}),( 0 , b . jsxs )( "button" ,{ className : "action-report" , onClick : b =>{( b . stopPropagation (), e ) ? d ( a . id ) : n ( m ( "newPost.pleaseLogin" ), "warning" )}, children : [( 0 , b . jsx )( r . Icon ,{ name : "flag" , size : 14 }), " " , m ( "feed.report" )]}), e && ( e . id === a . user_id || "admin" === e . role ) && ( 0 , b . jsxs )( "button" ,{ className : "action-delete" , onClick : b =>{ b . stopPropagation (), P ( a . id )}, children : [( 0 , b . jsx )( r . Icon ,{ name : "trash" , size : 14 }), " " , m ( "feed.delete" )]})]})]}, a . id )})})})}), B > 1 && s && s . length > 0 && ( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , justifyContent : "center" , alignItems : "center" , gap : 6 , padding : "16px 0" , marginTop : 8 , borderTop : "1px solid var(--border)" , flexWrap : "wrap" }, children : [( 0 , b . jsx )( "button" ,{ className : "page-btn" , disabled : z <= 1 , onClick : ()=> N ( z - 1 ), style : { padding : "6px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , background : "var(--surface)" , color : "var(--text)" , cursor : z <= 1 ? "not-allowed" : "pointer" , fontSize : 13 , opacity : z <= 1 ? . 4 : 1 }, children : "«" }), Array . from ({ length : B },( a , b )=> b + 1 ). map ( a =>( 0 , b . jsx )( "button" ,{ className : "page-btn" , disabled : a === z , onClick : ()=> N ( a ), style : { padding : "6px 10px" , border : "1px solid var(--border)" , borderRadius : 4 , fontSize : 13 , minWidth : 32 , textAlign : "center" , background : a === z ? "var(--primary)" : "var(--surface)" , color : a === z ? "#fff" : "var(--text)" , cursor : a === z ? "default" : "pointer" , borderColor : a === z ? "var(--primary)" : "var(--border)" }, children : a }, a )),( 0 , b . jsx )( "button" ,{ className : "page-btn" , disabled : z >= B , onClick : ()=> N ( z + 1 ), style : { padding : "6px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , background : "var(--surface)" , color : "var(--text)" , cursor : z >= B ? "not-allowed" : "pointer" , fontSize : 13 , opacity : z >= B ? . 4 : 1 }, children : "»" })]}), E && ( 0 , b . jsx )( C ,{ src : E , onClose : ()=> F ( null )})]})} function a2 ({ captcha : a , onRefresh : d }){ let e = ( 0 , c . useRef )( null ); return ( 0 , c . useEffect )(()=>{ let b = e . current ; if ( ! b ||! a ) return ; let c = b . getContext ( "2d" ), d = b . width , f = b . height ; c . clearRect ( 0 , 0 , d , f ), c . fillStyle = "rgba(91, 155, 213, 0.10)" , c . fillRect ( 0 , 0 , d , f ); for ( let a = 0 ; a < 4 ; a ++ ) c . strokeStyle = `rgba( ${ 80 + 120 * Math . random () } , ${ 80 + 120 * Math . random () } , 200, ${ . 2 + . 3 * Math . random () } )` , c . lineWidth = 1 + Math . random (), c . beginPath (), c . moveTo ( Math . random () * d , Math . random () * f ), c . lineTo ( Math . random () * d , Math . random () * f ), c . stroke (); for ( let a = 0 ; a < 30 ; a ++ ) c . fillStyle = `rgba( ${ 200 * Math . random () } , ${ 200 * Math . random () } , 220, ${ . 3 + . 5 * Math . random () } )` , c . beginPath (), c . arc ( Math . random () * d , Math . random () * f , 1 + 1.5 * Math . random (), 0 , 2 * Math . PI ), c . fill (); let g = ( a . text || a . question || "" ). replace ( " = ?" , "" ). split ( "" ), h = Math . floor (. 52 * f ), i = d / ( g . length + 1 ); g . forEach (( a , b )=>{ c . save (), c . translate ( i * ( b + 1 ) + ( Math . random () - . 5 ) * 6 , f / 2 + ( Math . random () - . 5 ) * 6 ), c . rotate (( Math . random () - . 5 ) * . 25 ), c . font = `bold ${ h } px -apple-system, "SF Pro Display", "Segoe UI", Roboto, sans-serif` , c . fillStyle = `rgba( ${ 40 + 60 * Math . random () } , ${ 50 + 50 * Math . random () } , 90, 0.9)` , c . textAlign = "center" , c . textBaseline = "middle" , c . fillText ( a , 0 , 0 ), c . restore ()})},[ a ]),( 0 , b . jsx )( "canvas" ,{ ref : e , width : 120 , height : 40 , onClick : d , title : "看不清?点击刷新" , style : { cursor : "pointer" , borderRadius : 6 , border : "1px solid var(--glass-border)" , verticalAlign : "middle" }})} function a3 ({ postId : a , onRefresh : d }){ let e , f ,{ currentUser : g , openUser : i } = o (),{ toast : j , confirmAction : k } = ( 0 , t . useToast )(),[ l , m ] = ( 0 , c . useState )([]),[ n , p ] = ( 0 , c . useState )( "" ),[ q , s ] = ( 0 , c . useState )( null ),[ u , v ] = ( 0 , c . useState )( "" ),[ w , x ] = ( 0 , c . useState )( null ), y = ( 0 , c . useRef )( null ), z = ( 0 , c . useRef )( null ), A = ( 0 , c . useCallback )( async ()=>{ try { let b = await h . getReplies ( a ); m ( b || [])} catch { m ([])}},[ a ]);( 0 , c . useEffect )(()=>{ A ()},[ A ]),( 0 , c . useEffect )(()=>{ h . getCaptcha (). then ( a => s ( a )). catch (()=>{})},[ a ]); let B = async ()=>{ if ( ! g ) return void j ( "请先登录" , "warning" ); if ( ! n . trim ()) return void j ( "请填写回复内容" , "warning" ); if ( ! q ||! u . trim ()) return void j ( "请填写验证码" , "warning" ); try { await h . createReply ( a , n . trim (),{ id : q . id , answer : u . trim (), sig : q . sig }, w ), p ( "" ), v ( "" ), x ( null ), h . getCaptcha (). then ( a => s ( a )). catch (()=>{}), A (), d ()} catch ( a ){ j ( "回复失败:" + a . message , "error" ), h . getCaptcha (). then ( a => s ( a )). catch (()=>{}), v ( "" )}}, C = async a =>{ if ( await k ( "确定要删除这条回复吗?" )) try { await h . deleteReply ( a ), A ()} catch ( a ){ j ( "删除失败:" + a . message , "error" )}}, D = ( e = {}, f = a =>{ if ( void 0 !== e [ a . id ]) return e [ a . id ]; if ( ! a . reply_to_id ) return e [ a . id ] = 0 , 0 ; let b = l . find ( b => b . id === a . reply_to_id ), c = b ? f ( b ) + 1 : 0 ; return e [ a . id ] = c , c }, l . forEach ( a => f ( a )), e ), E = w ? l . find ( a => a . id === w ) : null ; return ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsxs )( "div" ,{ className : "post-reply-count" , style : { marginTop : 20 , fontSize : 14 , color : "#64748b" }, children : [( 0 , b . jsx )( r . Icon ,{ name : "message" , size : 14 }), " " , l . length , " 条回复" ]}),( 0 , b . jsx )( "div" ,{ style : { marginTop : 12 }, children : 0 === l . length ? ( 0 , b . jsxs )( "div" ,{ style : { color : "#94a3b8" , padding : "20px 0" , textAlign : "center" }, children : [( 0 , b . jsx )( r . Icon ,{ name : "message" , size : 16 }), " 还没有回复,快来发表第一条回复吧" ]}) : l . map ( a =>{ let c = a . created_at ? new Date ( a . created_at ). toLocaleString ( "zh-CN" ) : "" , d = Math . min ( D [ a . id ] || 0 , 5 ); return ( 0 , b . jsxs )( "div" ,{ className : "reply-item" , "data-username" : a . username , "data-reply-id" : a . id , style : { marginLeft : d ? 18 * d : 0 }, children : [( 0 , b . jsxs )( "div" ,{ className : "reply-header" , children : [( 0 , b . jsx )( "img" ,{ src : a . avatar_url || "https://ui-avatars.com/api/?name=" + encodeURIComponent ( a . username || "匿名用户" ) + "&background=6366f1&color=fff&size=64" , className : "reply-avatar" , alt : "" }),( 0 , b . jsx )( "span" ,{ className : "reply-username" , style : { cursor : "pointer" , color : "var(--primary)" }, onClick : ()=> i ( a . username ), children : a . username || "匿名用户" }),( 0 , b . jsx )( "span" ,{ className : "reply-time" , children : c }),( 0 , b . jsx )( "button" ,{ className : "reply-btn" , onClick : ()=>{ x ( a . id ), setTimeout (()=>{ y . current ? . scrollIntoView ({ behavior : "smooth" , block : "center" }), z . current ? . focus ()}, 120 )}, title : "回复" , children : ( 0 , b . jsx )( r . Icon ,{ name : "reply" , size : 13 })}), g && ( g . id === a . user_id || "admin" === g . role ) && ( 0 , b . jsxs )( "button" ,{ className : "btn-sm btn-danger reply-delete-btn" , onClick : ()=> C ( a . id ), children : [( 0 , b . jsx )( r . Icon ,{ name : "trash" , size : 12 }), " 删除" ]})]}),( 0 , b . jsx )( "div" ,{ className : "reply-content" , dangerouslySetInnerHTML : { __html : a0 ( a . content )}})]}, a . id )})}),( 0 , b . jsxs )( "div" ,{ id : "replyArea" , ref : y , style : { marginTop : 24 , borderTop : "1px solid var(--border)" , paddingTop : 20 }, children : [( 0 , b . jsxs )( "h3" ,{ style : { fontSize : 16 , marginBottom : 12 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "message" , size : 16 }), " 发表回复" ]}), w && E && ( 0 , b . jsxs )( "div" ,{ className : "reply-preview-bar" , children : [( 0 , b . jsx )( r . Icon ,{ name : "reply" , size : 13 }),( 0 , b . jsx )( "span" ,{ children : "回复" }),( 0 , b . jsxs )( "strong" ,{ children : [ "@" , E . username ]}),( 0 , b . jsx )( "button" ,{ className : "reply-preview-cancel" , onClick : ()=> x ( null ), children : "取消" })]}),( 0 , b . jsx )( "textarea" ,{ ref : z , rows : 3 , placeholder : "写下你的回复..." , style : { width : "100%" , padding : "10px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , fontSize : 14 , fontFamily : "inherit" , resize : "vertical" , background : "var(--bg)" , color : "var(--text)" }, value : n , onChange : a => p ( a . target . value ), onKeyDown : a =>{ "Enter" === a . key && ( a . ctrlKey || a . metaKey ) && B ()}}),( 0 , b . jsxs )( "div" ,{ className : "captcha-row" , style : { margin : "10px 0" , display : "flex" , alignItems : "center" , gap : 10 }, children : [ q ? ( 0 , b . jsx )( a2 ,{ captcha : q , onRefresh : ()=>{ h . getCaptcha (). then ( a => s ( a )). catch (()=>{}), v ( "" )}}) : ( 0 , b . jsx )( "span" ,{ style : { color : "var(--text-light)" }, children : "验证码加载中..." }),( 0 , b . jsx )( "input" ,{ type : "text" , placeholder : "答案" , style : { width : 80 , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , background : "var(--bg)" , color : "var(--text)" , outline : "none" }, value : u , onChange : a => v ( a . target . value )})]}),( 0 , b . jsx )( "button" ,{ className : "btn-primary" , style : { padding : "8px 24px" }, onClick : B , children : "提交回复" })]})]})} function a4 ({ postId : a , initialPost : d = null }){ let { currentUser : e , navigate : f , openUser : g , refreshKey : j } = o (),{ toast : k , confirmAction : l } = ( 0 , t . useToast )(),[ m , n ] = ( 0 , c . useState )( d ),[ p , q ] = ( 0 , c . useState )( null ),[ s , u ] = ( 0 , c . useState )( null ),[ v , w ] = ( 0 , c . useState )( ! 1 ),[ x , y ] = ( 0 , c . useState )( "" ),[ z , A ] = ( 0 , c . useState )( "" ),[ D , E ] = ( 0 , c . useState )([]),[ F , G ] = ( 0 , c . useState )( ! 1 ), H = ( 0 , c . useRef )( null ),[ I , J ] = ( 0 , c . useState )( ! 1 );( 0 , c . useEffect )(()=>{ if ( m &&! I ){ let a = setTimeout (()=> J ( ! 0 ), 60 ); return ()=> clearTimeout ( a )}},[ m ]); let K = ( 0 , c . useCallback )( async ()=>{ q ( null ); try { let b = await h . getPost ( a ); n ( b )} catch ( a ){ q ( a . message )}},[ a , j ]), L = ( 0 , c . useRef )( j );( 0 , c . useEffect )(()=>{( d ? . id !== a || j !== L . current ) && K ()},[ d ? . id , K , a , j ]); let M = ( 0 , c . useMemo )(()=> a0 ( m ? . content ),[ m ? . content ]), N = ( 0 , c . useMemo )(()=> a0 ( m ? . signature ),[ m ? . signature ]); if ( p ) return ( 0 , b . jsxs )( "div" ,{ id : "pagePost" , className : "page-slide active" , style : { padding : "40px 0" , textAlign : "center" , color : "#ef4444" }, children : [ "加载失败:" , p ]}); if ( ! m ) return ( 0 , b . jsxs )( "div" ,{ id : "pagePost" , className : "page-slide active" , style : { textAlign : "center" , color : "#94a3b8" }, children : [( 0 , b . jsx )( "span" ,{ className : "spinner-sm" }), "加载中..." ]}); let O = m . created_at ? new Date ( m . created_at ). toLocaleString ( "zh-CN" ) : "" , P = e && ( e . id === m . user_id || "admin" === e . role ), Q = e && e . id === m . user_id , R = async ()=>{ if ( await l ( "确定要删除这条帖子吗?" )) try { await h . deletePost ( a ), k ( "删除成功" , "success" ), f ( "feed" )} catch ( a ){ k ( "删除失败:" + a . message , "error" )}}, S = async ()=>{ if ( await l ( "确定要" + ( m . is_pinned ? "取消" : "" ) + "置顶吗?" ,{ danger :! 1 })) try { await h . togglePinPost ( a ), K ()} catch ( a ){ k ( "操作失败:" + a . message , "error" )}}, T = async ()=>{ if ( ! z . trim ()) return void k ( "请填写内容" , "warning" ); try { await h . updatePost ( a , x . trim () || "无标题" , z . trim (), D ), w ( ! 1 ), K ()} catch ( a ){ k ( "编辑失败:" + a . message , "error" )}}, U = async a =>{ if ( a ){ if ( ! a . type . startsWith ( "image/" )) return void k ( "请选择图片文件" , "warning" ); if ( a . size > 5242880 ) return void k ( "图片不能超过 5MB" , "warning" ); G ( ! 0 ); try { let b = await i ( a ); E ( a =>[... a , b ])} catch ( a ){ k ( "上传失败:" + a . message , "error" )} finally { G ( ! 1 )}}}; return ( 0 , b . jsxs )( "div" ,{ id : "pagePost" , className : "page-slide active" , children : [( 0 , b . jsxs )( "div" ,{ className : "page-header post-page-header" , children : [( 0 , b . jsxs )( "button" ,{ className : "back-btn" , onClick : ()=> f ( "feed" ), children : [( 0 , b . jsx )( r . Icon ,{ name : "back" , size : 16 }), " 返回" ]}),( 0 , b . jsx )( "h2" ,{ children : m . title || "帖子详情" })]}),( 0 , b . jsxs )( "div" ,{ className : "post-page-layout" , children : [( 0 , b . jsx )( B ,{ id : "postSidebar" }),( 0 , b . jsxs )( "div" ,{ id : "postDetailContent" , className : "post-page-main" , children : [( 0 , b . jsxs )( "div" ,{ className : "post-detail-card" , children : [( 0 , b . jsxs )( "div" ,{ className : "post-header" , children : [( 0 , b . jsx )( "img" ,{ src : m . avatar_url || "https://ui-avatars.com/api/?name=" + encodeURIComponent ( m . username || "匿名用户" ) + "&background=6366f1&color=fff&size=64" , className : "post-avatar" , alt : "" }),( 0 , b . jsx )( "span" ,{ className : "post-username" , style : { cursor : "pointer" , color : "var(--primary)" }, onClick : ()=> g ( m . username ), children : m . username || "匿名用户" }),( 0 , b . jsx )( "span" ,{ className : "post-time" , children : O }), m . edited_at && ( 0 , b . jsxs )( "span" ,{ className : "post-edited-state" , style : { fontSize : 12 , color : "var(--text-light)" , marginLeft : 8 }, children : [ "(已编辑 " , new Date ( m . edited_at ). toLocaleString ( "zh-CN" ), ") " ]}), m . is_pinned && ( 0 , b . jsxs )( "span" ,{ className : "post-pin-state" , style : { fontSize : 12 , color : "var(--primary)" , marginLeft : 8 , display : "inline-flex" , alignItems : "center" , gap : 3 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "pin" , size : 12 }), " 置顶" ]}),( 0 , b . jsxs )( "div" ,{ className : "post-detail-controls" , style : { display : "flex" , gap : 4 , marginLeft : "auto" }, children : [ e && "admin" === e . role && ( 0 , b . jsxs )( "button" ,{ className : "btn-sm btn-secondary" , style : { padding : "4px 10px" }, onClick : S , children : [( 0 , b . jsx )( r . Icon ,{ name : "pin" , size : 12 }), " " , m . is_pinned ? "取消置顶" : "置顶" ]}), Q && ( 0 , b . jsxs )( "button" ,{ className : "btn-sm btn-secondary" , style : { padding : "4px 10px" }, onClick : ()=>{ y ( m . title || "" ), A ( m . content || "" ), E ( m . images || []), w ( ! 0 )}, children : [( 0 , b . jsx )( r . Icon ,{ name : "edit" , size : 12 }), " 编辑" ]}), P && ( 0 , b . jsxs )( "button" ,{ className : "btn-sm btn-danger" , style : { padding : "4px 10px" }, onClick : R , children : [( 0 , b . jsx )( r . Icon ,{ name : "trash" , size : 14 }), " 删除" ]})]})]}),( 0 , b . jsx )( "div" ,{ className : "post-content" , dangerouslySetInnerHTML : { __html : M }}), m . images && m . images . length > 0 && ( 0 , b . jsx )( "div" ,{ className : "post-images" , children : m . images . map (( a , c )=>( 0 , b . jsx )( "img" ,{ src : a , className : "post-image" , alt : "" , style : { cursor : "pointer" }, onClick : ()=> u ( a )}, c ))}), m . signature && ( 0 , b . jsx )( "div" ,{ className : "post-detail-signature" , style : { marginTop : 16 , paddingTop : 12 , borderTop : "1px solid var(--border-light)" , fontSize : 12 , color : "var(--text-secondary)" }, dangerouslySetInnerHTML : { __html : N }})]}),( 0 , b . jsx )( "div" ,{ style : { maxWidth : 700 , margin : "0 auto" , width : "100%" , marginTop : 16 }, children : ( 0 , b . jsx )( "div" ,{ className : "replies-drawer" + ( I ? " open" : "" ), children : ( 0 , b . jsx )( "div" ,{ className : "replies-drawer-inner" , children : ( 0 , b . jsx )( a3 ,{ postId : a , onRefresh : K })})})})]})]}), v && ( 0 , b . jsx )( "div" ,{ className : "modal active" , style : { display : "flex" }, onClick : a =>{ a . target === a . currentTarget && w ( ! 1 )}, children : ( 0 , b . jsxs )( "div" ,{ className : "modal-content" , style : { maxWidth : 600 , position : "relative" }, children : [( 0 , b . jsx )( "span" ,{ className : "close" , style : { position : "absolute" , top : 12 , right : 16 , cursor : "pointer" , color : "var(--text-light)" }, onClick : ()=> w ( ! 1 ), children : ( 0 , b . jsx )( r . Icon ,{ name : "close" , size : 20 })}),( 0 , b . jsxs )( "h2" ,{ style : { marginBottom : 16 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "edit" , size : 20 }), " 编辑帖子" ]}),( 0 , b . jsx )( "input" ,{ type : "text" , placeholder : "标题" , value : x , onChange : a => y ( a . target . value ), style : { width : "100%" , padding : "10px 14px" , border : "1px solid var(--border)" , borderRadius : 6 , fontSize : 15 , fontWeight : 600 , marginBottom : 12 , background : "var(--bg)" , color : "var(--text)" }}),( 0 , b . jsx )( "textarea" ,{ rows : 6 , placeholder : "说点什么..." , value : z , onChange : a => A ( a . target . value ), style : { width : "100%" , padding : 12 , border : "1px solid var(--border)" , borderRadius : 6 , fontSize : 15 , fontFamily : "inherit" , resize : "vertical" , background : "var(--bg)" , color : "var(--text)" }}), D . length > 0 && ( 0 , b . jsx )( "div" ,{ style : { display : "flex" , flexWrap : "wrap" , gap : 8 , marginTop : 10 }, children : D . map (( a , c )=>( 0 , b . jsxs )( "div" ,{ style : { position : "relative" }, children : [( 0 , b . jsx )( "img" ,{ src : a , alt : "" , style : { width : 72 , height : 72 , objectFit : "cover" , borderRadius : 6 , border : "1px solid var(--border)" }}),( 0 , b . jsx )( "button" ,{ type : "button" , title : "删除图片" , onClick : ()=>{ E ( b => b . filter ( b => b !== a ))}, style : { position : "absolute" , top :- 6 , right :- 6 , width : 20 , height : 20 , borderRadius : "50%" , background : "#ef4444" , color : "#fff" , border : "none" , cursor : "pointer" , lineHeight : 1 , display : "flex" , alignItems : "center" , justifyContent : "center" }, children : ( 0 , b . jsx )( r . Icon ,{ name : "close" , size : 12 })})]}, a + c ))}),( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , gap : 8 , marginTop : 12 }, children : [( 0 , b . jsx )( "button" ,{ type : "button" , className : "btn-secondary" , style : { padding : "8px 16px" , border : "1px solid var(--border)" , borderRadius : 4 , background : "var(--surface)" , cursor : "pointer" , color : "var(--text)" }, onClick : ()=> H . current ? . click (), children : F ? "上传中..." : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( r . Icon ,{ name : "camera" , size : 14 }), " 上传图片" ]})}),( 0 , b . jsx )( "input" ,{ type : "file" , ref : H , accept : "image/*" , multiple :! 0 , style : { display : "none" }, onChange : a =>{ let b = a . target . files ; b && b . length > 0 && ([... b ]. forEach ( a => U ( a )), a . target . value = "" )}})]}),( 0 , b . jsx )( "button" ,{ className : "btn-primary" , style : { padding : "10px 32px" , fontSize : 15 , marginTop : 12 , width : "100%" }, onClick : T , children : "保存" })]})}), s && ( 0 , b . jsx )( C ,{ src : s , onClose : ()=> u ( null )})]})} function a5 (){ let { currentUser : a , navigate : d , refresh : e } = o (),{ t : f } = ( 0 , q . useTranslation )(),{ toast : g } = ( 0 , t . useToast )(),[ j , k ] = ( 0 , c . useState )( "" ),[ l , m ] = ( 0 , c . useState )( "" ),[ n , p ] = ( 0 , c . useState )([]),[ s , u ] = ( 0 , c . useState )([]),[ v , w ] = ( 0 , c . useState )( null ),[ x , y ] = ( 0 , c . useState )( "" ),[ z , A ] = ( 0 , c . useState )( ! 1 );( 0 , c . useEffect )(()=>{ h . getCaptcha (). then ( a => w ( a )). catch (()=>{})},[]); let B = async a =>{ A ( ! 0 ); try { let b = []; for ( let c of a ){ if ( ! c . type . startsWith ( "image/" )) continue ; if ( c . size > 5242880 ){ g ( "图片 " + c . name + " 超过 5MB,请压缩后上传" , "warning" ); continue } let a = await new Promise ( a =>{ let b = new FileReader ; b . onload = b => a ( b . target . result ), b . readAsDataURL ( c )}); b . push ( a ); let d = await i ( c ); p ( a =>[... a , d ])} u ( a =>[... a ,... b ])} catch ( a ){ g ( "上传失败:" + a . message , "error" )} finally { A ( ! 1 )}},[ C , D ] = ( 0 , c . useState )( ! 1 ), E = ( 0 , c . useRef )( null ), F = async ()=>{ if ( ! a ||! a . id ){ g ( "请先登录" , "error" ), d ( "feed" ); return } if ( ! l . trim ()) return void g ( "请填写内容" , "error" ); if ( ! v ||! x . trim ()) return void g ( "请填写验证码" , "error" ); try { await h . createPost ( j . trim () || "无标题" , l . trim (), n ,{ id : v . id , answer : x . trim (), sig : v . sig }), g ( "发布成功" , "success" ), d ( "feed" ), e ()} catch ( a ){ g ( "发布失败:" + a . message , "error" )}}; return ( 0 , b . jsxs )( "div" ,{ className : "page-slide active" , children : [( 0 , b . jsx )( "div" ,{ className : "page-header" , style : { maxWidth : 600 , margin : "0 auto" , width : "100%" }, children : ( 0 , b . jsxs )( "h2" ,{ children : [( 0 , b . jsx )( r . Icon ,{ name : "plus" , size : 20 }), " " , f ( "newPost.title" )]})}),( 0 , b . jsxs )( "div" ,{ style : { maxWidth : 600 , margin : "0 auto" , width : "100%" }, children : [( 0 , b . jsx )( "input" ,{ type : "text" , placeholder : f ( "newPost.title" ), style : { width : "100%" , padding : "10px 14px" , border : "1.5px solid var(--border)" , borderRadius : 6 , fontSize : 15 , fontWeight : 600 , marginBottom : 12 , fontFamily : "inherit" , background : "var(--bg)" , color : "var(--text)" }, value : j , onChange : a => k ( a . target . value )}),( 0 , b . jsx )( "textarea" ,{ rows : 6 , placeholder : f ( "newPost.content" ), style : { width : "100%" , padding : 12 , border : "1.5px solid var(--border)" , borderRadius : 6 , fontSize : 15 , fontFamily : "inherit" , resize : "vertical" , background : "var(--bg)" , color : "var(--text)" }, value : l , onChange : a => m ( a . target . value )}),( 0 , b . jsx )( "div" ,{ id : "imagePreview" , style : { display : "flex" , flexWrap : "wrap" , gap : 8 , margin : "8px 0" }, children : s . map (( a , c )=>( 0 , b . jsx )( "img" ,{ src : a , alt : "" , style : { width : 80 , height : 80 , objectFit : "cover" , borderRadius : 4 , border : "1px solid var(--border)" }}, c ))}),( 0 , b . jsxs )( "div" ,{ id : "dropZone" , style : { border : "2px dashed " + ( C ? "var(--primary)" : "var(--border)" ), borderRadius : 8 , padding : 24 , textAlign : "center" , cursor : "pointer" , transition : "all 0.3s" , margin : "8px 0 12px" , background : C ? "var(--primary-bg)" : "var(--bg)" }, onClick : ()=> E . current ? . click (), onDragOver : a =>{ a . preventDefault (), D ( ! 0 )}, onDragLeave : a =>{ a . preventDefault (), D ( ! 1 )}, onDrop : a =>{ a . preventDefault (), D ( ! 1 ), a . dataTransfer . files && B ( Array . from ( a . dataTransfer . files ))}, children : [ ! z &&! C && ( 0 , b . jsx )( r . Icon ,{ name : "image" , size : 32 , style : { display : "block" , margin : "0 auto 8px" , color : "var(--text-secondary)" }}),( 0 , b . jsx )( "div" ,{ style : { fontSize : 13 , color : "var(--text-secondary)" }, children : f ( z ? "newPost.uploading" : C ? "newPost.drop" : "newPost.dropHint" )})]}),( 0 , b . jsx )( "input" ,{ type : "file" , id : "fileInput" , accept : "image/*" , multiple :! 0 , ref : E , style : { display : "none" }, onChange : a =>{ a . target . files && B ( Array . from ( a . target . files ))}}),( 0 , b . jsxs )( "div" ,{ className : "captcha-row" , style : { margin : "12px 0" , display : "flex" , alignItems : "center" , gap : 10 }, children : [ v ? ( 0 , b . jsx )( a2 ,{ captcha : v , onRefresh : ()=>{ h . getCaptcha (). then ( a => w ( a )). catch (()=>{}), y ( "" )}}) : ( 0 , b . jsx )( "span" ,{ style : { color : "var(--text-light)" }, children : f ( "newPost.captchaLoading" )}),( 0 , b . jsx )( "input" ,{ type : "text" , placeholder : f ( "newPost.answer" ), style : { width : 80 , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , background : "var(--bg)" , color : "var(--text)" , outline : "none" }, value : x , onChange : a => y ( a . target . value )})]}),( 0 , b . jsx )( "button" ,{ className : "btn-primary" , style : { padding : "10px 32px" , fontSize : 15 }, onClick : F , children : f ( z ? "newPost.uploading" : "newPost.publish" )})]})]})} function a6 (){ let { t : a } = ( 0 , q . useTranslation )(),{ toast : d , confirmAction : e } = ( 0 , t . useToast )(),[ f , g ] = ( 0 , c . useState )( null ),[ i , j ] = ( 0 , c . useState )( null ), k = ()=>{ h . getReports (). then ( a =>{ g ( a || []), j ( null )}). catch ( a =>{ j ( a . message ), g ([])})};( 0 , c . useEffect )( k ,[]); let l = async ( b , c )=>{ let f = "approve" === c ? a ( "admin.report.approvedNote" ) : a ( "admin.report.rejectedNote" ); if ( "approve" !== c || await e ( a ( "admin.report.confirmApprove" ))) try { await h . updateReport ( b . id , "approve" === c ? "approved" : "rejected" , f ), "approve" === c && b . post_id && h . deletePost ( b . post_id ). catch (()=>{}), k ()} catch ( b ){ d ( a ( "admin.common.operationFailed" ,{ msg : b . message }), "error" )}}; if ( i ) return ( 0 , b . jsx )( "div" ,{ style : { textAlign : "center" , color : "#ef4444" , padding : 20 }, children : a ( "admin.common.loadFailed" ,{ msg : i })}); if ( ! f ) return ( 0 , b . jsxs )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : 20 }, children : [( 0 , b . jsx )( "span" ,{ className : "spinner-sm" }), a ( "admin.common.loading" )]}); if ( 0 === f . length ) return ( 0 , b . jsxs )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : 40 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "success" , size : 16 }), " " , a ( "admin.report.empty" )]}); let m = { pending : a ( "admin.report.statusPending" ), approved : a ( "admin.report.statusApproved" ), rejected : a ( "admin.report.statusRejected" )}, n = { pending : "pending" , approved : "success" , rejected : "error" }; return f . map ( c =>( 0 , b . jsxs )( "div" ,{ className : "report-item" , children : [( 0 , b . jsx )( "div" ,{ children : a ( "admin.report.reportedPost" ,{ name : c . reporter_name || a ( "admin.report.anonymous" )})}),( 0 , b . jsx )( "div" ,{ style : { fontSize : 13 , color : "#64748b" , margin : "4px 0" }, children : a ( "admin.report.reason" ,{ reason : c . reason })}),( 0 , b . jsx )( "div" ,{ style : { fontSize : 13 , color : "#64748b" , margin : "4px 0" }, children : a ( "admin.report.post" ,{ title : c . post_title || a ( "admin.report.untitled" ), content : ( c . post_content || "" ). substring ( 0 , 30 ) + (( c . post_content || "" ). length > 30 ? "..." : "" )})}),( 0 , b . jsxs )( "div" ,{ style : { fontSize : 13 , fontWeight : 600 , display : "flex" , alignItems : "center" , gap : 4 }, children : [ n [ c . status ] && ( 0 , b . jsx )( r . Icon ,{ name : n [ c . status ], size : 13 }), " " , a ( "admin.common.status" ), ": " , m [ c . status ] || c . status ]}), c . handler_name && ( 0 , b . jsxs )( "div" ,{ style : { fontSize : 12 , color : "#94a3b8" }, children : [ a ( "admin.report.handler" ,{ name : c . handler_name }), c . handler_note ? " (" + c . handler_note + ")" : "" ]}), "pending" === c . status && ( 0 , b . jsxs )( "div" ,{ className : "report-actions" , children : [( 0 , b . jsxs )( "button" ,{ className : "btn-sm btn-danger" , onClick : ()=> l ( c , "approve" ), children : [( 0 , b . jsx )( r . Icon ,{ name : "trash" , size : 12 }), " " , a ( "admin.report.deletePost" )]}),( 0 , b . jsxs )( "button" ,{ className : "btn-sm btn-secondary" , onClick : ()=> l ( c , "reject" ), children : [( 0 , b . jsx )( r . Icon ,{ name : "close" , size : 12 }), " " , a ( "admin.report.reject" )]})]})]}, c . id ))} function a7 (){ let { currentUser : a } = o (),{ t : d , i18n : e } = ( 0 , q . useTranslation )(),{ toast : f , confirmAction : g } = ( 0 , t . useToast )(),[ i , j ] = ( 0 , c . useState )( null ),[ k , l ] = ( 0 , c . useState )( null ), m = ()=>{ h . getUsers (). then ( a =>{ j ( a || []), l ( null )}). catch ( a =>{ l ( a . message ), j ([])})};( 0 , c . useEffect )( m ,[]); let n = async ( a , b )=>{ let c = "admin" === b ? d ( "admin.user.roleAdmin" ) : d ( "admin.user.roleUser" ); if ( await g ( d ( "admin.user.confirmRole" ,{ role : c }),{ danger :! 1 })) try { await h . updateUserRole ( a . id , b ), m ()} catch ( a ){ f ( d ( "admin.common.operationFailed" ,{ msg : a . message }), "error" )}}; if ( k ) return ( 0 , b . jsx )( "div" ,{ style : { textAlign : "center" , color : "#ef4444" , padding : 20 }, children : d ( "admin.common.loadFailed" ,{ msg : k })}); if ( ! i ) return ( 0 , b . jsxs )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : 20 }, children : [( 0 , b . jsx )( "span" ,{ className : "spinner-sm" }), d ( "admin.common.loading" )]}); let p = "en" === e . resolvedLanguage ? "en-US" : "zh-CN" ; return ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsx )( "div" ,{ style : { marginBottom : 12 , fontSize : 13 , color : "#94a3b8" }, children : d ( "admin.user.count" ,{ count : i . length })}),( 0 , b . jsx )( "div" ,{ style : { overflowX : "auto" }, children : ( 0 , b . jsxs )( "table" ,{ style : { width : "100%" , borderCollapse : "collapse" , fontSize : 14 }, children : [( 0 , b . jsx )( "thead" ,{ children : ( 0 , b . jsxs )( "tr" ,{ style : { textAlign : "left" , borderBottom : "2px solid var(--border)" }, children : [( 0 , b . jsx )( "th" ,{ style : { padding : "10px 12px" }, children : d ( "admin.user.user" )}),( 0 , b . jsx )( "th" ,{ style : { padding : "10px 12px" }, children : d ( "admin.user.role" )}),( 0 , b . jsx )( "th" ,{ style : { padding : "10px 12px" }, children : d ( "admin.user.registeredAt" )}),( 0 , b . jsx )( "th" ,{ style : { padding : "10px 12px" , textAlign : "center" }, children : d ( "admin.common.actions" )})]})}),( 0 , b . jsx )( "tbody" ,{ children : i . map ( c =>{ let e = "admin" === c . role , f = a && a . id === c . id ; return ( 0 , b . jsxs )( "tr" ,{ style : { borderBottom : "1px solid #f1f5f9" }, children : [( 0 , b . jsx )( "td" ,{ style : { padding : "10px 12px" }, children : ( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , alignItems : "center" , gap : 8 }, children : [( 0 , b . jsx )( "img" ,{ src : c . avatar_url || "https://ui-avatars.com/api/?name=" + encodeURIComponent ( c . username ) + "&background=6366f1&color=fff&size=64" , style : { width : 28 , height : 28 , borderRadius : "50%" , objectFit : "cover" }, alt : "" }),( 0 , b . jsx )( "span" ,{ style : { fontWeight : 500 }, children : c . username }), f && ( 0 , b . jsx )( "span" ,{ style : { fontSize : 11 , color : "#94a3b8" , background : "#eef2ff" , padding : "1px 8px" , borderRadius : 4 }, children : d ( "admin.user.you" )})]})}),( 0 , b . jsx )( "td" ,{ style : { padding : "10px 12px" }, children : ( 0 , b . jsx )( "span" ,{ style : { display : "inline-block" , padding : "2px 10px" , borderRadius : 4 , fontSize : 12 , fontWeight : 500 ,... e ? { background : "#6366f1" , color : "#fff" } : { background : "var(--border)" , color : "var(--text-secondary)" }}, children : e ? c . is_super ? d ( "admin.user.roleSuper" ) : d ( "admin.user.roleAdmin" ) : d ( "admin.user.roleUser" )})}),( 0 , b . jsx )( "td" ,{ style : { padding : "10px 12px" , color : "#94a3b8" , fontSize : 13 }, children : c . created_at ? new Date ( c . created_at ). toLocaleDateString ( p ) : "—" }),( 0 , b . jsx )( "td" ,{ style : { padding : "10px 12px" , textAlign : "center" }, children : f ? ( 0 , b . jsx )( "span" ,{ style : { fontSize : 12 , color : "#94a3b8" }, children : d ( "admin.user.cannotSelf" )}) : e ? ( 0 , b . jsx )( "button" ,{ className : "btn-sm btn-secondary" , style : { padding : "4px 12px" }, onClick : ()=> n ( c , "user" ), children : d ( "admin.user.makeUser" )}) : ( 0 , b . jsx )( "button" ,{ className : "btn-sm btn-primary" , style : { padding : "4px 12px" , background : "#6366f1" , color : "#fff" , border : "none" , borderRadius : 4 , cursor : "pointer" }, onClick : ()=> n ( c , "admin" ), children : d ( "admin.user.makeAdmin" )})})]}, c . id )})})]})})]})} function a8 (){ let { t : a , i18n : d } = ( 0 , q . useTranslation )(),[ e , f ] = ( 0 , c . useState )( null ),[ g , i ] = ( 0 , c . useState )( null ); if (( 0 , c . useEffect )(()=>{ h . getEventLogs (). then ( a =>{ f ( a || []), i ( null )}). catch ( a =>{ i ( a . message ), f ([])})},[]), g ) return ( 0 , b . jsx )( "div" ,{ style : { textAlign : "center" , color : "#ef4444" , padding : 20 }, children : a ( "admin.common.loadFailed" ,{ msg : g })}); if ( ! e ) return ( 0 , b . jsxs )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : 20 }, children : [( 0 , b . jsx )( "span" ,{ className : "spinner-sm" }), a ( "admin.common.loading" )]}); if ( 0 === e . length ) return ( 0 , b . jsx )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : 40 }, children : a ( "admin.log.empty" )}); let j = "en" === d . resolvedLanguage ? "en-US" : "zh-CN" ; return ( 0 , b . jsxs )( "table" ,{ style : { width : "100%" , borderCollapse : "collapse" , fontSize : 13 }, children : [( 0 , b . jsx )( "thead" ,{ children : ( 0 , b . jsxs )( "tr" ,{ style : { textAlign : "left" , borderBottom : "1px solid var(--border)" }, children : [( 0 , b . jsx )( "th" ,{ children : a ( "admin.log.time" )}),( 0 , b . jsx )( "th" ,{ children : a ( "admin.log.user" )}),( 0 , b . jsx )( "th" ,{ children : a ( "admin.log.action" )})]})}),( 0 , b . jsx )( "tbody" ,{ children : e . map ( c =>( 0 , b . jsxs )( "tr" ,{ style : { borderBottom : "1px solid #f1f5f9" }, children : [( 0 , b . jsx )( "td" ,{ style : { padding : "6px 0" }, children : new Date ( c . created_at ). toLocaleString ( j )}),( 0 , b . jsx )( "td" ,{ style : { padding : "6px 0" }, children : c . username || a ( "admin.log.system" )}),( 0 , b . jsx )( "td" ,{ style : { padding : "6px 0" }, children : c . action })]}, c . id ))})]})} function a9 (){ let { t : a } = ( 0 , q . useTranslation )(),{ toast : d , confirmAction : e } = ( 0 , t . useToast )(),[ f , g ] = ( 0 , c . useState )([]),[ i , j ] = ( 0 , c . useState )( "" ),[ k , l ] = ( 0 , c . useState )( "" ), m = ()=>{ h . getLinks (). then ( g ). catch (()=>{})};( 0 , c . useEffect )( m ,[]); let n = async ()=>{ if ( ! i . trim () ||! k . trim ()) return void d ( a ( "admin.link.incomplete" ), "warning" ); try { await h . addLink ( i . trim (), k . trim ()), j ( "" ), l ( "" ), m ()} catch ( b ){ d ( a ( "admin.link.addFailed" ,{ msg : b . message }), "error" )}}, o = async b =>{ if ( await e ( a ( "admin.link.confirmDelete" ))) try { await h . deleteLink ( b ), m ()} catch ( b ){ d ( a ( "admin.common.deleteFailed" ,{ msg : b . message }), "error" )}}; return ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsxs )( "div" ,{ style : { marginBottom : 16 , display : "flex" , gap : 8 , flexWrap : "wrap" }, children : [( 0 , b . jsx )( "input" ,{ type : "text" , placeholder : a ( "admin.link.namePlaceholder" ), style : { flex : 1 , minWidth : 120 , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , background : "var(--bg)" , color : "var(--text)" }, value : i , onChange : a => j ( a . target . value )}),( 0 , b . jsx )( "input" ,{ type : "url" , placeholder : a ( "admin.link.urlPlaceholder" ), style : { flex : 2 , minWidth : 160 , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , background : "var(--bg)" , color : "var(--text)" }, value : k , onChange : a => l ( a . target . value )}),( 0 , b . jsx )( "button" ,{ className : "btn-primary" , style : { padding : "8px 16px" }, onClick : n , children : a ( "admin.link.add" )})]}),( 0 , b . jsx )( "div" ,{ id : "linkList" , children : 0 === f . length ? ( 0 , b . jsx )( "div" ,{ style : { color : "#94a3b8" , fontSize : 13 }, children : a ( "admin.link.empty" )}) : f . map ( c =>( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , justifyContent : "space-between" , alignItems : "center" , padding : "8px 0" , borderBottom : "1px solid var(--border)" }, children : [( 0 , b . jsx )( "span" ,{ children : ( 0 , b . jsx )( "a" ,{ href : c . url , target : "_blank" , rel : "noreferrer" , style : { color : "#6366f1" , textDecoration : "none" }, children : c . title })}),( 0 , b . jsxs )( "button" ,{ className : "btn-sm btn-danger" , onClick : ()=> o ( c . id ), children : [( 0 , b . jsx )( r . Icon ,{ name : "trash" , size : 12 }), " " , a ( "admin.common.delete" )]})]}, c . id ))})]})} function ba (){ let { updateForumName : a } = o (),{ t : d } = ( 0 , q . useTranslation )(),{ toast : e } = ( 0 , t . useToast )(),[ f , g ] = ( 0 , c . useState )( "" ),[ i , j ] = ( 0 , c . useState )( null );( 0 , c . useEffect )(()=>{ h . getSettings (). then ( a =>{ a . forum_name && g ( a . forum_name )}). catch (()=>{})},[]); let k = async ()=>{ if ( ! f . trim ()) return void e ( d ( "admin.forum.nameRequired" ), "warning" ); try { await h . updateSettings ( f . trim ()), a ( f . trim ()), j ({ ok :! 0 , msg : d ( "admin.forum.saved" )})} catch { j ({ ok :! 1 , msg : d ( "admin.forum.saveFailed" )})}}; return ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsxs )( "h3" ,{ style : { marginBottom : 16 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "settings" , size : 16 }), " " , d ( "admin.forum.title" )]}),( 0 , b . jsxs )( "div" ,{ style : { maxWidth : 400 }, children : [( 0 , b . jsx )( "label" ,{ style : { fontWeight : 600 , fontSize : 14 , display : "block" , marginBottom : 6 }, children : d ( "admin.forum.nameLabel" )}),( 0 , b . jsx )( "input" ,{ type : "text" , style : { width : "100%" , padding : "10px 14px" , border : "1.5px solid var(--border)" , borderRadius : 6 , fontSize : 15 , marginBottom : 12 , fontFamily : "inherit" , background : "var(--bg)" , color : "var(--text)" }, value : f , onChange : a => g ( a . target . value )}),( 0 , b . jsxs )( "button" ,{ className : "btn-primary" , style : { padding : "10px 24px" }, onClick : k , children : [( 0 , b . jsx )( r . Icon ,{ name : "save" , size : 14 }), " " , d ( "admin.forum.save" )]}), i && ( 0 , b . jsxs )( "span" ,{ style : { marginLeft : 12 , fontSize : 14 , color : i . ok ? "#22c55e" : "#ef4444" }, children : [( 0 , b . jsx )( r . Icon ,{ name : i . ok ? "success" : "error" , size : 14 }), " " , i . msg ]})]})]})} function bb ({ page : a , onClose : d , onSaved : e }){ let { t : f } = ( 0 , q . useTranslation )(),{ toast : g } = ( 0 , t . useToast )(), i =!! a ,[ j , k ] = ( 0 , c . useState )( a ? . name || "" ),[ l , m ] = ( 0 , c . useState )( a ? . title || "" ),[ n , o ] = ( 0 , c . useState )( a ? . content || "" ),[ p , s ] = ( 0 , c . useState )( a ? . enabled !==! 1 ), u = async ()=>{ if ( ! j . trim ()) return void g ( f ( "admin.page.nameRequired" ), "warning" ); if ( ! l . trim ()) return void g ( f ( "admin.page.titleRequired" ), "warning" ); if ( ! n . trim ()) return void g ( f ( "admin.page.contentRequired" ), "warning" ); if ( ! /^[a-zA-Z0-9\-_]+$/ . test ( j . trim ())) return void g ( f ( "admin.page.nameInvalid" ), "warning" ); try { i ? await h . adminUpdateCustomPage ( a . id , l . trim (), n . trim (), p ) : await h . adminCreateCustomPage ( j . trim (), l . trim (), n . trim ()), e ()} catch ( a ){ g ( f ( "admin.common.saveFailed" ,{ msg : a . message }), "error" )}}; return ( 0 , b . jsx )( "div" ,{ className : "modal active" , style : { display : "flex" }, onClick : a =>{ a . target === a . currentTarget && d ()}, children : ( 0 , b . jsxs )( "div" ,{ className : "modal-content" , style : { maxWidth : 600 , maxHeight : "90vh" , overflowY : "auto" , position : "relative" }, children : [( 0 , b . jsx )( "span" ,{ className : "close" , style : { position : "absolute" , top : 12 , right : 16 , cursor : "pointer" , color : "var(--text-light)" }, onClick : d , children : ( 0 , b . jsx )( r . Icon ,{ name : "close" , size : 20 })}),( 0 , b . jsxs )( "h2" ,{ style : { marginBottom : 16 }, children : [( 0 , b . jsx )( r . Icon ,{ name : i ? "edit" : "file" , size : 20 }), " " , i ? f ( "admin.page.editTitle" ) : f ( "admin.page.addTitle" )]}),( 0 , b . jsxs )( "div" ,{ style : { marginBottom : 12 }, children : [( 0 , b . jsx )( "label" ,{ style : { fontWeight : 600 , fontSize : 14 , display : "block" , marginBottom : 4 }, children : f ( "admin.page.nameLabel" )}),( 0 , b . jsx )( "input" ,{ type : "text" , value : j , readOnly : i , placeholder : f ( "admin.page.namePlaceholder" ), style : { width : "100%" , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , fontSize : 14 , background : i ? "var(--border-light)" : "var(--bg)" , color : "var(--text)" }, onChange : a => k ( a . target . value )}), i ? ( 0 , b . jsxs )( "div" ,{ style : { fontSize : 12 , color : "var(--text-light)" , marginTop : 2 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "warning" , size : 12 }), " " , f ( "admin.page.nameLocked" )]}) : ( 0 , b . jsx )( "div" ,{ style : { fontSize : 12 , color : "var(--text-light)" , marginTop : 2 }, children : f ( "admin.page.nameHint" )})]}),( 0 , b . jsxs )( "div" ,{ style : { marginBottom : 12 }, children : [( 0 , b . jsx )( "label" ,{ style : { fontWeight : 600 , fontSize : 14 , display : "block" , marginBottom : 4 }, children : f ( "admin.page.navTitleLabel" )}),( 0 , b . jsx )( "input" ,{ type : "text" , value : l , placeholder : f ( "admin.page.navTitlePlaceholder" ), style : { width : "100%" , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , fontSize : 14 , background : "var(--bg)" , color : "var(--text)" }, onChange : a => m ( a . target . value )})]}),( 0 , b . jsxs )( "div" ,{ style : { marginBottom : 12 }, children : [( 0 , b . jsx )( "label" ,{ style : { fontWeight : 600 , fontSize : 14 , display : "block" , marginBottom : 4 }, children : f ( "admin.common.status" )}),( 0 , b . jsxs )( "select" ,{ value : String ( p ), style : { width : "100%" , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , fontSize : 14 , background : "var(--bg)" , color : "var(--text)" }, onChange : a => s ( "true" === a . target . value ), children : [( 0 , b . jsx )( "option" ,{ value : "true" , children : f ( "admin.common.enabled" )}),( 0 , b . jsx )( "option" ,{ value : "false" , children : f ( "admin.common.disabled" )})]})]}),( 0 , b . jsxs )( "div" ,{ style : { marginBottom : 12 }, children : [( 0 , b . jsx )( "label" ,{ style : { fontWeight : 600 , fontSize : 14 , display : "block" , marginBottom : 4 }, children : f ( "admin.page.contentLabel" )}),( 0 , b . jsx )( "textarea" ,{ rows : 12 , value : n , style : { width : "100%" , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , fontSize : 13 , fontFamily : "monospace" , background : "var(--bg)" , color : "var(--text)" , resize : "vertical" }, onChange : a => o ( a . target . value )}),( 0 , b . jsx )( "div" ,{ style : { fontSize : 12 , color : "var(--text-light)" , marginTop : 2 }, children : f ( "admin.page.contentHelp" )})]}),( 0 , b . jsx )( "button" ,{ className : "btn-primary" , style : { padding : "10px 24px" , width : "100%" }, onClick : u , children : f ( "admin.common.save" )})]})})} function bc (){ let { t : a } = ( 0 , q . useTranslation )(),{ toast : d , confirmAction : e } = ( 0 , t . useToast )(),[ f , g ] = ( 0 , c . useState )( null ),[ i , j ] = ( 0 , c . useState )( null ),[ k , l ] = ( 0 , c . useState )( null ), m = ()=>{ h . adminGetCustomPages (). then ( a =>{ g ( a || []), j ( null )}). catch ( a =>{ j ( a . message ), g ([])})};( 0 , c . useEffect )( m ,[]); let n = async b =>{ if ( await e ( a ( "admin.page.confirmDelete" ))) try { await h . adminDeleteCustomPage ( b . id ), m ()} catch ( b ){ d ( a ( "admin.common.deleteFailed" ,{ msg : b . message }), "error" )}}; return i ? ( 0 , b . jsx )( "div" ,{ style : { textAlign : "center" , color : "#ef4444" , padding : 20 }, children : a ( "admin.common.loadFailed" ,{ msg : i })}) : ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , justifyContent : "space-between" , alignItems : "center" , marginBottom : 16 }, children : [( 0 , b . jsxs )( "h3" ,{ style : { margin : 0 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "file" , size : 16 }), " " , a ( "admin.page.title" )]}),( 0 , b . jsxs )( "button" ,{ className : "btn-primary" , style : { padding : "8px 16px" }, onClick : ()=> l ( "new" ), children : [( 0 , b . jsx )( r . Icon ,{ name : "plus" , size : 14 }), " " , a ( "admin.page.add" )]})]}),( 0 , b . jsx )( "div" ,{ id : "customPageList" , children : null === f ? ( 0 , b . jsxs )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : 20 }, children : [( 0 , b . jsx )( "span" ,{ className : "spinner-sm" }), a ( "admin.common.loading" )]}) : 0 === f . length ? ( 0 , b . jsx )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : 20 }, children : a ( "admin.page.empty" )}) : ( 0 , b . jsx )( "div" ,{ style : { overflowX : "auto" }, children : ( 0 , b . jsxs )( "table" ,{ style : { width : "100%" , borderCollapse : "collapse" , fontSize : 14 }, children : [( 0 , b . jsx )( "thead" ,{ children : ( 0 , b . jsxs )( "tr" ,{ style : { textAlign : "left" , borderBottom : "2px solid var(--border)" }, children : [( 0 , b . jsx )( "th" ,{ style : { padding : "8px 12px" }, children : a ( "admin.page.name" )}),( 0 , b . jsx )( "th" ,{ style : { padding : "8px 12px" }, children : a ( "admin.page.columnTitle" )}),( 0 , b . jsx )( "th" ,{ style : { padding : "8px 12px" }, children : a ( "admin.page.url" )}),( 0 , b . jsx )( "th" ,{ style : { padding : "8px 12px" }, children : a ( "admin.common.status" )}),( 0 , b . jsx )( "th" ,{ style : { padding : "8px 12px" , textAlign : "center" }, children : a ( "admin.common.actions" )})]})}),( 0 , b . jsx )( "tbody" ,{ children : f . map ( c =>( 0 , b . jsxs )( "tr" ,{ style : { borderBottom : "1px solid var(--border-light)" }, children : [( 0 , b . jsx )( "td" ,{ style : { padding : "8px 12px" }, children : ( 0 , b . jsx )( "code" ,{ style : { background : "var(--bg)" , padding : "2px 6px" , borderRadius : 4 , fontSize : 12 }, children : c . name })}),( 0 , b . jsx )( "td" ,{ style : { padding : "8px 12px" }, children : c . title }),( 0 , b . jsx )( "td" ,{ style : { padding : "8px 12px" }, children : ( 0 , b . jsxs )( "code" ,{ style : { background : "var(--bg)" , padding : "2px 6px" , borderRadius : 4 , fontSize : 12 }, children : [ "?custom=" , c . name ]})}),( 0 , b . jsx )( "td" ,{ style : { padding : "8px 12px" }, children : ( 0 , b . jsxs )( "span" ,{ style : { color : c . enabled ? "#22c55e" : "#ef4444" , display : "inline-flex" , alignItems : "center" , gap : 4 }, children : [( 0 , b . jsx )( r . Icon ,{ name : c . enabled ? "success" : "error" , size : 13 }), " " , c . enabled ? a ( "admin.common.enabled" ) : a ( "admin.common.disabled" )]})}),( 0 , b . jsxs )( "td" ,{ style : { padding : "8px 12px" , textAlign : "center" , display : "flex" , gap : 6 , justifyContent : "center" }, children : [( 0 , b . jsx )( "button" ,{ className : "btn-sm btn-secondary" , title : a ( "admin.page.edit" ), "aria-label" : a ( "admin.page.edit" ), onClick : ()=> l ( c ), children : ( 0 , b . jsx )( r . Icon ,{ name : "edit" , size : 13 })}),( 0 , b . jsx )( "button" ,{ className : "btn-sm btn-danger" , title : a ( "admin.page.delete" ), "aria-label" : a ( "admin.page.delete" ), onClick : ()=> n ( c ), children : ( 0 , b . jsx )( r . Icon ,{ name : "trash" , size : 13 })})]})]}, c . id ))})]})})}), k && ( 0 , b . jsx )( bb ,{ page : "new" === k ? null : k , onClose : ()=> l ( null ), onSaved : ()=>{ l ( null ), m ()}})]})} function bd (){ let { t : a } = ( 0 , q . useTranslation )(),{ confirmAction : d } = ( 0 , t . useToast )(),[ e , f ] = ( 0 , c . useState )( null ),[ g , i ] = ( 0 , c . useState )( ! 1 ),[ j , k ] = ( 0 , c . useState )( null ), l = ( 0 , c . useRef )( null ), m = async b =>{ if ( b ){ if ( "style.css" !== b . name ) return void f ({ ok :! 1 , msg : a ( "admin.css.filenameInvalid" )}); if ( b . size > 1048576 ) return void f ({ ok :! 1 , msg : a ( "admin.css.sizeInvalid" )}); k ( b )}}, n = async ()=>{ try { await h . uploadCustomCss ( j ), f ({ ok :! 0 , msg : a ( "admin.css.active" )}); let b = document . getElementById ( "custom-css-link" ); b && ( b . href = "/api/custom-css?t=" + Date . now ())} catch ( a ){ f ({ ok :! 1 , msg : a . message })} finally { k ( null )}}, o = async ()=>{ if ( await d ( a ( "admin.css.confirmDelete" ))) try { await h . deleteCustomCss (), f ({ ok :! 0 , msg : a ( "admin.css.deleted" )}); let b = document . getElementById ( "custom-css-link" ); b && b . remove ()} catch ( a ){ f ({ ok :! 1 , msg : a . message })}}; return ( 0 , b . jsxs )( b . Fragment ,{ children : [( 0 , b . jsxs )( "h3" ,{ style : { marginBottom : 16 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "code" , size : 16 }), " " , a ( "admin.css.title" )]}),( 0 , b . jsx )( "p" ,{ style : { fontSize : 13 , color : "var(--text-secondary)" , marginBottom : 12 }, children : a ( "admin.css.description" )}),( 0 , b . jsx )( "div" ,{ style : { border : "2px dashed " + ( g ? "var(--primary)" : "var(--border)" ), borderRadius : 8 , padding : 32 , textAlign : "center" , cursor : "pointer" , transition : "all 0.3s" , background : g ? "var(--primary-bg)" : "var(--bg)" }, onClick : ()=> l . current ? . click (), onDragOver : a =>{ a . preventDefault (), i ( ! 0 )}, onDragLeave : ()=> i ( ! 1 ), onDrop : a =>{ a . preventDefault (), i ( ! 1 ), a . dataTransfer . files ? .[ 0 ] && m ( a . dataTransfer . files [ 0 ])}, children : ( 0 , b . jsxs )( "span" ,{ style : { fontSize : 13 , color : "var(--text-secondary)" }, children : [( 0 , b . jsx )( r . Icon ,{ name : "upload" , size : 14 }), " " , g ? a ( "admin.css.releaseUpload" ) : a ( "admin.css.uploadHint" )]})}),( 0 , b . jsx )( "input" ,{ type : "file" , ref : l , accept : ".css" , style : { display : "none" }, onChange : a =>{ a . target . files ? .[ 0 ] && m ( a . target . files [ 0 ])}}), e && ( 0 , b . jsxs )( "div" ,{ style : { fontSize : 13 , marginTop : 8 , color : e . ok ? "#22c55e" : "#ef4444" , display : "flex" , alignItems : "center" , gap : 5 }, children : [( 0 , b . jsx )( r . Icon ,{ name : e . ok ? "success" : "error" , size : 14 }), " " , e . msg ]}),( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , gap : 8 , marginTop : 16 }, children : [( 0 , b . jsxs )( "button" ,{ className : "btn-primary" , style : { padding : "8px 20px" }, onClick : ()=> l . current ? . click (), children : [( 0 , b . jsx )( r . Icon ,{ name : "save" , size : 14 }), " " , a ( "admin.css.save" )]}),( 0 , b . jsxs )( "button" ,{ className : "btn-secondary" , style : { padding : "8px 20px" , border : "1px solid var(--border)" , borderRadius : 4 , background : "var(--surface)" , cursor : "pointer" , color : "var(--text)" }, onClick : o , children : [( 0 , b . jsx )( r . Icon ,{ name : "trash" , size : 14 }), " " , a ( "admin.css.delete" )]})]}), j && ( 0 , b . jsx )( "div" ,{ className : "modal active" , style : { display : "flex" }, onClick : ()=> k ( null ), children : ( 0 , b . jsxs )( "div" ,{ className : "modal-content" , style : { maxWidth : 420 }, onClick : a => a . stopPropagation (), children : [( 0 , b . jsxs )( "h2" ,{ style : { marginBottom : 12 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "warning" , size : 20 }), " " , a ( "admin.css.warningTitle" )]}),( 0 , b . jsx )( "p" ,{ style : { fontSize : 14 , color : "var(--text-secondary)" , marginBottom : 16 }, children : a ( "admin.css.warningBody" )}),( 0 , b . jsx )( "p" ,{ style : { fontSize : 13 , color : "var(--text-light)" , marginBottom : 20 }, children : a ( "admin.css.warningHelp" )}),( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , gap : 8 }, children : [( 0 , b . jsxs )( "button" ,{ className : "btn-primary" , style : { padding : "8px 24px" }, onClick : n , children : [( 0 , b . jsx )( r . Icon ,{ name : "upload" , size : 14 }), " " , a ( "admin.css.continueUpload" )]}),( 0 , b . jsx )( "button" ,{ className : "btn-secondary" , style : { padding : "8px 24px" , border : "1px solid var(--border)" , borderRadius : 4 , background : "var(--surface)" , cursor : "pointer" , color : "var(--text)" }, onClick : ()=> k ( null ), children : a ( "admin.common.cancel" )})]})]})})]})} let be = [{ key : "reports" , labelKey : "admin.reports" , icon : "shieldAlert" },{ key : "users" , labelKey : "admin.users" , icon : "users" },{ key : "logs" , labelKey : "admin.logs" , icon : "file" },{ key : "links" , labelKey : "admin.links" , icon : "link" },{ key : "settings" , labelKey : "admin.forumSettings" , icon : "settings" },{ key : "custom" , labelKey : "admin.customPages" , icon : "file" },{ key : "css" , labelKey : "admin.customCss" , icon : "file" }]; function bf (){ let { t : a } = ( 0 , q . useTranslation )(),[ d , e ] = ( 0 , c . useState )( "reports" ); return ( 0 , b . jsxs )( "div" ,{ className : "page-slide active" , children : [( 0 , b . jsx )( "div" ,{ className : "page-header" , style : { maxWidth : 1200 , margin : "0 auto" , width : "100%" }, children : ( 0 , b . jsxs )( "h2" ,{ children : [( 0 , b . jsx )( r . Icon ,{ name : "shieldAlert" , size : 20 }), " " , a ( "admin.title" )]})}),( 0 , b . jsxs )( "div" ,{ className : "admin-layout" , style : { maxWidth : 1200 , margin : "0 auto" , width : "100%" }, children : [( 0 , b . jsx )( "aside" ,{ className : "admin-sidebar" , children : ( 0 , b . jsx )( "nav" ,{ className : "admin-nav" , children : be . map ( c =>( 0 , b . jsxs )( "a" ,{ href : "#" , className : "admin-nav-item" + ( d === c . key ? " active" : "" ), "data-tab" : c . key , onClick : a =>{ a . preventDefault (), e ( c . key )}, children : [( 0 , b . jsx )( "span" ,{ className : "nav-icon" , children : ( 0 , b . jsx )( r . Icon ,{ name : c . icon , size : 18 })}), a ( c . labelKey )]}, c . key ))})}),( 0 , b . jsxs )( "main" ,{ className : "admin-content" , id : "adminContent" , children : [ "reports" === d && ( 0 , b . jsx )( a6 ,{}), "users" === d && ( 0 , b . jsx )( a7 ,{}), "logs" === d && ( 0 , b . jsx )( a8 ,{}), "links" === d && ( 0 , b . jsx )( a9 ,{}), "custom" === d && ( 0 , b . jsx )( bc ,{}), "css" === d && ( 0 , b . jsx )( bd ,{}), "settings" === d && ( 0 , b . jsx )( ba ,{})]})]})]})} var bg = a . i ( 84341 ); function bh (){ let { currentUser : a , setCurrentUser : d } = o (),{ t : e , i18n : f } = ( 0 , q . useTranslation )(),{ toast : g } = ( 0 , t . useToast )(),[ j , k ] = ( 0 , c . useState )( a ? . username || "" ),[ l , m ] = ( 0 , c . useState )( a ? . bio || "" ),[ n , p ] = ( 0 , c . useState )( a ? . signature || "" ),[ s , u ] = ( 0 , c . useState )( a ? . avatar_url || "" ),[ v , w ] = ( 0 , c . useState )( null ), x = ( 0 , c . useRef )( null ), y = async b =>{ if ( b ){ if ( ! b . type . startsWith ( "image/" )) return void w ({ ok :! 1 , msg : e ( "settings.avatarFileRequired" )}); if ( b . size > 5242880 ) return void w ({ ok :! 1 , msg : e ( "settings.avatarTooLarge" )}); try { let c = await i ( b ); await h . updateAvatar ( a . id , c ), u ( c ), d ({... a , avatar_url : c }), w ({ ok :! 0 , msg : e ( "settings.avatarUpdated" )})} catch ( a ){ w ({ ok :! 1 , msg : a . message })}}}, z = async ()=>{ if ( ! a ) return void g ( e ( "settings.pleaseLogin" ), "warning" ); if ( ! j . trim ()) return void g ( e ( "settings.usernameRequired" ), "warning" ); try { let b = await h . updateProfile ( a . id , j . trim (), l . trim (), n . trim ()); if ( b . error ) throw Error ( b . error ); d ({... a , username : j . trim (), bio : l . trim (), signature : n . trim ()}), g ( e ( "settings.saved" ), "success" )} catch ( a ){ g ( e ( "settings.saveFailed" ,{ msg : a . message }), "error" )}}, A = s || "https://ui-avatars.com/api/?name=" + encodeURIComponent ( a ? . username || "U" ) + "&background=6366f1&color=fff&size=128" ; return ( 0 , b . jsxs )( "div" ,{ children : [( 0 , b . jsxs )( "div" ,{ style : { textAlign : "center" , marginBottom : 24 }, children : [( 0 , b . jsxs )( "div" ,{ style : { position : "relative" , display : "inline-block" }, children : [( 0 , b . jsx )( "img" ,{ src : A , style : { width : 100 , height : 100 , borderRadius : "50%" , objectFit : "cover" , border : "3px solid var(--primary)" }, alt : "" }),( 0 , b . jsx )( "button" ,{ style : { position : "absolute" , bottom : 0 , right : 0 , background : "var(--primary)" , color : "#fff" , border : "none" , borderRadius : "50%" , width : 32 , height : 32 , cursor : "pointer" , fontSize : 16 , display : "flex" , alignItems : "center" , justifyContent : "center" , boxShadow : "0 2px 8px rgba(99,102,241,0.4)" }, onClick : ()=> x . current ? . click (), "aria-label" : e ( "settings.changeAvatar" ), title : e ( "settings.changeAvatar" ), children : ( 0 , b . jsx )( r . Icon ,{ name : "camera" , size : 16 })})]}),( 0 , b . jsx )( "input" ,{ type : "file" , ref : x , accept : "image/*" , style : { display : "none" }, onChange : a =>{ a . target . files ? .[ 0 ] && y ( a . target . files [ 0 ])}}),( 0 , b . jsx )( "h2" ,{ style : { margin : "12px 0 4px" }, children : a ? . username }),( 0 , b . jsx )( "p" ,{ style : { color : "var(--text-secondary)" , fontSize : 14 }, children : l || e ( "user.bioEmpty" )}), v && ( 0 , b . jsxs )( "div" ,{ style : { fontSize : 13 , marginTop : 8 , color : v . ok ? "#22c55e" : "#ef4444" , display : "flex" , alignItems : "center" , justifyContent : "center" , gap : 5 }, children : [( 0 , b . jsx )( r . Icon ,{ name : v . ok ? "success" : "error" , size : 14 }), " " , v . msg ]})]}),( 0 , b . jsxs )( "div" ,{ style : { background : "var(--surface)" , border : "1px solid var(--border)" , borderRadius : 8 , padding : 20 }, children : [( 0 , b . jsxs )( "div" ,{ style : { marginBottom : 16 }, children : [( 0 , b . jsx )( "label" ,{ style : { fontWeight : 600 , fontSize : 14 , display : "block" , marginBottom : 4 }, children : e ( "settings.username" )}),( 0 , b . jsx )( "input" ,{ type : "text" , value : j , style : { width : "100%" , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , fontSize : 14 , background : "var(--bg)" , color : "var(--text)" }, onChange : a => k ( a . target . value )})]}),( 0 , b . jsxs )( "div" ,{ style : { marginBottom : 16 }, children : [( 0 , b . jsx )( "label" ,{ style : { fontWeight : 600 , fontSize : 14 , display : "block" , marginBottom : 4 }, children : e ( "settings.bio" )}),( 0 , b . jsx )( "textarea" ,{ rows : 3 , value : l , style : { width : "100%" , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , fontSize : 14 , background : "var(--bg)" , color : "var(--text)" , resize : "vertical" }, onChange : a => m ( a . target . value )})]}),( 0 , b . jsxs )( "div" ,{ style : { marginBottom : 16 }, children : [( 0 , b . jsxs )( "label" ,{ style : { fontWeight : 600 , fontSize : 14 , display : "block" , marginBottom : 4 }, children : [ e ( "settings.signature" ), " " ,( 0 , b . jsxs )( "span" ,{ style : { color : "var(--text-light)" , fontWeight : 400 }, children : [ "(" , e ( "settings.signatureHint" ), ")" ]})]}),( 0 , b . jsx )( "textarea" ,{ rows : 2 , value : n , placeholder : e ( "settings.signaturePlaceholder" ), style : { width : "100%" , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , fontSize : 14 , background : "var(--bg)" , color : "var(--text)" , resize : "vertical" , fontFamily : "inherit" }, onChange : a => p ( a . target . value )})]}),( 0 , b . jsx )( "button" ,{ className : "btn-primary" , style : { width : "100%" , padding : 10 }, onClick : z , children : e ( "settings.save" )})]}),( 0 , b . jsxs )( "div" ,{ style : { background : "var(--surface)" , border : "1px solid var(--border)" , borderRadius : 8 , padding : 20 , marginTop : 16 }, children : [( 0 , b . jsx )( "label" ,{ style : { fontWeight : 600 , fontSize : 14 , display : "block" , marginBottom : 8 }, children : e ( "settings.language" )}),( 0 , b . jsxs )( "div" ,{ className : "feed-header-left language-toggle" , style : { display : "inline-flex" }, children : [( 0 , b . jsx )( "button" ,{ className : "tab" + ( f . language . startsWith ( "zh" ) ? " active" : "" ), "aria-pressed" : f . language . startsWith ( "zh" ), onClick : ()=>( 0 , bg . setAppLanguage )( "zh" ), children : e ( "settings.languageZh" )}),( 0 , b . jsx )( "button" ,{ className : "tab" + ( f . language . startsWith ( "en" ) ? " active" : "" ), "aria-pressed" : f . language . startsWith ( "en" ), onClick : ()=>( 0 , bg . setAppLanguage )( "en" ), children : e ( "settings.languageEn" )})]})]})]})} function bi (){ let { currentUser : a } = o (),{ t : d } = ( 0 , q . useTranslation )(),{ toast : e } = ( 0 , t . useToast )(),[ f , g ] = ( 0 , c . useState )( "" ),[ i , j ] = ( 0 , c . useState )( "" ),[ k , l ] = ( 0 , c . useState )( null ),[ m , n ] = ( 0 , c . useState )( "" ),[ p , s ] = ( 0 , c . useState )( "" ),[ u , v ] = ( 0 , c . useState )( null ), w = async ()=>{ if ( ! f ||! i ) return void e ( d ( "security.fillAll" ), "warning" ); if ( i . length < 6 ) return void e ( d ( "security.pwMin" ), "warning" ); try { await h . updatePassword ( a . id , f , i ), l ({ ok :! 0 , msg : d ( "security.pwChanged" )}), g ( "" ), j ( "" )} catch ( a ){ l ({ ok :! 1 , msg : a . message })}}, x = async ()=>{ if ( ! m ||! p ) return void e ( d ( "security.fillAll" ), "warning" ); try { await h . updateEmail ( a . id , m , p ), v ({ ok :! 0 , msg : d ( "security.emailChanged" )}), n ( "" ), s ( "" )} catch ( a ){ v ({ ok :! 1 , msg : a . message })}}; return ( 0 , b . jsxs )( "div" ,{ style : { marginTop : 16 , background : "var(--surface)" , border : "1px solid var(--border)" , borderRadius : 8 , padding : 20 }, children : [( 0 , b . jsxs )( "h3" ,{ style : { fontSize : 16 , marginBottom : 12 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "lock" , size : 16 }), " " , d ( "security.title" )]}),( 0 , b . jsxs )( "div" ,{ style : { marginBottom : 12 }, children : [( 0 , b . jsx )( "label" ,{ style : { fontWeight : 600 , fontSize : 13 , display : "block" , marginBottom : 4 }, children : d ( "security.currentPw" )}),( 0 , b . jsx )( "input" ,{ type : "password" , value : f , style : { width : "100%" , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , fontSize : 14 , background : "var(--bg)" , color : "var(--text)" }, onChange : a => g ( a . target . value )})]}),( 0 , b . jsxs )( "div" ,{ style : { marginBottom : 12 }, children : [( 0 , b . jsx )( "label" ,{ style : { fontWeight : 600 , fontSize : 13 , display : "block" , marginBottom : 4 }, children : d ( "security.newPw" )}),( 0 , b . jsx )( "input" ,{ type : "password" , value : i , style : { width : "100%" , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , fontSize : 14 , background : "var(--bg)" , color : "var(--text)" }, onChange : a => j ( a . target . value )})]}),( 0 , b . jsx )( "button" ,{ className : "btn-secondary" , style : { padding : "8px 16px" , border : "1px solid var(--border)" , borderRadius : 4 , background : "var(--surface)" , cursor : "pointer" , color : "var(--text)" }, onClick : w , children : d ( "security.changePw" )}), k && ( 0 , b . jsxs )( "div" ,{ style : { fontSize : 13 , marginTop : 6 , color : k . ok ? "#22c55e" : "#ef4444" , display : "flex" , alignItems : "center" , gap : 5 }, children : [( 0 , b . jsx )( r . Icon ,{ name : k . ok ? "success" : "error" , size : 14 }), " " , k . msg ]}),( 0 , b . jsx )( "div" ,{ style : { borderTop : "1px solid var(--border)" , margin : "16px 0" }}),( 0 , b . jsxs )( "div" ,{ style : { marginBottom : 12 }, children : [( 0 , b . jsx )( "label" ,{ style : { fontWeight : 600 , fontSize : 13 , display : "block" , marginBottom : 4 }, children : d ( "security.currentPwVerify" )}),( 0 , b . jsx )( "input" ,{ type : "password" , value : m , style : { width : "100%" , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , fontSize : 14 , background : "var(--bg)" , color : "var(--text)" }, onChange : a => n ( a . target . value )})]}),( 0 , b . jsxs )( "div" ,{ style : { marginBottom : 12 }, children : [( 0 , b . jsx )( "label" ,{ style : { fontWeight : 600 , fontSize : 13 , display : "block" , marginBottom : 4 }, children : d ( "security.newEmail" )}),( 0 , b . jsx )( "input" ,{ type : "email" , value : p , style : { width : "100%" , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , fontSize : 14 , background : "var(--bg)" , color : "var(--text)" }, onChange : a => s ( a . target . value )})]}),( 0 , b . jsx )( "button" ,{ className : "btn-secondary" , style : { padding : "8px 16px" , border : "1px solid var(--border)" , borderRadius : 4 , background : "var(--surface)" , cursor : "pointer" , color : "var(--text)" }, onClick : x , children : d ( "security.changeEmail" )}), u && ( 0 , b . jsxs )( "div" ,{ style : { fontSize : 13 , marginTop : 6 , color : u . ok ? "#22c55e" : "#ef4444" , display : "flex" , alignItems : "center" , gap : 5 }, children : [( 0 , b . jsx )( r . Icon ,{ name : u . ok ? "success" : "error" , size : 14 }), " " , u . msg ]})]})} function bj (){ let { t : a } = ( 0 , q . useTranslation )(),{ toast : d , confirmAction : e } = ( 0 , t . useToast )(),[ f , g ] = ( 0 , c . useState )( 0 ),[ i , j ] = ( 0 , c . useState )( null ),[ k , l ] = ( 0 , c . useState )( ! 1 ), m = ()=>{ l ( ! 0 ), setTimeout (()=>{ j ( null ), l ( ! 1 )}, 340 )}, n = ()=>{ h . getRecoveryCodeCount (). then ( a => g ( a . count || 0 )). catch (()=>{})};( 0 , c . useEffect )( n ,[]); let o = async ()=>{ if ( await e ( a ( "recovery.confirmRegenerate" ))) try { let a = await h . generateRecoveryCodes (); j ({ codes : a . codes || [], isNew :! 0 }), n ()} catch ( b ){ d ( a ( "recovery.genFailed" ,{ msg : b . message }), "error" )}}, p = async ()=>{ try { let a = await h . generateRecoveryCodes (); j ({ codes : a . codes || [], isNew :! 1 }), n ()} catch ( b ){ d ( a ( "recovery.fetchFailed" ,{ msg : b . message }), "error" )}}; return ( 0 , b . jsxs )( "div" ,{ style : { marginTop : 16 , background : "var(--surface)" , border : "1px solid var(--border)" , borderRadius : 8 , padding : 20 }, children : [( 0 , b . jsxs )( "h3" ,{ style : { fontSize : 16 , marginBottom : 8 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "key" , size : 16 }), " " , a ( "recovery.title" )]}),( 0 , b . jsx )( "p" ,{ style : { fontSize : 13 , color : "var(--text-secondary)" , marginBottom : 12 }, children : a ( "recovery.desc" )}),( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , gap : 8 , flexWrap : "wrap" }, children : [( 0 , b . jsxs )( "button" ,{ className : "btn-secondary" , style : { padding : "8px 16px" , border : "1px solid var(--border)" , borderRadius : 4 , background : "var(--surface)" , cursor : "pointer" , color : "var(--text)" }, onClick : p , children : [( 0 , b . jsx )( r . Icon ,{ name : "list" , size : 14 }), " " , a ( "recovery.view" )]}),( 0 , b . jsxs )( "button" ,{ className : "btn-secondary" , style : { padding : "8px 16px" , border : "1px solid var(--border)" , borderRadius : 4 , background : "var(--surface)" , cursor : "pointer" , color : "var(--text)" }, onClick : o , children : [( 0 , b . jsx )( r . Icon ,{ name : "refresh" , size : 14 }), " " , a ( "recovery.regenerate" )]})]}),( 0 , b . jsx )( "div" ,{ id : "recoveryCodesStatus" , style : { fontSize : 13 , color : "var(--text-light)" , marginTop : 8 }, children : a ( "recovery.remaining" ,{ count : f })}), i && ( 0 , b . jsx )( "div" ,{ className : "modal active" + ( k ? " closing" : "" ), style : { display : "flex" }, onClick : a =>{ a . target === a . currentTarget && m ()}, children : ( 0 , b . jsxs )( "div" ,{ className : "modal-content" , style : { maxWidth : 480 , position : "relative" }, children : [( 0 , b . jsx )( "span" ,{ className : "close" , style : { position : "absolute" , top : 12 , right : 16 , cursor : "pointer" , color : "var(--text-light)" }, onClick : m , children : ( 0 , b . jsx )( r . Icon ,{ name : "close" , size : 20 })}),( 0 , b . jsx )( "h2" ,{ style : { marginBottom : 12 }, children : i . isNew ? a ( "recovery.newCodes" ) : a ( "recovery.title" )}),( 0 , b . jsxs )( "p" ,{ style : { fontSize : 13 , color : "#ef4444" , marginBottom : 12 , display : "flex" , alignItems : "flex-start" , gap : 6 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "warning" , size : 14 }), " " , a ( "recovery.saveWarning" )]}),( 0 , b . jsx )( "div" ,{ style : { display : "grid" , gridTemplateColumns : "1fr 1fr" , gap : 8 }, children : i . codes . map (( a , c )=>( 0 , b . jsx )( "code" ,{ style : { background : "var(--bg)" , padding : "8px 12px" , borderRadius : 6 , fontSize : 13 , textAlign : "center" , userSelect : "all" }, children : a }, c ))}),( 0 , b . jsx )( "button" ,{ className : "btn-primary" , style : { width : "100%" , padding : 10 , marginTop : 16 }, onClick : m , children : a ( "recovery.saved" )})]})})]})} let bk = [{ key : "profile" , labelKey : "settings.profile" , icon : "user" },{ key : "security" , labelKey : "settings.security" , icon : "shieldAlert" },{ key : "recovery" , labelKey : "settings.recovery" , icon : "lock" }]; function bl (){ let { t : a } = ( 0 , q . useTranslation )(),[ d , e ] = ( 0 , c . useState )( "profile" ), f = ( 0 , c . useRef )( null ), g = ( 0 , c . useRef )( ! 1 ), h = ( 0 , c . useCallback )(()=>{ let a = f . current ; a &&! g . current && ( g . current =! 0 , requestAnimationFrame (()=>{ g . current =! 1 ; let b = Math . round ( a . scrollTop / a . clientHeight ), c = bk [ Math . min ( Math . max ( b , 0 ), bk . length - 1 )] ? . key ; c && e ( c )}))},[]); return ( 0 , b . jsxs )( "div" ,{ className : "page-slide active" , style : { overflow : "hidden" , height : "100vh" , display : "flex" , flexDirection : "column" }, children : [( 0 , b . jsx )( "div" ,{ className : "page-header" , style : { width : "100%" , flexShrink : 0 }, children : ( 0 , b . jsxs )( "h2" ,{ children : [( 0 , b . jsx )( r . Icon ,{ name : "settings" , size : 20 }), " " , a ( "settings.title" )]})}),( 0 , b . jsxs )( "div" ,{ className : "settings-layout" , style : { width : "100%" , display : "flex" , gap : 28 , alignItems : "flex-start" , flex : 1 , minHeight : 0 }, children : [( 0 , b . jsx )( "aside" ,{ className : "settings-sidebar" , style : { width : 200 , flexShrink : 0 }, children : ( 0 , b . jsx )( "nav" ,{ className : "settings-nav" , children : bk . map ( c =>( 0 , b . jsxs )( "a" ,{ href : "#" , className : "settings-nav-item" + ( d === c . key ? " active" : "" ), "data-settings-tab" : c . key , onClick : a =>(( a , b )=>{ b && b . preventDefault (), e ( a ); let c = f . current ; if ( ! c ) return ; let d = bk . findIndex ( b => b . key === a ); c . scrollTo ({ top : d * c . clientHeight , behavior : "smooth" })})( c . key , a ), children : [( 0 , b . jsx )( "span" ,{ className : "nav-icon" , children : ( 0 , b . jsx )( r . Icon ,{ name : c . icon , size : 18 })}), a ( c . labelKey )]}, c . key ))})}),( 0 , b . jsx )( "main" ,{ className : "settings-content" , id : "settingsContent" , style : { overflow : "hidden" , padding : 0 , alignSelf : "stretch" , display : "flex" , flexDirection : "column" , minHeight : 0 }, children : ( 0 , b . jsxs )( "div" ,{ ref : f , onScroll : h , style : { flex : 1 , minHeight : 0 , overflowY : "auto" , scrollSnapType : "y mandatory" , scrollBehavior : "smooth" , scrollbarWidth : "none" , msOverflowStyle : "none" }, children : [( 0 , b . jsx )( "div" ,{ style : { scrollSnapAlign : "start" , minHeight : "100%" , padding : "20px 24px" }, "data-panel" : "profile" , children : ( 0 , b . jsx )( bh ,{})}),( 0 , b . jsx )( "div" ,{ style : { scrollSnapAlign : "start" , minHeight : "100%" , padding : "20px 24px" , borderTop : "1px solid var(--glass-border)" }, "data-panel" : "security" , children : ( 0 , b . jsx )( bi ,{})}),( 0 , b . jsx )( "div" ,{ style : { scrollSnapAlign : "start" , minHeight : "100%" , padding : "20px 24px" , borderTop : "1px solid var(--glass-border)" }, "data-panel" : "recovery" , children : ( 0 , b . jsx )( bj ,{})})]})})]})]})} function bm ({ username : a }){ let { currentUser : d , openPost : e } = o (), f = function (){ let { currentUser : a } = o (),{ toast : b } = ( 0 , t . useToast )(); return async ( c , d )=>{ if ( ! a ) return void b ( "请先登录" , "warning" ); try { let a = await h . getOrCreateConversation ( c ); window . dispatchEvent ( new CustomEvent ( "forumlify-open-chat" ,{ detail : { conversationId : a . id , otherUserId : c , otherUsername : d }}))} catch ( a ){ b ( "打开私信失败:" + a . message , "error" )}}}(),[ g , i ] = ( 0 , c . useState )( null ),[ j , k ] = ( 0 , c . useState )([]),[ l , m ] = ( 0 , c . useState )( null ), n = ( 0 , c . useCallback )( async ()=>{ m ( null ); try { let b = await h . getUserProfile ( a ); if ( b . error ||! b . id ) return void m ( b . error || "用户不存在" ); i ( b ); let c = await h . getPosts ( "latest" , b . id ); k ( c . data || [])} catch ( a ){ m ( a . message || "加载失败" )}},[ a ]); return (( 0 , c . useEffect )(()=>{ n ()},[ n ]), l ) ? ( 0 , b . jsx )( "div" ,{ className : "page-slide active" , children : ( 0 , b . jsxs )( "div" ,{ style : { textAlign : "center" , color : "#ef4444" , padding : "40px 0" }, children : [ "加载失败:" , l ]})}) : g ? ( 0 , b . jsxs )( "div" ,{ className : "page-slide active" , children : [( 0 , b . jsx )( "div" ,{ className : "page-header" , style : { maxWidth : 700 , margin : "0 auto" , width : "100%" }, children : ( 0 , b . jsxs )( "h2" ,{ children : [( 0 , b . jsx )( r . Icon ,{ name : "users" , size : 20 }), " 用户主页" ]})}),( 0 , b . jsxs )( "div" ,{ style : { maxWidth : 700 , margin : "0 auto" , width : "100%" }, children : [( 0 , b . jsxs )( "div" ,{ style : { background : "var(--surface)" , border : "1px solid var(--border)" , borderRadius : 8 , padding : 32 , textAlign : "center" }, children : [( 0 , b . jsx )( "img" ,{ src : g . avatar_url || function ( a , b = 128 ){ return "https://ui-avatars.com/api/?name=" + encodeURIComponent ( a || "U" ) + "&background=6366f1&color=fff&size=" + b }( g . username ), style : { width : 96 , height : 96 , borderRadius : "50%" , objectFit : "cover" , border : "3px solid var(--primary)" }, alt : "" }),( 0 , b . jsx )( "h2" ,{ style : { margin : "16px 0 4px" , fontSize : 24 }, children : g . username }),( 0 , b . jsx )( "p" ,{ style : { color : "var(--text-secondary)" , fontSize : 14 }, children : g . bio || "这个人很懒,什么都没写" }), d && d . id !== g . id && ( 0 , b . jsxs )( "button" ,{ className : "btn-primary" , style : { marginTop : 12 , padding : "8px 20px" }, onClick : ()=> f ( g . id , g . username ), children : [( 0 , b . jsx )( r . Icon ,{ name : "message" , size : 14 }), " 发私信" ]}),( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , justifyContent : "center" , gap : 32 , marginTop : 16 , fontSize : 14 , color : "var(--text-secondary)" , flexWrap : "wrap" }, children : [( 0 , b . jsxs )( "span" ,{ children : [( 0 , b . jsx )( r . Icon ,{ name : "calendar" , size : 14 }), " 加入于 " , g . created_at ? new Date ( g . created_at ). toLocaleDateString ( "zh-CN" ) : "未知" ]}),( 0 , b . jsxs )( "span" ,{ children : [( 0 , b . jsx )( r . Icon ,{ name : "file" , size : 14 }), " 发了 " , j . length , " 个帖子" ]}), "admin" === g . role && ( 0 , b . jsxs )( "span" ,{ style : { color : "var(--primary)" , fontWeight : 600 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "shield" , size : 14 }), " 管理员" ]})]})]}),( 0 , b . jsxs )( "h3" ,{ style : { margin : "24px 0 16px" , fontSize : 18 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "file" , size : 18 }), " 发布的帖子" ]}), 0 === j . length ? ( 0 , b . jsx )( "div" ,{ style : { color : "#94a3b8" , padding : "20px 0" , textAlign : "center" }, children : "还没有发帖" }) : j . map ( a =>{ let c = a . created_at ? new Date ( a . created_at ). toLocaleString ( "zh-CN" ) : "" ; return ( 0 , b . jsxs )( "div" ,{ className : "post-card" , style : { cursor : "pointer" }, onClick : b => e ( a . id , b . currentTarget , a ), children : [( 0 , b . jsx )( "div" ,{ className : "post-title" , style : { fontSize : 16 , fontWeight : 600 }, children : a . title || "无标题" }),( 0 , b . jsxs )( "div" ,{ className : "post-content" , style : { fontSize : 14 , color : "var(--text-secondary)" }, children : [( a . content || "" ). substring ( 0 , 100 ),( a . content || "" ). length > 100 ? "..." : "" ]}),( 0 , b . jsx )( "div" ,{ style : { fontSize : 12 , color : "var(--text-light)" , marginTop : 8 }, children : c })]}, a . id )})]})]}) : ( 0 , b . jsxs )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : "40px 0" }, children : [( 0 , b . jsx )( "span" ,{ className : "spinner-sm" }), "加载中..." ]})} function bn ({ pageName : a }){ let [ d , e ] = ( 0 , c . useState )( null ),[ f , g ] = ( 0 , c . useState )( null ); if (( 0 , c . useEffect )(()=>{ e ( null ), g ( null ), h . getCustomPage ( a ). then ( a => e ( a . content )). catch ( a => g ( a . message ))},[ a ]), f ) return ( 0 , b . jsxs )( "div" ,{ style : { padding : "84px 32px" , textAlign : "center" , color : "#ef4444" }, children : [ "页面加载失败:" , f ]}); if ( null === d ) return ( 0 , b . jsxs )( "div" ,{ style : { padding : "84px 32px" , textAlign : "center" , color : "#94a3b8" }, children : [( 0 , b . jsx )( "span" ,{ className : "spinner-sm" }), "加载中..." ]}); let i = `<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
padding: 24px;
background: var(--bg, #f6f8fc);
color: var(--text, #0a0e1a);
}
@media (prefers-color-scheme: dark) {
body { background: #0f1117; color: #e8edf5; }
}
</style>
</head>
<body> ${ d } </body>
</html>` ; return ( 0 , b . jsx )( "div" ,{ className : "custom-page-container" , style : { padding : "84px 32px 40px" , background : "var(--bg)" , minHeight : "100vh" }, children : ( 0 , b . jsx )( "iframe" ,{ style : { width : "100%" , minHeight : "70vh" , border : "none" , borderRadius : 8 , background : "var(--surface)" }, sandbox : "allow-scripts allow-modals allow-same-origin" , srcDoc : i , title : a })})} let bo = { reply : "message" , post_deleted : "trash" , report_handled : "shield" , system : "megaphone" }; function bp (){ let { currentUser : a } = o (),[ d , e ] = ( 0 , c . useState )( null ),[ f , g ] = ( 0 , c . useState )( null ); return (( 0 , c . useEffect )(()=>{ a && h . getNotifications (). then ( a =>{ e ( a || []), g ( null ), h . markAllNotificationsRead (). catch (()=>{})}). catch ( a =>{ g ( a . message ), e ([])})},[ a ]), a ) ? ( 0 , b . jsxs )( "div" ,{ className : "page-slide active" , children : [( 0 , b . jsx )( "div" ,{ className : "page-header" , style : { maxWidth : 700 , margin : "0 auto" , width : "100%" }, children : ( 0 , b . jsxs )( "h2" ,{ children : [( 0 , b . jsx )( r . Icon ,{ name : "message" , size : 20 }), " 消息" ]})}),( 0 , b . jsx )( "div" ,{ style : { maxWidth : 700 , margin : "0 auto" , width : "100%" }, children : f ? ( 0 , b . jsxs )( "div" ,{ style : { textAlign : "center" , color : "#ef4444" , padding : 20 }, children : [ "加载失败:" , f ]}) : null === d ? ( 0 , b . jsx )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : "40px 0" }, children : "加载中..." }) : 0 === d . length ? ( 0 , b . jsxs )( "div" ,{ style : { textAlign : "center" , color : "#94a3b8" , padding : "60px 0" }, children : [( 0 , b . jsx )( r . Icon ,{ name : "message" , size : 48 }),( 0 , b . jsx )( "p" ,{ style : { fontSize : 16 }, children : "暂无消息" }),( 0 , b . jsx )( "p" ,{ style : { fontSize : 13 }, children : "当有人回复你的帖子或处理你的举报时,会在这里通知你" })]}) : d . map ( a =>{ let c = bo [ a . type ] || "pin" , d = a . created_at ? new Date ( a . created_at ). toLocaleString ( "zh-CN" ) : "" ; return ( 0 , b . jsxs )( "div" ,{ style : { display : "flex" , alignItems : "flex-start" , gap : 12 , padding : "14px 16px" , borderBottom : "1px solid var(--border-light)" , background : "var(--surface)" , borderRadius : 6 , marginBottom : 6 }, children : [( 0 , b . jsx )( "span" ,{ style : { color : "var(--text-secondary)" , paddingTop : 2 }, children : ( 0 , b . jsx )( r . Icon ,{ name : c , size : 20 })}),( 0 , b . jsxs )( "div" ,{ style : { flex : 1 , minWidth : 0 }, children : [( 0 , b . jsx )( "div" ,{ style : { fontWeight : 600 , fontSize : 14 }, children : a . title }),( 0 , b . jsx )( "div" ,{ style : { color : "var(--text-secondary)" , fontSize : 13 , marginTop : 2 }, children : a . content }), a . link && ( 0 , b . jsx )( "a" ,{ href : a . link , style : { color : "var(--primary)" , fontSize : 13 , textDecoration : "none" , marginTop : 4 , display : "inline-block" }, children : "查看详情 →" }),( 0 , b . jsx )( "div" ,{ style : { fontSize : 12 , color : "var(--text-light)" , marginTop : 4 }, children : d })]})]}, a . id )})})]}) : ( 0 , b . jsx )( "div" ,{ className : "page-slide active" , style : { textAlign : "center" , color : "#94a3b8" , padding : "40px 0" }, children : "请先登录" })} function bq ({ modal : a , onClose : d , reportPostId : e }){ let { login : f , register : g , currentUser : i , refresh : j } = o (),{ t : k } = ( 0 , q . useTranslation )(),{ toast : l } = ( 0 , t . useToast )(),[ m , n ] = ( 0 , c . useState )( "" ),[ p , s ] = ( 0 , c . useState )( "" ),[ u , v ] = ( 0 , c . useState )( "" ),[ w , x ] = ( 0 , c . useState )( "" ),[ y , z ] = ( 0 , c . useState )( "" ),[ A , B ] = ( 0 , c . useState )( null ),[ C , D ] = ( 0 , c . useState )( "" ),[ E , F ] = ( 0 , c . useState )( "spam" ); if (( 0 , c . useEffect )(()=>{ "register" === a && h . getCaptcha (). then ( a => B ( a )). catch (()=>{})},[ a ]), ! a ) return null ; let G = a =>{ a && a . target !== a . currentTarget || d ()}, H = async ()=>{ if ( ! m . trim () ||! p ) return void l ( "请填写完整信息" , "warning" ); try {( await f ( m . trim (), p )). user && ( d (), n ( "" ), s ( "" ), j ())} catch ( a ){ l ( "登录失败:" + a . message , "error" )}}, I = async ()=>{ if ( ! u . trim () ||! w . trim () ||! y ) return void l ( "请填写完整信息" , "warning" ); if ( y . length < 6 ) return void l ( "密码至少6位" , "warning" ); if ( ! A ||! C . trim ()) return void l ( "请填写验证码" , "warning" ); try { await g ( w . trim (), y , u . trim (),{ id : A . id , answer : C . trim (), sig : A . sig }), d (), v ( "" ), x ( "" ), z ( "" ), D ( "" ), l ( "注册成功!" , "success" ), j ()} catch ( a ){ l ( "注册失败:" + a . message , "error" ), h . getCaptcha (). then ( a => B ( a )). catch (()=>{}), D ( "" )}}, J = async ()=>{ if ( e ) try { await h . createReport ( e , E ), d (), l ( "举报已提交,管理员将尽快处理" , "success" )} catch ( a ){ l ( "举报失败:" + a . message , "error" )}}; return ( 0 , b . jsxs )( b . Fragment ,{ children : [ "login" === a && ( 0 , b . jsx )( "div" ,{ className : "modal active" , onClick : G , children : ( 0 , b . jsxs )( "div" ,{ className : "modal-content" , children : [( 0 , b . jsx )( "span" ,{ className : "close" , onClick : d , children : ( 0 , b . jsx )( r . Icon ,{ name : "close" , size : 20 })}),( 0 , b . jsx )( "h2" ,{ style : { marginBottom : 16 }, children : k ( "auth.login" )}),( 0 , b . jsx )( "input" ,{ type : "email" , placeholder : k ( "auth.email" ), value : m , onChange : a => n ( a . target . value )}),( 0 , b . jsx )( "input" ,{ type : "password" , placeholder : k ( "auth.password" ), value : p , onChange : a => s ( a . target . value ), onKeyDown : a =>{ "Enter" === a . key && H ()}}),( 0 , b . jsx )( "button" ,{ className : "btn-primary" , style : { width : "100%" }, onClick : H , children : k ( "auth.login" )})]})}), "register" === a && ( 0 , b . jsx )( "div" ,{ className : "modal active" , onClick : G , children : ( 0 , b . jsxs )( "div" ,{ className : "modal-content" , children : [( 0 , b . jsx )( "span" ,{ className : "close" , onClick : d , children : ( 0 , b . jsx )( r . Icon ,{ name : "close" , size : 20 })}),( 0 , b . jsx )( "h2" ,{ style : { marginBottom : 16 }, children : k ( "auth.register" )}),( 0 , b . jsx )( "input" ,{ type : "text" , placeholder : k ( "auth.username" ), value : u , onChange : a => v ( a . target . value )}),( 0 , b . jsx )( "input" ,{ type : "email" , placeholder : k ( "auth.email" ), value : w , onChange : a => x ( a . target . value )}),( 0 , b . jsx )( "input" ,{ type : "password" , placeholder : k ( "auth.passwordHint" ), value : y , onChange : a => z ( a . target . value )}),( 0 , b . jsxs )( "div" ,{ className : "captcha-row" , style : { display : "flex" , alignItems : "center" , gap : 10 , margin : "12px 0" }, children : [ A ? ( 0 , b . jsx )( a2 ,{ captcha : A , onRefresh : ()=>{ h . getCaptcha (). then ( a => B ( a )). catch (()=>{}), D ( "" )}}) : ( 0 , b . jsx )( "span" ,{ style : { color : "var(--text-light)" }, children : k ( "newPost.captchaLoading" )}),( 0 , b . jsx )( "input" ,{ type : "text" , placeholder : "答案" , style : { width : 80 , background : "var(--bg)" , color : "var(--text)" , border : "1px solid var(--border)" , padding : "8px 12px" , borderRadius : 4 }, value : C , onChange : a => D ( a . target . value )})]}),( 0 , b . jsx )( "button" ,{ className : "btn-primary" , style : { width : "100%" }, onClick : I , children : k ( "auth.register" )})]})}), "report" === a && i && ( 0 , b . jsx )( "div" ,{ className : "modal active" , onClick : G , children : ( 0 , b . jsxs )( "div" ,{ className : "modal-content" , children : [( 0 , b . jsx )( "span" ,{ className : "close" , onClick : d , children : ( 0 , b . jsx )( r . Icon ,{ name : "close" , size : 20 })}),( 0 , b . jsxs )( "h2" ,{ style : { marginBottom : 16 }, children : [( 0 , b . jsx )( r . Icon ,{ name : "shieldAlert" , size : 20 }), " " , k ( "post.reportTitle" )]}),( 0 , b . jsx )( "p" ,{ style : { fontSize : 14 , color : "#64748b" , marginBottom : 12 }, children : k ( "post.reportReason" )}),( 0 , b . jsxs )( "select" ,{ style : { width : "100%" , padding : "8px 12px" , border : "1px solid var(--border)" , borderRadius : 4 , marginBottom : 16 , background : "var(--bg)" , color : "var(--text)" }, value : E , onChange : a => F ( a . target . value ), children : [( 0 , b . jsx )( "option" ,{ value : "spam" , children : k ( "report.spam" )}),( 0 , b . jsx )( "option" ,{ value : "abuse" , children : k ( "report.abuse" )}),( 0 , b . jsx )( "option" ,{ value : "illegal" , children : k ( "report.illegal" )}),( 0 , b . jsx )( "option" ,{ value : "nsfw" , children : k ( "report.nsfw" )}),( 0 , b . jsx )( "option" ,{ value : "other" , children : k ( "report.other" )})]}),( 0 , b . jsx )( "button" ,{ className : "btn-primary" , style : { width : "100%" }, onClick : J , children : k ( "post.submitReport" )})]})})]})} function br ({ forumName : a , forumNameLoaded : c }){ return ( 0 , b . jsx )( "div" ,{ className : "loading-screen" , children : ( 0 , b . jsxs )( "div" ,{ className : "loading-inner" , children : [( 0 , b . jsx )( "div" ,{ className : "loading-spinner" }),( 0 , b . jsx )( "div" ,{ className : "loading-title" + ( c ? " loading-title-appear" : "" ), id : "loadingTitle" , suppressHydrationWarning :! 0 , children : c && a }),( 0 , b . jsx )( "div" ,{ className : "loading-sub" , children : "加载中..." })]})})} function bs (){ let { view : a , currentPostId : d , currentPostPreview : e , currentUsername : f , currentPageName : g , ready : h , forumName : i , forumNameLoaded : j } = o (),[ k , l ] = ( 0 , c . useState )( null ),[ m , n ] = ( 0 , c . useState )( null ), p = a => l ( a ); return h ? ( 0 , b . jsxs )( "div" ,{ className : "app-fade-in" , children : [( 0 , b . jsx )( x ,{ onOpenModal : p }),( 0 , b . jsx )( w ,{}),( 0 , b . jsxs )( "div" ,{ id : "app" , style : { display : "feed" === a ? void 0 : "none" }, children : [( 0 , b . jsx )( B ,{}),( 0 , b . jsx )( a1 ,{ onOpenModal : p , onReport : a =>{ n ( a ), l ( "report" )}})]}),( 0 , b . jsxs )( "div" ,{ style : { display : "feed" !== a ? "block" : "none" }, children : [ "post" === a && d && ( 0 , b . jsx )( a4 ,{ postId : d , initialPost : e }), "user" === a && f && ( 0 , b . jsx )( bm ,{ username : f }), "custom" === a && g && ( 0 , b . jsx )( bn ,{ pageName : g }), "new" === a && ( 0 , b . jsx )( a5 ,{}), "admin" === a && ( 0 , b . jsx )( bf ,{}), "settings" === a && ( 0 , b . jsx )( bl ,{}), "messages" === a && ( 0 , b . jsx )( bp ,{})]}),( 0 , b . jsx )( bq ,{ modal : k , onClose : ()=> l ( null ), reportPostId : m })]}) : ( 0 , b . jsx )( br ,{ forumName : i , forumNameLoaded : j })} a . s ([ "default" , 0 , function ({ cachedName : a = "" }){ return ( 0 , b . jsx )( p ,{ cachedName : a , children : ( 0 , b . jsx )( bs ,{})})}], 47616 )}, 98061 , a =>{ "use strict" ; let b = new Map ([[ 0 , 65533 ],[ 128 , 8364 ],[ 130 , 8218 ],[ 131 , 402 ],[ 132 , 8222 ],[ 133 , 8230 ],[ 134 , 8224 ],[ 135 , 8225 ],[ 136 , 710 ],[ 137 , 8240 ],[ 138 , 352 ],[ 139 , 8249 ],[ 140 , 338 ],[ 142 , 381 ],[ 145 , 8216 ],[ 146 , 8217 ],[ 147 , 8220 ],[ 148 , 8221 ],[ 149 , 8226 ],[ 150 , 8211 ],[ 151 , 8212 ],[ 152 , 732 ],[ 153 , 8482 ],[ 154 , 353 ],[ 155 , 8250 ],[ 156 , 339 ],[ 158 , 382 ],[ 159 , 376 ]]); function c ( a ){ let b = atob ( a ), c =- 2 & b . length , d = new Uint16Array ( c / 2 ); for ( let a = 0 , e = 0 ; a < c ; a += 2 ){ let c = b . charCodeAt ( a ), f = b . charCodeAt ( a + 1 ); d [ e ++ ] = c | f << 8 } return d } let d = c ( " QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA + 6 D / IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xt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7 KhIrKCsuK / IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A / kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb + A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC + DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC / JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW / UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz / LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA + gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA + wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB + KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg + CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuy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hAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA / QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D / AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M / cAAFqbiYvKC8AoA0gagAAoAwg "),e=c(" AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg ");function f(a){return a>=a6.ZERO&&a<=a6.NINE}(aY=a5||(a5={}))[aY.VALUE_LENGTH=49152]=" VALUE_LENGTH ",aY[aY.FLAG13=8192]=" FLAG13 ",aY[aY.BRANCH_LENGTH=8064]=" BRANCH_LENGTH ",aY[aY.JUMP_TABLE=127]=" JUMP_TABLE ",(aZ=a6||(a6={}))[aZ.NUM=35]=" NUM ",aZ[aZ.SEMI=59]=" SEMI ",aZ[aZ.EQUALS=61]=" EQUALS ",aZ[aZ.ZERO=48]=" ZERO ",aZ[aZ.NINE=57]=" NINE ",aZ[aZ.LOWER_A=97]=" LOWER_A ",aZ[aZ.LOWER_F=102]=" LOWER_F ",aZ[aZ.LOWER_X=120]=" LOWER_X ",aZ[aZ.LOWER_Z=122]=" LOWER_Z ",aZ[aZ.UPPER_A=65]=" UPPER_A ",aZ[aZ.UPPER_F=70]=" UPPER_F ",aZ[aZ.UPPER_Z=90]=" UPPER_Z ",(a$=a7||(a7={}))[a$.EntityStart=0]=" EntityStart ",a$[a$.NumericStart=1]=" NumericStart ",a$[a$.NumericDecimal=2]=" NumericDecimal ",a$[a$.NumericHex=3]=" NumericHex ",a$[a$.NamedEntity=4]=" NamedEntity ",(a_=a8||(a8={}))[a_.Legacy=0]=" Legacy ",a_[a_.Strict=1]=" Strict ",a_[a_.Attribute=2]=" Attribute ";class g{decodeTree;emitCodePoint;errors;constructor(a,b,c){this.decodeTree=a,this.emitCodePoint=b,this.errors=c}state=a7.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=a8.Strict;runConsumed=0;startEntity(a){this.decodeMode=a,this.state=a7.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(a,b){switch(this.state){case a7.EntityStart:if(a.charCodeAt(b)===a6.NUM)return this.state=a7.NumericStart,this.consumed+=1,this.stateNumericStart(a,b+1);return this.state=a7.NamedEntity,this.stateNamedEntity(a,b);case a7.NumericStart:return this.stateNumericStart(a,b);case a7.NumericDecimal:return this.stateNumericDecimal(a,b);case a7.NumericHex:return this.stateNumericHex(a,b);case a7.NamedEntity:return this.stateNamedEntity(a,b)}}stateNumericStart(a,b){return b>=a.length?-1:(32|a.charCodeAt(b))===a6.LOWER_X?(this.state=a7.NumericHex,this.consumed+=1,this.stateNumericHex(a,b+1)):(this.state=a7.NumericDecimal,this.stateNumericDecimal(a,b))}stateNumericHex(a,b){for(;b<a.length;){var c;let d=a.charCodeAt(b);if(!f(d)&&(!((c=d)>=a6.UPPER_A)||!(c<=a6.UPPER_F))&&(!(c>=a6.LOWER_A)||!(c<=a6.LOWER_F)))return this.emitNumericEntity(d,3);{let a=d<=a6.NINE?d-a6.ZERO:(32|d)-a6.LOWER_A+10;this.result=16*this.result+a,this.consumed++,b++}}return -1}stateNumericDecimal(a,b){for(;b<a.length;){let c=a.charCodeAt(b);if(!f(c))return this.emitNumericEntity(c,2);this.result=10*this.result+(c-a6.ZERO),this.consumed++,b++}return -1}emitNumericEntity(a,c){var d;if(this.consumed<=c)return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(a===a6.SEMI)this.consumed+=1;else if(this.decodeMode===a8.Strict)return 0;return this.emitCodePoint((d=this.result)>=55296&&d<=57343||d>1114111?65533:b.get(d)??d,this.consumed),this.errors&&(a!==a6.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(a,b){let{decodeTree:c}=this,d=c[this.treeIndex],e=(d&a5.VALUE_LENGTH)>>14;for(;b<a.length;){if(0===e&&(d&a5.FLAG13)!=0){let f=(d&a5.BRANCH_LENGTH)>>7;if(0===this.runConsumed){let c=d&a5.JUMP_TABLE;if(a.charCodeAt(b)!==c)return 0===this.result?0:this.emitNotTerminatedNamedEntity();b++,this.excess++,this.runConsumed++}for(;this.runConsumed<f;){if(b>=a.length)return -1;let d=this.runConsumed-1,e=c[this.treeIndex+1+(d>>1)],f=d%2==0?255&e:e>>8&255;if(a.charCodeAt(b)!==f)return this.runConsumed=0,0===this.result?0:this.emitNotTerminatedNamedEntity();b++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(f>>1),e=((d=c[this.treeIndex])&a5.VALUE_LENGTH)>>14}if(b>=a.length)break;let g=a.charCodeAt(b);if(g===a6.SEMI&&0!==e&&(d&a5.FLAG13)!=0)return this.emitNamedEntityData(this.treeIndex,e,this.consumed+this.excess);if(this.treeIndex=function(a,b,c,d){let e=(b&a5.BRANCH_LENGTH)>>7,f=b&a5.JUMP_TABLE;if(0===e)return 0!==f&&d===f?c:-1;if(f){let b=d-f;return b<0||b>=e?-1:a[c+b]-1}let g=e+1>>1,h=0,i=e-1;for(;h<=i;){let b=h+i>>>1,e=a[c+(b>>1)]>>(1&b)*8&255;if(e<d)h=b+1;else{if(!(e>d))return a[c+g+b];i=b-1}}return -1}(c,d,this.treeIndex+Math.max(1,e),g),this.treeIndex<0)return 0===this.result||this.decodeMode===a8.Attribute&&(0===e||function(a){var b;return a===a6.EQUALS||(b=a)>=a6.UPPER_A&&b<=a6.UPPER_Z||b>=a6.LOWER_A&&b<=a6.LOWER_Z||f(b)}(g))?0:this.emitNotTerminatedNamedEntity();if(0!=(e=((d=c[this.treeIndex])&a5.VALUE_LENGTH)>>14)){if(g===a6.SEMI)return this.emitNamedEntityData(this.treeIndex,e,this.consumed+this.excess);this.decodeMode!==a8.Strict&&(d&a5.FLAG13)==0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}b++,this.excess++}return -1}emitNotTerminatedNamedEntity(){let{result:a,decodeTree:b}=this,c=(b[a]&a5.VALUE_LENGTH)>>14;return this.emitNamedEntityData(a,c,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(a,b,c){let{decodeTree:d}=this;return this.emitCodePoint(1===b?d[a]&~(a5.VALUE_LENGTH|a5.FLAG13):d[a+1],c),3===b&&this.emitCodePoint(d[a+2],c),c}end(){switch(this.state){case a7.NamedEntity:return 0!==this.result&&(this.decodeMode!==a8.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case a7.NumericDecimal:return this.emitNumericEntity(0,2);case a7.NumericHex:return this.emitNumericEntity(0,3);case a7.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case a7.EntityStart:return 0}}}function h(a){return a===a9.Space||a===a9.NewLine||a===a9.Tab||a===a9.FormFeed||a===a9.CarriageReturn}function i(a){return a===a9.Slash||a===a9.Gt||h(a)}(a0=a9||(a9={}))[a0.Tab=9]=" Tab ",a0[a0.NewLine=10]=" NewLine ",a0[a0.FormFeed=12]=" FormFeed ",a0[a0.CarriageReturn=13]=" CarriageReturn ",a0[a0.Space=32]=" Space ",a0[a0.ExclamationMark=33]=" ExclamationMark ",a0[a0.Number=35]=" Number ",a0[a0.Amp=38]=" Amp ",a0[a0.SingleQuote=39]=" SingleQuote ",a0[a0.DoubleQuote=34]=" DoubleQuote ",a0[a0.Dash=45]=" Dash ",a0[a0.Slash=47]=" Slash ",a0[a0.Zero=48]=" Zero ",a0[a0.Nine=57]=" Nine ",a0[a0.Semi=59]=" Semi ",a0[a0.Lt=60]=" Lt ",a0[a0.Eq=61]=" Eq ",a0[a0.Gt=62]=" Gt ",a0[a0.Questionmark=63]=" Questionmark ",a0[a0.UpperA=65]=" UpperA ",a0[a0.LowerA=97]=" LowerA ",a0[a0.UpperF=70]=" UpperF ",a0[a0.LowerF=102]=" LowerF ",a0[a0.UpperZ=90]=" UpperZ ",a0[a0.LowerZ=122]=" LowerZ ",a0[a0.LowerX=120]=" LowerX ",a0[a0.OpeningSquareBracket=91]=" OpeningSquareBracket ",(a1=ba||(ba={}))[a1.Text=1]=" Text ",a1[a1.BeforeTagName=2]=" BeforeTagName ",a1[a1.InTagName=3]=" InTagName ",a1[a1.InSelfClosingTag=4]=" InSelfClosingTag ",a1[a1.BeforeClosingTagName=5]=" BeforeClosingTagName ",a1[a1.InClosingTagName=6]=" InClosingTagName ",a1[a1.AfterClosingTagName=7]=" AfterClosingTagName ",a1[a1.BeforeAttributeName=8]=" BeforeAttributeName ",a1[a1.InAttributeName=9]=" InAttributeName ",a1[a1.AfterAttributeName=10]=" AfterAttributeName ",a1[a1.BeforeAttributeValue=11]=" BeforeAttributeValue ",a1[a1.InAttributeValueDq=12]=" InAttributeValueDq ",a1[a1.InAttributeValueSq=13]=" InAttributeValueSq ",a1[a1.InAttributeValueNq=14]=" InAttributeValueNq ",a1[a1.BeforeDeclaration=15]=" BeforeDeclaration ",a1[a1.InDeclaration=16]=" InDeclaration ",a1[a1.InProcessingInstruction=17]=" InProcessingInstruction ",a1[a1.BeforeComment=18]=" BeforeComment ",a1[a1.CDATASequence=19]=" CDATASequence ",a1[a1.DeclarationSequence=20]=" DeclarationSequence ",a1[a1.InSpecialComment=21]=" InSpecialComment ",a1[a1.InCommentLike=22]=" InCommentLike ",a1[a1.SpecialStartSequence=23]=" SpecialStartSequence ",a1[a1.InSpecialTag=24]=" InSpecialTag ",a1[a1.InPlainText=25]=" InPlainText ",a1[a1.InEntity=26]=" InEntity ",(a2=bb||(bb={}))[a2.NoValue=0]=" NoValue ",a2[a2.Unquoted=1]=" Unquoted ",a2[a2.Single=2]=" Single ",a2[a2.Double=3]=" Double ";let j={Empty:new Uint8Array(0),Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,33,62]),Doctype:new Uint8Array([100,111,99,116,121,112,101]),IframeEnd:new Uint8Array([60,47,105,102,114,97,109,101]),NoembedEnd:new Uint8Array([60,47,110,111,101,109,98,101,100]),NoframesEnd:new Uint8Array([60,47,110,111,102,114,97,109,101,115]),Plaintext:new Uint8Array([60,47,112,108,97,105,110,116,101,120,116]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])},k=new Map([[j.IframeEnd[2],j.IframeEnd],[j.NoembedEnd[2],j.NoembedEnd],[j.Plaintext[2],j.Plaintext],[j.ScriptEnd[2],j.ScriptEnd],[j.TitleEnd[2],j.TitleEnd],[j.XmpEnd[2],j.XmpEnd]]);class l{cbs;state=ba.Text;buffer="";sectionStart=0;index=0;entityStart=0;baseState=ba.Text;isSpecial=!1;running=!0;offset=0;xmlMode;decodeEntities;recognizeSelfClosing;entityDecoder;constructor({xmlMode:a=!1,decodeEntities:b=!0,recognizeSelfClosing:c=a},f){this.cbs=f,this.xmlMode=a,this.decodeEntities=b,this.recognizeSelfClosing=c,this.entityDecoder=new g(a?e:d,(a,b)=>this.emitCodePoint(a,b))}reset(){this.state=ba.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ba.Text,this.isSpecial=!1,this.currentSequence=j.Empty,this.sequenceIndex=0,this.running=!0,this.offset=0}write(a){this.offset+=this.buffer.length,this.buffer=a,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(a){a===a9.Lt||!this.decodeEntities&&this.fastForwardTo(a9.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=ba.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&a===a9.Amp&&this.startEntity()}currentSequence=j.Empty;sequenceIndex=0;enterTagBody(){this.currentSequence===j.Plaintext?(this.currentSequence=j.Empty,this.state=ba.InPlainText):this.isSpecial?(this.state=ba.InSpecialTag,this.sequenceIndex=0):this.state=ba.Text}stateSpecialStartSequence(a){let b=32|a;if(this.sequenceIndex<this.currentSequence.length){if(b===this.currentSequence[this.sequenceIndex])return void this.sequenceIndex++;if(3===this.sequenceIndex){if(this.currentSequence===j.ScriptEnd&&b===j.StyleEnd[3]){this.currentSequence=j.StyleEnd,this.sequenceIndex=4;return}if(this.currentSequence===j.TitleEnd&&b===j.TextareaEnd[3]){this.currentSequence=j.TextareaEnd,this.sequenceIndex=4;return}}else if(4===this.sequenceIndex&&this.currentSequence===j.NoembedEnd&&b===j.NoframesEnd[4]){this.currentSequence=j.NoframesEnd,this.sequenceIndex=5;return}}else if(i(a)){this.sequenceIndex=0,this.state=ba.InTagName,this.stateInTagName(a);return}this.isSpecial=!1,this.currentSequence=j.Empty,this.sequenceIndex=0,this.state=ba.InTagName,this.stateInTagName(a)}stateCDATASequence(a){a===j.Cdata[this.sequenceIndex]?++this.sequenceIndex===j.Cdata.length&&(this.state=ba.InCommentLike,this.currentSequence=j.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.xmlMode?(this.state=ba.InDeclaration,this.stateInDeclaration(a)):(this.state=ba.InSpecialComment,this.stateInSpecialComment(a)))}fastForwardTo(a){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===a)return!0;return this.index=this.buffer.length+this.offset-1,!1}emitComment(a){this.cbs.oncomment(this.sectionStart,this.index,a),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=ba.Text}stateInCommentLike(a){!this.xmlMode&&this.currentSequence===j.CommentEnd&&this.sequenceIndex<=1&&this.index===this.sectionStart+this.sequenceIndex&&a===a9.Gt?this.emitComment(this.sequenceIndex):this.currentSequence===j.CommentEnd&&2===this.sequenceIndex&&a===a9.Gt?this.emitComment(2):this.currentSequence===j.CommentEnd&&this.sequenceIndex===this.currentSequence.length-1&&a!==a9.Gt?this.sequenceIndex=Number(a===a9.Dash):a===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===j.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,3),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=ba.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):a!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(a){return this.xmlMode?!i(a):a>=a9.LowerA&&a<=a9.LowerZ||a>=a9.UpperA&&a<=a9.UpperZ}stateInSpecialTag(a){if(this.sequenceIndex===this.currentSequence.length){if(i(a)){let b=this.index-this.currentSequence.length;if(this.sectionStart<b){let a=this.index;this.index=b,this.cbs.ontext(this.sectionStart,b),this.index=a}this.isSpecial=!1,this.sectionStart=b+2,this.stateInClosingTagName(a);return}this.sequenceIndex=0}(32|a)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===j.TitleEnd||this.currentSequence===j.TextareaEnd?this.decodeEntities&&a===a9.Amp&&this.startEntity():this.fastForwardTo(a9.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(a===a9.Lt)}stateBeforeTagName(a){if(a===a9.ExclamationMark)this.state=ba.BeforeDeclaration,this.sectionStart=this.index+1;else if(a===a9.Questionmark)this.xmlMode?(this.state=ba.InProcessingInstruction,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.state=ba.InSpecialComment,this.sectionStart=this.index);else if(this.isTagStartChar(a)){this.sectionStart=this.index;let b=this.xmlMode||this.cbs.isInForeignContext?.()?void 0:k.get(32|a);void 0===b?this.state=ba.InTagName:(this.isSpecial=!0,this.currentSequence=b,this.sequenceIndex=3,this.state=ba.SpecialStartSequence)}else a===a9.Slash?this.state=ba.BeforeClosingTagName:(this.state=ba.Text,this.stateText(a))}stateInTagName(a){i(a)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=ba.BeforeAttributeName,this.stateBeforeAttributeName(a))}stateBeforeClosingTagName(a){h(a)?this.xmlMode||(this.state=ba.InSpecialComment,this.sectionStart=this.index):a===a9.Gt?(this.state=ba.Text,this.xmlMode||(this.sectionStart=this.index+1)):(this.state=this.isTagStartChar(a)?ba.InClosingTagName:ba.InSpecialComment,this.sectionStart=this.index)}stateInClosingTagName(a){i(a)&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=ba.AfterClosingTagName,this.stateAfterClosingTagName(a))}stateAfterClosingTagName(a){(a===a9.Gt||this.fastForwardTo(a9.Gt))&&(this.state=ba.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(a){a===a9.Gt?(this.cbs.onopentagend(this.index),this.enterTagBody(),this.sectionStart=this.index+1):a===a9.Slash?this.state=ba.InSelfClosingTag:h(a)||(this.state=ba.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(a){if(a===a9.Gt){if(this.cbs.onselfclosingtag(this.index),this.sectionStart=this.index+1,!this.recognizeSelfClosing)return void this.enterTagBody();this.state=ba.Text,this.isSpecial=!1,this.currentSequence=j.Empty}else h(a)||(this.state=ba.BeforeAttributeName,this.stateBeforeAttributeName(a))}stateInAttributeName(a){(a===a9.Eq||i(a))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=ba.AfterAttributeName,this.stateAfterAttributeName(a))}stateAfterAttributeName(a){a===a9.Eq?this.state=ba.BeforeAttributeValue:a===a9.Slash||a===a9.Gt?(this.cbs.onattribend(bb.NoValue,this.sectionStart),this.sectionStart=-1,this.state=ba.BeforeAttributeName,this.stateBeforeAttributeName(a)):h(a)||(this.cbs.onattribend(bb.NoValue,this.sectionStart),this.state=ba.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(a){a===a9.DoubleQuote?(this.state=ba.InAttributeValueDq,this.sectionStart=this.index+1):a===a9.SingleQuote?(this.state=ba.InAttributeValueSq,this.sectionStart=this.index+1):h(a)||(this.sectionStart=this.index,this.state=ba.InAttributeValueNq,this.stateInAttributeValueNoQuotes(a))}handleInAttributeValue(a,b){a===b||!this.decodeEntities&&this.fastForwardTo(b)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(b===a9.DoubleQuote?bb.Double:bb.Single,this.index+1),this.state=ba.BeforeAttributeName):this.decodeEntities&&a===a9.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(a){this.handleInAttributeValue(a,a9.DoubleQuote)}stateInAttributeValueSingleQuotes(a){this.handleInAttributeValue(a,a9.SingleQuote)}stateInAttributeValueNoQuotes(a){h(a)||a===a9.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(bb.Unquoted,this.index),this.state=ba.BeforeAttributeName,this.stateBeforeAttributeName(a)):this.decodeEntities&&a===a9.Amp&&this.startEntity()}stateBeforeDeclaration(a){a===a9.OpeningSquareBracket?(this.state=ba.CDATASequence,this.sequenceIndex=0):this.xmlMode?this.state=a===a9.Dash?ba.BeforeComment:ba.InDeclaration:(32|a)===j.Doctype[0]?(this.state=ba.DeclarationSequence,this.currentSequence=j.Doctype,this.sequenceIndex=1):a===a9.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=ba.Text,this.sectionStart=this.index+1):a===a9.Dash?this.state=ba.BeforeComment:this.state=ba.InSpecialComment}stateDeclarationSequence(a){this.sequenceIndex===this.currentSequence.length?(this.state=ba.InDeclaration,this.stateInDeclaration(a)):(32|a)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:a===a9.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=ba.Text,this.sectionStart=this.index+1):this.state=ba.InSpecialComment}stateInDeclaration(a){(a===a9.Gt||this.fastForwardTo(a9.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=ba.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(a){a===a9.Questionmark?this.sequenceIndex=1:a===a9.Gt&&1===this.sequenceIndex?(this.cbs.onprocessinginstruction(this.sectionStart,this.index-1),this.sequenceIndex=0,this.state=ba.Text,this.sectionStart=this.index+1):this.sequenceIndex=Number(this.fastForwardTo(a9.Questionmark))}stateBeforeComment(a){a===a9.Dash?(this.state=ba.InCommentLike,this.currentSequence=j.CommentEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):this.xmlMode?this.state=ba.InDeclaration:a===a9.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=ba.Text,this.sectionStart=this.index+1):this.state=ba.InSpecialComment}stateInSpecialComment(a){(a===a9.Gt||this.fastForwardTo(a9.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=ba.Text,this.sectionStart=this.index+1)}startEntity(){this.baseState=this.state,this.state=ba.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?a8.Strict:this.baseState===ba.Text||this.baseState===ba.InSpecialTag?a8.Legacy:a8.Attribute)}stateInEntity(){let a=this.index-this.offset,b=this.entityDecoder.write(this.buffer,a);if(b>=0)this.state=this.baseState,0===b&&(this.index-=1);else{if(a<this.buffer.length&&this.buffer.charCodeAt(a)===a9.Amp){this.state=this.baseState,this.index-=1;return}this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===ba.Text||this.state===ba.InPlainText||this.state===ba.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===ba.InAttributeValueDq||this.state===ba.InAttributeValueSq||this.state===ba.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){let a=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case ba.Text:this.stateText(a);break;case ba.InPlainText:this.index=this.buffer.length+this.offset-1;break;case ba.SpecialStartSequence:this.stateSpecialStartSequence(a);break;case ba.InSpecialTag:this.stateInSpecialTag(a);break;case ba.CDATASequence:this.stateCDATASequence(a);break;case ba.DeclarationSequence:this.stateDeclarationSequence(a);break;case ba.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(a);break;case ba.InAttributeName:this.stateInAttributeName(a);break;case ba.InCommentLike:this.stateInCommentLike(a);break;case ba.InSpecialComment:this.stateInSpecialComment(a);break;case ba.BeforeAttributeName:this.stateBeforeAttributeName(a);break;case ba.InTagName:this.stateInTagName(a);break;case ba.InClosingTagName:this.stateInClosingTagName(a);break;case ba.BeforeTagName:this.stateBeforeTagName(a);break;case ba.AfterAttributeName:this.stateAfterAttributeName(a);break;case ba.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(a);break;case ba.BeforeAttributeValue:this.stateBeforeAttributeValue(a);break;case ba.BeforeClosingTagName:this.stateBeforeClosingTagName(a);break;case ba.AfterClosingTagName:this.stateAfterClosingTagName(a);break;case ba.InAttributeValueNq:this.stateInAttributeValueNoQuotes(a);break;case ba.InSelfClosingTag:this.stateInSelfClosingTag(a);break;case ba.InDeclaration:this.stateInDeclaration(a);break;case ba.BeforeDeclaration:this.stateBeforeDeclaration(a);break;case ba.BeforeComment:this.stateBeforeComment(a);break;case ba.InProcessingInstruction:this.stateInProcessingInstruction(a);break;case ba.InEntity:this.stateInEntity()}this.index++}this.cleanup()}finish(){this.state===ba.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingCommentLikeData(a){if(this.state!==ba.InCommentLike)return!1;if(this.currentSequence===j.CdataEnd)if(this.xmlMode)this.sectionStart<a&&this.cbs.oncdata(this.sectionStart,a,0);else{let b=this.sectionStart-j.Cdata.length-1;this.cbs.oncomment(b,a,0)}else{let b=this.xmlMode?0:Math.min(this.sequenceIndex,j.CommentEnd.length-1);this.cbs.oncomment(this.sectionStart,a,b)}return!0}handleTrailingMarkupDeclaration(a){if(this.xmlMode)switch(this.state){case ba.InSpecialComment:case ba.BeforeComment:case ba.CDATASequence:case ba.DeclarationSequence:case ba.InDeclaration:return this.cbs.ontext(this.sectionStart,a),!0;default:return!1}switch(this.state){case ba.BeforeDeclaration:case ba.InSpecialComment:case ba.BeforeComment:case ba.CDATASequence:return this.cbs.oncomment(this.sectionStart,a,0),!0;case ba.DeclarationSequence:return this.sequenceIndex!==j.Doctype.length&&this.cbs.oncomment(this.sectionStart,a,0),!0;case ba.InDeclaration:return!0;default:return!1}}handleTrailingData(){let a=this.buffer.length+this.offset;if(!(this.handleTrailingCommentLikeData(a)||this.handleTrailingMarkupDeclaration(a))&&!(this.sectionStart>=a))switch(this.state){case ba.InTagName:case ba.BeforeAttributeName:case ba.BeforeAttributeValue:case ba.AfterAttributeName:case ba.InAttributeName:case ba.InAttributeValueSq:case ba.InAttributeValueDq:case ba.InAttributeValueNq:case ba.InClosingTagName:break;default:this.cbs.ontext(this.sectionStart,a)}}emitCodePoint(a,b){this.baseState!==ba.Text&&this.baseState!==ba.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+b,this.index=this.sectionStart-1,this.cbs.onattribentity(a)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+b,this.index=this.sectionStart-1,this.cbs.ontextentity(a,this.sectionStart))}}let{fromCodePoint:m}=String,n=new Set([" input "," option "," optgroup "," select "," button "," datalist "," textarea "]),o=new Set([" p "]),p=new Set([" h1 "," h2 "," h3 "," h4 "," h5 "," h6 "," p "]),q=new Set([" thead "," tbody "]),r=new Set([" dd "," dt "]),s=new Set([" rt "," rp "]),t=new Map([[" tr ",new Set([" tr "," th "," td "])],[" th ",new Set([" th "])],[" td ",new Set([" thead "," th "," td "])],[" body ",new Set([" head "," link "," script "])],[" a ",new Set([" a "])],[" li ",new Set([" li "])],[" p ",o],[" h1 ",p],[" h2 ",p],[" h3 ",p],[" h4 ",p],[" h5 ",p],[" h6 ",p],[" select ",n],[" input ",n],[" output ",n],[" button ",n],[" datalist ",n],[" textarea ",n],[" option ",new Set([" option "])],[" optgroup ",new Set([" optgroup "," option "])],[" dd ",r],[" dt ",r],[" address ",o],[" article ",o],[" aside ",o],[" blockquote ",o],[" details ",o],[" div ",o],[" dl ",o],[" fieldset ",o],[" figcaption ",o],[" figure ",o],[" footer ",o],[" form ",o],[" header ",o],[" hr ",o],[" main ",o],[" nav ",o],[" ol ",o],[" pre ",o],[" section ",o],[" table ",o],[" ul ",o],[" rt ",s],[" rp ",s],[" tbody ",q],[" tfoot ",q]]),u=" doctype ",v=new Set([" area "," base "," basefont "," br "," col "," command "," embed "," frame "," hr "," img "," input "," isindex "," keygen "," link "," meta "," param "," source "," track "," wbr "]),w=new Set([" math "," svg "]),x=new Set([" mi "," mo "," mn "," ms "," mtext "," annotation - xml "," foreignObject "," desc "," title "]),y=new Map([[" altglyph "," altGlyph "],[" altglyphdef "," altGlyphDef "],[" altglyphitem "," altGlyphItem "],[" animatecolor "," animateColor "],[" animatemotion "," animateMotion "],[" animatetransform "," animateTransform "],[" clippath "," clipPath "],[" feblend "," feBlend "],[" fecolormatrix "," feColorMatrix "],[" fecomponenttransfer "," feComponentTransfer "],[" fecomposite "," feComposite "],[" feconvolvematrix "," feConvolveMatrix "],[" fediffuselighting "," feDiffuseLighting "],[" fedisplacementmap "," feDisplacementMap "],[" fedistantlight "," feDistantLight "],[" fedropshadow "," feDropShadow "],[" feflood "," feFlood "],[" fefunca "," feFuncA "],[" fefuncb "," feFuncB "],[" fefuncg "," feFuncG "],[" fefuncr "," feFuncR "],[" fegaussianblur "," feGaussianBlur "],[" feimage "," feImage "],[" femerge "," feMerge "],[" femergenode "," feMergeNode "],[" femorphology "," feMorphology "],[" feoffset "," feOffset "],[" fepointlight "," fePointLight "],[" fespecularlighting "," feSpecularLighting "],[" fespotlight "," feSpotLight "],[" fetile "," feTile "],[" feturbulence "," feTurbulence "],[" foreignobject "," foreignObject "],[" glyphref "," glyphRef "],[" lineargradient "," linearGradient "],[" radialgradient "," radialGradient "],[" textpath "," textPath "]]);(a3=bc||(bc={}))[a3.None=0]=" None ",a3[a3.Svg=1]=" Svg ",a3[a3.MathML=2]=" MathML ";let z=/\s|\//;class A{options;startIndex=0;endIndex=0;openTagStart=0;tagname="";attribname="";attribvalue="";attribs=null;stack=[];foreignContext;cbs;lowerCaseTagNames;lowerCaseAttributeNames;recognizeSelfClosing;htmlMode;tokenizer;buffers=[];bufferOffset=0;writeIndex=0;ended=!1;constructor(a,b={}){this.options=b,this.cbs=a??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=b.lowerCaseTags??this.htmlMode,this.lowerCaseAttributeNames=b.lowerCaseAttributeNames??this.htmlMode,this.recognizeSelfClosing=b.recognizeSelfClosing??!this.htmlMode,this.tokenizer=new(b.Tokenizer??l)(this.options,this),this.foreignContext=[bc.None],this.cbs.onparserinit?.(this)}ontext(a,b){let c=this.getSlice(a,b);this.endIndex=b-1,this.cbs.ontext?.(c),this.startIndex=b}ontextentity(a,b){this.endIndex=b-1,this.cbs.ontext?.(m(a)),this.startIndex=b}isInForeignContext(){return this.foreignContext[0]!==bc.None}isVoidElement(a){return this.htmlMode&&v.has(a)}readTagName(a,b){let c=this.lowerCaseTagNames?this.getSlice(a,b).toLowerCase():this.getSlice(a,b);if(!(this.lowerCaseTagNames&&this.htmlMode))return c;if(this.foreignContext[0]===bc.Svg)return y.get(c)??c;if(this.foreignContext.length>1){let a=y.get(c);if(void 0!==a&&this.stack.includes(a))return a}return this.isInForeignContext()?c:" image "===c?" img ":c}onopentagname(a,b){this.endIndex=b,this.emitOpenTag(this.readTagName(a,b))}emitOpenTag(a){if(this.openTagStart=this.startIndex,this.tagname=a,this.htmlMode&&" form "===a&&this.stack.includes(" form ")){this.tagname="";return}let b=this.htmlMode&&t.get(a);if(b)for(;this.stack.length>0&&b.has(this.stack[0]);)this.popElement(!0);!this.isVoidElement(a)&&(this.stack.unshift(a),this.htmlMode&&(" svg "===a?this.foreignContext.unshift(bc.Svg):" math "===a?this.foreignContext.unshift(bc.MathML):x.has(a)&&this.foreignContext.unshift(bc.None))),this.cbs.onopentagname?.(a),this.cbs.onopentag&&(this.attribs={})}endOpenTag(a){this.startIndex=this.openTagStart,this.attribs&&(this.cbs.onopentag?.(this.tagname,this.attribs,a),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(a){this.endIndex=a,this.endOpenTag(!1),this.startIndex=a+1}onclosetag(a,b){this.endIndex=b;let c=this.readTagName(a,b);if(this.isVoidElement(c))this.htmlMode&&" br "===c&&(this.cbs.onopentagname?.(" br "),this.cbs.onopentag?.(" br ",{},!0),this.cbs.onclosetag?.(" br ",!1));else{let a=this.stack.indexOf(c);if(-1!==a){for(let b=0;b<a;b++)this.popElement(!0);this.popElement(!1)}else this.htmlMode&&" p "===c&&(this.emitOpenTag(" p "),this.closeCurrentTag(!0))}this.startIndex=b+1}onselfclosingtag(a){this.endIndex=a,this.recognizeSelfClosing||this.isInForeignContext()?(this.closeCurrentTag(!1),this.startIndex=a+1):this.onopentagend(a)}popElement(a){let b=this.stack.shift();this.htmlMode&&(w.has(b)||x.has(b))&&this.foreignContext.shift(),this.cbs.onclosetag?.(b,a)}closeCurrentTag(a){let b=this.tagname;this.endOpenTag(a),this.stack[0]===b&&this.popElement(!a)}onattribname(a,b){this.startIndex=a;let c=this.getSlice(a,b);this.attribname=this.lowerCaseAttributeNames?c.toLowerCase():c}onattribdata(a,b){this.attribvalue+=this.getSlice(a,b)}onattribentity(a){this.attribvalue+=m(a)}onattribend(a,b){this.endIndex=b,this.cbs.onattribute?.(this.attribname,this.attribvalue,a===bb.Double?'" ':a===bb.Single?"' ":a===bb.NoValue?void 0:null),this.attribs&&!Object.hasOwn(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(a){let b=a.search(z),c=b<0?a:a.substr(0,b);return this.lowerCaseTagNames&&(c=c.toLowerCase()),c}ondeclaration(a,b){this.endIndex=b;let c=this.getSlice(a,b);if(this.cbs.onprocessinginstruction){let a=this.htmlMode?this.lowerCaseTagNames?u:c.slice(0,u.length):this.getInstructionName(c);this.cbs.onprocessinginstruction(`!${a}`,`!${c}`)}this.startIndex=b+1}onprocessinginstruction(a,b){this.endIndex=b;let c=this.getSlice(a,b);if(this.cbs.onprocessinginstruction){let a=this.getInstructionName(c);this.cbs.onprocessinginstruction(`?${a}`,`?${c}`)}this.startIndex=b+1}oncomment(a,b,c){this.endIndex=b,this.cbs.oncomment?.(this.getSlice(a,b-c)),this.cbs.oncommentend?.(),this.startIndex=b+1}oncdata(a,b,c){this.endIndex=b;let d=this.getSlice(a,b-c);!this.htmlMode||this.options.recognizeCDATA?(this.cbs.oncdatastart?.(),this.cbs.ontext?.(d),this.cbs.oncdataend?.()):this.isInForeignContext()?this.cbs.ontext?.(d):(this.cbs.oncomment?.(`[CDATA[${d}]]`),this.cbs.oncommentend?.()),this.startIndex=b+1}onend(){if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let a=0;a<this.stack.length;a++)this.cbs.onclosetag(this.stack[a],!0)}this.cbs.onend?.()}reset(){this.cbs.onreset?.(),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,this.cbs.onparserinit?.(this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(bc.None),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(a){this.reset(),this.end(a)}getSlice(a,b){if(a===b)return"";for(;a-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let c=this.buffers[0].slice(a-this.bufferOffset,b-this.bufferOffset);for(;b-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),c+=this.buffers[0].slice(0,b-this.bufferOffset);return c}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(a){this.ended?this.cbs.onerror?.(Error(" . write () after done ! ")):(this.buffers.push(a),this.tokenizer.running&&(this.tokenizer.write(a),this.writeIndex++))}end(a){this.ended?this.cbs.onerror?.(Error(" . end () after done ! ")):(a&&this.write(a),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}}function B(a){return a.type===bd.Tag||a.type===bd.Script||a.type===bd.Style}(a4=bd||(bd={})).Root=" root ",a4.Text=" text ",a4.Directive=" directive ",a4.Comment=" comment ",a4.Script=" script ",a4.Style=" style ",a4.Tag=" tag ",a4.CDATA=" cdata ",a4.Doctype=" doctype ";let C=bd.Root,D=bd.Text,E=bd.Directive,F=bd.Comment,G=bd.Script,H=bd.Style,I=bd.Tag,J=bd.CDATA,K=bd.Doctype;a.s([" CDATA ",0,J," Comment ",0,F," Directive ",0,E," Doctype ",0,K," ElementType ",0,bd," Root ",0,C," Script ",0,G," Style ",0,H," Tag ",0,I," Text ",0,D," isTag ",0,B],30415);class L{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(a){this.parent=a}get previousSibling(){return this.prev}set previousSibling(a){this.prev=a}get nextSibling(){return this.next}set nextSibling(a){this.next=a}cloneNode(a=!1){return Z(this,a)}}class M extends L{data;constructor(a){super(),this.data=a}get nodeValue(){return this.data}set nodeValue(a){this.data=a}}class N extends M{type=bd.Text;get nodeType(){return 3}}class O extends M{type=bd.Comment;get nodeType(){return 8}}class P extends M{type=bd.Directive;name;constructor(a,b){super(b),this.name=a}get nodeType(){return 1}" x - name ";" x - publicId ";" x - systemId "}class Q extends L{children;constructor(a){super(),this.children=a}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(a){this.children=a}}class R extends Q{type=bd.CDATA;get nodeType(){return 4}}class S extends Q{type=bd.Root;get nodeType(){return 9}}class T extends Q{name;attribs;type;constructor(a,b,c=[],d=" script "===a?bd.Script:" style "===a?bd.Style:bd.Tag){super(c),this.name=a,this.attribs=b,this.type=d}get nodeType(){return 1}get tagName(){return this.name}set tagName(a){this.name=a}get attributes(){return Object.keys(this.attribs).map(a=>({name:a,value:this.attribs[a],namespace:this[" x - attribsNamespace "]?.[a],prefix:this[" x - attribsPrefix "]?.[a]}))}namespace;" x - attribsNamespace ";" x - attribsPrefix "}function U(a){return B(a)}function V(a){return a.type===bd.CDATA}function W(a){return a.type===bd.Text}function X(a){return a.type===bd.Comment}function Y(a){return Object.hasOwn(a," children ")}function Z(a,b=!1){let c;if(W(a))c=new N(a.data);else if(X(a))c=new O(a.data);else if(B(a)){let d=b?$(a.children):[],e=new T(a.name,{...a.attribs},d);for(let a of d)a.parent=e;null!=a.namespace&&(e.namespace=a.namespace),a[" x - attribsNamespace "]&&(e[" x - attribsNamespace "]={...a[" x - attribsNamespace "]}),a[" x - attribsPrefix "]&&(e[" x - attribsPrefix "]={...a[" x - attribsPrefix "]}),c=e}else if(V(a)){let d=b?$(a.children):[],e=new R(d);for(let a of d)a.parent=e;c=e}else if(a.type===bd.Root){let d=b?$(a.children):[],e=new S(d);for(let a of d)a.parent=e;a[" x - mode "]&&(e[" x - mode "]=a[" x - mode "]),c=e}else if(a.type===bd.Directive){let b=new P(a.name,a.data);null!=a[" x - name "]&&(b[" x - name "]=a[" x - name "],b[" x - publicId "]=a[" x - publicId "],b[" x - systemId "]=a[" x - systemId "]),c=b}else throw Error(`Not implemented yet: ${a.type}`);return c.startIndex=a.startIndex,c.endIndex=a.endIndex,null!=a.sourceCodeLocation&&(c.sourceCodeLocation=a.sourceCodeLocation),c}function $(a){let b=a.map(a=>Z(a,!0));for(let a=1;a<b.length;a++)b[a].prev=b[a-1],b[a-1].next=b[a];return b}let _={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class aa{dom=[];root=new S(this.dom);callback;options;elementCB;done=!1;tagStack=[this.root];lastNode=null;parser=null;constructor(a,b,c){" function "==typeof b&&(c=b,b=_)," object "==typeof a&&(b=a,a=void 0),this.callback=a??null,this.options=b??_,this.elementCB=c??null}onparserinit(a){this.parser=a}onreset(){this.dom=[],this.root=new S(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(a){this.handleCallback(a)}onclosetag(){this.lastNode=null;let a=this.tagStack.pop();this.options.withEndIndices&&this.parser&&(a.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(a)}onopentag(a,b){let c=new T(a,b,void 0,this.options.xmlMode?bd.Tag:void 0);this.addNode(c),this.tagStack.push(c)}ontext(a){let{lastNode:b}=this;if(b&&b.type===bd.Text)b.data+=a,this.options.withEndIndices&&this.parser&&(b.endIndex=this.parser.endIndex);else{let b=new N(a);this.addNode(b),this.lastNode=b}}oncomment(a){if(this.lastNode&&this.lastNode.type===bd.Comment){this.lastNode.data+=a;return}let b=new O(a);this.addNode(b),this.lastNode=b}oncommentend(){this.lastNode=null}oncdatastart(){let a=new N(""),b=new R([a]);this.addNode(b),a.parent=b,this.lastNode=a}oncdataend(){this.lastNode=null}onprocessinginstruction(a,b){let c=new P(a,b);this.addNode(c)}handleCallback(a){if(" function "==typeof this.callback)this.callback(a,this.dom);else if(a)throw a}addNode(a){let b=this.tagStack[this.tagStack.length-1],c=b.children[b.children.length-1];this.options.withStartIndices&&this.parser&&(a.startIndex=this.parser.startIndex),this.options.withEndIndices&&this.parser&&(a.endIndex=this.parser.endIndex),b.children.push(a),c&&(a.prev=c,c.next=a),a.parent=b,this.lastNode=null}}function ab(a,b,c=!0,d=1/0){return ac(a,Array.isArray(b)?b:[b],c,d)}function ac(a,b,c,d){let e=[],f=[Array.isArray(b)?b:[b]],g=[0];for(;;){if(g[0]>=f[0].length){if(1===g.length)return e;f.shift(),g.shift();continue}let b=f[0][g[0]++];if(a(b)&&(e.push(b),--d<=0))return e;c&&Y(b)&&b.children.length>0&&(g.unshift(0),f.unshift(b.children))}}function ad(a,b,c=!0){for(let d of Array.isArray(b)?b:[b]){if(B(d)&&a(d))return d;if(c&&Y(d)&&d.children.length>0){let b=ad(a,d.children,!0);if(b)return b}}return null}function ae(a,b){return(Array.isArray(b)?b:[b]).some(b=>B(b)&&a(b)||Y(b)&&ae(a,b.children))}function af(a,b){let c=[],d=[Array.isArray(b)?b:[b]],e=[0];for(;;){if(e[0]>=d[0].length){if(1===d.length)return c;d.shift(),e.shift();continue}let b=d[0][e[0]++];B(b)&&a(b)&&c.push(b),Y(b)&&b.children.length>0&&(e.unshift(0),d.unshift(b.children))}}a.s([" existsOne ",0,ae," filter ",0,ab," find ",0,ac," findAll ",0,af," findOne ",0,ad],52245);let ag={tag_name:a=>" function "==typeof a?b=>B(b)&&a(b.name):" * "===a?U:b=>B(b)&&b.name===a,tag_type:a=>" function "==typeof a?b=>a(b.type):b=>b.type===a,tag_contains:a=>" function "==typeof a?b=>W(b)&&a(b.data):b=>W(b)&&b.data===a};function ah(a,b){return" function "==typeof b?c=>B(c)&&b(c.attribs[a]):c=>B(c)&&c.attribs[a]===b}function ai(a,b){return c=>a(c)||b(c)}function aj(a){let b=Object.keys(a).map(b=>{let c=a[b];return Object.hasOwn(ag,b)?ag[b](c):ah(b,c)});return 0===b.length?null:b.reduce(ai)}function ak(a,b){let c=aj(a);return!c||c(b)}function al(a,b,c,d=1/0){let e=aj(a);return e?ab(e,b,c,d):[]}function am(a,b,c=!0){return Array.isArray(b)||(b=[b]),ad(ah(" id ",a),b,c)}function an(a,b,c=!0,d=1/0){return ab(ag.tag_name(a),b,c,d)}function ao(a,b,c=!0,d=1/0){return ab(ah(" class ",a),b,c,d)}function ap(a,b,c=!0,d=1/0){return ab(ag.tag_type(a),b,c,d)}a.s([" getElementById ",0,am," getElements ",0,al," getElementsByClassName ",0,ao," getElementsByTagName ",0,an," getElementsByTagType ",0,ap," testElement ",0,ak],25450);let aq=new Map([[34," & quot ; "],[38," & amp ; "],[39," & apos ; "],[60," & lt ; "],[62," & gt ; "]]),ar=" function "==typeof String.prototype.codePointAt?(a,b)=>a.codePointAt(b):(a,b)=>(64512&a.charCodeAt(b))==55296?(a.charCodeAt(b)-55296)*1024+a.charCodeAt(b+1)-56320+65536:a.charCodeAt(b);function as(a){let b,c=0,{length:d}=a;for(let e=0;e<d;e++){let d=a.charCodeAt(e);if(d<128&&((0x500000c4>>>d&1)==0||d>=64||d<32))continue;if(void 0===b?b=a.substring(0,e):c!==e&&(b+=a.substring(c,e)),d<64){b+=aq.get(d),c=e+1;continue}let f=ar(a,e);b+=`&#x${f.toString(16)};`,f!==d&&e++,c=e+1}return void 0===b?a:(c<d&&(b+=a.substr(c)),b)}function at(a,b){return function(c){let d,e=0,f="";for(;d=a.exec(c);)e!==d.index&&(f+=c.substring(e,d.index)),f+=b.get(d[0].charCodeAt(0)),e=d.index+1;return f+c.substring(e)}}let au=at(/[" & \u00A0 ] / g , new Map ([[ 34 , """ ],[ 38 , "&" ],[ 160 , " " ]])), av = at ( /[&<>\u00A0]/g , new Map ([[ 38 , "&" ],[ 60 , "<" ],[ 62 , ">" ],[ 160 , " " ]])), aw = new Map ( "altGlyph altGlyphDef altGlyphItem animateColor animateMotion animateTransform clipPath feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence foreignObject glyphRef linearGradient radialGradient textPath" . split ( " " ). map ( a =>[ a . toLowerCase (), a ])), ax = new Map ( "definitionURL attributeName attributeType baseFrequency baseProfile calcMode clipPathUnits diffuseConstant edgeMode filterUnits glyphRef gradientTransform gradientUnits kernelMatrix kernelUnitLength keyPoints keySplines keyTimes lengthAdjust limitingConeAngle markerHeight markerUnits markerWidth maskContentUnits maskUnits numOctaves pathLength patternContentUnits patternTransform patternUnits pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits refX refY repeatCount repeatDur requiredExtensions requiredFeatures specularConstant specularExponent spreadMethod startOffset stdDeviation stitchTiles surfaceScale systemLanguage tableValues targetX targetY textLength viewBox viewTarget xChannelSelector yChannelSelector zoomAndPan" . split ( " " ). map ( a =>[ a . toLowerCase (), a ])), ay = new Set ( "style script xmp iframe noembed noframes plaintext noscript" . split ( " " )), az = new Set ( "area base basefont br col command embed frame hr img input isindex keygen link meta param source track wbr" . split ( " " )), aA = new Set ([ "svg" , "math" ]), aB = new Set ( "mi mo mn ms mtext annotation-xml foreignObject desc title" . split ( " " )), aC = function ( a , b = {}){ let c = "length" in a ? a : [ a ], d = b . xmlMode ??! 1 , e = "" ; for ( let a = 0 ; a < c . length ; a ++ ) e += aE ( c [ a ], b , d ); return e }; function aD ( a , b , c ){ let d = "" ; for ( let e = 0 ; e < a . length ; e ++ ) d += aE ( a [ e ], b , c ); return d } function aE ( a , b , c ){ switch ( a . type ){ case C : return aD ( a . children , b , c ); case E : return `< ${ a . data } >` ; case F : return `<!-- ${ a . data } -->` ; case J : return `<![CDATA[ ${ a . children [ 0 ]. data } ]]>` ; case G : case H : case I : return function ( a , b , c ){ "foreign" === c && ( a . name = aw . get ( a . name ) ?? a . name , a . parent && aB . has ( a . parent . name ) && ( c =! 1 )), ! c && aA . has ( a . name ) && ( c = "foreign" ); let { name : d , children : e } = a , f =! c && az . has ( d ), g = `< ${ d }${ function ( a , b , c ){ if ( ! a ) return "" ; let d = ( b . encodeEntities ?? b . decodeEntities ) ===! 1 ? aF : c || "utf8" !== b . encodeEntities ? as : au , e = "foreign" === c , f =!! ( b . emptyAttrs ?? c ), g = "" ; for ( let b in a ){ if ( ! Object . hasOwn ( a , b )) continue ; let c = a [ b ], h = e ? ax . get ( b ) ?? b : b ; g += f || null != c && "" !== c ? ` ${ h } =" ${ d ( null == c ? "" : String ( c )) } "` : ` ${ h } ` } return g}(a.attribs,b,c)}` ; return 0 === e . length && ( c ?! 1 !== b . selfClosingTags : b . selfClosingTags && f ) ? g += c ? "/>" : " />" : ( g += ">" , e . length > 0 && ( g += aD ( e , b , c )), f || ( g += `</ ${ d } >` )), g }( a , b , c ); case D : { let d = a . data || "" ; if (( b . encodeEntities ?? b . decodeEntities ) !==! 1 &&! ( ! c && a . parent && ay . has ( a . parent . name ))) return c || "utf8" !== b . encodeEntities ? as ( d ) : av ( d ); return d }}} function aF ( a ){ return a . replaceAll ( '"' , """ )} function aG ( a , b ){ return aC ( a , b )} function aH ( a , b ){ return Y ( a ) ? a . children . map ( a => aG ( a , b )). join ( "" ) : "" } function aI ( a ){ return Array . isArray ( a ) ? a . map ( aI ). join ( "" ) : B ( a ) ? "br" === a . name ? "\n" : aI ( a . children ) : V ( a ) ? aI ( a . children ) : W ( a ) ? a . data : "" } function aJ ( a ){ return Array . isArray ( a ) ? a . map ( aJ ). join ( "" ) : Y ( a ) &&! X ( a ) ? aJ ( a . children ) : W ( a ) ? a . data : "" } function aK ( a ){ return Array . isArray ( a ) ? a . map ( aK ). join ( "" ) : Y ( a ) && ( a . type === bd . Tag || V ( a )) ? aK ( a . children ) : W ( a ) ? a . data : "" } function aL ( a ){ var b ; let c , d , e , f , g , h , i , j = aP ( aS , a ); return j ? "feed" === j . name ? ( d = { type : "atom" , items : an ( "entry" , c = j . children ). map ( a =>{ let { children : b } = a , c = { media : aO ( b )}; aR ( c , "id" , "id" , b ), aR ( c , "title" , "title" , b ); let d = aP ( "link" , b ) ? . attribs . href ; d && ( c . link = d ); let e = aQ ( "summary" , b ) || aQ ( "content" , b ); e && ( c . description = e ); let f = aQ ( "updated" , b ); return f && ( c . pubDate = new Date ( f )), c })}, aR ( d , "id" , "id" , c ), aR ( d , "title" , "title" , c ),( e = aP ( "link" , c ) ? . attribs . href ) && ( d . link = e ), aR ( d , "description" , "subtitle" , c ),( f = aQ ( "updated" , c )) && ( d . updated = new Date ( f )), aR ( d , "author" , "email" , c , ! 0 ), d ) : ( b = j , g = aP ( "channel" , b . children ) ? . children ?? [], h = { type : b . name . substr ( 0 , 3 ), id : "" , items : an ( "item" , b . children ). map ( a =>{ let { children : b } = a , c = { media : aO ( b )}; aR ( c , "id" , "guid" , b ), aR ( c , "title" , "title" , b ), aR ( c , "link" , "link" , b ), aR ( c , "description" , "description" , b ); let d = aQ ( "pubDate" , b ) || aQ ( "dc:date" , b ); return d && ( c . pubDate = new Date ( d )), c })}, aR ( h , "title" , "title" , g ), aR ( h , "link" , "link" , g ), aR ( h , "description" , "description" , g ),( i = aQ ( "lastBuildDate" , g )) && ( h . updated = new Date ( i )), aR ( h , "author" , "managingEditor" , g , ! 0 ), h ) : null } a . s ([ "getInnerHTML" , 0 , aH , "getOuterHTML" , 0 , aG , "getText" , 0 , aI , "innerText" , 0 , aK , "textContent" , 0 , aJ ], 82582 ); let aM = [ "url" , "type" , "lang" ], aN = [ "fileSize" , "bitrate" , "framerate" , "samplingrate" , "channels" , "duration" , "height" , "width" ]; function aO ( a ){ return an ( "media:content" , a ). map ( a =>{ let { attribs : b } = a , c = { medium : b . medium , isDefault :!! b . isDefault }; for ( let a of aM ) b [ a ] && ( c [ a ] = b [ a ]); for ( let a of aN ) b [ a ] && ( c [ a ] = Number . parseInt ( b [ a ], 10 )); return b . expression && ( c . expression = b . expression ), c })} function aP ( a , b ){ return an ( a , b , ! 0 , 1 )[ 0 ]} function aQ ( a , b , c =! 1 ){ return aJ ( an ( a , b , c , 1 )). trim ()} function aR ( a , b , c , d , e =! 1 ){ let f = aQ ( c , d , e ); f && ( a [ b ] = f )} function aS ( a ){ return "rss" === a || "feed" === a || "rdf:RDF" === a } function aT ( a , b ){ let c = new aa ( void 0 , b ); return new A ( c , b ). end ( a ), c . root } function aU ( a , b , c ){ let d = new aa ( b => a ( b , d . root ), b , c ); return new A ( d , b )} a . s ([ "getFeed" , 0 , aL ], 27014 ); let aV = { xmlMode :! 0 }; function aW ( a , b = aV ){ return aL ( aT ( a , b ). children )} a . s ([ "createDocumentStream" , 0 , aU , "parseDocument" , 0 , aT , "parseFeed" , 0 , aW ], 4967 ), a . i ( 4967 ); var aX , aY , aZ , a$ , a_ , a0 , a1 , a2 , a3 , a4 , a5 , a6 , a7 , a8 , a9 , ba , bb , bc , bd , be , bf = a . i ( 30415 ); function bg ( a ){ let b = a . length ; for (; -- b >= 0 ;){ let c = a [ b ]; if ( b > 0 && a . lastIndexOf ( c , b - 1 ) >= 0 ){ a . splice ( b , 1 ); continue } for ( let d = c . parent ; d ; d = d . parent ) if ( a . includes ( d )){ a . splice ( b , 1 ); break }} return a } function bh ( a , b ){ let c = [], d = []; if ( a === b ) return 0 ; let e = Y ( a ) ? a : a . parent ; for (; e ;) c . unshift ( e ), e = e . parent ; for ( e = Y ( b ) ? b : b . parent ; e ;) d . unshift ( e ), e = e . parent ; let f = Math . min ( c . length , d . length ), g = 0 ; for (; g < f && c [ g ] === d [ g ];) g ++ ; if ( 0 === g ) return be . DISCONNECTED ; let h = c [ g - 1 ], i = h . children , j = c [ g ], k = d [ g ]; return i . indexOf ( j ) > i . indexOf ( k ) ? h === b ? be . FOLLOWING | be . CONTAINED_BY : be . FOLLOWING : h === a ? be . PRECEDING | be . CONTAINS : be . PRECEDING } function bi ( a ){ return ( a = a . filter (( a , b , c )=> ! c . includes ( a , b + 1 ))). sort (( a , b )=>{ let c = bh ( a , b ); return c & be . PRECEDING ?- 1 : c & be . FOLLOWING ? 1 : 0 }), a } function bj ( a ){ if ( a . prev && ( a . prev . next = a . next ), a . next && ( a . next . prev = a . prev ), a . parent ){ let b = a . parent . children , c = b . lastIndexOf ( a ); - 1 !== c && b . splice ( c , 1 )} a . next = null , a . prev = null , a . parent = null } function bk ( a , b ){ if ( b . prev = a . prev , b . prev && ( b . prev . next = b ), b . next = a . next , b . next && ( b . next . prev = b ), b . parent = a . parent , b . parent ){ let { children : c } = b . parent , d = c . lastIndexOf ( a ); - 1 !== d && ( c [ d ] = b , a . parent = null )}} function bl ( a , b ){ if ( bj ( b ), b . next = null , b . parent = a , a . children . push ( b ) > 1 ){ let c = a . children [ a . children . length - 2 ]; c . next = b , b . prev = c } else b . prev = null } function bm ( a , b ){ bj ( b ); let { parent : c } = a , d = a . next ; if ( b . next = d , b . prev = a , a . next = b , b . parent = c , d ){ if ( d . prev = b , c ){ let a = c . children ; a . splice ( a . lastIndexOf ( d ), 0 , b )}} else c && c . children . push ( b )} function bn ( a , b ){ if ( bj ( b ), b . parent = a , b . prev = null , 1 === a . children . unshift ( b )) b . next = null ; else { let c = a . children [ 1 ]; c . prev = b , b . next = c }} function bo ( a , b ){ bj ( b ); let { parent : c } = a ; if ( c ){ let d = c . children ; d . splice ( d . indexOf ( a ), 0 , b )} a . prev && ( a . prev . next = b ), b . parent = c , b . prev = a . prev , b . next = a , a . prev = b } function bp ( a ){ return Y ( a ) ? a . children : []} function bq ( a ){ return a . parent || null } function br ( a ){ let b = bq ( a ); if ( null != b ) return bp ( b ); let c = [ a ],{ prev : d , next : e } = a ; for (; null != d ;) c . unshift ( d ),{ prev : d } = d ; for (; null != e ;) c . push ( e ),{ next : e } = e ; return c } function bs ( a , b ){ let { attribs : c } = a ; return c ? .[ b ]} function bt ( a , b ){ let { attribs : c } = a ; return null != c && Object . hasOwn ( c , b ) && null != c [ b ]} function bu ( a ){ return a . name } function bv ( a ){ let { next : b } = a ; for (; null !== b &&! B ( b );)({ next : b } = b ); return b } function bw ( a ){ let { prev : b } = a ; for (; null !== b &&! B ( b );)({ prev : b } = b ); return b } a . s ([], 48398 ), a . i ( 48398 ), a . i ( 27014 ),( aX = be || ( be = {}))[ aX . DISCONNECTED = 1 ] = "DISCONNECTED" , aX [ aX . PRECEDING = 2 ] = "PRECEDING" , aX [ aX . FOLLOWING = 4 ] = "FOLLOWING" , aX [ aX . CONTAINS = 8 ] = "CONTAINS" , aX [ aX . CONTAINED_BY = 16 ] = "CONTAINED_BY" , a . s ([ "DocumentPosition" , 0 , be , "compareDocumentPosition" , 0 , bh , "removeSubsets" , 0 , bg , "uniqueSort" , 0 , bi ], 88815 ), a . i ( 88815 ), a . i ( 25450 ), a . s ([ "append" , 0 , bm , "appendChild" , 0 , bl , "prepend" , 0 , bo , "prependChild" , 0 , bn , "removeElement" , 0 , bj , "replaceElement" , 0 , bk ], 28738 ), a . i ( 28738 ), a . i ( 52245 ), a . i ( 82582 ), a . s ([ "getAttributeValue" , 0 , bs , "getChildren" , 0 , bp , "getName" , 0 , bu , "getParent" , 0 , bq , "getSiblings" , 0 , br , "hasAttrib" , 0 , bt , "nextElementSibling" , 0 , bv , "prevElementSibling" , 0 , bw ], 40490 ), a . i ( 40490 ), a . s ([ "DocumentPosition" , 0 , be , "append" , 0 , bm , "appendChild" , 0 , bl , "compareDocumentPosition" , 0 , bh , "existsOne" , 0 , ae , "filter" , 0 , ab , "find" , 0 , ac , "findAll" , 0 , af , "findOne" , 0 , ad , "getAttributeValue" , 0 , bs , "getChildren" , 0 , bp , "getElementById" , 0 , am , "getElements" , 0 , al , "getElementsByClassName" , 0 , ao , "getElementsByTagName" , 0 , an , "getElementsByTagType" , 0 , ap , "getFeed" , 0 , aL , "getInnerHTML" , 0 , aH , "getName" , 0 , bu , "getOuterHTML" , 0 , aG , "getParent" , 0 , bq , "getSiblings" , 0 , br , "getText" , 0 , aI , "hasAttrib" , 0 , bt , "innerText" , 0 , aK , "nextElementSibling" , 0 , bv , "prepend" , 0 , bo , "prependChild" , 0 , bn , "prevElementSibling" , 0 , bw , "removeElement" , 0 , bj , "removeSubsets" , 0 , bg , "replaceElement" , 0 , bk , "testElement" , 0 , ak , "textContent" , 0 , aJ , "uniqueSort" , 0 , bi ], 1325 ); var bx = a . i ( 1325 ); a . s ([ "DefaultHandler" , 0 , aa , "DomHandler" , 0 , aa , "DomUtils" , 0 , bx , "ElementType" , 0 , bf , "Parser" , 0 , A , "QuoteType" , 0 , bb , "Tokenizer" , 0 , l , "createDocumentStream" , 0 , aU , "getFeed" , 0 , aL , "parseDocument" , 0 , aT , "parseFeed" , 0 , aW ], 98061 )}, 25061 ,( a , b , c )=>{ "use strict" ; b . exports = a =>{ if ( "string" != typeof a ) throw TypeError ( "Expected a string" ); return a . replace ( /[|\\{}()[\]^$+*?.]/g , "\\$&" ). replace ( /-/g , "\\x2d" )}}, 43569 ,( a , b , c )=>{ "use strict" ; function d ( a ){ return "[object Object]" === Object . prototype . toString . call ( a )} Object . defineProperty ( c , "__esModule" ,{ value :! 0 }), c . isPlainObject = function ( a ){ var b , c ; return ! 1 !== d ( a ) && ( void 0 === ( b = a . constructor ) ||! 1 !== d ( c = b . prototype ) &&! 1 !== c . hasOwnProperty ( "isPrototypeOf" ))}}, 7054 ,( a , b , c )=>{ "use strict" ; var d = function ( a ){ var b , c , d ; return !! ( b = a ) && "object" == typeof b && ( c = a , "[object RegExp]" !== ( d = Object . prototype . toString . call ( c )) && "[object Date]" !== d && c . $$typeof !== e )}, e = "function" == typeof Symbol && Symbol . for ? Symbol . for ( "react.element" ) : 60103 ; function f ( a , b ){ return ! 1 !== b . clone && b . isMergeableObject ( a ) ? j ( Array . isArray ( a ) ? [] : {}, a , b ) : a } function g ( a , b , c ){ return a . concat ( b ). map ( function ( a ){ return f ( a , c )})} function h ( a ){ return Object . keys ( a ). concat ( Object . getOwnPropertySymbols ? Object . getOwnPropertySymbols ( a ). filter ( function ( b ){ return Object . propertyIsEnumerable . call ( a , b )}) : [])} function i ( a , b ){ try { return b in a } catch ( a ){ return ! 1 }} function j ( a , b , c ){( c = c || {}). arrayMerge = c . arrayMerge || g , c . isMergeableObject = c . isMergeableObject || d , c . cloneUnlessOtherwiseSpecified = f ; var e , k , l = Array . isArray ( b ); return l !== Array . isArray ( a ) ? f ( b , c ) : l ? c . arrayMerge ( a , b , c ) : ( k = {},( e = c ). isMergeableObject ( a ) && h ( a ). forEach ( function ( b ){ k [ b ] = f ( a [ b ], e )}), h ( b ). forEach ( function ( c ){ i ( a , c ) &&! ( Object . hasOwnProperty . call ( a , c ) && Object . propertyIsEnumerable . call ( a , c )) || ( i ( a , c ) && e . isMergeableObject ( b [ c ]) ? k [ c ] = ( function ( a , b ){ if ( ! b . customMerge ) return j ; var c = b . customMerge ( a ); return "function" == typeof c ? c : j })( c , e )( a [ c ], b [ c ], e ) : k [ c ] = f ( b [ c ], e ))}), k )} j . all = function ( a , b ){ if ( ! Array . isArray ( a )) throw Error ( "first argument should be an array" ); return a . reduce ( function ( a , c ){ return j ( a , c , b )},{})}, b . exports = j }, 73653 ,( a , b , c )=>{ ! function ( c , d ){ if ( "function" == typeof define && define . amd ){ let b ; void 0 !== ( b = d ()) && a . v ( b )} else b . exports ? b . exports = d () : c . parseSrcset = d ()}( a . e , function (){ return function ( a ){ function b ( a ){ return " " === a || " " === a || "\n" === a || "\f" === a || "\r" === a } function c ( b ){ var c , d = b . exec ( a . substring ( p )); if ( d ) return c = d [ 0 ], p += c . length , c } for ( var d , e , f , g , h , i = a . length , j = /^[ \t\n\r\u000c]+/ , k = /^[, \t\n\r\u000c]+/ , l = /^[^ \t\n\r\u000c]+/ , m = /[,]+$/ , n = /^\d+$/ , o = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/ , p = 0 , q = [];;){ if ( c ( k ), p >= i ) return q ; d = c ( l ), e = [], "," === d . slice ( - 1 ) ? ( d = d . replace ( m , "" ), r ()) : function (){ for ( c ( j ), f = "" , g = "in descriptor" ;;){ if ( h = a . charAt ( p ), "in descriptor" === g ) if ( b ( h )) f && ( e . push ( f ), f = "" , g = "after descriptor" ); else if ( "," === h ){ p += 1 , f && e . push ( f ), r (); return } else if ( "(" === h ) f += h , g = "in parens" ; else if ( "" === h ){ f && e . push ( f ), r (); return } else f += h ; else if ( "in parens" === g ) if ( ")" === h ) f += h , g = "in descriptor" ; else if ( "" === h ){ e . push ( f ), r (); return } else f += h ; else if ( "after descriptor" === g ) if ( b ( h )); else { if ( "" === h ) return void r (); g = "in descriptor" , p -= 1 } p += 1 }}()} function r (){ var b , c , f , g , h , i , j , k , l , m =! 1 , p = {}; for ( g = 0 ; g < e . length ; g ++ ) i = ( h = e [ g ])[ h . length - 1 ], k = parseInt ( j = h . substring ( 0 , h . length - 1 ), 10 ), l = parseFloat ( j ), n . test ( j ) && "w" === i ? (( b || c ) && ( m =! 0 ), 0 === k ? m =! 0 : b = k ) : o . test ( j ) && "x" === i ? (( b || c || f ) && ( m =! 0 ), l < 0 ? m =! 0 : c = l ) : n . test ( j ) && "h" === i ? (( f || c ) && ( m =! 0 ), 0 === k ? m =! 0 : f = k ) : m =! 0 ; m ? console && console . log && console . log ( "Invalid srcset descriptor found in '" + a + "' at '" + h + "'." ) : ( p . url = d , b && ( p . w = b ), c && ( p . d = c ), f && ( p . h = f ), q . push ( p ))}}})}, 47082 ,( a , b , c )=>{ b . exports = a . x ( "postcss-9745a0d11e3197ae" ,()=> require ( "postcss-9745a0d11e3197ae" ))}, 51772 ,( a , b , c )=>{ a . e , b . exports = function (){ "use strict" ; var a = "millisecond" , b = "second" , c = "minute" , d = "hour" , e = "week" , f = "month" , g = "quarter" , h = "year" , i = "date" , j = "Invalid Date" , k = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/ , l = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g , m = function ( a , b , c ){ var d = String ( a ); return ! d || d . length >= b ? a : "" + Array ( b + 1 - d . length ). join ( c ) + a }, n = "en" , o = {}; o [ n ] = { name : "en" , weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday" . split ( "_" ), months : "January_February_March_April_May_June_July_August_September_October_November_December" . split ( "_" ), ordinal : function ( a ){ var b = [ "th" , "st" , "nd" , "rd" ], c = a % 100 ; return "[" + a + ( b [( c - 20 ) % 10 ] || b [ c ] || b [ 0 ]) + "]" }}; var p = "$isDayjsObject" , q = function ( a ){ return a instanceof u ||! ( ! a ||! a [ p ])}, r = function a ( b , c , d ){ var e ; if ( ! b ) return n ; if ( "string" == typeof b ){ var f = b . toLowerCase (); o [ f ] && ( e = f ), c && ( o [ f ] = c , e = f ); var g = b . split ( "-" ); if ( ! e && g . length > 1 ) return a ( g [ 0 ])} else { var h = b . name ; o [ h ] = b , e = h } return ! d && e && ( n = e ), e ||! d && n }, s = function ( a , b ){ if ( q ( a )) return a . clone (); var c = "object" == typeof b ? b : {}; return c . date = a , c . args = arguments , new u ( c )}, t = { s : m , z : function ( a ){ var b =- a . utcOffset (), c = Math . abs ( b ); return ( b <= 0 ? "+" : "-" ) + m ( Math . floor ( c / 60 ), 2 , "0" ) + ":" + m ( c % 60 , 2 , "0" )}, m : function a ( b , c ){ if ( b . date () < c . date ()) return - a ( c , b ); var d = 12 * ( c . year () - b . year ()) + ( c . month () - b . month ()), e = b . clone (). add ( d , f ), g = c - e < 0 , h = b . clone (). add ( d + ( g ?- 1 : 1 ), f ); return + ( - ( d + ( c - e ) / ( g ? e - h : h - e )) || 0 )}, a : function ( a ){ return a < 0 ? Math . ceil ( a ) || 0 : Math . floor ( a )}, p : function ( j ){ return ({ M : f , y : h , w : e , d : "day" , D : i , h : d , m : c , s : b , ms : a , Q : g })[ j ] || String ( j || "" ). toLowerCase (). replace ( /s$/ , "" )}, u : function ( a ){ return void 0 === a }}; t . l = r , t . i = q , t . w = function ( a , b ){ return s ( a ,{ locale : b . $L , utc : b . $u , x : b . $x , $offset : b . $offset })}; var u = function (){ function m ( a ){ this . $L = r ( a . locale , null , ! 0 ), this . parse ( a ), this . $x = this . $x || a . x || {}, this [ p ] =! 0 } var n = m . prototype ; return n . parse = function ( a ){ this . $d = function ( a ){ var b = a . date , c = a . utc ; if ( null === b ) return new Date ( NaN ); if ( t . u ( b )) return new Date ; if ( b instanceof Date ) return new Date ( b ); if ( "string" == typeof b &&! /Z$/i . test ( b )){ var d = b . match ( k ); if ( d ){ var e = d [ 2 ] - 1 || 0 , f = ( d [ 7 ] || "0" ). substring ( 0 , 3 ); return c ? new Date ( Date . UTC ( d [ 1 ], e , d [ 3 ] || 1 , d [ 4 ] || 0 , d [ 5 ] || 0 , d [ 6 ] || 0 , f )) : new Date ( d [ 1 ], e , d [ 3 ] || 1 , d [ 4 ] || 0 , d [ 5 ] || 0 , d [ 6 ] || 0 , f )}} return new Date ( b )}( a ), this . init ()}, n . init = function (){ var a = this . $d ; this . $y = a . getFullYear (), this . $M = a . getMonth (), this . $D = a . getDate (), this . $W = a . getDay (), this . $H = a . getHours (), this . $m = a . getMinutes (), this . $s = a . getSeconds (), this . $ms = a . getMilliseconds ()}, n . $utils = function (){ return t }, n . isValid = function (){ return this . $d . toString () !== j }, n . isSame = function ( a , b ){ var c = s ( a ); return this . startOf ( b ) <= c && c <= this . endOf ( b )}, n . isAfter = function ( a , b ){ return s ( a ) < this . startOf ( b )}, n . isBefore = function ( a , b ){ return this . endOf ( b ) < s ( a )}, n . $g = function ( a , b , c ){ return t . u ( a ) ? this [ b ] : this . set ( c , a )}, n . unix = function (){ return Math . floor ( this . valueOf () / 1e3 )}, n . valueOf = function (){ return this . $d . getTime ()}, n . startOf = function ( a , g ){ var j = this , k =!! t . u ( g ) || g , l = t . p ( a ), m = function ( a , b ){ var c = t . w ( j . $u ? Date . UTC ( j . $y , b , a ) : new Date ( j . $y , b , a ), j ); return k ? c : c . endOf ( "day" )}, n = function ( a , b ){ return t . w ( j . toDate ()[ a ]. apply ( j . toDate ( "s" ),( k ? [ 0 , 0 , 0 , 0 ] : [ 23 , 59 , 59 , 999 ]). slice ( b )), j )}, o = this . $W , p = this . $M , q = this . $D , r = "set" + ( this . $u ? "UTC" : "" ); switch ( l ){ case h : return k ? m ( 1 , 0 ) : m ( 31 , 11 ); case f : return k ? m ( 1 , p ) : m ( 0 , p + 1 ); case e : var s = this . $locale (). weekStart || 0 , u = ( o < s ? o + 7 : o ) - s ; return m ( k ? q - u : q + ( 6 - u ), p ); case "day" : case i : return n ( r + "Hours" , 0 ); case d : return n ( r + "Minutes" , 1 ); case c : return n ( r + "Seconds" , 2 ); case b : return n ( r + "Milliseconds" , 3 ); default : return this . clone ()}}, n . endOf = function ( a ){ return this . startOf ( a , ! 1 )}, n . $set = function ( e , g ){ var j , k = t . p ( e ), l = "set" + ( this . $u ? "UTC" : "" ), m = (( j = {}). day = l + "Date" , j [ i ] = l + "Date" , j [ f ] = l + "Month" , j [ h ] = l + "FullYear" , j [ d ] = l + "Hours" , j [ c ] = l + "Minutes" , j [ b ] = l + "Seconds" , j [ a ] = l + "Milliseconds" , j )[ k ], n = "day" === k ? this . $D + ( g - this . $W ) : g ; if ( k === f || k === h ){ var o = this . clone (). set ( i , 1 ); o . $d [ m ]( n ), o . init (), this . $d = o . set ( i , Math . min ( this . $D , o . daysInMonth ())). $d } else m && this . $d [ m ]( n ); return this . init (), this }, n . set = function ( a , b ){ return this . clone (). $set ( a , b )}, n . get = function ( a ){ return this [ t . p ( a )]()}, n . add = function ( a , g ){ var i , j = this ; a = Number ( a ); var k = t . p ( g ), l = function ( b ){ var c = s ( j ); return t . w ( c . date ( c . date () + Math . round ( b * a )), j )}; if ( k === f ) return this . set ( f , this . $M + a ); if ( k === h ) return this . set ( h , this . $y + a ); if ( "day" === k ) return l ( 1 ); if ( k === e ) return l ( 7 ); var m = (( i = {})[ c ] = 6e4 , i [ d ] = 36e5 , i [ b ] = 1e3 , i )[ k ] || 1 , n = this . $d . getTime () + a * m ; return t . w ( n , this )}, n . subtract = function ( a , b ){ return this . add ( - 1 * a , b )}, n . format = function ( a ){ var b = this , c = this . $locale (); if ( ! this . isValid ()) return c . invalidDate || j ; var d = a || "YYYY-MM-DDTHH:mm:ssZ" , e = t . z ( this ), f = this . $H , g = this . $m , h = this . $M , i = c . weekdays , k = c . months , m = c . meridiem , n = function ( a , c , e , f ){ return a && ( a [ c ] || a ( b , d )) || e [ c ]. slice ( 0 , f )}, o = function ( a ){ return t . s ( f % 12 || 12 , a , "0" )}, p = m || function ( a , b , c ){ var d = a < 12 ? "AM" : "PM" ; return c ? d . toLowerCase () : d }; return d . replace ( l , function ( a , d ){ return d || function ( a ){ switch ( a ){ case "YY" : return String ( b . $y ). slice ( - 2 ); case "YYYY" : return t . s ( b . $y , 4 , "0" ); case "M" : return h + 1 ; case "MM" : return t . s ( h + 1 , 2 , "0" ); case "MMM" : return n ( c . monthsShort , h , k , 3 ); case "MMMM" : return n ( k , h ); case "D" : return b . $D ; case "DD" : return t . s ( b . $D , 2 , "0" ); case "d" : return String ( b . $W ); case "dd" : return n ( c . weekdaysMin , b . $W , i , 2 ); case "ddd" : return n ( c . weekdaysShort , b . $W , i , 3 ); case "dddd" : return i [ b . $W ]; case "H" : return String ( f ); case "HH" : return t . s ( f , 2 , "0" ); case "h" : return o ( 1 ); case "hh" : return o ( 2 ); case "a" : return p ( f , g , ! 0 ); case "A" : return p ( f , g , ! 1 ); case "m" : return String ( g ); case "mm" : return t . s ( g , 2 , "0" ); case "s" : return String ( b . $s ); case "ss" : return t . s ( b . $s , 2 , "0" ); case "SSS" : return t . s ( b . $ms , 3 , "0" ); case "Z" : return e } return null }( a ) || e . replace ( ":" , "" )})}, n . utcOffset = function (){ return - ( 15 * Math . round ( this . $d . getTimezoneOffset () / 15 ))}, n . diff = function ( a , i , j ){ var k , l = this , m = t . p ( i ), n = s ( a ), o = ( n . utcOffset () - this . utcOffset ()) * 6e4 , p = this - n , q = function (){ return t . m ( l , n )}; switch ( m ){ case h : k = q () / 12 ; break ; case f : k = q (); break ; case g : k = q () / 3 ; break ; case e : k = ( p - o ) / 6048e5 ; break ; case "day" : k = ( p - o ) / 864e5 ; break ; case d : k = p / 36e5 ; break ; case c : k = p / 6e4 ; break ; case b : k = p / 1e3 ; break ; default : k = p } return j ? k : t . a ( k )}, n . daysInMonth = function (){ return this . endOf ( f ). $D }, n . $locale = function (){ return o [ this . $L ]}, n . locale = function ( a , b ){ if ( ! a ) return this . $L ; var c = this . clone (), d = r ( a , b , ! 0 ); return d && ( c . $L = d ), c }, n . clone = function (){ return t . w ( this . $d , this )}, n . toDate = function (){ return new Date ( this . valueOf ())}, n . toJSON = function (){ return this . isValid () ? this . toISOString () : null }, n . toISOString = function (){ return this . $d . toISOString ()}, n . toString = function (){ return this . $d . toUTCString ()}, m }(), v = u . prototype ; return s . prototype = v ,[[ "$ms" , a ],[ "$s" , b ],[ "$m" , c ],[ "$H" , d ],[ "$W" , "day" ],[ "$M" , f ],[ "$y" , h ],[ "$D" , i ]]. forEach ( function ( a ){ v [ a [ 1 ]] = function ( b ){ return this . $g ( b , a [ 0 ], a [ 1 ])}}), s . extend = function ( a , b ){ return a . $i || ( a ( b , u , s ), a . $i =! 0 ), s }, s . locale = r , s . isDayjs = q , s . unix = function ( a ){ return s ( 1e3 * a )}, s . en = o [ n ], s . Ls = o , s . p = {}, s }()}, 8318 ,( a , b , c )=>{ let d = a . r ( 51772 ); function e ( a ){ for ( a = a . replace ( /[\x00-\x20]+/g , "" );;){ let b = a . indexOf ( "<!--" ); if ( - 1 === b ) break ; let c = a . indexOf ( "-->" , b + 4 ); if ( - 1 === c ) break ; a = a . substring ( 0 , b ) + a . substring ( c + 3 )} return a } function f ( a , b ){ let c = ( b = b || {}). allowedSchemes || [ "http" , "https" , "ftp" , "mailto" , "tel" , "sms" ], d =! 1 !== b . allowProtocolRelative ; if ( "string" != typeof a ) return ! 1 ; let f = ( a = e ( a )). match ( /^([a-zA-Z][a-zA-Z0-9.\-+]*):/ ); if ( ! f ) return !! a . match ( /^[/\\]{2}/ ) &&! d ; let g = f [ 1 ]. toLowerCase (); return - 1 === c . indexOf ( g )} b . exports = function ( a ){ let b = {}; return b . options = a || {}, b . filterTag = b . options . filterTag || function ( a ){ return ( a = a . trim ()). toLowerCase ()}, b . string = function ( a , b ){ return "string" != typeof a && ( "number" == typeof a || "boolean" == typeof a ? a += "" : a = "" ), a = a . trim (), void 0 !== b && "" === a && ( a = b ), a }, b . strings = function ( a ){ return Array . isArray ( a ) ? a . map ( function ( a ){ return b . string ( a )}) : []}, b . integer = function ( a , b , c , d ){ if ( void 0 === b && ( b = 0 ), "number" == typeof a ) a = Math . floor ( a ); else try { a = parseInt ( a , 10 ), isNaN ( a ) && ( a = b )} catch ( c ){ a = b } return "number" == typeof c && a < c && ( a = c ), "number" == typeof d && a > d && ( a = d ), a }, b . padInteger = function ( a , b ){ let c = a + "" ; for (; c . length < b ;) c = "0" + c ; return c }, b . float = function ( a , b , c , d ){ if ( void 0 === b && ( b = 0 ), "number" != typeof a ) try { a = parseFloat ( a , 10 ), isNaN ( a ) && ( a = b )} catch ( c ){ a = b } return "number" == typeof c && a < c && ( a = c ), "number" == typeof d && a > d && ( a = d ), a }, b . naughtyHref = f , b . url = function ( a , c , d ){ var g ; return ( a = b . string ( a , c )) === c ? a : f ( a = e ( a )) || null === ( a = ( g = a ). match ( /^(((https?|ftp):\/\/)|((mailto|tel|sms):)|#|([^/.]+)?\/|[^/.]+$)/ ) ? g : g . match ( /^[^/.]+\.[^/.]+/ ) ? ( d ? "https://" : "http://" ) + g : null ) ? c : a }, b . select = function ( a , c , d ){ let e ; return ( a = b . string ( a ), c && c . length ) ? "object" == typeof c [ 0 ] ? null != ( e = c . find ( function ( b ){ return null !== b . value && void 0 !== b . value && b . value . toString () === a })) ? e . value : d : void 0 !== ( e = c . find ( function ( b ){ return null != b && b . toString () === a })) ? e : d : d }, b . boolean = function ( a , c ){ return ! 0 === a ||! 1 !== a && (( a = b . string ( a , c )) === c ? void 0 !== a && a : "" !== ( a = a . toLowerCase (). charAt ( 0 )) && "n" !== a && "0" !== a && "f" !== a && ( "t" === a || "y" === a || "1" === a ))}, b . addBooleanFilterToCriteria = function ( a , c , d , e ){ void 0 === e && ( e = null ); let f = "object" == typeof a && null !== a ? a [ c ] : a ; f = void 0 === f ? e : f , null === ( f = b . booleanOrNull ( f )) || ( f ? d [ c ] =! 0 : d [ c ] = { $ne :! 0 })}, b . booleanOrNull = function ( a , c ){ return ! 0 === a ||! 1 === a || null === a ? a : ( a = b . string ( a , c )) === c ? void 0 === c ? null : a : "null" === a ? null : "" !== ( a = a . toLowerCase (). charAt ( 0 )) && "n" !== a && "0" !== a && "f" !== a && ( "t" === a || "y" === a || "1" === a || ( "a" === a ? null : c ))}, b . date = function ( a , c , e ){ let f ; function g (){ return void 0 === c && ( c = d (). format ( "YYYY-MM-DD" )), c } if ( "string" == typeof a ){ if ( a . match ( /\// )){ if ( 2 === ( f = a . split ( "/" )). length ) return ( e || new Date ). getFullYear () + "-" + b . padInteger ( f [ 0 ], 2 ) + "-" + b . padInteger ( f [ 1 ], 2 ); if ( 3 !== f . length ) return g (); if ( f [ 2 ] < 100 ){ let a = e || new Date , b = a . getFullYear () % 100 , c = a . getFullYear () - b , d = parseInt ( f [ 2 ]) + c ; d - a . getFullYear () > 50 && ( d -= 100 ), f [ 2 ] = d } return b . padInteger ( f [ 2 ], 4 ) + "-" + b . padInteger ( f [ 0 ], 2 ) + "-" + b . padInteger ( f [ 1 ], 2 )} else if ( a . match ( /-/ )) return 2 === ( f = a . split ( "-" )). length ? ( e || new Date ). getFullYear () + "-" + b . padInteger ( f [ 0 ], 2 ) + "-" + b . padInteger ( f [ 1 ], 2 ) : 3 === f . length ? b . padInteger ( f [ 0 ], 4 ) + "-" + b . padInteger ( f [ 1 ], 2 ) + "-" + b . padInteger ( f [ 2 ], 2 ) : g ()} try { if ( null === a || ( a = e || new Date ( a ), isNaN ( a . getTime ()))) return g (); return a . getFullYear () + "-" + b . padInteger ( a . getMonth () + 1 , 2 ) + "-" + b . padInteger ( a . getDate (), 2 )} catch ( a ){ return g ()}}, b . formatDate = function ( a ){ return d ( a ). format ( "YYYY-MM-DD" )}, b . time = function ( a , c ){ let e = ( a = ( a = b . string ( a ). toLowerCase ()). trim ()). match ( /^(\d+)([:|.](\d+))?([:|.](\d+))?\s*(am|pm|AM|PM|a|p|A|M)?$/ ); if ( e ){ let a = parseInt ( e [ 1 ], 10 ), c = void 0 !== e [ 3 ] ? parseInt ( e [ 3 ], 10 ) : 0 , d = void 0 !== e [ 5 ] ? parseInt ( e [ 5 ], 10 ) : 0 , f = e [ 6 ] ? e [ 6 ]. toLowerCase () : e [ 6 ]; return f = f && f . charAt ( 0 ), 12 === a && "a" === f ? a -= 12 : 12 === a && "p" === f || "p" === f && ( a += 12 ),( 24 === a || "24" === a ) && ( a = 0 ), b . padInteger ( a , 2 ) + ":" + b . padInteger ( c , 2 ) + ":" + b . padInteger ( d , 2 )} return void 0 !== c ? c : d (). format ( "HH:mm" )}, b . formatTime = function ( a ){ return d ( a ). format ( "HH:mm:ss" )}, b . tags = function ( a , c ){ return ( "string" == typeof a && ( a = a . split ( /,\s*/ )), Array . isArray ( a )) ? a . map ( a => b . string ( a )). map ( c || b . filterTag ). filter ( a => a . length > 0 ) : []}, b . idRegExp = b . options . idRegExp || /^[A-Za-z0-9_]+$/ , b . id = function ( a , c ){ let d = b . string ( a , c ); return d === c || d . match ( b . idRegExp ) ? d : c }, b . ids = function ( a ){ return Array . isArray ( a ) ? a . filter ( function ( a ){ return void 0 !== b . id ( a )}) : []}, b }, b . exports . naughtyHref = f }, 38842 ,( a , b , c )=>{ let d = a . r ( 98061 ), e = a . r ( 25061 ),{ isPlainObject : f } = a . r ( 43569 ), g = a . r ( 7054 ), h = a . r ( 73653 ),{ parse : i } = a . r ( 47082 ),{ naughtyHref : j } = a . r ( 8318 ), k = [ "img" , "audio" , "video" , "picture" , "svg" , "object" , "map" , "iframe" , "embed" ], l = [ "script" , "style" ]; function m ( a , b ){ a && Object . keys ( a ). forEach ( function ( c ){ b ( a [ c ], c )})} function n ( a , b ){ return ({}). hasOwnProperty . call ( a , b )} function o ( a , b ){ let c = []; return m ( a , function ( a ){ b ( a ) && c . push ( a )}), c } b . exports = q ; let p = /^[^\0\t\n\f\r /<=>]+$/ ; function q ( a , b , c ){ let s , t , u , v , w , x , y , z , A ; if ( null == a ) return "" ; "number" == typeof a && ( a = a . toString ()); let B = "" , C = "" ; function D ( a , b ){ let c = this ; this . tag = a , this . attribs = b || {}, this . tagPosition = B . length , this . text = "" , this . openingTagLength = 0 , this . mediaChildren = [], this . updateParentNodeText = function (){ if ( w . length ){ let a = w [ w . length - 1 ]; a . text += c . text }}, this . updateParentNodeMediaChildren = function (){ w . length && k . includes ( this . tag ) && w [ w . length - 1 ]. mediaChildren . push ( this . tag )}}( b = Object . assign ({}, q . defaults , b )). parser = Object . assign ({}, r , b . parser ); let E = function ( a ){ return ! 1 === b . allowedTags || ( b . allowedTags || []). indexOf ( a ) >- 1 }; l . forEach ( function ( a ){ E ( a ) &&! b . allowVulnerableTags && console . warn ( `
⚠️ Your \`allowedTags\` option includes, \` ${ a } \`, which is inherently
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
Or, to disable this warning, add the \`allowVulnerableTags\` option
and ensure you are accounting for this risk.
` )}); let F = b . nonTextTags || [ "script" , "style" , "textarea" , "option" , "xmp" ]; b . allowedAttributes && ( s = {}, t = {}, m ( b . allowedAttributes , function ( a , b ){ s [ b ] = []; let c = []; a . forEach ( function ( a ){ "string" == typeof a && a . indexOf ( "*" ) >= 0 ? c . push ( e ( a ). replace ( /\\\*/g , ".*" )) : s [ b ]. push ( a )}), c . length && ( t [ b ] = RegExp ( "^(" + c . join ( "|" ) + ")$" ))})); let G = {}, H = {}, I = {}; m ( b . allowedClasses , function ( a , b ){ if ( s && ( n ( s , b ) || ( s [ b ] = []), s [ b ]. push ( "class" )), G [ b ] = a , Array . isArray ( a )){ let c = []; G [ b ] = [], I [ b ] = [], a . forEach ( function ( a ){ "string" == typeof a && a . indexOf ( "*" ) >= 0 ? c . push ( e ( a ). replace ( /\\\*/g , ".*" )) : a instanceof RegExp ? I [ b ]. push ( a ) : G [ b ]. push ( a )}), c . length && ( H [ b ] = RegExp ( "^(" + c . join ( "|" ) + ")$" ))}}); let J = {}; m ( b . transformTags , function ( a , b ){ let c ; "function" == typeof a ? c = a : "string" == typeof a && ( c = q . simpleTransform ( a )), "*" === b ? u = c : J [ b ] = c }); let K =! 1 ; M (); let L = new d . Parser ({ onopentag : function ( a , c ){ let d ; if ( b . onOpenTag && b . onOpenTag ( a , c ), b . enforceHtmlBoundary && "html" === a && M (), z ) return void A ++ ; let e = new D ( a , c ); w . push ( e ); let j =! 1 , k =!! e . text ; if ( n ( J , a ) && ( e . attribs = c = ( d = J [ a ]( a , c )). attribs , void 0 !== d . text && ( e . innerText = d . text ), a !== d . tagName && ( e . name = a = d . tagName , y [ v ] = d . tagName )), u && ( e . attribs = c = ( d = u ( a , c )). attribs , a !== d . tagName && ( e . name = a = d . tagName , y [ v ] = d . tagName )),( ! E ( a ) || "recursiveEscape" === b . disallowedTagsMode &&! function ( a ){ for ( let b in a ) if ( n ( a , b )) return ! 1 ; return ! 0 }( x ) || null != b . nestingLimit && v >= b . nestingLimit ) && ( j =! 0 , x [ v ] =! 0 ,( "discard" === b . disallowedTagsMode || "completelyDiscard" === b . disallowedTagsMode ) &&- 1 !== F . indexOf ( a ) && ( z =! 0 , A = 1 )), v ++ , j ){ if ( "discard" === b . disallowedTagsMode || "completelyDiscard" === b . disallowedTagsMode ){ if ( e . innerText &&! k ){ let c = N ( e . innerText ); b . textFilter ? B += b . textFilter ( c , a ) : B += c , K =! 0 } return } C = B , B = "" } if ( B += "<" + a , "script" === a && ( b . allowedScriptHostnames || b . allowedScriptDomains ) && ( e . innerText = "" ), j && ( "escape" === b . disallowedTagsMode || "recursiveEscape" === b . disallowedTagsMode ) && b . preserveEscapedAttributes ? m ( c , function ( a , b ){ B += " " + b + '="' + N ( a || "" , ! 0 ) + '"' }) : ( ! s || n ( s , a ) || s [ "*" ]) && m ( c , function ( c , d ){ if ( ! p . test ( d ) || "" === c &&! b . allowedEmptyAttributes . includes ( d ) && ( b . nonBooleanAttributes . includes ( d ) || b . nonBooleanAttributes . includes ( "*" ))) return void delete e . attribs [ d ]; let j =! 1 ; if ( ! s || n ( s , a ) &&- 1 !== s [ a ]. indexOf ( d ) || s [ "*" ] &&- 1 !== s [ "*" ]. indexOf ( d ) || n ( t , a ) && t [ a ]. test ( d ) || t [ "*" ] && t [ "*" ]. test ( d )) j =! 0 ; else if ( s && s [ a ]){ for ( let b of s [ a ]) if ( f ( b ) && b . name && b . name === d ){ j =! 0 ; let a = "" ; if ( ! 0 === b . multiple ) for ( let d of c . split ( " " )) - 1 !== b . values . indexOf ( d ) && ( "" === a ? a = d : a += " " + d ); else b . values . indexOf ( c ) >= 0 && ( a = c ); c = a }} if ( j ){ if ( - 1 !== b . allowedSchemesAppliedToAttributes . indexOf ( d ) && O ( a , c )) return void delete e . attribs [ d ]; if ( "script" === a && "src" === d ){ let a =! 0 ; try { let d = P ( c ); if ( b . allowedScriptHostnames || b . allowedScriptDomains ){ let c = ( b . allowedScriptHostnames || []). find ( function ( a ){ return a === d . url . hostname }), e = ( b . allowedScriptDomains || []). find ( function ( a ){ return d . url . hostname === a || d . url . hostname . endsWith ( `. ${ a } ` )}); a = c || e }} catch ( b ){ a =! 1 } if ( ! a ) return void delete e . attribs [ d ]} if ( "iframe" === a && "src" === d ){ let a =! 0 ; try { let d = P ( c ); if ( d . isRelativeUrl ) a = n ( b , "allowIframeRelativeUrls" ) ? b . allowIframeRelativeUrls :! b . allowedIframeHostnames &&! b . allowedIframeDomains ; else if ( b . allowedIframeHostnames || b . allowedIframeDomains ){ let c = ( b . allowedIframeHostnames || []). find ( function ( a ){ return a === d . url . hostname }), e = ( b . allowedIframeDomains || []). find ( function ( a ){ return d . url . hostname === a || d . url . hostname . endsWith ( `. ${ a } ` )}); a = c || e }} catch ( b ){ a =! 1 } if ( ! a ) return void delete e . attribs [ d ]} if ( "srcset" === d || "imagesrcset" === d ) try { let a = h ( c ); if ( a . forEach ( function ( a ){ O ( d , a . url ) && ( a . evil =! 0 )}), ! ( a = o ( a , function ( a ){ return ! a . evil })). length ) return void delete e . attribs [ d ]; c = o ( a , function ( a ){ return ! a . evil }). map ( function ( a ){ if ( ! a . url ) throw Error ( "URL missing" ); return a . url + ( a . w ? ` ${ a . w } w` : "" ) + ( a . h ? ` ${ a . h } h` : "" ) + ( a . d ? ` ${ a . d } x` : "" )}). join ( ", " ), e . attribs [ d ] = c } catch ( a ){ delete e . attribs [ d ]; return } if ( "class" === d ){ let b = G [ a ], f = G [ "*" ], h = H [ a ], i = I [ a ], j = I [ "*" ], k = [ h , H [ "*" ]]. concat ( i , j ). filter ( function ( a ){ return a }); if ( ! ( c = b && f ? Q ( c , g ( b , f ), k ) : Q ( c , b || f , k )). length ) return void delete e . attribs [ d ]} if ( "style" === d ){ if ( b . parseStyleAttributes ) try { let f = i ( a + " {" + c + "}" ,{ map :! 1 }); if ( c = ( function ( a , b ){ var c ; let d ; if ( ! b ) return a ; let e = a . nodes [ 0 ]; return ( d = b [ e . selector ] && b [ "*" ] ? g ( b [ e . selector ], b [ "*" ]) : b [ e . selector ] || b [ "*" ]) && ( a . nodes [ 0 ]. nodes = e . nodes . reduce (( c = d , function ( a , b ){ return n ( c , b . prop ) && c [ b . prop ]. some ( function ( a ){ return a . test ( b . value )}) && a . push ( b ), a }),[])), a })( f , b . allowedStyles ). nodes [ 0 ]. nodes . reduce ( function ( a , b ){ return a . push ( ` ${ b . prop } : ${ b . value }${ b . important ? " !important" : "" } ` ), a },[]). join ( ";" ), 0 === c . length ) return void delete e . attribs [ d ]} catch ( a ){ delete e . attribs [ d ]; return } else if ( b . allowedStyles ) throw Error ( "allowedStyles option cannot be used together with parseStyleAttributes: false." )} B += " " + d , c && c . length ? B += '="' + N ( c , ! 0 ) + '"' : b . allowedEmptyAttributes . includes ( d ) && ( B += '=""' )} else delete e . attribs [ d ]}), - 1 !== b . selfClosing . indexOf ( a )) B += " />" ; else if ( B += ">" , e . innerText &&! k ){ let c = N ( e . innerText ); b . textFilter ? B += b . textFilter ( c , a ) : B += c , K =! 0 } j && ( B = C + N ( B ), C = "" ), e . openingTagLength = B . length - e . tagPosition }, ontext : function ( a ){ let c ; if ( z ) return ; let d = w [ w . length - 1 ]; if ( d && ( c = d . tag , a = void 0 !== d . innerText ? d . innerText : a ), "completelyDiscard" !== b . disallowedTagsMode || E ( c )){ if ( c && E ( c ) && ( "discard" === b . disallowedTagsMode || "completelyDiscard" === b . disallowedTagsMode ) && ( "script" === c || "style" === c )) B += a ; else if ( c && E ( c ) && ( "discard" === b . disallowedTagsMode || "completelyDiscard" === b . disallowedTagsMode ) && ( "textarea" === c || "xmp" === c )) "xmp" === c ? B += a . replace ( /</g , "<" ). replace ( />/g , ">" ) : B += N ( a , ! 1 ); else if ( ! K ){ let d = N ( a , ! 1 ); b . textFilter ? B += b . textFilter ( d , c ) : B += d }} else a = "" ; if ( w . length ){ let b = w [ w . length - 1 ]; b . text += a }}, onclosetag : function ( a , c ){ if ( b . onCloseTag && b . onCloseTag ( a , c ), z ){ if ( -- A ) return ; z =! 1 } let d = w . pop (); if ( ! d ) return ; if ( d . tag !== a ) return void w . push ( d ); z =!! b . enforceHtmlBoundary && "html" === a ; let e = x [ -- v ]; if ( e ){ if ( delete x [ v ], "discard" === b . disallowedTagsMode || "completelyDiscard" === b . disallowedTagsMode ) return void d . updateParentNodeText (); C = B , B = "" } if ( y [ v ] && ( a = y [ v ], delete y [ v ]), b . exclusiveFilter ){ let a = b . exclusiveFilter ( d ); if ( "excludeTag" === a ){ e && ( B = C , C = "" ), B = B . substring ( 0 , d . tagPosition ) + B . substring ( d . tagPosition + d . openingTagLength ); return } if ( a ){ B = B . substring ( 0 , d . tagPosition ); return }} if ( d . updateParentNodeMediaChildren (), d . updateParentNodeText (), - 1 !== b . selfClosing . indexOf ( a ) || c &&! E ( a ) && [ "escape" , "recursiveEscape" ]. indexOf ( b . disallowedTagsMode ) >= 0 ){ e && ( B = C , C = "" ); return } B += "</" + a + ">" , e && ( B = C + N ( B ), C = "" ), K =! 1 }}, b . parser ); if ( L . write ( a ), L . end (), "escape" === b . disallowedTagsMode || "recursiveEscape" === b . disallowedTagsMode ){ let b = L . endIndex ; if ( null != b && b >= 0 && b < a . length ){ let c = a . substring ( b ); B += N ( c )} else ( null == b || b < 0 ) && a . length > 0 && "" === B && ( B = N ( a ))} return B ; function M (){ B = "" , v = 0 , w = [], x = {}, y = {}, z =! 1 , A = 0 } function N ( a , c ){ return "string" != typeof a && ( a += "" ), b . parser . decodeEntities && ( a = a . replace ( /&/g , "&" ). replace ( /</g , "<" ). replace ( />/g , ">" ), c && ( a = a . replace ( /"/g , """ ))), a = a . replace ( /&(?![a-zA-Z0-9#]{1,20};)/g , "&" ). replace ( /</g , "<" ). replace ( />/g , ">" ), c && ( a = a . replace ( /"/g , """ )), a } function O ( a , c ){ return j ( c ,{ allowedSchemes : n ( b . allowedSchemesByTag , a ) ? b . allowedSchemesByTag [ a ] : b . allowedSchemes || [], allowProtocolRelative : b . allowProtocolRelative })} function P ( a ){ if (( a = a . replace ( /^(\w+:)?\s*[\\/]\s*[\\/]/ , "$1//" )). startsWith ( "relative:" )) throw Error ( "relative: exploit attempt" ); let b = "relative://relative-site" ; for ( let a = 0 ; a < 100 ; a ++ ) b += `/ ${ a } ` ; let c = new URL ( a , b ); return { isRelativeUrl : c && "relative-site" === c . hostname && "relative:" === c . protocol , url : c }} function Q ( a , b , c ){ return b ? ( a = a . split ( /\s+/ )). filter ( function ( a ){ return - 1 !== b . indexOf ( a ) || c . some ( function ( b ){ return b . test ( a )})}). join ( " " ) : a }} let r = { decodeEntities :! 0 }; q . defaults = { allowedTags : [ "address" , "article" , "aside" , "footer" , "header" , "h1" , "h2" , "h3" , "h4" , "h5" , "h6" , "hgroup" , "main" , "nav" , "section" , "blockquote" , "dd" , "div" , "dl" , "dt" , "figcaption" , "figure" , "hr" , "li" , "menu" , "ol" , "p" , "pre" , "ul" , "a" , "abbr" , "b" , "bdi" , "bdo" , "br" , "cite" , "code" , "data" , "dfn" , "em" , "i" , "kbd" , "mark" , "q" , "rb" , "rp" , "rt" , "rtc" , "ruby" , "s" , "samp" , "small" , "span" , "strong" , "sub" , "sup" , "time" , "u" , "var" , "wbr" , "caption" , "col" , "colgroup" , "table" , "tbody" , "td" , "tfoot" , "th" , "thead" , "tr" ], nonBooleanAttributes : [ "abbr" , "accept" , "accept-charset" , "accesskey" , "action" , "allow" , "alt" , "as" , "autocapitalize" , "autocomplete" , "blocking" , "charset" , "cite" , "class" , "color" , "cols" , "colspan" , "content" , "contenteditable" , "coords" , "crossorigin" , "data" , "datetime" , "decoding" , "dir" , "dirname" , "download" , "draggable" , "enctype" , "enterkeyhint" , "fetchpriority" , "for" , "form" , "formaction" , "formenctype" , "formmethod" , "formtarget" , "headers" , "height" , "hidden" , "high" , "href" , "hreflang" , "http-equiv" , "id" , "imagesizes" , "imagesrcset" , "inputmode" , "integrity" , "is" , "itemid" , "itemprop" , "itemref" , "itemtype" , "kind" , "label" , "lang" , "list" , "loading" , "low" , "max" , "maxlength" , "media" , "method" , "min" , "minlength" , "name" , "nonce" , "optimum" , "pattern" , "ping" , "placeholder" , "popover" , "popovertarget" , "popovertargetaction" , "poster" , "preload" , "referrerpolicy" , "rel" , "rows" , "rowspan" , "sandbox" , "scope" , "shape" , "size" , "sizes" , "slot" , "span" , "spellcheck" , "src" , "srcdoc" , "srclang" , "srcset" , "start" , "step" , "style" , "tabindex" , "target" , "title" , "translate" , "type" , "usemap" , "value" , "width" , "wrap" , "onauxclick" , "onafterprint" , "onbeforematch" , "onbeforeprint" , "onbeforeunload" , "onbeforetoggle" , "onblur" , "oncancel" , "oncanplay" , "oncanplaythrough" , "onchange" , "onclick" , "onclose" , "oncontextlost" , "oncontextmenu" , "oncontextrestored" , "oncopy" , "oncuechange" , "oncut" , "ondblclick" , "ondrag" , "ondragend" , "ondragenter" , "ondragleave" , "ondragover" , "ondragstart" , "ondrop" , "ondurationchange" , "onemptied" , "onended" , "onerror" , "onfocus" , "onformdata" , "onhashchange" , "oninput" , "oninvalid" , "onkeydown" , "onkeypress" , "onkeyup" , "onlanguagechange" , "onload" , "onloadeddata" , "onloadedmetadata" , "onloadstart" , "onmessage" , "onmessageerror" , "onmousedown" , "onmouseenter" , "onmouseleave" , "onmousemove" , "onmouseout" , "onmouseover" , "onmouseup" , "onoffline" , "ononline" , "onpagehide" , "onpageshow" , "onpaste" , "onpause" , "onplay" , "onplaying" , "onpopstate" , "onprogress" , "onratechange" , "onreset" , "onresize" , "onrejectionhandled" , "onscroll" , "onscrollend" , "onsecuritypolicyviolation" , "onseeked" , "onseeking" , "onselect" , "onslotchange" , "onstalled" , "onstorage" , "onsubmit" , "onsuspend" , "ontimeupdate" , "ontoggle" , "onunhandledrejection" , "onunload" , "onvolumechange" , "onwaiting" , "onwheel" ], disallowedTagsMode : "discard" , allowedAttributes : { a : [ "href" , "name" , "target" ], img : [ "src" , "srcset" , "alt" , "title" , "width" , "height" , "loading" ]}, allowedEmptyAttributes : [ "alt" ], selfClosing : [ "img" , "br" , "hr" , "area" , "base" , "basefont" , "input" , "link" , "meta" , "col" ], allowedSchemes : [ "http" , "https" , "ftp" , "mailto" , "tel" ], allowedSchemesByTag : {}, allowedSchemesAppliedToAttributes : [ "href" , "src" , "cite" , "action" , "formaction" , "data" , "xlink:href" , "poster" , "background" , "ping" , "longdesc" , "usemap" , "codebase" , "classid" , "archive" , "profile" , "manifest" , "itemid" , "dynsrc" , "lowsrc" ], allowProtocolRelative :! 0 , enforceHtmlBoundary :! 1 , parseStyleAttributes :! 0 , preserveEscapedAttributes :! 1 }, q . simpleTransform = function ( a , b , c ){ return c = void 0 === c || c , b = b || {}, function ( d , e ){ let f ; if ( c ) for ( f in b ) e [ f ] = b [ f ]; else e = b ; return { tagName : a , attribs : e }}}}];
//# sourceMappingURL=%5Broot-of-the-server%5D__03xssc3._.js.map