1 line
34 KiB
Plaintext
1 line
34 KiB
Plaintext
(()=>{"use strict";var t={1411:(t,e,n)=>{n.d(e,{Lb:()=>r.L,PG:()=>i.P,hj:()=>o.h});var o=n(9773),r=n(6827),i=(n(172),n(5405),n(7938))},9773:(t,e,n)=>{function o(t,e,n){var o=new XMLHttpRequest;o.onreadystatechange=function(){4==o.readyState&&(200==o.status?e&&e(o.responseText):n&&n(o))},o.open("GET",t,!0),o.send(null)}n.d(e,{h:()=>o})},6827:(t,e,n)=>{n.d(e,{L:()=>r});var o=function(){try{if(!("localStorage"in window)||null===window.localStorage)return!1;try{localStorage.setItem("_admstorage",""),localStorage.removeItem("_admstorage")}catch(t){return!1}return!0}catch(t){return!1}}(),r={version:"1.0.0",paramFlash:{},lcStorage:{timestamp:"timestamp_",get_exprises:function(t,e,n,o){return e=(t+="").indexOf(e,n),n=t.length-1,-1!=e?(-1==(o=t.indexOf(o,e))&&(o=n),t.substring(e,o)):""},get_item:function(t,e){var n=localStorage.getItem(t),o=(new Date).getTime(),r=this.timestamp;if(""==n||null==n)return"";if(-1==n.indexOf("timestamp_"))return n;var i,a="_azs"==t?";":",";return""==(i=(i=this.get_exprises(n,r,0,a)).replace(r,""))||isNaN(parseInt(i))||parseInt(i)<o?"":n=n.replace(r+i+a,"")}},getDomainGuid:function(){return window.__admloadPageIdc||window.__admloadPageRdIdc||this.createDomainGuid()},makeDomainGuid:function(){function t(t){return void 0!==t&&t&&2==t?Math.floor(256*(1+Math.random())).toString(16).substring(1):Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return"01"+Math.floor((new Date).getTime()/1e3).toString(16)+t(2)+t(4)+t(4)+t(4)+t(4)+t(4)},createDomainGuid:function(){var t,e="";return t=this.getCookie("__uidac"),o&&""==(e=localStorage.__uidac||t)&&(e=this.makeDomainGuid(),localStorage.__uidac=e,window.__admloadPageIdc=e,window.__admloadPageRdIdc=e,this.setCookie("__uidac",e,2e3,"/","."+document.domain)),""==e&&(e=this.makeDomainGuid(),this.setCookie("__uidac",e,2e3,"/","."+document.domain),window.__admloadPageIdc=e,window.__admloadPageRdIdc=e),e},setCookie:function(t,e,n,o,r,i){for(var a in(new Date).getTime(),"/",n=0==n||""==n?new Date(+new Date+63072e7).toGMTString():new Date(+new Date+864e5*n).toGMTString(),t=[t+"="+escape(e)],n={expires:n,path:"/",domain:r})n[a]&&t.push(a+"="+n[a]);return i&&t.push("secure"),document.cookie=t.join(";"),!0},getCookie:function(t){let e=t+"=",n=window.unescape(document.cookie).split(";");for(let t=0;t<n.length;t++){let o=n[t];for(;" "==o.charAt(0);)o=o.substring(1);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return""},get:function(t){if("__uidac"==t)return this.getDomainGuid();var e="",n=t;if("__ui"!=t&&"__uid"!=t&&"__create"!=t||(n=t,t="__uif"),"__uif"==t&&(o&&null!=(e=localStorage.__uif)&&""!=e||(e=this.getCookie("__uif")),""!=e)){var r=new RegExp(n+":([0-9+%C]+)").exec(e);if(r&&r.length>1)return(e=r[1])||""}if(o){var i=localStorage[n];i&&""!=i&&(e=i.replace(/timestamp_[0-9]+?,/g,""))}return""==e&&(e=this.getCookie(n)),e||""},getParam:function(){try{var t=this.get("__create")||this.getCookie("__create"),e=this.get("__uid")||this.getCookie("__uid");return 30<e.length&&(e=""),""==e&&(t=""),11<t.length&&""!=e&&(t=Math.floor((new Date).getTime()/1e3)),"&ce=1&lc="+this.get("__RC")+"&cr="+t+"&ui="+e+"&dg="+(this.get("__uidac")||this.getCookie("__uidac"))}catch(t){return""}},getInfoParam:function(){return`&ce=1&guie=1&ui=${this.get("__uid")}&cr=${this.get("__create")}&dg=${this.get("__uidac")||this.getCookie("__uidac")}`}}},172:(t,e,n)=>{},7938:(t,e,n)=>{function o(t,e,n){if(0==e||void 0===e)return t;var o=/https:\/\/[^\/]+\//i.exec(t),r="";return o?(r=o[0],-1!=t.indexOf(r)&&(t=t.replace(r,"")),String.format=function(t){if(arguments.length<=1)return t;for(var e=arguments.length-2,n=0;n<=e;n++)t=t.replace(new RegExp("\\{"+n+"\\}","gi"),arguments[n+1]);return t},n?String.format("{0}zoom/{1}_{2}/{3}",r,e,n,t.trimStart("/")):String.format("{0}thumb_w/{1}/{3}",r,e,n,t.trimStart("/"))):t}n.d(e,{P:()=>o})},5405:(t,e,n)=>{},1775:(t,e,n)=>{n.d(e,{Z:()=>c});var o=n(8081),r=n.n(o),i=n(3645),a=n.n(i)()(r());a.push([t.id,'#thanhnien-8tinnoibat{margin-bottom:25px;justify-content:space-between;display:flex}#thanhnien-8tinnoibat a{text-decoration:none}#thanhnien-8tinnoibat h2,#thanhnien-8tinnoibat h3{padding:0;margin:0}#thanhnien-8tinnoibat .soha-left{width:565px;max-width:100%}#thanhnien-8tinnoibat .soha-right{width:235px}#thanhnien-8tinnoibat .img-resize{display:block;position:relative;height:max-content}#thanhnien-8tinnoibat .img-resize:before{padding-bottom:62.5%;content:"";display:block}#thanhnien-8tinnoibat .img-resize .box-category-avatar{position:absolute;top:0;left:0;width:100%;height:100%;bottom:0;margin:auto;background-size:cover;background-position:center;object-fit:cover}#thanhnien-8tinnoibat .item-sub{width:calc(100% + 32px);margin-left:-16px;display:flex;flex-wrap:wrap;border-top:1px solid #ebebeb}#thanhnien-8tinnoibat .item-sub .box-category-item{width:25%;padding:18px 16px 32px;border-bottom:1px solid #ebebeb}#thanhnien-8tinnoibat .item-sub .box-category-item .box-category-link-with-avatar{margin-bottom:8px}#thanhnien-8tinnoibat .item-sub .box-category-item .box-category-link-title{font-weight:700;font-size:14px;line-height:20px;color:#292929;display:block}',""]);const c=a},3645:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,o,r,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(o)for(var c=0;c<this.length;c++){var s=this[c][0];null!=s&&(a[s]=!0)}for(var d=0;d<t.length;d++){var l=[].concat(t[d]);o&&a[l[0]]||(void 0!==i&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),r&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=r):l[4]="".concat(r)),e.push(l))}},e}},8081:t=>{t.exports=function(t){return t[1]}},3379:t=>{var e=[];function n(t){for(var n=-1,o=0;o<e.length;o++)if(e[o].identifier===t){n=o;break}return n}function o(t,o){for(var i={},a=[],c=0;c<t.length;c++){var s=t[c],d=o.base?s[0]+o.base:s[0],l=i[d]||0,u="".concat(d," ").concat(l);i[d]=l+1;var h=n(u),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==h)e[h].references++,e[h].updater(p);else{var f=r(p,o);o.byIndex=c,e.splice(c,0,{identifier:u,updater:f,references:1})}a.push(u)}return a}function r(t,e){var n=e.domAPI(e);n.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var i=o(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<i.length;a++){var c=n(i[a]);e[c].references--}for(var s=o(t,r),d=0;d<i.length;d++){var l=n(i[d]);0===e[l].references&&(e[l].updater(),e.splice(l,1))}i=s}}},569:t=>{var e={};t.exports=function(t,n){var o=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},9216:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7795:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(o,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4589:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},6488:(t,e,n)=>{n.d(e,{B:()=>s});var o=n(2479);const r=(...t)=>console.log("[HMR:Svelte]",...t),i=()=>{const t="undefined"!=typeof window&&window;t&&t.location&&t.location.reload?(r("Reload"),t.location.reload()):r("Full reload required")},a=t=>{if(null==t)return;if("undefined"==typeof document)return;const e=document.getElementById(t);e&&e.remove()},c={reload:i},s=t=>e=>function(t){const{id:e,cssId:n,nonCssHash:c,reload:s=i,hot:l,hotOptions:u,Component:h,acceptable:p,preserveLocalState:f,ProxyAdapter:m,emitCss:g}=t,b=l.data&&l.data.record,_=p&&(!b||b.current.canAccept),y=b||(0,o.D)({Adapter:m,id:e,Component:h,hotOptions:u,canAccept:_,preserveLocalState:f}),v=u.injectCss&&b&&c&&b.current.nonCssHash===c;y.update({Component:h,hotOptions:u,canAccept:_,nonCssHash:c,cssId:n,previousCssId:y.current.cssId,cssOnly:v,preserveLocalState:f}),l.dispose((t=>{(d||(0,o.W)())&&(u&&u.noReload?r("Full reload required"):s()),(t=t||l.data).record=y,!g&&n&&y.current.cssId!==n&&(u.cssEjectDelay?setTimeout((()=>a(n)),u.cssEjectDelay):a(n))})),_&&l.accept((async t=>{const{bubbled:e}=t||{},{cssId:n,previousCssId:r}=y.current,i=n!==r;if(!g&&i&&a(r),!1===e&&y.current.cssOnly&&(!i||((t,e)=>{if("undefined"==typeof document)return!1;if(!t)return!1;if(!e)return!1;const n=t.slice(0,-6),o=e.slice(0,-6);return document.querySelectorAll("."+n).forEach((t=>{t.classList.remove(n),t.classList.add(o)})),!0})(r,n)))return;const c=await y.reload();((0,o.W)()||!c&&!u.optimistic)&&(d=!0)}));if(!y||!y.proxy)throw new Error(`Failed to create HMR proxy for Svelte component ${e}`);return y.proxy}(t({...c,...e}));let d=!1},2210:(t,e,n)=>{n.d(e,{B:()=>o.B});var o=n(6488)},400:(t,e,n)=>{n.d(e,{Z:()=>o});const o=()=>{let t=[],e=null;const n={section:"\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 32px;\n background: rgba(0, 0, 0, .85);\n font-family: Menlo, Consolas, monospace;\n font-size: large;\n color: rgb(232, 232, 232);\n overflow: auto;\n z-index: 2147483647;\n ",h1:"\n margin-top: 0;\n color: #E36049;\n font-size: large;\n font-weight: normal;\n ",h2:"\n margin: 32px 0 0;\n font-size: large;\n font-weight: normal;\n ",pre:""},o=t=>{c.h1.textContent=t},r=()=>{const{el:t}=c;if(!t.parentNode){document.body.appendChild(c.el)}},i=()=>{if(e){c.body.innerHTML="",o("Failed to compile");const t=a(e);c.body.appendChild(t),r()}else t.length>0?(c.body.innerHTML="",o("Failed to init component"),t.forEach((({title:t,message:e})=>{const n=a(e,t);c.body.appendChild(n)})),r()):(()=>{const{el:t}=c;t.parentNode&&c.el.remove()})()},a=(t,e)=>{const o=document.createElement("div");if(e){const t=document.createElement("h2");t.textContent=e,t.style=n.h2,o.appendChild(t)}const r=document.createElement("pre");return r.textContent=t,o.appendChild(r),o},c=(()=>{const t=document.createElement("h1");t.style=n.h1;const e=document.createElement("section");e.appendChild(t),e.style=n.section;const o=document.createElement("div");return e.appendChild(o),{h1:t,el:e,body:o}})();return{addError:(e,n)=>{const o=e&&e.stack||e;t.push({title:n,message:o}),i()},clearErrors:()=>{t.forEach((({element:t})=>{var e;(e=t)&&e.parentNode&&e.parentNode.removeChild(e)})),t=[],i()},setCompileError:t=>{e=t,i()}}}},3781:(t,e,n)=>{var o=n(4234),r=n(400);const i=o.ZMF||o.$Tr;if(!i)throw new Error("failed to find insert_hydration and insert in svelte/internal");const a=class{constructor(t){this.instance=t,this.insertionPoint=null,this.afterMount=this.afterMount.bind(this),this.rerender=this.rerender.bind(this),this._noOverlay=!!t.hotOptions.noOverlay}static getErrorOverlay(t=!1){return t||this.errorOverlay||(this.errorOverlay=(0,r.Z)()),this.errorOverlay}static renderCompileError(t){const e=!t,n=this.getErrorOverlay(e);n&&n.setCompileError(t)}dispose(){var t;this.insertionPoint&&((t=this.insertionPoint)&&t.parentNode&&t.parentNode.removeChild(t),this.insertionPoint=null),this.clearError()}afterMount(t,e){const{instance:{debugName:n}}=this;this.insertionPoint||(this.insertionPoint=document.createComment(n)),i(t,this.insertionPoint,e)}rerender(){this.clearError();const{instance:{refreshComponent:t},insertionPoint:e}=this;if(!e)throw new Error("Cannot rerender: missing insertion point");t(e.parentNode,e)}renderError(t){if(this._noOverlay)return;const{instance:{debugName:e}}=this,n=e||t.moduleName||"Error";this.constructor.getErrorOverlay().addError(t,n)}clearError(){if(this._noOverlay)return;const t=this.constructor.getErrorOverlay(!0);t&&t.clearErrors()}};"undefined"!=typeof window&&(window.__SVELTE_HMR_ADAPTER=a)},2479:(t,e,n)=>{n.d(e,{D:()=>v,W:()=>y});var o=n(2367);const r=["constructor","$destroy"],i=["$set","$on"],a=(t,e)=>{console.error("[HMR][Svelte]",t),e&&console.error(e)},c=t=>`<${(t=>{return e=(t=>t.split("/").pop().split(".").slice(0,-1).join("."))(t.replace(/[/\\]/g,"/")),e[0].toUpperCase()+e.slice(1);var e})(t)}>`,s=(t,e,n={})=>{for(const o of e)n[o]=function(...e){const n=t();if(n)return n[o]&&n[o].call(this,...e)};return n},d=t=>"$$"!==t&&"$$"===t.slice(0,2),l=(t,e)=>{Object.keys(t).filter(d).forEach((e=>{delete t[e]})),e&&Object.keys(e).filter(d).forEach((n=>{Object.defineProperty(t,n,{configurable:!0,get(){const t=e[n];return"function"!=typeof t?t:t&&function(...e){return t.apply(this,e)}}})}))};class u{constructor({Adapter:t,id:e,debugName:n,current:c,register:d},u){let h,p=!1,f=null;const m=t=>{h=t,l(this,h)},g=t=>{f=t,b.renderError(t)},b=new t({hotOptions:c.hotOptions,proxy:this,id:e,debugName:n,refreshComponent:(t,e,o)=>{if(f)f=null,b.rerender();else try{const n={target:t,anchor:e,preserveLocalState:c.preserveLocalState};o&&(n.conservativeDestroy=!0),h.$replace(c.Component,n)}catch(o){if(g(o,t,e),!c.hotOptions.optimistic||!c.canAccept||o&&o.hmrFatal)throw o;a(`Error during component init: ${n}`,o)}}}),{afterMount:_,rerender:y}=b,v=()=>{p||(p=!0,b.dispose(),$())},$=d(y);this.$destroy=()=>{h&&(h.$destroy(),m(null)),v()},s((()=>h),i,this);try{let t;(0,o.W)(c.Component,u,{allowLiveBinding:c.hotOptions.allowLiveBinding,onDestroy:v,onMount:_,onInstance:e=>{m(e),this.$$=e.$$,t=((t,e,n)=>(n&&n.forEach((e=>{delete t[e]})),Object.getOwnPropertyNames(Object.getPrototypeOf(e)).filter((n=>{if(!r.includes(n)&&!i.includes(n))return Object.defineProperty(t,n,{configurable:!0,get:()=>e[n],set(t){e[n]=t}}),!0}))))(this,e,t)}})}catch(t){const{target:e,anchor:n}=u;throw g(t,e,n),t}}}const h=(t,e,n)=>{if(n)for(const t of n)delete e[t];const o=[];for(const n in t)o.push(n),e[n]=t[n];return o},p={},f=(t,e)=>{t=t.toLowerCase(),p[t]||(p[t]=[]),p[t].push(e)},m=(t,...e)=>{const n=p[t];if(n)for(const t of n)t(...e)},g=()=>m("beforeupdate"),b=()=>m("afterupdate");"undefined"!=typeof window&&(window.__SVELTE_HMR={on:f},window.dispatchEvent(new CustomEvent("svelte-hmr:ready")));let _=!1;const y=()=>_;function v({Adapter:t,id:e,Component:n,hotOptions:o,canAccept:r,preserveLocalState:i}){const s=c(e),d=[],l={Component:n,hotOptions:o,canAccept:r,preserveLocalState:i},p=`Proxy${s}`,f={[p]:class extends u{constructor(n){try{super({Adapter:t,id:e,debugName:s,current:l,register:t=>{d.push(t);return()=>{const e=d.indexOf(t);d.splice(e,1)}}},n)}catch(t){throw _||(_=!0,a(`Unrecoverable HMR error in ${s}: next update will trigger a full reload`)),t}}}}[p];let m=h(l.Component,f);return{id:e,proxy:f,update:t=>Object.assign(l,t),reload:()=>{g(),m=h(l.Component,f,m);const t=[];return d.forEach((e=>{try{e()}catch(e){a(`Failed to rerender ${s}`,e),t.push(e)}})),!(t.length>0)&&(b(),!0)},hasFatalError:()=>_,current:l}}},2367:(t,e,n)=>{n.d(e,{W:()=>i});var o=n(4234);const r=(t,e)=>{e&&(e.callbacks&&(t.$$.callbacks=e.callbacks),e.bound&&((t,e)=>{const n={};for(const[t,o]of Object.entries(e.props))n[o]=t;for(const[o,r]of Object.entries(e.bound)){const e=n[o];if(null==e)continue;const i=t.$$.props[e];t.$$.bound[i]=r,r(t.$$.ctx[i])}})(t,e))},i=(t,e,{allowLiveBinding:n,onInstance:i,onMount:a,onDestroy:c})=>{let s,d=e;const l=t=>{const n=(t,e,n)=>{(0,o.luv)(u||n);const i=new t(d);return l(i),r(i,e),i};if((t=>{"undefined"!=typeof Proxy&&(t.$$.props=new Proxy(t.$$.props,{get:(t,e)=>(void 0===t[e]&&(t[e]="hmr_future_"+e),t[e]),set(t,e,n){t[e]=n}}))})(t),t.$$.on_hmr=[],t.$replace=(o,{target:r=d.target,anchor:i=d.anchor,preserveLocalState:a,conservative:c=!1})=>{const l=(t=>{if(!t)throw new Error("Missing component");if(!t.$$)throw new Error("Invalid component");const{$$:{callbacks:e,bound:n,ctx:o,props:r}}=t,i=t.$capture_state(),a={};return Object.keys(t.$$.props).forEach((t=>{a[t]=o[r[t]]})),{ctx:o,props:r,callbacks:e,bound:n,state:i,hmr_props_values:a}})(t);((t,n,o,r)=>{const i=Object.assign({},d.props);if(d.props&&o.hmr_props_values)for(const t of Object.keys(d.props))o.hmr_props_values.hasOwnProperty(t)&&(i[t]=o.hmr_props_values[t]);if(r&&o.state)if(Array.isArray(r)){i.$$inject={};for(const t of r)i.$$inject[t]=o.state[t]}else i.$$inject=o.state;else delete i.$$inject;d=Object.assign({},e,{target:t,anchor:n,props:i,hydrate:!1})})(r||d.target,i,l,a);const u=s?s.$$.on_hmr:[],h=u.map((t=>t(s))).filter(Boolean),p=s;if(c)try{const t=n(o,l,p);s=null,p.$destroy(),s=t}catch(t){throw s=p,t}else s=null,p&&p.$destroy(),s=n(o,l,s);s.$$.hmr_cmp=s;for(const t of h)t(s);return s.$$.on_hmr=u,s},a){const e=t.$$.fragment.m;t.$$.fragment.m=(...t)=>{const n=e(...t);return a(...t),n}}if(c&&t.$$.on_destroy.push((()=>{s===t&&c()})),i&&i(t),a){const{target:t,anchor:e}=d;t&&a(t,e)}},u=n?o.xLP:(()=>{try{return(0,o.w2L)()}catch(t){if("Function called outside component initialization"===t.message)return o.xLP;throw t}})();return s=new t(d),s.$$.hmr_cmp=s,l(s),s}},2985:(t,e,n)=>{n.d(e,{Z:()=>s});var o=n(4234),r=n(1411);n(96),n(3781);function i(t){let e,n,r,i,a,c,s,d,l,u;return{c(){e=(0,o.bGB)("div"),n=(0,o.bGB)("a"),r=(0,o.bGB)("img"),c=(0,o.DhX)(),s=(0,o.bGB)("h3"),d=(0,o.bGB)("a"),l=(0,o.fLW)(t[1]),(0,o.Ljt)(r,"data-type","avatar"),(0,o.Jn4)(r.src,i=t[0])||(0,o.Ljt)(r,"src",i),(0,o.Ljt)(r,"loading","lazy"),(0,o.Ljt)(r,"class","box-category-avatar"),(0,o.Ljt)(r,"alt",t[1]),(0,o.Ljt)(r,"title",t[1]),(0,o.Ljt)(r,"srcset",a=t[0]+" 1x,"+t[7]+" 2x"),(0,o.Ljt)(n,"class","box-category-link-with-avatar img-resize"),(0,o.Ljt)(n,"href",t[6]),(0,o.Ljt)(n,"title",t[1]),(0,o.Ljt)(n,"data-id",t[3]),(0,o.Ljt)(d,"data-linktype","newsdetail"),(0,o.Ljt)(d,"data-trimline","4"),(0,o.Ljt)(d,"data-id",t[3]),(0,o.Ljt)(d,"class","box-category-link-title"),(0,o.Ljt)(d,"data-newstype",t[4]),(0,o.Ljt)(d,"data-type",t[4]),(0,o.Ljt)(d,"href",t[6]),(0,o.Ljt)(d,"title",t[1]),(0,o.Ljt)(s,"class","box-title-text"),(0,o.Ljt)(s,"data-vr-headline",""),(0,o.Ljt)(e,"class","box-category-item"),(0,o.Ljt)(e,"data-vr-contentbox",u="Home - Nổi bật "+t[5]),(0,o.Ljt)(e,"data-vr-contentbox-url",t[2])},m(t,i){(0,o.$Tr)(t,e,i),(0,o.R3I)(e,n),(0,o.R3I)(n,r),(0,o.R3I)(e,c),(0,o.R3I)(e,s),(0,o.R3I)(s,d),(0,o.R3I)(d,l)},p(t,[c]){1&c&&!(0,o.Jn4)(r.src,i=t[0])&&(0,o.Ljt)(r,"src",i),2&c&&(0,o.Ljt)(r,"alt",t[1]),2&c&&(0,o.Ljt)(r,"title",t[1]),129&c&&a!==(a=t[0]+" 1x,"+t[7]+" 2x")&&(0,o.Ljt)(r,"srcset",a),64&c&&(0,o.Ljt)(n,"href",t[6]),2&c&&(0,o.Ljt)(n,"title",t[1]),8&c&&(0,o.Ljt)(n,"data-id",t[3]),2&c&&(0,o.rTO)(l,t[1]),8&c&&(0,o.Ljt)(d,"data-id",t[3]),16&c&&(0,o.Ljt)(d,"data-newstype",t[4]),16&c&&(0,o.Ljt)(d,"data-type",t[4]),64&c&&(0,o.Ljt)(d,"href",t[6]),2&c&&(0,o.Ljt)(d,"title",t[1]),32&c&&u!==(u="Home - Nổi bật "+t[5])&&(0,o.Ljt)(e,"data-vr-contentbox",u),4&c&&(0,o.Ljt)(e,"data-vr-contentbox-url",t[2])},i:o.ZTd,o:o.ZTd,d(t){t&&(0,o.ogt)(e)}}}function a(t,e,n){let o,i,{title:a}=e,{url:c}=e,{image:s}=e,{id:d}=e,{type:l}=e,{index:u}=e;return i=s,s=(0,r.PG)(s,160,100),i=(0,r.PG)(i,320,200),o=c.replace(/htt(ps|p):\/\/thanhnien.vn/gi,""),t.$$set=t=>{"title"in t&&n(1,a=t.title),"url"in t&&n(2,c=t.url),"image"in t&&n(0,s=t.image),"id"in t&&n(3,d=t.id),"type"in t&&n(4,l=t.type),"index"in t&&n(5,u=t.index)},[s,a,c,d,l,u,o,i]}t=n.hmd(t);class c extends o.f_C{constructor(t){super(),(0,o.S1n)(this,t,a,i,o.N8,{title:1,url:2,image:0,id:3,type:4,index:5})}}t&&t.hot;const s=c},4554:(t,e,n)=>{n.d(e,{Z:()=>l});var o=n(4234),r=n(2985);n(1411),n(96),n(3781);function i(t,e,n){const o=t.slice();return o[3]=e[n],o[5]=n,o}function a(t){let e,n;const i=[t[3],{index:t[5]+5}];let a={};for(let t=0;t<i.length;t+=1)a=(0,o.f0i)(a,i[t]);return e=new r.Z({props:a}),{c(){(0,o.YCL)(e.$$.fragment)},m(t,r){(0,o.yef)(e,t,r),n=!0},p(t,n){const r=1&n?(0,o.LoY)(i,[(0,o.gCg)(t[3]),i[1]]):{};e.$set(r)},i(t){n||((0,o.Ui)(e.$$.fragment,t),n=!0)},o(t){(0,o.etI)(e.$$.fragment,t),n=!1},d(t){(0,o.vpE)(e,t)}}}function c(t){let e,n,r=t[0],c=[];for(let e=0;e<r.length;e+=1)c[e]=a(i(t,r,e));const s=t=>(0,o.etI)(c[t],1,1,(()=>{c[t]=null}));return{c(){e=(0,o.bGB)("div");for(let t=0;t<c.length;t+=1)c[t].c();(0,o.Ljt)(e,"class","item-sub")},m(t,r){(0,o.$Tr)(t,e,r);for(let t=0;t<c.length;t+=1)c[t]&&c[t].m(e,null);n=!0},p(t,[n]){if(1&n){let d;for(r=t[0],d=0;d<r.length;d+=1){const s=i(t,r,d);c[d]?(c[d].p(s,n),(0,o.Ui)(c[d],1)):(c[d]=a(s),c[d].c(),(0,o.Ui)(c[d],1),c[d].m(e,null))}for((0,o.dvw)(),d=r.length;d<c.length;d+=1)s(d);(0,o.gbL)()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)(0,o.Ui)(c[t]);n=!0}},o(t){c=c.filter(Boolean);for(let t=0;t<c.length;t+=1)(0,o.etI)(c[t]);n=!1},d(t){t&&(0,o.ogt)(e),(0,o.RMB)(c,t)}}}function s(t,e,n){let{dataMarkedZone:o}=e,{data:r}=e,{ele:i}=e;return document.getElementById(i).setAttribute("data-marked-zoneid",o),t.$$set=t=>{"dataMarkedZone"in t&&n(1,o=t.dataMarkedZone),"data"in t&&n(0,r=t.data),"ele"in t&&n(2,i=t.ele)},[r,o,i]}t=n.hmd(t);class d extends o.f_C{constructor(t){super(),(0,o.S1n)(this,t,s,c,o.N8,{dataMarkedZone:1,data:0,ele:2})}}t&&t.hot;const l=d},96:(t,e,n)=>{var o=n(2210);const r="undefined"!=typeof window?window:n.g,i="undefined"!=typeof Symbol?Symbol("SVELTE_LOADER_HOT"):"__SVELTE_LOADER_HOT";if(!r[i]){let t=0;const e=()=>{t++},n=t=>e=>{const n=e&&e.stack||e;console.error("[HMR] Failed to accept update (nollup compat mode)",n),t(),o()},o=()=>{t--,0===t&&console.log("[HMR:Svelte] Up to date")};r[i]={hotStates:{},notifyStart:e,notifyError:n,notifyEnd:o}}(0,o.B)((t=>{const{notifyStart:e,notifyError:n,notifyEnd:o}=r[i],{m:a,reload:c}=t;let s=a.hot.data&&a.hot.data.acceptHandlers||[],d=[];a.hot.dispose((t=>{t.acceptHandlers=d}));const l=t=>{"ready"===t?e():"idle"===t&&(t=>{const e=[...t],n=()=>{const t=e.shift();return t?t(null).then(n):Promise.resolve(null)};return n()})(s).then(o).catch(n(c))};a.hot.addStatusHandler(l),a.hot.dispose((()=>{a.hot.removeStatusHandler(l)}));const u={data:a.hot.data,dispose:(...t)=>a.hot.dispose(...t),accept:t=>{0===d.length&&a.hot.accept(),d.push(t)}};return{...t,hot:u}}))},4234:(t,e,n)=>{function o(){}n.d(e,{$Tr:()=>y,DhX:()=>E,Jn4:()=>u,Ljt:()=>C,LoY:()=>Y,N8:()=>d,R3I:()=>b,RMB:()=>w,S1n:()=>et,Ui:()=>W,YCL:()=>K,ZMF:()=>v,ZTd:()=>o,bGB:()=>x,dvw:()=>F,etI:()=>J,f0i:()=>r,fLW:()=>L,f_C:()=>nt,gCg:()=>V,gbL:()=>U,luv:()=>S,ogt:()=>$,rTO:()=>k,vpE:()=>tt,w2L:()=>O,xLP:()=>j,yef:()=>Q});function r(t,e){for(const n in e)t[n]=e[n];return t}function i(t){return t()}function a(){return Object.create(null)}function c(t){t.forEach(i)}function s(t){return"function"==typeof t}function d(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let l;function u(t,e){return l||(l=document.createElement("a")),l.href=e,t===l.href}function h(t){return 0===Object.keys(t).length}new Set;const p="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;class f{constructor(t){this.options=t,this._listeners="WeakMap"in p?new WeakMap:void 0}observe(t,e){return this._listeners.set(t,e),this._getObserver().observe(t,this.options),()=>{this._listeners.delete(t),this._observer.unobserve(t)}}_getObserver(){var t;return null!==(t=this._observer)&&void 0!==t?t:this._observer=new ResizeObserver((t=>{var e;for(const n of t)f.entries.set(n.target,n),null===(e=this._listeners.get(n.target))||void 0===e||e(n)}))}}f.entries="WeakMap"in p?new WeakMap:void 0;let m=!1;function g(t,e,n,o){for(;t<e;){const r=t+(e-t>>1);n(r)<=o?t=r+1:e=r}return t}function b(t,e){t.appendChild(e)}function _(t,e){if(m){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const o=e[n];void 0!==o.claim_order&&t.push(o)}e=t}const n=new Int32Array(e.length+1),o=new Int32Array(e.length);n[0]=-1;let r=0;for(let t=0;t<e.length;t++){const i=e[t].claim_order,a=(r>0&&e[n[r]].claim_order<=i?r+1:g(1,r,(t=>e[n[t]].claim_order),i))-1;o[t]=n[a]+1;const c=a+1;n[c]=t,r=Math.max(c,r)}const i=[],a=[];let c=e.length-1;for(let t=n[r]+1;0!=t;t=o[t-1]){for(i.push(e[t-1]);c>=t;c--)a.push(e[c]);c--}for(;c>=0;c--)a.push(e[c]);i.reverse(),a.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<a.length;e++){for(;n<i.length&&a[e].claim_order>=i[n].claim_order;)n++;const o=n<i.length?i[n]:null;t.insertBefore(a[e],o)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentNode!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function y(t,e,n){t.insertBefore(e,n||null)}function v(t,e,n){m&&!n?_(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function $(t){t.parentNode&&t.parentNode.removeChild(t)}function w(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function x(t){return document.createElement(t)}function L(t){return document.createTextNode(t)}function E(){return L(" ")}function C(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function k(t,e){e=""+e,t.data!==e&&(t.data=e)}new Map;let j;function S(t){j=t}function O(){if(!j)throw new Error("Function called outside component initialization");return j}const I=[],M=[];let A=[];const P=[],T=Promise.resolve();let N=!1;function R(){N||(N=!0,T.then(B))}function D(t){A.push(t)}const H=new Set;let Z=0;function B(){if(0!==Z)return;const t=j;do{try{for(;Z<I.length;){const t=I[Z];Z++,S(t),z(t.$$)}}catch(t){throw I.length=0,Z=0,t}for(S(null),I.length=0,Z=0;M.length;)M.pop()();for(let t=0;t<A.length;t+=1){const e=A[t];H.has(e)||(H.add(e),e())}A.length=0}while(I.length);for(;P.length;)P.pop()();N=!1,H.clear(),S(t)}function z(t){if(null!==t.fragment){t.update(),c(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(D)}}const q=new Set;let G;function F(){G={r:0,c:[],p:G}}function U(){G.r||c(G.c),G=G.p}function W(t,e){t&&t.i&&(q.delete(t),t.i(e))}function J(t,e,n,o){if(t&&t.o){if(q.has(t))return;q.add(t),G.c.push((()=>{q.delete(t),o&&(n&&t.d(1),o())})),t.o(e)}else o&&o()}function Y(t,e){const n={},o={},r={$$scope:1};let i=t.length;for(;i--;){const a=t[i],c=e[i];if(c){for(const t in a)t in c||(o[t]=1);for(const t in c)r[t]||(n[t]=c[t],r[t]=1);t[i]=c}else for(const t in a)r[t]=1}for(const t in o)t in n||(n[t]=void 0);return n}function V(t){return"object"==typeof t&&null!==t?t:{}}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]);let X;function K(t){t&&t.c()}function Q(t,e,n,o){const{fragment:r,after_update:a}=t.$$;r&&r.m(e,n),o||D((()=>{const e=t.$$.on_mount.map(i).filter(s);t.$$.on_destroy?t.$$.on_destroy.push(...e):c(e),t.$$.on_mount=[]})),a.forEach(D)}function tt(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];A.forEach((o=>-1===t.indexOf(o)?e.push(o):n.push(o))),n.forEach((t=>t())),A=e}(n.after_update),c(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function et(t,e,n,r,i,s,d,l=[-1]){const u=j;S(t);const h=t.$$={fragment:null,ctx:[],props:s,update:o,not_equal:i,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:a(),dirty:l,skip_bound:!1,root:e.target||u.$$.root};d&&d(h.root);let p=!1;if(h.ctx=n?n(t,e.props||{},((e,n,...o)=>{const r=o.length?o[0]:n;return h.ctx&&i(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),p&&function(t,e){-1===t.$$.dirty[0]&&(I.push(t),R(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),n})):[],h.update(),p=!0,c(h.before_update),h.fragment=!!r&&r(h.ctx),e.target){if(e.hydrate){m=!0;const t=function(t){return Array.from(t.childNodes)}(e.target);h.fragment&&h.fragment.l(t),t.forEach($)}else h.fragment&&h.fragment.c();e.intro&&W(t.$$.fragment),Q(t,e.target,e.anchor,e.customElement),m=!1,B()}S(u)}"function"==typeof HTMLElement&&(X=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(i).filter(s);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,n){this[t]=n}disconnectedCallback(){c(this.$$.on_disconnect)}$destroy(){tt(this,1),this.$destroy=o}$on(t,e){if(!s(e))return o;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!h(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});class nt{$destroy(){tt(this,1),this.$destroy=o}$on(t,e){if(!s(e))return o;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){this.$$set&&!h(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={id:o,loaded:!1,exports:{}};return t[o](i,i.exports,n),i.loaded=!0,i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.hmd=t=>((t=Object.create(t)).children||(t.children=[]),Object.defineProperty(t,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+t.id)}}),t),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nc=void 0,(()=>{var t=n(1411),e={url:"https://rec.aiservice.vn/recengine/prod/admicro/recgate/api/v1/recommender?customerid=c5a35200a455caf3&boxid=503",limitPage:"1",limitItem:"8",divId:"thanhnien-8tinnoibat",website:"thanhnien.vn",dataMarkedZoneid:"tn_home_focus2_per",regex:"%%regex%%",template:""};var o=n(4554),r=n(3379),i=n.n(r),a=n(7795),c=n.n(a),s=n(569),d=n.n(s),l=n(3565),u=n.n(l),h=n(9216),p=n.n(h),f=n(4589),m=n.n(f),g=n(1775),b={};b.styleTagTransform=m(),b.setAttributes=u(),b.insert=d().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=p();i()(g.Z,b);g.Z&&g.Z.locals&&g.Z.locals;function _(n,r){var i=t.Lb.getDomainGuid(),a=function(){var e="";if(""==(e=t.Lb.get("__uid"))&&(e=t.Lb.getCookie("__uif")),-1!=e.indexOf("_")&&e){var n=/__uid:([0-9]+)/.exec(e);n&&(e=n[1])}return e}();r=r||0;var c,s=parseInt(e.limitItem);c="undefined"==typeof _gl_userId?"":_gl_userId;var d=document.querySelector.bind(document),l=d("#".concat(e.divId)).getAttribute("data-callback");l&&(l=l.replace("()",""),window[l]("#".concat(e.divId),data));var u=[],h=parent.document.querySelector(".section__hf-sub"),p=h.querySelectorAll("[data-marked-zoneid='tn_home_tin_moi'] .box-category-item"),f=h.querySelectorAll("[data-marked-zoneid='tn_home_most_view'] .box-category-item"),m=parent.document.querySelector(".section__nsp-sub"),g=m.querySelector("[data-marked-zoneid='tn_home_boxcate2'] .box-category-item"),b=m.querySelectorAll("[data-marked-zoneid='tn_home_boxcate2'] .box-sub-item"),_=m.querySelector("[data-marked-zoneid='tn_home_box_cate4'] .box-category-item"),y=m.querySelectorAll("[data-marked-zoneid='tn_home_box_cate4'] .box-sub-item"),v=[p,f,g,b,_,y];console.log(v,"arrayIgnore"),p.forEach((function(t,e){u.push(t.getAttribute("data-id"))})),u.push(g.getAttribute("data-id")),b.forEach((function(t,e){u.push(t.getAttribute("data-id"))})),u.push(_.getAttribute("data-id")),y.forEach((function(t,e){u.push(t.getAttribute("data-id"))})),console.log(u.join(","),"listItemIgnore");var $="".concat(e.url,"&dg=").concat(i,"&extr=").concat(function(e){var n={cr:t.Lb.get("__create")||t.Lb.getCookie("__create")||"",lc:t.Lb.get("__RC")||t.Lb.getCookie("__RC")||"",pglid:window.__admPageloadid||window.__m_admPageloadid||"",type:e},o="";try{o=encodeURIComponent(window.btoa(JSON.stringify(n)))}catch(t){}return o}("pc"),"&uid=").concat(c,"&deviceid=").concat(a),w="".concat($,"&limit=").concat(s,"&ignoredItems=[").concat(u.join(","),"]");(0,t.hj)(w,(function(t){var r=JSON.parse(t);if(!r||!r.recommend||0==r.recommend.length)return d(n).style.visibility="hidden",d("#".concat(e.divId)).getAttribute("data-callback")&&window[d("#".concat(e.divId)).getAttribute("data-callback")](),!1;var i=r.boxid,a=r.algid,c=r.requestid;new o.Z({target:document.querySelector("".concat(n)),props:{ele:e.divId,data:r.recommend,dataMarkedZone:"".concat(e.dataMarkedZoneid,"_boxid_").concat(i,"_algid_").concat(a,"_reqid_").concat(c)}})}))}"string"==typeof e&&(e={url:"https://rec.aiservice.vn/recengine/dev/recgate/api/v1?",divId:"thanhnien-8tinnoibat",website:"thanhnien.vn",dataMarkedZoneid:"tn_home_focus2_per",regex:"/([d]+).htm/",limitItem:"8"}),window.aiServiceNewsForYou=_,function(){var t=document.querySelector.bind(document)("#"+e.divId);try{var n=t.getAttribute("data-no-init")}catch(t){}!t||n&&"true"==n||_("#"+e.divId)}()})()})(); |