!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="//static-znews.zingcdn.me/releases/web/v1.7.40/js/",n(n.s=92)}([function(t,e,n){"use strict";n.d(e,"t",(function(){return r})),n.d(e,"W",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"v",(function(){return a})),n.d(e,"p",(function(){return c})),n.d(e,"B",(function(){return s})),n.d(e,"C",(function(){return f})),n.d(e,"q",(function(){return d})),n.d(e,"i",(function(){return l})),n.d(e,"r",(function(){return h})),n.d(e,"k",(function(){return p})),n.d(e,"l",(function(){return g})),n.d(e,"n",(function(){return m})),n.d(e,"j",(function(){return v})),n.d(e,"m",(function(){return y})),n.d(e,"T",(function(){return b})),n.d(e,"x",(function(){return w})),n.d(e,"F",(function(){return O})),n.d(e,"G",(function(){return E})),n.d(e,"H",(function(){return T})),n.d(e,"Q",(function(){return A})),n.d(e,"M",(function(){return R})),n.d(e,"L",(function(){return S})),n.d(e,"N",(function(){return I})),n.d(e,"P",(function(){return C})),n.d(e,"K",(function(){return _})),n.d(e,"O",(function(){return x})),n.d(e,"I",(function(){return P})),n.d(e,"J",(function(){return k})),n.d(e,"w",(function(){return N})),n.d(e,"o",(function(){return j})),n.d(e,"V",(function(){return L})),n.d(e,"u",(function(){return D})),n.d(e,"db",(function(){return z})),n.d(e,"b",(function(){return H})),n.d(e,"bb",(function(){return M})),n.d(e,"cb",(function(){return U})),n.d(e,"hb",(function(){return B})),n.d(e,"ib",(function(){return G})),n.d(e,"z",(function(){return V})),n.d(e,"U",(function(){return F})),n.d(e,"A",(function(){return $})),n.d(e,"S",(function(){return q})),n.d(e,"h",(function(){return W})),n.d(e,"g",(function(){return Y})),n.d(e,"f",(function(){return Z})),n.d(e,"e",(function(){return Q})),n.d(e,"d",(function(){return K})),n.d(e,"E",(function(){return X})),n.d(e,"eb",(function(){return J})),n.d(e,"X",(function(){return tt})),n.d(e,"Y",(function(){return et})),n.d(e,"Z",(function(){return nt})),n.d(e,"ab",(function(){return rt})),n.d(e,"jb",(function(){return it})),n.d(e,"R",(function(){return ot})),n.d(e,"gb",(function(){return ut})),n.d(e,"y",(function(){return at})),n.d(e,"D",(function(){return ct})),n.d(e,"s",(function(){return st})),n.d(e,"fb",(function(){return ft})),n.d(e,"a",(function(){return dt}));var r=window.location.hostname.replace(/(stg|beta|lifestyle-dev|lifestyle|life|tech|stg-tech)./i,""),i="//static-znews.zingcdn.me",o="https://adtima.vn/rate-card",u="https://".concat(r,"/interactive/bannerngang/mua-sach-tiki-post2.zing"),a=''),c=(new RegExp("https*:\\/\\/(www\\.){0,1}(youtu\\.be\\/|youtube.com\\/(watch\\?v=|embed\\/))","i"),i+"/images/avatar_silkhouse.gif"),s=i+"/images/logo-zing-home.svg",f=i+"/images/logo-zing-videopage_v3.svg",d=i+"/images/bg_poll.jpg",l=i+"/releases/web/docs/#/changelog",h="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p=i+"/images/channels/lens-logo-white_1.svg",g=i+"/images/channels/longform-logo-white_1.svg",m=i+"/images/channels/story-logo-white.svg",v=i+"/images/channels/interactive-logo-white.svg",y=i+"/images/channels/podcast_logo_white.svg",b="znews_sid",w=window.location.href.search("/preview/")>=0,O=new RegExp("^(https*:)*//(beta.|dev.|stg.)*".concat(r),"ig"),E=/abtest=(test|control)/i,T=/-post\d+\.html/i,A=/^\/video-.*-post\d+\.html/i,R=/\/.+-tin-tuc(\/|\.html)/i,S=/\/.+-tim-kiem(\/|\.html)/i,I=/\/series\/|\/tieu-diem\//i,C=/\/video\/?|\/video-.*(\/|\.html)/i,_=/\/pictures\//i,x=/\/trending\.html|\/trending\/trang\d+\.html/i,P=/\/oa-trending\.html|\/oa-trending\/trang\d+\.html/i,k=/\.html/i,N=i+"/js/highcharts/highmaps.js",j="/dich-viem-phoi-corona.html?utm_source=self&utm_medium=web&utm_campaign=covid4thwavec",L="zing.vn",D="https://"+r,z="//user."+r,H="adtima.vn",M="trithuctructuyen.vn",U="trithuctructuyen.com.vn",B="zingnews.com.vn",G="zingnews.vn",V="localhost",F=25200,$={HANOI:"hanoi",HCM:"tphochiminh",DA_NANG:"danang",AN_GIANG:"angiang",BAC_GIANG:"bacgiang",BAC_KAN:"backan"},q={"Hà Nội":"hanoi","TP.HCM":"hochiminh","Hồ Chí Minh":"hochiminh","Đà Nẵng":"danang","An Giang":"angiang","Bắc Giang":"bacgiang","Bắc Kạn":"backan","Bạc Liêu":"baclieu","Bắc Ninh":"bacninh","Bến Tre":"bentre","Bình Định":"binhdinh","Bình Dương":"binhduong","Bình Phước":"binhphuoc","Bình Thuận":"binhthuan","Cà Mau":"camau","Cần Thơ":"cantho","Cao Bằng":"caobang","Đắk Lắk":"daklak","Đắk Nông":"dacnong","Điện Biên":"dienbien","Đồng Nai":"dongnai","Đồng Tháp":"dongthap","Gia Lai":"gialai","Hà Giang":"hagiang","Hà Nam":"hanam","Hà Tĩnh":"hatinh","Hải Dương":"haiduong","Hải Phòng":"haiphong","Hậu Giang":"haugiang","Hòa Bình":"hoabinh","Hoà Bình":"hoabinh","Hưng Yên":"hungyen","Khánh Hòa":"khanhhoa","Kiên Giang":"kiengiang","Kon Tum":"kontum","Lai Châu":"laichau","Lâm Đồng":"lamdong","Lạng Sơn":"langson","Lào Cai":"laocai","Long An":"longan","Nam Định":"namdinh","Nghệ An":"nghean","Ninh Bình":"ninhbinh","Ninh Thuận":"ninhthuan","Phú Thọ":"phutho","Phú Yên":"phuyen","Quảng Bình":"quangbinh","Quảng Nam":"quangnam","Quảng Ngãi":"quangngai","Quảng Ninh":"quangninh","Quảng Trị":"quangtri","Sóc Trăng":"soctrang","Sơn La":"sonla","Tây Ninh":"tayninh","Thái Bình":"thaibinh","Thái Nguyên":"thainguyen","Thanh Hóa":"thanhhoa","Thừa Thiên Huế":"hue","Thừa Thiên - Huế":"hue","Huế":"hue","Tiền Giang":"tiengiang","Trà Vinh":"travinh","Tuyên Quang":"tuyenquang","Vĩnh Long":"vinhlong","Vĩnh Phúc":"vinhphuc","Vũng Tàu":"bariavungtau","Bà Rịa Vũng Tàu":"bariavungtau","Bà Rịa - Vũng Tàu":"bariavungtau","Yên Bái":"yenbai","Quần Đảo Trường Sa":"truongsa","Quần Đảo Hoàng Sa":"hoangsa"},W={"thoi-trang":7,"am-nhac":8,"phim-anh":9,"song-tre":104,"the-thao":472,"oto-xe-may":474,"cong-nghe":476,"am-thuc":478,"du-lich":479,"giao-duc":501,"the-gioi":503,"nhip-song":529,"kinh-doanh-tai-chinh":572,"giai-tri":585,"thoi-su":605,"phap-luat":609,"chuyen-trang":624,"xuat-ban":626,"suc-khoe":645,"world-cup-2018":717},Y={XUAT_BAN:"xuat-ban",THE_THAO:"the-thao",BONG_DA_VN:"bong-da-viet-nam",BONG_DA_ANH:"bong-da-anh"},Z={7:"Thời trang",8:"Âm nhạc",9:"Phim ảnh",104:"Sống trẻ",472:"Thể thao",474:"Xe 360",476:"Công nghệ",478:"Ẩm thực",479:"Du lịch",501:"Giáo dục",503:"Thế giới",529:"Nhịp sống",572:"Kinh doanh",585:"Giải trí",605:"Thời sự",609:"Pháp luật",624:"Chuyên trang",626:"Xuất bản",645:"Sức khỏe"},Q={TEXT:"text",PICTURE:"picture",STREAM:"stream",SPECIAL:"special",VIDEO:"video",INFOGRAPHIC:"infographic",HASVIDEO:"hasvideo"},K={REGULAR:"regular",NO_SIDEBAR:"no-sidebar",SPECICAL:"special"},X={ARTICLE:"article",VIDEO:"video",CATEGORY:"category",SEARCH:"search",TAG:"tag",TOPIC:"topic",HOME:"home",TRENDING:"trending",OA_TRENDING:"oa-trending",AUTHOR:"author",PICTURE:"picture"},J=(window.TEXT_COMMENT_INPUT,window.TEXT_COMMENT_SUBMIT,window.TEXT_LIST_LABEL,["1","2","3","4","5"]),tt={4907:"qna",4885:"gallery",4413:"infographic",4305:"voices",4223:"infocus",3616:"lens",3613:"sliding",3568:"branchvoice",3546:"longform",3535:"quizz",3528:"kover",3483:"story",3478:"panorama",5682:"zingstory",5755:"cover",5771:"timelinecv",5802:"timeline",5873:"podcast",6382:"vodcast",5767:"interactive",5657:"review",5969:"scroll-interactive",6305:"zingstoryad"},et={QNA:"qna",GALLERY:"gallery",INFOGRAPHIC:"infographic",VOICES:"voices",INFOCUS:"infocus",LENS:"lens",SLIDING:"sliding",BRANCHVOICE:"branchvoice",LONGFORM:"longform",QUIZZ:"quizz",KOVER:"kover",STORY:"story",PANORAMA:"panorama",ZINGSTORY:"zingstory",ZINGSTORY_AD:"zingstoryad",COVER:"cover",TIMELINECV:"timelinecv",TIMELINE:"timeline",PODCAST:"podcast",VODCAST:"vodcast",INTERACTIVE:"interactive",REVIEW:"review",SCROLL_INTERACTIVE:"scroll-interactive"},nt={737:"seagame",742:"corona",750:"communist-party",99999:"communist-member",752:"usa-polls",2592:"gold-price",5767:"interactive"},rt={SEAGAME:"seagame",CORONA:"corona",COMMUNIST_PARTY:"communist-party",COMMUNIST_MEMBER:"communist-member",USA_POLLS:"usa-polls",GOLD_PRICE:"gold-price",INTERACTIVE:"interactive",PUBLISH:"xuat-ban",TRAVEL:"du-lich",CAR:"oto-xe-may",BUSSINESS:"kinh-doanh-tai-chinh",SPORT:"the-thao"},it={DEFAULT:"267866779927658906",PR_DEFAULT:"1978897178453043860",NONSKIP:"1523614667798703141",FACEBOOK:"522366200923519947",GOOGLE:"2794372856483904451"},ot={PERCENT:"percentage",DETAIL:"detail"},ut={DEFAULT:"default",THEATER:"theater",FULLSCREEN:"fullscreen"},at={1:49,2:50,K:75,L:76,M:77,ESC:27,ENTER:13,V:86,SPACE:32,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,ARROW_DOWN:40,SEMICOLON:186},ct={VERTICAL:"vertical",HORIZONTAL:"horizontal"},st={UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right"},ft={DESKTOP:0,DESKTOP_AB:2,WAP:1,WAP_AB:3},dt={TEST:"test",CONTROL:"control"}},function(t,e){function n(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"div",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=document.createElement(t);return Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?i.setAttribute(t,n):i[t]=n})),Object.getOwnPropertyNames(n).forEach((function(t){i.setAttribute(t,n[t])})),r&&g(i,r),i}function b(t){var e=document.createElement("div");return e.innerHTML=t,e.firstChild}function w(t,e){return t.getAttribute(e)}function O(t,e,n){t.setAttribute(e,n)}function E(t,e){t.removeAttribute(e)}function T(t){var e;if(t.getBoundingClientRect&&t.parentNode&&(e=t.getBoundingClientRect()),!e)return{left:0,top:0};var n=document.documentElement,r=document.body,i=n.clientLeft||r.clientLeft||0,o=window.pageXOffset||r.scrollLeft,u=e.left+o-i,a=n.clientTop||r.clientTop||0,c=window.pageYOffset||r.scrollTop,s=e.top+c-a;return{left:Math.round(u),top:Math.round(s)}}function A(t){if(t){var e=t.getBoundingClientRect();return e.height/2<=window.innerHeight-e.top&&e.bottom>=e.height/2}}function R(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={},i=T(t),o=n?t.offsetHeight:t.offsetWidth,u=n?t.offsetWidth:t.offsetHeight,a=i.top,c=i.left,s=e.pageY,f=e.pageX;return e.changedTouches&&(f=e.changedTouches[0].pageX,s=e.changedTouches[0].pageY),r.y=Math.max(0,Math.min(1,(a-s+u)/u)),r.x=Math.max(0,Math.min(1,(f-c)/o)),r}function S(t){return void 0===t.button&&void 0===t.buttons||0===t.button&&void 0===t.buttons||0===t.button&&1===t.buttons}function I(t){t&&t.parentNode&&t.parentNode.removeChild(t)}},function(t,e,n){"use strict";n.d(e,"l",(function(){return c})),n.d(e,"f",(function(){return s})),n.d(e,"b",(function(){return f})),n.d(e,"m",(function(){return d})),n.d(e,"a",(function(){return l})),n.d(e,"k",(function(){return h})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return g})),n.d(e,"g",(function(){return m})),n.d(e,"j",(function(){return v})),n.d(e,"q",(function(){return y})),n.d(e,"h",(function(){return b})),n.d(e,"i",(function(){return w})),n.d(e,"o",(function(){return O})),n.d(e,"p",(function(){return E})),n.d(e,"n",(function(){return T})),n.d(e,"e",(function(){return A}));var r=n(32),i=n(6),o=n(8),u=n(4),a=n(11);function c(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body";if(Element.prototype.closest)return t.closest(e);for(var r=t.parentNode;r&&!r.matches(n)&&!r.matches(e);)r=r.parentNode;return r.matches(n)&&(r=null),r}function f(t){var e=document.createElement("tbody");return e.innerHTML=t,e.firstChild}var d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){t.classList=t.classList.value.replace(e,"")})),t},l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.forEach((function(e){t.classList.add(e)})),t},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t=Object(r.a)(t);var n=window,i=Object(o.v)(),u=i+n.innerHeight,a=t.offset().top,c=a+t.height();return c>=i-e&&a<=u+e};function p(t){var e=t.getBoundingClientRect(),n=e.top,r=e.right,i=e.bottom,u=e.left,a=e.height,c=e.width;return{top:n+=Object(o.v)(),right:r,bottom:i,left:u+=Object(o.u)(),width:c,height:a}}function g(t,e){return e?Object(i.textContent)(t,e):(t.textContent||t.innerText).trim()}function m(t){for(var e=[],n=t;n;)n=n.previousSibling,e.push(n);return e}var v=function(t){return t instanceof NodeList};function y(t,e){var n=Object(i.createElFromHTML)(e);return t.parentNode.insertBefore(n,t),n.appendChild(t),n}function b(t,e){t&&e&&(u.a.element(e)?Element.prototype.after?t.after(e):t.insertAdjacentElement("afterend",e):u.a.string(e)&&t.insertAdjacentHTML("afterend",e))}function w(t,e){t&&e&&(u.a.element(e)?Element.prototype.before?t.before(e):t.parentNode.insertBefore(e,t):u.a.string(e)&&t.insertAdjacentHTML("beforebegin",e))}var O=function(t){t&&v(t)&&t.forEach((function(t){Object(i.removeFromDom)(t)}))},E=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a";if(t){var n=t.findAll(e);n.forEach((function(t){t.on("mouseover",(function(){t.setAttribute("data-title",t.getAttribute("title")),t.removeAttribute("title")})),t.on("mouseout",(function(){t.setAttribute("title",t.getAttribute("data-title"))}))}))}},T=function(t){for(var e=t.length,n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=Object(s.a)({credentials:"include"},n);return Object(f.fetch)(d.l+t,e,i,r)},y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,o=m({credentials:"include"},r),u=r.body?r.body:new URLSearchParams;for(var a in n)u.append(a,n[a]);return o=m(m({},o),{},{body:u}),Object(f.fetch)(t,e,o,i)},b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=Object(s.a)({credentials:"include"},n);return Object(f.fetch)(t,e,i,r)},w=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,o=Object(s.a)({method:"POST",credentials:"include"},r);return y(d.l+t,e,n,o,i)},O=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,o=Object(s.a)({method:"POST",credentials:"include"},r);return y(t,e,n,o,i)},E=function(){return window.location.hash.search("app")>=0||window.location.search.search("app")>=0},T=function(t){return window.location.hash.search(t)>=0};function A(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Math.floor(Math.random()*(e-t+1))+t}var R=function(t){return!!t.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/)&&RegExp.$1},S=function(){return window.innerWidth-document.documentElement.clientWidth},I=function(){var t=window.getSelection();return t.anchorNode.parentNode.innerText===t.focusNode.parentNode.innerText},C=function(){return window.getSelection().getRangeAt(0).getBoundingClientRect()},_=function(t){var e=(t||window.location.href).replace(/#.*|\?.*/gi,"").replace(l.F,"");return l.Q.test(e)},x=function(t){t||(t=window.location.href);var e=t.match(/post([0-9]+)\./i);return null!=e&&e.length>1||null!=(e=t.match(/\?id=([0-9]+)/i))&&e.length>1?e[1]:null},P=function(t){var e=t.replace(/#.*|\?.*/gi,"").replace(l.F,"");return"/"==e||""==e?l.E.HOME:l.H.test(e)||l.Q.test(e)?l.E.ARTICLE:l.M.test(e)?l.E.TAG:l.L.test(e)?l.E.SEARCH:l.N.test(e)?l.E.TOPIC:l.P.test(e)?l.E.VIDEO:l.K.test(e)?l.E.PICTURE:l.O.test(e)?l.E.TRENDING:l.I.test(e)?l.E.OA_TRENDING:l.J.test(e)?l.E.CATEGORY:l.E.AUTHOR},k=function(t){var e=t||window.location.pathname;if((e=String(e).toLowerCase()).indexOf(".html")<0)return"";var n=e.replace(".html","").split("/");return n[n.length-1]||""},N=function(t){var e=t||window.location.href,n=x(e);return n?window.location.protocol+"//".concat(l.t,"/zingnews-post").concat(n,".html"):""},j=function(t){if(t)return P(t);var e=document.body&&document.body.getAttribute("id");return e?"page-homepage"===e?"home":e.replace("page-",""):P(window.location.pathname)},L=function(t,e){return t.sort((function(t,n){return t[e]>n[e]?-1:t[e]=0)return!1;return/[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum)\b/i.test(t)},H=function(){var t=document.getId("input-clipboard");t||((t=document.createElement("input")).id="input-clipboard",t.setAttribute("value",window.location.href),document.body.append(t)),t.select(),document.execCommand("copy"),t.parentNode.removeChild(t)},M=function(){return(window.getSelection?window.getSelection().toString():document.selection?document.selection.createRange().text:"").trim()};function U(t){var e=t.zone,n=t.position,r=t.suffix,i=t.zappid;if(!t||!e||!n)throw Error("No tracking information provided");var o=i+"_"+j()+"_";return o+=e.replace(/-/gi,"")+n,r&&(o+="_"+r),o}function B(t){if("string"==typeof t)return t;var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e.join("&")}function G(t){return(e=window.location.search,e?(/^[?#]/.test(e)&&(e=e.slice(1)),e.split("&").reduce((function(t,e){var n=e.split("="),r=u()(n,2),i=r[0],o=r[1];return t[i]=o?decodeURIComponent(o.replace(/\+/g," ")):"",t}),{})):{})[t]||"";var e}var V=function(){return Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)},F=function(){return(new Date).getTime()};function $(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.href;t=t.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+t+"(=([^]*)|&|#|$)"),r=n.exec(e);if(!r)return null;if(!r[2])return"";try{var i=decodeURIComponent(r[2].replace(/\+/g,""));return i}catch(t){return""}}function q(){return void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop}function W(){return void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft}var Y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return new Promise((function(n){var r=q(),i=F(),o=V(),u=Math.round(o-t-1?t.split("/")[2]:t.split("/")[0]).split(":")[0].split("?")[0].replace(/^www\./i,"")}function et(t){return"object"===i()(t)?JSON.parse(JSON.stringify(t)):t}function nt(t,e){if(e&&e.err<0){var n=m(m({},e),{},{apiUrl:t});p.a.error(n)}}function rt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.reduce((function(e,n){var r=String(n[t]).trim();return e[r]=e[r]||[],e[r].push(n),e}),{})}},function(t,e,n){var r=n(26),i=n(12);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?i(t):e}},function(t,e,n){var r=n(42);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(18),i=n(15),o=n.n(i),u=n(18).buildURLWithParam,a=function(t,e){var n=u(t,e),r=document.createElement("img");r.setAttribute("src",n),r.setAttribute("style","display:none")},c=window.location.hostname.includes("stg")?"https://stg.zingnews.vn/api/v1/log/post":"https://w-api.zingnews.vn/api/v1/log/post",s=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new URLSearchParams;for(var o in n)i.append(o,n[o]);var u={method:"POST",credentials:"include",body:i};return Object(r.fetch)(t,e,u)},f={debug:function(){o.a.debug.apply(o.a,arguments)},info:function(){o.a.info.apply(o.a,arguments)},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n2?n-2:0),i=2;i2?n-2:0),i=2;i-1?i:n),this.mode=e.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&e.body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(e.body)}function d(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(i))}})),e}function l(t){var e=new r;return t.getAllResponseHeaders().trim().split("\n").forEach((function(t){var n=t.trim().split(":"),r=n.shift().trim(),i=n.join(":").trim();e.append(r,i)})),e}var h=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent);function p(t,e){e||(e={}),this._initBody(t),this.type="default",this.url=null,this.status=e.status,this.ok=this.status>=200&&this.status<300,this.statusText=e.statusText,this.headers=e.headers instanceof r?e.headers:new r(e.headers),this.url=e.url||""}return c.call(f.prototype),c.call(p.prototype),window.Headers=r,window.Request=f,window.Response=p,window.fetch=function(t,e){var n;return n=f.prototype.isPrototypeOf(t)&&!e?t:new f(t,e),new fetch.Promise((function(t,e){var r=function(){return h&&!/^(get|post|head|put|delete|options)$/i.test(this.method)?(this.usingActiveXhr=!0,new window.ActiveXObject("Microsoft.XMLHTTP")):new XMLHttpRequest}.call(this);function i(){if(4===r.readyState){var n=1223===r.status?204:r.status;if(n<100||n>599)e(new TypeError("Network request failed"));else{var i={status:n,statusText:r.statusText,headers:l(r),url:"responseURL"in r?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):void 0},o="response"in r?r.response:r.responseText;t(new p(o,i))}}}"cors"===n.credentials&&(r.withCredentials=!0),r.onreadystatechange=i,this.usingActiveXhr||(r.onload=i,r.onerror=function(){e(new TypeError("Network request failed"))}),r.open(n.method,n.url,!0),"responseType"in r&&a.blob&&(r.responseType="blob"),n.headers.forEach((function(t,e){e.forEach((function(e){r.setRequestHeader(t,e)}))})),r.send(void 0===n._bodyInit?null:n._bodyInit)}))},fetch.Promise=window.Promise,window.fetch.polyfill=!0,window.fetch.apply(window,t)}n.r(e),n.d(e,"buildParamsQuery",(function(){return a})),n.d(e,"buildURLWithParam",(function(){return c})),n.d(e,"fetch",(function(){return s})),n.d(e,"post",(function(){return f}));var i=n(4);function o(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;return r(c(t,e),n,i).then((function(t){return t.json()})).catch((function(t){return{error:t}}))},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,u=o({credentials:"include"},r),a=r.body?r.body:new FormData;for(var c in n)a.append(c,n[c]);return u=o({},u,{body:a}),s(t,e,u,i)}},,function(t,e,n){"use strict";n.d(e,"k",(function(){return o})),n.d(e,"j",(function(){return u})),n.d(e,"f",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"l",(function(){return s})),n.d(e,"m",(function(){return f})),n.d(e,"i",(function(){return d})),n.d(e,"h",(function(){return l})),n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return p})),n.d(e,"d",(function(){return g})),n.d(e,"c",(function(){return m})),n.d(e,"n",(function(){return v})),n.d(e,"g",(function(){return y}));var r=n(0),i="//log."+r.t,o=window.location.hostname.indexOf("stg.")>-1?"//stg-api.news.zing.vn":"//api."+r.t,u=window.location.hostname.indexOf("stg")>-1?"//stg.zingnews.vn/api/v1":"//w-api.zingnews.vn/api/v1",a=i+"/Counter2.aspx",c=o+"/public/v2/submit/feedback",s=o+"/public/v2",f=i+"/imps",d=i+"/collect",l="//web.api.adtimaserver.vn/rtb/prepareRTB",h="https://web-api.tjme.io/zvid/vid",p="//web.api.adtimaserver.vn/rendervideodemo",g="https://web-api.tjme.io/zpr/znewsPR3",m=s+"/getRawArticles",v=o+"/public/campaign/getUSElectionData",y={COMMENT_GET:"/getComments",COMMNET_POST:"/submit/comment",COMMENT_LIKE_POST:"/submit/likeComment",USER_HISTORY:"/history",POLL_GET:"/getPoll",POLL_POST:"/submit/poll",STATS_GET:"/trendctr",LIVE_GET:"/getLivestream",UTILITIES_GET:"/getUtilities",BOOK_CHAPTERS_GET:"/getArticles",RECOMMENT_ARTICLES:"/content/get/may-interested",ARTICLES_LIST:"/article/getList"}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(2),i=n.n(r),o=n(1),u=n.n(o),a=n(10),c=n.n(a),s=n(9),f=n.n(s),d=n(3),l=n.n(d),h=n(27),p=n(13),g=n(4),m=n(6),v=n(7);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l()(t);if(e){var i=l()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var b=function(t){c()(n,t);var e=y(n);function n(){var t;return i()(this,n),(t=e.call(this)).Dom=m,t}return u()(n,[{key:"find",value:function(t){return this.$el.find(t)}},{key:"findAll",value:function(t){return this.$el.findAll(t)}},{key:"getAttribute",value:function(t){return m.getAttribute(this.$el,t)}},{key:"setAttribute",value:function(t,e){return m.setAttribute(this.$el,t,e),this}},{key:"removeAttribute",value:function(t){return m.removeAttribute(this.$el,t),this}},{key:"setStyles",value:function(t){return m.setStyles(this.$el,t),this}},{key:"hasClass",value:function(t){return m.hasClass(this.$el,t)}},{key:"addClass",value:function(t){var e=this;return t.split(" ").forEach((function(t){m.addClass(e.$el,t)})),this}},{key:"removeClass",value:function(t){var e=this;return t.split(" ").forEach((function(t){e.Dom.removeClass(e.$el,t)})),this}},{key:"toggleClass",value:function(t,e){return m.toggleClass(this.$el,t,e),this}},{key:"show",value:function(){return this.setStyles({display:"block"}),this}},{key:"hide",value:function(){return this.setStyles({display:"none"}),this}},{key:"append",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(g.a.string(t)){var n=document.createElement("div");n.innerHTML=t,t=n.firstChild}return e?this.$el.appendChild(t):this.$el.prepend(t),this}},{key:"prepend",value:function(t){return this.append(t,!1),this}},{key:"insertAfter",value:function(t){return Object(v.h)(this.$el,t),this}},{key:"insertBefore",value:function(t){return Object(v.i)(this.$el,t),this}},{key:"remove",value:function(){return m.removeFromDom(this.$el),this}},{key:"html",value:function(t){return this.$el.innerHTML=t,this}},{key:"render",value:function(){var t=Object(p.a)({},this.attributes);this.id&&(t.id=this.id);var e=Object(p.a)({},this.properties);return this.$el=m.createEl(this.tagName,e,t),this.$el}},{key:"properties",get:function(){return{}}}],[{key:"tagName",get:function(){return"div"}},{key:"events",get:function(){return{}}},{key:"attributes",get:function(){return{}}}]),n}(h.a)},function(t,e,n){"use strict";n.d(e,"h",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"c",(function(){return u})),n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return f})),n.d(e,"g",(function(){return d}));var r=n(5),i=navigator.userAgent.toLowerCase(),o=window.location.href.match(/https*:\/\/beta\.|\?mode=test/i),u=navigator.platform.toUpperCase().indexOf("MAC")>=0,a=/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(i);function c(){return/Android|webOS|iPhone|iPod|BlackBerry|Windows Phone|IEMobile|Mobile Safari|Opera Mini/i.test(navigator.userAgent.toLowerCase())}var s=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||u;function f(){var t={platform:r.g,name:r.g,type:r.g,screen:r.g,browser:r.g,screenWidth:screen.width,screenHeight:screen.height},e=t.screenWidth;return t.screen=e&&e>1200?r.e.wide:r.e.standard,a?(t.platform=r.d.ios,t.name=r.c.ipad,t.type=r.f.tablet):i.indexOf("iphone")>-1?(t.platform=r.d.ios,t.name=r.c.iphone,t.type=r.f.smartphone):i.indexOf(r.d.android)>-1?(t.platform=r.d.android,t.type=i.indexOf("mobile")>-1?r.f.smartphone:r.f.tablet):i.indexOf("windows phone")>-1?(t.platform=r.d.windows,t.type=r.f.smartphone):t.type=r.f.desktop,i.indexOf(r.a.chrome)>-1?t.browser=r.a.chrome:i.indexOf(r.a.firefox)>-1?t.browser=r.a.firefox:i.indexOf("msie")>-1||/Trident\/7.0/i.test(i)?t.browser=r.a.ie:i.indexOf(r.a.safari)>-1&&i.indexOf(r.a.chrome)<0&&(t.browser=r.a.safari),t}function d(){var t=document.createElement("canvas");return!!window.WebGLRenderingContext&&(t.getContext("webgl")||t.getContext("experimental-webgl"))}},,function(t,e,n){"use strict";function r(t){var e=document.body||document.documentElement;if("string"==typeof e.style[t])return t;for(var n=["Moz","Webkit","Khtml","O","ms"],r=n.length,i=t.charAt(0).toUpperCase()+t.substr(1),o=0;o2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof document){var r=Object(s.a)({},l,n);"number"==typeof r.expires&&(r.expires=new Date(Date.now()+864e5*r.expires)),r.expires&&(r.expires=r.expires.toUTCString()),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var o in r)r[o]&&(i+="; "+o,!0!==r[o]&&(i+="="+r[o].split(";")[0]));return document.cookie=t+"="+e+i}}},{key:"get",value:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var e=document.cookie?document.cookie.split("; "):[],n={},r=0;r1&&void 0!==arguments[1]?arguments[1]:{};this.set(t,null,d(d({},e),{},{expires:-1}))}}]),t}()},function(t,e,n){var r=n(47);function i(e,n,o){return"undefined"!=typeof Reflect&&Reflect.get?t.exports=i=Reflect.get:t.exports=i=function(t,e,n){var i=r(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}},i(e,n,o||e)}t.exports=i},,function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var r=n(2),i=n.n(r),o=n(30),u=n.n(o),a=n(1),c=n.n(a),s=n(10),f=n.n(s),d=n(9),l=n.n(d),h=n(3),p=n.n(h),g=n(22),m=n(4),v=n(7),y=n(34);function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}var w=function(t){f()(n,t);var e=b(n);function n(t){var r;return i()(this,n),(r=e.call(this)).$el=t,r}return c()(n,[{key:"name",get:function(){return"ZDom"}},{key:"isVisible",get:function(){return Object(v.l)(this.$el)}},{key:"isHidden",get:function(){return!this.isVisible}},{key:"computedStyleEl",get:function(){return window.getComputedStyle(this.$el)}},{key:"padding",get:function(){var t=this,e=function(e){return parseInt(t.computedStyleEl.getPropertyValue("padding-".concat(e)),10)};return{top:e("top"),right:e("right"),bottom:e("bottom"),left:e("left")}}},{key:"border",get:function(){var t=this,e=function(e){return parseInt(t.computedStyleEl.getPropertyValue("border-".concat(e,"-width")),10)};return{top:e("top"),right:e("right"),bottom:e("bottom"),left:e("left")}}},{key:"innerWidth",get:function(){var t=this.padding,e=t.left,n=t.right;return this.width()+e+n}},{key:"innerHeight",get:function(){var t=this.padding,e=t.top,n=t.bottom;return this.height()+e+n}},{key:"outerWidth",get:function(){return this.$el.offsetWidth||parseInt(this.computedStyleEl.width)}},{key:"outerHeight",get:function(){return this.$el.offsetHeight||parseInt(this.computedStyleEl.height)}}]),c()(n,[{key:"show",value:function(){return this.setStyles({display:"block"}),this}},{key:"hide",value:function(){return this.setStyles({display:"none"}),this}},{key:"on",value:function(){return this.$el.on.apply(this.$el,arguments),this}},{key:"off",value:function(){return this.$el.off.apply(this.$el,arguments),this}},{key:"parent",value:function(){return this.$el.parentElement||this.$el.parentNode}},{key:"parents",value:function(t){return Object(v.f)(this.$el,t)}},{key:"width",value:function(t){if(t)return this.setStyles({width:t+"px"}),this.$el;var e=this.padding,n=e.left,r=e.right,i=this.border,o=i.left,u=i.right;return this.outerWidth-n-r-o-u}},{key:"height",value:function(t){if(t)return this.setStyles({height:t+"px"}),this.$el;var e=this.padding,n=e.top,r=e.bottom,i=this.border,o=i.top,u=i.bottom;return this.outerHeight-n-r-o-u}},{key:"attr",value:function(t,e){return e?this.setAttribute(t,e):this.getAttribute(t)}},{key:"findAll",value:function(t){var e=this.$el.findAll(t);return Array.prototype.slice.call(e)}},{key:"html",value:function(t){return t?u()(p()(n.prototype),"html",this).call(this,t):this.$el.innerHTML}},{key:"text",value:function(t){return Object(v.d)(this.$el,t)}},{key:"data",value:function(t,e){if(!e)return this.$el.dataset[t];this.$el.dataset[t]=e}},{key:"transition",value:function(t,e,n,r){return Object(y.a)(this.$el,t,e,n,r),this}},{key:"wrap",value:function(t){return Object(v.q)(this.$el,t)}},{key:"is",value:function(t){return this.$el.tagName.toLowerCase()==t}},{key:"offset",value:function(){return Object(v.c)(this.$el)}},{key:"getStyleValue",value:function(t){return this.computedStyleEl.getPropertyValue(t)}},{key:"render",value:function(){}}]),n}(g.a);function O(t){var e=function(t){return t.length?t:null};if(m.a.element(t))return new w(t);if(m.a.string(t)){var n=document.findAll(t),r=[];return n.forEach((function(t){r.push(new w(t))})),e(r)}if(m.a.array(t)||t instanceof NodeList){var i=[];return t.forEach((function(t){m.a.element(t)&&i.push(new w(t))})),e(i)}return null}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(26),i=n.n(r),o=n(13);function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.replace(new RegExp(e.toString().replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1"),"g"),n.toString())}function a(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}function c(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return t=u(t,"-"," "),t=u(t,"_"," "),u(t=a(t)," ","")}function s(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(t=c(t)).charAt(0).toLowerCase()+t.slice(1)}var f=n(6),d=n(25);function l(t,e,n,r,u){var a={propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:!0,useTransitionEnd:!1},c=document.createElement("div"),l={};l.transition=Object(d.c)("transition"),l.transitionDelay=Object(d.c)("transitionDelay"),l.transform=Object(d.c)("transform"),l.transformOrigin=Object(d.c)("transformOrigin"),l.filter=Object(d.c)("Filter"),l.transform3d=(c.style[l.transform]="",c.style[l.transform]="rotateY(90deg)",""!==c.style[l.transform]);var h=l.transitionEnd={transition:"transitionend",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"}[l.transition]||null;c=null;var p={ease:"ease",in:"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeInCubic:"cubic-bezier(.550,.055,.675,.190)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};function g(t,e,n,r){var i=function(t){var e=[];for(var n in t)n=s(n),n=m(n=a.propertyMap[n]||n),l[n]&&(n=m(l[n])),-1===e.indexOf(n)&&e.push(n);return e}(t);n=p[n];var o=v(e)+" "+n;parseInt(r,10)>0&&(o+=" "+v(r));var u=[];return i.forEach((function(t){u.push(t+" "+o)})),u.join(", ")}function m(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}function v(t){var e=t;return"string"!=typeof e||e.match(/^[\-0-9\.]+/)||(e="400"),function(t,e){return"string"!=typeof t||t.match(/^[\-0-9\.]+$/)?""+t+e:t}(e,"ms")}return function(t,e,n,r,u){var c=t,s=0,d=Object(o.a)({},e);"function"==typeof n&&(u=n,n=void 0),"object"===i()(n)&&(r=n.easing,s=n.delay||0,u=n.complete,n=n.duration),"function"==typeof r&&(u=r,r=void 0),void 0!==d.easing&&(r=d.easing,delete d.easing),void 0!==d.duration&&(n=d.duration,delete d.duration),void 0!==d.complete&&(u=d.complete,delete d.complete),void 0!==d.delay&&(s=d.delay,delete d.delay),void 0===n&&(n="400"),void 0===r&&(r="ease"),n=v(n);var p,m,y=g(d,n,r,s),b=l.transition?parseInt(n,10)+parseInt(s,10):0;return 0===b?(u&&u.apply(c),c):(p=!1,m=function t(){p&&c.off(h,t),b>0&&(c.style[l.transition]=null),"function"==typeof u&&u.apply(c)},b>0&&h&&a.useTransitionEnd?(p=!0,c.on(h,m)):window.setTimeout(m,b),b>0&&(c.style[l.transition]=y),Object(f.setStyles)(c,d),c)}(t,e,n,r,u)}},function(t,e,n){var r=n(44),i=n(45),o=n(40),u=n(46);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||u()}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return s}));var r=n(2),i=n.n(r),o=n(1),u=n.n(o),a=function(){function t(){i()(this,t),this.data=[]}return u()(t,[{key:"getItem",value:function(t){return this.data[t]}},{key:"setItem",value:function(t,e){this.data[t]=String(e)}},{key:"removeItem",value:function(t){delete this.data[t]}}]),t}(),c=f()?window.localStorage:new a,s=function(){try{return"sessionStorage"in window&&(window.sessionStorage.setItem("__test__","__test__"),window.sessionStorage.removeItem("__test__"),!0)}catch(t){return!1}}()?window.sessionStorage:new a;function f(){try{return"localStorage"in window&&(window.localStorage.setItem("__test__","__test__"),window.localStorage.removeItem("__test__"),!0)}catch(t){return!1}}},,,,function(t,e,n){var r=n(41);t.exports=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n>>0,1)},emit:function(e,n){(t[e]||[]).slice().map((function(t){t(n)})),(t["*"]||[]).slice().map((function(t){t(e,n)}))}}}},function(t,e){t.exports=function(t){if(Array.isArray(t))return t}},function(t,e){t.exports=function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(n.push(u.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(t,e,n){var r=n(3);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t}},function(t,e){function n(t,e){t.forEach((function(t){t.hasOwnProperty(e)||Object.defineProperty(t,e,{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=Array.prototype.slice.call(arguments),n=document.createDocumentFragment();t.forEach((function(t){var e=t instanceof Node;n.appendChild(e?t:document.createTextNode(String(t)))})),"append"==e?this.appendChild(n):this.insertBefore(n,this.firstChild)}})}))}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,16)},function(t,e){try{t.querySelector(":scope body")}catch(n){["querySelector","querySelectorAll"].forEach((function(n){var r=e[n];e[n]=function(e){if(/(^|,)\s*:scope/.test(e)){var i=this.id;this.id="ID_"+Date.now(),e=e.replace(/((^|,)\s*):scope/g,"$1#"+this.id);var o=t[n](e);return this.id=i,o}return r.call(this,e)}}))}}(window.document,Element.prototype);var r,i=[Element.prototype,Document.prototype,DocumentFragment.prototype];function o(t,e){t.forEach((function(t){t[e]="findAll"==e?t.querySelectorAll:t.querySelector}))}n(i,"append"),n(i,"prepend"),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.NodeList&&!NodeList.prototype.filter&&(NodeList.prototype.filter=Array.prototype.filter),o(i,"find"),o(i,"findAll"),r="getId",i.forEach((function(t){t[r]=t.getElementById})),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)},function(t,e,n){"use strict";var r=n(2),i=n.n(r),o=n(1),u=n.n(o),a=n(10),c=n.n(a),s=n(9),f=n.n(s),d=n(3),l=n.n(d),h=n(27),p=n(4),g=n(13),m=n(8);function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l()(t);if(e){var i=l()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f()(this,n)}}var y=function(t){c()(n,t);var e=v(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"znews_storage",o=arguments.length>1?arguments[1]:void 0;if(i()(this,n),t=e.call(this),!o)throw new Error("Driver is localStorage or sessionStorage");return t.key=r,t.driver=o,t}return u()(n,[{key:"get",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.key,n=this.driver.getItem(e);if(p.a.empty(n))return{};try{t=JSON.parse(n)}catch(t){return this.clean(e),{}}if(!p.a.object(t))return this.clean(e),{};var r=this.driver.getItem(e+"-expire");return r&&Object(m.o)()>parseInt(r)?(this.driver.removeItem(e),this.driver.removeItem(e+"-expire"),{}):t}},{key:"set",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.key,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(p.a.object(e)){var r=this.get();p.a.empty(r)&&(r={}),Object(g.a)(r,e),this.driver.setItem(t,JSON.stringify(r)),n?this.driver.setItem(t+"-expire",Object(m.o)()+1e3*n):this.driver.removeItem(t+"-expire")}}},{key:"clean",value:function(t){t&&this.driver.removeItem(t)}}]),n}(h.a);e.a=y},,,,function(t,e,n){"use strict";var r=function(t,e,n){this.namespaces||(this.namespaces={}),this.namespaces[t]=e;var r=n||!1;return this.addEventListener(t.split(".")[0],e,r),this},i=function(t){return this.removeEventListener(t.split(".")[0],this.namespaces[t]),delete this.namespaces[t],this};window.on=document.on=Element.prototype.on=r,window.off=document.off=Element.prototype.off=i},function(t,e,n){"use strict";var r=n(2),i=n.n(r),o=n(10),u=n.n(o),a=n(9),c=n.n(a),s=n(3),f=n.n(s),d=n(49),l=n(36);function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f()(t);if(e){var i=f()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var p=function(t){u()(n,t);var e=h(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"znews_sstorage";return i()(this,n),e.call(this,t,l.c)}return n}(d.a);e.a=p},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";n.r(e);n(48),n(53);var r=n(2),i=n.n(r),o=n(1),u=n.n(o),a=n(29),c=n(54),s=n(0),f=n(15),d=n.n(f),l=function(){function t(){i()(this,t),this.config=window.CONFIG,this.zaConfig=window.zaConfig,this.catePath=window.cate_path,this.ZAPPID=window.ZAPPID,this.sstorage=new c.a,this.cookie=a.a,this.log=d.a,this.init()}return u()(t,[{key:"name",get:function(){return"CommonHead"}}]),u()(t,[{key:"init",value:function(){this.validDomain(),this.setUpOrigin()}},{key:"setUpOrigin",value:function(){if(!window.location.origin){var t=window.location,e=t.protocol,n=t.port,r=t.hostname;window.location.origin=e+"//"+r+(n?":"+n:"")}}},{key:"validDomain",value:function(){var t=window.location.host,e=s.t;t.indexOf(s.bb)>-1?e=s.bb:t.indexOf(s.hb)>-1?e=s.hb:t.indexOf(s.cb)>-1?e=s.cb:t.indexOf(s.ib)>-1&&(e=s.ib),document.domain=e}}]),t}(),h=n(20),p=n(8),g=n(18),m=n(14),v=n(11);window.getPageType=p.p;var y="https://log.adtimaserver.vn/track/hit.gif?params=3OCtltgJxiJm0x8CzRqJHTBeJpW6bBOTgzIL3SIqr8-khzcJPRlYV_sUwsyvUd8WGt_Ln_lYCj891r0U1TlFDPgYBgY5OR26fqRezZqcqwy0RzcJyFGgdl0SiYYlmWSBPzOC7iqHCLMr1nD2GFs6FStrQRiQK6RMqBwFx0JDZpfYSoEX_-LzO9awoKcaaMRe9C6s_ZdQWhEsvp-f0vThiN9nHDcqSlZjAJRkkmZqe7vhNUVAR2lQduiMXJFq_Elt5ZMEAjnNdZ2VQEJoiFOZVh0TV-A5Td7zL9J57fY&dmpReqId=&trace=244874918060581456.675243637679289804",b=function(){function t(e){i()(this,t),this.pageType=Object(p.p)(),this.ZAPPID=e.ZAPPID,this.zaConfig=e.zaConfig,this.catePath=e.catePath,this.cookie=e.cookie,this.sstorage=e.sstorage,this.log=e.log}return u()(t,[{key:"name",get:function(){return"AnalyticModule"}}]),u()(t,[{key:"trackPageview",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{var e=t.url?t.url:window.location.href;e=e.replace(/(#|\?).*$/i,"");var n=Object(p.p)(e),r={appid:this.ZAPPID,type:n};if(n==s.E.CATEGORY||n==s.E.ARTICLE){var i=t.catename||this.catePath||"",o=this.zaConfig.pageid,u=t.cateid||s.h[this.catePath]||"";u||"1"==o||(u=o),r.cate=i,r.cateid=u}if(n==s.E.ARTICLE){var a,c=t.topicid;c||(c=window.zaConfig.topicid),r.postid=""|Object(p.l)(e),r.topicid=c;var f=null===(a=window.zaConfig)||void 0===a?void 0:a.contentType;r.contenttype=f}e=(e=Object(g.buildURLWithParam)(e,r)).replace("?","#");var d={},l="";window.ZA&&window.ZA.getVisitorID&&(l=window.ZA.getVisitorID()),d.trackurl=e,d.uid=l,d.ref=encodeURIComponent(document.referrer),d.zab=this.getVersion(),d.ts=(new Date).getTime(),d.znsid=this.getSessionUID(),d.click=this.getClickSource(),d.video_mode=this.getVideoMode(t.url),d.paidview&&Object(p.a)(y);var m=Object(g.buildURLWithParam)(h.f,d);Object(p.a)(m)}catch(t){v.a.errorWithType("loading","longestReq","AnalyticModule | trackPageview ",t)}}},{key:"getClickSource",value:function(){if(document.referrer.search(s.F)>=0){var t=window.location.hash.match(/#[^&]+/gi);if(t&&(0!=(t=t[0].replace("#","").replace(/\?.*$/i,"")).search(this.ZAPPID)&&(t=null),t))return t}}},{key:"getVersion",value:function(){return this.cookie.get(m.a.VERSION)||s.fb.DESKTOP}},{key:"getPaidView",value:function(){var t=this.sstorage.get(m.c.PAIDVIEW_PR_ARTICLE);return t.value?(this.sstorage.clean(m.c.PAIDVIEW_PR_ARTICLE),t.value):null}},{key:"getVideoMode",value:function(t){if(this.pageType===s.E.ARTICLE&&Object(p.z)()||this.pageType===s.E.VIDEO&&Object(p.z)(t)){var e=this.sstorage.get(m.c.VIDEO_MODE).value;return this.sstorage.clean(m.c.VIDEO_MODE),e||s.gb.DEFAULT}return null}},{key:"getSessionUID",value:function(){var t=this.sstorage.get(m.c.ANALYTIC_SUID);return t.value?t.value:(t=this.createSUID(),this.sstorage.set(m.c.ANALYTIC_SUID,{value:t}),t)}},{key:"trackEvent",value:function(t,e){var n="";window.ZA&&window.ZA.getVisitorID&&(n=window.ZA.getVisitorID());var r={appid:window.ZAPPID,page:this.pageType,vid:n,event:t,value:e};this.pageType===s.E.ARTICLE&&(r.postid=Object(p.l)()),this.pageType===s.E.CATEGORY&&(r.cateid=window.zaConfig.pageid);var i=Object(g.buildURLWithParam)(h.i,r);Object(p.a)(i)}},{key:"createSUID",value:function(){var t=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)}))}}]),t}(),w=n(23),O=n(6),E=new l;window.znAnalytic=new b(E),window.pageInitialization=function(){Object(p.A)()&&Object(O.addClass)(document.body,"appview"),Object(O.addClass)(document.body,Object(w.a)().browser),window.znAnalytic.trackPageview()}}]);