PageSourceSearch

https://www.shenyuncreations.com/_next/static/chunks/pages/results-cc229e360ac10baa.js

js shenyuncreations.com collected 2026-10-01 16:06:22 UTC 47,153 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[255],{41609:function(e,t,i){var n=i(280),a=i(64160),r=i(35694),l=i(1469),s=i(98612),o=i(44144),c=i(25726),d=i(36719),u=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(l(e)||"string"==typeof e||"function"==typeof e.splice||o(e)||d(e)||r(e)))return!e.length;var t=a(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!n(e).length;for(var i in e)if(u.call(e,i))return!1;return!0}},27592:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/results",function(){return i(90828)}])},93737:function(e,t,i){"use strict";var n=i(10253),a=i(85893),r=i(86010),l=i(67111),s=i(278),o=i(47962),c=["zh-CN","zh-TW","ko-KR","ja-JP"];t.Z=function(e){var t=e.className,i=(0,n.Z)((0,s.Z)(),3),d=i[0],u=i[2],v=c.includes(d);return(0,a.jsxs)("div",{"data-testid":"clip-box-label",className:(0,r.Z)("w-min-[51px] w-fit h-[19px] pl-1 pr-2 pb-px rounded-full justify-start items-center inline-flex bg-[#14141480]",t),children:[(0,a.jsx)(o.Z,{name:"icon-cut",className:(0,r.Z)("fill-white",v?"h-3 w-3":"h-2.5 w-2.5")}),(0,a.jsx)("div",{className:"leading-5 text-white text-s12 syzp-font-a pl-0.5 whitespace-nowrap",children:u(l.GHn.clip.title)})]})}},13042:function(e,t,i){"use strict";var n=i(47568),a=i(26042),r=i(69396),l=i(99534),s=i(10253),o=i(97582),c=i(85893),d=i(67294),u=i(82175),v=i(67111),h=i(86010),f=i(70952),m={WEAK:{text:v.GHn.signup.text.weak,width:"w-1/4",color:"text-[#E30037]",bg:"bg-gradient-to-r from-[#FF0000] to-[#FF2F01]"},MEDIUM:{text:v.GHn.signup.text.medium,width:"w-1/2",color:"text-[#FF8B01]",bg:"bg-gradient-to-r from-[#FF9D00] to-[#FFA800]"},STRONG:{text:v.GHn.signup.text.strong,width:"w-3/4",color:"text-[#7AD162]",bg:"bg-[#7AD162]"},VERY_STRONG:{text:v.GHn.signup.text.veryStrong,width:"w-full",color:"text-[#37A748]",bg:"bg-[#37A748]"}};t.Z=function(e){var t=e.label,i=e.name,v=e.headIcon,p=e.tailIcon,b=e.disabled,x=e.loading,g=e.validator,y=e.onStepValid,_=e.i18n,k=e.required,w=e.className,Z=e.labelClassName,j=e.wrapClassName,N=e.inputClassName,S=e.errorClassName,C=void 0===S?"min-h-[16px] my-0.5":S,I=e.enableValidateOnChange,E=e.enableValidateOnBlur,O=e.showPasswordStrength,R=void 0!==O&&O,T=e.fieldTooltip,F=e.extraError,V=e.onChange,L=(0,l.Z)(e,["label","name","headIcon","tailIcon","disabled","loading","validator","onStepValid","i18n","required","className","labelClassName","wrapClassName","inputClassName","errorClassName","enableValidateOnChange","enableValidateOnBlur","showPasswordStrength","fieldTooltip","extraError","onChange"]),M=(0,s.Z)((0,u.U$)(i),3),D=M[0],A=M[1],K=M[2],P=(0,d.useState)(),z=P[0],G=P[1],H=(0,d.useState)(!1),U=H[0],B=H[1],q=(0,u.u6)(),W=(0,d.useRef)(!1);(0,d.useEffect)((function(){R&&(J(D.value)||G(void 0))}),[D.value,R]);var J=function(e){var t,i,n,a;if(!e)return!1;var r=e.length;if(r<8)return!1;var l=(null===(t=e.match(/[A-Z]/g))||void 0===t?void 0:t.length)||0;if(0==l)return!1;var s=(null===(i=e.match(/[a-z]/g))||void 0===i?void 0:i.length)||0;if(0==s)return!1;var o=(null===(n=e.match(/\d/g))||void 0===n?void 0:n.length)||0;if(0==o)return!1;var c=(null===(a=e.match(/[#?!@$%^&*-]/g))||void 0===a?void 0:a.length)||0,d=e.split("").filter((function(t,i){return i>0&&t===e[i-1]})).length,u=0;if(l>2||s>2||o>2)for(var v=0;v<r-2;v++)e.charCodeAt(v)+1==e.charCodeAt(v+1)&&e.charCodeAt(v+1)+1==e.charCodeAt(v+2)&&u++;var h=8*r-2*l-2*s+4*o+6*c-2*d-3*u-18;return G(h<40?m.WEAK:h<60?m.MEDIUM:h<80?m.STRONG:m.VERY_STRONG),!0},Y=function(){var e=(0,n.Z)((function(e){return(0,o.__generator)(this,(function(t){switch(t.label){case 0:return D.onChange(e),null===V||void 0===V||V(e),I?void 0==g||"function"!==typeof g?[3,2]:[4,g(i)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}();(0,d.useEffect)((function(){!q.errors[i]&&A.touched&&D.value&&!W.current&&(null===y||void 0===y||y(i),W.current=!0)}),[q.errors[i],A.touched,D.value]);var Q=function(){var e=(0,n.Z)((function(e){return(0,o.__generator)(this,(function(t){switch(t.label){case 0:return D.onBlur(e),E&&"function"===typeof g?[4,g(i)]:[3,2];case 1:t.sent(),A.touched||K.setTouched(!0),t.label=2;case 2:return B(!1),[2]}}))}));return function(t){return e.apply(this,arguments)}}();return(0,c.jsxs)("div",{className:(0,h.Z)(w,"relative",U?"z-10":"z-0"),children:[t&&(0,c.jsxs)("label",{className:(0,h.Z)(Z||"big text-s16 text-syc-gray-500 inline-block mb-2"),htmlFor:e.id||i,children:[(0,c.jsx)("span",{children:t}),k&&(0,c.jsx)("span",{children:"*"})]}),(0,c.jsxs)("div",{className:(0,h.Z)(j,"relative"),children:[(0,c.jsx)("input",(0,r.Z)((0,a.Z)({className:(0,h.Z)("text-s15 tracking-tight b1600:text-s18",N,v?"pl-11":"pl-4",p?"pr-11":"pr-4",b&&"opacity-50","form-input w-full h-10 ring-0 rounded-full focus:border-syc-gray-300 border focus:ring-0 appearance-none",A.touched&&A.error||F?"border-syc-error":"border-syc-gray-300"),"data-testid":"formik-text-input"},D,L,I?{}:{onFocus:function(){K.setTouched(!1,!1),K.setError("")}}),{onChange:Y,onBlur:Q,onFocus:function(){B(!0)},disabled:b||x})),(0,c.jsx)(f.Z,{loading:x,size:5,color:"purple-900",className:"absolute inset-0 pointer-events-none"}),v&&(0,c.jsx)("div",{className:"h-10 w-12.5 flex justify-center items-center absolute top-0 left-0",children:v}),p&&(0,c.jsx)("div",{className:"h-10 w-12.5 flex justify-center items-center absolute top-0 right-0",children:p}),z&&(0,c.jsx)("div",{className:"absolute top-9 left-0 right-0 px-5",children:(0,c.jsx)("div",{className:(0,h.Z)("h-1 w-full rounded-t mt-[-1px]",z.width,z.bg)})}),(0,c.jsx)("div",{className:C,children:A.touched&&A.error||F?(0,c.jsx)("p",{className:"text-syc-msg-error text-s12 leading-4 tracking-tight relative left-4 pr-3",children:_?_(A.error||F):A.error||F}):z?(0,c.jsx)("p",{className:(0,h.Z)("text-s12 leading-4 tracking-tight relative left-4",z.color),children:_(z.text)}):null})]}),T&&U&&(0,c.jsxs)("div",{className:"flex flex-col b1102:flex-row items-end b1102:items-center absolute top-11 b1102:top-4.5 right-0 b1102:-right[6px] b1102:translate-x-full b1102:-translate-y-1/2 will-change-[filter] drop-shadow-[0_1px_12px_rgba(0,0,0,0.1)]",children:[(0,c.jsx)("div",{className:"w-0 h-0 border-b-[16px] mr-4 border-b-white border-x-[11px] border-x-transparent b1102:mr-0 b1102:border-r-[16px] b1102:border-r-white b1102:border-y-[11px] b1102:border-y-transparent"}),T]})]})}},85720:function(e,t,i){"use strict";i.d(t,{Z:function(){return w}});var n=i(26042),a=i(69396),r=i(10253),l=i(85893),s=i(86010),o=i(67294),c=i(36377),d=i(58258),u=i(47568),v=i(29815),h=i(97582),f=i(70131),m=i(20913),p=i(67111),b=i(75353),x="InfiniteLoader";var g=i(278),y=i(70952),_=i(74170),k="InfiniteLoaderLock";function w(e){var t,i,s=(0,r.Z)((0,_.Z)(),1)[0],o=N(e.dataId),c=o.infiniteScrollData,d=o.onLinkClick,u={items:null!==(t=e.items)&&void 0!==t?t:[],startKey:null!==(i=e.startKey)&&void 0!==i?i:""},v=s&&(c.items.length||c.startKey)?c:u;return(0,l.jsx)(Z,(0,a.Z)((0,n.Z)({},e,v),{onLinkClick:d}),[e.dataId,v.startKey,v.items.length].join("|"))}function Z(e){var t=e.items,i=e.startKey,n=void 0===i?"":i,a=e.dataId,_=e.fetchMore,k=e.title,w=e.className,Z=e.children,j=e.smallPadding,N=void 0!==j&&j,S=e.onLinkClick,C=e.showSpinner,I=void 0===C||C,E=(0,r.Z)((0,g.Z)(),3)[2],O=function(e){var t=e.initialItems,i=void 0===t?[]:t,n=e.initialStartKey,a=void 0===n?"":n,l=e.dataId,s=void 0===l?"dataId":l,c=e.fetchMore,g=(0,o.useState)(i),y=g[0],_=g[1],k=(0,o.useState)(!1),w=k[0],Z=k[1],j=(0,o.useRef)(a),N=(0,o.useState)(i.length>0&&!a),S=N[0],C=N[1],I=(0,f.YD)({threshold:0}),E=I.ref,O=I.inView,R=(0,m.Z)();(0,d.qu)(x)("render",{items:y,startKeyRef:j.current,isLoading:w,initialItems:i,dataId:s});var T=function(){var e=(0,u.Z)((function(){var e,t,i,n,a,l,o,u,f;return(0,h.__generator)(this,(function(h){switch(h.label){case 0:return(0,d.qu)(x)("loadM
1ore",{startKeyRef:j.current,items:y.length}),(e=window.scrollY)>0&&(0,b.vO)(b.kY.INFINITE_SCROLL_LOAD_TRIGGERED,{event_name:"infinite_scroll_load_triggered",trigger:"in_view",data_id:s,start_key:j.current,rendered_items:y.length,scroll_top:Math.round(e)}),R()?((0,d.qu)(x)("Unmounted, stop fetching more"),[2]):(Z(!0),[4,c(j.current)]);case 1:return t=r.Z.apply(void 0,[h.sent(),2]),i=t[0],n=t[1],i?[3,2]:(l=n.list,o=n.startKey,j.current=o,""===o&&C(!0),u=(0,v.Z)(y),l&&(u=(0,v.Z)(u).concat((0,v.Z)(l))),_(u),f={items:u,startKey:o,ts:Date.now()},null===(a=(0,p.tOc)())||void 0===a||a.session.setItem(s,JSON.stringify(f)),[3,4]);case 2:return(0,d.qu)(x)("ERROR in loadMore:",i),[4,(0,d.gw)(1e4)];case 3:h.sent(),h.label=4;case 4:return Z(!1),[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){(0,d.qu)(x)("Check If loadMore Needed",{inView:O,isEmpty:S,items:y,isLoading:w}),!O||S||w||T()}),[O,S,w]),{items:y,isLoading:w,isEmpty:S,ref:E}}({initialItems:t,initialStartKey:n,dataId:a,fetchMore:_}),R=O.items,T=O.isLoading,F=O.isEmpty,V=O.ref;return(0,l.jsxs)("div",{className:w,children:[k&&k!==E(c.GH.discover.text.allVideos)&&(0,l.jsx)("div",{className:"mb-2 b429:mb-3 b588:mb-4 b1920:mb-5",children:(0,l.jsx)("h2",{className:"big text-s24 tracking-tight leading-none font-light b1024:text-s28 b1600:text-s30 b1920:text-s36",children:k})}),Z({items:R,isEmpty:F,isLoading:T,onLinkClick:S}),(0,l.jsxs)("div",{className:(0,s.Z)("relative flex flex-col items-center",N?"pb-0 b1102:pb-0 h-0":"pb-20 b1102:pb-20"),children:[(0,l.jsx)("div",{ref:V,className:"invisible h-[50vh] w-[1px] absolute top-[-50vh] left-0"}),(0,l.jsxs)("div",{className:(0,s.Z)(N?"b1102:mt-16":"mt-16"),children:[I&&(0,l.jsx)(y.Z,{loading:T,size:8,color:"syc-gray-600"}),F&&R.length>0&&(0,l.jsx)("span",{className:"hidden px-8 py-2 text-s15 b1600:text-s16 tracking-wider font-medium bg-syc-gray-400 text-white rounded-full",children:E(c.GH.info.noMoreData)})]})]})]})}var j=1e4,N=function(e){return{infiniteScrollData:(0,o.useMemo)((function(){if(e){var t=I({dataId:e,unLock:!0});return(null===t||void 0===t?void 0:t.items)&&t.items.length>0?{items:t.items,startKey:t.startKey||""}:{items:[],startKey:""}}return{items:[],startKey:""}}),[e]),onLinkClick:(0,o.useCallback)((function(){C(e)}),[e])}},S=function(e){var t,i,n=Date.now(),a=null===(t=(0,p.tOc)())||void 0===t?void 0:t.session.getItem(e);try{i=JSON.parse(null!==a&&void 0!==a?a:"")}catch(r){i={}}return(0,d.qu)(k)(e,"parseInfiniteScrollDataFromSS lock",{timeUsed:"".concat(Date.now()-n," ms")}),i},C=function(e){var t,i=S(e),r=(0,a.Z)((0,n.Z)({},i),{lockRefresh:"true"});(0,d.qu)(k)(e,"lockInfiniteScrollRefresh lock: lockRefresh",r),null===(t=(0,p.tOc)())||void 0===t||t.session.setItem(e,JSON.stringify(r))},I=function(e){var t=e.dataId,i=e.initData,n=e.unLock,a=(null===i||void 0===i?void 0:i.initialItems)||[],r=(null===i||void 0===i?void 0:i.initialStartKey)||"",l=S(t),s=(null===l||void 0===l?void 0:l.items)||a,o=(null===l||void 0===l?void 0:l.startKey)||r,c=(null===l||void 0===l?void 0:l.ts)||0;if("true"===((null===l||void 0===l?void 0:l.lockRefresh)||"false")&&n){var u,v={items:s,startKey:o,lockRefresh:"false",ts:Date.now()-j+5e3};return(0,d.qu)(k)(t,"loadInfiniteScrollDataFromSS lock: refreshment Locked",v),null===(u=(0,p.tOc)())||void 0===u||u.session.setItem(t,JSON.stringify(v)),{items:s,startKey:o}}return(0,d.qu)(k)(t,"loadInfiniteScrollDataFromSS lock: no refreshment lock",{shouldRefresh:Date.now()-c>j,SS_CACHE_TIME:j,cachedTs:new Date(c)}),Date.now()-c>j?{items:[],startKey:""}:{items:s,startKey:o}}},91020:function(e,t,i){"use strict";var n=i(85893),a=i(86010),r=i(67294),l=i(14416),s=i(49491),o=i(70952);t.Z=function(e){var t=e.onClick,i=e.active,c=e.nowPlaying,d=e.spinnerSize,u=e.classes,v=(0,l.v9)(s.xm.isLoading),h=(0,l.v9)(s.xm.all).status,f=c&&("playing"===h||"loading"===h),m=(0,r.useCallback)((function(e){t&&t(e)}),[t,h]);return(0,n.jsx)("div",{className:(0,a.Z)("absolute inset-0 flex items-center justify-center cursor-pointer"),typeof:"float-play-button","data-testid":"float-play-button",children:v&&c?(0,n.jsx)(o.Z,{loading:!0,size:null!==d&&void 0!==d?d:5}):(0,n.jsx)("div",{"data-testid":"float-play-button-control",className:(0,a.Z)("flex items-center justify-center bg-transparent roun
1ded-full border-[#fff] border-[0.75px]",(null===u||void 0===u?void 0:u.circle)?u.circle:"w-[28px] h-[28px]",i||f?"bg-[#FFFFFF40]":"hover:bg-[#FFFFFF40]"),onClick:m,children:(0,n.jsx)("span",{"data-testid":"float-play-button-icon",className:(0,a.Z)("transition-all text-white",(null===u||void 0===u?void 0:u.icon)?u.icon:"text-[20px] leading-[20px]",f?"vjs-icon-pause":"vjs-icon-play")})})})}},7400:function(e,t,i){"use strict";var n=i(47568),a=i(97582),r=i(85893),l=i(86010),s=i(67294),o=i(14416),c=i(89768),d=i(33807),u=i(43579),v=i(49491),h=i(52323),f=i.n(h),m=i(47962);t.Z=function(e){var t=e.classes,i=e.trackId,h=e.hoverEffect,p=void 0===h||h,b=(0,d.Z)().likeOrUnlikeAudio,x=(0,c.Z)().isMobile,g=(0,o.v9)(u.MG),y=(0,o.v9)(v.ol.likedTrack)(i),_=(0,s.useCallback)(function(){var e=(0,n.Z)((function(e){return(0,a.__generator)(this,(function(t){switch(t.label){case 0:return e.stopPropagation(),!g&&y?[2]:i?[4,b(i,"track",y?"dislike":"like")]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}));return function(t){return e.apply(this,arguments)}}(),[y,i,b]);return(0,r.jsx)("button",{onClick:_,className:(0,l.Z)(t.button,y&&t.buttonLinked,p&&(x?f().mobile_item:f().item),!x&&!g&&y&&"pointer-events-none"),"aria-label":"Thumb up Button","data-testid":"like-button",children:(0,r.jsx)(m.Z,{name:y?"icon-thumbup-fill":"icon-thumbup",className:(0,l.Z)(t.icon,y&&t.iconLiked)})})}},79174:function(e,t,i){"use strict";i.d(t,{Z:function(){return S}});var n=i(10253),a=i(85893),r=i(86010),l=i(67294),s=i(67111),o=i(87413),c=i(278),d=i(45793),u=i.n(d),v=i(26042),h=i(41664),f=i.n(h),m=i(11163),p=i(14416),b=i(19155),x=i(10260),g=i(43579),y=i(22578),_=i.n(y),k=i(47962),w=function(e){var t=e.id,i=e.icon,l=e.iconActive,s=e.title,o=e.link,d=e.scale,u=(0,n.Z)((0,c.Z)(),3)[2],v=(0,p.I0)(),h="icon-lotus"===i,b=(0,m.useRouter)().pathname===o;return(0,a.jsx)(f(),{href:o,children:(0,a.jsx)("a",{onClick:function(){return"/"==o&&(0,x.Z9)(v)},"aria-label":u(s)+" link","data-testid":"navbar-".concat(t,"-link"),children:(0,a.jsxs)("div",{className:(0,r.Z)("flex flex-col w-full items-center py-2.5 bg-transparent transition duration-400 transform hover:scale-110",h&&"pb-4",_().navbar_item,b&&_().active),children:[(0,a.jsx)("div",{className:(0,r.Z)(h&&"border w-11 h-11 flex items-center justify-center","border-syc-gray-100 rounded-full"),children:b?(0,a.jsx)(k.Z,{name:l,className:(0,r.Z)(d,"w-8 h-8 b1600:w-9 b1600:h-9 transform")}):(0,a.jsx)(k.Z,{name:i,className:(0,r.Z)(d,"w-8 h-8 b1600:w-9 b1600:h-9 transform text-[#696969] fill-current")})}),!h&&(0,a.jsx)("span",{className:"inline-block text-s11 text-center font-medium b1600:text-s13 text-[#696969] leading-3 pb-1 px-2",children:u(s)})]})})})};function Z(){var e=(0,b.y)({onResized:function(e){return document.body.style.setProperty("--nav_width","".concat(e.width,"px"))},onUnmounted:function(){return document.body.style.removeProperty("--nav_width")}}),t=(0,p.v9)(g.ER)?s.UkW:s.UkW.filter((function(e){return"admin-center"!==e.id}));return(0,a.jsx)("div",{ref:e,className:"b1102:mt-5.5 b1366:mt-6.5 b1600:mt-8.5",children:t.map((function(e){return(0,a.jsx)(w,(0,v.Z)({},e),e.id)}))})}var j=i(18092),N=i(68451);function S(e){var t=e.children,i=(0,n.Z)((0,c.Z)(),1)[0];return(0,l.useEffect)((function(){if(o.IS_IOS&&o.IS_SAFARI){var e=new AbortController,t=window.innerHeight,i=!1;return document.addEventListener("scroll",(function(){var e=document.getElementById(s.oTM);e&&(e.classList.add("ios-safari"),window.innerHeight-t>50?i&&(i=!1,e.classList.remove("safari-bottom-nav")):i||(i=!0,e.classList.add("safari-bottom-nav")))}),{signal:e.signal}),function(){e.abort()}}}),[]),(0,a.jsxs)("div",{className:(0,r.Z)("drawer",u().drawer),children:[(0,a.jsx)("input",{id:s.Dfy,type:"checkbox",className:(0,r.Z)("drawer-toggle",u()["drawer-toggle"]),"data-testid":"layout-drawer-toggle"}),(0,a.jsxs)("div",{id:s.oTM,className:(0,r.Z)("drawer-content relative",u()["drawer-content"]),children:[(0,a.jsx)("div",{className:"w-full h-0"}),(0,a.jsx)(N.Z,{drawId:s.Dfy}),(0,a.jsx)("nav",{className:u().nav_bar,children:(0,a.jsx)(Z,{})}),(0,a.jsx)("main",{className:(0,r.Z)(u().main),children:t})]}),(0,a.jsx)(j.Z,{locale:i})]})}},807:function(e,t,i){"use strict";var n=i(10253),a=i(85893),r=i(86010),l=i(67111),s=i(278),o=i(47962),c=["zh-CN","zh-TW","ko-KR","ja-JP"];t.Z=function(e){var t=e.className,i=e.numberOfVideos,d=e.inPlayingList,u=(0,n.Z)((0,s.Z)(),3),v=u[0],h=u[2],f=c.includes(v);return(0,a.jsxs)("div",{className:(0,r.Z)("w-min-[51px] w-fit h-[25px] pl-1.5 pr-2 pb-px bg-neutral-900 bg-opacity-50 rounded-[999px] justify-start items-center inline-flex bg-[#14141480]",t),children:[(0,a.jsx)(o.Z,{name:"icon-playlist",className:(0,r.Z)(d?f?"h-5 w-5":"h-4 w-4":f?"h-6 w-6":"h-5 w-5","fill-white")}),(0,a.jsx)("span",{className:(0,r.Z)("text-white syzp-font-a pl-0.5",d?"text-s12":"text-s14"),children:h(i>1?l.GHn.playlist.text.numberOfVideos:l.GHn.playlist.text.numberOfVideo,null!==i&&void 0!==i?i:0)})]})}},69175:function(e,t,i){"use strict";i.d(t,{Z:function(){return S}});var n=i(10253),a=i(85893),r=i(86010),l=i(41664),s=i.n(l),o=i(67294),c=i(14416),d=i(67111),u=i(75353),v=i(278),h=i(73958),f=i(76121),m=i.n(f),p=i(52323),b=i.n(p),x=i(44500),g=i(807),y=i(70952),_=i(47962),k=i(13808),w=i(85437),Z=i(93505),j=i(51760),N=i(87413);function S(e){var t=e.playlist,i=e.titleFontStyle,l=void 0===i?"":i,f=e.metaFontStyle,p=void 0===f?"":f,S=e.hideTooltip,C=void 0!==S&&S,I=e.hideAvatar,E=void 0===I||I,O=e.customClassName,R=void 0===O?"":O,T=e.linkRandom,F=void 0!==T&&T,V=e.showThreeDotButton,L=e.searchTracking,M=t.id,D=t.title,A=t.poster_url,K=t.time_created,P=t.video_ids,z=t.featured_video_id,G=(0,n.Z)((0,v.Z)(),3)[2],H=(0,o.useState)(!1),U=H[0],B=H[1],q=(0,o.useState)(),W=q[0],J=q[1],Y=(0,c.v9)(h.H3),Q=(0,c.v9)(h.YD),X=(0,o.useRef)(),$=function(){L&&(0,u.vO)(u.kY.SEARCH_RESULTS_SELECT,L),B(!0),X.current=setTimeout((function(){return B(!1)}),2e3)};(0,o.useEffect)((function(){Y!==M&&"playing"!==Q||B(!1)}),[Y,M,Q]),(0,o.useEffect)((function(){return function(){X.current&&clearTimeout(X.current)}}),[]);var ee=F?(0,d.SyW)(P):P,te=null!==z&&void 0!==z?z:ee[0],ie=(0,w.J9)({id:te},null,M,new URLSearchParams({view:"1"}));return(0,a.jsxs)("div",{className:(0,r.Z)(m().block_container,b().container,m().thumbnail_block,"flex mb-5 b1102:[--block-height:4]",R&&m()[R]),children:[(0,a.jsx)("div",{className:(0,r.Z)("relative w-[80%] b1366:w-full"),children:(0,a.jsx)(s(),{href:ie,children:(0,a.jsxs)("a",{onClick:function(e){e.stopPropagation(),$()},"data-testid":"ih-block-playlist-thumbnail-link",children:[W&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:(0,r.Z)(m().thumbnail_bg_layer,N.IS_GJB&&"before:backdrop-filter-none"),style:{backgroundImage:"url(".concat(W,")")}}),(0,a.jsx)("div",{className:(0,r.Z)(m().thumbnail_bg_layer,N.IS_GJB&&"before:backdrop-filter-none"),style:{backgroundImage:"url(".concat(W,")")}}),(0,a.jsx)("div",{className:(0,r.Z)(m().thumbnail_bg_layer,N.IS_GJB&&"before:backdrop-filter-none"),style:{backgroundImage:"url(".concat(W,")")}})]}),(0,a.jsxs)("div",{suppressHydrationWarning:!0,className:(0,r.Z)(m().thumbnail_img,"thumbnail relative aspect-w-16 aspect-h-9 w-full rounded overflow-hidden"),children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(x.Z,{src:A,layout:"fill",objectFit:"cover",alt:D,onLoad:function(e){return J(e.currentTarget.src)}}),(0,a.jsx)(g.Z,{className:"absolute bottom-2 right-2",numberOfVideos:t.video_ids.length})]}),(0,a.jsx)("div",{className:(0,r.Z)(m().show_all,!U&&"hidden","absolute inset-0 flex flex-row items-center justify-center bg-[#000000B2]"),children:U?(0,a.jsx)(y.Z,{loading:!0,size:5}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(_.Z,{name:"icon-play",className:"h-4 w-4 b1366:h-5 b1366:w-5 fill-white"}),(0,a.jsx)("span",{className:"text-white ml-2 text-s12 b1366:text-s14 leading-6 syzp-font-a",children:G(d.GHn.playlist.text.playAll)})]})})]})]})})}),(0,a.jsx)("div",{className:(0,r.Z)("text-left w-full max-w-full flex items-start",m().title_div),children:(0,a.jsxs)("div",{className:(0,r.Z)("block w-full b1366:py-2 pl-2 b1600:pl-2.5",m().title),children:[(0,a.jsxs)("div",{className:"flex justify-between items-start",children:[(0,a.jsx)(s(),{href:ie,children:(0,a.jsx)("a",{onClick:function(e){e.stopPropagation(),$()},title:D,"data-testid":"ih-block-playlist-title-link",children:(0,a.jsx)("h2",{className:(0,r.Z)(l||"tracking-tight text-s14 b1366:text-s16 block text-[#2F2E35] whitespace-normal line-clamp-2 mb-1.5 b1366:mb-2 leading-[20px]"),children:D})})}),V&&(0,a.jsx)(Z.Z,{type:"featured-playlist",source:t,commands:["share"],classes:{button:{popupClassName:"right-0 bottom-9",className:(0,r.Z)(m().more_button,"p-1.5 mr-[-10px]")}}})]}),!C&&(0,a.jsx)("div",{className:m().tooltip,children:(0,a.jsx)(k.Z,{as:E?"name":"all",category:t.category,type:"category",className:E?"inline-flex":"mb-1 flex items-center text-syc-gray-400 hover:text-black",avatarClassName:E?"":"flex-shrink-0 rounded-full relative overflow-hidden w-6 h-6 b1024:w-8 b1024:h-8 b1600:w-10 b1600:h-10",titleClassName:(0,r.Z)("text-syc-gray-400 hover:text-black line-clamp-1",p||"text-s12 b1366:text-s14 leading-[15px] tracking-wide mb-1 b1366:mb-1.5"),"data-type":"channel"})}),E&&(0,a.jsx)(j.Z,{details:!1,timestamp:K,hideTimestamp:!!K&&Date.now()-K>2592e6,classes:{className:"text-s12 leading-[15px] tracking-wide b1366:leading-[15px]"}})]})})]})}},51760:function(e,t,i){"use strict";var n=i(10253),a=i(85893),r=i(86010),l=i(67111),s=i(278);t.Z=function(e){var t=e.views,i=e.timestamp,o=e.details,c=void 0===o||o,d=e.stream,u=e.hideTimestamp,v=void 0!==u&&u,h=e.classes,f=(0,n.Z)((0,s.Z)(),3),m=f[0],p=f[2];if(!t&&!i&&!d)return null;var b=void 0!==t?(0,l.g0d)(m,p,t,c):void 0,x=c?(0,l.ztJ)(m,i):(0,l.LKi)(m,i);return(0,a.jsx)("div",{className:(0,r.Z)("text-syc-gray-400 flex items-center justify-start",null===h||void 0===h?void 0:h.className),children:d?(0,l.b69)(d,m,p):(0,a.jsxs)(a.Fragment,{children:[!!t&&(0,a.jsx)("div",{className:(0,r.Z)("whitespace-nowrap",null===h||void 0===h?void 0:h.view),children:b}),!!t&&!!i&&!v&&(0,a.jsx)("div",{className:(0,r.Z)("mx-1.5",null===h||void 0===h?void 0:h.splitter),children:"\u2022"}),!!i&&!v&&(0,a.jsx)("div",{className:(0,r.Z)("whitespace-nowrap",null===h||void 0===h?void 0:h.time),children:x})]})})}},33807:function(e,t,i){"use strict";i.d(t,{Z:function(){return x},u:function(){return g}});var n=i(47568),a=i(10253),r=i(97582),l=i(67294),s=i(14416),o=i(78407),c=i(10260),d=i(18767),u=i(43579),v=i(34057),h=i(67111),f=i(75353),m=i(38397),p=i(40401),b=i(278);function x(){var e=(0,s.I0)(),t=(0,a.Z)((0,b.Z)(),3)[2],i=(0,s.v9)(u.MG)||!1,l=function(){var l=(0,n.Z)((function(n,l){var s,o,u;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return s="like"
1===l,n&&(i||s)?[4,(0,m.lt)(n,s)]:[2,!1];case 1:return o=a.Z.apply(void 0,[r.sent(),1]),(u=o[0])?((0,c.zI)(e,{content:t(u)}),[2,!1]):(i?e(s?(0,d.$9)(n):(0,d.Lc)(n)):s&&(0,h.TCT)(n),[2,!0])}}))}));return function(e,t){return l.apply(this,arguments)}}(),v=function(){var a=(0,n.Z)((function(n,a,l){var s,d;return(0,r.__generator)(this,(function(r){switch(r.label){case 0:return s="like"===l,n&&(i||s)?[4,(0,p.XX)({target_id:n,target_type:a,type:l})]:[2,!1];case 1:return(d=r.sent()).errorMsg?((0,c.zI)(e,{content:t(d.errorMsg)}),[2,!1]):(i?e(s?o.n0.like(n,a):o.n0.unlike(n,a)):s&&((0,h.xV$)(n,a),e(o.n0.like(n,a))),(0,f.vO)(f.kY.AUDIO_LIKE,{id:n,target:a,is_like:s}),[2,!0])}}))}));return function(e,t,i){return a.apply(this,arguments)}}();return{likeOrUnlikeVideo:l,likeOrUnlikeAudio:v}}function g(e,t){var i=(0,s.v9)(u.MG)||!1,a=(0,l.useState)(null!==t&&void 0!==t?t:0),o=a[0],c=a[1],d=(0,s.v9)(v.vx).includes(e),m=(0,l.useState)(!0),p=m[0],b=m[1],g=x().likeOrUnlikeVideo;(0,l.useEffect)((function(){t&&c(t)}),[t]),(0,l.useEffect)((function(){e&&b(i?d:(0,h.Lbu)(e))}),[d,i,e]);var y=(0,l.useCallback)((0,n.Z)((function(){return(0,r.__generator)(this,(function(t){switch(t.label){case 0:return e?[4,g(e,p?"dislike":"like")]:[2];case 1:return t.sent()&&(c((function(e){return p?e-1:e+1})),b((function(){return!p})),(0,f.vO)(f.kY.VIDEO_LIKE,{video_id:e,is_like:!p})),[2]}}))})),[e,p]);return{isLike:p,thumbUp:o,clickable:!!e&&(!p||i),thumbUpHandler:y}}},54958:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var n=i(11163),a=i(67111);function r(){var e=(0,n.useRouter)();return(0,a.TWG)(e.asPath)}},20913:function(e,t,i){"use strict";i.d(t,{Z:function(){return a}});var n=i(67294);function a(){var e=(0,n.useRef)(!1),t=(0,n.useCallback)((function(){return e.current}),[]);return(0,n.useEffect)((function(){return function(){e.current=!0}}),[]),t}},90828:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSG:function(){return de},default:function(){return ue}});var n=i(47568),a=i(26042),r=i(69396),l=i(10253),s=i(97582),o=i(85893),c=i(86010),d=i(69983),u=i.n(d),v=i(11163),h=i(67294),f=i(79174),m=i(85720),p=i(278),b=i(36377),x=i(37099),g=function(){var e=(0,l.Z)((0,p.Z)(),3)[2];return(0,o.jsx)("div",{className:"mt-10 grid grid-cols-12",children:(0,o.jsxs)("div",{className:"col-span-12 container mx-auto max-w-2xl text-base text-center py-36",children:[(0,o.jsx)(x.Z,{className:"w-24 h-24 text-syc-logo fill-current mx-auto opacity-40"}),(0,o.jsx)("div",{className:"my-8 text-s24 b1024:text-s28 b1920:text-s32",children:e(b.GH.search.text.noSearchResultsFound)})]})})},y=i(99534),_=i(41664),k=i.n(_),w=i(14416),Z=i(67111),j=i(75353),N=i(63330),S=i(89768),C=i(60525),I=i(78407),E=i(47997),O=i.n(E),R=i(52323),T=i.n(R),F=i(44500),V=i(91020),L=i(7400),M=i(97271),D=i(47477),A=function(e){var t,i,n,l,s=e.searchTracking,d=(0,y.Z)(e,["searchTracking"]),u=(0,w.I0)(),v=(0,S.Z)().isMobile,f=(0,C.Z)().updateHistoryState,m=(0,N.Z)(),p=m.currentTrackId,b=m.ready,x=m.playing,g=m.playTrack,_=(null===d||void 0===d?void 0:d.id)===p,E=(0,h.useCallback)((function(e){v||e.target.closest(".track-indicator")||(_&&b?u(I.el.executePlayerCommand("replay")):R())}),[v]),R=function(){s&&(0,j.vO)(j.kY.SEARCH_RESULTS_SELECT,s),g(d)},A="/audio/album/".concat(null===d||void 0===d?void 0:d.album_id);return(0,o.jsx)("div",{className:(0,c.Z)("py-1"),children:(0,o.jsxs)("div",(0,r.Z)((0,a.Z)({className:(0,c.Z)("relative flex items-center p-2 -mx-2 min-w-[295px] syzp-font-a",O().track,O().playlist,T().container,v&&O().mobile,_&&O().nowPlaying,x&&O().playing,_&&O().active)},v&&{onClick:R}),{"data-testid":"sr-audio-item-container",children:[(0,o.jsxs)("div",{className:(0,c.Z)("flex flex-grow gap-2"),children:[(0,o.jsxs)("div",{className:(0,c.Z)("relative rounded-lg overflow-hidden min-w-[56px] max-w-[56px] min-h-[56px] max-h-[56px]"),children:[(0,o.jsx)(F.Z,{src:d.album.thumbnail||"",layout:"fill",objectFit:"cover",alt:(null===(t=d.album)||void 0===t?void 0:t.name)||""}),(0,o.jsx)(V.Z,(0,a.Z)({nowPlaying:d.id===p},!v&&{onClick:R}))]}),(0,o.jsxs)("div",(0,r.Z)((0,a.Z)({className:(0,c.Z)("flex flex-col items-start flex-grow ml-2 b588:ml-0")},!v&&{onDoubleClick:E}),{children:[(0,o.jsxs)("div",{className:"flex gap-2 items-start",children:[(0,o.jsx)("span",{className:(0,
1c.Z)("line-clamp-2 leading-[18px] b588:leading-[21px]",O().title),children:d.name}),(d.premium||(null===(i=d.album)||void 0===i?void 0:i.premium))&&(0,o.jsx)(D.Z,{})]}),v?(0,o.jsx)("span",{className:(0,c.Z)(O().album,"text-[#696969] syzp-font-a leading-[18px]"),children:null===(n=d.album)||void 0===n?void 0:n.name}):(0,o.jsx)(k(),{href:A,children:(0,o.jsx)("a",{className:(0,c.Z)("flex items-center justify-start text-[#696969] syzp-font-a leading-[18px] hover:underline",O().album),"data-testid":"sr-audio-item-album-link",onClick:function(e){e.stopPropagation(),f(A)},children:(0,o.jsx)("span",{children:null===(l=d.album)||void 0===l?void 0:l.name})})})]}))]}),(0,o.jsxs)("div",{className:(0,c.Z)("items-center justify-end flex gap-4"),children:[(0,o.jsx)(L.Z,{trackId:d.id,classes:{button:(0,c.Z)(O().likeButton,"hidden b504:block"),buttonLinked:"!visible",icon:"h-4 w-4 fill-black",iconLiked:"fill-[#D7B06E]"}}),(0,o.jsx)("span",{className:(0,c.Z)("text-s12 leading-4"),children:(0,Z.DZN)(Math.round(d.duration))}),(0,o.jsx)(M.Z,{type:"track",commands:["addToPlaylist","addToQueue","share"],source:d})]})]}))})},K=i(5152),P=i.n(K),z=i(10109),G=i(43579),H=i(76121),U=i.n(H),B=i(93737),q=i(60816),W=i(98863),J=i(13808),Y=i(85437),Q=P()((function(){return Promise.all([i.e(9074),i.e(7353),i.e(9793),i.e(557)]).then(i.bind(i,79074))}),{loadableGenerated:{webpack:function(){return[79074]}},ssr:!1}),X=function(e){return e.stopPropagation()},$=function(e){var t,i,n,a=e.searchTracking,r=(0,y.Z)(e,["searchTracking"]),s=r.id,d=r.slug,u=r.title,v=r.view_count,h=r.poster_url,f=r.desc,m=r.clip,b=(0,l.Z)((0,p.Z)(),3),x=b[0],g=b[2],_=(0,z.a)(r),N=(0,w.v9)((0,G.vq)(r)),S=Boolean(null===m||void 0===m?void 0:m.original_video_id)&&0===Number((null===r||void 0===r?void 0:r.price)||0),C=function(){a&&(0,j.vO)(j.kY.SEARCH_RESULTS_SELECT,a)};return(0,o.jsxs)("div",{className:"py-2 flex flex-col b588:flex-row gap-x-4 b868:gap-x-6 b1102:gap-x-7.5 b1600:gap-x-8.5",children:[(0,o.jsx)("div",{className:"flex rounded-md overflow-hidden min-w-full b588:min-w-[40%] b768:min-w-[35%] b992:min-w-[30%] b1200:min-w-[27%]",children:(0,o.jsxs)("div",{className:"w-full h-full aspect-w-16 aspect-h-9",children:[(0,o.jsx)(k(),{href:(0,Y.J9)(r,null),children:(0,o.jsx)("a",{className:"flex",onClick:function(e){e.stopPropagation(),C()},"data-testid":"sr-video-item-thumbnail-link",children:(0,o.jsx)(F.Z,{src:h,layout:"fill",objectFit:"cover",alt:u})})}),(0,o.jsx)(W.C,{video:r,type:null===_||void 0===_?void 0:_.type,status:null===_||void 0===_?void 0:_.status}),N&&!_&&(0,o.jsx)(q.Z,{}),S&&(0,o.jsx)(B.Z,{className:"absolute top-2 left-2"})]})}),(0,o.jsx)("div",{className:"text-left w-full max-w-full overflow-hidden flex items-start py-2 b588:py-0",children:(0,o.jsxs)("div",{className:"block px-2 b588:px-0 overflow-hidden",children:[(0,o.jsx)(k(),{href:"/video/".concat(s,"/").concat(d),children:(0,o.jsx)("a",{className:"flex",onClick:function(e){e.stopPropagation(),C()},"data-testid":"sr-video-item-title-link",children:(0,o.jsx)("h2",{className:(0,c.W)("tracking-tight leading-tight text-s16 b588:text-s14 b680:text-s16 block whitespace-normal line-clamp-2 my-1.5 b1600:text-s18 b1600:leading-6 b1800:text-s20 b1800:leading-[26px]"),title:u,children:u})})}),(0,o.jsx)("div",{className:(0,c.W)("text-syc-gray-400","text-s12 leading-tight tracking-wide b1600:text-s15 b1600:tracking-normal b1800:text-s16"),children:_?(0,Z.b69)(_,x,g):(0,Z.g0d)(x,g,v,!1)}),(0,o.jsx)("div",{className:U().tooltip,children:(0,o.jsx)(J.Z,{category:(null===(t=r.category)||void 0===t?void 0:t.id)?r.category:r.channel,type:(null===(i=r.category)||void 0===i?void 0:i.id)?"category":"channel",onLinkClicked:X,className:"mt-2 flex items-center text-syc-gray-400 hover:text-black",avatarClassName:(0,c.W)("flex-shrink-0 rounded-full relative overflow-hidden","w-6 h-6 b1024:w-8 b1024:h-8 b1600:w-10 b1600:h-10"),titleClassName:"ml-2 text-s12 leading-tight tracking-wide b1600:text-s14 b1600:tracking-normal b1800:text-s16"})}),(0,o.jsx)(Q,{className:"hidden b588:line-clamp-2 text-syc-gray-400 mt-1 b1024:mt-2 b1366:mt-3 text-s12 leading-tight tracking-wide b1600:text-s14 b1600:tracking-normal b1800:text-s15",children:null===(n=null===f||void 0===f?void 0:f.trim())||void 0===n?void 0:n.replace(/\r\n/g," ").replace(/\n/g," ").replace(/\r/g," ")})]})})]})},ee=i(69175),te="END_OF_LIST";var ie=function(e){var t=e.dataId,i=e.className,l=e.hideNoResult,c=e.fetch
1More,d=e.onNoResult,u=e.searchTracking,v=e.type,h=function(){var e=(0,n.Z)((function(e){var t,i,n,a;return(0,s.__generator)(this,(function(r){switch(r.label){case 0:return e===te?[2,["",{list:[],startKey:e}]]:(t=Number(e||"0"),[4,c(t)]);case 1:return i=r.sent(),n=i.list,a=i.startKey,[2,["",{list:n,startKey:a||te}]]}}))}));return function(t){return e.apply(this,arguments)}}();return(0,o.jsx)(m.Z,{dataId:t,className:i,fetchMore:h,children:function(e){var t=e.items;return d(!t.length),t.length?"audio"===v?t.map((function(e,t){return(0,o.jsx)(A,(0,r.Z)((0,a.Z)({},e),{searchTracking:u?(0,r.Z)((0,a.Z)({},u),{click_position:t+1}):void 0}),"".concat(e.id,"_").concat(t))})):t.map((function(e,t){var i;if(e)return(null===(i=e.video_ids)||void 0===i?void 0:i.length)>0?(0,o.jsx)(ee.Z,{playlist:e,hideAvatar:!1,titleFontStyle:"tracking-tight leading-tight text-s16 b588:text-s14 b680:text-s16 block whitespace-normal line-clamp-2 my-1.5 b1600:text-s18 b1600:leading-6 b1800:text-s20 b1800:leading-[26px]",metaFontStyle:"ml-2 mb-0 text-s12 leading-tight tracking-wide b1600:text-s14 b1600:tracking-normal b1800:text-s16",customClassName:"search_block",searchTracking:u?(0,r.Z)((0,a.Z)({},u),{click_position:t+1}):void 0},"".concat(e.id,"_").concat(t)):(0,o.jsx)($,(0,r.Z)((0,a.Z)({},e),{searchTracking:u?(0,r.Z)((0,a.Z)({},u),{click_position:t+1}):void 0}),"".concat(e.id,"_").concat(t))})):!l&&(0,o.jsx)(g,{})}})},ne=i(38397),ae=i(68058),re=i(54958),le=i(70952),se=20,oe={all:"All",video:"Video",audio:"Audio",playlist:"Playlist"},ce="search",de=!0;function ue(){var e,t,i,d,f,m=(0,l.Z)((0,p.Z)(),3),x=m[0],y=m[2],_=(0,v.useRouter)(),k=(0,re.Z)(),w=k.s,j=k.type,N=void 0===j?"all":j,S=(0,h.useState)("all"===N),C=S[0],I=S[1],E=(0,h.useState)(!1),O=E[0],R=E[1],T=(0,h.useState)(!1),F=T[0],V=T[1],L=(0,h.useState)(!1),M=L[0],D=L[1],K=(0,h.useState)(),P=K[0],z=K[1],G=(0,h.useState)([]),H=G[0],U=G[1],B=(0,h.useState)(!1),q=B[0],W=B[1],J=(0,h.useRef)([]),Y=(0,h.useRef)(!1),Q=(0,h.useState)(!1),X=Q[0],te=Q[1],de=(0,h.useRef)(null),ue={start_page:_.asPath,search_query:w?decodeURIComponent(w):"",search_category:oe[N]||N,search_category_code:N,no_results:F||O},ve=(0,h.useCallback)((0,n.Z)((function(){var e;return(0,s.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,ne.s8)({locale:x,id:"all",pageSize:se,sortBy:"view",orderBy:"desc",with_desc:!0})];case 1:return e=t.sent(),(0,Z.qub)(ce)("getCategoryVideosWithRecommended response",e),null!==e.errorMsg?[2,[]]:[2,u()(e.data.list).slice(0,se)]}}))})),[x]),he=function(e,t,i){return e&&t&&t>se*(null!==i&&void 0!==i?i:0)?"".concat((null!==i&&void 0!==i?i:0)+1):void 0},fe=(0,h.useCallback)(function(){var e=(0,n.Z)((function(e){var t,i,n,r,l,o,c,d,u,v,h,f,m,p,b,g,y,_;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:if(!e)return[2];te(!1),D(!0),V(!1),W(!1),z(void 0),s.label=1;case 1:return s.trys.push([1,8,,9]),[4,(0,ae.Ok)((0,a.Z)({lan:x,search_text:decodeURIComponent(e),page_offset:0,page_size:se,id_only:!1,return_list:!0,search_all:"all"===N,is_web:!0},"all"!==N&&{search_type:N}))];case 2:return null!==(t=s.sent()).errorMsg?((0,Z.qub)(ce)("Error",t.errorMsg),D(!1),[2]):(i=t.data.list[0],de.current=t.data,"all"!==N?[3,7]:(null!==(o=null===(n=i.videos)||void 0===n?void 0:n.length)&&void 0!==o?o:0)+(null!==(c=null===(r=i.audios)||void 0===r?void 0:r.length)&&void 0!==c?c:0)+(null!==(d=null===(l=i.playlists)||void 0===l?void 0:l.length)&&void 0!==d?d:0)?[3,4]:[4,ve()]);case 3:return u=s.sent(),U(u),J.current=u,V(!0),I(!1),W(!0),Y.current=!0,D(!1),[2];case 4:return"videos"in i||"audios"in i||"playlists"in i?0!==(g=(null!==(m=null===(v=i.videos)||void 0===v?void 0:v.length)&&void 0!==m?m:0)+(null!==(p=null===(h=i.audios)||void 0===h?void 0:h.length)&&void 0!==p?p:0)+(null!==(b=null===(f=i.playlists)||void 0===f?void 0:f.length)&&void 0!==b?b:0))?[3,6]:[4,ve()]:[3,7];case 5:return y=s.sent(),U(y),V(!0),I(!1),W(!0),D(!1),[2];case 6:return z({videos:i.videos,audios:i.audios,length:g}),I(g>0),V(!1),W(!1),D(!1),[2];case 7:return I("all"===N),D(!1),[3,9];case 8:return _=s.sent(),(0,Z.qub)(ce)("fetchInitial exception",_),D(!1),[3,9];case 9:return[2]}}
1))}));return function(t){return e.apply(this,arguments)}}(),[x,N,ve]),me=(0,h.useCallback)(function(){var e=(0,n.Z)((function(e){var t,i,n,r,l,o,c,d,u,v,h,f,m,p,b,g,y,_,k,j,S,C,I,E,O,R,T,F,V,L,M,D,A,K;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return 0===e?(r=de.current)?(l=r.list[0],"all"===N?Y.current?[2,{list:H.slice(0,se),start_key:""}]:[2,{list:(null!==(d=null===(o=l.videos)||void 0===o?void 0:o.slice(2))&&void 0!==d?d:[]).concat(null!==(u=l.playlists)&&void 0!==u?u:[]),total:r.total,size:se,startKey:he(null===(c=l.videos)||void 0===c?void 0:c.length,r.total,0)}]:(te(!0),[2,{list:"audio"===N?null!==(v=l.audios)&&void 0!==v?v:[]:(null!==(h=l.videos)&&void 0!==h?h:[]).concat(null!==(f=l.playlists)&&void 0!==f?f:[]),total:r.total,size:se,startKey:he("audio"===N?null!==(m=null===(t=l.audios)||void 0===t?void 0:t.length)&&void 0!==m?m:0:(null!==(p=null===(i=l.videos)||void 0===i?void 0:i.length)&&void 0!==p?p:0)+(null!==(b=null===(n=l.playlists)||void 0===n?void 0:n.length)&&void 0!==b?b:0),r.total,0)}])):[2,{list:[]}]:[4,(0,ae.Ok)((0,a.Z)({lan:x,search_text:decodeURIComponent(w),page_offset:e*se,page_size:se,id_only:!1,return_list:!0,search_all:"all"===N,is_web:!0},"all"!==N&&{search_type:N}))];case 1:if(null!==(g=s.sent()).errorMsg)return(0,Z.qub)(ce)("Error",g.errorMsg),[2,{list:[]}];if(y=g.data.list[0],"all"===N)return g.data.list.length?(k=he(null===(_=y.videos)||void 0===_?void 0:_.length,g.data.total,e),"videos"in y||"audios"in y?e>0?[2,{list:null!==(S=y.videos)&&void 0!==S?S:[],total:g.data.total,startKey:k}]:[2,{list:(null!==(C=null===(j=y.videos)||void 0===j?void 0:j.slice(2))&&void 0!==C?C:[]).concat(null!==(I=y.playlists)&&void 0!==I?I:[]),total:g.data.total,size:se,startKey:k}]:[2,{list:[]}]):[2,{list:[]}];switch(N){case"audio":E=null!==(T=y.audios)&&void 0!==T?T:[],O=he(null!==(F=null===(R=y.audios)||void 0===R?void 0:R.length)&&void 0!==F?F:0,g.data.total,e);break;case"video":E=null!==(L=y.videos)&&void 0!==L?L:[],O=he(null!==(M=null===(V=y.videos)||void 0===V?void 0:V.length)&&void 0!==M?M:0,g.data.total,e);break;case"playlists":E=null!==(A=y.playlists)&&void 0!==A?A:[],O=he(null!==(K=null===(D=y.playlists)||void 0===D?void 0:D.length)&&void 0!==K?K:0,g.data.total,e)}return[2,{list:E,total:g.data.total,size:se,startKey:O}]}}))}));return function(t){return e.apply(this,arguments)}}(),[x,w,N,H,q]),pe=function(e){_.replace({pathname:_.pathname,query:(0,r.Z)((0,a.Z)({},_.query),{type:e})},void 0,{shallow:!0})};return(0,h.useEffect)((function(){w?(R(!1),fe(w)):(z(void 0),V(!1),I(!1),U([]),W(!1))}),[w,x,N,fe]),(0,h.useEffect)((function(){I("all"===N)}),[N]),N&&x&&w?(0,o.jsxs)("div",{className:"page max1920",children:[(0,o.jsx)("div",{className:"mt-5 flex gap-4 mb-6",children:["all","video","audio","playlist"].map((function(e){return(0,o.jsx)("button",{"data-testid":"search-results-type-tab",className:(0,c.Z)("inline-flex text-center justify-center items-center px-2 rounded-lg leading-8 cursor-pointer w-fit whitespace-nowrap",e===N?"bg-syc-bg-black text-white":"text-black bg-syc-bg-200 hover:bg-syc-bg-black hover:text-white"),onClick:function(){return e!==N&&pe(e)},children:y(b.GH.search.text[e])},e)}))}),M&&(0,o.jsx)(le.Z,{loading:M,size:8,color:"syc-gray-600"}),X&&!M&&O&&"all"!==N&&(0,o.jsx)(g,{}),(0,o.jsxs)("div",{className:"b1366:max-w-[1000px] b1480:max-w-[1200px]",children:[!M&&"all"===N&&F&&(0,o.jsx)("div",{className:"flex w-full items-center py-2 rounded-md mb-4 text-s20 b1800:text-[26px] leading-6 b1800:leading-8",children:y(b.GH.search.text.suggestion)}),!M&&C&&(0,o.jsxs)(o.Fragment,{children:[null===P||void 0===P||null===(e=P.videos)||void 0===e?void 0:e.slice(0,2).map((function(e,t){var i;if(e)return(null===(i=e.video_ids)||void 0===i?void 0:i.length)>0?(0,o.jsx)(ee.Z,{playlist:e,hideAvatar:!1,titleFontStyle:"tracking-tight leading-tight text-s16 b588:text-s14 b680:text-s16 block whitespace-normal line-clamp-2 my-1.5 b1600:text-s18 b1600:leading-6 b1800:text-s20 b1800:leading-[26px]",metaFontStyle:"ml-2 mb-0 text-s12 leading-tight tracking-wide b1600:text-s14 b1600:tracking-normal b1800:text-s16",customClassName:"search_block",searchTracking:(0,r.Z)((0,a.Z)({},ue),{click_position:t+1})},"".concat(e.id,"_").concat(t)):(0,o.jsx)($,(0,r.Z)((0,a.Z)({},e),{searchTracking:(0,r.Z)((0,a.Z)({},ue),{click_position:t+1})}
1),e.id)})),!!(null===P||void 0===P||null===(t=P.audios)||void 0===t?void 0:t.length)&&(0,o.jsxs)(o.Fragment,{children:[!!(null===P||void 0===P||null===(i=P.videos)||void 0===i?void 0:i.length)&&(0,o.jsx)("hr",{className:"mt-6"}),(0,o.jsx)("h3",{className:"mt-6 syzp-font-a text-s14 uppercase leading-[21px] font-semibold",children:y(b.GH.search.text.audio)}),(0,o.jsx)("div",{className:"mt-4",children:null===P||void 0===P||null===(d=P.audios)||void 0===d?void 0:d.slice(0,5).map((function(e,t){var i;return(0,o.jsx)(A,(0,r.Z)((0,a.Z)({},e),{searchTracking:(0,r.Z)((0,a.Z)({},ue),{click_position:((null===P||void 0===P||null===(i=P.videos)||void 0===i?void 0:i.slice(0,2).length)||0)+t+1})}),e.id)}))}),(0,o.jsx)("button",{className:"mt-4",onClick:function(){return pe("audio")},children:y(b.GH.search.text.showAll)}),((null===P||void 0===P||null===(f=P.videos)||void 0===f?void 0:f.length)||0)>2&&(0,o.jsx)("hr",{className:"my-6"})]})]}),!M&&(0,o.jsx)(ie,{dataId:"".concat(N,"_").concat(w,"_").concat(x),fetchMore:me,onNoResult:function(e){setTimeout((function(){X&&(M||R("all"!==N&&e))}),0)},type:N,hideNoResult:!0,searchTracking:ue})]})]}):null}ue.layout=f.Z},76121:function(e){e.exports={grid_block:"ivblock_grid_block__2yyq_",hover_effect:"ivblock_hover_effect__kdOgS","has-playlist":"ivblock_has-playlist__6h5QB",block_container:"ivblock_block_container__xQJG5",title_div:"ivblock_title_div__ZQcIS",tooltip:"ivblock_tooltip___BfWE",playlist:"ivblock_playlist__JTwm9",news:"ivblock_news__gSnzu",price:"ivblock_price__FROuH",premium_label:"ivblock_premium_label__uBl6Y",tooltiptext:"ivblock_tooltiptext__QgSuY",homepage_title:"ivblock_homepage_title__FSIdQ",title:"ivblock_title__kteph",floating_buttons:"ivblock_floating_buttons__vDXsp",thumbnail_bg_layer:"ivblock_thumbnail_bg_layer__bILef",thumbnail_img:"ivblock_thumbnail_img__1Hs4S",thumbnail_block:"ivblock_thumbnail_block__JD2V5",show_all:"ivblock_show_all__g8hMZ",ivb_row:"ivblock_ivb_row__ZYrsU","clip-mode-active":"ivblock_clip-mode-active__6Nrmh",search_block:"ivblock_search_block__DMH3K"}},22578:function(e){e.exports={navbar_item:"navBar_navbar_item__ZCP_P",active:"navBar_active__W_Nkk"}},47997:function(e){e.exports={track:"track_track__TLp0w",nowPlaying:"track_nowPlaying__mBuj1",playing:"track_playing__F04jK",indicator:"track_indicator__iXwUZ",playlist:"track_playlist__RwAmf",mobile:"track_mobile__1maLU",active:"track_active__5qXAQ",duration:"track_duration__Gedq4",playControl:"track_playControl__TyuhH",shown:"track_shown__qcte8",playOrPause:"track_playOrPause__P1vhT",title:"track_title__Q8r65",album:"track_album__4OyAD"}},70131:function(e,t,i){"use strict";i.d(t,{YD:function(){return m}});var n=i(67294);function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},a.apply(this,arguments)}function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}var l=new Map,s=new WeakMap,o=0,c=void 0;function d(e){return Object.keys(e).sort().filter((function(t){return void 0!==e[t]})).map((function(t){return t+"_"+("root"===t?(i=e.root)?(s.has(i)||(o+=1,s.set(i,o.toString())),s.get(i)):"0":e[t]);var i})).toString()}function u(e,t,i,n){if(void 0===i&&(i={}),void 0===n&&(n=c),"undefined"===typeof window.IntersectionObserver&&void 0!==n){var a=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"===typeof i.threshold?i.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),function(){}}var r=function(e){var t=d(e),i=l.get(t);if(!i){var n,a=new Map,r=new IntersectionObserver((function(t){t.forEach((function(t){var i,r=t.isIntersecting&&n.some((function(e){return t.intersectionRatio>=e}));e.trackVisibility&&"undefined"===typeof t.isVisible&&(t.isVisible=r),null==(i=a.get(t.target))||i.forEach((function(e){e(r,t)}))}))}),e);n=r.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),i={id:t,observer:r,elements:a},l.set(t,i)}return i}(i),s=r.id,o=r.observer,u=r.elements,v=u.get(e)||[];return u.has(e)||u.set(e,v),v.push(t),o.observe(e),function(){v.splice(v.indexOf(t),1),0===v.length&&(u.delete(e),o.unobserve(e)),0===u.size&&(o.disconnect(),l.delete(s))}}var v=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function h(e){return"function"!==typeof e.children}var f=function(e){var t,i;function l(t){var i;return(i=e.call(this,t)||this).node=null,i._unobserveCb=null,i.handleNode=function(e){i.node&&(i.unobserve(),e||i.props.triggerOnce||i.props.skip||i.setState({inView:!!i.props.initialInView,entry:void 0})),i.node=e||null,i.observeNode()},i.handleChange=function(e,t){e&&i.props.triggerOnce&&i.unobserve(),h(i.props)||i.setState({inView:e,entry:t}),i.props.onChange&&i.props.onChange(e,t)},i.state={inView:!!t.initialInView,entry:void 0},i}i=e,(t=l).prototype=Object.create(i.prototype),t.prototype.constructor=t,r(t,i);var s=l.prototype;return s.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},s.componentWillUnmount=function(){this.unobserve(),this.node=null},s.observeNode=function(){if(this.node&&!this.props.skip){var e=this.props,t=e.threshold,i=e.root,n=e.rootMargin,a=e.trackVisibility,r=e.delay,l=e.fallbackInView;this._unobserveCb=u(this.node,this.handleChange,{threshold:t,root:i,rootMargin:n,trackVisibility:a,delay:r},l)}},s.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},s.render=function(){if(!h(this.props)){var e=this.state,t=e.inView,i=e.entry;return this.props.children({inView:t,entry:i,ref:this.handleNode})}
1var r=this.props,l=r.children,s=r.as,o=function(e,t){if(null==e)return{};var i,n,a={},r=Object.keys(e);for(n=0;n<r.length;n++)i=r[n],t.indexOf(i)>=0||(a[i]=e[i]);return a}(r,v);return n.createElement(s||"div",a({ref:this.handleNode},o),l)},l}(n.Component);function m(e){var t=void 0===e?{}:e,i=t.threshold,a=t.delay,r=t.trackVisibility,l=t.rootMargin,s=t.root,o=t.triggerOnce,c=t.skip,d=t.initialInView,v=t.fallbackInView,h=n.useRef(),f=n.useState({inView:!!d}),m=f[0],p=f[1],b=n.useCallback((function(e){void 0!==h.current&&(h.current(),h.current=void 0),c||e&&(h.current=u(e,(function(e,t){p({inView:e,entry:t}),t.isIntersecting&&o&&h.current&&(h.current(),h.current=void 0)}),{root:s,rootMargin:l,threshold:i,trackVisibility:r,delay:a},v))}),[Array.isArray(i)?i.toString():i,s,l,o,c,r,v,a]);(0,n.useEffect)((function(){h.current||!m.entry||o||c||p({inView:!!d})}));var x=[b,m.inView,m.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}f.displayName="InView",f.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}}},function(e){e.O(0,[5675,3806,1033,1891,4231,2175,377,4262,9565,7346,8208,8624,9774,2888,179],(function(){return t=27592,e(e.s=t);var t}));var t=e.O();_N_E=t}]);

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.