1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5745],{133:(e,t,r)=>{"use strict";r.d(t,{A:()=>u,ThemeContextProvider:()=>d,j:()=>o});var a=r(95155),n=r(83109),s=r(12115);let l=s.createContext(null);function o(){let e=s.useContext(l),t=e?.themeCtx??"system",[r,a]=s.useState("dark");return s.useEffect(()=>{if((0,n.hasCookie)("scheme-preference")){let e=(0,n.getCookie)("scheme-preference");if("dark"===e)return void a("dark");if("light"===e)return void a("light")}if("dark"===t)return void a("dark");if("light"===t)return void a("light");let e=window.matchMedia("(prefers-color-scheme: dark)");a(e.matches?"dark":"light");let r=()=>a(e.matches?"dark":"light");return e.addEventListener("change",r),()=>e.removeEventListener("change",r)},[t]),r}let i={maxAge:31536e3,path:"/",sameSite:"lax"},d=e=>{let[t,r]=s.useState(!0),[o,d]=s.useState("system"),u=s.useCallback(e=>{d(e),"dark"===e?(r(!0),(0,n.setCookie)("scheme-preference","dark",i)):"light"===e?(r(!1),(0,n.setCookie)("scheme-preference","light",i)):(r(window.matchMedia("(prefers-color-scheme: dark)").matches),(0,n.deleteCookie)("scheme-preference"))},[]);return s.useEffect(()=>{document.documentElement.setAttribute("data-theme",t?"dark":"light")},[t]),s.useEffect(()=>{let e=window.matchMedia("(prefers-color-scheme: dark)").matches;if((0,n.hasCookie)("scheme-preference")){let e=(0,n.getCookie)("scheme-preference");"dark"===e?(r(!0),d("dark")):"light"===e?(r(!1),d("light")):d("system")}else window.matchMedia("(prefers-color-scheme: dark)")&&e?r(!0):window.matchMedia("(prefers-color-scheme: dark)")&&!e?r(!1):r(!0)},[]),(0,a.jsx)(l.Provider,{value:{isDarkCtx:t,toggleModeHandlerCtx:()=>{let e=!t;r(e),d(e?"dark":"light"),(0,n.setCookie)("scheme-preference",e?"dark":"light",i)},themeCtx:o,themeHandlerCtx:u},children:e.children})},u=l},247:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>x,ModeContextProvider:()=>C});var a=r(95155),n=r(12115),s=r(95555),l=r(92843),o=r(34519),i=r(3701),d=r(29988);let u=n.createContext(null),c={establish_conn:"Establishing connection",preparing_images:"Preparing images",preparing_audio:"Preparing audio",rendering_video:"Rendering video",preparing_download:"Preparing download",downloading_video:"Downloading video",on_waiting_queue:"Waiting in queue",failed:"Failed to download, please try again later"};function C(e){let[t,r]=n.useState(!1),[C,x]=n.useState(!0),[g,h]=n.useState(0),[f,p]=n.useState(0),[m,S]=n.useState(!1),y=(0,s.md)(l.B),w=(0,s.Xr)(l.B),[v,D]=n.useState(1),[k,b]=n.useState(0),[H,I]=n.useState(0),[O,E]=n.useState(1),[P,j]=n.useState("IDLE"),[A,L]=n.useState(""),[_,N]=n.useState("IDLE"),[F,R]=n.useState(!1),[T,B]=n.useState(!1),[z,M]=n.useState(!1),[U,W]=n.useState(null),[Q,$]=n.useState(null),[J,q]=n.useState(null),[X,K]=n.useState({}),[G,V]=n.useState(null),[Y,Z]=n.useState(null),[ee,et]=n.useState({}),[er,ea]=n.useState(null),[en,es]=n.useState(null);n.useEffect(()=>{console.log("userCollectionData: ",en)},[en]);let[el,eo]=n.useState({});n.useEffect(()=>{console.log("CollectionContentData: ",el)},[en]);let[ei,ed]=n.useState(null),[eu,ec]=n.useState(null),[eC,ex]=n.useState([]);n.useEffect(()=>{console.log("downloadIdQueue: ",eC)},[eC]);let[eg,eh]=n.useState([]);n.useEffect(()=>{console.log("downloadedListctx: ",eg)},[eg]);let[ef,ep]=n.useState([]),[em,eS]=n.useState(!1),[ey,ew]=n.useState(null),[ev,eD]=n.useState(!1),[ek,eb]=n.useState(!1),[eH,eI]=n.useState(null),[eO,eE]=n.useState(null),[eP,ej]=n.useState(!1),[eA,eL]=n.useState(!1),[e_,eN]=n.useState(null),[eF,eR]=n.useState(null),[eT,eB]=n.useState(!1),[ez,eM]=n.useState(!1),[eU,eW]=n.useState(!1),[eQ,e$]=n.useState(""),[eJ,eq]=n.useState(!1),[eX,eK]=n.useState(!1),[eG,eV]=n.useState(null),[eY,eZ]=n.useState({eta:0,texts:[],displayedText:""}),[e0,e1]=n.useState([]),[e5,e9]=n.useState(!1),[e3,e2]=n.useState([]),[e8,e4]=n.useState([]),[e6,e7]=n.useState(0),[te,tt]=n.useState(!1),[tr,ta]=n.useState(!1),[tn,ts]=n.useState(c);n.useEffect(()=>{!tr&&eY.texts.length>0&&eZ(e=>({...e,displayedText:e.texts[e.texts.length-1]}))},[tr,eY.texts[eY.texts.length-1]]);let tl=e=>{"IDLE"===_&&(N(e),setTimeout(()=>{N("IDLE")},50))};return n.useEffect(()=>{let e=(0,o.getCookie)("ftprints");if(e){let t=JSON.parse(e).filter(e=>e!==y).concat(y??0);(0,o.setCookie)("ftprints",JSON.stringify(t),{maxAge:1209600,path:"/",sameSite:"lax"})}else(0,o.setCookie)("ftprints",JSON.stringify([y]),{maxAge:1209600,path:"/",sameSite:"lax"})},[y]),n.useEffect(()=>{let e=()=>{let e=window.innerWidth,t=window.innerHeight;p(e),h(t),e<=640&&e>370?(x(!0),r(!1)):e<=370?(r(!0),x(!0)):(x(!1),r(!1))};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[]),n.useEffect(()=>{"DOWNLOADED"===P?tl("DOWNLOADED"):"CANCEL"===P?tl("CANCELLED"):"FAILED"===P&&tl("FAILED")},[P]),n.useEffect(()=>{0===A.length&&(0,o.deleteCookie)("sessionCookie",{path:"/",maxAge:0x3b9ac9ff})},[A]),n.useEffect(()=>{eO&&!(0,o.hasCookie)("language-preference")&&eb(!0)},[eO]),(0,a.jsx)(u.Provider,{value:{isNarrowCtx:t,isMobileCtx:C,heightCtx:g,widthCtx:f,showFloatCtx:m,showFloatHandlerCtx:e=>{S(e)},downloadStatusCtx:P,downloadStatusHandlerCtx:e=>{j(e)},sizeCtx:v,loadedCtx:k,initTimeCtx:H,currentTimeCtx:O,setSizeHandlerCtx:e=>{D(e)}
1,setLoadedHandlerCtx:b,setInitHandlerCtx:e=>{I(e)},setCurrentHandlerCtx:e=>{E(e)},toastCtx:_,toastHandlerCtx:tl,linkInpCacheCtx:A,linkInpCacheHandlerCtx:L,onFindErrorCtx:F,findErrorHandlerCtx:R,onRetryCtx:T,onRetryHandlerCtx:B,resetCtx:()=>{D(1),b(0),I(0),E(1),j("IDLE"),L(""),N("IDLE"),R(!1),B(!1),W(null),q(null),K({}),V(null),Z(null),et({}),ea(null),es(null),eo({}),ed(null),(0,o.deleteCookie)("sessionCookie"),ep([]),ec(null),eh([]),e$(""),e7(0),eR(null),tt(!1)},progressResetCtx:()=>{D(1),b(0),I(0),E(1),ec(null)},directToQnaCtx:z,directToQnaHandlerCtx:e=>{M(e)},videoDataCtx:U,videoDataHandlerCtx:W,onDownloadIdCtx:eu,onDownloadIdHandlerCtx:e=>{ec(e)},downloadedListCtx:eg,downloadedListHandlerCtx:e=>{eh(t=>t.concat([e]))},downloadFailQueryCtx:ef,downloadFailQueryHandlerCtx:(e,t)=>{"ADD"===t&&ep(t=>Array.from(new Set(t.concat(e))))},installableHandlerCtx:ew,isInstallableCtx:ey,showInstallCardCtx:ev,showInstallCardHandlerCtx:eD,showSwitchLangCardCtx:ek,showSwitchLangCardHandlerCtx:eb,systemLocaleCtx:eH,systemLocaleHandlerCtx:eI,langPromptCtx:eO,langPromptHandlerCtx:eE,downloadIdQueueCtx:eC,downloadIdQueueHandlerCtx:()=>{eC.length>1?setTimeout(()=>{ex(e=>e.slice(1))},500):(ex([]),j("DOWNLOADED"))},addDownloadIdHandlerCtx:e=>{ex(t=>!Array.isArray(e)&&t.includes(e)?t:((0,d.qx)(()=>ej(!0)),t.concat(Array.isArray(e)?e:[e])))},isThrottlingCtx:em,showSharePromptCtx:eP,showSharePromptHandlerCtx:ej,interactedCtx:eA,interactedHandlerCtx:()=>{eA||eL(!0)},reservedDownloadLinkCtx:eQ,reserverdDownloadLinkHandlerCtx:e$,showReviewBarCtx:eJ,showReviewBarHandlerCtx:eq,showReplyBtnCtx:eX,showReplyBtnHandlerCtx:e=>{eK(e)},sessionIdCtx:eG,sessionIdHandlerCtx:eV,slideshowProgressDetailsCtx:eY,slideshowProgressDetailsHandlerCtx:eZ,resetSlideshowProgressDetailsCtx:()=>{eZ({eta:0,texts:[],displayedText:""})},isLockedSlideshowProgressDetailsCtx:tr,isLockedSlideshowProgressDetailsHandlerCtx:e=>{ta(e),setTimeout(()=>{ta(!1)},3e3)},slideshowProgressDetailsTextDictCtx:tn,slideshowProgressDetailsTextDictHandlerCtx:ts,resetDownloadedStateCtx:()=>{eh([]),ex([]),j("IDLE"),ec(null),ep([])},previewerDictsCtx:e0,handlePreviewerDictsUpdateCtx:e=>{if(0===e0.length||e0.some(t=>Array.isArray(e)?t.lang_id&&t.lang_id!==e[0].lang_id:t.lang_id&&t.lang_id!==e.lang_id))if(Array.isArray(e)){let t=[...i.Kz];e.forEach(e=>{(t=t.filter(t=>t.tag!==e.tag)).push(e)}),e1(t)}else{let t=[...i.Kz];(t=t.filter(t=>t.tag!==e.tag)).push(e),e1(t)}},getPreviewerDictCtx:(e,t)=>0===e0.length?i.Kz.find(r=>r.type===e&&r.tag===t):e0.find(r=>r.type===e&&r.tag===t),resetPreviewerDictsCtx:()=>{e1([])},isSessionDownloadedCtx:e5,handleIsSessionDownloadedCtx:e9,sessionUsedFeaturesCtx:e3,sessionUsedFeaturesHandlerCtx:e2,addSessionUsedFeatureCtx:e=>{e2(t=>[...t.filter(t=>t!==e),e])},resetSessionUsedFeaturesCtx:()=>{e2([])},searchResultsCtx:e8,addSearchResultCtx:e=>{e4(t=>[...t,e])},resetSearchResultsCtx:()=>{e4([])},tabBeforeDownloadCtx:e_,tabBeforeDownloadHandlerCtx:eN,initiateTabIndexCtx:e=>{w(e)},amplifiedDownloadDataCtx:eF,setAmplifiedDownloadDataCtx:eR,amplificationProgressCtx:e6,setAmplificationProgressCtx:e7,isOnRetryHDCtx:eT,isOnRetryHDHandlerCtx:eB,isOnRetrySlideshowCtx:ez,isOnRetrySlideshowHandlerCtx:eM,isOnRetryAudioMusicCtx:eU,isOnRetryAudioMusicHandlerCtx:eW,progressBarUIOnlyCtx:te,progressBarUIOnlyHandlerCtx:tt,subtitleDataCtx:Q,subtitleDataHandlerCtx:$,userHighlightDataCtx:J,userHighlightDataHandlerCtx:q,highlightContentDataCtx:X,highlightContentDataHandlerCtx:K,activeHighlightIdCtx:G,activeHighlightIdHandlerCtx:V,userPlaylistDataCtx:Y,userPlaylistDataHandlerCtx:Z,playlistContentDataCtx:ee,playlistContentDataHandlerCtx:et,activePlaylistIdCtx:er,activePlaylistIdHandlerCtx:ea,userCollectionDataCtx:en,userCollectionDataHandlerCtx:es,collectionContentDataCtx:el,collectionContentDataHandlerCtx:eo,activeCollectionIdCtx:ei,activeCollectionIdHandlerCtx:ed},children:e.children})}let x=u},13220:(e,t,r)=>{"use strict";r.d(t,{k5:()=>u});var a=r(12115),n={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},s=a.createContext&&a.createContext(n),l=["attr","size","title"];function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e}).apply(this,arguments)}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?i(Object(r),!0).forEach(function(t){var a,n,s;a=e,n=t,s=r[t],(n=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n))in a?Object.defineProperty(a,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[n]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e){return t=>a.createElement(c,o({attr:d({},e.attr)},t),function e(t){return t&&t.map((t,r)=>a.createElement(t.tag,d({key:r},t.attr),e(t.child)))}(e.child))}function c(e){var t=t=>{var r,{attr:n,size:s,title:i}=e,u=function(e,t){if(null==e)return{};var r,a,n=function(e,t){if(null==e)return{};var r={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){if(t.indexOf(a)>=0)continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}(e,l),c=s||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),a.createElement("svg",o({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,u,{className:r,style:d(d({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),i&&a.createElement("title",null,i),e.children)};return void 0!==s?a.createElement(s.Consumer,null,e=>t(e)):t(n)}},14185:(e,t,r)=>{"use strict";r.d(t,{Ec:()=>a,_x:()=>l,kl:()=>i,l:()=>o,lL:()=>n,o5:()=>s});let a=(0,r(15455).eU)(null);function n(e){return e.startsWith("/douyin")?"douyin":e.startsWith("/lemon8")?"lemon8":"tiktok"}function s(e){return"douyin"===e?"/douyin":"lemon8"===e?"/lemon8":""}function l(e,t){return e??n(t)}function o(e){return/(^|\/)dl(?:-|$|\/)/.test(e)}function i(e,t){let r=t&&"en"!==t.toLowerCase()?`/${t}`:"";return`${s(e)}${r}`||"/"}},29988:(e,t,r)=>{"use strict";r.d(t,{HA:()=>g,JW:()=>C,R6:()=>c,Xz:()=>x,lj:()=>d,pb:()=>u,qx:()=>f,t0:()=>h,w3:()=>i});let a="vidgap_session_storage",n="link_inp_cache_storage",s="used_download_feature",l="pebble",o="first_download_occurred",i=()=>{let e=localStorage.getItem(a);e?localStorage.setItem(a,(parseInt(e)+1).toString()):localStorage.setItem(a,"1")},d=e=>{sessionStorage.setItem(n,e)},u=()=>sessionStorage.getItem(n),c=()=>{console.log("removeLinkInpCacheStorage"),sessionStorage.removeItem(n)},C=()=>{try{let e=sessionStorage.getItem(s);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch{return[]}},x=e=>{if(e)try{let t=C();sessionStorage.setItem(s,JSON.stringify([...t.filter(t=>t!==e),e]))}catch{}},g=()=>{sessionStorage.removeItem(s)},h=()=>{try{sessionStorage.removeItem(o)}catch{}},f=e=>{try{if(sessionStorage.getItem(o))return;let t=localStorage.getItem(l),r=t?parseInt(t,10):0,a=Number.isFinite(r)?r+1:1;sessionStorage.setItem(o,"1"),5===a?(localStorage.setItem(l,"0"),e()):localStorage.setItem(l,String(a))}catch{}}},34154:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var a=r(95155),n=r(12115);let s=({content:e,style:t,linkStyle:r})=>"string"==typeof e?(0,a.jsx)(a.Fragment,{children:e}):(0,a.jsx)(a.Fragment,{children:Array.isArray(e)&&e.map((s,l)=>{let o=l===e.length-1;return(0,a.jsxs)(n.Fragment,{children:[s.children.map((e,n)=>{let s;return s=(0,a.jsx)("span",{style:t,children:e.text},n),e.link&&(s=(0,a.jsx)("a",{className:"internal-link",style:r,href:e.link,children:e.text},n)),e.bold&&(s=(0,a.jsx)("strong",{style:t,children:s},n)),e.italic&&(s=(0,a.jsx)("em",{style:t,children:s},n)),e.underline&&(s=(0,a.jsx)("u",{style:t,children:s},n)),s}),!o&&(0,a.jsx)("br",{})]},l)})})},48409:(e,t,r)=>{"use strict";r.d(t,{default:()=>s});var a=r(12115),n=r(47650);let s=({children:e,portalElementId:t="myportal"})=>{let[r,s]=(0,a.useState)(!1);return(0,a.useEffect)(()=>(s(!0),()=>s(!1)),[]),r?(0,n.createPortal)(e,document.querySelector(`#${t}`)):null}},59850:e=>{e.exports={backdrop:"Backdrop_backdrop__BFXbs",hide:"Backdrop_hide__ifoSk"}},69730:(e,t)=>{var r;!function(){"use strict";var a={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)a.call(e,r)&&e[r]&&(t=s(t,r));return t}(r)))}return e}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):void 0===(r=(function(){return n}
1).apply(t,[]))||(e.exports=r)}()},82605:(e,t,r)=>{"use strict";r.d(t,{N:()=>a});let a=(0,r(15455).eU)(0)},92843:(e,t,r)=>{"use strict";r.d(t,{B:()=>n,D:()=>s});var a=r(15455);let n=(0,a.eU)(null),s=(0,a.eU)(0)},97991:(e,t,r)=>{"use strict";r.d(t,{Xk:()=>l});var a=r(12115);let n=new Map,s=new Map;function l(e,t){let r=e.toString(),l=n.get(r),[o,i]=(0,a.useState)(l||{}),[d,u]=(0,a.useState)(!!l),[c,C]=(0,a.useState)(null),x=(0,a.useRef)(!0);return(0,a.useEffect)(()=>{if(x.current=!0,l)return;let t=s.get(r);return t||(t=e().then(e=>{let t=e.default||e;return n.set(r,t),t}).catch(e=>{throw console.error("Failed to load CSS module:",e),e}).finally(()=>{s.delete(r)}),s.set(r,t)),t.then(e=>{x.current&&(i(e),u(!0))}).catch(e=>{x.current&&(C(e),u(!0))}),()=>{x.current=!1}},[r,l]),{styles:o,isLoaded:d,error:c}}},98314:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var a=r(95155);r(12115);var n=r(59850),s=r.n(n);let l=e=>e.show?(0,a.jsx)("div",{style:{backgroundColor:`rgba(0, 0, 0, ${e.opacity?e.opacity:1})`,backdropFilter:e.blur?`blur(${e.blur}px)`:"none",zIndex:e.zIndex?e.zIndex:88},onClick:t=>{t.preventDefault(),t.stopPropagation(),e.close()},className:e.show?s().backdrop:[s().backdrop,s().hide].join(" ")}):null;l.displayName="Backdrop";let o=l}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.